diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index ad12dbf6c..a922f8838 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,25 +1,25 @@ lockVersion: 2.0.0 id: 482384cc-3b98-4ced-bd0b-14aa8b3e0053 management: - docChecksum: 33527700549d0c6fd064530f36d2892b + docChecksum: 5faf09f148af04aeb694b9322777705e docVersion: 1.0.0 - speakeasyVersion: 1.790.3 - generationVersion: 2.918.4 - releaseVersion: 0.41.1 - configChecksum: 825800d6c48f6b1308af01fe8766a912 + speakeasyVersion: 1.795.1 + generationVersion: 2.932.9 + releaseVersion: 0.41.2 + configChecksum: 292316eab28fe34b211be859d12764fa repoURL: https://github.com/StackOneHQ/stackone-client-ruby.git repoSubDirectory: . installationURL: https://github.com/StackOneHQ/stackone-client-ruby published: true persistentEdits: - generation_id: 48f272f0-071a-4c0b-acb7-8de72f465648 - pristine_commit_hash: 91fbb9f8212de53a05775fd9193d1887cd2ef66e - pristine_tree_hash: 83210972ee8e091bed563d25c2bff79b7c8dcbd2 + generation_id: c70fb9d2-4baa-46e6-a9f0-309433978ea8 + pristine_commit_hash: 6f954d555b39edab0cfd8f6c8ea52513dd2f57da + pristine_tree_hash: 85476f6de775d8ea7e8d038b14ca6f7566222912 features: ruby: additionalProperties: 0.1.1 constsAndDefaults: 0.1.4 - core: 3.11.33 + core: 3.11.34 deprecations: 2.81.2 examples: 2.81.8 flattening: 2.81.1 @@ -33,8 +33,8 @@ features: openEnums: 0.1.1 pagination: 0.1.1 responseFormat: 0.1.0 - retries: 0.1.2 - unions: 0.1.4 + retries: 0.1.3 + unions: 0.1.5 trackedFiles: .gitattributes: id: 24139dae6567 @@ -54,8 +54,8 @@ trackedFiles: pristine_git_object: b0ea40558f3ca80dcf7d30b159d34a1e5ab33440 Gemfile.lock: id: 21fb5836b499 - last_write_checksum: sha1:32b9a2301819795b75d200f0f879e6f16864f41d - pristine_git_object: d1b84e5e8d65e1ea9260b8cf3db12d8386c5f016 + last_write_checksum: sha1:254726e9fd8dd5b891e9ff19f456e9d31d7459a7 + pristine_git_object: 6b4c14f237b390d626fab257918de27b49c8e73f Rakefile: id: 44b7fa1ba503 last_write_checksum: sha1:c572639efdae8c7b24141ee5c02d8f009e101ed8 @@ -220,6 +220,10 @@ trackedFiles: id: 22eb5d11d194 last_write_checksum: sha1:11041966ce36303b1ffda2f4f9e5edc2674dfe0b pristine_git_object: 8c21ec3806ebf73e48fa913a77369e1878632208 + docs/models/operations/apps.md: + id: c28cb601300d + last_write_checksum: sha1:e8cd553fc3b0fdbe894a42178bfe898c1b5f80d1 + pristine_git_object: 9b955e4ca8a88f9b9c08a20a6870e5dfa432ffba docs/models/operations/atscreateapplicationnoterequest.md: id: f20dd4c4b0a8 last_write_checksum: sha1:2d47f0785dd9e68bd8a19838021c92bc9b536d3f @@ -1070,16 +1074,16 @@ trackedFiles: pristine_git_object: 119b30a3481c9aad15e2ad863c765dfb9c2e92a8 docs/models/operations/documentsgetfilerequest.md: id: c1f296652163 - last_write_checksum: sha1:8aa1579443bf1be8b53138570a668acc947c5013 - pristine_git_object: 91b094ff3b4a61ab400c7dbeefc90aa90f01d435 + last_write_checksum: sha1:c79ddbed244f9a7c22fb66cd24c49bc9446c0976 + pristine_git_object: fb615da1743b29abf6f8c764229efe4b02d1ebfc docs/models/operations/documentsgetfileresponse.md: id: b04b946bf9a9 last_write_checksum: sha1:81ca092a6499fc1b345122041603eae9ca476449 pristine_git_object: 9f9692a47f45ff078a4ff89984283fc7b7994ef3 docs/models/operations/documentsgetfolderrequest.md: id: b4f577b72e88 - last_write_checksum: sha1:9af952a9906ae9c21287fb0a755bfe5b533ccd24 - pristine_git_object: c0ca8116560ecf8b9bf0a32af4c36efa9162fea8 + last_write_checksum: sha1:cab59e65128381cf3a2137d2d62dc3b9e2656970 + pristine_git_object: 1ea4adc6cc93e1a92b6983bb1bd709692c7164a7 docs/models/operations/documentsgetfolderresponse.md: id: 755c27852c49 last_write_checksum: sha1:01d997a7af8403d9d8eb2bd9691a7edfe46defdc @@ -1102,8 +1106,8 @@ trackedFiles: pristine_git_object: 44d99565f5ff2ea42d35b3d4ab0389f3c32698d1 docs/models/operations/documentslistfilesrequest.md: id: 32c7fc24e2f7 - last_write_checksum: sha1:4d0ba2c6114fd45c3d22a2404d31abbb3121c505 - pristine_git_object: f1c5d330d7d934c873335d83ef7605d000fa8ce8 + last_write_checksum: sha1:969e29efbfc2041cf6928c79c150e4eed0360d29 + pristine_git_object: 6a9cea93a549863599ccfe39f06dd8a7b62d78ad docs/models/operations/documentslistfilesresponse.md: id: 332d5379539e last_write_checksum: sha1:c154babb74fd5b547f18afea337e7c3739fa1396 @@ -1114,8 +1118,8 @@ trackedFiles: pristine_git_object: 05a430ad29bcbb0ed0bcefed4006a7375fd006f9 docs/models/operations/documentslistfoldersrequest.md: id: 7fbc85537f64 - last_write_checksum: sha1:52c556aaf52a5a893fd8596362e0fcb020744869 - pristine_git_object: aa1ea6d2502cfe02c1ea080e766d03cae4646adb + last_write_checksum: sha1:2328d5aec62f08c6867be1425cdb977bac1c1b34 + pristine_git_object: 49241d275cc47ecb8b89e62e506b81c28185ff7b docs/models/operations/documentslistfoldersresponse.md: id: 595a27681146 last_write_checksum: sha1:556fddf4c4e6bd0b096763c16b91c1ec20485524 @@ -2984,38 +2988,14 @@ trackedFiles: id: b3b5726b785e last_write_checksum: sha1:ea828c76522a107d5564f05e9770ed8779d4f78a pristine_git_object: 989f075ecbf9b4c069d995d889f6c2d1d53cdcf9 - docs/models/operations/stackonemcpdeleterequest.md: - id: 09641be476d9 - last_write_checksum: sha1:e9429ea01bd235d0d2b8f4405ebc3fcc7d8b9ea5 - pristine_git_object: 674f3cf4dc0e479d6353a64fca8606ca79badf82 - docs/models/operations/stackonemcpdeleteresponse.md: - id: 44963a626374 - last_write_checksum: sha1:e9ae648d06f77929a4fe15ff70a6b690231cad4e - pristine_git_object: 611210bb2f0fd5aaab6cb1957405832658983b7a - docs/models/operations/stackonemcpdeletesecurity.md: - id: 073eee460ef4 - last_write_checksum: sha1:75d3b1cc8d8e47915bfde03868892b5c7b351e93 - pristine_git_object: 257ecff96814f270ce21b285d9e46ec623a813b6 - docs/models/operations/stackonemcpgetrequest.md: - id: 4e3d50811de9 - last_write_checksum: sha1:1118b07bdd1278ffc7ea84970cc882be1da523bc - pristine_git_object: d5dd4407f5fa4e8341e01f8e24f4f966fa978fa2 - docs/models/operations/stackonemcpgetresponse.md: - id: af4165da15ec - last_write_checksum: sha1:86bb255185e427281570c4a8e4e9ffad799fc06b - pristine_git_object: 3376a9ca253c6c5b6beb1b2ef84ac48e33989054 - docs/models/operations/stackonemcpgetsecurity.md: - id: 0678d1c1b9d1 - last_write_checksum: sha1:7fd2be7447f4ec73fa18f32a92cc500c335c2727 - pristine_git_object: 74698609f419b07b53aeaf8faf070ff7ebab2e75 docs/models/operations/stackonemcppostrequest.md: id: 3459db2b8e02 - last_write_checksum: sha1:fb9766878e8aa4ac1c3e6d60c530ada58ab4c214 - pristine_git_object: a62d76c24704b277cbfd894626ce7c39eca053ec + last_write_checksum: sha1:e927aab8b871c2bfeaefe632b9c1b3a47516d3fe + pristine_git_object: 6063e8aa72d302f24b7bc3ea8e3cadac097ea1c3 docs/models/operations/stackonemcppostresponse.md: id: 4be8692b0ccf - last_write_checksum: sha1:043b6607bbd157752895f96f96c64c14c91edf78 - pristine_git_object: 91ea893ea789b0b529c6c4ee387d2d258e316080 + last_write_checksum: sha1:5669ce82fc3594e8680a63cacd24085621a02a9c + pristine_git_object: d75c54f9c8321cd4e9e4463853fcea4ca41d65c0 docs/models/operations/stackonemcppostresponsebody.md: id: 81ccd3d5a4cf last_write_checksum: sha1:f5178fbe8637722e02c75776a8c6a070acd086ff @@ -3046,8 +3026,12 @@ trackedFiles: pristine_git_object: 21676504055e3f2b2a85ce2c8c812eff1b8c553c docs/models/operations/stackonerpcactionsyncedresponse.md: id: 476884c8e8e6 - last_write_checksum: sha1:5e24f21aaf967de0c40f1503e24c3436cc14af7a - pristine_git_object: 8a655ba533f452343336a9c711c8fa3aed1246ba + last_write_checksum: sha1:5572f4659fce6d4217ecaf6cf57d1f845533fbe3 + pristine_git_object: de794214741e3746d15898b0f4447b7e7a9719c8 + docs/models/operations/stackonerpcactionsyncedresponsebody.md: + id: ecc0e6f7cfa4 + last_write_checksum: sha1:cfae32b7337a5e4e2a524f36707a5fca5efd3ebe + pristine_git_object: 337d5b8d9097f6e2f58a6f5ffb380d9cb6a86f21 docs/models/operations/stackonesearchactionsresponse.md: id: 0ab002ec8b0a last_write_checksum: sha1:53a07d088d1ad3ca6af9077ec5cbfe43ec1eaf91 @@ -3530,8 +3514,8 @@ trackedFiles: pristine_git_object: 1cef339a6dfca8c0c1461d541518f361241ccf51 docs/models/shared/actionmetaitem.md: id: dfb9dc69e5b5 - last_write_checksum: sha1:934a7ee38f1547168e3fac0644fc4742357de190 - pristine_git_object: 91de1314c69a596e2f2ae8502d97f42da5e1134a + last_write_checksum: sha1:eef20e4b19fa350243cabfc922aeda419f0c62b5 + pristine_git_object: 6240ae55890a7d6002b06f7efda968e320016b12 docs/models/shared/actionsearchdto.md: id: 0d04631d1db5 last_write_checksum: sha1:0c4ebdbc45c3fc1da2653dea0e216892b3f79653 @@ -3566,16 +3550,24 @@ trackedFiles: pristine_git_object: 4a8cc0ffc8e00efcc9f8af7b8052437d2bc8fe47 docs/models/shared/actionsrpcsyncedrequestdto.md: id: ba8eaab37c45 - last_write_checksum: sha1:b5007c43146ec7b9187fe07f575411fff3e8f6e3 - pristine_git_object: bb3c3a097b66c80a573987dd67782d946f443bed + last_write_checksum: sha1:eaeb1a1fe78d47c25a35cd36911d5ed9e0f9e3a4 + pristine_git_object: 46a4c692100448dac2ac8cc5de18c28d64af52c4 docs/models/shared/actionssynceddatasync.md: id: 1b35178cc4cf - last_write_checksum: sha1:6d8b7fea2e9ac5494c2bca5e28182ba5763157b7 - pristine_git_object: 5de2acb037f6cf10267696d53e7c22878f9b2631 + last_write_checksum: sha1:8892e5adcc5311a8d29105cfc78bac709134da99 + pristine_git_object: a23952f4f410ce4ca32314a87d0768dc6049f895 + docs/models/shared/actionssyncedrefusal.md: + id: 4ad08aaa1f74 + last_write_checksum: sha1:16e7f5e4018fc5343c951ed6f860642d73534911 + pristine_git_object: a842c96002350b0bbd55fcc3778775a7da5af85d docs/models/shared/actionssyncedresponse.md: id: a3c54cdb557d - last_write_checksum: sha1:625a06816cd5f0dda5274ca77a7a9f7b1d4f252e - pristine_git_object: 527acebbe24874d7005a211badee87d3a4c8d27d + last_write_checksum: sha1:eab725560a34817909def3a2ece964e34644e456 + pristine_git_object: d2efbf83e7efdd8e156fa18f7179c771633d7327 + docs/models/shared/actionssyncedsyncchoice.md: + id: 1e88a08a12fc + last_write_checksum: sha1:155c5da259ba439cd3690307230e986a7ff28b7f + pristine_git_object: 796939efbf0ee4d816e992d210b99676c41151a0 docs/models/shared/active.md: id: 46b350465877 last_write_checksum: sha1:ddb84c436c488e9dd137d62968598fce3ee37597 @@ -5886,8 +5878,8 @@ trackedFiles: pristine_git_object: 53f53b0f6569e50c2d9c568d79259f58ef71b35b docs/models/shared/files.md: id: 0d704a708e24 - last_write_checksum: sha1:45dd208320abde8a8e1e4f8495e3cb960519aae7 - pristine_git_object: 301b40fb63eb5004f1c1a3364df3bcb07b7d5fb1 + last_write_checksum: sha1:f88beebb7f2155ee1b8b62e8bd88484834294f5b + pristine_git_object: ec0449ee502cb5c269aee39ad97a5b9e663a3b6a docs/models/shared/files2.md: id: efb9492d9706 last_write_checksum: sha1:99bf28a59afdc6fb4234491c100d57ca577088e6 @@ -5946,8 +5938,8 @@ trackedFiles: pristine_git_object: d3898fad23e60510a6b16b8d2ce94e10d422b303 docs/models/shared/folders.md: id: 7aeebeb4ba17 - last_write_checksum: sha1:793ad5b8e16f816f18213c46129784bef2ea503a - pristine_git_object: bd26f741d56555d86185a3715cd9bbe11cc426c3 + last_write_checksum: sha1:8c2c9b25a0f61162d5a97a28c1a68bee1a3925f2 + pristine_git_object: 63f2915e707fc5db3c0c7a7a82b318e0646d6419 docs/models/shared/folders2.md: id: ae492061f2ef last_write_checksum: sha1:d5ec88394ef49dc16384c8928259a1d745c8640e @@ -10466,8 +10458,8 @@ trackedFiles: pristine_git_object: bf64bc80d5fa336262011af80bd62e22559b91a3 docs/sdks/actions/README.md: id: e229cf99e666 - last_write_checksum: sha1:424c2059eddb007ffcd7ece0e01ab074aef934e5 - pristine_git_object: de0962eaf4442aecdf1b45d518fd15cbe072466b + last_write_checksum: sha1:ba4d65c801e6cf64c256c2539787455b4f15d8be + pristine_git_object: cec4fb07f0dc474b163f9376cd9980cfb932ed58 docs/sdks/ats/README.md: id: 24fafa267f6c last_write_checksum: sha1:a20028fa09ce3e9277f69334c20fc4853ad1cdb7 @@ -10518,8 +10510,8 @@ trackedFiles: pristine_git_object: c463c52ed115c9762a98d0d466495740734124f5 docs/sdks/mcp/README.md: id: fb362f76f7be - last_write_checksum: sha1:f0bc4265e3dcd6fe852d7b79b33b29ff8048bcfe - pristine_git_object: 1e29bd469c1a18b4b96603523704feb53d3476ed + last_write_checksum: sha1:787d63c9d6e80f2e287372b5fc9d9a474ae39c18 + pristine_git_object: 445a8be0867ccbc7f0053430b0b96f46bfd10a57 docs/sdks/messaging/README.md: id: 827f9d81a390 last_write_checksum: sha1:ba8fe61cb4e5e93321db0b2942a8122c39d64354 @@ -10566,72 +10558,72 @@ trackedFiles: pristine_git_object: 2ed83f4352774e4d02e73402216b71cde5f86639 lib/stack_one/accounting.rb: id: 1d7008a39599 - last_write_checksum: sha1:6fa6a675cc961bfc1903404110bc1422e93c15ea - pristine_git_object: 99b98a89e067411ac7066e812d3e2cdbaca579ff + last_write_checksum: sha1:aaacdb3ad1d178612c31256fe26a05b09a19f913 + pristine_git_object: 78f243174624f8fb539791d749da444c8daf5940 lib/stack_one/accounts.rb: id: 2bf4daa88b2f - last_write_checksum: sha1:0074d24c61b6aeb3357224b3582d5d14ddcace95 - pristine_git_object: 8fecf98b50dad7d31e2c8573b929621c0901432a + last_write_checksum: sha1:8444a4cf21c18427610f8babc26d68a44177dec9 + pristine_git_object: 9895e8c6cc4d0fea8f0f38055e7a1a05060542dd lib/stack_one/actions.rb: id: 41a337da6c45 - last_write_checksum: sha1:f792291d75c4b49ce8413a54b7fdc2f79a2f9421 - pristine_git_object: 61fa286507b4e9cfa788192f4cff36663d227da3 + last_write_checksum: sha1:4c83a32ed5e1b1fcb5ad8e7b7032a326f33080bd + pristine_git_object: db17c7cf0a7c0edeef2828413f7e991358635214 lib/stack_one/ats.rb: id: f9a6d12636d8 - last_write_checksum: sha1:5d95b566457cb3ae01ff96742c16656a59000648 - pristine_git_object: 84c2f3473cfaf0cb5bc95e0595da805d9b348fc8 + last_write_checksum: sha1:b7cea4fad882e2b663e221c35ab3d459b61587b3 + pristine_git_object: d27953af9a9eecbecbba72734951c7f384f47bb1 lib/stack_one/auth_configs.rb: id: 4f027371ab7d - last_write_checksum: sha1:652e4871661de54f269c338be0e1995679437c92 - pristine_git_object: e9081d9191c6f2f6acdc6256234f79fd407b5ae0 + last_write_checksum: sha1:923615e5b0ebf01e37ed63556e1d74872560d920 + pristine_git_object: 4deaabecd21668a61e45e85f78df53a465a3848a lib/stack_one/connect_sessions.rb: id: 8f3d2962fca6 - last_write_checksum: sha1:15e17dd1c15a342a23193f33ed55caa60584cdf9 - pristine_git_object: 8321f7b1f557d1ed2141d08c0d4874de791143f3 + last_write_checksum: sha1:12afb0e7d23ce859206d6486f1423f672533c25f + pristine_git_object: 455c9881a75485f68e715eb60ee420a12a09f17b lib/stack_one/connector_profiles.rb: id: 5d7e67d665ff - last_write_checksum: sha1:5b2539da587b6522684d9522171d3e19d1aa67be - pristine_git_object: cc9ca9ce2817a94557cbd062895abba8a41954bd + last_write_checksum: sha1:eb4fe473151d5a846eda6006e258b47def68ba93 + pristine_git_object: b9ee8e40f5a212829cee3cc64dfb6dd3d6e4422e lib/stack_one/connectors.rb: id: 3205ed8a4115 - last_write_checksum: sha1:59492385244b61f2858a7974635b3d5140c2ddf7 - pristine_git_object: 625370d61414d2eb6acaaa3e3d47d7e43756f05b + last_write_checksum: sha1:d287a821013f411e07dc3236bd1c440b6836b9f8 + pristine_git_object: 79f8e72cc178b8ce5a7422ac0e1bdf506142a6c6 lib/stack_one/crm.rb: id: ca4d427b2149 - last_write_checksum: sha1:1eaed5f579da81cfc154cb4ee21e55f0ccfb7b6a - pristine_git_object: 5f176abefc7980690152214c030b492829a89356 + last_write_checksum: sha1:d2c6f8035171e0b8f89362c03170def9219d19d9 + pristine_git_object: 64dec2bffd00a9573d6b1261b28e7682a0dff7b1 lib/stack_one/documents.rb: id: 6ed6de41a7cd - last_write_checksum: sha1:e5623ad7bc2c456766bbc536adba592bba92a21d - pristine_git_object: 47ef908b6d7ea38f4891b6364b2dee9420be895c + last_write_checksum: sha1:f3f1b0c3c85b3c0d8831bfaa13cdf582086cdd68 + pristine_git_object: e06a16614745add5f3e73f3660206da88417ec0c lib/stack_one/hris.rb: id: 3a60c72618e3 - last_write_checksum: sha1:d2c9f18b982af4ca1413fa646c39c5546e3bfa79 - pristine_git_object: 590e9b06a71b5fc07d0e0f9db5cd0777d848f335 + last_write_checksum: sha1:a8dcd237b316be1be274b9c9e46da05fede04afe + pristine_git_object: d4e226b32b45f76c58efa62f9dde90ab77ab2677 lib/stack_one/iam.rb: id: 46a5190e06a1 - last_write_checksum: sha1:9139ea2b345e294a6c819e9c3683a8b620039085 - pristine_git_object: 2fcdd3949d0b5e199905aee48438d1e88db3a865 + last_write_checksum: sha1:21c315a73ed1400c328cbf4329d07d55eb5dc8ea + pristine_git_object: cb5b12dd3fad08e7b218ee8e889da774d197af89 lib/stack_one/lms.rb: id: b3b8e32d251b - last_write_checksum: sha1:fb1e32fae4de6f31e191021f3b5843d770ca1149 - pristine_git_object: 0ef0820091eaffc9f4662597553bf66a20a03996 + last_write_checksum: sha1:d0ace095e245b6ebde2563a737359e438217b466 + pristine_git_object: 52709dc3b6d5bfd21a740dc70924af45a6221d8d lib/stack_one/logs.rb: id: 977c8058f95b - last_write_checksum: sha1:350b0252217f0b3837443980ecc1d2e329c4b8b6 - pristine_git_object: 05c7a07bcebe6ebc2c0a976623f04c7f478796e6 + last_write_checksum: sha1:b9cc64675879d76a3c65705f1dffc07721c2c169 + pristine_git_object: 2af1f42f593426396fedb01f819d497b26c58891 lib/stack_one/marketing.rb: id: b07ab2eb8fe4 - last_write_checksum: sha1:912bb36eecd5ba71cdf98fa9754dc9af1cfdb27f - pristine_git_object: e19c3a1849961191d38995943e3f6ed7dffc51b2 + last_write_checksum: sha1:3027ce766d83e0513e2dfcef2f44c1549410923a + pristine_git_object: 45530f5140e7fdc980a8751f17d5517c44ef3010 lib/stack_one/mcp.rb: id: edb08b648364 - last_write_checksum: sha1:5b9983f9fac9d7b6b9d7c0c40fed960901b23cf9 - pristine_git_object: 93fed07104d0796400bb9e1038b8c33f4f6be974 + last_write_checksum: sha1:af75eaffcda905bbe701e1e82f2e46e3cf8cac0f + pristine_git_object: 765030e1bfb3efe189fcc05a55769ac71e379c4e lib/stack_one/messaging.rb: id: a84c26e0ff05 - last_write_checksum: sha1:b7725baad227f09e0ece66207f1637f1f5db3034 - pristine_git_object: 0aea52f6399e29988b7b6696e29a85c68b49aef5 + last_write_checksum: sha1:d99ff70ea6339bf504ff067bb259a9595f4f3434 + pristine_git_object: f04f66975fd73034ecd0070fab35e445ea696a1e lib/stack_one/models/callbacks.rb: id: 36dba5601c75 last_write_checksum: sha1:d3ef014c787cebcaa29d06b1d48e876caf90d9a2 @@ -10762,8 +10754,8 @@ trackedFiles: pristine_git_object: 93d0598ae377207f9fca341e4342ae4347c8411b lib/stack_one/models/operations.rb: id: 98d5c39b0613 - last_write_checksum: sha1:cb36ddb165e8ad89da1e39daa361e5730873e691 - pristine_git_object: b546697ebcb352982c015cd86c48df32a76adff8 + last_write_checksum: sha1:d2bbcedc0efd1b29bdc01ce535d6eacd4f468b0c + pristine_git_object: 35c9e3615998744ce65e7d9cee692984b2d143c5 lib/stack_one/models/operations/accounting_batch_create_company_journals_request.rb: id: 7e046b8fa826 last_write_checksum: sha1:ae44f7b39cee7c5b2c59ec170c6debfd66ce2565 @@ -10964,6 +10956,14 @@ trackedFiles: id: 2b9f617290a7 last_write_checksum: sha1:fb41ce4bdae28a656ff49735503bb666d51db7bd pristine_git_object: 96cf176712f64823dcb24a6e8ee23377fdcdf2e3 + lib/stack_one/models/operations/apps.rb: + id: 0a3c255749b7 + last_write_checksum: sha1:935ff0c4508b73114ec2eacd6d7dde065d9b6d39 + pristine_git_object: 24db6ab523f27fc1b3a26e09d9fb0464a4843148 + lib/stack_one/models/operations/apps.rbi: + id: fe7e5c8177d2 + last_write_checksum: sha1:8c838e0394fda510f4d44706f30e5e624df91475 + pristine_git_object: 7060097b85c073a7b736c352e024f39e006fbbb9 lib/stack_one/models/operations/ats_create_application_note_request.rb: id: e335a661755c last_write_checksum: sha1:c5fea80d14e1d895b9a9c95b541b4eaf8955f587 @@ -16492,70 +16492,22 @@ trackedFiles: id: 3f45be28deec last_write_checksum: sha1:fea55b7a3f4cf096ad1781ba32043618df0e8bb1 pristine_git_object: d6a328eb62e820eef011b44f5590649e0a3dae7a - lib/stack_one/models/operations/stackone_mcp_delete_request.rb: - id: 7f753d909caf - last_write_checksum: sha1:ba8cddbafc34446bd2d78047d07902d11e02a3e9 - pristine_git_object: e977d38d55fa4adaf234f0155b4774cb75074342 - lib/stack_one/models/operations/stackone_mcp_delete_request.rbi: - id: cee415c8f83d - last_write_checksum: sha1:92a9c6b37caa06c906e33779f033608a43763b34 - pristine_git_object: c93bd1b9ff550c44be9dfc7f6bef432e1f39c450 - lib/stack_one/models/operations/stackone_mcp_delete_response.rb: - id: 0e466c8b940b - last_write_checksum: sha1:bf89ec372a056d630b83094ae3bd51d72a684f4b - pristine_git_object: 9eaad2a01e290485a789b3fb59e6e897e230ead4 - lib/stack_one/models/operations/stackone_mcp_delete_response.rbi: - id: 1e44f4631f46 - last_write_checksum: sha1:50f8ebddb6ae32a74e3bb72c08def25e0dfdeced - pristine_git_object: f5c7cdfd3630f2e67084a9f96a15972650b60260 - lib/stack_one/models/operations/stackone_mcp_delete_security.rb: - id: e6ea51ed2607 - last_write_checksum: sha1:c298c04efc428a61a0ac224031c4484e599bf373 - pristine_git_object: f93b099e14eb07dd6b2005ce664b013b3de103db - lib/stack_one/models/operations/stackone_mcp_delete_security.rbi: - id: fc248de437e4 - last_write_checksum: sha1:f97421409242a35d65ceb3b72921c0d269ed881a - pristine_git_object: d3f20e270fab60d1b64349ffef99485110ab1d44 - lib/stack_one/models/operations/stackone_mcp_get_request.rb: - id: 9c27b685c4fd - last_write_checksum: sha1:5a6901725d1ed19755e8423fe5b140251ec54cdf - pristine_git_object: 6d730c8d781f2dbb5f5f3d795d4cde5552131018 - lib/stack_one/models/operations/stackone_mcp_get_request.rbi: - id: 2139e6b5548a - last_write_checksum: sha1:73016799c39eca58f6f203f503d9f58f1cf577d9 - pristine_git_object: c922153c21185d5e3ff2d58456d22106294657e4 - lib/stack_one/models/operations/stackone_mcp_get_response.rb: - id: 47e2ae2734a6 - last_write_checksum: sha1:e8f471932afa06d9fef6de6be26a9ecb0bfcab32 - pristine_git_object: 44e3a71f6764a953407ce56100dc977effbd95eb - lib/stack_one/models/operations/stackone_mcp_get_response.rbi: - id: 6e9cb5c1c2c6 - last_write_checksum: sha1:a53e851190ac1d7eda71c504c5e3268ba8943ca8 - pristine_git_object: e35cce264028e1e172da259b326ba10eae648a5a - lib/stack_one/models/operations/stackone_mcp_get_security.rb: - id: e2e2d5a7f601 - last_write_checksum: sha1:31f4e5c2699dc02c66714295d44103c98aaf541b - pristine_git_object: 449fb909dffa1ce5bb44c08995f54b9e6769ff25 - lib/stack_one/models/operations/stackone_mcp_get_security.rbi: - id: 5e45e575a777 - last_write_checksum: sha1:dc86d116dd6c8c38c9ba49108230c7e7e3325bc4 - pristine_git_object: 15033f912f6b1a2c94f2f2cdc72bb0bde5e9e9a1 lib/stack_one/models/operations/stackone_mcp_post_request.rb: id: 523bbf45ce29 - last_write_checksum: sha1:34836779a57a014cbbd91bc54c9bdc340c880620 - pristine_git_object: 063f993a1930038230f591fdf600e73e15c58f41 + last_write_checksum: sha1:072755ff56b1fc0e46aebcb58594a3e80b201ae0 + pristine_git_object: 4546b77822b5da9c618f8116f5bdef35bb9fce66 lib/stack_one/models/operations/stackone_mcp_post_request.rbi: id: e036f93c199b - last_write_checksum: sha1:471df632d333eb8b6a91a0d16eb228c12a0704c8 - pristine_git_object: cf026ef3ebc0dc3869a9a7424ee15fef3fd51dd7 + last_write_checksum: sha1:dec94e6e094f1a1844590259f0977b91f5e83a4c + pristine_git_object: 1618d22d8145547a023d5b1fd3e3ce7056c44ded lib/stack_one/models/operations/stackone_mcp_post_response.rb: id: d64fe52af9ec - last_write_checksum: sha1:2ad8c5f1b33da50f0df8cccfb0acd3643dcf813a - pristine_git_object: b87617c9205e2deea3e3441792d3d67dd10ed676 + last_write_checksum: sha1:76aa4631053bcfb95131702421fe1038f841b250 + pristine_git_object: 1844e5e33fc137a8163901578dbffbd585913e99 lib/stack_one/models/operations/stackone_mcp_post_response.rbi: id: aece95c468b4 - last_write_checksum: sha1:a6ac83f9d57bcb55c46377ccf1c64af8164e9c6c - pristine_git_object: 70619df6576acb9cdaa5722f1612f021a735ac08 + last_write_checksum: sha1:c88e78a1d191a7fa225ee5957928b7ee4c775549 + pristine_git_object: 0cc245fb6858a142dfc959bf0a66ab99fdc23a2b lib/stack_one/models/operations/stackone_mcp_post_responsebody.rb: id: d2562d401a87 last_write_checksum: sha1:f8a831fc05cc3556e48d630b6aeb8f170fdf9368 @@ -16614,12 +16566,20 @@ trackedFiles: pristine_git_object: 3f2e765e5cf391461ed356dfa1cbc90b24cf8db8 lib/stack_one/models/operations/stackone_rpc_action_synced_response.rb: id: c01a2fb1c93e - last_write_checksum: sha1:0750983149a380b74fbbefffae7da8a80a6d79ac - pristine_git_object: 0b06c6b87f70ea8c3674008db65a65b9a6b2b870 + last_write_checksum: sha1:10125fc48ce58113886fecee1a4825b250f4bae8 + pristine_git_object: 708aa63173fa74edb7215b440544c6b2b3bdc466 lib/stack_one/models/operations/stackone_rpc_action_synced_response.rbi: id: b20d76aeb658 - last_write_checksum: sha1:7d1acb6f471c9e1fb1e47ca30bf2b3b9621f82aa - pristine_git_object: 300c3deadf7143be2a711508d90cf277b69d1163 + last_write_checksum: sha1:034bc5ddcc30d492382ee9a1e7056abf55d45a53 + pristine_git_object: 453f75989419ed44a6603b1697b36a822b4b473d + lib/stack_one/models/operations/stackone_rpc_action_synced_responsebody.rb: + id: 41414fd4ac41 + last_write_checksum: sha1:4826f5d40036c76b8d125786945dc5079ad260a2 + pristine_git_object: 2017a7a254cd233b6560bb0877f2c751fe021ce2 + lib/stack_one/models/operations/stackone_rpc_action_synced_responsebody.rbi: + id: 6dbdc1f474b1 + last_write_checksum: sha1:43d3a5e6e59054e2f5a4dc5ba0dd1787a9438ed8 + pristine_git_object: 1bac242ed9a5ee58e15c3b8d27e3a24d2a3daf95 lib/stack_one/models/operations/stackone_search_actions_response.rb: id: a461e827ed89 last_write_checksum: sha1:a65c25c18ef6ad46b5dbd4b41a6824bbf4ac61cd @@ -17062,8 +17022,8 @@ trackedFiles: pristine_git_object: 6c7bca2badeb3d775256326837755aefe27f38d5 lib/stack_one/models/shared.rb: id: ab883fdac6f8 - last_write_checksum: sha1:7bd6ca6cd5def8107f08f21546bdd8d2f887ccb6 - pristine_git_object: 0cfad98a70a5345b5f9bf6f7094f505e8e4a4fc4 + last_write_checksum: sha1:68187027d711fef64167928d61208c80be0ce4fb + pristine_git_object: 45aca20b0bff2f8e68233a2e13adfecbc5fb61e6 lib/stack_one/models/shared/account.rb: id: cb8eee6f87ae last_write_checksum: sha1:f594f08795408369ddd11e1893817246333abc51 @@ -17586,12 +17546,12 @@ trackedFiles: pristine_git_object: 2704054bcff8f019ae85f904f46821d38a7382bb lib/stack_one/models/shared/actionmetaitem.rb: id: ca01327e9fbc - last_write_checksum: sha1:02cd66d8ca4db51fa36d6403cfa5ede1dcbee40c - pristine_git_object: d86082b79f1c68319179eccca7db313f88e6d62c + last_write_checksum: sha1:616a89fa8818a61e28a8cb9bbe62c42b496a25a3 + pristine_git_object: 07d1216a3d6417ba5ddfbd408a5865e2576fa661 lib/stack_one/models/shared/actionmetaitem.rbi: id: b91bf1a958fa - last_write_checksum: sha1:abf262276e2816b4aa20035f335ae44bf2df54a3 - pristine_git_object: e3f8ae77ca8c71b9d1898ef74e7c76efa8ee7f32 + last_write_checksum: sha1:128a038f8d2d992fa25b56b387666f97e2ac2b08 + pristine_git_object: f7d48b26ca647583ad87b34555eb024b93b9cd2d lib/stack_one/models/shared/actionsearchdto.rb: id: d98634b57888 last_write_checksum: sha1:407c8f91835f0a1a82094dc0e69879f333e8949c @@ -17658,28 +17618,44 @@ trackedFiles: pristine_git_object: 767a2a9506081a342a75a33dedff96345d0b26e1 lib/stack_one/models/shared/actionsrpcsyncedrequestdto.rb: id: 1a0fc74bbae9 - last_write_checksum: sha1:89805e7b1c2df04ba32dc66542d811867e88f143 - pristine_git_object: d7ea43744d98a88bc1f5e212974787a8a821268c + last_write_checksum: sha1:87c34b98636ee7bdd40f042318abef5fbf3e41bc + pristine_git_object: c6ff1ae0bb81c93ef8bfac88b11288f4ecb621d5 lib/stack_one/models/shared/actionsrpcsyncedrequestdto.rbi: id: a6d5b40a2f44 - last_write_checksum: sha1:bcba9688464979bb48fd7e812975806f7a88f215 - pristine_git_object: 684c4c5e9024c9933792c2e9117eb36f18277be7 + last_write_checksum: sha1:10f0c3c8677aa46525dc7f7a0ccc9ef393a0cf94 + pristine_git_object: da094170bcdad33daf57c47496858dcae96a1680 lib/stack_one/models/shared/actionssynceddatasync.rb: id: 07839954f05d - last_write_checksum: sha1:18c5a22aae03fa993bbc40a9fa9b205589ac1286 - pristine_git_object: 99554d3353e5e938ad90bfd56de8cae7b7aefec1 + last_write_checksum: sha1:6942530ae5716b321708aab950ab05436894659c + pristine_git_object: a2cc983c1ce16074069f37fc2764b26734ae65e1 lib/stack_one/models/shared/actionssynceddatasync.rbi: id: 749618310e0e - last_write_checksum: sha1:de8b9b4b2e3be21ff3121b93ac42312c4ff910f2 - pristine_git_object: 7afd7f7d7016a634b7592d980e730a8ae6da57fe + last_write_checksum: sha1:eb5634dd59c2ac66961f77811d6e840821c9bce6 + pristine_git_object: 95bd0d367512e6cc2f7986149b04a049d96c06da + lib/stack_one/models/shared/actionssyncedrefusal.rb: + id: 47e90ce794c2 + last_write_checksum: sha1:b32e3b450934490b4c6bd02430b2e69be854291d + pristine_git_object: fbc5a565aaae2ad9ef7d3eb777b07a38fd8bdd0e + lib/stack_one/models/shared/actionssyncedrefusal.rbi: + id: 3c88aee9350f + last_write_checksum: sha1:96d26c59128d941d109a68b971745cc5e3a6ea6e + pristine_git_object: eb12d40d419c3553b830e0c0af943754f56c052e lib/stack_one/models/shared/actionssyncedresponse.rb: id: 3b80d48c3c6e - last_write_checksum: sha1:47d2414ec521e2d997f1debc35b8b5cbba2d167e - pristine_git_object: 993e2fdfbd80b47c8b7c098b7b5049741c65b49e + last_write_checksum: sha1:9d3a38fc5a48fd96d5a33dd3fb3ea607b086edbf + pristine_git_object: 5794da919c243441db868fd972c455994822b298 lib/stack_one/models/shared/actionssyncedresponse.rbi: id: 6fe2a1a50ee9 - last_write_checksum: sha1:cca27bee38edd417de641de3d34bb9f3626da3a1 - pristine_git_object: c60fa9dcb9e54a36446c55aa6cf2adc1bf983906 + last_write_checksum: sha1:fc2087430b1aa133df863c78b3222bc37f7526a3 + pristine_git_object: 3a117155d419148c0aa8607e13c5d66533a5f798 + lib/stack_one/models/shared/actionssyncedsyncchoice.rb: + id: 278de9515847 + last_write_checksum: sha1:c7b49d1db191149023874c648128e1ea1ce0ee88 + pristine_git_object: 150e51ea9e7388e92bb96bfd2099cf550bfdb0c8 + lib/stack_one/models/shared/actionssyncedsyncchoice.rbi: + id: 28000c772ff7 + last_write_checksum: sha1:7a49f520dc36b04abd41534f4762b4391581f80b + pristine_git_object: f757df2974f6347e047d6a76bb545947d91e0315 lib/stack_one/models/shared/active.rb: id: 55a38ee62264 last_write_checksum: sha1:7dd204e1e3b39e0fbe711a554bfc1021c36f6d62 @@ -22338,12 +22314,12 @@ trackedFiles: pristine_git_object: e3443186abd57c4b133f038b49e947a1309f94b8 lib/stack_one/models/shared/files.rb: id: 16456dd7d503 - last_write_checksum: sha1:004e65db2e81d05cd0d6345eda6925f05f9ed515 - pristine_git_object: f8158b2e494dd56d9ca4e98ce1fdfdeabd37e137 + last_write_checksum: sha1:8a8ebfd6a3c60ffa3f9a603bca94cbb105161e3a + pristine_git_object: a3dfc790305d8fe3f927a137109c0a6b828c81e0 lib/stack_one/models/shared/files.rbi: id: 26e5e316ac86 - last_write_checksum: sha1:00c6cecf209b199619c44d0dbe2c753474a34369 - pristine_git_object: 8cb63452da491c574ed4b9a1ca193856836b265d + last_write_checksum: sha1:8c8781e6fa8d5fc218d99de5af379945f8842a06 + pristine_git_object: 69c2c3c799a74b6fd5b9275da68fdce8ee51a46b lib/stack_one/models/shared/files_2.rb: id: 12e7c9c46458 last_write_checksum: sha1:17c09f6a029a2dc69ddaef38b7549bd02a6d7f26 @@ -22418,12 +22394,12 @@ trackedFiles: pristine_git_object: 397d307b385db447b84fc93cc36818e0bd320129 lib/stack_one/models/shared/folders.rb: id: abde26fdb940 - last_write_checksum: sha1:979b6f73b7f2bf9dab8ff6b5c8b253b98b56af38 - pristine_git_object: 0c9f9097cce4a4080993ea6635901f92443b80c2 + last_write_checksum: sha1:d4e32ddbeb8afb44b4a04a96591b9e8473e1212c + pristine_git_object: 19d87e766fe232c7c8e30c039229d051c21709aa lib/stack_one/models/shared/folders.rbi: id: 6c5796fe5fca - last_write_checksum: sha1:99e7f90a5b7580948c5506fe634aaaade6c9debd - pristine_git_object: 13e31605f8e7ce902f842f529b01273f0f3aa75c + last_write_checksum: sha1:912eac1d98742a57a72b5515c9e6b6cfd1201c3a + pristine_git_object: 63e5950b5e74a7259521a5f230f448b5e2bae3e7 lib/stack_one/models/shared/folders_2.rb: id: 555b4384f2cd last_write_checksum: sha1:009c2ef70fb2a7b302658197f86bcf817b3978f2 @@ -31442,16 +31418,16 @@ trackedFiles: pristine_git_object: fa0e1261ba10d1bfd10fbc26351a5af5006b2298 lib/stack_one/proxy.rb: id: e2ed92e8b2b1 - last_write_checksum: sha1:371f8ecd5efaaf549d23e515636361afdfd3ab7b - pristine_git_object: 4e455e59dfef84c93c586410c9c61ca0cb0e9103 + last_write_checksum: sha1:fbed57ec2982ca0e82d7f8e35a9adb76bc9f4b26 + pristine_git_object: 24233d91f1bd8d1350bf6ca06e36626020160452 lib/stack_one/request_logs.rb: id: 25a20ab32b9e - last_write_checksum: sha1:4ea7a1db0613b0b6dc5b3180f007428ce9f06299 - pristine_git_object: 4a0ffcda38e2b4c42abe671e35454206ba1ed2d2 + last_write_checksum: sha1:e44adb81e34bc2635a20deecbeace64acedf87c1 + pristine_git_object: c4542e02f5d16dfda04b7ad983b2bff924f264f6 lib/stack_one/screening.rb: id: a1f1dec045c5 - last_write_checksum: sha1:df77d40c537a8f65120a4f3dfb9ff843ab6b22e9 - pristine_git_object: cf316bdf7f21d9499616b548fa812f4b356e88ad + last_write_checksum: sha1:f94920708ba91b2923f9370ce506c3211c1f1b71 + pristine_git_object: bdd2fd53cff24d10710e3b055607200e02943bcf lib/stack_one/sdk_hooks/hooks.rb: id: 334c33bd65f8 last_write_checksum: sha1:c5463eb4c6018198db3c057d1f7ea2d6c8efbb81 @@ -31462,8 +31438,8 @@ trackedFiles: pristine_git_object: 639acd413c3c7dda15d946d388661dad3fd97837 lib/stack_one/sdkconfiguration.rb: id: 073fab24bd77 - last_write_checksum: sha1:777c521eb44cffffa351defaa3d18ff9e24477db - pristine_git_object: 7d1db86bc4d9d7ff6aace61774085ad303988562 + last_write_checksum: sha1:a1479b58019452f24432d23b3042faa7c938d6fc + pristine_git_object: 3fb89e291212080dad8e591f2c18edfb5e12e343 lib/stack_one/sdkconfiguration.rbi: id: b14272994fad last_write_checksum: sha1:10f1877c55e4df6d6b8ee7d75f4d0cd9f23c06cb @@ -31474,8 +31450,8 @@ trackedFiles: pristine_git_object: cb29ebb058680f963bd083280621644b28a81a8a lib/stack_one/ticketing.rb: id: bb2e14600adf - last_write_checksum: sha1:a311666813050680ef363de9a436271861b9fbe1 - pristine_git_object: 04be131a7427da2b97353a67a5bcbc22755885f7 + last_write_checksum: sha1:fc6dcc2c2c119739356d72b50a46c781fc3f325d + pristine_git_object: ce1e961eaa3b05915e0c95a7886ec3d787c5ccb5 lib/stack_one/utils/forms.rb: id: 3f98ca07d8a5 last_write_checksum: sha1:efea2e216127c4749b5020865819373702bd7bec @@ -31494,8 +31470,8 @@ trackedFiles: pristine_git_object: 6136252ccd26e153ae9bc05d42ec60bf86dfd3b6 lib/stack_one/utils/retries.rb: id: "388197604551" - last_write_checksum: sha1:44f5ba9a98fcc588c5c2a3e9394bac9add5867e9 - pristine_git_object: 51c411f111ebb6e1b1de2ce377c19c5de2f16ebf + last_write_checksum: sha1:08ccee50185a31e4712af24fbd7b1641b680aa48 + pristine_git_object: dff3e5fc9719797680e55d275f6260b09fb8d468 lib/stack_one/utils/security.rb: id: e1958d527dc6 last_write_checksum: sha1:8f449b796c6178eaa2037373beb27eec590a604b @@ -31534,8 +31510,8 @@ trackedFiles: pristine_git_object: fd79b01b9f6c3054247d35f984063b0d70a76bd6 stackone_client.gemspec: id: 441a330b877d - last_write_checksum: sha1:2b9dd46c93a96488e27ce706f61ca9fbf8cb15d9 - pristine_git_object: bb62d2f391c6106dc0a566c709df8c0f6c13441a + last_write_checksum: sha1:412e1d6543ba95b226cf44dd17d8c4b158dc45e2 + pristine_git_object: 424919d662089113827904e647cc9657bde91d3c examples: stackone_delete_account: speakeasy-default-stackone-delete-account: @@ -35471,7 +35447,7 @@ examples: Prefer: "heartbeat" responses: "200": - application/json: {"data": {"all_parent_folder_ids": ["0123456789"], "created_at": "2023-02-23T00:00:00.000Z", "default_download_format": "application/pdf", "description": "This is the description associated to the file.", "drive_id": "c28xyrc55866bvuv", "export_formats": ["application/pdf"], "file_format": {"source_value": "application/pdf", "value": "pdf"}, "folder_id": "c28xyrc55866bvuv", "has_children": true, "has_content": true, "id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "name": "Information-Technology", "owner_id": "c28xyrc55866bvuv", "path": "/path/to/file", "remote_drive_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "remote_folder_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_owner_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "size": 1024, "updated_at": "2024-02-23T00:00:00.000Z", "url": "https://drive.google.com/file/d/nd8932h9d/view"}} + application/json: {"data": {"all_parent_folder_ids": ["0123456789"], "created_at": "2023-02-23T00:00:00.000Z", "default_download_format": "application/pdf", "description": "This is the description associated to the file.", "drive_id": "c28xyrc55866bvuv", "export_formats": ["application/pdf"], "file_format": {"source_value": "application/pdf", "value": "pdf"}, "folder_id": "c28xyrc55866bvuv", "has_children": true, "has_content": true, "icon": "\U0001F4C4", "id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "name": "Information-Technology", "owner_id": "c28xyrc55866bvuv", "path": "/path/to/file", "remote_drive_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "remote_folder_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_owner_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "size": 1024, "updated_at": "2024-02-23T00:00:00.000Z", "url": "https://drive.google.com/file/d/nd8932h9d/view"}} "400": application/json: {"data": {"headers": {}, "message": "Bad Request", "statusCode": 400}, "message": "Bad Request", "provider_errors": [{"headers": {}, "raw": {}, "status": 400, "url": "https://api.provider.com/v1/resource"}], "statusCode": 400, "timestamp": "2023-05-30T00:00:00.000Z"} "401": @@ -35509,7 +35485,7 @@ examples: Prefer: "heartbeat" responses: "200": - application/json: {"data": {"all_parent_folder_ids": ["0123456789"], "created_at": "2023-02-23T00:00:00.000Z", "description": "This is the description associated to the folder.", "drive_id": "c28xyrc55866bvuv", "has_children": true, "has_content": true, "id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "is_root": true, "name": "Information-Technology", "owner_id": "c28xyrc55866bvuv", "parent_folder_id": "c28xyrc55866bvuv", "path": "/path/to/folder", "remote_drive_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_owner_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "remote_parent_folder_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "size": 1024, "updated_at": "2024-02-23T00:00:00.000Z", "url": "https://drive.google.com/folder/d/nd8932h9d/view"}} + application/json: {"data": {"all_parent_folder_ids": ["0123456789"], "created_at": "2023-02-23T00:00:00.000Z", "description": "This is the description associated to the folder.", "drive_id": "c28xyrc55866bvuv", "has_children": true, "has_content": true, "icon": "\U0001F4C1", "id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "is_root": true, "name": "Information-Technology", "owner_id": "c28xyrc55866bvuv", "parent_folder_id": "c28xyrc55866bvuv", "path": "/path/to/folder", "remote_drive_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_owner_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "remote_parent_folder_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "size": 1024, "updated_at": "2024-02-23T00:00:00.000Z", "url": "https://drive.google.com/folder/d/nd8932h9d/view"}} "400": application/json: {"data": null, "message": "Bad Request", "provider_errors": [{"headers": {}, "raw": {}, "status": 400, "url": "https://api.provider.com/v1/resource"}], "statusCode": 400, "timestamp": "2023-05-30T00:00:00.000Z"} "401": @@ -42032,7 +42008,7 @@ examples: "502": application/json: {"message": "Bad Gateway", "statusCode": 502, "timestamp": "2023-05-30T00:00:00.000Z"} "200": - application/json: {"id": "init-1", "jsonrpc": "2.0", "result": {"protocolVersion": "2025-03-26", "capabilities": {"tools": {"listChanged": true}, "resources": {}, "prompts": {}}, "serverInfo": {"name": "stackone-mcp-server", "version": "1.0.0"}}} + application/json: {"id": "init-1", "jsonrpc": "2.0", "result": {"protocolVersion": "2025-03-26", "capabilities": {"tools": {"listChanged": true}}, "serverInfo": {"name": "stackone-mcp-server", "version": "1.0.1", "title": "StackOne", "description": "Give AI agents 30,000+ safe, token-optimized actions across Workday, SAP, Oracle + hundreds more.", "websiteUrl": "https://www.stackone.com", "icons": [{"src": "https://stackone-logos.com/api/stackone/icon/png", "mimeType": "image/png", "sizes": ["200x200"]}, {"src": "https://www.stackone.com/favicon.svg", "mimeType": "image/svg+xml", "sizes": ["any"]}]}}} toolsList: parameters: header: @@ -42517,10 +42493,10 @@ examples: page_size: 25 skip: 0 requestBody: - application/json: {"action": "create_employee", "body": {"search": "John"}, "filter": {"status": "active"}, "headers": {"x-custom-header": "value"}, "path": {"id": "123"}, "query": {"account_id": "abc"}} + application/json: {"action": "create_employee", "aggs": {"by_status": {"terms": {"field": "employment_status"}}}, "filter": {"status": "active"}, "search": "onboarding safety", "sort": [{"last_name": "desc"}], "source": ["first_name", "email"], "sync_id": "sch_01J8Z3Q4"} responses: "200": - application/json: {"datasync": {"last_full_run_id": "", "last_run_id": "", "params_hash": "", "request_id": "", "sync_expires_at": "", "synced_at": ""}} + application/json: {"datasync": {"last_full_run_id": "", "last_run_id": "", "params_hash": "", "request_id": "", "sync_expires_at": "", "sync_id": "", "sync_name": "", "synced_at": ""}} "400": application/json: {"data": {"headers": {}, "message": "Bad Request", "statusCode": 400}, "message": "Bad Request", "provider_errors": [{"headers": {}, "raw": {}, "status": 400, "url": "https://api.provider.com/v1/resource"}], "statusCode": 400, "timestamp": "2023-05-30T00:00:00.000Z"} "401": @@ -43463,12 +43439,7 @@ examples: application/json: {"message": "Bad Gateway", "statusCode": 502, "timestamp": "2023-05-30T00:00:00.000Z"} examplesVersion: 1.0.2 generatedTests: {} -releaseNotes: | - ## Ruby SDK Changes: - * `stack_one.accounts.delete_account()`: `response` **Changed** (Breaking ⚠️) - * `stack_one.accounts.get_account()`: `response` **Changed** (Breaking ⚠️) - * `stack_one.accounts.list_linked_accounts()`: `response.union(LinkedAccountsPaginated).data[]` **Changed** (Breaking ⚠️) - * `stack_one.accounts.update_account()`: `response` **Changed** (Breaking ⚠️) +releaseNotes: "## Ruby SDK Changes:\n* `stack_one.actions.rpc_action_synced()`: \n * `request.actions_rpc_synced_request_dto` **Changed**\n * `response` **Changed** (Breaking ⚠️)\n* `stack_one.mcp.mcp_post()`: \n * `request` **Changed** (Breaking ⚠️)\n * `response.status[200].content[text/event-stream` **Removed** (Breaking ⚠️)\n* `stack_one.mcp.mcp_delete()`: **Removed** (Breaking ⚠️)\n* `stack_one.mcp.mcp_get()`: **Removed** (Breaking ⚠️)\n* `stack_one.actions.list_actions_meta()`: `response.data[].actions[].has_required_parameters` **Added**\n* `stack_one.documents.get_file()`: `response.data.icon` **Added**\n* `stack_one.documents.get_folder()`: `response.data.icon` **Added**\n* `stack_one.documents.list_files()`: `response.data[].icon` **Added**\n* `stack_one.documents.list_folders()`: `response.data[].icon` **Added**\n" generatedFiles: - .gitattributes - .rubocop.yml diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 55479be30..0c303eb7e 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.790.3 +speakeasyVersion: 1.795.1 sources: my-source: sourceNamespace: my-source - sourceRevisionDigest: sha256:914ca6ecf0e6a3bc040602755ac3df782cd7bc32fcc35b3f231928407d70b1c1 - sourceBlobDigest: sha256:e19934553ca41e75383a049a2b6e9c4988259e18ba4aa3418517a75968ae5941 + sourceRevisionDigest: sha256:397be84a7ee86e17cbd51127e015eee7c66656b24cbc462c129c5f11ac462a2a + sourceBlobDigest: sha256:39d4750f1a4b75453f7cf6f14ed88d436139e487959a074b550fb8caca0a1a3a tags: - latest - 1.0.0 @@ -11,10 +11,10 @@ targets: StackOneRubyClient: source: my-source sourceNamespace: my-source - sourceRevisionDigest: sha256:914ca6ecf0e6a3bc040602755ac3df782cd7bc32fcc35b3f231928407d70b1c1 - sourceBlobDigest: sha256:e19934553ca41e75383a049a2b6e9c4988259e18ba4aa3418517a75968ae5941 + sourceRevisionDigest: sha256:397be84a7ee86e17cbd51127e015eee7c66656b24cbc462c129c5f11ac462a2a + sourceBlobDigest: sha256:39d4750f1a4b75453f7cf6f14ed88d436139e487959a074b550fb8caca0a1a3a codeSamplesNamespace: code-samples-ruby-stackonerubyclient - codeSamplesRevisionDigest: sha256:9616d7b9e610db812935c02c47979d00d1757b127ac4640fba85143c69e13b86 + codeSamplesRevisionDigest: sha256:f0f64274272fc9e3852bce3c57b1fef8e005d8c03a52d3c692054e4b39412005 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index 1a05984ff..0e8b35b9b 100644 --- a/README.md +++ b/README.md @@ -124,11 +124,21 @@ require 'stackone_client' Models = ::StackOne::Models s = ::StackOne::StackOne.new -res = s.mcp.mcp_delete(security: Models::Operations::StackoneMcpDeleteSecurity.new( -), mcp_session_id: '', x_account_id: '') +req = Models::Operations::StackoneMcpPostRequest.new( + json_rpc_message_dto: Models::Shared::JsonRpcMessageDto.new( + id: 'init-1', + jsonrpc: '2.0', + method: 'initialize', + params: Models::Shared::Params.new + ), + x_account_id: '' +) +res = s.mcp.mcp_post(request: req, security: Models::Operations::StackoneMcpPostSecurity.new( + +)) -if res.status_code == 200 +unless res.object.nil? # handle response end @@ -470,8 +480,6 @@ end ### [Mcp](docs/sdks/mcp/README.md) -* [mcp_delete](docs/sdks/mcp/README.md#mcp_delete) - Delete MCP session -* [mcp_get](docs/sdks/mcp/README.md#mcp_get) - Open MCP SSE stream * [mcp_post](docs/sdks/mcp/README.md#mcp_post) - Send MCP JSON-RPC message ### [Messaging](docs/sdks/messaging/README.md) diff --git a/RELEASES.md b/RELEASES.md index bbd3cba74..17d3846e4 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1128,4 +1128,14 @@ Based on: ### Generated - [ruby v0.41.1] . ### Releases -- [Ruby Gems v0.41.1] https://rubygems.org/gems/stackone_client/versions/0.41.1 - . \ No newline at end of file +- [Ruby Gems v0.41.1] https://rubygems.org/gems/stackone_client/versions/0.41.1 - . + +## 2026-08-24 09:14:24 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.795.1 (2.932.9) https://github.com/speakeasy-api/speakeasy +### Generated +- [ruby v0.41.2] . +### Releases +- [Ruby Gems v0.41.2] https://rubygems.org/gems/stackone_client/versions/0.41.2 - . \ No newline at end of file diff --git a/codeSamples.yaml b/codeSamples.yaml index 390463dd8..973d66963 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -50,7 +50,7 @@ actions: "x-codeSamples": - "lang": "ruby" "label": "stackone_rpc_action_synced" - "source": "require 'stackone_client'\n\nModels = ::StackOne::Models\ns = ::StackOne::StackOne.new(\n security: Models::Shared::Security.new(\n password: '',\n username: ''\n )\n)\nres = s.actions.rpc_action_synced(actions_rpc_synced_request_dto: Models::Shared::ActionsRpcSyncedRequestDto.new(\n action: 'create_employee',\n body: {\n 'search' => 'John',\n },\n filter: {\n 'status' => 'active',\n },\n headers: {\n 'x-custom-header' => 'value',\n },\n path: {\n 'id' => '123',\n },\n query: {\n 'account_id' => 'abc',\n }\n), page_size: 25.0, skip: 0.0)\n\nunless res.actions_synced_response.nil?\n # handle response\nend" + "source": "require 'stackone_client'\n\nModels = ::StackOne::Models\ns = ::StackOne::StackOne.new(\n security: Models::Shared::Security.new(\n password: '',\n username: ''\n )\n)\nres = s.actions.rpc_action_synced(actions_rpc_synced_request_dto: Models::Shared::ActionsRpcSyncedRequestDto.new(\n action: 'create_employee',\n aggs: {\n 'by_status' => {\n 'terms' => {\n 'field' => 'employment_status',\n },\n },\n },\n filter: {\n 'status' => 'active',\n },\n search: 'onboarding safety',\n sort: [\n {\n 'last_name' => 'desc',\n },\n ],\n source: [\n 'first_name',\n 'email',\n ],\n sync_id: 'sch_01J8Z3Q4'\n), page_size: 25.0, skip: 0.0)\n\nunless res.one_of.nil?\n # handle response\nend" - target: $["paths"]["/actions/search"]["post"] update: "x-codeSamples": @@ -213,18 +213,6 @@ actions: - "lang": "ruby" "label": "stackone_get_provider_advanced_log" "source": "require 'stackone_client'\n\nModels = ::StackOne::Models\ns = ::StackOne::StackOne.new(\n security: Models::Shared::Security.new(\n password: '',\n username: ''\n )\n)\nres = s.logs.get_provider_advanced_log(id: '', request_id: '')\n\nif res.status_code == 200\n # handle response\nend" - - target: $["paths"]["/mcp"]["delete"] - update: - "x-codeSamples": - - "lang": "ruby" - "label": "stackone_mcp_delete" - "source": "require 'stackone_client'\n\nModels = ::StackOne::Models\ns = ::StackOne::StackOne.new\nres = s.mcp.mcp_delete(security: Models::Operations::StackoneMcpDeleteSecurity.new(\n api_key: ''\n), mcp_session_id: '', x_account_id: '')\n\nif res.status_code == 200\n # handle response\nend" - - target: $["paths"]["/mcp"]["get"] - update: - "x-codeSamples": - - "lang": "ruby" - "label": "stackone_mcp_get" - "source": "require 'stackone_client'\n\nModels = ::StackOne::Models\ns = ::StackOne::StackOne.new\nres = s.mcp.mcp_get(security: Models::Operations::StackoneMcpGetSecurity.new(\n api_key: ''\n), mcp_session_id: '', x_account_id: '')\n\nif res.status_code == 200\n # handle response\nend" - target: $["paths"]["/mcp"]["post"] update: "x-codeSamples": diff --git a/docs/models/operations/apps.md b/docs/models/operations/apps.md new file mode 100644 index 000000000..9b955e4ca --- /dev/null +++ b/docs/models/operations/apps.md @@ -0,0 +1,19 @@ +# Apps + +MCP Apps panel: "off" (default) omits it, "on" registers the interactive toolset explorer. Only set it for hosts that render MCP Apps — a client with no iframe (a terminal) gets a tool whose result it cannot display + +## Example Usage + +```ruby +require "stackone_client" + +value = Apps::ON +``` + + +## Values + +| Name | Value | +| ----- | ----- | +| `ON` | on | +| `OFF` | off | \ No newline at end of file diff --git a/docs/models/operations/documentsgetfilerequest.md b/docs/models/operations/documentsgetfilerequest.md index 91b094ff3..fb615da17 100644 --- a/docs/models/operations/documentsgetfilerequest.md +++ b/docs/models/operations/documentsgetfilerequest.md @@ -3,13 +3,13 @@ ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `prefer` | *T.nilable(::String)* | :heavy_minus_sign: | Set to "heartbeat" to enable keep-alive newline heartbeats during long-running requests. Response includes Preference-Applied: heartbeat header when honored. (RFC 7240) | heartbeat | -| `fields_` | *T.nilable(::String)* | :heavy_minus_sign: | The comma separated list of fields that will be returned in the response (if empty, all fields are returned) | id,remote_id,name,description,url,size,file_format,path,owner_id,remote_owner_id,folder_id,remote_folder_id,drive_id,remote_drive_id,export_formats,default_download_format,created_at,updated_at,has_content,has_children,all_parent_folder_ids,remote_all_parent_folder_ids,unified_custom_fields | -| `id` | *::String* | :heavy_check_mark: | N/A | | -| `include` | *T.nilable(::String)* | :heavy_minus_sign: | The comma separated list of fields that will be included in the response | all_parent_folder_ids | -| `proxy` | T::Hash[Symbol, *::Object*] | :heavy_minus_sign: | Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key | | -| `raw` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Indicates that the raw request result should be returned in addition to the mapped result (default value is false) | | -| `x_account_id` | *::String* | :heavy_check_mark: | The account identifier | | -| `x_stackone_api_session_token` | *T.nilable(::String)* | :heavy_minus_sign: | The session token | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `prefer` | *T.nilable(::String)* | :heavy_minus_sign: | Set to "heartbeat" to enable keep-alive newline heartbeats during long-running requests. Response includes Preference-Applied: heartbeat header when honored. (RFC 7240) | heartbeat | +| `fields_` | *T.nilable(::String)* | :heavy_minus_sign: | The comma separated list of fields that will be returned in the response (if empty, all fields are returned) | id,remote_id,name,description,icon,url,size,file_format,path,owner_id,remote_owner_id,folder_id,remote_folder_id,drive_id,remote_drive_id,export_formats,default_download_format,created_at,updated_at,has_content,has_children,all_parent_folder_ids,remote_all_parent_folder_ids,unified_custom_fields | +| `id` | *::String* | :heavy_check_mark: | N/A | | +| `include` | *T.nilable(::String)* | :heavy_minus_sign: | The comma separated list of fields that will be included in the response | all_parent_folder_ids | +| `proxy` | T::Hash[Symbol, *::Object*] | :heavy_minus_sign: | Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key | | +| `raw` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Indicates that the raw request result should be returned in addition to the mapped result (default value is false) | | +| `x_account_id` | *::String* | :heavy_check_mark: | The account identifier | | +| `x_stackone_api_session_token` | *T.nilable(::String)* | :heavy_minus_sign: | The session token | | \ No newline at end of file diff --git a/docs/models/operations/documentsgetfolderrequest.md b/docs/models/operations/documentsgetfolderrequest.md index c0ca81165..1ea4adc6c 100644 --- a/docs/models/operations/documentsgetfolderrequest.md +++ b/docs/models/operations/documentsgetfolderrequest.md @@ -3,12 +3,12 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `prefer` | *T.nilable(::String)* | :heavy_minus_sign: | Set to "heartbeat" to enable keep-alive newline heartbeats during long-running requests. Response includes Preference-Applied: heartbeat header when honored. (RFC 7240) | heartbeat | -| `fields_` | *T.nilable(::String)* | :heavy_minus_sign: | The comma separated list of fields that will be returned in the response (if empty, all fields are returned) | id,remote_id,name,description,url,size,path,owner_id,remote_owner_id,parent_folder_id,remote_parent_folder_id,drive_id,remote_drive_id,created_at,updated_at,has_content,has_children,is_root,all_parent_folder_ids,remote_all_parent_folder_ids,unified_custom_fields | -| `id` | *::String* | :heavy_check_mark: | N/A | | -| `include` | *T.nilable(::String)* | :heavy_minus_sign: | The comma separated list of fields that will be included in the response | all_parent_folder_ids | -| `proxy` | T::Hash[Symbol, *::Object*] | :heavy_minus_sign: | Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key | | -| `raw` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Indicates that the raw request result should be returned in addition to the mapped result (default value is false) | | -| `x_account_id` | *::String* | :heavy_check_mark: | The account identifier | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `prefer` | *T.nilable(::String)* | :heavy_minus_sign: | Set to "heartbeat" to enable keep-alive newline heartbeats during long-running requests. Response includes Preference-Applied: heartbeat header when honored. (RFC 7240) | heartbeat | +| `fields_` | *T.nilable(::String)* | :heavy_minus_sign: | The comma separated list of fields that will be returned in the response (if empty, all fields are returned) | id,remote_id,name,description,icon,url,size,path,owner_id,remote_owner_id,parent_folder_id,remote_parent_folder_id,drive_id,remote_drive_id,created_at,updated_at,has_content,has_children,is_root,all_parent_folder_ids,remote_all_parent_folder_ids,unified_custom_fields | +| `id` | *::String* | :heavy_check_mark: | N/A | | +| `include` | *T.nilable(::String)* | :heavy_minus_sign: | The comma separated list of fields that will be included in the response | all_parent_folder_ids | +| `proxy` | T::Hash[Symbol, *::Object*] | :heavy_minus_sign: | Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key | | +| `raw` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Indicates that the raw request result should be returned in addition to the mapped result (default value is false) | | +| `x_account_id` | *::String* | :heavy_check_mark: | The account identifier | | \ No newline at end of file diff --git a/docs/models/operations/documentslistfilesrequest.md b/docs/models/operations/documentslistfilesrequest.md index f1c5d330d..6a9cea93a 100644 --- a/docs/models/operations/documentslistfilesrequest.md +++ b/docs/models/operations/documentslistfilesrequest.md @@ -3,19 +3,19 @@ ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `prefer` | *T.nilable(::String)* | :heavy_minus_sign: | Set to "heartbeat" to enable keep-alive newline heartbeats during long-running requests. Response includes Preference-Applied: heartbeat header when honored. (RFC 7240) | heartbeat | -| `fields_` | *T.nilable(::String)* | :heavy_minus_sign: | The comma separated list of fields that will be returned in the response (if empty, all fields are returned) | id,remote_id,name,description,url,size,file_format,path,owner_id,remote_owner_id,folder_id,remote_folder_id,drive_id,remote_drive_id,export_formats,default_download_format,created_at,updated_at,has_content,has_children,all_parent_folder_ids,remote_all_parent_folder_ids,unified_custom_fields | -| `filter` | [T.nilable(Models::Operations::DocumentsListFilesQueryParamFilter)](../../models/operations/documentslistfilesqueryparamfilter.md) | :heavy_minus_sign: | Documents Files Filter | | -| `folder_id` | *T.nilable(::String)* | :heavy_minus_sign: | Use to only include Files within the specified Folder. Required when requesting nested items | 1234567890 | -| `include` | *T.nilable(::String)* | :heavy_minus_sign: | The comma separated list of fields that will be included in the response | all_parent_folder_ids | -| `nested_items` | *T.nilable(::String)* | :heavy_minus_sign: | When "true" and used with filter[folder_id], the response includes Files and Files within descendant Folders | true | -| `next_` | *T.nilable(::String)* | :heavy_minus_sign: | The unified cursor | | -| ~~`page`~~ | *T.nilable(::String)* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

The page number of the results to fetch | | -| `page_size` | *T.nilable(::String)* | :heavy_minus_sign: | The number of results per page (default value is 25) | | -| `proxy` | T::Hash[Symbol, *::Object*] | :heavy_minus_sign: | Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key | | -| `raw` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Indicates that the raw request result should be returned in addition to the mapped result (default value is false) | | -| ~~`updated_after`~~ | [Date](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/Date.html) | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Use a string with a date to only select results updated after that given date | 2020-01-01T00:00:00.000Z | -| `x_account_id` | *::String* | :heavy_check_mark: | The account identifier | | -| `x_stackone_api_session_token` | *T.nilable(::String)* | :heavy_minus_sign: | The session token | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `prefer` | *T.nilable(::String)* | :heavy_minus_sign: | Set to "heartbeat" to enable keep-alive newline heartbeats during long-running requests. Response includes Preference-Applied: heartbeat header when honored. (RFC 7240) | heartbeat | +| `fields_` | *T.nilable(::String)* | :heavy_minus_sign: | The comma separated list of fields that will be returned in the response (if empty, all fields are returned) | id,remote_id,name,description,icon,url,size,file_format,path,owner_id,remote_owner_id,folder_id,remote_folder_id,drive_id,remote_drive_id,export_formats,default_download_format,created_at,updated_at,has_content,has_children,all_parent_folder_ids,remote_all_parent_folder_ids,unified_custom_fields | +| `filter` | [T.nilable(Models::Operations::DocumentsListFilesQueryParamFilter)](../../models/operations/documentslistfilesqueryparamfilter.md) | :heavy_minus_sign: | Documents Files Filter | | +| `folder_id` | *T.nilable(::String)* | :heavy_minus_sign: | Use to only include Files within the specified Folder. Required when requesting nested items | 1234567890 | +| `include` | *T.nilable(::String)* | :heavy_minus_sign: | The comma separated list of fields that will be included in the response | all_parent_folder_ids | +| `nested_items` | *T.nilable(::String)* | :heavy_minus_sign: | When "true" and used with filter[folder_id], the response includes Files and Files within descendant Folders | true | +| `next_` | *T.nilable(::String)* | :heavy_minus_sign: | The unified cursor | | +| ~~`page`~~ | *T.nilable(::String)* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

The page number of the results to fetch | | +| `page_size` | *T.nilable(::String)* | :heavy_minus_sign: | The number of results per page (default value is 25) | | +| `proxy` | T::Hash[Symbol, *::Object*] | :heavy_minus_sign: | Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key | | +| `raw` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Indicates that the raw request result should be returned in addition to the mapped result (default value is false) | | +| ~~`updated_after`~~ | [Date](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/Date.html) | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Use a string with a date to only select results updated after that given date | 2020-01-01T00:00:00.000Z | +| `x_account_id` | *::String* | :heavy_check_mark: | The account identifier | | +| `x_stackone_api_session_token` | *T.nilable(::String)* | :heavy_minus_sign: | The session token | | \ No newline at end of file diff --git a/docs/models/operations/documentslistfoldersrequest.md b/docs/models/operations/documentslistfoldersrequest.md index aa1ea6d25..49241d275 100644 --- a/docs/models/operations/documentslistfoldersrequest.md +++ b/docs/models/operations/documentslistfoldersrequest.md @@ -3,18 +3,18 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `prefer` | *T.nilable(::String)* | :heavy_minus_sign: | Set to "heartbeat" to enable keep-alive newline heartbeats during long-running requests. Response includes Preference-Applied: heartbeat header when honored. (RFC 7240) | heartbeat | -| `fields_` | *T.nilable(::String)* | :heavy_minus_sign: | The comma separated list of fields that will be returned in the response (if empty, all fields are returned) | id,remote_id,name,description,url,size,path,owner_id,remote_owner_id,parent_folder_id,remote_parent_folder_id,drive_id,remote_drive_id,created_at,updated_at,has_content,has_children,is_root,all_parent_folder_ids,remote_all_parent_folder_ids,unified_custom_fields | -| `filter` | [T.nilable(Models::Operations::DocumentsListFoldersQueryParamFilter)](../../models/operations/documentslistfoldersqueryparamfilter.md) | :heavy_minus_sign: | Documents Folders Filter | | -| `folder_id` | *T.nilable(::String)* | :heavy_minus_sign: | Use to only include Folders within the specified Folder. Required when requesting nested items | 1234567890 | -| `include` | *T.nilable(::String)* | :heavy_minus_sign: | The comma separated list of fields that will be included in the response | all_parent_folder_ids | -| `nested_items` | *T.nilable(::String)* | :heavy_minus_sign: | When "true" and used with filter[folder_id], the response includes Folders and their descendant Folders | true | -| `next_` | *T.nilable(::String)* | :heavy_minus_sign: | The unified cursor | | -| ~~`page`~~ | *T.nilable(::String)* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

The page number of the results to fetch | | -| `page_size` | *T.nilable(::String)* | :heavy_minus_sign: | The number of results per page (default value is 25) | | -| `proxy` | T::Hash[Symbol, *::Object*] | :heavy_minus_sign: | Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key | | -| `raw` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Indicates that the raw request result should be returned in addition to the mapped result (default value is false) | | -| ~~`updated_after`~~ | [Date](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/Date.html) | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Use a string with a date to only select results updated after that given date | 2020-01-01T00:00:00.000Z | -| `x_account_id` | *::String* | :heavy_check_mark: | The account identifier | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `prefer` | *T.nilable(::String)* | :heavy_minus_sign: | Set to "heartbeat" to enable keep-alive newline heartbeats during long-running requests. Response includes Preference-Applied: heartbeat header when honored. (RFC 7240) | heartbeat | +| `fields_` | *T.nilable(::String)* | :heavy_minus_sign: | The comma separated list of fields that will be returned in the response (if empty, all fields are returned) | id,remote_id,name,description,icon,url,size,path,owner_id,remote_owner_id,parent_folder_id,remote_parent_folder_id,drive_id,remote_drive_id,created_at,updated_at,has_content,has_children,is_root,all_parent_folder_ids,remote_all_parent_folder_ids,unified_custom_fields | +| `filter` | [T.nilable(Models::Operations::DocumentsListFoldersQueryParamFilter)](../../models/operations/documentslistfoldersqueryparamfilter.md) | :heavy_minus_sign: | Documents Folders Filter | | +| `folder_id` | *T.nilable(::String)* | :heavy_minus_sign: | Use to only include Folders within the specified Folder. Required when requesting nested items | 1234567890 | +| `include` | *T.nilable(::String)* | :heavy_minus_sign: | The comma separated list of fields that will be included in the response | all_parent_folder_ids | +| `nested_items` | *T.nilable(::String)* | :heavy_minus_sign: | When "true" and used with filter[folder_id], the response includes Folders and their descendant Folders | true | +| `next_` | *T.nilable(::String)* | :heavy_minus_sign: | The unified cursor | | +| ~~`page`~~ | *T.nilable(::String)* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

The page number of the results to fetch | | +| `page_size` | *T.nilable(::String)* | :heavy_minus_sign: | The number of results per page (default value is 25) | | +| `proxy` | T::Hash[Symbol, *::Object*] | :heavy_minus_sign: | Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key | | +| `raw` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Indicates that the raw request result should be returned in addition to the mapped result (default value is false) | | +| ~~`updated_after`~~ | [Date](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/Date.html) | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Use a string with a date to only select results updated after that given date | 2020-01-01T00:00:00.000Z | +| `x_account_id` | *::String* | :heavy_check_mark: | The account identifier | | \ No newline at end of file diff --git a/docs/models/operations/stackonemcpdeleterequest.md b/docs/models/operations/stackonemcpdeleterequest.md deleted file mode 100644 index 674f3cf4d..000000000 --- a/docs/models/operations/stackonemcpdeleterequest.md +++ /dev/null @@ -1,10 +0,0 @@ -# StackoneMcpDeleteRequest - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -| `mcp_session_id` | *::String* | :heavy_check_mark: | Session id | -| `x_account_id` | *T.nilable(::String)* | :heavy_minus_sign: | Account secure id for the target provider account (optional if x-account-id query parameter is provided) | -| `x_account_id_query_parameter` | *T.nilable(::Object)* | :heavy_minus_sign: | Account secure id (alternative to x-account-id header) | \ No newline at end of file diff --git a/docs/models/operations/stackonemcpdeleteresponse.md b/docs/models/operations/stackonemcpdeleteresponse.md deleted file mode 100644 index 611210bb2..000000000 --- a/docs/models/operations/stackonemcpdeleteresponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# StackoneMcpDeleteResponse - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | -| `content_type` | *::String* | :heavy_check_mark: | HTTP response content type for this operation | -| `headers` | T::Hash[Symbol, T::Array<*::String*>] | :heavy_check_mark: | N/A | -| `status_code` | *::Integer* | :heavy_check_mark: | HTTP response status code for this operation | -| `raw_response` | [Faraday::Response](https://www.rubydoc.info/gems/faraday/Faraday/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/stackonemcpdeletesecurity.md b/docs/models/operations/stackonemcpdeletesecurity.md deleted file mode 100644 index 257ecff96..000000000 --- a/docs/models/operations/stackonemcpdeletesecurity.md +++ /dev/null @@ -1,9 +0,0 @@ -# StackoneMcpDeleteSecurity - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| `api_key` | *T.nilable(::String)* | :heavy_minus_sign: | N/A | -| `basic` | [T.nilable(Models::Shared::SchemeBasic)](../../models/shared/schemebasic.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/stackonemcpgetrequest.md b/docs/models/operations/stackonemcpgetrequest.md deleted file mode 100644 index d5dd4407f..000000000 --- a/docs/models/operations/stackonemcpgetrequest.md +++ /dev/null @@ -1,10 +0,0 @@ -# StackoneMcpGetRequest - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -| `mcp_session_id` | *::String* | :heavy_check_mark: | Session id | -| `x_account_id` | *T.nilable(::String)* | :heavy_minus_sign: | Account secure id for the target provider account (optional if x-account-id query parameter is provided) | -| `x_account_id_query_parameter` | *T.nilable(::Object)* | :heavy_minus_sign: | Account secure id (alternative to x-account-id header) | \ No newline at end of file diff --git a/docs/models/operations/stackonemcpgetresponse.md b/docs/models/operations/stackonemcpgetresponse.md deleted file mode 100644 index 3376a9ca2..000000000 --- a/docs/models/operations/stackonemcpgetresponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# StackoneMcpGetResponse - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | -| `content_type` | *::String* | :heavy_check_mark: | HTTP response content type for this operation | -| `headers` | T::Hash[Symbol, T::Array<*::String*>] | :heavy_check_mark: | N/A | -| `status_code` | *::Integer* | :heavy_check_mark: | HTTP response status code for this operation | -| `raw_response` | [Faraday::Response](https://www.rubydoc.info/gems/faraday/Faraday/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/stackonemcpgetsecurity.md b/docs/models/operations/stackonemcpgetsecurity.md deleted file mode 100644 index 74698609f..000000000 --- a/docs/models/operations/stackonemcpgetsecurity.md +++ /dev/null @@ -1,9 +0,0 @@ -# StackoneMcpGetSecurity - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| `api_key` | *T.nilable(::String)* | :heavy_minus_sign: | N/A | -| `basic` | [T.nilable(Models::Shared::SchemeBasic)](../../models/shared/schemebasic.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/stackonemcppostrequest.md b/docs/models/operations/stackonemcppostrequest.md index a62d76c24..6063e8aa7 100644 --- a/docs/models/operations/stackonemcppostrequest.md +++ b/docs/models/operations/stackonemcppostrequest.md @@ -6,8 +6,8 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `json_rpc_message_dto` | [Models::Shared::JsonRpcMessageDto](../../models/shared/jsonrpcmessagedto.md) | :heavy_check_mark: | JSON-RPC 2.0 message | +| `apps` | [T.nilable(Models::Operations::Apps)](../../models/operations/apps.md) | :heavy_minus_sign: | MCP Apps panel: "off" (default) omits it, "on" registers the interactive toolset explorer. Only set it for hosts that render MCP Apps — a client with no iframe (a terminal) gets a tool whose result it cannot display | | `instructions` | [T.nilable(Models::Operations::Instructions)](../../models/operations/instructions.md) | :heavy_minus_sign: | Server `instructions` (returned in the MCP initialize handshake) that teach the model the path/query/body/headers parameter envelope: "off" (default) omits them, "on" includes envelope guidance matched to the active param-style | -| `mcp_session_id` | *T.nilable(::String)* | :heavy_minus_sign: | Session id; omit for initialize, include for subsequent calls | | `param_style` | [T.nilable(Models::Operations::ParamStyle)](../../models/operations/paramstyle.md) | :heavy_minus_sign: | Parameter schema style: "nested" (default) groups by location, "flat_prefixed" flattens with location prefix, "flat_smart" flattens and only prefixes on name collision | | `tool_mode` | [T.nilable(Models::Operations::ToolMode)](../../models/operations/toolmode.md) | :heavy_minus_sign: | Tool registration mode: "individual" (default) registers each action as a separate tool; "search_execute" registers two tools per linked account for a search-then-execute flow | | `x_account_id` | *T.nilable(::String)* | :heavy_minus_sign: | Account secure id for the target provider account (optional if x-account-id query parameter is provided) | diff --git a/docs/models/operations/stackonemcppostresponse.md b/docs/models/operations/stackonemcppostresponse.md index 91ea893ea..d75c54f9c 100644 --- a/docs/models/operations/stackonemcppostresponse.md +++ b/docs/models/operations/stackonemcppostresponse.md @@ -9,5 +9,4 @@ | `headers` | T::Hash[Symbol, T::Array<*::String*>] | :heavy_check_mark: | N/A | | `status_code` | *::Integer* | :heavy_check_mark: | HTTP response status code for this operation | | `raw_response` | [Faraday::Response](https://www.rubydoc.info/gems/faraday/Faraday/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [T.nilable(Models::Operations::StackoneMcpPostResponseBody)](../../models/operations/stackonemcppostresponsebody.md) | :heavy_minus_sign: | Processed successfully | -| `res` | *T.nilable(::String)* | :heavy_minus_sign: | Processed successfully | \ No newline at end of file +| `object` | [T.nilable(Models::Operations::StackoneMcpPostResponseBody)](../../models/operations/stackonemcppostresponsebody.md) | :heavy_minus_sign: | Processed successfully | \ No newline at end of file diff --git a/docs/models/operations/stackonerpcactionsyncedresponse.md b/docs/models/operations/stackonerpcactionsyncedresponse.md index 8a655ba53..de7942147 100644 --- a/docs/models/operations/stackonerpcactionsyncedresponse.md +++ b/docs/models/operations/stackonerpcactionsyncedresponse.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `actions_synced_response` | [T.nilable(Models::Shared::ActionsSyncedResponse)](../../models/shared/actionssyncedresponse.md) | :heavy_minus_sign: | Synced action data | -| `content_type` | *::String* | :heavy_check_mark: | HTTP response content type for this operation | -| `headers` | T::Hash[Symbol, T::Array<*::String*>] | :heavy_check_mark: | N/A | -| `status_code` | *::Integer* | :heavy_check_mark: | HTTP response status code for this operation | -| `raw_response` | [Faraday::Response](https://www.rubydoc.info/gems/faraday/Faraday/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `content_type` | *::String* | :heavy_check_mark: | HTTP response content type for this operation | +| `headers` | T::Hash[Symbol, T::Array<*::String*>] | :heavy_check_mark: | N/A | +| `status_code` | *::Integer* | :heavy_check_mark: | HTTP response status code for this operation | +| `raw_response` | [Faraday::Response](https://www.rubydoc.info/gems/faraday/Faraday/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `one_of` | [T.nilable(T.any(Models::Shared::ActionsSyncedResponse, Models::Shared::ActionsSyncedRefusal))](../../models/operations/stackonerpcactionsyncedresponsebody.md) | :heavy_minus_sign: | Synced action data, or a refusal payload explaining why none was returned. | \ No newline at end of file diff --git a/docs/models/operations/stackonerpcactionsyncedresponsebody.md b/docs/models/operations/stackonerpcactionsyncedresponsebody.md new file mode 100644 index 000000000..337d5b8d9 --- /dev/null +++ b/docs/models/operations/stackonerpcactionsyncedresponsebody.md @@ -0,0 +1,4 @@ +# StackoneRpcActionSyncedResponseBody + +Synced action data, or a refusal payload explaining why none was returned. + diff --git a/docs/models/shared/actionmetaitem.md b/docs/models/shared/actionmetaitem.md index 91de1314c..6240ae558 100644 --- a/docs/models/shared/actionmetaitem.md +++ b/docs/models/shared/actionmetaitem.md @@ -3,15 +3,16 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | -| `action_details` | T::Hash[Symbol, *::Object*] | :heavy_minus_sign: | The action details for the action | -| `authentication` | T::Array<[Models::Shared::AuthenticationMetaItem](../../models/shared/authenticationmetaitem.md)> | :heavy_minus_sign: | The authentication methods supported by this action | -| `description` | *T.nilable(::String)* | :heavy_minus_sign: | The action description | -| `id` | *T.nilable(::String)* | :heavy_minus_sign: | The action ID | -| `label` | *T.nilable(::String)* | :heavy_minus_sign: | The action label | -| `required_scopes` | T::Array<*::String*> | :heavy_minus_sign: | The required scopes for the action | -| `schema_type` | *T.nilable(::String)* | :heavy_minus_sign: | The schema type for the action | -| `supports_incremental` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Whether this action supports incremental syncs (has an incremental strategy). | -| `syncable` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Whether this action can be synced with the datasync v2 sync engine. | -| `tags` | T::Array<*::String*> | :heavy_minus_sign: | The tags associated with this action | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `action_details` | T::Hash[Symbol, *::Object*] | :heavy_minus_sign: | The action details for the action | +| `authentication` | T::Array<[Models::Shared::AuthenticationMetaItem](../../models/shared/authenticationmetaitem.md)> | :heavy_minus_sign: | The authentication methods supported by this action | +| `description` | *T.nilable(::String)* | :heavy_minus_sign: | The action description | +| `has_required_parameters` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Whether this action requires parameters to be supplied when it is synced. Such actions cannot be linked automatically for every account — each schedule must be created with its parameter values. | +| `id` | *T.nilable(::String)* | :heavy_minus_sign: | The action ID | +| `label` | *T.nilable(::String)* | :heavy_minus_sign: | The action label | +| `required_scopes` | T::Array<*::String*> | :heavy_minus_sign: | The required scopes for the action | +| `schema_type` | *T.nilable(::String)* | :heavy_minus_sign: | The schema type for the action | +| `supports_incremental` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Whether this action supports incremental syncs (has an incremental strategy). | +| `syncable` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Whether this action can be synced with the datasync v2 sync engine. | +| `tags` | T::Array<*::String*> | :heavy_minus_sign: | The tags associated with this action | \ No newline at end of file diff --git a/docs/models/shared/actionsrpcsyncedrequestdto.md b/docs/models/shared/actionsrpcsyncedrequestdto.md index bb3c3a097..46a4c6921 100644 --- a/docs/models/shared/actionsrpcsyncedrequestdto.md +++ b/docs/models/shared/actionsrpcsyncedrequestdto.md @@ -3,11 +3,16 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | -| `action` | *::String* | :heavy_check_mark: | The action to execute | create_employee | -| `body` | T::Hash[Symbol, *::Object*] | :heavy_minus_sign: | Request body for the action. Must match the body used when the run was written so the params_hash resolves to the same synced run. | {
"search": "John"
} | -| `filter` | T::Hash[Symbol, *::Object*] | :heavy_minus_sign: | Filter parameters to scope the synced action | {
"status": "active"
} | -| `headers` | T::Hash[Symbol, *::Object*] | :heavy_minus_sign: | Headers for the action. Must match the headers used when the run was written so the params_hash resolves to the same synced run. | {
"x-custom-header": "value"
} | -| `path` | T::Hash[Symbol, *::Object*] | :heavy_minus_sign: | Path parameters for the action | {
"id": "123"
} | -| `query` | T::Hash[Symbol, *::Object*] | :heavy_minus_sign: | Query parameters for the action. Must match the query params used when the run was written so the params_hash resolves to the same synced run. | {
"account_id": "abc"
} | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `action` | *::String* | :heavy_check_mark: | The action to execute | create_employee | +| `aggs` | T::Hash[Symbol, *::Object*] | :heavy_minus_sign: | OpenSearch aggregations object. When set, aggregation results are returned instead of records, and `source`, `sort`, `page_size` and `skip` are ignored (`filter` still applies). | {
"by_status": {
"terms": {
"field": "employment_status"
}
}
} | +| ~~`body`~~ | T::Hash[Symbol, *::Object*] | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Accepted for backwards compatibility but ignored on this endpoint: synced reads no longer select the run by request body. Use `sync_id` to choose which sync to read. | {
"search": "John"
} | +| `filter` | T::Hash[Symbol, *::Object*] | :heavy_minus_sign: | OpenSearch-style filter (Query DSL) (term / terms / range / wildcard / match / match_phrase / exists / bool) over synced fields. match / match_phrase do word-level search (string fields only, case-insensitive); wildcard matches patterns (case-sensitive). Use field names exactly as returned in the action's "queryable_fields". | {
"match": {
"description": "onboarding"
}
} | +| ~~`headers`~~ | T::Hash[Symbol, *::Object*] | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Accepted for backwards compatibility but ignored on this endpoint: synced reads no longer select the run by headers. Use `sync_id` to choose which sync to read. | {
"x-custom-header": "value"
} | +| ~~`path`~~ | T::Hash[Symbol, *::Object*] | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Accepted for backwards compatibility but ignored on this endpoint: synced reads no longer select the run by path parameters. Use `sync_id` to choose which sync to read. | {
"id": "123"
} | +| ~~`query`~~ | T::Hash[Symbol, *::Object*] | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Accepted for backwards compatibility but ignored on this endpoint: synced reads no longer select the run by query parameters. Use `sync_id` to choose which sync to read. | {
"account_id": "abc"
} | +| `search` | *T.nilable(::String)* | :heavy_minus_sign: | Free-text search over the record's text fields, ranked by relevance. Supports "quoted phrases", +required / -excluded terms, and prefix* — lenient (never errors). Combine with `filter` to narrow; results are relevance-ranked unless an explicit sort is given. | onboarding safety | +| `sort` | T::Array<*::Object*> | :heavy_minus_sign: | OpenSearch-style sort. Each entry is either a field name (ascending) or an object keyed by field name: `{"last_name": "desc"}`, or the nested form `{"last_name": {"order": "desc"}}`. Earlier entries take priority. | [
{
"last_name": "desc"
}
] | +| `source` | T::Array<*::String*> | :heavy_minus_sign: | Field names to return (projection) — omit to return all fields. Shrinks the response. | [
"first_name",
"email"
] | +| `sync_id` | *T.nilable(::String)* | :heavy_minus_sign: | Which sync to read, when the account has more than one sync of this action. Omit when there is only one; a named sync is never substituted if it is gone. | sch_01J8Z3Q4 | \ No newline at end of file diff --git a/docs/models/shared/actionssynceddatasync.md b/docs/models/shared/actionssynceddatasync.md index 5de2acb03..a23952f4f 100644 --- a/docs/models/shared/actionssynceddatasync.md +++ b/docs/models/shared/actionssynceddatasync.md @@ -10,4 +10,6 @@ | `params_hash` | *::String* | :heavy_check_mark: | Hash of the canonicalized sync parameters (pagination and undeclared keys stripped) | | `request_id` | *::String* | :heavy_check_mark: | The unique request ID for this sync read | | `sync_expires_at` | *::String* | :heavy_check_mark: | ISO 8601 timestamp of when the synced data expires | +| `sync_id` | *::String* | :heavy_check_mark: | Which sync served this read. | +| `sync_name` | *::String* | :heavy_check_mark: | The served sync's raw name. Not unique, and may be the bare action id. | | `synced_at` | *::String* | :heavy_check_mark: | ISO 8601 timestamp of when the data was synced | \ No newline at end of file diff --git a/docs/models/shared/actionssyncedrefusal.md b/docs/models/shared/actionssyncedrefusal.md new file mode 100644 index 000000000..a842c9600 --- /dev/null +++ b/docs/models/shared/actionssyncedrefusal.md @@ -0,0 +1,11 @@ +# ActionsSyncedRefusal + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | +| `action_id` | *::String* | :heavy_check_mark: | The action this refusal is about. | +| `message` | *::String* | :heavy_check_mark: | Human-readable explanation of why no data was returned. | +| `synced` | *T::Boolean* | :heavy_check_mark: | Always false: no synced data was returned. | +| `syncs` | T::Array<[Models::Shared::ActionsSyncedSyncChoice](../../models/shared/actionssyncedsyncchoice.md)> | :heavy_minus_sign: | Present when the account has more than one sync of this action: the sync_id choices — pass one as `sync_id` to disambiguate. | \ No newline at end of file diff --git a/docs/models/shared/actionssyncedresponse.md b/docs/models/shared/actionssyncedresponse.md index 527acebbe..d2efbf83e 100644 --- a/docs/models/shared/actionssyncedresponse.md +++ b/docs/models/shared/actionssyncedresponse.md @@ -3,7 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `data` | T::Array | :heavy_minus_sign: | The synced records for the requested action | -| `datasync` | [Models::Shared::ActionsSyncedDatasync](../../models/shared/actionssynceddatasync.md) | :heavy_check_mark: | Metadata about the datasync operation | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | +| `aggregations` | T::Hash[Symbol, *::Object*] | :heavy_minus_sign: | Present instead of `data` when the request set `aggs`: the OpenSearch aggregation results, keyed the same as the requested `aggs`. | +| `data` | T::Array | :heavy_minus_sign: | The synced records for the requested action | +| `datasync` | [Models::Shared::ActionsSyncedDatasync](../../models/shared/actionssynceddatasync.md) | :heavy_check_mark: | Metadata about the datasync operation | \ No newline at end of file diff --git a/docs/models/shared/actionssyncedsyncchoice.md b/docs/models/shared/actionssyncedsyncchoice.md new file mode 100644 index 000000000..796939efb --- /dev/null +++ b/docs/models/shared/actionssyncedsyncchoice.md @@ -0,0 +1,10 @@ +# ActionsSyncedSyncChoice + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | +| `sync_id` | *::String* | :heavy_check_mark: | Pass this as `sync_id` to select this sync. | +| `sync_label` | *::String* | :heavy_check_mark: | Disambiguated label: the name, with parameters appended when the name alone does not distinguish this choice from another. | +| `sync_name` | *::String* | :heavy_check_mark: | The sync's raw name. Not unique, and may be the bare action id. | \ No newline at end of file diff --git a/docs/models/shared/files.md b/docs/models/shared/files.md index 301b40fb6..ec0449ee5 100644 --- a/docs/models/shared/files.md +++ b/docs/models/shared/files.md @@ -15,6 +15,7 @@ | `folder_id` | *T.nilable(::String)* | :heavy_minus_sign: | The parent folder ID associated with this file | c28xyrc55866bvuv | | `has_children` | [T.nilable(T.any(T::Boolean, Models::Shared::Files2))](../../models/shared/haschildren.md) | :heavy_minus_sign: | Whether the file has children | true | | `has_content` | [T.nilable(T.any(T::Boolean, Models::Shared::FilesSchemas2))](../../models/shared/hascontent.md) | :heavy_minus_sign: | Whether the file has content | true | +| `icon` | *T.nilable(::String)* | :heavy_minus_sign: | The icon of the file, either an emoji character or an image url | 📄 | | `id` | *T.nilable(::String)* | :heavy_minus_sign: | Unique identifier | 8187e5da-dc77-475e-9949-af0f1fa4e4e3 | | `name` | *T.nilable(::String)* | :heavy_minus_sign: | The name associated with this file | Information-Technology | | `owner_id` | *T.nilable(::String)* | :heavy_minus_sign: | The user ID of owner of this file | c28xyrc55866bvuv | diff --git a/docs/models/shared/folders.md b/docs/models/shared/folders.md index bd26f741d..63f2915e7 100644 --- a/docs/models/shared/folders.md +++ b/docs/models/shared/folders.md @@ -11,6 +11,7 @@ | `drive_id` | *T.nilable(::String)* | :heavy_minus_sign: | The parent drive ID associated with this folder | c28xyrc55866bvuv | | `has_children` | [T.nilable(T.any(T::Boolean, Models::Shared::Folders2))](../../models/shared/foldershaschildren.md) | :heavy_minus_sign: | Whether the folder has children | true | | `has_content` | [T.nilable(T.any(T::Boolean, Models::Shared::FoldersSchemas2))](../../models/shared/foldershascontent.md) | :heavy_minus_sign: | Whether the folder has content | true | +| `icon` | *T.nilable(::String)* | :heavy_minus_sign: | The icon of the folder, either an emoji character or an image url | 📁 | | `id` | *T.nilable(::String)* | :heavy_minus_sign: | Unique identifier | 8187e5da-dc77-475e-9949-af0f1fa4e4e3 | | `is_root` | [T.nilable(T.any(T::Boolean, Models::Shared::FoldersSchemasIsRoot2))](../../models/shared/isroot.md) | :heavy_minus_sign: | Whether the folder is at the root level of the drive | true | | `name` | *T.nilable(::String)* | :heavy_minus_sign: | The name associated with this folder | Information-Technology | diff --git a/docs/sdks/actions/README.md b/docs/sdks/actions/README.md index de0962eaf..cec4fb07f 100644 --- a/docs/sdks/actions/README.md +++ b/docs/sdks/actions/README.md @@ -274,7 +274,7 @@ end ## rpc_action_synced -Returns previously synced data for the specified action from the OpenSearch index +Returns previously synced data for the specified action from the OpenSearch index. The 200 response is one of two shapes: `ActionsSyncedResponse` when a sync served the read (its `data`, or `aggregations` instead of `data` when the request set `aggs`), or `ActionsSyncedRefusal` (`synced: false`) when nothing has been synced for this action yet, or the account has more than one sync of it and `sync_id` was not given to choose one — `syncs` then lists the available choices. A `sync_id` that names a sync which no longer exists is a caller error and is rejected with 400, not returned as a 200 shape. ### Example Usage @@ -291,24 +291,30 @@ s = ::StackOne::StackOne.new( ) res = s.actions.rpc_action_synced(actions_rpc_synced_request_dto: Models::Shared::ActionsRpcSyncedRequestDto.new( action: 'create_employee', - body: { - 'search' => 'John', + aggs: { + 'by_status' => { + 'terms' => { + 'field' => 'employment_status', + }, + }, }, filter: { 'status' => 'active', }, - headers: { - 'x-custom-header' => 'value', - }, - path: { - 'id' => '123', - }, - query: { - 'account_id' => 'abc', - } + search: 'onboarding safety', + sort: [ + { + 'last_name' => 'desc', + }, + ], + source: [ + 'first_name', + 'email', + ], + sync_id: 'sch_01J8Z3Q4' ), page_size: 25.0, skip: 0.0) -unless res.actions_synced_response.nil? +unless res.one_of.nil? # handle response end diff --git a/docs/sdks/mcp/README.md b/docs/sdks/mcp/README.md index 1e29bd469..445a8be08 100644 --- a/docs/sdks/mcp/README.md +++ b/docs/sdks/mcp/README.md @@ -6,114 +6,8 @@ Model Context Protocol endpoint. ### Available Operations -* [mcp_delete](#mcp_delete) - Delete MCP session -* [mcp_get](#mcp_get) - Open MCP SSE stream * [mcp_post](#mcp_post) - Send MCP JSON-RPC message -## mcp_delete - -Close an existing MCP session for the provided session id - -### Example Usage - - -```ruby -require 'stackone_client' - -Models = ::StackOne::Models -s = ::StackOne::StackOne.new -res = s.mcp.mcp_delete(security: Models::Operations::StackoneMcpDeleteSecurity.new( - api_key: '' -), mcp_session_id: '', x_account_id: '') - -if res.status_code == 200 - # handle response -end - -``` - -### Parameters - -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -| `security` | [Models::Operations::StackoneMcpDeleteSecurity](../../models/operations/stackonemcpdeletesecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | -| `mcp_session_id` | *::String* | :heavy_check_mark: | Session id | -| `x_account_id` | *T.nilable(::String)* | :heavy_minus_sign: | Account secure id for the target provider account (optional if x-account-id query parameter is provided) | -| `x_account_id_query_parameter` | *T.nilable(::Object)* | :heavy_minus_sign: | Account secure id (alternative to x-account-id header) | - -### Response - -**[T.nilable(Models::Operations::StackoneMcpDeleteResponse)](../../models/operations/stackonemcpdeleteresponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | -| Models::Errors::BadRequestResponse | 400 | application/json | -| Models::Errors::UnauthorizedResponse | 401 | application/json | -| Models::Errors::ForbiddenResponse | 403 | application/json | -| Models::Errors::NotFoundResponse | 404 | application/json | -| Models::Errors::RequestTimedOutResponse | 408 | application/json | -| Models::Errors::ConflictResponse | 409 | application/json | -| Models::Errors::UnprocessableEntityResponse | 422 | application/json | -| Models::Errors::TooManyRequestsResponse | 429 | application/json | -| Models::Errors::InternalServerErrorResponse | 500 | application/json | -| Models::Errors::NotImplementedResponse | 501 | application/json | -| Models::Errors::BadGatewayResponse | 502 | application/json | -| Errors::APIError | 4XX, 5XX | \*/\* | - -## mcp_get - -Open a dedicated Server-Sent Events stream for MCP notifications - -### Example Usage - - -```ruby -require 'stackone_client' - -Models = ::StackOne::Models -s = ::StackOne::StackOne.new -res = s.mcp.mcp_get(security: Models::Operations::StackoneMcpGetSecurity.new( - api_key: '' -), mcp_session_id: '', x_account_id: '') - -if res.status_code == 200 - # handle response -end - -``` - -### Parameters - -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -| `security` | [Models::Operations::StackoneMcpGetSecurity](../../models/operations/stackonemcpgetsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | -| `mcp_session_id` | *::String* | :heavy_check_mark: | Session id | -| `x_account_id` | *T.nilable(::String)* | :heavy_minus_sign: | Account secure id for the target provider account (optional if x-account-id query parameter is provided) | -| `x_account_id_query_parameter` | *T.nilable(::Object)* | :heavy_minus_sign: | Account secure id (alternative to x-account-id header) | - -### Response - -**[T.nilable(Models::Operations::StackoneMcpGetResponse)](../../models/operations/stackonemcpgetresponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | -| Models::Errors::BadRequestResponse | 400 | application/json | -| Models::Errors::UnauthorizedResponse | 401 | application/json | -| Models::Errors::ForbiddenResponse | 403 | application/json | -| Models::Errors::NotFoundResponse | 404 | application/json | -| Models::Errors::RequestTimedOutResponse | 408 | application/json | -| Models::Errors::ConflictResponse | 409 | application/json | -| Models::Errors::UnprocessableEntityResponse | 422 | application/json | -| Models::Errors::TooManyRequestsResponse | 429 | application/json | -| Models::Errors::InternalServerErrorResponse | 500 | application/json | -| Models::Errors::NotImplementedResponse | 501 | application/json | -| Models::Errors::BadGatewayResponse | 502 | application/json | -| Errors::APIError | 4XX, 5XX | \*/\* | - ## mcp_post Send JSON-RPC request to the MCP server over HTTP streaming transport diff --git a/gen.yaml b/gen.yaml index 0b7fa8000..eafa1eab7 100644 --- a/gen.yaml +++ b/gen.yaml @@ -27,7 +27,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false ruby: - version: 0.41.1 + version: 0.41.2 additionalDependencies: development: {} runtime: {} diff --git a/lib/stack_one/accounting.rb b/lib/stack_one/accounting.rb index 99b98a89e..78f243174 100644 --- a/lib/stack_one/accounting.rb +++ b/lib/stack_one/accounting.rb @@ -97,7 +97,7 @@ def batch_create_company_journals(accounting_journal_batch_create_request_dto:, connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -411,7 +411,7 @@ def create_company_journal(accounting_journal_create_request_dto:, id:, x_accoun connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -709,7 +709,7 @@ def get_company(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -1007,7 +1007,7 @@ def get_company_account(request:, retries: nil, timeout_ms: nil, http_headers: n connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -1305,7 +1305,7 @@ def get_company_journal(request:, retries: nil, timeout_ms: nil, http_headers: n connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -1603,7 +1603,7 @@ def get_company_tax_rate(request:, retries: nil, timeout_ms: nil, http_headers: connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -1896,7 +1896,7 @@ def list_companies(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -2224,7 +2224,7 @@ def list_company_accounts(request:, retries: nil, timeout_ms: nil, http_headers: connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -2553,7 +2553,7 @@ def list_company_journals(request:, retries: nil, timeout_ms: nil, http_headers: connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -2882,7 +2882,7 @@ def list_company_tax_rates(request:, retries: nil, timeout_ms: nil, http_headers connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, diff --git a/lib/stack_one/accounts.rb b/lib/stack_one/accounts.rb index 8fecf98b5..9895e8c6c 100644 --- a/lib/stack_one/accounts.rb +++ b/lib/stack_one/accounts.rb @@ -82,7 +82,7 @@ def delete_account(id:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -367,7 +367,7 @@ def get_account(id:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -654,7 +654,7 @@ def get_account_meta_info(id:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -932,7 +932,7 @@ def list_linked_accounts(request:, retries: nil, timeout_ms: nil, http_headers: connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -1230,7 +1230,7 @@ def update_account(patch_account_external_dto:, id:, retries: nil, timeout_ms: n connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, diff --git a/lib/stack_one/actions.rb b/lib/stack_one/actions.rb index 61fa28650..db17c7cf0 100644 --- a/lib/stack_one/actions.rb +++ b/lib/stack_one/actions.rb @@ -86,7 +86,7 @@ def build_action_embeddings(request:, retries: nil, timeout_ms: nil, http_header connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -381,7 +381,7 @@ def check_permissions(check_permissions_request_dto:, x_account_id:, prefer: nil connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -661,7 +661,7 @@ def list_actions_meta(request:, retries: nil, timeout_ms: nil, http_headers: nil connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -985,7 +985,7 @@ def rpc_action(actions_rpc_request_dto:, x_account_id:, debug: nil, x_connector_ connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -1234,7 +1234,7 @@ def rpc_action(actions_rpc_request_dto:, x_account_id:, debug: nil, x_connector_ sig { params(actions_rpc_synced_request_dto: Models::Shared::ActionsRpcSyncedRequestDto, page_size: T.nilable(::Float), skip: T.nilable(::Float), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::StackoneRpcActionSyncedResponse) } def rpc_action_synced(actions_rpc_synced_request_dto:, page_size: nil, skip: nil, retries: nil, timeout_ms: nil, http_headers: nil) # rpc_action_synced - Read synced action data from the datasync index - # Returns previously synced data for the specified action from the OpenSearch index + # Returns previously synced data for the specified action from the OpenSearch index. The 200 response is one of two shapes: `ActionsSyncedResponse` when a sync served the read (its `data`, or `aggregations` instead of `data` when the request set `aggs`), or `ActionsSyncedRefusal` (`synced: false`) when nothing has been synced for this action yet, or the account has more than one sync of it and `sync_id` was not given to choose one — `syncs` then lists the available choices. A `sync_id` that names a sync which no longer exists is a caller error and is rejected with 400, not returned as a 200 shape. # # If set, this operation will use `password` from the global security. request = Models::Operations::StackoneRpcActionSyncedRequest.new( @@ -1282,7 +1282,7 @@ def rpc_action_synced(actions_rpc_synced_request_dto:, page_size: nil, skip: nil connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -1350,13 +1350,13 @@ def rpc_action_synced(actions_rpc_synced_request_dto:, page_size: nil, skip: nil response: http_response ) response_data = http_response.env.response_body - obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::ActionsSyncedResponse) + obj = Crystalline.unmarshal_json(JSON.parse(response_data), Crystalline::Union.new(Models::Shared::ActionsSyncedResponse, Models::Shared::ActionsSyncedRefusal)) response = Models::Operations::StackoneRpcActionSyncedResponse.new( status_code: http_response.status, content_type: content_type, raw_response: http_response, headers: {}, - actions_synced_response: T.unsafe(obj) + one_of: T.unsafe(obj) ) return response @@ -1572,7 +1572,7 @@ def search_actions(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, diff --git a/lib/stack_one/ats.rb b/lib/stack_one/ats.rb index 84c2f3473..d27953af9 100644 --- a/lib/stack_one/ats.rb +++ b/lib/stack_one/ats.rb @@ -91,7 +91,7 @@ def create_application(ats_create_application_request_dto:, x_account_id:, prefe connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -405,7 +405,7 @@ def create_application_note(ats_create_notes_request_dto:, id:, x_account_id:, p connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -713,7 +713,7 @@ def create_background_check_package(ats_create_background_check_packages_request connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -1021,7 +1021,7 @@ def create_candidate(ats_create_candidate_request_dto:, x_account_id:, prefer: n connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -1335,7 +1335,7 @@ def create_candidate_note(ats_create_notes_request_dto:, id:, x_account_id:, pre connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -1649,7 +1649,7 @@ def create_interview_note(ats_create_notes_request_dto:, id:, x_account_id:, pre connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -1957,7 +1957,7 @@ def create_job(ats_create_job_request_dto:, x_account_id:, prefer: nil, retries: connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -2265,7 +2265,7 @@ def create_offer(ats_create_offer_request_dto:, x_account_id:, prefer: nil, retr connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -2567,7 +2567,7 @@ def delete_background_check_package(id:, x_account_id:, prefer: nil, retries: ni connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -2864,7 +2864,7 @@ def download_application_document(request:, retries: nil, timeout_ms: nil, accep connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -3754,7 +3754,7 @@ def get_application(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -4052,7 +4052,7 @@ def get_application_custom_field_definition(request:, retries: nil, timeout_ms: connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -4350,7 +4350,7 @@ def get_application_document(request:, retries: nil, timeout_ms: nil, http_heade connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -4648,7 +4648,7 @@ def get_application_document_category(request:, retries: nil, timeout_ms: nil, h connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -4946,7 +4946,7 @@ def get_application_note(request:, retries: nil, timeout_ms: nil, http_headers: connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -5244,7 +5244,7 @@ def get_application_offer(request:, retries: nil, timeout_ms: nil, http_headers: connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -5542,7 +5542,7 @@ def get_application_scheduled_interview(request:, retries: nil, timeout_ms: nil, connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -5840,7 +5840,7 @@ def get_application_scorecard(request:, retries: nil, timeout_ms: nil, http_head connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -6138,7 +6138,7 @@ def get_application_stage(request:, retries: nil, timeout_ms: nil, http_headers: connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -6436,7 +6436,7 @@ def get_assessments_package(request:, retries: nil, timeout_ms: nil, http_header connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -6734,7 +6734,7 @@ def get_background_check_package(request:, retries: nil, timeout_ms: nil, http_h connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -7032,7 +7032,7 @@ def get_candidate(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -7330,7 +7330,7 @@ def get_candidate_custom_field_definition(request:, retries: nil, timeout_ms: ni connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -7628,7 +7628,7 @@ def get_candidate_note(request:, retries: nil, timeout_ms: nil, http_headers: ni connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -7926,7 +7926,7 @@ def get_department(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -8224,7 +8224,7 @@ def get_interview(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -8524,7 +8524,7 @@ def get_interview_stage(request:, retries: nil, timeout_ms: nil, http_headers: n connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -8822,7 +8822,7 @@ def get_job(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -9120,7 +9120,7 @@ def get_job_application_stage(request:, retries: nil, timeout_ms: nil, http_head connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -9418,7 +9418,7 @@ def get_job_custom_field_definition(request:, retries: nil, timeout_ms: nil, htt connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -9716,7 +9716,7 @@ def get_job_posting(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -10014,7 +10014,7 @@ def get_list(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -10312,7 +10312,7 @@ def get_location(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -10610,7 +10610,7 @@ def get_offer(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -10908,7 +10908,7 @@ def get_rejected_reason(request:, retries: nil, timeout_ms: nil, http_headers: n connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -11206,7 +11206,7 @@ def get_user(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -11504,7 +11504,7 @@ def list_application_changes(request:, retries: nil, timeout_ms: nil, http_heade connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -11826,7 +11826,7 @@ def list_application_custom_field_definitions(request:, retries: nil, timeout_ms connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -12149,7 +12149,7 @@ def list_application_document_categories(request:, retries: nil, timeout_ms: nil connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -12477,7 +12477,7 @@ def list_application_documents(request:, retries: nil, timeout_ms: nil, http_hea connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -12807,7 +12807,7 @@ def list_application_notes(request:, retries: nil, timeout_ms: nil, http_headers connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -13137,7 +13137,7 @@ def list_application_scorecards(request:, retries: nil, timeout_ms: nil, http_he connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -13462,7 +13462,7 @@ def list_application_stages(request:, retries: nil, timeout_ms: nil, http_header connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -13786,7 +13786,7 @@ def list_applications(request:, retries: nil, timeout_ms: nil, http_headers: nil connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -14118,7 +14118,7 @@ def list_applications_offers(request:, retries: nil, timeout_ms: nil, http_heade connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -14448,7 +14448,7 @@ def list_applications_scheduled_interviews(request:, retries: nil, timeout_ms: n connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -14773,7 +14773,7 @@ def list_assessments_packages(request:, retries: nil, timeout_ms: nil, http_head connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -15096,7 +15096,7 @@ def list_background_check_packages(request:, retries: nil, timeout_ms: nil, http connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -15419,7 +15419,7 @@ def list_candidate_custom_field_definitions(request:, retries: nil, timeout_ms: connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -15747,7 +15747,7 @@ def list_candidate_notes(request:, retries: nil, timeout_ms: nil, http_headers: connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -16072,7 +16072,7 @@ def list_candidates(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -16397,7 +16397,7 @@ def list_departments(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -16723,7 +16723,7 @@ def list_interview_stages(request:, retries: nil, timeout_ms: nil, http_headers: connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -17047,7 +17047,7 @@ def list_interviews(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -17376,7 +17376,7 @@ def list_job_application_stages(request:, retries: nil, timeout_ms: nil, http_he connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -17701,7 +17701,7 @@ def list_job_custom_field_definitions(request:, retries: nil, timeout_ms: nil, h connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -18024,7 +18024,7 @@ def list_job_postings(request:, retries: nil, timeout_ms: nil, http_headers: nil connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -18349,7 +18349,7 @@ def list_jobs(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -18675,7 +18675,7 @@ def list_lists(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -18998,7 +18998,7 @@ def list_locations(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -19322,7 +19322,7 @@ def list_offers(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -19646,7 +19646,7 @@ def list_rejected_reasons(request:, retries: nil, timeout_ms: nil, http_headers: connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -19970,7 +19970,7 @@ def list_users(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -20315,7 +20315,7 @@ def move_application(ats_move_application_request_dto:, id:, x_account_id:, pref connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -20623,7 +20623,7 @@ def order_assessments_request(ats_create_candidates_assessments_request_dto:, x_ connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -20931,7 +20931,7 @@ def order_background_check_request(ats_create_background_check_order_request_dto connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -21245,7 +21245,7 @@ def reject_application(ats_reject_application_request_dto:, id:, x_account_id:, connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -21559,7 +21559,7 @@ def update_application(ats_update_application_request_dto:, id:, x_account_id:, connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -21867,7 +21867,7 @@ def update_application_note(request:, retries: nil, timeout_ms: nil, http_header connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -22181,7 +22181,7 @@ def update_assessments_result(ats_update_candidates_assessments_results_request_ connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -22495,7 +22495,7 @@ def update_background_check_package(ats_update_background_check_packages_request connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -22809,7 +22809,7 @@ def update_background_check_result(ats_update_background_check_result_request_dt connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -23123,7 +23123,7 @@ def update_candidate(ats_update_candidate_request_dto:, id:, x_account_id:, pref connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -23431,7 +23431,7 @@ def update_interview_note(request:, retries: nil, timeout_ms: nil, http_headers: connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -23745,7 +23745,7 @@ def update_job(ats_update_job_request_dto:, id:, x_account_id:, prefer: nil, ret connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -24058,7 +24058,7 @@ def upload_application_document(ats_documents_upload_request_dto:, id:, x_accoun connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, diff --git a/lib/stack_one/auth_configs.rb b/lib/stack_one/auth_configs.rb index e9081d919..4deaabecd 100644 --- a/lib/stack_one/auth_configs.rb +++ b/lib/stack_one/auth_configs.rb @@ -84,7 +84,7 @@ def list_auth_configs(connector_key: nil, enabled: nil, page: nil, page_size: ni connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, diff --git a/lib/stack_one/connect_sessions.rb b/lib/stack_one/connect_sessions.rb index 8321f7b1f..455c9881a 100644 --- a/lib/stack_one/connect_sessions.rb +++ b/lib/stack_one/connect_sessions.rb @@ -85,7 +85,7 @@ def authenticate_connect_session(request:, retries: nil, timeout_ms: nil, http_h connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -374,7 +374,7 @@ def create_connect_session(request:, retries: nil, timeout_ms: nil, http_headers connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -660,7 +660,7 @@ def get_connect_session(id:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, diff --git a/lib/stack_one/connector_profiles.rb b/lib/stack_one/connector_profiles.rb index cc9ca9ce2..b9ee8e40f 100644 --- a/lib/stack_one/connector_profiles.rb +++ b/lib/stack_one/connector_profiles.rb @@ -83,7 +83,7 @@ def delete_connector_profile_pinned_version(connector_profile_id:, retries: nil, connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -360,7 +360,7 @@ def get_connector_profile_pinned_version(connector_profile_id:, retries: nil, ti connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -646,7 +646,7 @@ def list_connector_profile_versions(connector_profile_id:, retries: nil, timeout connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -931,7 +931,7 @@ def list_connector_profiles(connector_key: nil, enabled: nil, page: nil, page_si connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -1230,7 +1230,7 @@ def upsert_connector_profile_pinned_version(upsert_connector_profile_pinned_vers connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, diff --git a/lib/stack_one/connectors.rb b/lib/stack_one/connectors.rb index 625370d61..79f8e72cc 100644 --- a/lib/stack_one/connectors.rb +++ b/lib/stack_one/connectors.rb @@ -86,7 +86,7 @@ def get_connector_meta(provider:, include: nil, retries: nil, timeout_ms: nil, h connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -370,7 +370,7 @@ def list_connectors_meta(include: nil, retries: nil, timeout_ms: nil, http_heade connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, diff --git a/lib/stack_one/crm.rb b/lib/stack_one/crm.rb index 5f176abef..64dec2bff 100644 --- a/lib/stack_one/crm.rb +++ b/lib/stack_one/crm.rb @@ -91,7 +91,7 @@ def create_contact(crm_create_contact_request_dto:, x_account_id:, prefer: nil, connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -389,7 +389,7 @@ def get_account(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -687,7 +687,7 @@ def get_contact(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -985,7 +985,7 @@ def get_contact_custom_field_definition(request:, retries: nil, timeout_ms: nil, connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -1283,7 +1283,7 @@ def get_list(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -1576,7 +1576,7 @@ def list_accounts(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -1899,7 +1899,7 @@ def list_contact_custom_field_definitions(request:, retries: nil, timeout_ms: ni connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -2222,7 +2222,7 @@ def list_contacts(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -2546,7 +2546,7 @@ def list_lists(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -2890,7 +2890,7 @@ def update_contact(crm_create_contact_request_dto:, id:, x_account_id:, prefer: connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, diff --git a/lib/stack_one/documents.rb b/lib/stack_one/documents.rb index 47ef908b6..e06a16614 100644 --- a/lib/stack_one/documents.rb +++ b/lib/stack_one/documents.rb @@ -81,7 +81,7 @@ def download_file(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -377,7 +377,7 @@ def get_drive(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -675,7 +675,7 @@ def get_file(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -973,7 +973,7 @@ def get_folder(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -1266,7 +1266,7 @@ def list_drives(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -1589,7 +1589,7 @@ def list_files(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -1916,7 +1916,7 @@ def list_folders(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -2257,7 +2257,7 @@ def upload_file(unified_upload_request_dto:, x_account_id:, x_stackone_api_sessi connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, diff --git a/lib/stack_one/hris.rb b/lib/stack_one/hris.rb index 590e9b06a..d4e226b32 100644 --- a/lib/stack_one/hris.rb +++ b/lib/stack_one/hris.rb @@ -96,7 +96,7 @@ def batch_upload_employee_document(hris_batch_document_upload_request_dto:, id:, connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -399,7 +399,7 @@ def cancel_employee_time_off_request(id:, sub_resource_id:, x_account_id:, prefe connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -719,7 +719,7 @@ def create_employee(hris_create_employee_request_dto:, x_account_id:, prefer: ni connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -1033,7 +1033,7 @@ def create_employee_employment(hris_create_employment_request_dto:, id:, x_accou connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -1347,7 +1347,7 @@ def create_employee_skill(entity_skills_create_request_dto:, id:, x_account_id:, connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -1661,7 +1661,7 @@ def create_employee_time_off_request(hris_create_time_off_request_dto:, id:, x_a connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -1975,7 +1975,7 @@ def create_employee_work_eligibility_request(hris_create_work_eligibility_reques connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -2273,7 +2273,7 @@ def download_employee_document(request:, retries: nil, timeout_ms: nil, accept_h connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -3163,7 +3163,7 @@ def get_benefit(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -3461,7 +3461,7 @@ def get_company(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -3759,7 +3759,7 @@ def get_company_group(request:, retries: nil, timeout_ms: nil, http_headers: nil connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -4057,7 +4057,7 @@ def get_cost_center_group(request:, retries: nil, timeout_ms: nil, http_headers: connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -4355,7 +4355,7 @@ def get_department_group(request:, retries: nil, timeout_ms: nil, http_headers: connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -4653,7 +4653,7 @@ def get_division_group(request:, retries: nil, timeout_ms: nil, http_headers: ni connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -4951,7 +4951,7 @@ def get_employee(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -5249,7 +5249,7 @@ def get_employee_custom_field_definition(request:, retries: nil, timeout_ms: nil connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -5547,7 +5547,7 @@ def get_employee_document(request:, retries: nil, timeout_ms: nil, http_headers: connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -5845,7 +5845,7 @@ def get_employee_document_category(request:, retries: nil, timeout_ms: nil, http connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -6143,7 +6143,7 @@ def get_employee_employment(request:, retries: nil, timeout_ms: nil, http_header connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -6441,7 +6441,7 @@ def get_employee_shift(request:, retries: nil, timeout_ms: nil, http_headers: ni connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -6739,7 +6739,7 @@ def get_employee_skill(request:, retries: nil, timeout_ms: nil, http_headers: ni connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -7037,7 +7037,7 @@ def get_employee_task(request:, retries: nil, timeout_ms: nil, http_headers: nil connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -7335,7 +7335,7 @@ def get_employee_time_off_balance(request:, retries: nil, timeout_ms: nil, http_ connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -7633,7 +7633,7 @@ def get_employees_time_off_request(request:, retries: nil, timeout_ms: nil, http connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -7931,7 +7931,7 @@ def get_employees_work_eligibility(request:, retries: nil, timeout_ms: nil, http connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -8229,7 +8229,7 @@ def get_employment(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -8527,7 +8527,7 @@ def get_group(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -8825,7 +8825,7 @@ def get_job(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -9123,7 +9123,7 @@ def get_location(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -9421,7 +9421,7 @@ def get_position(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -9719,7 +9719,7 @@ def get_shift(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -10017,7 +10017,7 @@ def get_task(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -10315,7 +10315,7 @@ def get_team_group(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -10613,7 +10613,7 @@ def get_time_entries(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -10911,7 +10911,7 @@ def get_time_off_policy(request:, retries: nil, timeout_ms: nil, http_headers: n connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -11209,7 +11209,7 @@ def get_time_off_request(request:, retries: nil, timeout_ms: nil, http_headers: connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -11509,7 +11509,7 @@ def get_time_off_type(request:, retries: nil, timeout_ms: nil, http_headers: nil connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -11823,7 +11823,7 @@ def invite_employee(hris_invite_employee_request_dto:, id:, x_account_id:, prefe connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -12116,7 +12116,7 @@ def list_benefits(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -12439,7 +12439,7 @@ def list_companies(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -12762,7 +12762,7 @@ def list_companies_groups(request:, retries: nil, timeout_ms: nil, http_headers: connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -13085,7 +13085,7 @@ def list_cost_center_groups(request:, retries: nil, timeout_ms: nil, http_header connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -13408,7 +13408,7 @@ def list_department_groups(request:, retries: nil, timeout_ms: nil, http_headers connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -13731,7 +13731,7 @@ def list_division_groups(request:, retries: nil, timeout_ms: nil, http_headers: connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -14054,7 +14054,7 @@ def list_employee_categories(request:, retries: nil, timeout_ms: nil, http_heade connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -14377,7 +14377,7 @@ def list_employee_custom_field_definitions(request:, retries: nil, timeout_ms: n connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -14705,7 +14705,7 @@ def list_employee_documents(request:, retries: nil, timeout_ms: nil, http_header connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -15034,7 +15034,7 @@ def list_employee_employments(request:, retries: nil, timeout_ms: nil, http_head connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -15364,7 +15364,7 @@ def list_employee_shifts(request:, retries: nil, timeout_ms: nil, http_headers: connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -15693,7 +15693,7 @@ def list_employee_skills(request:, retries: nil, timeout_ms: nil, http_headers: connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -16022,7 +16022,7 @@ def list_employee_tasks(request:, retries: nil, timeout_ms: nil, http_headers: n connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -16352,7 +16352,7 @@ def list_employee_time_off_balances(request:, retries: nil, timeout_ms: nil, htt connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -16682,7 +16682,7 @@ def list_employee_time_off_policies(request:, retries: nil, timeout_ms: nil, htt connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -17011,7 +17011,7 @@ def list_employee_time_off_requests(request:, retries: nil, timeout_ms: nil, htt connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -17341,7 +17341,7 @@ def list_employee_work_eligibility(request:, retries: nil, timeout_ms: nil, http connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -17665,7 +17665,7 @@ def list_employees(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -17990,7 +17990,7 @@ def list_employments(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -18314,7 +18314,7 @@ def list_groups(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -18637,7 +18637,7 @@ def list_jobs(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -18960,7 +18960,7 @@ def list_locations(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -19283,7 +19283,7 @@ def list_positions(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -19607,7 +19607,7 @@ def list_shifts(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -19930,7 +19930,7 @@ def list_tasks(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -20254,7 +20254,7 @@ def list_team_groups(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -20577,7 +20577,7 @@ def list_time_entries(request:, retries: nil, timeout_ms: nil, http_headers: nil connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -20900,7 +20900,7 @@ def list_time_off_policies(request:, retries: nil, timeout_ms: nil, http_headers connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -21223,7 +21223,7 @@ def list_time_off_requests(request:, retries: nil, timeout_ms: nil, http_headers connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -21549,7 +21549,7 @@ def list_time_off_types(request:, retries: nil, timeout_ms: nil, http_headers: n connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -21893,7 +21893,7 @@ def update_employee(hris_update_employee_request_dto:, id:, x_account_id:, prefe connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -22201,7 +22201,7 @@ def update_employee_employment(request:, retries: nil, timeout_ms: nil, http_hea connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -22509,7 +22509,7 @@ def update_employee_task(request:, retries: nil, timeout_ms: nil, http_headers: connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -22817,7 +22817,7 @@ def update_employee_time_off_request(request:, retries: nil, timeout_ms: nil, ht connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -23125,7 +23125,7 @@ def update_employee_work_eligibility_request(request:, retries: nil, timeout_ms: connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -23429,7 +23429,7 @@ def upload_employee_document(hris_documents_upload_request_dto:, id:, x_account_ connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, diff --git a/lib/stack_one/iam.rb b/lib/stack_one/iam.rb index 2fcdd3949..cb5b12dd3 100644 --- a/lib/stack_one/iam.rb +++ b/lib/stack_one/iam.rb @@ -85,7 +85,7 @@ def delete_user(id:, x_account_id:, prefer: nil, retries: nil, timeout_ms: nil, connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -395,7 +395,7 @@ def get_group(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -688,7 +688,7 @@ def get_me(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -986,7 +986,7 @@ def get_organization(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -1284,7 +1284,7 @@ def get_policy(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -1582,7 +1582,7 @@ def get_role(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -1880,7 +1880,7 @@ def get_user(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -2173,7 +2173,7 @@ def list_groups(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -2497,7 +2497,7 @@ def list_organizations(request:, retries: nil, timeout_ms: nil, http_headers: ni connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -2820,7 +2820,7 @@ def list_policies(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -3144,7 +3144,7 @@ def list_resource_types(request:, retries: nil, timeout_ms: nil, http_headers: n connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -3437,7 +3437,7 @@ def list_resource_users(request:, retries: nil, timeout_ms: nil, http_headers: n connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -3763,7 +3763,7 @@ def list_roles(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -4087,7 +4087,7 @@ def list_users(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -4432,7 +4432,7 @@ def update_user(iam_update_user_request_dto:, id:, x_account_id:, prefer: nil, r connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, diff --git a/lib/stack_one/lms.rb b/lib/stack_one/lms.rb index 0ef082009..52709dc3b 100644 --- a/lib/stack_one/lms.rb +++ b/lib/stack_one/lms.rb @@ -96,7 +96,7 @@ def batch_upsert_content(lms_batch_upsert_content_request_dto:, x_account_id:, p connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -415,7 +415,7 @@ def create_user_assignment(lms_create_assignment_request_dto:, id:, x_account_id connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -732,7 +732,7 @@ def create_user_completion(lms_create_completion_request_dto:, id:, x_account_id connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -1038,7 +1038,7 @@ def delete_user_completion(id:, sub_resource_id:, x_account_id:, prefer: nil, re connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -1353,7 +1353,7 @@ def get_assignment(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -1651,7 +1651,7 @@ def get_category(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -1950,7 +1950,7 @@ def get_completion(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -2253,7 +2253,7 @@ def get_content(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -2554,7 +2554,7 @@ def get_course(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -2852,7 +2852,7 @@ def get_skill(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -3150,7 +3150,7 @@ def get_user(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -3453,7 +3453,7 @@ def get_user_assignment(request:, retries: nil, timeout_ms: nil, http_headers: n connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -3754,7 +3754,7 @@ def get_user_completion(request:, retries: nil, timeout_ms: nil, http_headers: n connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -4052,7 +4052,7 @@ def list_assignments(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -4377,7 +4377,7 @@ def list_categories(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -4701,7 +4701,7 @@ def list_completions(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -5029,7 +5029,7 @@ def list_content(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -5355,7 +5355,7 @@ def list_courses(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -5678,7 +5678,7 @@ def list_skills(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -6011,7 +6011,7 @@ def list_user_assignments(request:, retries: nil, timeout_ms: nil, http_headers: connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -6345,7 +6345,7 @@ def list_user_completions(request:, retries: nil, timeout_ms: nil, http_headers: connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -6669,7 +6669,7 @@ def list_users(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -7012,7 +7012,7 @@ def upsert_content(lms_upsert_content_request_dto:, x_account_id:, prefer: nil, connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, diff --git a/lib/stack_one/logs.rb b/lib/stack_one/logs.rb index 05c7a07bc..2af1f42f5 100644 --- a/lib/stack_one/logs.rb +++ b/lib/stack_one/logs.rb @@ -83,7 +83,7 @@ def get_action_advanced_log(action_run_id:, retries: nil, timeout_ms: nil, http_ connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -360,7 +360,7 @@ def get_action_defender_log(action_run_id:, retries: nil, timeout_ms: nil, http_ connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -637,7 +637,7 @@ def get_action_log(action_run_id:, retries: nil, timeout_ms: nil, http_headers: connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -926,7 +926,7 @@ def get_logs_stats_aggregate(request:, retries: nil, timeout_ms: nil, http_heade connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -1207,7 +1207,7 @@ def get_logs_stats_dimensions(request:, retries: nil, timeout_ms: nil, http_head connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -1486,7 +1486,7 @@ def get_provider_advanced_log(id:, request_id:, retries: nil, timeout_ms: nil, h connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -1764,7 +1764,7 @@ def get_provider_log(id:, request_id:, retries: nil, timeout_ms: nil, http_heade connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -2042,7 +2042,7 @@ def get_step_advanced_log(action_run_id:, step_index:, retries: nil, timeout_ms: connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -2320,7 +2320,7 @@ def get_step_log(action_run_id:, step_index:, retries: nil, timeout_ms: nil, htt connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -2597,7 +2597,7 @@ def get_unified_advanced_log(request_id:, retries: nil, timeout_ms: nil, http_he connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -2874,7 +2874,7 @@ def get_unified_log(request_id:, retries: nil, timeout_ms: nil, http_headers: ni connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -3163,7 +3163,7 @@ def list_action_logs(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -3453,7 +3453,7 @@ def list_action_step_logs(action_run_id:, page:, page_size:, retries: nil, timeo connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -3734,7 +3734,7 @@ def list_logs(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -4024,7 +4024,7 @@ def list_provider_logs(request:, retries: nil, timeout_ms: nil, http_headers: ni connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -4305,7 +4305,7 @@ def list_step_logs(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -4595,7 +4595,7 @@ def list_unified_logs(request:, retries: nil, timeout_ms: nil, http_headers: nil connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -4885,7 +4885,7 @@ def list_unified_provider_logs(page:, page_size:, request_id:, retries: nil, tim connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, diff --git a/lib/stack_one/marketing.rb b/lib/stack_one/marketing.rb index e19c3a184..45530f514 100644 --- a/lib/stack_one/marketing.rb +++ b/lib/stack_one/marketing.rb @@ -91,7 +91,7 @@ def create_content_block(marketing_create_content_blocks_request_dto:, x_account connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -399,7 +399,7 @@ def create_email_template(marketing_create_email_template_request_dto:, x_accoun connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -707,7 +707,7 @@ def create_in_app_template(marketing_create_in_app_template_request_dto:, x_acco connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -1017,7 +1017,7 @@ def create_omni_channel_template(marketing_create_template_request_dto:, x_accou connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -1325,7 +1325,7 @@ def create_push_template(marketing_create_push_template_request_dto:, x_account_ connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -1633,7 +1633,7 @@ def create_sms_template(marketing_create_sms_template_request_dto:, x_account_id connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -1931,7 +1931,7 @@ def get_campaign(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -2229,7 +2229,7 @@ def get_content_block(request:, retries: nil, timeout_ms: nil, http_headers: nil connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -2527,7 +2527,7 @@ def get_email_template(request:, retries: nil, timeout_ms: nil, http_headers: ni connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -2825,7 +2825,7 @@ def get_in_app_template(request:, retries: nil, timeout_ms: nil, http_headers: n connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -3125,7 +3125,7 @@ def get_omni_channel_template(request:, retries: nil, timeout_ms: nil, http_head connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -3423,7 +3423,7 @@ def get_push_template(request:, retries: nil, timeout_ms: nil, http_headers: nil connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -3721,7 +3721,7 @@ def get_sms_template(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -4014,7 +4014,7 @@ def list_campaigns(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -4337,7 +4337,7 @@ def list_content_blocks(request:, retries: nil, timeout_ms: nil, http_headers: n connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -4660,7 +4660,7 @@ def list_email_templates(request:, retries: nil, timeout_ms: nil, http_headers: connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -4983,7 +4983,7 @@ def list_in_app_templates(request:, retries: nil, timeout_ms: nil, http_headers: connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -5308,7 +5308,7 @@ def list_omni_channel_templates(request:, retries: nil, timeout_ms: nil, http_he connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -5631,7 +5631,7 @@ def list_push_templates(request:, retries: nil, timeout_ms: nil, http_headers: n connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -5954,7 +5954,7 @@ def list_sms_templates(request:, retries: nil, timeout_ms: nil, http_headers: ni connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -6298,7 +6298,7 @@ def update_content_block(marketing_create_content_blocks_request_dto:, id:, x_ac connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -6612,7 +6612,7 @@ def update_email_template(marketing_create_email_template_request_dto:, id:, x_a connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -6926,7 +6926,7 @@ def update_in_app_template(marketing_create_in_app_template_request_dto:, id:, x connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -7242,7 +7242,7 @@ def update_omni_channel_template(marketing_create_template_request_dto:, id:, x_ connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -7556,7 +7556,7 @@ def update_push_template(marketing_create_push_template_request_dto:, id:, x_acc connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -7870,7 +7870,7 @@ def update_sms_template(marketing_create_sms_template_request_dto:, id:, x_accou connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, diff --git a/lib/stack_one/mcp.rb b/lib/stack_one/mcp.rb index 93fed0710..765030e1b 100644 --- a/lib/stack_one/mcp.rb +++ b/lib/stack_one/mcp.rb @@ -41,552 +41,8 @@ def get_url(base_url:, url_variables: nil) - sig { params(security: Models::Operations::StackoneMcpDeleteSecurity, mcp_session_id: ::String, x_account_id: T.nilable(::String), x_account_id_query_parameter: T.nilable(::Object), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::StackoneMcpDeleteResponse) } - def mcp_delete(security:, mcp_session_id:, x_account_id: nil, x_account_id_query_parameter: nil, retries: nil, timeout_ms: nil, http_headers: nil) - # mcp_delete - Delete MCP session - # Close an existing MCP session for the provided session id - request = Models::Operations::StackoneMcpDeleteRequest.new( - mcp_session_id: mcp_session_id, - x_account_id: x_account_id, - x_account_id_query_parameter: x_account_id_query_parameter - ) - url, params = @sdk_configuration.get_server_details - base_url = Utils.template_url(url, params) - url = "#{base_url}/mcp" - headers = Utils.get_headers(request) - headers = T.cast(headers, T::Hash[String, String]) - query_params = Utils.get_query_params(Models::Operations::StackoneMcpDeleteRequest, request, nil) - headers['Accept'] = 'application/json' - headers['user-agent'] = @sdk_configuration.user_agent - retries ||= @sdk_configuration.retry_config - retries ||= Utils::RetryConfig.new( - backoff: Utils::BackoffStrategy.new( - exponent: 1.5, - initial_interval: 500, - max_elapsed_time: 3_600_000, - max_interval: 60_000 - ), - retry_connection_errors: true, - strategy: 'backoff' - ) - retry_options = retries.to_faraday_retry_options(initial_time: Time.now) - retry_options[:retry_statuses] = [429, 408] - - timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? - timeout ||= @sdk_configuration.timeout - - - connection = @sdk_configuration.client.dup - connection.request :retry, retry_options - - hook_ctx = SDKHooks::HookContext.new( - config: @sdk_configuration, - base_url: base_url, - oauth2_scopes: nil, - operation_id: 'stackone_mcp_delete', - security_source: -> { security } - ) - - error = T.let(nil, T.nilable(StandardError)) - http_response = T.let(nil, T.nilable(Faraday::Response)) - - - begin - http_response = T.must(connection).delete(url) do |req| - req.headers.merge!(headers) - req.options.timeout = timeout unless timeout.nil? - req.params = query_params - Utils.configure_request_security(req, security) - http_headers&.each do |key, value| - req.headers[key.to_s] = value - end - - @sdk_configuration.hooks.before_request( - hook_ctx: SDKHooks::BeforeRequestHookContext.new( - hook_ctx: hook_ctx - ), - request: req - ) - end - rescue StandardError => e - error = e - ensure - if http_response.nil? || Utils.error_status?(http_response.status) - http_response = @sdk_configuration.hooks.after_error( - error: error, - hook_ctx: SDKHooks::AfterErrorHookContext.new( - hook_ctx: hook_ctx - ), - response: http_response - ) - else - http_response = @sdk_configuration.hooks.after_success( - hook_ctx: SDKHooks::AfterSuccessHookContext.new( - hook_ctx: hook_ctx - ), - response: http_response - ) - end - - if http_response.nil? - raise error if !error.nil? - raise 'no response' - end - end - - content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') - if Utils.match_status_code(http_response.status, ['200']) - http_response = @sdk_configuration.hooks.after_success( - hook_ctx: SDKHooks::AfterSuccessHookContext.new( - hook_ctx: hook_ctx - ), - response: http_response - ) - return Models::Operations::StackoneMcpDeleteResponse.new( - status_code: http_response.status, - content_type: content_type, - raw_response: http_response, - headers: {} - ) - elsif Utils.match_status_code(http_response.status, ['400']) - if Utils.match_content_type(content_type, 'application/json') - http_response = @sdk_configuration.hooks.after_success( - hook_ctx: SDKHooks::AfterSuccessHookContext.new( - hook_ctx: hook_ctx - ), - response: http_response - ) - response_data = http_response.env.response_body - obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::BadRequestResponse) - raise obj - else - raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received' - end - elsif Utils.match_status_code(http_response.status, ['401']) - if Utils.match_content_type(content_type, 'application/json') - http_response = @sdk_configuration.hooks.after_success( - hook_ctx: SDKHooks::AfterSuccessHookContext.new( - hook_ctx: hook_ctx - ), - response: http_response - ) - response_data = http_response.env.response_body - obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::UnauthorizedResponse) - raise obj - else - raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received' - end - elsif Utils.match_status_code(http_response.status, ['403']) - if Utils.match_content_type(content_type, 'application/json') - http_response = @sdk_configuration.hooks.after_success( - hook_ctx: SDKHooks::AfterSuccessHookContext.new( - hook_ctx: hook_ctx - ), - response: http_response - ) - response_data = http_response.env.response_body - obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ForbiddenResponse) - raise obj - else - raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received' - end - elsif Utils.match_status_code(http_response.status, ['404']) - if Utils.match_content_type(content_type, 'application/json') - http_response = @sdk_configuration.hooks.after_success( - hook_ctx: SDKHooks::AfterSuccessHookContext.new( - hook_ctx: hook_ctx - ), - response: http_response - ) - response_data = http_response.env.response_body - obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::NotFoundResponse) - raise obj - else - raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received' - end - elsif Utils.match_status_code(http_response.status, ['408']) - if Utils.match_content_type(content_type, 'application/json') - http_response = @sdk_configuration.hooks.after_success( - hook_ctx: SDKHooks::AfterSuccessHookContext.new( - hook_ctx: hook_ctx - ), - response: http_response - ) - response_data = http_response.env.response_body - obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::RequestTimedOutResponse) - raise obj - else - raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received' - end - elsif Utils.match_status_code(http_response.status, ['409']) - if Utils.match_content_type(content_type, 'application/json') - http_response = @sdk_configuration.hooks.after_success( - hook_ctx: SDKHooks::AfterSuccessHookContext.new( - hook_ctx: hook_ctx - ), - response: http_response - ) - response_data = http_response.env.response_body - obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ConflictResponse) - raise obj - else - raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received' - end - elsif Utils.match_status_code(http_response.status, ['422']) - if Utils.match_content_type(content_type, 'application/json') - http_response = @sdk_configuration.hooks.after_success( - hook_ctx: SDKHooks::AfterSuccessHookContext.new( - hook_ctx: hook_ctx - ), - response: http_response - ) - response_data = http_response.env.response_body - obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::UnprocessableEntityResponse) - raise obj - else - raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received' - end - elsif Utils.match_status_code(http_response.status, ['429']) - if Utils.match_content_type(content_type, 'application/json') - http_response = @sdk_configuration.hooks.after_success( - hook_ctx: SDKHooks::AfterSuccessHookContext.new( - hook_ctx: hook_ctx - ), - response: http_response - ) - response_data = http_response.env.response_body - obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::TooManyRequestsResponse) - raise obj - else - raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received' - end - elsif Utils.match_status_code(http_response.status, ['500']) - if Utils.match_content_type(content_type, 'application/json') - http_response = @sdk_configuration.hooks.after_success( - hook_ctx: SDKHooks::AfterSuccessHookContext.new( - hook_ctx: hook_ctx - ), - response: http_response - ) - response_data = http_response.env.response_body - obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::InternalServerErrorResponse) - raise obj - else - raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received' - end - elsif Utils.match_status_code(http_response.status, ['501']) - if Utils.match_content_type(content_type, 'application/json') - http_response = @sdk_configuration.hooks.after_success( - hook_ctx: SDKHooks::AfterSuccessHookContext.new( - hook_ctx: hook_ctx - ), - response: http_response - ) - response_data = http_response.env.response_body - obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::NotImplementedResponse) - raise obj - else - raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received' - end - elsif Utils.match_status_code(http_response.status, ['502']) - if Utils.match_content_type(content_type, 'application/json') - http_response = @sdk_configuration.hooks.after_success( - hook_ctx: SDKHooks::AfterSuccessHookContext.new( - hook_ctx: hook_ctx - ), - response: http_response - ) - response_data = http_response.env.response_body - obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::BadGatewayResponse) - raise obj - else - raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received' - end - elsif Utils.match_status_code(http_response.status, ['4XX']) - raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred' - elsif Utils.match_status_code(http_response.status, ['5XX']) - raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred' - else - raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received' - - end - end - - - sig { params(security: Models::Operations::StackoneMcpGetSecurity, mcp_session_id: ::String, x_account_id: T.nilable(::String), x_account_id_query_parameter: T.nilable(::Object), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::StackoneMcpGetResponse) } - def mcp_get(security:, mcp_session_id:, x_account_id: nil, x_account_id_query_parameter: nil, retries: nil, timeout_ms: nil, http_headers: nil) - # mcp_get - Open MCP SSE stream - # Open a dedicated Server-Sent Events stream for MCP notifications - request = Models::Operations::StackoneMcpGetRequest.new( - mcp_session_id: mcp_session_id, - x_account_id: x_account_id, - x_account_id_query_parameter: x_account_id_query_parameter - ) - url, params = @sdk_configuration.get_server_details - base_url = Utils.template_url(url, params) - url = "#{base_url}/mcp" - headers = Utils.get_headers(request) - headers = T.cast(headers, T::Hash[String, String]) - query_params = Utils.get_query_params(Models::Operations::StackoneMcpGetRequest, request, nil) - headers['Accept'] = 'application/json' - headers['user-agent'] = @sdk_configuration.user_agent - retries ||= @sdk_configuration.retry_config - retries ||= Utils::RetryConfig.new( - backoff: Utils::BackoffStrategy.new( - exponent: 1.5, - initial_interval: 500, - max_elapsed_time: 3_600_000, - max_interval: 60_000 - ), - retry_connection_errors: true, - strategy: 'backoff' - ) - retry_options = retries.to_faraday_retry_options(initial_time: Time.now) - retry_options[:retry_statuses] = [429, 408] - - timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? - timeout ||= @sdk_configuration.timeout - - - connection = @sdk_configuration.client.dup - connection.request :retry, retry_options - - hook_ctx = SDKHooks::HookContext.new( - config: @sdk_configuration, - base_url: base_url, - oauth2_scopes: nil, - operation_id: 'stackone_mcp_get', - security_source: -> { security } - ) - - error = T.let(nil, T.nilable(StandardError)) - http_response = T.let(nil, T.nilable(Faraday::Response)) - - - begin - http_response = T.must(connection).get(url) do |req| - req.headers.merge!(headers) - req.options.timeout = timeout unless timeout.nil? - req.params = query_params - Utils.configure_request_security(req, security) - http_headers&.each do |key, value| - req.headers[key.to_s] = value - end - - @sdk_configuration.hooks.before_request( - hook_ctx: SDKHooks::BeforeRequestHookContext.new( - hook_ctx: hook_ctx - ), - request: req - ) - end - rescue StandardError => e - error = e - ensure - if http_response.nil? || Utils.error_status?(http_response.status) - http_response = @sdk_configuration.hooks.after_error( - error: error, - hook_ctx: SDKHooks::AfterErrorHookContext.new( - hook_ctx: hook_ctx - ), - response: http_response - ) - else - http_response = @sdk_configuration.hooks.after_success( - hook_ctx: SDKHooks::AfterSuccessHookContext.new( - hook_ctx: hook_ctx - ), - response: http_response - ) - end - - if http_response.nil? - raise error if !error.nil? - raise 'no response' - end - end - - content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') - if Utils.match_status_code(http_response.status, ['200']) - http_response = @sdk_configuration.hooks.after_success( - hook_ctx: SDKHooks::AfterSuccessHookContext.new( - hook_ctx: hook_ctx - ), - response: http_response - ) - return Models::Operations::StackoneMcpGetResponse.new( - status_code: http_response.status, - content_type: content_type, - raw_response: http_response, - headers: {} - ) - elsif Utils.match_status_code(http_response.status, ['400']) - if Utils.match_content_type(content_type, 'application/json') - http_response = @sdk_configuration.hooks.after_success( - hook_ctx: SDKHooks::AfterSuccessHookContext.new( - hook_ctx: hook_ctx - ), - response: http_response - ) - response_data = http_response.env.response_body - obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::BadRequestResponse) - raise obj - else - raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received' - end - elsif Utils.match_status_code(http_response.status, ['401']) - if Utils.match_content_type(content_type, 'application/json') - http_response = @sdk_configuration.hooks.after_success( - hook_ctx: SDKHooks::AfterSuccessHookContext.new( - hook_ctx: hook_ctx - ), - response: http_response - ) - response_data = http_response.env.response_body - obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::UnauthorizedResponse) - raise obj - else - raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received' - end - elsif Utils.match_status_code(http_response.status, ['403']) - if Utils.match_content_type(content_type, 'application/json') - http_response = @sdk_configuration.hooks.after_success( - hook_ctx: SDKHooks::AfterSuccessHookContext.new( - hook_ctx: hook_ctx - ), - response: http_response - ) - response_data = http_response.env.response_body - obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ForbiddenResponse) - raise obj - else - raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received' - end - elsif Utils.match_status_code(http_response.status, ['404']) - if Utils.match_content_type(content_type, 'application/json') - http_response = @sdk_configuration.hooks.after_success( - hook_ctx: SDKHooks::AfterSuccessHookContext.new( - hook_ctx: hook_ctx - ), - response: http_response - ) - response_data = http_response.env.response_body - obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::NotFoundResponse) - raise obj - else - raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received' - end - elsif Utils.match_status_code(http_response.status, ['408']) - if Utils.match_content_type(content_type, 'application/json') - http_response = @sdk_configuration.hooks.after_success( - hook_ctx: SDKHooks::AfterSuccessHookContext.new( - hook_ctx: hook_ctx - ), - response: http_response - ) - response_data = http_response.env.response_body - obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::RequestTimedOutResponse) - raise obj - else - raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received' - end - elsif Utils.match_status_code(http_response.status, ['409']) - if Utils.match_content_type(content_type, 'application/json') - http_response = @sdk_configuration.hooks.after_success( - hook_ctx: SDKHooks::AfterSuccessHookContext.new( - hook_ctx: hook_ctx - ), - response: http_response - ) - response_data = http_response.env.response_body - obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ConflictResponse) - raise obj - else - raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received' - end - elsif Utils.match_status_code(http_response.status, ['422']) - if Utils.match_content_type(content_type, 'application/json') - http_response = @sdk_configuration.hooks.after_success( - hook_ctx: SDKHooks::AfterSuccessHookContext.new( - hook_ctx: hook_ctx - ), - response: http_response - ) - response_data = http_response.env.response_body - obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::UnprocessableEntityResponse) - raise obj - else - raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received' - end - elsif Utils.match_status_code(http_response.status, ['429']) - if Utils.match_content_type(content_type, 'application/json') - http_response = @sdk_configuration.hooks.after_success( - hook_ctx: SDKHooks::AfterSuccessHookContext.new( - hook_ctx: hook_ctx - ), - response: http_response - ) - response_data = http_response.env.response_body - obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::TooManyRequestsResponse) - raise obj - else - raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received' - end - elsif Utils.match_status_code(http_response.status, ['500']) - if Utils.match_content_type(content_type, 'application/json') - http_response = @sdk_configuration.hooks.after_success( - hook_ctx: SDKHooks::AfterSuccessHookContext.new( - hook_ctx: hook_ctx - ), - response: http_response - ) - response_data = http_response.env.response_body - obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::InternalServerErrorResponse) - raise obj - else - raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received' - end - elsif Utils.match_status_code(http_response.status, ['501']) - if Utils.match_content_type(content_type, 'application/json') - http_response = @sdk_configuration.hooks.after_success( - hook_ctx: SDKHooks::AfterSuccessHookContext.new( - hook_ctx: hook_ctx - ), - response: http_response - ) - response_data = http_response.env.response_body - obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::NotImplementedResponse) - raise obj - else - raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received' - end - elsif Utils.match_status_code(http_response.status, ['502']) - if Utils.match_content_type(content_type, 'application/json') - http_response = @sdk_configuration.hooks.after_success( - hook_ctx: SDKHooks::AfterSuccessHookContext.new( - hook_ctx: hook_ctx - ), - response: http_response - ) - response_data = http_response.env.response_body - obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::BadGatewayResponse) - raise obj - else - raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received' - end - elsif Utils.match_status_code(http_response.status, ['4XX']) - raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred' - elsif Utils.match_status_code(http_response.status, ['5XX']) - raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred' - else - raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received' - - end - end - - - sig { params(security: Models::Operations::StackoneMcpPostSecurity, request: Models::Operations::StackoneMcpPostRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer), accept_header_override: T.nilable(String), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::StackoneMcpPostResponse) } - def mcp_post(security:, request:, retries: nil, timeout_ms: nil, accept_header_override: nil, http_headers: nil) + sig { params(security: Models::Operations::StackoneMcpPostSecurity, request: Models::Operations::StackoneMcpPostRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::StackoneMcpPostResponse) } + def mcp_post(security:, request:, retries: nil, timeout_ms: nil, http_headers: nil) # mcp_post - Send MCP JSON-RPC message # Send JSON-RPC request to the MCP server over HTTP streaming transport url, params = @sdk_configuration.get_server_details @@ -606,7 +62,7 @@ def mcp_post(security:, request:, retries: nil, timeout_ms: nil, accept_header_o body = data end query_params = Utils.get_query_params(Models::Operations::StackoneMcpPostRequest, request, nil) - headers['Accept'] = accept_header_override || 'application/json;q=1, text/event-stream;q=0' + headers['Accept'] = 'application/json' headers['user-agent'] = @sdk_configuration.user_agent retries ||= @sdk_configuration.retry_config retries ||= Utils::RetryConfig.new( @@ -627,7 +83,7 @@ def mcp_post(security:, request:, retries: nil, timeout_ms: nil, accept_header_o connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -705,22 +161,6 @@ def mcp_post(security:, request:, retries: nil, timeout_ms: nil, accept_header_o ) return response - elsif Utils.match_content_type(content_type, 'text/event-stream') - http_response = @sdk_configuration.hooks.after_success( - hook_ctx: SDKHooks::AfterSuccessHookContext.new( - hook_ctx: hook_ctx - ), - response: http_response - ) - obj = http_response.env.body.force_encoding('UTF-8') - - return Models::Operations::StackoneMcpPostResponse.new( - status_code: http_response.status, - content_type: content_type, - raw_response: http_response, - headers: {}, - res: T.unsafe(obj) - ) else raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received' end diff --git a/lib/stack_one/messaging.rb b/lib/stack_one/messaging.rb index 0aea52f63..f04f66975 100644 --- a/lib/stack_one/messaging.rb +++ b/lib/stack_one/messaging.rb @@ -91,7 +91,7 @@ def create_conversation(messaging_create_conversation_request_dto:, x_account_id connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -389,7 +389,7 @@ def download_messaging_attachment(request:, retries: nil, timeout_ms: nil, http_ connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -685,7 +685,7 @@ def get_attachment(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -983,7 +983,7 @@ def get_conversation(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -1281,7 +1281,7 @@ def get_message(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -1579,7 +1579,7 @@ def get_user(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -1877,7 +1877,7 @@ def list_attachments(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -2206,7 +2206,7 @@ def list_conversation_messages(request:, retries: nil, timeout_ms: nil, http_hea connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -2530,7 +2530,7 @@ def list_conversations(request:, retries: nil, timeout_ms: nil, http_headers: ni connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -2853,7 +2853,7 @@ def list_users(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -3191,7 +3191,7 @@ def send_message(messaging_message_send_request_dto:, x_account_id:, prefer: nil connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, diff --git a/lib/stack_one/models/operations.rb b/lib/stack_one/models/operations.rb index b546697eb..35c9e3615 100644 --- a/lib/stack_one/models/operations.rb +++ b/lib/stack_one/models/operations.rb @@ -31,6 +31,7 @@ module Operations autoload :AccountingListCompanyTaxRatesRequest, 'stack_one/models/operations/accounting_list_company_tax_rates_request.rb' autoload :AccountingListCompanyTaxRatesResponse, 'stack_one/models/operations/accounting_list_company_tax_rates_response.rb' autoload :Active, 'stack_one/models/operations/active.rb' + autoload :Apps, 'stack_one/models/operations/apps.rb' autoload :AtsCreateApplicationNoteRequest, 'stack_one/models/operations/ats_create_application_note_request.rb' autoload :AtsCreateApplicationNoteResponse, 'stack_one/models/operations/ats_create_application_note_response.rb' autoload :AtsCreateApplicationRequest, 'stack_one/models/operations/ats_create_application_request.rb' @@ -722,12 +723,6 @@ module Operations autoload :StackoneListUnifiedLogsResponse, 'stack_one/models/operations/stackone_list_unified_logs_response.rb' autoload :StackoneListUnifiedProviderLogsRequest, 'stack_one/models/operations/stackone_list_unified_provider_logs_request.rb' autoload :StackoneListUnifiedProviderLogsResponse, 'stack_one/models/operations/stackone_list_unified_provider_logs_response.rb' - autoload :StackoneMcpDeleteSecurity, 'stack_one/models/operations/stackone_mcp_delete_security.rb' - autoload :StackoneMcpDeleteRequest, 'stack_one/models/operations/stackone_mcp_delete_request.rb' - autoload :StackoneMcpDeleteResponse, 'stack_one/models/operations/stackone_mcp_delete_response.rb' - autoload :StackoneMcpGetSecurity, 'stack_one/models/operations/stackone_mcp_get_security.rb' - autoload :StackoneMcpGetRequest, 'stack_one/models/operations/stackone_mcp_get_request.rb' - autoload :StackoneMcpGetResponse, 'stack_one/models/operations/stackone_mcp_get_response.rb' autoload :StackoneMcpPostSecurity, 'stack_one/models/operations/stackone_mcp_post_security.rb' autoload :StackoneMcpPostRequest, 'stack_one/models/operations/stackone_mcp_post_request.rb' autoload :StackoneMcpPostResponse, 'stack_one/models/operations/stackone_mcp_post_response.rb' @@ -738,6 +733,7 @@ module Operations autoload :StackoneRpcActionResponse, 'stack_one/models/operations/stackone_rpc_action_response.rb' autoload :StackoneRpcActionSyncedRequest, 'stack_one/models/operations/stackone_rpc_action_synced_request.rb' autoload :StackoneRpcActionSyncedResponse, 'stack_one/models/operations/stackone_rpc_action_synced_response.rb' + autoload :StackoneRpcActionSyncedResponseBody, 'stack_one/models/operations/stackone_rpc_action_synced_responsebody.rb' autoload :StackoneSearchActionsResponse, 'stack_one/models/operations/stackone_search_actions_response.rb' autoload :StackoneUpdateAccountRequest, 'stack_one/models/operations/stackone_update_account_request.rb' autoload :StackoneUpdateAccountResponse, 'stack_one/models/operations/stackone_update_account_response.rb' diff --git a/lib/stack_one/models/operations/apps.rb b/lib/stack_one/models/operations/apps.rb new file mode 100644 index 000000000..24db6ab52 --- /dev/null +++ b/lib/stack_one/models/operations/apps.rb @@ -0,0 +1,19 @@ +# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +# typed: true +# frozen_string_literal: true + + +module StackOne + module Models + module Operations + # Apps - MCP Apps panel: "off" (default) omits it, "on" registers the interactive toolset explorer. Only set it for hosts that render MCP Apps — a client with no iframe (a terminal) gets a tool whose result it cannot display + class Apps < T::Enum + enums do + ON = new('on') + OFF = new('off') + end + end + end + end +end diff --git a/lib/stack_one/models/operations/apps.rbi b/lib/stack_one/models/operations/apps.rbi new file mode 100644 index 000000000..7060097b8 --- /dev/null +++ b/lib/stack_one/models/operations/apps.rbi @@ -0,0 +1,11 @@ +# typed: true +# frozen_string_literal: true + + +class StackOne::Models::Operations::Apps + extend ::Crystalline::MetadataFields::ClassMethods +end + + +class StackOne::Models::Operations::Apps +end diff --git a/lib/stack_one/models/operations/stackone_mcp_delete_request.rb b/lib/stack_one/models/operations/stackone_mcp_delete_request.rb deleted file mode 100644 index e977d38d5..000000000 --- a/lib/stack_one/models/operations/stackone_mcp_delete_request.rb +++ /dev/null @@ -1,40 +0,0 @@ -# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -# typed: true -# frozen_string_literal: true - - -module StackOne - module Models - module Operations - - class StackoneMcpDeleteRequest - extend T::Sig - include Crystalline::MetadataFields - - # Session id - field :mcp_session_id, ::String, { 'header': { 'field_name': 'mcp-session-id', 'style': 'simple', 'explode': false } } - # Account secure id for the target provider account (optional if x-account-id query parameter is provided) - field :x_account_id, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } } - # Account secure id (alternative to x-account-id header) - field :x_account_id_query_parameter, Crystalline::Nilable.new(::Object), { 'query_param': { 'field_name': 'x-account-id', 'style': 'form', 'explode': true } } - - sig { params(mcp_session_id: ::String, x_account_id: T.nilable(::String), x_account_id_query_parameter: T.nilable(::Object)).void } - def initialize(mcp_session_id:, x_account_id: nil, x_account_id_query_parameter: nil) - @mcp_session_id = mcp_session_id - @x_account_id = x_account_id - @x_account_id_query_parameter = x_account_id_query_parameter - end - - sig { params(other: T.untyped).returns(T::Boolean) } - def ==(other) - return false unless other.is_a? self.class - return false unless @mcp_session_id == other.mcp_session_id - return false unless @x_account_id == other.x_account_id - return false unless @x_account_id_query_parameter == other.x_account_id_query_parameter - true - end - end - end - end -end diff --git a/lib/stack_one/models/operations/stackone_mcp_delete_request.rbi b/lib/stack_one/models/operations/stackone_mcp_delete_request.rbi deleted file mode 100644 index c93bd1b9f..000000000 --- a/lib/stack_one/models/operations/stackone_mcp_delete_request.rbi +++ /dev/null @@ -1,17 +0,0 @@ -# typed: true -# frozen_string_literal: true - - -class StackOne::Models::Operations::StackoneMcpDeleteRequest - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class StackOne::Models::Operations::StackoneMcpDeleteRequest - def mcp_session_id(); end - def mcp_session_id=(str_); end - def x_account_id(); end - def x_account_id=(str_); end - def x_account_id_query_parameter(); end - def x_account_id_query_parameter=(str_); end -end diff --git a/lib/stack_one/models/operations/stackone_mcp_delete_response.rb b/lib/stack_one/models/operations/stackone_mcp_delete_response.rb deleted file mode 100644 index 9eaad2a01..000000000 --- a/lib/stack_one/models/operations/stackone_mcp_delete_response.rb +++ /dev/null @@ -1,44 +0,0 @@ -# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -# typed: true -# frozen_string_literal: true - - -module StackOne - module Models - module Operations - - class StackoneMcpDeleteResponse - extend T::Sig - include Crystalline::MetadataFields - - # HTTP response content type for this operation - field :content_type, ::String - - field :headers, Crystalline::Hash.new(Symbol, Crystalline::Array.new(::String)) - # HTTP response status code for this operation - field :status_code, ::Integer - # Raw HTTP response; suitable for custom response parsing - field :raw_response, ::Faraday::Response - - sig { params(content_type: ::String, headers: T::Hash[Symbol, T::Array[::String]], status_code: ::Integer, raw_response: ::Faraday::Response).void } - def initialize(content_type:, headers:, status_code:, raw_response:) - @content_type = content_type - @headers = headers - @status_code = status_code - @raw_response = raw_response - end - - sig { params(other: T.untyped).returns(T::Boolean) } - def ==(other) - return false unless other.is_a? self.class - return false unless @content_type == other.content_type - return false unless @headers == other.headers - return false unless @status_code == other.status_code - return false unless @raw_response == other.raw_response - true - end - end - end - end -end diff --git a/lib/stack_one/models/operations/stackone_mcp_delete_response.rbi b/lib/stack_one/models/operations/stackone_mcp_delete_response.rbi deleted file mode 100644 index f5c7cdfd3..000000000 --- a/lib/stack_one/models/operations/stackone_mcp_delete_response.rbi +++ /dev/null @@ -1,19 +0,0 @@ -# typed: true -# frozen_string_literal: true - - -class StackOne::Models::Operations::StackoneMcpDeleteResponse - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class StackOne::Models::Operations::StackoneMcpDeleteResponse - def content_type(); end - def content_type=(str_); end - def headers(); end - def headers=(str_); end - def status_code(); end - def status_code=(str_); end - def raw_response(); end - def raw_response=(str_); end -end diff --git a/lib/stack_one/models/operations/stackone_mcp_delete_security.rb b/lib/stack_one/models/operations/stackone_mcp_delete_security.rb deleted file mode 100644 index f93b099e1..000000000 --- a/lib/stack_one/models/operations/stackone_mcp_delete_security.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -# typed: true -# frozen_string_literal: true - - -module StackOne - module Models - module Operations - - class StackoneMcpDeleteSecurity - extend T::Sig - include Crystalline::MetadataFields - - - field :api_key, Crystalline::Nilable.new(::String), { 'security': { 'scheme': true, 'type': 'apiKey', 'sub_type': 'header', 'field_name': 'Authorization' } } - - field :basic, Crystalline::Nilable.new(Models::Shared::SchemeBasic), { 'security': { 'scheme': true, 'type': 'http', 'sub_type': 'basic' } } - - sig { params(api_key: T.nilable(::String), basic: T.nilable(Models::Shared::SchemeBasic)).void } - def initialize(api_key: nil, basic: nil) - @api_key = api_key - @basic = basic - end - - sig { params(other: T.untyped).returns(T::Boolean) } - def ==(other) - return false unless other.is_a? self.class - return false unless @api_key == other.api_key - return false unless @basic == other.basic - true - end - end - end - end -end diff --git a/lib/stack_one/models/operations/stackone_mcp_delete_security.rbi b/lib/stack_one/models/operations/stackone_mcp_delete_security.rbi deleted file mode 100644 index d3f20e270..000000000 --- a/lib/stack_one/models/operations/stackone_mcp_delete_security.rbi +++ /dev/null @@ -1,15 +0,0 @@ -# typed: true -# frozen_string_literal: true - - -class StackOne::Models::Operations::StackoneMcpDeleteSecurity - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class StackOne::Models::Operations::StackoneMcpDeleteSecurity - def api_key(); end - def api_key=(str_); end - def basic(); end - def basic=(str_); end -end diff --git a/lib/stack_one/models/operations/stackone_mcp_get_request.rb b/lib/stack_one/models/operations/stackone_mcp_get_request.rb deleted file mode 100644 index 6d730c8d7..000000000 --- a/lib/stack_one/models/operations/stackone_mcp_get_request.rb +++ /dev/null @@ -1,40 +0,0 @@ -# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -# typed: true -# frozen_string_literal: true - - -module StackOne - module Models - module Operations - - class StackoneMcpGetRequest - extend T::Sig - include Crystalline::MetadataFields - - # Session id - field :mcp_session_id, ::String, { 'header': { 'field_name': 'mcp-session-id', 'style': 'simple', 'explode': false } } - # Account secure id for the target provider account (optional if x-account-id query parameter is provided) - field :x_account_id, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } } - # Account secure id (alternative to x-account-id header) - field :x_account_id_query_parameter, Crystalline::Nilable.new(::Object), { 'query_param': { 'field_name': 'x-account-id', 'style': 'form', 'explode': true } } - - sig { params(mcp_session_id: ::String, x_account_id: T.nilable(::String), x_account_id_query_parameter: T.nilable(::Object)).void } - def initialize(mcp_session_id:, x_account_id: nil, x_account_id_query_parameter: nil) - @mcp_session_id = mcp_session_id - @x_account_id = x_account_id - @x_account_id_query_parameter = x_account_id_query_parameter - end - - sig { params(other: T.untyped).returns(T::Boolean) } - def ==(other) - return false unless other.is_a? self.class - return false unless @mcp_session_id == other.mcp_session_id - return false unless @x_account_id == other.x_account_id - return false unless @x_account_id_query_parameter == other.x_account_id_query_parameter - true - end - end - end - end -end diff --git a/lib/stack_one/models/operations/stackone_mcp_get_request.rbi b/lib/stack_one/models/operations/stackone_mcp_get_request.rbi deleted file mode 100644 index c922153c2..000000000 --- a/lib/stack_one/models/operations/stackone_mcp_get_request.rbi +++ /dev/null @@ -1,17 +0,0 @@ -# typed: true -# frozen_string_literal: true - - -class StackOne::Models::Operations::StackoneMcpGetRequest - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class StackOne::Models::Operations::StackoneMcpGetRequest - def mcp_session_id(); end - def mcp_session_id=(str_); end - def x_account_id(); end - def x_account_id=(str_); end - def x_account_id_query_parameter(); end - def x_account_id_query_parameter=(str_); end -end diff --git a/lib/stack_one/models/operations/stackone_mcp_get_response.rb b/lib/stack_one/models/operations/stackone_mcp_get_response.rb deleted file mode 100644 index 44e3a71f6..000000000 --- a/lib/stack_one/models/operations/stackone_mcp_get_response.rb +++ /dev/null @@ -1,44 +0,0 @@ -# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -# typed: true -# frozen_string_literal: true - - -module StackOne - module Models - module Operations - - class StackoneMcpGetResponse - extend T::Sig - include Crystalline::MetadataFields - - # HTTP response content type for this operation - field :content_type, ::String - - field :headers, Crystalline::Hash.new(Symbol, Crystalline::Array.new(::String)) - # HTTP response status code for this operation - field :status_code, ::Integer - # Raw HTTP response; suitable for custom response parsing - field :raw_response, ::Faraday::Response - - sig { params(content_type: ::String, headers: T::Hash[Symbol, T::Array[::String]], status_code: ::Integer, raw_response: ::Faraday::Response).void } - def initialize(content_type:, headers:, status_code:, raw_response:) - @content_type = content_type - @headers = headers - @status_code = status_code - @raw_response = raw_response - end - - sig { params(other: T.untyped).returns(T::Boolean) } - def ==(other) - return false unless other.is_a? self.class - return false unless @content_type == other.content_type - return false unless @headers == other.headers - return false unless @status_code == other.status_code - return false unless @raw_response == other.raw_response - true - end - end - end - end -end diff --git a/lib/stack_one/models/operations/stackone_mcp_get_response.rbi b/lib/stack_one/models/operations/stackone_mcp_get_response.rbi deleted file mode 100644 index e35cce264..000000000 --- a/lib/stack_one/models/operations/stackone_mcp_get_response.rbi +++ /dev/null @@ -1,19 +0,0 @@ -# typed: true -# frozen_string_literal: true - - -class StackOne::Models::Operations::StackoneMcpGetResponse - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class StackOne::Models::Operations::StackoneMcpGetResponse - def content_type(); end - def content_type=(str_); end - def headers(); end - def headers=(str_); end - def status_code(); end - def status_code=(str_); end - def raw_response(); end - def raw_response=(str_); end -end diff --git a/lib/stack_one/models/operations/stackone_mcp_get_security.rb b/lib/stack_one/models/operations/stackone_mcp_get_security.rb deleted file mode 100644 index 449fb909d..000000000 --- a/lib/stack_one/models/operations/stackone_mcp_get_security.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -# typed: true -# frozen_string_literal: true - - -module StackOne - module Models - module Operations - - class StackoneMcpGetSecurity - extend T::Sig - include Crystalline::MetadataFields - - - field :api_key, Crystalline::Nilable.new(::String), { 'security': { 'scheme': true, 'type': 'apiKey', 'sub_type': 'header', 'field_name': 'Authorization' } } - - field :basic, Crystalline::Nilable.new(Models::Shared::SchemeBasic), { 'security': { 'scheme': true, 'type': 'http', 'sub_type': 'basic' } } - - sig { params(api_key: T.nilable(::String), basic: T.nilable(Models::Shared::SchemeBasic)).void } - def initialize(api_key: nil, basic: nil) - @api_key = api_key - @basic = basic - end - - sig { params(other: T.untyped).returns(T::Boolean) } - def ==(other) - return false unless other.is_a? self.class - return false unless @api_key == other.api_key - return false unless @basic == other.basic - true - end - end - end - end -end diff --git a/lib/stack_one/models/operations/stackone_mcp_get_security.rbi b/lib/stack_one/models/operations/stackone_mcp_get_security.rbi deleted file mode 100644 index 15033f912..000000000 --- a/lib/stack_one/models/operations/stackone_mcp_get_security.rbi +++ /dev/null @@ -1,15 +0,0 @@ -# typed: true -# frozen_string_literal: true - - -class StackOne::Models::Operations::StackoneMcpGetSecurity - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class StackOne::Models::Operations::StackoneMcpGetSecurity - def api_key(); end - def api_key=(str_); end - def basic(); end - def basic=(str_); end -end diff --git a/lib/stack_one/models/operations/stackone_mcp_post_request.rb b/lib/stack_one/models/operations/stackone_mcp_post_request.rb index 063f993a1..4546b7782 100644 --- a/lib/stack_one/models/operations/stackone_mcp_post_request.rb +++ b/lib/stack_one/models/operations/stackone_mcp_post_request.rb @@ -14,10 +14,10 @@ class StackoneMcpPostRequest # JSON-RPC 2.0 message field :json_rpc_message_dto, Models::Shared::JsonRpcMessageDto, { 'request': { 'media_type': 'application/json' } } + # MCP Apps panel: "off" (default) omits it, "on" registers the interactive toolset explorer. Only set it for hosts that render MCP Apps — a client with no iframe (a terminal) gets a tool whose result it cannot display + field :apps, Crystalline::Nilable.new(Models::Operations::Apps), { 'query_param': { 'field_name': 'apps', 'style': 'form', 'explode': true } } # Server `instructions` (returned in the MCP initialize handshake) that teach the model the path/query/body/headers parameter envelope: "off" (default) omits them, "on" includes envelope guidance matched to the active param-style field :instructions, Crystalline::Nilable.new(Models::Operations::Instructions), { 'query_param': { 'field_name': 'instructions', 'style': 'form', 'explode': true } } - # Session id; omit for initialize, include for subsequent calls - field :mcp_session_id, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'mcp-session-id', 'style': 'simple', 'explode': false } } # Parameter schema style: "nested" (default) groups by location, "flat_prefixed" flattens with location prefix, "flat_smart" flattens and only prefixes on name collision field :param_style, Crystalline::Nilable.new(Models::Operations::ParamStyle), { 'query_param': { 'field_name': 'param-style', 'style': 'form', 'explode': true } } # Tool registration mode: "individual" (default) registers each action as a separate tool; "search_execute" registers two tools per linked account for a search-then-execute flow @@ -27,11 +27,11 @@ class StackoneMcpPostRequest # Account secure id (alternative to x-account-id header) field :x_account_id_query_parameter, Crystalline::Nilable.new(::Object), { 'query_param': { 'field_name': 'x-account-id', 'style': 'form', 'explode': true } } - sig { params(json_rpc_message_dto: Models::Shared::JsonRpcMessageDto, instructions: T.nilable(Models::Operations::Instructions), mcp_session_id: T.nilable(::String), param_style: T.nilable(Models::Operations::ParamStyle), tool_mode: T.nilable(Models::Operations::ToolMode), x_account_id: T.nilable(::String), x_account_id_query_parameter: T.nilable(::Object)).void } - def initialize(json_rpc_message_dto:, instructions: nil, mcp_session_id: nil, param_style: nil, tool_mode: nil, x_account_id: nil, x_account_id_query_parameter: nil) + sig { params(json_rpc_message_dto: Models::Shared::JsonRpcMessageDto, apps: T.nilable(Models::Operations::Apps), instructions: T.nilable(Models::Operations::Instructions), param_style: T.nilable(Models::Operations::ParamStyle), tool_mode: T.nilable(Models::Operations::ToolMode), x_account_id: T.nilable(::String), x_account_id_query_parameter: T.nilable(::Object)).void } + def initialize(json_rpc_message_dto:, apps: nil, instructions: nil, param_style: nil, tool_mode: nil, x_account_id: nil, x_account_id_query_parameter: nil) @json_rpc_message_dto = json_rpc_message_dto + @apps = apps @instructions = instructions - @mcp_session_id = mcp_session_id @param_style = param_style @tool_mode = tool_mode @x_account_id = x_account_id @@ -42,8 +42,8 @@ def initialize(json_rpc_message_dto:, instructions: nil, mcp_session_id: nil, pa def ==(other) return false unless other.is_a? self.class return false unless @json_rpc_message_dto == other.json_rpc_message_dto + return false unless @apps == other.apps return false unless @instructions == other.instructions - return false unless @mcp_session_id == other.mcp_session_id return false unless @param_style == other.param_style return false unless @tool_mode == other.tool_mode return false unless @x_account_id == other.x_account_id diff --git a/lib/stack_one/models/operations/stackone_mcp_post_request.rbi b/lib/stack_one/models/operations/stackone_mcp_post_request.rbi index cf026ef3e..1618d22d8 100644 --- a/lib/stack_one/models/operations/stackone_mcp_post_request.rbi +++ b/lib/stack_one/models/operations/stackone_mcp_post_request.rbi @@ -10,10 +10,10 @@ end class StackOne::Models::Operations::StackoneMcpPostRequest def json_rpc_message_dto(); end def json_rpc_message_dto=(str_); end + def apps(); end + def apps=(str_); end def instructions(); end def instructions=(str_); end - def mcp_session_id(); end - def mcp_session_id=(str_); end def param_style(); end def param_style=(str_); end def tool_mode(); end diff --git a/lib/stack_one/models/operations/stackone_mcp_post_response.rb b/lib/stack_one/models/operations/stackone_mcp_post_response.rb index b87617c92..1844e5e33 100644 --- a/lib/stack_one/models/operations/stackone_mcp_post_response.rb +++ b/lib/stack_one/models/operations/stackone_mcp_post_response.rb @@ -22,17 +22,14 @@ class StackoneMcpPostResponse field :raw_response, ::Faraday::Response # Processed successfully field :object, Crystalline::Nilable.new(Models::Operations::StackoneMcpPostResponseBody) - # Processed successfully - field :res, Crystalline::Nilable.new(::String) - sig { params(content_type: ::String, headers: T::Hash[Symbol, T::Array[::String]], status_code: ::Integer, raw_response: ::Faraday::Response, object: T.nilable(Models::Operations::StackoneMcpPostResponseBody), res: T.nilable(::String)).void } - def initialize(content_type:, headers:, status_code:, raw_response:, object: nil, res: nil) + sig { params(content_type: ::String, headers: T::Hash[Symbol, T::Array[::String]], status_code: ::Integer, raw_response: ::Faraday::Response, object: T.nilable(Models::Operations::StackoneMcpPostResponseBody)).void } + def initialize(content_type:, headers:, status_code:, raw_response:, object: nil) @content_type = content_type @headers = headers @status_code = status_code @raw_response = raw_response @object = object - @res = res end sig { params(other: T.untyped).returns(T::Boolean) } @@ -43,7 +40,6 @@ def ==(other) return false unless @status_code == other.status_code return false unless @raw_response == other.raw_response return false unless @object == other.object - return false unless @res == other.res true end end diff --git a/lib/stack_one/models/operations/stackone_mcp_post_response.rbi b/lib/stack_one/models/operations/stackone_mcp_post_response.rbi index 70619df65..0cc245fb6 100644 --- a/lib/stack_one/models/operations/stackone_mcp_post_response.rbi +++ b/lib/stack_one/models/operations/stackone_mcp_post_response.rbi @@ -18,6 +18,4 @@ class StackOne::Models::Operations::StackoneMcpPostResponse def raw_response=(str_); end def object(); end def object=(str_); end - def res(); end - def res=(str_); end end diff --git a/lib/stack_one/models/operations/stackone_rpc_action_synced_response.rb b/lib/stack_one/models/operations/stackone_rpc_action_synced_response.rb index 0b06c6b87..708aa6317 100644 --- a/lib/stack_one/models/operations/stackone_rpc_action_synced_response.rb +++ b/lib/stack_one/models/operations/stackone_rpc_action_synced_response.rb @@ -20,16 +20,16 @@ class StackoneRpcActionSyncedResponse field :status_code, ::Integer # Raw HTTP response; suitable for custom response parsing field :raw_response, ::Faraday::Response - # Synced action data - field :actions_synced_response, Crystalline::Nilable.new(Models::Shared::ActionsSyncedResponse) + # Synced action data, or a refusal payload explaining why none was returned. + field :one_of, Crystalline::Nilable.new(Crystalline::Union.new(Models::Shared::ActionsSyncedResponse, Models::Shared::ActionsSyncedRefusal)) - sig { params(content_type: ::String, headers: T::Hash[Symbol, T::Array[::String]], status_code: ::Integer, raw_response: ::Faraday::Response, actions_synced_response: T.nilable(Models::Shared::ActionsSyncedResponse)).void } - def initialize(content_type:, headers:, status_code:, raw_response:, actions_synced_response: nil) + sig { params(content_type: ::String, headers: T::Hash[Symbol, T::Array[::String]], status_code: ::Integer, raw_response: ::Faraday::Response, one_of: T.nilable(T.any(Models::Shared::ActionsSyncedResponse, Models::Shared::ActionsSyncedRefusal))).void } + def initialize(content_type:, headers:, status_code:, raw_response:, one_of: nil) @content_type = content_type @headers = headers @status_code = status_code @raw_response = raw_response - @actions_synced_response = actions_synced_response + @one_of = one_of end sig { params(other: T.untyped).returns(T::Boolean) } @@ -39,7 +39,7 @@ def ==(other) return false unless @headers == other.headers return false unless @status_code == other.status_code return false unless @raw_response == other.raw_response - return false unless @actions_synced_response == other.actions_synced_response + return false unless @one_of == other.one_of true end end diff --git a/lib/stack_one/models/operations/stackone_rpc_action_synced_response.rbi b/lib/stack_one/models/operations/stackone_rpc_action_synced_response.rbi index 300c3dead..453f75989 100644 --- a/lib/stack_one/models/operations/stackone_rpc_action_synced_response.rbi +++ b/lib/stack_one/models/operations/stackone_rpc_action_synced_response.rbi @@ -16,6 +16,6 @@ class StackOne::Models::Operations::StackoneRpcActionSyncedResponse def status_code=(str_); end def raw_response(); end def raw_response=(str_); end - def actions_synced_response(); end - def actions_synced_response=(str_); end + def one_of(); end + def one_of=(str_); end end diff --git a/lib/stack_one/models/operations/stackone_rpc_action_synced_responsebody.rb b/lib/stack_one/models/operations/stackone_rpc_action_synced_responsebody.rb new file mode 100644 index 000000000..2017a7a25 --- /dev/null +++ b/lib/stack_one/models/operations/stackone_rpc_action_synced_responsebody.rb @@ -0,0 +1,27 @@ +# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +# typed: true +# frozen_string_literal: true + + +module StackOne + module Models + module Operations + # Synced action data, or a refusal payload explaining why none was returned. + class StackoneRpcActionSyncedResponseBody + extend T::Sig + include Crystalline::MetadataFields + + + + def initialize; end + + sig { params(other: T.untyped).returns(T::Boolean) } + def ==(other) + return false unless other.is_a? self.class + true + end + end + end + end +end diff --git a/lib/stack_one/models/operations/stackone_rpc_action_synced_responsebody.rbi b/lib/stack_one/models/operations/stackone_rpc_action_synced_responsebody.rbi new file mode 100644 index 000000000..1bac242ed --- /dev/null +++ b/lib/stack_one/models/operations/stackone_rpc_action_synced_responsebody.rbi @@ -0,0 +1,11 @@ +# typed: true +# frozen_string_literal: true + + +class StackOne::Models::Operations::StackoneRpcActionSyncedResponseBody + extend ::Crystalline::MetadataFields::ClassMethods +end + + +class StackOne::Models::Operations::StackoneRpcActionSyncedResponseBody +end diff --git a/lib/stack_one/models/shared.rb b/lib/stack_one/models/shared.rb index 0cfad98a7..45aca20b0 100644 --- a/lib/stack_one/models/shared.rb +++ b/lib/stack_one/models/shared.rb @@ -85,7 +85,9 @@ module Shared autoload :ActionsRpcResponse, 'stack_one/models/shared/actionsrpcresponse.rb' autoload :ActionsRpcSyncedRequestDto, 'stack_one/models/shared/actionsrpcsyncedrequestdto.rb' autoload :ActionsSyncedDatasync, 'stack_one/models/shared/actionssynceddatasync.rb' + autoload :ActionsSyncedRefusal, 'stack_one/models/shared/actionssyncedrefusal.rb' autoload :ActionsSyncedResponse, 'stack_one/models/shared/actionssyncedresponse.rb' + autoload :ActionsSyncedSyncChoice, 'stack_one/models/shared/actionssyncedsyncchoice.rb' autoload :AdditionalData, 'stack_one/models/shared/additionaldata.rb' autoload :AdditionalDataValue, 'stack_one/models/shared/additionaldata_value.rb' autoload :AggregationPostDto, 'stack_one/models/shared/aggregationpostdto.rb' diff --git a/lib/stack_one/models/shared/actionmetaitem.rb b/lib/stack_one/models/shared/actionmetaitem.rb index d86082b79..07d1216a3 100644 --- a/lib/stack_one/models/shared/actionmetaitem.rb +++ b/lib/stack_one/models/shared/actionmetaitem.rb @@ -18,6 +18,8 @@ class ActionMetaItem field :authentication, Crystalline::Nilable.new(Crystalline::Array.new(Models::Shared::AuthenticationMetaItem)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('authentication') } } # The action description field :description, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('description') } } + # Whether this action requires parameters to be supplied when it is synced. Such actions cannot be linked automatically for every account — each schedule must be created with its parameter values. + field :has_required_parameters, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('has_required_parameters') } } # The action ID field :id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } } # The action label @@ -33,11 +35,12 @@ class ActionMetaItem # The tags associated with this action field :tags, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('tags') } } - sig { params(action_details: T.nilable(T::Hash[Symbol, ::Object]), authentication: T.nilable(T::Array[Models::Shared::AuthenticationMetaItem]), description: T.nilable(::String), id: T.nilable(::String), label: T.nilable(::String), required_scopes: T.nilable(T::Array[::String]), schema_type: T.nilable(::String), supports_incremental: T.nilable(T::Boolean), syncable: T.nilable(T::Boolean), tags: T.nilable(T::Array[::String])).void } - def initialize(action_details: nil, authentication: nil, description: nil, id: nil, label: nil, required_scopes: nil, schema_type: nil, supports_incremental: nil, syncable: nil, tags: nil) + sig { params(action_details: T.nilable(T::Hash[Symbol, ::Object]), authentication: T.nilable(T::Array[Models::Shared::AuthenticationMetaItem]), description: T.nilable(::String), has_required_parameters: T.nilable(T::Boolean), id: T.nilable(::String), label: T.nilable(::String), required_scopes: T.nilable(T::Array[::String]), schema_type: T.nilable(::String), supports_incremental: T.nilable(T::Boolean), syncable: T.nilable(T::Boolean), tags: T.nilable(T::Array[::String])).void } + def initialize(action_details: nil, authentication: nil, description: nil, has_required_parameters: nil, id: nil, label: nil, required_scopes: nil, schema_type: nil, supports_incremental: nil, syncable: nil, tags: nil) @action_details = action_details @authentication = authentication @description = description + @has_required_parameters = has_required_parameters @id = id @label = label @required_scopes = required_scopes @@ -53,6 +56,7 @@ def ==(other) return false unless @action_details == other.action_details return false unless @authentication == other.authentication return false unless @description == other.description + return false unless @has_required_parameters == other.has_required_parameters return false unless @id == other.id return false unless @label == other.label return false unless @required_scopes == other.required_scopes diff --git a/lib/stack_one/models/shared/actionmetaitem.rbi b/lib/stack_one/models/shared/actionmetaitem.rbi index e3f8ae77c..f7d48b26c 100644 --- a/lib/stack_one/models/shared/actionmetaitem.rbi +++ b/lib/stack_one/models/shared/actionmetaitem.rbi @@ -14,6 +14,8 @@ class StackOne::Models::Shared::ActionMetaItem def authentication=(str_); end def description(); end def description=(str_); end + def has_required_parameters(); end + def has_required_parameters=(str_); end def id(); end def id=(str_); end def label(); end diff --git a/lib/stack_one/models/shared/actionsrpcsyncedrequestdto.rb b/lib/stack_one/models/shared/actionsrpcsyncedrequestdto.rb index d7ea43744..c6ff1ae0b 100644 --- a/lib/stack_one/models/shared/actionsrpcsyncedrequestdto.rb +++ b/lib/stack_one/models/shared/actionsrpcsyncedrequestdto.rb @@ -14,36 +14,64 @@ class ActionsRpcSyncedRequestDto # The action to execute field :action, ::String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('action'), required: true } } - # Request body for the action. Must match the body used when the run was written so the params_hash resolves to the same synced run. + # OpenSearch aggregations object. When set, aggregation results are returned instead of records, and `source`, `sort`, `page_size` and `skip` are ignored (`filter` still applies). + field :aggs, Crystalline::Nilable.new(Crystalline::Hash.new(Symbol, ::Object)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('aggs') } } + # Accepted for backwards compatibility but ignored on this endpoint: synced reads no longer select the run by request body. Use `sync_id` to choose which sync to read. + # + # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible. field :body, Crystalline::Nilable.new(Crystalline::Hash.new(Symbol, ::Object)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('body') } } - # Filter parameters to scope the synced action + # OpenSearch-style filter (Query DSL) (term / terms / range / wildcard / match / match_phrase / exists / bool) over synced fields. match / match_phrase do word-level search (string fields only, case-insensitive); wildcard matches patterns (case-sensitive). Use field names exactly as returned in the action's "queryable_fields". field :filter, Crystalline::Nilable.new(Crystalline::Hash.new(Symbol, ::Object)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('filter') } } - # Headers for the action. Must match the headers used when the run was written so the params_hash resolves to the same synced run. + # Accepted for backwards compatibility but ignored on this endpoint: synced reads no longer select the run by headers. Use `sync_id` to choose which sync to read. + # + # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible. field :headers, Crystalline::Nilable.new(Crystalline::Hash.new(Symbol, ::Object)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('headers') } } - # Path parameters for the action + # Accepted for backwards compatibility but ignored on this endpoint: synced reads no longer select the run by path parameters. Use `sync_id` to choose which sync to read. + # + # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible. field :path, Crystalline::Nilable.new(Crystalline::Hash.new(Symbol, ::Object)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('path') } } - # Query parameters for the action. Must match the query params used when the run was written so the params_hash resolves to the same synced run. + # Accepted for backwards compatibility but ignored on this endpoint: synced reads no longer select the run by query parameters. Use `sync_id` to choose which sync to read. + # + # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible. field :query, Crystalline::Nilable.new(Crystalline::Hash.new(Symbol, ::Object)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('query') } } + # Free-text search over the record's text fields, ranked by relevance. Supports "quoted phrases", +required / -excluded terms, and prefix* — lenient (never errors). Combine with `filter` to narrow; results are relevance-ranked unless an explicit sort is given. + field :search, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('search') } } + # OpenSearch-style sort. Each entry is either a field name (ascending) or an object keyed by field name: `{"last_name": "desc"}`, or the nested form `{"last_name": {"order": "desc"}}`. Earlier entries take priority. + field :sort, Crystalline::Nilable.new(Crystalline::Array.new(::Object)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('sort') } } + # Field names to return (projection) — omit to return all fields. Shrinks the response. + field :source, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source') } } + # Which sync to read, when the account has more than one sync of this action. Omit when there is only one; a named sync is never substituted if it is gone. + field :sync_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('sync_id') } } - sig { params(action: ::String, body: T.nilable(T::Hash[Symbol, ::Object]), filter: T.nilable(T::Hash[Symbol, ::Object]), headers: T.nilable(T::Hash[Symbol, ::Object]), path: T.nilable(T::Hash[Symbol, ::Object]), query: T.nilable(T::Hash[Symbol, ::Object])).void } - def initialize(action:, body: nil, filter: nil, headers: nil, path: nil, query: nil) + sig { params(action: ::String, aggs: T.nilable(T::Hash[Symbol, ::Object]), body: T.nilable(T::Hash[Symbol, ::Object]), filter: T.nilable(T::Hash[Symbol, ::Object]), headers: T.nilable(T::Hash[Symbol, ::Object]), path: T.nilable(T::Hash[Symbol, ::Object]), query: T.nilable(T::Hash[Symbol, ::Object]), search: T.nilable(::String), sort: T.nilable(T::Array[::Object]), source: T.nilable(T::Array[::String]), sync_id: T.nilable(::String)).void } + def initialize(action:, aggs: nil, body: nil, filter: nil, headers: nil, path: nil, query: nil, search: nil, sort: nil, source: nil, sync_id: nil) @action = action + @aggs = aggs @body = body @filter = filter @headers = headers @path = path @query = query + @search = search + @sort = sort + @source = source + @sync_id = sync_id end sig { params(other: T.untyped).returns(T::Boolean) } def ==(other) return false unless other.is_a? self.class return false unless @action == other.action + return false unless @aggs == other.aggs return false unless @body == other.body return false unless @filter == other.filter return false unless @headers == other.headers return false unless @path == other.path return false unless @query == other.query + return false unless @search == other.search + return false unless @sort == other.sort + return false unless @source == other.source + return false unless @sync_id == other.sync_id true end end diff --git a/lib/stack_one/models/shared/actionsrpcsyncedrequestdto.rbi b/lib/stack_one/models/shared/actionsrpcsyncedrequestdto.rbi index 684c4c5e9..da094170b 100644 --- a/lib/stack_one/models/shared/actionsrpcsyncedrequestdto.rbi +++ b/lib/stack_one/models/shared/actionsrpcsyncedrequestdto.rbi @@ -10,6 +10,8 @@ end class StackOne::Models::Shared::ActionsRpcSyncedRequestDto def action(); end def action=(str_); end + def aggs(); end + def aggs=(str_); end def body(); end def body=(str_); end def filter(); end @@ -20,4 +22,12 @@ class StackOne::Models::Shared::ActionsRpcSyncedRequestDto def path=(str_); end def query(); end def query=(str_); end + def search(); end + def search=(str_); end + def sort(); end + def sort=(str_); end + def source(); end + def source=(str_); end + def sync_id(); end + def sync_id=(str_); end end diff --git a/lib/stack_one/models/shared/actionssynceddatasync.rb b/lib/stack_one/models/shared/actionssynceddatasync.rb index 99554d335..a2cc983c1 100644 --- a/lib/stack_one/models/shared/actionssynceddatasync.rb +++ b/lib/stack_one/models/shared/actionssynceddatasync.rb @@ -22,16 +22,22 @@ class ActionsSyncedDatasync field :request_id, ::String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('request_id'), required: true } } # ISO 8601 timestamp of when the synced data expires field :sync_expires_at, ::String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('sync_expires_at'), required: true } } + # Which sync served this read. + field :sync_id, ::String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('sync_id'), required: true } } + # The served sync's raw name. Not unique, and may be the bare action id. + field :sync_name, ::String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('sync_name'), required: true } } # ISO 8601 timestamp of when the data was synced field :synced_at, ::String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('synced_at'), required: true } } - sig { params(last_full_run_id: ::String, last_run_id: ::String, params_hash: ::String, request_id: ::String, sync_expires_at: ::String, synced_at: ::String).void } - def initialize(last_full_run_id:, last_run_id:, params_hash:, request_id:, sync_expires_at:, synced_at:) + sig { params(last_full_run_id: ::String, last_run_id: ::String, params_hash: ::String, request_id: ::String, sync_expires_at: ::String, sync_id: ::String, sync_name: ::String, synced_at: ::String).void } + def initialize(last_full_run_id:, last_run_id:, params_hash:, request_id:, sync_expires_at:, sync_id:, sync_name:, synced_at:) @last_full_run_id = last_full_run_id @last_run_id = last_run_id @params_hash = params_hash @request_id = request_id @sync_expires_at = sync_expires_at + @sync_id = sync_id + @sync_name = sync_name @synced_at = synced_at end @@ -43,6 +49,8 @@ def ==(other) return false unless @params_hash == other.params_hash return false unless @request_id == other.request_id return false unless @sync_expires_at == other.sync_expires_at + return false unless @sync_id == other.sync_id + return false unless @sync_name == other.sync_name return false unless @synced_at == other.synced_at true end diff --git a/lib/stack_one/models/shared/actionssynceddatasync.rbi b/lib/stack_one/models/shared/actionssynceddatasync.rbi index 7afd7f7d7..95bd0d367 100644 --- a/lib/stack_one/models/shared/actionssynceddatasync.rbi +++ b/lib/stack_one/models/shared/actionssynceddatasync.rbi @@ -18,6 +18,10 @@ class StackOne::Models::Shared::ActionsSyncedDatasync def request_id=(str_); end def sync_expires_at(); end def sync_expires_at=(str_); end + def sync_id(); end + def sync_id=(str_); end + def sync_name(); end + def sync_name=(str_); end def synced_at(); end def synced_at=(str_); end end diff --git a/lib/stack_one/models/shared/actionssyncedrefusal.rb b/lib/stack_one/models/shared/actionssyncedrefusal.rb new file mode 100644 index 000000000..fbc5a565a --- /dev/null +++ b/lib/stack_one/models/shared/actionssyncedrefusal.rb @@ -0,0 +1,44 @@ +# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +# typed: true +# frozen_string_literal: true + + +module StackOne + module Models + module Shared + + class ActionsSyncedRefusal + extend T::Sig + include Crystalline::MetadataFields + + # The action this refusal is about. + field :action_id, ::String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('action_id'), required: true } } + # Human-readable explanation of why no data was returned. + field :message, ::String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('message'), required: true } } + # Always false: no synced data was returned. + field :synced, Crystalline::Boolean.new, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('synced'), required: true } } + # Present when the account has more than one sync of this action: the sync_id choices — pass one as `sync_id` to disambiguate. + field :syncs, Crystalline::Nilable.new(Crystalline::Array.new(Models::Shared::ActionsSyncedSyncChoice)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('syncs') } } + + sig { params(action_id: ::String, message: ::String, synced: T::Boolean, syncs: T.nilable(T::Array[Models::Shared::ActionsSyncedSyncChoice])).void } + def initialize(action_id:, message:, synced:, syncs: nil) + @action_id = action_id + @message = message + @synced = synced + @syncs = syncs + end + + sig { params(other: T.untyped).returns(T::Boolean) } + def ==(other) + return false unless other.is_a? self.class + return false unless @action_id == other.action_id + return false unless @message == other.message + return false unless @synced == other.synced + return false unless @syncs == other.syncs + true + end + end + end + end +end diff --git a/lib/stack_one/models/shared/actionssyncedrefusal.rbi b/lib/stack_one/models/shared/actionssyncedrefusal.rbi new file mode 100644 index 000000000..eb12d40d4 --- /dev/null +++ b/lib/stack_one/models/shared/actionssyncedrefusal.rbi @@ -0,0 +1,19 @@ +# typed: true +# frozen_string_literal: true + + +class StackOne::Models::Shared::ActionsSyncedRefusal + extend ::Crystalline::MetadataFields::ClassMethods +end + + +class StackOne::Models::Shared::ActionsSyncedRefusal + def action_id(); end + def action_id=(str_); end + def message(); end + def message=(str_); end + def synced(); end + def synced=(str_); end + def syncs(); end + def syncs=(str_); end +end diff --git a/lib/stack_one/models/shared/actionssyncedresponse.rb b/lib/stack_one/models/shared/actionssyncedresponse.rb index 993e2fdfb..5794da919 100644 --- a/lib/stack_one/models/shared/actionssyncedresponse.rb +++ b/lib/stack_one/models/shared/actionssyncedresponse.rb @@ -14,12 +14,15 @@ class ActionsSyncedResponse # Metadata about the datasync operation field :datasync, Models::Shared::ActionsSyncedDatasync, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('datasync'), required: true } } + # Present instead of `data` when the request set `aggs`: the OpenSearch aggregation results, keyed the same as the requested `aggs`. + field :aggregations, Crystalline::Nilable.new(Crystalline::Hash.new(Symbol, ::Object)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('aggregations') } } # The synced records for the requested action field :data, Crystalline::Nilable.new(Crystalline::Array.new(Crystalline::Hash.new(Symbol, ::Object))), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('data') } } - sig { params(datasync: Models::Shared::ActionsSyncedDatasync, data: T.nilable(T::Array[T::Hash[Symbol, ::Object]])).void } - def initialize(datasync:, data: nil) + sig { params(datasync: Models::Shared::ActionsSyncedDatasync, aggregations: T.nilable(T::Hash[Symbol, ::Object]), data: T.nilable(T::Array[T::Hash[Symbol, ::Object]])).void } + def initialize(datasync:, aggregations: nil, data: nil) @datasync = datasync + @aggregations = aggregations @data = data end @@ -27,6 +30,7 @@ def initialize(datasync:, data: nil) def ==(other) return false unless other.is_a? self.class return false unless @datasync == other.datasync + return false unless @aggregations == other.aggregations return false unless @data == other.data true end diff --git a/lib/stack_one/models/shared/actionssyncedresponse.rbi b/lib/stack_one/models/shared/actionssyncedresponse.rbi index c60fa9dcb..3a117155d 100644 --- a/lib/stack_one/models/shared/actionssyncedresponse.rbi +++ b/lib/stack_one/models/shared/actionssyncedresponse.rbi @@ -10,6 +10,8 @@ end class StackOne::Models::Shared::ActionsSyncedResponse def datasync(); end def datasync=(str_); end + def aggregations(); end + def aggregations=(str_); end def data(); end def data=(str_); end end diff --git a/lib/stack_one/models/shared/actionssyncedsyncchoice.rb b/lib/stack_one/models/shared/actionssyncedsyncchoice.rb new file mode 100644 index 000000000..150e51ea9 --- /dev/null +++ b/lib/stack_one/models/shared/actionssyncedsyncchoice.rb @@ -0,0 +1,40 @@ +# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +# typed: true +# frozen_string_literal: true + + +module StackOne + module Models + module Shared + + class ActionsSyncedSyncChoice + extend T::Sig + include Crystalline::MetadataFields + + # Pass this as `sync_id` to select this sync. + field :sync_id, ::String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('sync_id'), required: true } } + # Disambiguated label: the name, with parameters appended when the name alone does not distinguish this choice from another. + field :sync_label, ::String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('sync_label'), required: true } } + # The sync's raw name. Not unique, and may be the bare action id. + field :sync_name, ::String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('sync_name'), required: true } } + + sig { params(sync_id: ::String, sync_label: ::String, sync_name: ::String).void } + def initialize(sync_id:, sync_label:, sync_name:) + @sync_id = sync_id + @sync_label = sync_label + @sync_name = sync_name + end + + sig { params(other: T.untyped).returns(T::Boolean) } + def ==(other) + return false unless other.is_a? self.class + return false unless @sync_id == other.sync_id + return false unless @sync_label == other.sync_label + return false unless @sync_name == other.sync_name + true + end + end + end + end +end diff --git a/lib/stack_one/models/shared/actionssyncedsyncchoice.rbi b/lib/stack_one/models/shared/actionssyncedsyncchoice.rbi new file mode 100644 index 000000000..f757df297 --- /dev/null +++ b/lib/stack_one/models/shared/actionssyncedsyncchoice.rbi @@ -0,0 +1,17 @@ +# typed: true +# frozen_string_literal: true + + +class StackOne::Models::Shared::ActionsSyncedSyncChoice + extend ::Crystalline::MetadataFields::ClassMethods +end + + +class StackOne::Models::Shared::ActionsSyncedSyncChoice + def sync_id(); end + def sync_id=(str_); end + def sync_label(); end + def sync_label=(str_); end + def sync_name(); end + def sync_name=(str_); end +end diff --git a/lib/stack_one/models/shared/files.rb b/lib/stack_one/models/shared/files.rb index f8158b2e4..a3dfc7903 100644 --- a/lib/stack_one/models/shared/files.rb +++ b/lib/stack_one/models/shared/files.rb @@ -32,6 +32,8 @@ class Files field :has_children, Crystalline::Nilable.new(Crystalline::Union.new(Crystalline::Boolean.new, Models::Shared::Files2)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('has_children') } } # Whether the file has content field :has_content, Crystalline::Nilable.new(Crystalline::Union.new(Crystalline::Boolean.new, Models::Shared::FilesSchemas2)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('has_content') } } + # The icon of the file, either an emoji character or an image url + field :icon, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('icon') } } # Unique identifier field :id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } } # The name associated with this file @@ -55,8 +57,8 @@ class Files # The url of the file field :url, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('url') } } - sig { params(all_parent_folder_ids: T.nilable(T::Array[::String]), created_at: T.nilable(::DateTime), default_download_format: T.nilable(::String), description: T.nilable(::String), drive_id: T.nilable(::String), export_formats: T.nilable(T::Array[::String]), file_format: T.nilable(Models::Shared::FilesFileFormat), folder_id: T.nilable(::String), has_children: T.nilable(T.any(T::Boolean, Models::Shared::Files2)), has_content: T.nilable(T.any(T::Boolean, Models::Shared::FilesSchemas2)), id: T.nilable(::String), name: T.nilable(::String), owner_id: T.nilable(::String), path: T.nilable(::String), remote_drive_id: T.nilable(::String), remote_folder_id: T.nilable(::String), remote_id: T.nilable(::String), remote_owner_id: T.nilable(::String), size: T.nilable(::Float), updated_at: T.nilable(::DateTime), url: T.nilable(::String)).void } - def initialize(all_parent_folder_ids: nil, created_at: nil, default_download_format: nil, description: nil, drive_id: nil, export_formats: nil, file_format: nil, folder_id: nil, has_children: nil, has_content: nil, id: nil, name: nil, owner_id: nil, path: nil, remote_drive_id: nil, remote_folder_id: nil, remote_id: nil, remote_owner_id: nil, size: nil, updated_at: nil, url: nil) + sig { params(all_parent_folder_ids: T.nilable(T::Array[::String]), created_at: T.nilable(::DateTime), default_download_format: T.nilable(::String), description: T.nilable(::String), drive_id: T.nilable(::String), export_formats: T.nilable(T::Array[::String]), file_format: T.nilable(Models::Shared::FilesFileFormat), folder_id: T.nilable(::String), has_children: T.nilable(T.any(T::Boolean, Models::Shared::Files2)), has_content: T.nilable(T.any(T::Boolean, Models::Shared::FilesSchemas2)), icon: T.nilable(::String), id: T.nilable(::String), name: T.nilable(::String), owner_id: T.nilable(::String), path: T.nilable(::String), remote_drive_id: T.nilable(::String), remote_folder_id: T.nilable(::String), remote_id: T.nilable(::String), remote_owner_id: T.nilable(::String), size: T.nilable(::Float), updated_at: T.nilable(::DateTime), url: T.nilable(::String)).void } + def initialize(all_parent_folder_ids: nil, created_at: nil, default_download_format: nil, description: nil, drive_id: nil, export_formats: nil, file_format: nil, folder_id: nil, has_children: nil, has_content: nil, icon: nil, id: nil, name: nil, owner_id: nil, path: nil, remote_drive_id: nil, remote_folder_id: nil, remote_id: nil, remote_owner_id: nil, size: nil, updated_at: nil, url: nil) @all_parent_folder_ids = all_parent_folder_ids @created_at = created_at @default_download_format = default_download_format @@ -67,6 +69,7 @@ def initialize(all_parent_folder_ids: nil, created_at: nil, default_download_for @folder_id = folder_id @has_children = has_children @has_content = has_content + @icon = icon @id = id @name = name @owner_id = owner_id @@ -93,6 +96,7 @@ def ==(other) return false unless @folder_id == other.folder_id return false unless @has_children == other.has_children return false unless @has_content == other.has_content + return false unless @icon == other.icon return false unless @id == other.id return false unless @name == other.name return false unless @owner_id == other.owner_id diff --git a/lib/stack_one/models/shared/files.rbi b/lib/stack_one/models/shared/files.rbi index 8cb63452d..69c2c3c79 100644 --- a/lib/stack_one/models/shared/files.rbi +++ b/lib/stack_one/models/shared/files.rbi @@ -28,6 +28,8 @@ class StackOne::Models::Shared::Files def has_children=(str_); end def has_content(); end def has_content=(str_); end + def icon(); end + def icon=(str_); end def id(); end def id=(str_); end def name(); end diff --git a/lib/stack_one/models/shared/folders.rb b/lib/stack_one/models/shared/folders.rb index 0c9f9097c..19d87e766 100644 --- a/lib/stack_one/models/shared/folders.rb +++ b/lib/stack_one/models/shared/folders.rb @@ -24,6 +24,8 @@ class Folders field :has_children, Crystalline::Nilable.new(Crystalline::Union.new(Crystalline::Boolean.new, Models::Shared::Folders2)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('has_children') } } # Whether the folder has content field :has_content, Crystalline::Nilable.new(Crystalline::Union.new(Crystalline::Boolean.new, Models::Shared::FoldersSchemas2)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('has_content') } } + # The icon of the folder, either an emoji character or an image url + field :icon, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('icon') } } # Unique identifier field :id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } } # Whether the folder is at the root level of the drive @@ -51,14 +53,15 @@ class Folders # The url of the folder field :url, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('url') } } - sig { params(all_parent_folder_ids: T.nilable(T::Array[::String]), created_at: T.nilable(::DateTime), description: T.nilable(::String), drive_id: T.nilable(::String), has_children: T.nilable(T.any(T::Boolean, Models::Shared::Folders2)), has_content: T.nilable(T.any(T::Boolean, Models::Shared::FoldersSchemas2)), id: T.nilable(::String), is_root: T.nilable(T.any(T::Boolean, Models::Shared::FoldersSchemasIsRoot2)), name: T.nilable(::String), owner_id: T.nilable(::String), parent_folder_id: T.nilable(::String), path: T.nilable(::String), remote_drive_id: T.nilable(::String), remote_id: T.nilable(::String), remote_owner_id: T.nilable(::String), remote_parent_folder_id: T.nilable(::String), size: T.nilable(::Float), updated_at: T.nilable(::DateTime), url: T.nilable(::String)).void } - def initialize(all_parent_folder_ids: nil, created_at: nil, description: nil, drive_id: nil, has_children: nil, has_content: nil, id: nil, is_root: nil, name: nil, owner_id: nil, parent_folder_id: nil, path: nil, remote_drive_id: nil, remote_id: nil, remote_owner_id: nil, remote_parent_folder_id: nil, size: nil, updated_at: nil, url: nil) + sig { params(all_parent_folder_ids: T.nilable(T::Array[::String]), created_at: T.nilable(::DateTime), description: T.nilable(::String), drive_id: T.nilable(::String), has_children: T.nilable(T.any(T::Boolean, Models::Shared::Folders2)), has_content: T.nilable(T.any(T::Boolean, Models::Shared::FoldersSchemas2)), icon: T.nilable(::String), id: T.nilable(::String), is_root: T.nilable(T.any(T::Boolean, Models::Shared::FoldersSchemasIsRoot2)), name: T.nilable(::String), owner_id: T.nilable(::String), parent_folder_id: T.nilable(::String), path: T.nilable(::String), remote_drive_id: T.nilable(::String), remote_id: T.nilable(::String), remote_owner_id: T.nilable(::String), remote_parent_folder_id: T.nilable(::String), size: T.nilable(::Float), updated_at: T.nilable(::DateTime), url: T.nilable(::String)).void } + def initialize(all_parent_folder_ids: nil, created_at: nil, description: nil, drive_id: nil, has_children: nil, has_content: nil, icon: nil, id: nil, is_root: nil, name: nil, owner_id: nil, parent_folder_id: nil, path: nil, remote_drive_id: nil, remote_id: nil, remote_owner_id: nil, remote_parent_folder_id: nil, size: nil, updated_at: nil, url: nil) @all_parent_folder_ids = all_parent_folder_ids @created_at = created_at @description = description @drive_id = drive_id @has_children = has_children @has_content = has_content + @icon = icon @id = id @is_root = is_root @name = name @@ -83,6 +86,7 @@ def ==(other) return false unless @drive_id == other.drive_id return false unless @has_children == other.has_children return false unless @has_content == other.has_content + return false unless @icon == other.icon return false unless @id == other.id return false unless @is_root == other.is_root return false unless @name == other.name diff --git a/lib/stack_one/models/shared/folders.rbi b/lib/stack_one/models/shared/folders.rbi index 13e31605f..63e5950b5 100644 --- a/lib/stack_one/models/shared/folders.rbi +++ b/lib/stack_one/models/shared/folders.rbi @@ -20,6 +20,8 @@ class StackOne::Models::Shared::Folders def has_children=(str_); end def has_content(); end def has_content=(str_); end + def icon(); end + def icon=(str_); end def id(); end def id=(str_); end def is_root(); end diff --git a/lib/stack_one/proxy.rb b/lib/stack_one/proxy.rb index 4e455e59d..24233d91f 100644 --- a/lib/stack_one/proxy.rb +++ b/lib/stack_one/proxy.rb @@ -92,7 +92,7 @@ def proxy_request(proxy_request_body:, x_account_id:, prefer: nil, retries: nil, connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, diff --git a/lib/stack_one/request_logs.rb b/lib/stack_one/request_logs.rb index 4a0ffcda3..c4542e02f 100644 --- a/lib/stack_one/request_logs.rb +++ b/lib/stack_one/request_logs.rb @@ -86,7 +86,7 @@ def get_log(id:, include: nil, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -367,7 +367,7 @@ def list_logs_legacy(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -648,7 +648,7 @@ def list_platform_logs(request:, retries: nil, timeout_ms: nil, http_headers: ni connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -929,7 +929,7 @@ def list_step_logs_legacy(request:, retries: nil, timeout_ms: nil, http_headers: connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, diff --git a/lib/stack_one/screening.rb b/lib/stack_one/screening.rb index cf316bdf7..bdd2fd53c 100644 --- a/lib/stack_one/screening.rb +++ b/lib/stack_one/screening.rb @@ -91,7 +91,7 @@ def create_screening_order(screening_create_order_request_dto:, x_account_id:, p connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -389,7 +389,7 @@ def get_screening_package(request:, retries: nil, timeout_ms: nil, http_headers: connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -682,7 +682,7 @@ def list_screening_packages(request:, retries: nil, timeout_ms: nil, http_header connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -1020,7 +1020,7 @@ def webhook_screening_result(screening_result_webhook:, x_account_id:, prefer: n connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, diff --git a/lib/stack_one/sdkconfiguration.rb b/lib/stack_one/sdkconfiguration.rb index 7d1db86bc..3fb89e291 100644 --- a/lib/stack_one/sdkconfiguration.rb +++ b/lib/stack_one/sdkconfiguration.rb @@ -88,9 +88,9 @@ def initialize(client, hooks, retry_config, timeout_ms, security, security_sourc end @language = 'ruby' @openapi_doc_version = '1.0.0' - @sdk_version = '0.41.1' - @gen_version = '2.918.4' - @user_agent = 'speakeasy-sdk/ruby 0.41.1 2.918.4 1.0.0 stackone_client' + @sdk_version = '0.41.2' + @gen_version = '2.932.9' + @user_agent = 'speakeasy-sdk/ruby 0.41.2 2.932.9 1.0.0 stackone_client' end sig { returns([String, T::Hash[Symbol, String]]) } diff --git a/lib/stack_one/ticketing.rb b/lib/stack_one/ticketing.rb index 04be131a7..ce1e961ea 100644 --- a/lib/stack_one/ticketing.rb +++ b/lib/stack_one/ticketing.rb @@ -92,7 +92,7 @@ def create_ticket(ticketing_ticket_create_request_dto:, x_account_id:, prefer: n connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -391,7 +391,7 @@ def download_ticketing_attachment(request:, retries: nil, timeout_ms: nil, http_ connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -688,7 +688,7 @@ def get_attachment(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -987,7 +987,7 @@ def get_comment(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -1286,7 +1286,7 @@ def get_project(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -1585,7 +1585,7 @@ def get_project_component(request:, retries: nil, timeout_ms: nil, http_headers: connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -1884,7 +1884,7 @@ def get_ticket(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -2183,7 +2183,7 @@ def get_ticket_type(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -2482,7 +2482,7 @@ def get_user(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -2781,7 +2781,7 @@ def list_attachments(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -3111,7 +3111,7 @@ def list_comments(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -3441,7 +3441,7 @@ def list_project_components(request:, retries: nil, timeout_ms: nil, http_header connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -3771,7 +3771,7 @@ def list_project_ticket_types(request:, retries: nil, timeout_ms: nil, http_head connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -4096,7 +4096,7 @@ def list_projects(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -4425,7 +4425,7 @@ def list_ticket_statuses(request:, retries: nil, timeout_ms: nil, http_headers: connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -4750,7 +4750,7 @@ def list_ticket_types(request:, retries: nil, timeout_ms: nil, http_headers: nil connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -5074,7 +5074,7 @@ def list_tickets(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -5398,7 +5398,7 @@ def list_users(request:, retries: nil, timeout_ms: nil, http_headers: nil) connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, @@ -5743,7 +5743,7 @@ def update_ticket(ticketing_ticket_update_request_dto:, id:, x_account_id:, pref connection = @sdk_configuration.client.dup - connection.request :retry, retry_options + connection.use Utils::RetryMiddleware, retry_options hook_ctx = SDKHooks::HookContext.new( config: @sdk_configuration, diff --git a/lib/stack_one/utils/retries.rb b/lib/stack_one/utils/retries.rb index 51c411f11..dff3e5fc9 100644 --- a/lib/stack_one/utils/retries.rb +++ b/lib/stack_one/utils/retries.rb @@ -4,6 +4,7 @@ # frozen_string_literal: true require 'faraday/retry' +require 'time' require 'sorbet-runtime' module StackOne @@ -87,12 +88,50 @@ def to_faraday_retry_options(initial_time:) retry_options[:retry_if] = ->(_env, _exc) { Time.now < stop_time } end - retry_options[:rate_limit_retry_header] = 'retry-after-ms' - retry_options[:header_parser_block] = ->(value) { value.to_f / 1000 } end retry_options end end + + class RetryMiddleware < Faraday::Retry::Middleware + extend T::Sig + + sig { params(retries: T.untyped, env: T.untyped).returns(T.untyped) } + def calculate_sleep_amount(retries, env) + retry_after = [calculate_retry_after(env), calculate_rate_limit_reset(env)].compact.max + retry_interval = calculate_retry_interval(retries) + return retry_interval if retry_after.nil? + + # unlike the stock middleware, cap server delays at max_interval rather + # than abandoning the retry + [[retry_after, @options.max_interval].min, retry_interval].max + end + + private + + sig { params(env: T.untyped).returns(T.untyped) } + def calculate_retry_after(env) + response_headers = env[:response_headers] + return unless response_headers + + ms_value = response_headers['retry-after-ms'] + return ms_value.to_f / 1000 if ms_value&.match?(/\A\s*\d+\s*\z/) + + value = response_headers['retry-after'] + return if value.nil? || value.strip.empty? + return value.to_f if value.match?(/\A\s*\d+\s*\z/) + + begin + Time.httpdate(value) - Time.now + rescue ArgumentError + begin + Time.iso8601(value) - Time.now + rescue ArgumentError + nil + end + end + end + end end end diff --git a/stackone_client.gemspec b/stackone_client.gemspec index bb62d2f39..424919d66 100644 --- a/stackone_client.gemspec +++ b/stackone_client.gemspec @@ -4,7 +4,7 @@ $LOAD_PATH.push File.expand_path('lib', __dir__) Gem::Specification.new do |s| s.name = 'stackone_client' - s.version = '0.41.1' + s.version = '0.41.2' s.platform = Gem::Platform::RUBY s.licenses = ['Apache-2.0'] s.summary = ''