diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index ad12dbf6c..774176223 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: 3fe93ce9818e475c9c19317c2c2dc73e docVersion: 1.0.0 - speakeasyVersion: 1.790.3 - generationVersion: 2.918.4 - releaseVersion: 0.41.1 - configChecksum: 825800d6c48f6b1308af01fe8766a912 + speakeasyVersion: 1.796.2 + generationVersion: 2.933.0 + 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: 5a43860f-b55d-4b7b-8067-52e24194c2ec + pristine_commit_hash: 7e266c7ba24f3a88a12d8ff9093bd1466012a573 + pristine_tree_hash: de7eac454800f060dc6eba4069bc95777e96af8c features: ruby: additionalProperties: 0.1.1 constsAndDefaults: 0.1.4 - core: 3.11.33 + core: 3.11.35 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 @@ -168,14 +168,10 @@ trackedFiles: id: d9f5e780320c last_write_checksum: sha1:99baed122eb2cbd7aed1a615cc40283435bd64c9 pristine_git_object: 4e9c135f6d93447589947d3c6b287b3d4e855738 - docs/models/operations/accountinglistcompaniesqueryparamfilter.md: - id: 151b5364dd2b - last_write_checksum: sha1:e9c4cb77670079359711e7cd4e74d5b13b476ac1 - pristine_git_object: b6131a57aa1a83a747a6d1defd74dfa2f22ca8a5 docs/models/operations/accountinglistcompaniesrequest.md: id: c773f6b6d009 - last_write_checksum: sha1:26cdee0be8736e19ae8f6a82fe635796e3b360f4 - pristine_git_object: 0cca73fde406aed0633babd0404d9fb0f77b810f + last_write_checksum: sha1:976b2821159b27a7d2599e6c56231cbaafca27a6 + pristine_git_object: 6300b5cceb5b420560a0eb9ca00476125c8095ce docs/models/operations/accountinglistcompaniesresponse.md: id: 9b170bcb9583 last_write_checksum: sha1:8128d51c4c74fb1aa24550635a645e98c484dc32 @@ -220,6 +216,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 +1070,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 +1102,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 +1114,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 @@ -2596,14 +2596,6 @@ trackedFiles: id: 09eb565c376b last_write_checksum: sha1:6a31f25b59f69eb43f855c7a2f765cc4d8ff0e6b pristine_git_object: 6d21249eedf2733d551818e5bd4ff0cb665b6870 - docs/models/operations/orderby.md: - id: 45cf0fb75be6 - last_write_checksum: sha1:ff9bd4719e8285123c15deeb758ac58f8becd33f - pristine_git_object: 5b1102fd782f9ca860006bfd9b7ed06508b0e707 - docs/models/operations/orderdirection.md: - id: 98131594d9af - last_write_checksum: sha1:d96be3979b0178cc1b2d53aff980ee10448e2017 - pristine_git_object: e0c1bbbccd1b28c7f209685178bb1c40def982a7 docs/models/operations/paramstyle.md: id: 24078a615fbf last_write_checksum: sha1:6ba095f4134e374b22c26169437a271e814820c7 @@ -2614,20 +2606,8 @@ trackedFiles: pristine_git_object: e4055301c0919a54e9e967849b86c08d8607fd69 docs/models/operations/queryparamfilter.md: id: 4f1d799e5628 - last_write_checksum: sha1:b9af5a369fa5f04dbd334e877abba04a447b5710 - pristine_git_object: 843030ee4ac064fa9b6849ed9098d175ab68d1c7 - docs/models/operations/queryparaminclude.md: - id: fabe1221b74a - last_write_checksum: sha1:b933aaf48724f46b777b2652e1406ab3429a5f05 - pristine_git_object: 64ecbfeedf4ddd64cdbad16f0567de622e5ed273 - docs/models/operations/queryparamorderby.md: - id: 471a79a4006b - last_write_checksum: sha1:be99708439c10a7d6ed84ea25292265e2d7d187f - pristine_git_object: 47b22966bea56bf0b00ea18a27da8bae4494509b - docs/models/operations/queryparamorderdirection.md: - id: db21d6aa994c - last_write_checksum: sha1:fac84236f0ee1d243f6cc8fbb97b22de43fefd7a - pristine_git_object: a0762ebc76ef2d2b9db3c3573b328d0e6dc724c9 + last_write_checksum: sha1:1fc55158e60465f71377270171047230a47f41fb + pristine_git_object: 5385f223a781de8abe784216929e3895db2da9c8 docs/models/operations/queryparamstatus.md: id: cf4731785401 last_write_checksum: sha1:aada71457d38ad37c7a83a3bef9df9bf954a9b97 @@ -2772,22 +2752,14 @@ trackedFiles: id: 0a1442ab6456 last_write_checksum: sha1:b95be22ef29431b0627d821f06c9e5de4d2afe61 pristine_git_object: ea7fdad89609430f9ad1dd2c0f278f4ef62f8525 - docs/models/operations/stackonegetlogrequest.md: - id: bfa0fb4cf372 - last_write_checksum: sha1:ca98feda7dee0bd81958063a0fbe5e73447051fe - pristine_git_object: 11e730922ac2f3d08b078ea38d62efc2805443ad - docs/models/operations/stackonegetlogresponse.md: - id: 6699b6b36915 - last_write_checksum: sha1:47554fcfa9e48b25ed231fef913a6fb85da55a3f - pristine_git_object: 206bc2b9ee2a0d9fe8e2772767289124eb696a96 docs/models/operations/stackonegetlogsstatsaggregateresponse.md: id: 87ffe6c90449 last_write_checksum: sha1:8091a6c2e9ebe34e81dff7bc4080db85d650a57e pristine_git_object: 42972437ae81d541157118a764767be6cf6b61a5 docs/models/operations/stackonegetlogsstatsdimensionsresponse.md: id: 84b6000c7f5f - last_write_checksum: sha1:76b0b5a615426db21ceb40bb37bf7adb8212118f - pristine_git_object: 1a4347e0052835d888a7f9fb0d545fe622a46cf1 + last_write_checksum: sha1:86c86fb2941bf26e8ac8816f58b42753aabb938c + pristine_git_object: 0f716eb91fa253092336098077edb12d71bc31a0 docs/models/operations/stackonegetprovideradvancedlogrequest.md: id: a11848f20bd7 last_write_checksum: sha1:1cbb0294280f430428a138e90b3cea91f2b632b4 @@ -2900,74 +2872,22 @@ trackedFiles: id: d7d960d39960 last_write_checksum: sha1:a523d0926444aa68b0da0159c89d695aa6375af2 pristine_git_object: ced7edada5c306decc673c246b107723ead9d52b - docs/models/operations/stackonelistlogslegacyqueryparaminclude.md: - id: 78cb10800c27 - last_write_checksum: sha1:03eab21ac266916a847d18fb3c4cc22fe37cf2c0 - pristine_git_object: f6c1dc16b40a8759d1d80bab9558b043a5e3a837 - docs/models/operations/stackonelistlogslegacyrequest.md: - id: 904d04c8bf66 - last_write_checksum: sha1:4736dffbf301e5c2a080b58abbdb3d4cdd5d0725 - pristine_git_object: ff24e49cdb668e4e9304560ba30ab57782978c74 - docs/models/operations/stackonelistlogslegacyresponse.md: - id: c0f90b1963f5 - last_write_checksum: sha1:e831c1ec8b514c46ea37aa1ce190e90bfd854320 - pristine_git_object: d5c9761b67967871db0e908ce26df85002a6b0ef + docs/models/operations/stackonelistlogsrequest.md: + id: c309d1c4768b + last_write_checksum: sha1:78e93b8f1f94a9fe6a4205a3cc34bd768b95142c + pristine_git_object: b7fbc474a19c9fd8a3dbfc94cab1a3afc11ea894 docs/models/operations/stackonelistlogsresponse.md: id: 67391adbc34f last_write_checksum: sha1:62146269a52868e7da78975c1f50b0c947b88049 pristine_git_object: 77ab56300ee5d424a5f365a3751a1a357fe5544b - docs/models/operations/stackonelistplatformlogsqueryparamfilter.md: - id: 22aca16fa169 - last_write_checksum: sha1:087c404b3679485410fc508731ff709f3040be42 - pristine_git_object: c1e888df8d89a87e1807a02d138f1b66f66986b8 - docs/models/operations/stackonelistplatformlogsqueryparamorderby.md: - id: 3fc647f2e67b - last_write_checksum: sha1:80ea0a39574a1ec177a8e6643b65a0211972f2a2 - pristine_git_object: e1407c0cb1f5f0043048c16a6e87ce96a499e677 - docs/models/operations/stackonelistplatformlogsqueryparamorderdirection.md: - id: f26177f88b35 - last_write_checksum: sha1:4fb758e3f1a5bf92ce616d4e6e1dd042f8cf6034 - pristine_git_object: 033542f19200d5c4c23586e242ae0b56d1f166d9 - docs/models/operations/stackonelistplatformlogsqueryparamrequestlogsorderby.md: - id: db196d24214e - last_write_checksum: sha1:4683bab133e039b109a4878fe28ed1a67e62f220 - pristine_git_object: 737101e8869a60d316e09006b23fa15b6f7e61a3 - docs/models/operations/stackonelistplatformlogsqueryparamrequestlogsorderdirection.md: - id: c16460e9b144 - last_write_checksum: sha1:0c305a8bf52909318b33ee6f37e69ba466a59ee4 - pristine_git_object: 59f8ace88561f46aa056827cab900a8921814438 - docs/models/operations/stackonelistplatformlogsrequest.md: - id: b7d174544fae - last_write_checksum: sha1:a9b6874181da3fb61480b1b621ee81407b56effd - pristine_git_object: 86ae3ce9754bda24cdaa2c385d605f9e6a86d332 docs/models/operations/stackonelistplatformlogsresponse.md: id: f6fd8fa3abdf - last_write_checksum: sha1:5c62169b9de2b614c54eae3617e16a2c7458f4da - pristine_git_object: 81103cdf79089209defa01286eac17655dc1ec72 + last_write_checksum: sha1:5b7b7377e1d9bd8555f6eaebf3f81f6a88d004b7 + pristine_git_object: 38f0d8fb7d79354eeabdcaeeb84114e760d7b623 docs/models/operations/stackonelistproviderlogsresponse.md: id: 100a816345aa last_write_checksum: sha1:15e10b9f58a12a46b81788bd1e47ed71426bd4aa pristine_git_object: e9c6fd25fe38925ff44a55dd7b78155ddbe19e31 - docs/models/operations/stackoneliststeplogslegacyqueryparamfilter.md: - id: 6ff0bc1ef450 - last_write_checksum: sha1:e99483856e686f9a32e887bdb5ac47f0805f37a3 - pristine_git_object: 6f66476157401e64678620f4e448dd50549f4773 - docs/models/operations/stackoneliststeplogslegacyqueryparamorderby.md: - id: 335f0408280b - last_write_checksum: sha1:b8844de4e4a047b2cc9b0072cffac305fbe983ae - pristine_git_object: 51ce68629f2d045a947ca552c499dbc9050edafa - docs/models/operations/stackoneliststeplogslegacyqueryparamorderdirection.md: - id: 38afb3d86b1b - last_write_checksum: sha1:51b839a2be95b24f013be4a7f87c79ecb19ccb8c - pristine_git_object: 9e69f813d5268beae2a9877aa17a58bc1f47af54 - docs/models/operations/stackoneliststeplogslegacyrequest.md: - id: 4d0b1af01589 - last_write_checksum: sha1:213a2ecb7b87c6884e81405b55abb258e9b4b97c - pristine_git_object: bfaf5cf4069087ea918de6c335a1ac4b6b08fddf - docs/models/operations/stackoneliststeplogslegacyresponse.md: - id: 936da45155e2 - last_write_checksum: sha1:0712e0116c0b28ef76e365b0ecd483cd5b3ee03c - pristine_git_object: c050640cd069d966cd2a1c74f6190a2b0a1fbe07 docs/models/operations/stackoneliststeplogsresponse.md: id: 3406fbb8920d last_write_checksum: sha1:d472b63fc2e864b5c2cfa6fe3c02eb92e7ec2d80 @@ -2984,38 +2904,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 +2942,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 @@ -3518,8 +3418,8 @@ trackedFiles: pristine_git_object: 67a08799d1ca7d941dc8742408c9c5a48687ffcb docs/models/shared/actionlog.md: id: e3045ea6eeb5 - last_write_checksum: sha1:fed5d41f05cae8e671e7f9dd26ee9ea13e2c2d34 - pristine_git_object: 4c7cc5bc989349e8282cfcd4aae5f0dc16e6b3d4 + last_write_checksum: sha1:a9acf763e1544311dc648ee6095eac031ec82f4f + pristine_git_object: 42502fd6bf387a0815297a4ce41f940714e5402c docs/models/shared/actionlogspaginated.md: id: 3c3c3826cb4c last_write_checksum: sha1:89120931faa8fc2df5779adf8fbad115ef70f98c @@ -3530,8 +3430,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 @@ -3542,8 +3442,8 @@ trackedFiles: pristine_git_object: 66a1611114f39c2ba102aa1d02ac590fa4c5f17c docs/models/shared/actionsearchresultdto.md: id: b77a96ce6895 - last_write_checksum: sha1:adfc23bafeb136ab974b8fa7471f85a911328aef - pristine_git_object: c964a35ca425881d61aa8d589bab160aa0a45bc4 + last_write_checksum: sha1:390e7761b62278ae74a90eb66bc827fc5f49983d + pristine_git_object: c4bd7e2a245ea6cecbbb0f2a3ea9a1ff906ef9aa docs/models/shared/actionsmeta.md: id: 5df22152da55 last_write_checksum: sha1:113d7160ce29bb413b6a3e4a952566dab6c7b1ca @@ -3566,16 +3466,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:7908268ceb55b38a45edfcc764d709ec6e94dbaf + pristine_git_object: 94119b5447aa1468e93ff49484344ec9465b48d0 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 @@ -4588,6 +4496,10 @@ trackedFiles: id: cf3408913a3e last_write_checksum: sha1:788d0cd7d9ed82618f556aaf07e1c0d24a55d582 pristine_git_object: c29d52e455131f8b27cbca3e2ac01cd1dae4623b + docs/models/shared/connector.md: + id: b6708d5b729e + last_write_checksum: sha1:96d66e6c334bcba201abd8763b52635c7b03bf92 + pristine_git_object: d16fcbf78045ba1b201bc4a673f4fa5c58ed6298 docs/models/shared/connectorprofile.md: id: 948617d1e13f last_write_checksum: sha1:b8863ab57f849848f9e5a6e7399979c516d6caf6 @@ -4622,8 +4534,8 @@ trackedFiles: pristine_git_object: 21346a5cfea942650bea3b47355ccfb1e19be694 docs/models/shared/connectsessioncreate.md: id: 15b9e20c5267 - last_write_checksum: sha1:98b86bd81bd506f62ba1cfae40feb54f2820dfe2 - pristine_git_object: b3b76914b9adf7fdfb3b38b5205e846be148a3d6 + last_write_checksum: sha1:9ab86709f90bb9754a4b1c5d2a16035b5d873862 + pristine_git_object: d8e1646bf06820c11146e586496b7d382ad72a33 docs/models/shared/connectsessioncreatecategories.md: id: 37c441877d45 last_write_checksum: sha1:60795c4577fa6c04b8d9ed707f2fbce3108fd0cc @@ -5164,10 +5076,6 @@ trackedFiles: id: d3f4eb6add49 last_write_checksum: sha1:c86403adca2c74ddae84f3ff195d5f111e1f850a pristine_git_object: 926b9952e1a5bbdab9195b9a271d0582cb33a71f - docs/models/shared/custommappingerror.md: - id: 01d3e057716c - last_write_checksum: sha1:c9d1dcf3c6acc87fb2b4b8db9286591bfebb08b0 - pristine_git_object: e1556ae086237c6a057acb8cb33dcc47b1e0bc74 docs/models/shared/data.md: id: 3efc937215d8 last_write_checksum: sha1:b55b463a86ec332b88769a84229dc86d84dc56ed @@ -5886,8 +5794,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 +5854,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 @@ -7886,8 +7794,8 @@ trackedFiles: pristine_git_object: f2e0f36b6aafbdf065bc89093231f22ade95710c docs/models/shared/intervaltype.md: id: 80d7f7e9d105 - last_write_checksum: sha1:7dbc2f9269990f397888f311adcd1cda00caa20d - pristine_git_object: 13830579437d7e6ac7992fdc34f3d07f19197baa + last_write_checksum: sha1:f3b374f9d24934e253cf81c21fd71652104e9cf9 + pristine_git_object: 04e24f2a829fa4c478a70581eff9475b2af2ef68 docs/models/shared/interview.md: id: d8d282f154af last_write_checksum: sha1:11cb62dca728096e47414f72d41932fe25b85610 @@ -8400,6 +8308,14 @@ trackedFiles: id: 6f87a6e1ed92 last_write_checksum: sha1:5a62c29245398f92e1be4e5650ab15ea9ca61255 pristine_git_object: 26c1b9c0d19fa300564894fbf4879187ffc06dc1 + docs/models/shared/logsdimensions.md: + id: e4f2db25d486 + last_write_checksum: sha1:c9541bfc5951f550dbb6d301049bfd9dacd190f0 + pristine_git_object: 208696b9d5be5c2c98192fa6bbfa9519ea253fe9 + docs/models/shared/logsdimensionvalue.md: + id: b0fc0af8fe08 + last_write_checksum: sha1:95e91b9be5b4279e9135238dbcad6417f35ebb50 + pristine_git_object: e135ed396ef7e33005960d0ed9993eb91b54490f docs/models/shared/logspaginated.md: id: 42697abab88c last_write_checksum: sha1:1f6638b2b3faa4fe0e7a5dc1f5e9fe0f23ec8116 @@ -8856,14 +8772,38 @@ trackedFiles: id: 7241cf523a51 last_write_checksum: sha1:2290537aca25dd44197bc3639bca37f7c855095f pristine_git_object: 57369739a500aadb9fbd5a0e03e2fa60de303e13 - docs/models/shared/platformloglegacy.md: - id: 3f0aa564a35c - last_write_checksum: sha1:e23c996cc0691355e0bcac07fb9ec9a970f7c5d7 - pristine_git_object: 402fed48a1ff23d3cecb17cdae70d9b1350e3a0e - docs/models/shared/platformlogspaginatedlegacy.md: - id: 9fb0d4eab964 - last_write_checksum: sha1:a0faac4bdf74d04f56984ae4f2eae2cd92f77ad7 - pristine_git_object: cf5cf4692bbc16918e00aa3086a768db3ff1ddc5 + docs/models/shared/platformlog.md: + id: 19855539eda1 + last_write_checksum: sha1:823e11eb5f71a3c078eb2dbd85b834011ad5657c + pristine_git_object: 643646a75d823d90f479ce78c7007599987361da + docs/models/shared/platformlogconnector.md: + id: 57c5a2387233 + last_write_checksum: sha1:fbc3b523f7f1393bad394c8382d6e2aa25a5b3dc + pristine_git_object: 5172938fdcf6fd5926c901ed792d2ffca94362cc + docs/models/shared/platformloglogtype.md: + id: 6bd496190ccc + last_write_checksum: sha1:b6b3285f9a2573348b9cf8027652e432d5b7700b + pristine_git_object: 09c598e1660bc367cab31de904ba744a39448823 + docs/models/shared/platformlogspaginated.md: + id: 911f6e3eff61 + last_write_checksum: sha1:9513ecec72a40047beaf48aa75e8c0a29b315bcf + pristine_git_object: b0f68322e35276592113c5fc735203b0370b57f0 + docs/models/shared/platformlogspostdto.md: + id: 6f115b697ef1 + last_write_checksum: sha1:0da1899b28c2c3a229e056d18d941b13a41b438c + pristine_git_object: 70810b31dfbfa029e6ad4010ff286b6d3de2788b + docs/models/shared/platformlogspostdtofilters.md: + id: 463093108bff + last_write_checksum: sha1:cc94d87369541dd373095ec06b33e9ecf9c15c92 + pristine_git_object: abc2e69ccb9c4558af23230cb83d75def3ab0d88 + docs/models/shared/platformlogspostdtoorderby.md: + id: 8457ec3e6130 + last_write_checksum: sha1:2936a2439bcec1ee9bba52ac389e264789ab6150 + pristine_git_object: 50e14e84acef48b7edc5db5b38e1a606cf40742b + docs/models/shared/platformlogspostdtoorderdirection.md: + id: 6b1e03955063 + last_write_checksum: sha1:4c482622dad19dc31136c2c2d5125593ea51a14c + pristine_git_object: 016b131ca5ee8e7f684f16571217f16394554ed2 docs/models/shared/policy.md: id: 61f63dcf239b last_write_checksum: sha1:d3c7c41df9cb2deb46b022ac290f472ddbc1a129 @@ -9108,10 +9048,6 @@ trackedFiles: id: 948537f2ba7d last_write_checksum: sha1:a1b802300e6d3dbc4a61e868606b77d1e39bbb7b pristine_git_object: d6eb5b235b7bb50fea0c879f0ae27445e8eb214c - docs/models/shared/request.md: - id: b63db0f574f5 - last_write_checksum: sha1:448c7fd7e679e46cced4f0852cdc827edb9b94cd - pristine_git_object: 4f984a104c946890e13b8eaf9198123543ce87b9 docs/models/shared/requester.md: id: 7667cd37293b last_write_checksum: sha1:1cfe5ce73c47deb526fdafe28156bcef5494c540 @@ -9448,18 +9384,10 @@ trackedFiles: id: 5dafb1354df8 last_write_checksum: sha1:0f20801e786a95289be865f4e70fe59d79a0cd76 pristine_git_object: f99f66a5a0469a8cd45aa1037e312e96b958b2f7 - docs/models/shared/steplogpartiallegacy.md: - id: 552ca2f3d87d - last_write_checksum: sha1:0b00ecaddabc50335eb4f54f55d5c205a213c4c8 - pristine_git_object: 5176e129f8c4bcb84ea68eca1c0ecf42edca81ae docs/models/shared/steplogspaginated.md: id: c45c843799cf last_write_checksum: sha1:85f9d3546a53821b67b192f8d98c7eed59d610ee pristine_git_object: b78ea601e3576e2fa724b27b57bdc37fe0530f2e - docs/models/shared/steplogspaginatedlegacy.md: - id: e40079734da3 - last_write_checksum: sha1:c58eb4bd66be3c18886824e4686ba41eab6a2bce - pristine_git_object: a5dc80bfb64be8e220a03162322caae6bda4d5b9 docs/models/shared/steplogspaginatedquery.md: id: a996c42584ef last_write_checksum: sha1:36f8baff690fdb20bae59a7cfa12207dbd2573c6 @@ -10206,40 +10134,24 @@ trackedFiles: pristine_git_object: 5d02a6c5e84ea58216a2f056ed8d9e32e661f6ce docs/models/shared/unifiedlog.md: id: 03e608ff9786 - last_write_checksum: sha1:a72b7608cc2572ab1e44401e59a7c0c96ee408a5 - pristine_git_object: 115857517aa75a9b2b88262060f4d57aa86c447a + last_write_checksum: sha1:8a2dcb664759846cbeb837d823b4a4b0eb77ff8e + pristine_git_object: d0c2d0a3f8c0762c53e0713d89e30d50087a0bee + docs/models/shared/unifiedlogconnector.md: + id: 45541fd9c6c5 + last_write_checksum: sha1:634de538f3b0a1434d4bf5119a983a1adae37ab2 + pristine_git_object: da2557c2b67d0a671ae224b518e09835600b87da docs/models/shared/unifiedloglogtype.md: id: 73ff0320637b last_write_checksum: sha1:99e489f9cf3e80d346e73ebd51e93ae1486ad2fd pristine_git_object: 241569017409ac93d9eae23fee35e2706ef13869 - docs/models/shared/unifiedlogresultlegacy.md: - id: 0338b133f7e2 - last_write_checksum: sha1:31d4654cc977b639d9489948e126811086eb128a - pristine_git_object: 432910b8223c689a754b4b661af5025615c2e3c5 - docs/models/shared/unifiedlogslegacy.md: - id: 537eef2eb315 - last_write_checksum: sha1:9e851cda9a0bc132e12e9d506fb0909dff7a4b49 - pristine_git_object: 8a87e6a9cde9f4802aa984325584f7529c10cb0e - docs/models/shared/unifiedlogslegacyresponse.md: - id: 02729798666f - last_write_checksum: sha1:460d9ae09a74b8af8b1040e2f4783996661b888c - pristine_git_object: badde765c627d384b703cb973e130329db696456 docs/models/shared/unifiedlogspaginated.md: id: 8c5b7614565d last_write_checksum: sha1:67515c594939ab047224bbbfc0a97af8d13a7239 pristine_git_object: 58247296b266e964ce0ba27948c23aaadd3d30d5 - docs/models/shared/unifiedlogspaginatedlegacy.md: - id: 8218eae0648e - last_write_checksum: sha1:b760d28848cf8918f98aebb69ed22c725b6b5dd5 - pristine_git_object: b272b9de1e6417eda869cc2de27f2e16a2f80c3b docs/models/shared/unifiedlogspaginatedquery.md: id: 1d6527f9dd82 last_write_checksum: sha1:148acfb693fc5e3b4159ddd4cae7675ee1974d24 pristine_git_object: 25f46b4e4044ab649eb0cd1116d071d39ae79b21 - docs/models/shared/unifiedlogspartiallegacy.md: - id: ecacd26d241b - last_write_checksum: sha1:64ed300df3e2ff4a64507e991b97d0e13ca2044b - pristine_git_object: 2dee04025474c6d098ad9800313293b612bb4bda docs/models/shared/unifiedlogspostdto.md: id: 9d160093736e last_write_checksum: sha1:dab479b3ae29b578b8d2f81f55b2a788db00858a @@ -10344,10 +10256,6 @@ trackedFiles: id: 5bfc606af6e6 last_write_checksum: sha1:742933a43d5b6bb0a9b34dd8fac53cd157ec1f0e pristine_git_object: 207ee86b53a03c7dd9ac715bbd0d23a5490ea262 - docs/models/shared/url.md: - id: 745770fa62cc - last_write_checksum: sha1:e315e60a258c50bf46de7239fb9036909b495c4e - pristine_git_object: ffce48bf8467ad203eeea36caaded6ccef6fad6f docs/models/shared/user.md: id: 405c3d9b08de last_write_checksum: sha1:d3909eabfecb9a30217f21d58f18c85abe739eca @@ -10458,16 +10366,16 @@ trackedFiles: pristine_git_object: f75b686b4117da80f87526db86a7bebc4fd87f75 docs/sdks/accounting/README.md: id: 6abb8976ed95 - last_write_checksum: sha1:5a324b1e0286d65601f46950f0b48d9c8052fb51 - pristine_git_object: 9243600f7d9171f6a04d4cc0ad1045e824d21c51 + last_write_checksum: sha1:a17026b63d641f584089268c4909f63f4ae51fdc + pristine_git_object: 7d374652347ac4a03c98b56333829193a3595273 docs/sdks/accounts/README.md: id: d6c754b1ca96 last_write_checksum: sha1:922050e6cff5881b2c4cf4542a52a72a85c0e6e1 pristine_git_object: bf64bc80d5fa336262011af80bd62e22559b91a3 docs/sdks/actions/README.md: id: e229cf99e666 - last_write_checksum: sha1:424c2059eddb007ffcd7ece0e01ab074aef934e5 - pristine_git_object: de0962eaf4442aecdf1b45d518fd15cbe072466b + last_write_checksum: sha1:2a6996f3c0ac4923924f64d44babc48204c090f2 + pristine_git_object: b0e40e8230361ca726cfdddd5e15f9788391290c docs/sdks/ats/README.md: id: 24fafa267f6c last_write_checksum: sha1:a20028fa09ce3e9277f69334c20fc4853ad1cdb7 @@ -10486,8 +10394,8 @@ trackedFiles: pristine_git_object: 6d118f2995afa397bdf572a6158466f40a00907d docs/sdks/connectsessions/README.md: id: 52ccdce6581d - last_write_checksum: sha1:651e1b2cd5db3466582a2db3af577647cc44f5c5 - pristine_git_object: fa0c06047c37854cb1b3084867aba0b5f6fb32f4 + last_write_checksum: sha1:168f0fd37e97e008aa3f924e7494642c69e24cd6 + pristine_git_object: ad7d8d1ed8b593ddfb0e92140ea0fb6f43510ced docs/sdks/crm/README.md: id: 5a9b322c0746 last_write_checksum: sha1:b7ed8fbb92d3e17ff681421f78f0e3a90f42e182 @@ -10510,16 +10418,16 @@ trackedFiles: pristine_git_object: bd86adaa8f015e66d07c50219ab249521b923256 docs/sdks/logs/README.md: id: 5adacd63da21 - last_write_checksum: sha1:0fbe18b3b85c91e286c2ce8fe03fa162c4b6fcaa - pristine_git_object: 3e70e15a746b853c473a65a6b84c3a052be3602e + last_write_checksum: sha1:13081e5140f143e17ca7c2348e48e1f268161bdd + pristine_git_object: 6bf1690d5865e5a3be84639f2009595da9c1ab4f docs/sdks/marketing/README.md: id: 44aea69c8835 last_write_checksum: sha1:f3ad5bebc527d365bddf751da9d472ceb17aeba8 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 @@ -10528,10 +10436,6 @@ trackedFiles: id: 2c72b780f1d0 last_write_checksum: sha1:47127374ccebbbf077a75a221f1b2c15c824183a pristine_git_object: 243b55bbe8d51b0a11a4ccdd8e969e8f725772f7 - docs/sdks/requestlogs/README.md: - id: 8aa324841c20 - last_write_checksum: sha1:76249766cb3d92ccb43307684523a868339472d6 - pristine_git_object: 17a7c71b9c1172f05d6d78201ba33cdfb0a5d95e docs/sdks/screening/README.md: id: c9c44d54f1a2 last_write_checksum: sha1:399c81bbb4676530b9aee64618a0cd50f6bc737e @@ -10566,72 +10470,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:7826bb42666bc332988d866465aca62f6421d757 + pristine_git_object: 993051490205f5c260d2a1cf167ae876c4cdbfea 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:c9e0487f36f7fa07bbfe4fb99448a936c2b5551f + pristine_git_object: aae24cecdccd40c3e6446fcf77dc519bb2127b3f 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:9bbcec2dcfa496a4db4fd64bd7506017ec89d7d4 + pristine_git_object: 6d2941984ee1e547018c91fadd66f6eedfa73cea 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 +10666,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:bd52b5ced9c47702b8ec87ba0dff56b7ef46a626 + pristine_git_object: 66e2ed4112ef214e3ee93a808dc1392fd8582134 lib/stack_one/models/operations/accounting_batch_create_company_journals_request.rb: id: 7e046b8fa826 last_write_checksum: sha1:ae44f7b39cee7c5b2c59ec170c6debfd66ce2565 @@ -10860,18 +10764,10 @@ trackedFiles: id: e07d6471c15a last_write_checksum: sha1:b21593dac865d63be65d58d8b91253d79c9ca1d8 pristine_git_object: 39d040068eface13add8340995f49b365dabd328 - lib/stack_one/models/operations/accounting_list_companies_queryparam_filter.rb: - id: ede4a2136859 - last_write_checksum: sha1:f0c9bb45f4639c43989477b04d1f426d078fa17b - pristine_git_object: 73ddae98ce4e9340fd2b9ebaa00741ea7d96cff3 - lib/stack_one/models/operations/accounting_list_companies_queryparam_filter.rbi: - id: 6fddff14d3a0 - last_write_checksum: sha1:3e5040104ddbdda4cfe7ec47be32108b7b355a49 - pristine_git_object: bd6a5d5cb864ab99da1dbe5ecc6b108ab69602f9 lib/stack_one/models/operations/accounting_list_companies_request.rb: id: 1ffa87afa8a2 - last_write_checksum: sha1:085cf7c6372fb303c0c8cd328f008cd540fc0a19 - pristine_git_object: 128c5067d7f7b0e5d5239d302df8d6d07809cb76 + last_write_checksum: sha1:741aa3dfabd0c51425f9872da7e19960da84f6e4 + pristine_git_object: a6f1b7a7e0ec52b1506e8bf1b37fcd1f2c6d3d08 lib/stack_one/models/operations/accounting_list_companies_request.rbi: id: 816cfde5c1f2 last_write_checksum: sha1:218cc396e04d29cbc350f3880fdf8d13bb85bf3f @@ -10964,6 +10860,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 @@ -15716,22 +15620,6 @@ trackedFiles: id: d2bdf5da294b last_write_checksum: sha1:3e184e292dbfeda6b1df69e98bcbc348d096f925 pristine_git_object: 6adf644d7eaef32950be6d558d9804a5deb586cd - lib/stack_one/models/operations/order_by.rb: - id: 89a00f77f4d7 - last_write_checksum: sha1:04d1570424036344deecbc59c039f3dad31d41d6 - pristine_git_object: f3c56d1b07e4c8b28a82af030fc01072bd8e1295 - lib/stack_one/models/operations/order_by.rbi: - id: 8f4cb4fd0adc - last_write_checksum: sha1:f198cc007530f3c2e7fec0558ea53b40e57c08bb - pristine_git_object: f4f1c763c2292be80a7f00967ced9bf4f1b0edab - lib/stack_one/models/operations/order_direction.rb: - id: ba9d505308a9 - last_write_checksum: sha1:c56635447f157142670815d60ea9fb686af9234a - pristine_git_object: 7e0d24e6639a70c0431459726c04036d2a95fb68 - lib/stack_one/models/operations/order_direction.rbi: - id: 5276bf94be20 - last_write_checksum: sha1:fa72b3cebf0b2e872e06dae1c920554cdbbd3213 - pristine_git_object: 399dae781c713cc011b91a9eb02290b96636a28d lib/stack_one/models/operations/param_style.rb: id: 36b7c6f16391 last_write_checksum: sha1:1b033b91a47a19734f6e73808a24a2f4720e58ee @@ -15750,36 +15638,12 @@ trackedFiles: pristine_git_object: 456857327e43909ad88684d68edddd6ca61104df lib/stack_one/models/operations/queryparam_filter.rb: id: 3e5e2b0b81b2 - last_write_checksum: sha1:66808710af669992def03ca4e1fb6bb352e2104e - pristine_git_object: 2965343cee92f9ec62c8b97427f3fb17349178f5 + last_write_checksum: sha1:5302a44a36b831c9c7bbbe3f066088e6480e53a2 + pristine_git_object: 0540c4968b18d88dc5ea4bd6436fe8e62d7adef2 lib/stack_one/models/operations/queryparam_filter.rbi: id: be8cfded0d5f - last_write_checksum: sha1:612915258abf511ff987ab2a7b0341c5874c94c4 - pristine_git_object: 596778ca8b53f869edb9fcd454470f863283453c - lib/stack_one/models/operations/queryparam_include.rb: - id: 15b7bdacd8bb - last_write_checksum: sha1:94ff508cb18be0f437af07c626b7a913a6afc6f0 - pristine_git_object: fa082d56eb0ebd886392424dac3ec37dc4bf2713 - lib/stack_one/models/operations/queryparam_include.rbi: - id: 3d62b1bf5c35 - last_write_checksum: sha1:b3a609a24da4c1690f1b0ac2b7853944405c598d - pristine_git_object: 8d8f530ea7e9b61a844ffcf4b82f13c66b4f0f5f - lib/stack_one/models/operations/queryparam_order_by.rb: - id: de1843febf10 - last_write_checksum: sha1:450060d203d14a33ac77bddbfc79b6c313e71b14 - pristine_git_object: de3b25dabe1ea9f72bad4cb0dbb73a15bfd7d62c - lib/stack_one/models/operations/queryparam_order_by.rbi: - id: c15cb9e7e07b - last_write_checksum: sha1:0899b26c6845fe6fbabf922a2a488c81fdb56781 - pristine_git_object: bcdcb24d8425345b446640935095e375279dcc65 - lib/stack_one/models/operations/queryparam_order_direction.rb: - id: ab80298e3f44 - last_write_checksum: sha1:9d63b9c8bd3f4f0e15bb2246faec74e566ebf230 - pristine_git_object: 9173f1940ed492768f867a69b2171961ff2bb4ec - lib/stack_one/models/operations/queryparam_order_direction.rbi: - id: c028e6ffa7f6 - last_write_checksum: sha1:ade49239d41f36877461d02677a919b0c337b597 - pristine_git_object: 532494fd8754e583915a8434468a84dae202da03 + last_write_checksum: sha1:ac94b1aacd55ef3495392eb577ccad79dce97af9 + pristine_git_object: c3595e0066ae64ca43747558e067da80fa868ea5 lib/stack_one/models/operations/queryparam_status.rb: id: 8bd7fa49ae21 last_write_checksum: sha1:15b594f2c8c1e8cc82bf39afe61dc31a918a7e17 @@ -16068,22 +15932,6 @@ trackedFiles: id: c28718bbad66 last_write_checksum: sha1:e15aa7ba3e5f75675f2ccd58c20a7fed6d3a6eba pristine_git_object: b7e23f08ee2c636fa1f1231bfe1d580771986c03 - lib/stack_one/models/operations/stackone_get_log_request.rb: - id: efa93084f64f - last_write_checksum: sha1:20d22921c817fe423ded3286528737f00ed66429 - pristine_git_object: 97af9c403429726abc8e9dcb0f544f60361b1c36 - lib/stack_one/models/operations/stackone_get_log_request.rbi: - id: ef8d1d882a16 - last_write_checksum: sha1:c24a6c310902f3aa01a0c1121f18249fe609e355 - pristine_git_object: 114f111c3b22000d1a633ce73e609124544f710d - lib/stack_one/models/operations/stackone_get_log_response.rb: - id: 286c36c80df3 - last_write_checksum: sha1:281766c183d7e77b4920ef334249a87d504ddb71 - pristine_git_object: a741b120521b0c7ffa603cfce45c55f29187cede - lib/stack_one/models/operations/stackone_get_log_response.rbi: - id: 7caf17fd146e - last_write_checksum: sha1:d64f189f4afaaa3c5cdae7277dfaa1878030bbdf - pristine_git_object: 92b4ab8b6317a0f89bf3c8c3d0b77dafa1459489 lib/stack_one/models/operations/stackone_get_logs_stats_aggregate_response.rb: id: 5708d791b2c0 last_write_checksum: sha1:2a543e90c005c6489a241f2aec5ea9de6ba4b28a @@ -16094,12 +15942,12 @@ trackedFiles: pristine_git_object: f4fc1e27c6edd7e3d004dd1d159111ece8582459 lib/stack_one/models/operations/stackone_get_logs_stats_dimensions_response.rb: id: 03ed731d3dab - last_write_checksum: sha1:4c489da3f9f00c5b9c9b84750eb5ce9d2673722d - pristine_git_object: 27a1e1c7b9e47855ae16d1ac9804ef575cc691a3 + last_write_checksum: sha1:f42da506bc73b1b1ae5a818f76d9c615f22e83e0 + pristine_git_object: 54d3cf5aeb6d9e60625c96505e54eb29c96dd2e5 lib/stack_one/models/operations/stackone_get_logs_stats_dimensions_response.rbi: id: 4582afa8d47e - last_write_checksum: sha1:ad04fca9d72dd103e702d6cf62511984139191ec - pristine_git_object: eafb55bdbe7061a37e006ad5d0c2d224adbdf250 + last_write_checksum: sha1:ef66128583be0a166b60aba69e949916a6103f29 + pristine_git_object: 2a87e7ac34d71a3bea665f040334d5fa8a245786 lib/stack_one/models/operations/stackone_get_provider_advanced_log_request.rb: id: 29ea04f1fa35 last_write_checksum: sha1:ec1f80e6686b7b3463be302324e897bb03df9d9f @@ -16324,30 +16172,14 @@ trackedFiles: id: d308dedb8535 last_write_checksum: sha1:fe07e9ad5d270330ad03f482a323be4b4f5f4cda pristine_git_object: 814ee1768fd0ea3917c77b1482c9ddcfd983ee61 - lib/stack_one/models/operations/stackone_list_logs_legacy_queryparam_include.rb: - id: e6a77d03199e - last_write_checksum: sha1:2884e4c7ee39dc15e3265140096c1c43664fe046 - pristine_git_object: d8887430eed97c0ba4ab0c319823f6e04fafcc85 - lib/stack_one/models/operations/stackone_list_logs_legacy_queryparam_include.rbi: - id: 70f71097450c - last_write_checksum: sha1:d5396e1972d211aa352efc23096764e0d486f202 - pristine_git_object: ec344a52fa8454a7e73fd935547ee907294acd71 - lib/stack_one/models/operations/stackone_list_logs_legacy_request.rb: - id: f38b8b1339bc - last_write_checksum: sha1:ae8e1c10250a85c4a502a04f76a7eed63524c926 - pristine_git_object: 4a35c4f58638196daa245ae88dbe527b3f512db6 - lib/stack_one/models/operations/stackone_list_logs_legacy_request.rbi: - id: 78fb73ff30c2 - last_write_checksum: sha1:ea3be9957eb1025f068270941c9606c762e60914 - pristine_git_object: a2940c9d92e38a812f39269c842b74790c3bbae8 - lib/stack_one/models/operations/stackone_list_logs_legacy_response.rb: - id: 23aa46770de2 - last_write_checksum: sha1:b71702023f7aa865701ca2921eef071c3db6be2e - pristine_git_object: 7b742f46191d71dea465171b70c8b20b526bec58 - lib/stack_one/models/operations/stackone_list_logs_legacy_response.rbi: - id: 85577ae7fb14 - last_write_checksum: sha1:4cf13bd7ba90eaf41da827e23a2da23f1c616bd6 - pristine_git_object: a0aaa69c885349b65e8a774443884bc0ce06e81f + lib/stack_one/models/operations/stackone_list_logs_request.rb: + id: 81ca7c9f2fbb + last_write_checksum: sha1:d062ed4de05154f47eff90c03ca9083b304f0d5b + pristine_git_object: d453c70d7d421dc855929760892bc806430deca7 + lib/stack_one/models/operations/stackone_list_logs_request.rbi: + id: 5cdcbb8dcc41 + last_write_checksum: sha1:9fa8763ec46d4badf490ee0ca546b1adf6b3d735 + pristine_git_object: 15ad5f47139eb86cb3a2c81d53ebb050ba53f98d lib/stack_one/models/operations/stackone_list_logs_response.rb: id: 2b3a3f83a5bc last_write_checksum: sha1:ab818ac94aa4084717fed067d1346221f96efab1 @@ -16356,62 +16188,14 @@ trackedFiles: id: cc1a7413b2f7 last_write_checksum: sha1:9a7817818b1bb6aa605db4c8ff1aa9c0061c962c pristine_git_object: 52110d1074d5ab670f55e2bd23a410e457055c8e - lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_filter.rb: - id: 1aa2c6eec6ff - last_write_checksum: sha1:c1f78abf0506e84678283365b0cd0ee3efd51441 - pristine_git_object: f0beba2d5dfb09f25a0570062ca37e7fe69ddc53 - lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_filter.rbi: - id: 96ddb4b37f04 - last_write_checksum: sha1:cee7c794e5e698b023677b9f4c304da2d42f466b - pristine_git_object: dddd933fc7bfaab8dcef2813604ee9328f150bf1 - lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_order_by.rb: - id: 622b5f700dc8 - last_write_checksum: sha1:016c0f7c774b07c54fcf8f4e259454b06de62011 - pristine_git_object: ea92803a4376ee25ae3cb667a6855cd4eee9fc90 - lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_order_by.rbi: - id: 7f0cbb1bc8bc - last_write_checksum: sha1:4268adea6ab720c50d36ec76a35320a46cbb4c88 - pristine_git_object: 463a88e727c19dd00bd1ac2d1938dbca4c4ea6f6 - lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_order_direction.rb: - id: 7e90660d25c8 - last_write_checksum: sha1:463941ce229d4d1f17fd5d71215b00eacf661b2d - pristine_git_object: a7f2827262351704d2a86f35e7c322db70521e65 - lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_order_direction.rbi: - id: 450de1611508 - last_write_checksum: sha1:5b59a27bb99428f40cea63f30aac784600aef24c - pristine_git_object: 8da01a189902327b354cb46fe87ee7a6f94b6d01 - lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_request_logs_order_by.rb: - id: 1c32ed67a7dc - last_write_checksum: sha1:3e46c4bf2db0b507e88ee9cef6a5fd401727e8aa - pristine_git_object: 2d7fc6887ed013795fd4089d9fb52148e9cf3942 - lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_request_logs_order_by.rbi: - id: 88a1bfbc9208 - last_write_checksum: sha1:e00c85694ab6e340a80f112391a03d9b35aa19d2 - pristine_git_object: f1a11e2da1df0abd83624cd19138260eaf3091c7 - lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_request_logs_order_direction.rb: - id: 252848a548cc - last_write_checksum: sha1:1c76933f46cf389904dc04caaa4c3cd902b2274a - pristine_git_object: 39d4e6da7cc85607ea16e38054153db1b591aac3 - lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_request_logs_order_direction.rbi: - id: 2335302937d3 - last_write_checksum: sha1:fde0124892e19b40ac74936c3a5d790a2ccfd560 - pristine_git_object: 504eaa9929a3111042ef7db7d93f6ee32b58e3bc - lib/stack_one/models/operations/stackone_list_platform_logs_request.rb: - id: 26c1a76b5e3a - last_write_checksum: sha1:a976d85ef379f623a46688e91a2493ad716628cc - pristine_git_object: ae301a904231e9863da5e675130268f96ed86254 - lib/stack_one/models/operations/stackone_list_platform_logs_request.rbi: - id: 14aa503c5a79 - last_write_checksum: sha1:5928cd49308fb4d753a0a63630bda6580d002a85 - pristine_git_object: 4eb2b9e908415f30ca6e9d96f2cba1ca885582ed lib/stack_one/models/operations/stackone_list_platform_logs_response.rb: id: 1bb021637755 - last_write_checksum: sha1:383abac2567b38cd38c3ab0b73f697b92ef434f4 - pristine_git_object: 0d4aec6dcfd25110d2eca91daf6be5143aafc23e + last_write_checksum: sha1:893ae650e837393c987df687dcd72f7e1fc17cf4 + pristine_git_object: 70825660838980b0b201bcf6d891c9907d8b5a49 lib/stack_one/models/operations/stackone_list_platform_logs_response.rbi: id: e0fdf7532815 - last_write_checksum: sha1:dfbe8a23e9ca6e550268a19b7c74caad6c053972 - pristine_git_object: 19930ad4f73ece47686d9e82d38e11e66eeceb42 + last_write_checksum: sha1:20398e68c80f42ec7a92728b90979d4160fe9605 + pristine_git_object: a3ebd621fee2d547892127529062354e67019dbd lib/stack_one/models/operations/stackone_list_provider_logs_response.rb: id: e1ad99eb1917 last_write_checksum: sha1:4d517b5e356365e77af54b9c2bf68645c4951cec @@ -16420,46 +16204,6 @@ trackedFiles: id: 1c053eef56a1 last_write_checksum: sha1:765c07179c1170dffb8fdee8fa6c3751d70d73c3 pristine_git_object: edb3e674f371fabe068d743a6c2e6ae7891aa898 - lib/stack_one/models/operations/stackone_list_step_logs_legacy_queryparam_filter.rb: - id: 3bd08afba5c7 - last_write_checksum: sha1:5abaa4a49c7e1a4acd3903b3754d76ac308402aa - pristine_git_object: 888fd45febca619b4f1390aefbaae05460d677f9 - lib/stack_one/models/operations/stackone_list_step_logs_legacy_queryparam_filter.rbi: - id: 434c4455b8ff - last_write_checksum: sha1:cdc9e4c625b97b15dd3c5fdbf316075b3490d9c4 - pristine_git_object: b3320db79eec388ae5c06817e2a048909aae7a50 - lib/stack_one/models/operations/stackone_list_step_logs_legacy_queryparam_order_by.rb: - id: 14dbb657b6c4 - last_write_checksum: sha1:3c18f80671ce64ed7330c732610e18bce59b0b1f - pristine_git_object: f189d76ce5ee388a038b7e776e189a79636f5979 - lib/stack_one/models/operations/stackone_list_step_logs_legacy_queryparam_order_by.rbi: - id: ddc2d1f696b7 - last_write_checksum: sha1:d88097355fa9d77e45e18304944a6db27fbcd1a4 - pristine_git_object: 692b37ec5c058322ed9e5d0a8c4b846abd237c27 - lib/stack_one/models/operations/stackone_list_step_logs_legacy_queryparam_order_direction.rb: - id: 51f25af6a20b - last_write_checksum: sha1:45a23d037b765b8007a81465f6e06a8852f70cbc - pristine_git_object: dbe2360724d3dd9f506e31c68d3a2cdc43ce82e0 - lib/stack_one/models/operations/stackone_list_step_logs_legacy_queryparam_order_direction.rbi: - id: 97646bab4bd7 - last_write_checksum: sha1:49c9412f82929781e3f3e916510124bad572ed25 - pristine_git_object: 143ee6bf689d3155ec76deb4b9e5d14d8d5a2593 - lib/stack_one/models/operations/stackone_list_step_logs_legacy_request.rb: - id: b8a70da3845b - last_write_checksum: sha1:f396a486da341cbf3f6ea04868958146b123c22b - pristine_git_object: 073b6b2fc77c83fdfc7c03115e907ad72e48d8d3 - lib/stack_one/models/operations/stackone_list_step_logs_legacy_request.rbi: - id: 2ccad8c39ae1 - last_write_checksum: sha1:c55ad94b4f74a2f9e0e81b9aba4880b096f0a2f9 - pristine_git_object: b2953ad162433def17caf54f2dc943a28457ccad - lib/stack_one/models/operations/stackone_list_step_logs_legacy_response.rb: - id: 852614d15913 - last_write_checksum: sha1:0b232437e8c9cf2bcb08943225f36f4c3f871a5d - pristine_git_object: c3e998e2a31f96bb52c708ad454edca25d95e249 - lib/stack_one/models/operations/stackone_list_step_logs_legacy_response.rbi: - id: befcee26735f - last_write_checksum: sha1:b27f466aa8f32337ff48be5bfc995ce619389e74 - pristine_git_object: af26b5f4ee58c5543994f42b71de4497263b75cd lib/stack_one/models/operations/stackone_list_step_logs_response.rb: id: 53621033b3e6 last_write_checksum: sha1:fcbce9e9a7656fbc7397b9456227d4b5bd868dce @@ -16492,70 +16236,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 +16310,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 +16766,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:abfde0bc8e283ccb6161d11052b69f327138efc9 + pristine_git_object: 5f9a3b72e9a0e1c6e3a809e9890ae6f70e620f6c lib/stack_one/models/shared/account.rb: id: cb8eee6f87ae last_write_checksum: sha1:f594f08795408369ddd11e1893817246333abc51 @@ -17562,12 +17266,12 @@ trackedFiles: pristine_git_object: cc4d3c465bc8153a1a3c416edc0e12d741b99361 lib/stack_one/models/shared/actionlog.rb: id: dc2afd0c4bda - last_write_checksum: sha1:ec997381becbc8bd323c441d98768e41d8552aad - pristine_git_object: 2bd396c7392689f4ead002d35b54fcabd3e54fbb + last_write_checksum: sha1:eeb49d86506d43db1c0398103585cf680f487e12 + pristine_git_object: 60278d502a2c41e6e72087159417370c25b045d5 lib/stack_one/models/shared/actionlog.rbi: id: 5cf862d1b59d - last_write_checksum: sha1:469658d431969ced7161674ef9ce743ffc759a27 - pristine_git_object: 4f5d04b1e46f175030d41eb25fdcc49e45f0747a + last_write_checksum: sha1:f447019129a65230b944d86d4bda4cd4613de3ef + pristine_git_object: 4270ef601834ee40ac1f3129bd8abeef3edaa876 lib/stack_one/models/shared/actionlogspaginated.rb: id: 7a4f7b349f98 last_write_checksum: sha1:f4594e6a3aa1b1a847a80b004542fc9c81fbc56a @@ -17586,12 +17290,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 @@ -17610,12 +17314,12 @@ trackedFiles: pristine_git_object: 3e486abb534d51afaaff30ce0ffc7e119b8300dd lib/stack_one/models/shared/actionsearchresultdto.rb: id: c204c804bdf7 - last_write_checksum: sha1:bde14c7d04c61a95e267a571c1ffa47d9ac871a9 - pristine_git_object: a5ae68da1466bb3b5544d46412a3ce30523e3d3e + last_write_checksum: sha1:2568e562bdbc7335f2483f2722963028def304b6 + pristine_git_object: 0a42f451add7ac89b9b0761f036fd7713935a613 lib/stack_one/models/shared/actionsearchresultdto.rbi: id: aa110a7d854f - last_write_checksum: sha1:c7c3293746ebb76428d55024e3daf067f22bf546 - pristine_git_object: d7696659a814d1dadd654ed88843da4cfab34238 + last_write_checksum: sha1:a4f16f209428de4c6710ec96482824470fad5c53 + pristine_git_object: 93dda37e951936851cccc2b40f76b3f31a285c44 lib/stack_one/models/shared/actionsmeta.rb: id: 333a4c76166c last_write_checksum: sha1:c2de40974a71345e1262fb1a1f38c302544b1d31 @@ -17658,28 +17362,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:09d4f548d62406d1a0ecb60feb212c26f845fbf7 + pristine_git_object: 3d10dff5d8d913f6c130f9c0d3acfe36de358015 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 @@ -19704,6 +19424,14 @@ trackedFiles: id: 3d091af0e2b6 last_write_checksum: sha1:13274b89391a04706a021de17f1303d6a21ac436 pristine_git_object: b0f907beec6d1eef0333a0ccb61aa3614c8ccc7d + lib/stack_one/models/shared/connector.rb: + id: 09e3dcc702ec + last_write_checksum: sha1:19a7d1c4e598181e6c696f70c3d514cb6a4a86a6 + pristine_git_object: d340c762dc1c3dc7694f959023ad7c78b0670e65 + lib/stack_one/models/shared/connector.rbi: + id: 7fd12ca1cc06 + last_write_checksum: sha1:d4c5395a976b8ce0e6086f716241ccd32ee8cf6d + pristine_git_object: 6e097ed8b9fc21bdaad2b0003681eea381805c05 lib/stack_one/models/shared/connectorprofile.rb: id: 3310d8f9c76d last_write_checksum: sha1:d1af6aecc9b5296a2d0147c96b36f6b9bf5a8b50 @@ -19786,8 +19514,8 @@ trackedFiles: pristine_git_object: 144e3a650329dcebabfe18fdee96f0eebbadc1a5 lib/stack_one/models/shared/connectsessioncreate.rb: id: f327cb611a62 - last_write_checksum: sha1:9dd674960a37ffadf07ed866bc44f0c1586d177c - pristine_git_object: 5a5a755ed1b338806efe2f3e8835c674440cfae1 + last_write_checksum: sha1:101c5b38cf8ab8d71e2f8e132863cc17899922f9 + pristine_git_object: 5444aac638c33c5fbb640cf3110283b4f4d710ca lib/stack_one/models/shared/connectsessioncreate.rbi: id: 841e0adf41d5 last_write_checksum: sha1:754672da620d32ba15073f7de44d82281da8712b @@ -20856,14 +20584,6 @@ trackedFiles: id: 913d2966459e last_write_checksum: sha1:56085a953f4f4f1e1611f5462b79f3ed6a7cb6f2 pristine_git_object: fcc48a5956ca07b3352cd15b68650060f0c0a0e8 - lib/stack_one/models/shared/custommappingerror.rb: - id: 819d35e46e49 - last_write_checksum: sha1:e7816723ac21e7d1ebbc9dddc898392b75c495cc - pristine_git_object: a77e06351d01a960b6965f927e44f6215622c1eb - lib/stack_one/models/shared/custommappingerror.rbi: - id: 30c61674a82e - last_write_checksum: sha1:bfc76bd34c4fbc1cec1702379b1bb830936035ed - pristine_git_object: 8b3e02b5796c631afbe6104c94ccaa0eb46cf684 lib/stack_one/models/shared/data.rb: id: 685c9c29b9db last_write_checksum: sha1:2c3aa9bfb7f9bd22e7dcdba3e5b0d72e1774373e @@ -22338,12 +22058,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 +22138,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 @@ -26298,8 +26018,8 @@ trackedFiles: pristine_git_object: 6148b184fa0c439cbcd87311e621330893b27b89 lib/stack_one/models/shared/interval_type.rb: id: bea8f8211658 - last_write_checksum: sha1:1a44cdb4fd8a67204765d1c2e4ee1ee5a52fc041 - pristine_git_object: c0eda3b58fa66ff3d5821f36fc5d99f0c8e411fc + last_write_checksum: sha1:3905996e3002b00f98eb48d7b9ed08a3b5a86c51 + pristine_git_object: 1a557ca25c7d07f8ddd15d941146614605946b25 lib/stack_one/models/shared/interval_type.rbi: id: d2b69fed51f1 last_write_checksum: sha1:7bc3ae4c17190c14b0a2e08f4a97a146d342a1eb @@ -27336,6 +27056,22 @@ trackedFiles: id: 8064efc78950 last_write_checksum: sha1:ffbd094971348207806b1b3b802c53cfc907c1f0 pristine_git_object: ee13e7e0b0f3254cb9dac0ea94ab4468ac203f19 + lib/stack_one/models/shared/logsdimensions.rb: + id: 9cd5dcd65436 + last_write_checksum: sha1:011a8bbef867f7c3e3211cecfb5c06f5d42e7751 + pristine_git_object: 69ae868c87cd9d4d554f2301f8bb8dd1f38e9426 + lib/stack_one/models/shared/logsdimensions.rbi: + id: 3d523316a510 + last_write_checksum: sha1:fc73ae7b78bcff984a9253f3520efeec4d074b25 + pristine_git_object: 550e6071d5dcbe8ae5f151aee19614623d128bee + lib/stack_one/models/shared/logsdimensionvalue.rb: + id: bac7b8e395f1 + last_write_checksum: sha1:8642208bd7899fa5d132b0e7e0b75beed804d264 + pristine_git_object: 76c5d7398672777004fb4775b3204be3115d7464 + lib/stack_one/models/shared/logsdimensionvalue.rbi: + id: e86d99f6647f + last_write_checksum: sha1:09dff751ddda935eb272a1887d6fdff9f2f37fd1 + pristine_git_object: 9b907e7ad1d6a7b10832a97a76e8a9fb72a7746d lib/stack_one/models/shared/logspaginated.rb: id: 2368388ebab5 last_write_checksum: sha1:ac2c8a3a98062013b860d047622cf39639cdd75d @@ -28240,22 +27976,70 @@ trackedFiles: id: 2d9535138977 last_write_checksum: sha1:79fa83b96531269e203be0e5ca37ab7e2cf95e59 pristine_git_object: 4761b6e09d81b2eb0b684df1b9b8193d590aa455 - lib/stack_one/models/shared/platformloglegacy.rb: - id: fa116ae70c23 - last_write_checksum: sha1:313824ea5c31b13cfd1e8bb530fe40dcc28ed9c0 - pristine_git_object: 58d4146f34656ebe2524d472e55f0a56bd3e994c - lib/stack_one/models/shared/platformloglegacy.rbi: - id: ceb5df92f690 - last_write_checksum: sha1:f7a8e881bf7a898378511580f1df160608cd9984 - pristine_git_object: 7633d77935c7fa6258f990da4423fd3d23bb3a5d - lib/stack_one/models/shared/platformlogspaginatedlegacy.rb: - id: 8479b21bc074 - last_write_checksum: sha1:80e409ae4bfc1e30f1bb996ecebb81d1ef0ce4e5 - pristine_git_object: 6baffc2dec42ee4bc50df4bd9c564fadadb05664 - lib/stack_one/models/shared/platformlogspaginatedlegacy.rbi: - id: d495d0221a59 - last_write_checksum: sha1:a824f767dfa8e6842fcddad8a86f1b83dc4fc15f - pristine_git_object: d72fce32c24f0d6b8512aa68200bf14d0f850393 + lib/stack_one/models/shared/platformlog.rb: + id: b6b29bb74d87 + last_write_checksum: sha1:789f6b87fa0715edb7887fce8f9d8b0a07e02c38 + pristine_git_object: e5d735791ed740ba27b3fa2ff4a526291cbd8ef9 + lib/stack_one/models/shared/platformlog.rbi: + id: 54ae7118253d + last_write_checksum: sha1:56c7ddfc5a050aeebc906a12ab1219c880f94043 + pristine_git_object: ad2685917b7df0e3d981876859e7fa8c84247f37 + lib/stack_one/models/shared/platformlog_connector.rb: + id: 06ea64f91038 + last_write_checksum: sha1:fa7c8b599d80cab41abf0937e5a1a540705ac019 + pristine_git_object: 11f325198301a10aaac633ba5cb06297433ee7f7 + lib/stack_one/models/shared/platformlog_connector.rbi: + id: da6abd30037b + last_write_checksum: sha1:bead3b9fcc6ba7d159b2c16107e15fbf413a34df + pristine_git_object: 48250a5e6ef6328f8730899a09a7c1107ebb2f89 + lib/stack_one/models/shared/platformlog_log_type.rb: + id: 5484b84a9615 + last_write_checksum: sha1:f76bb42202c8a7fb46f79ffdac66daceae33c200 + pristine_git_object: 7cf8cced1125e7b58cca669dca77c68b42051006 + lib/stack_one/models/shared/platformlog_log_type.rbi: + id: c39a39859ef1 + last_write_checksum: sha1:dd83b03b9c0c651db98e812440ef8c68dd746db0 + pristine_git_object: 3292be0f38874fe4edf069dec3900d8a393b35ce + lib/stack_one/models/shared/platformlogspaginated.rb: + id: b3bbac9ea3b2 + last_write_checksum: sha1:5c1342bc0d57a8502524a2df91b3ec63662c408b + pristine_git_object: 3b655833f58928a25cfffe72021ca5f14372a54d + lib/stack_one/models/shared/platformlogspaginated.rbi: + id: f13560f3dc8f + last_write_checksum: sha1:2f89b14a9abe1f4df750d55a2776a5af522eaccb + pristine_git_object: d664c13b9ddef6174f108ecffa5160906a552c35 + lib/stack_one/models/shared/platformlogspostdto.rb: + id: f9063dd90967 + last_write_checksum: sha1:3206b95f883359c02251a6f5edd68f6a3e129912 + pristine_git_object: c346648dcaeb5d52e1cd52bd6b8de51e0c0d6e15 + lib/stack_one/models/shared/platformlogspostdto.rbi: + id: 566c17353f37 + last_write_checksum: sha1:524c6384a403ab19ea3730da142b597f6090e704 + pristine_git_object: 30832940eefd5908e67f55db34ab2e4aa5374f67 + lib/stack_one/models/shared/platformlogspostdto_filters.rb: + id: 8710a5d3e9ef + last_write_checksum: sha1:eff4324cd7ccfb76fe67b7645e8e648af0223139 + pristine_git_object: 1b6a4514d58f287e867b2f3cd5a6989ec761b150 + lib/stack_one/models/shared/platformlogspostdto_filters.rbi: + id: d6298da7f22e + last_write_checksum: sha1:088f42c7b68d3a4f950ea888fb58f0a0d63c88cd + pristine_git_object: d0a9c767d87cd8ee76c6068d1c664b55b33ff371 + lib/stack_one/models/shared/platformlogspostdto_order_by.rb: + id: b7bbf118f23d + last_write_checksum: sha1:5b2d0d884682011aaa4f7166018058bb28f1add7 + pristine_git_object: 8e866817bcf6cf82796c6085e4e2f077653abf68 + lib/stack_one/models/shared/platformlogspostdto_order_by.rbi: + id: 8face6a493e3 + last_write_checksum: sha1:312fa5599e40978583c9da6adfa9c38b4e109b88 + pristine_git_object: 5fb71b7fe046e0b816cb05763be4274f0ce2c5c7 + lib/stack_one/models/shared/platformlogspostdto_order_direction.rb: + id: d403753005b5 + last_write_checksum: sha1:6f71d11a9a46042724356f351d639140796dd412 + pristine_git_object: d1b550380f32374f1f49e19d486b627140f51898 + lib/stack_one/models/shared/platformlogspostdto_order_direction.rbi: + id: "740928536045" + last_write_checksum: sha1:467739bca1ff43cab9a77ebbf3a4b9f889de5115 + pristine_git_object: a4eb510c5978fb3d1d6054fa4723d4b7d2c4cdd7 lib/stack_one/models/shared/policy.rb: id: 50b58e262315 last_write_checksum: sha1:0a99b01f4bda6a4a1d035e329d7beea439b4a5d1 @@ -28744,14 +28528,6 @@ trackedFiles: id: ca6c3d506d24 last_write_checksum: sha1:74125073c8c566eb51d6b48a5fff7a567a4e3275 pristine_git_object: 5214002405dc3918dadc6650abc6a16a9ced906a - lib/stack_one/models/shared/request.rb: - id: 985fd7231e2e - last_write_checksum: sha1:726641ffed0c7cd74d7918b5ba213e1b08dce69f - pristine_git_object: b7562ed9b1d57c1a0c8462dd827eabc4904a5b14 - lib/stack_one/models/shared/request.rbi: - id: a6c73bcf0dc4 - last_write_checksum: sha1:9e6f0ddd02a0aceef8c30e8c8ce6683bce955cf5 - pristine_git_object: 369588203ab05204be5effb943ae0ff6c9ea3339 lib/stack_one/models/shared/requester.rb: id: 9b099243be8c last_write_checksum: sha1:9744ab0fa55771bde6e5078435759280264458c3 @@ -29424,14 +29200,6 @@ trackedFiles: id: 96137e13994a last_write_checksum: sha1:eb5708d29435c2d36daac971647e8a2c1af907fb pristine_git_object: fc2b7c8bcc76000d43de40a50a9e5e19caf4ed64 - lib/stack_one/models/shared/steplogpartiallegacy.rb: - id: 6741f9f9f850 - last_write_checksum: sha1:fa475aa73987d783527bfee88b27ebf88374863f - pristine_git_object: ea1f70cf65f1300c78de377326316266c0ce6b8f - lib/stack_one/models/shared/steplogpartiallegacy.rbi: - id: 24259b6dd755 - last_write_checksum: sha1:b4d1b7ebf495caa1764c636bc9b841b3403a5cf4 - pristine_git_object: c622a402788075b5bbee67fffcf2f133dca87b34 lib/stack_one/models/shared/steplogspaginated.rb: id: 3792b5224e25 last_write_checksum: sha1:88bb738884932e24ed8e65beda29aff3ea454e55 @@ -29448,14 +29216,6 @@ trackedFiles: id: acc6f09d98bd last_write_checksum: sha1:6248cb7aecf8c64201d16112f9b283e81130b033 pristine_git_object: 0184a73313ff4827c94ae20f3f381cdedade4146 - lib/stack_one/models/shared/steplogspaginatedlegacy.rb: - id: e45280f4726d - last_write_checksum: sha1:7c4e4bbcf497eaacead726e5c7c14539529ff119 - pristine_git_object: abd4530d4b7ff19b4c57efca7c7a84290ef29744 - lib/stack_one/models/shared/steplogspaginatedlegacy.rbi: - id: 0570d56f547c - last_write_checksum: sha1:848617364a419fe4f1a9ca7495933611a8bc8ad5 - pristine_git_object: 6d9a11b85357d877c56ef289c3434b5c06fa4574 lib/stack_one/models/shared/stepslogspostdto.rb: id: f6c563bee109 last_write_checksum: sha1:831b6c3e5f2139eb488dce98b633845fec94f99c @@ -30938,12 +30698,20 @@ trackedFiles: pristine_git_object: c8aebe285e4e7ae857fb923e40c3e08b1b76074e lib/stack_one/models/shared/unifiedlog.rb: id: 560fc60e47e6 - last_write_checksum: sha1:c9cdfadcfd42ef767915104891fcfee2cd581d0d - pristine_git_object: 8f2be32e7f4ef8379ffc83fbeea036e2bd96e319 + last_write_checksum: sha1:ef3200f9d7de410091343f97bd42cae3636a1e8d + pristine_git_object: 4fb7198bd308f2ae0e1199c6982b70e9d833e836 lib/stack_one/models/shared/unifiedlog.rbi: id: 5637e43a5604 - last_write_checksum: sha1:6a18802644a59cbe8bce4b9422d31dd801be0162 - pristine_git_object: 8b058595662f218cbfe4b80f9671a83b0e433a64 + last_write_checksum: sha1:3083a5ac82260007a58f60380a8118df5a7d1b18 + pristine_git_object: 619ca18be0ef5799c337334b025a675be5ae3053 + lib/stack_one/models/shared/unifiedlog_connector.rb: + id: afac39d52673 + last_write_checksum: sha1:055d576200c2b41204efa7bce20ae7e965556e0d + pristine_git_object: c8c78a58d71fcb278e19704da4bde3e1b1df7943 + lib/stack_one/models/shared/unifiedlog_connector.rbi: + id: bf14cfbd7252 + last_write_checksum: sha1:938792edd9111e185f7cdd961d2fe02871bd8dc2 + pristine_git_object: d0676faf555f255dab73025e9d05a62ea438f474 lib/stack_one/models/shared/unifiedlog_log_type.rb: id: 2363fd64b77d last_write_checksum: sha1:c75255ea890f3f99195827d789b1e3dc1bb829b4 @@ -30952,30 +30720,6 @@ trackedFiles: id: 7b588967a222 last_write_checksum: sha1:88d3b2ce1b25e8bc2105c2d53c79c46e3be89ae1 pristine_git_object: 57fe48455da7ec518e1cacde1efeb49b6dfd4ffd - lib/stack_one/models/shared/unifiedlogresultlegacy.rb: - id: 56d5a6659841 - last_write_checksum: sha1:f1bd1254c8eb97f5852d95b2c07b19c12a591d03 - pristine_git_object: 3c764dc18c393a6ba9a1adf0221a8d52406b2a57 - lib/stack_one/models/shared/unifiedlogresultlegacy.rbi: - id: c3ee7318a08a - last_write_checksum: sha1:73ada736359d44b72c3712dc853206dd74ecc18b - pristine_git_object: 5ac96e7c3e5d502a4aa2c65c4f128cf7ce874060 - lib/stack_one/models/shared/unifiedlogslegacy.rb: - id: 1324a74fbe67 - last_write_checksum: sha1:381dab34d46710fc2875782b331bfea46fce87f4 - pristine_git_object: baa720c838168d06fb980518b01d08e07440ae5f - lib/stack_one/models/shared/unifiedlogslegacy.rbi: - id: 64bdc63ccea1 - last_write_checksum: sha1:49d9bc129917039f100363928ab33e501cb4ac74 - pristine_git_object: 5522a91750401a0804037d3d11bc504a4b5a327c - lib/stack_one/models/shared/unifiedlogslegacy_response.rb: - id: d9755cb7e998 - last_write_checksum: sha1:d502d4fe757d420a88bb3f35dfc1522dbe394ab9 - pristine_git_object: 19927b8a9454ca3fb7c1d627e2dfb3b6b35e0e0a - lib/stack_one/models/shared/unifiedlogslegacy_response.rbi: - id: de069189f020 - last_write_checksum: sha1:98088629bccae229ecd8b863cb139771789c33b9 - pristine_git_object: e222494a70f0163adcebea7a08d823073ff23ae1 lib/stack_one/models/shared/unifiedlogspaginated.rb: id: 81627e0b4f35 last_write_checksum: sha1:0cfc883a1cdf33a1d2ad9fafb1633f0db005b3c6 @@ -30992,22 +30736,6 @@ trackedFiles: id: 1a539e179364 last_write_checksum: sha1:f832688fa40f9ae0131a63db7ea377a552501681 pristine_git_object: 747966ed30e18d4eb3ee4f68fa74d1fe43308e0f - lib/stack_one/models/shared/unifiedlogspaginatedlegacy.rb: - id: dd0feebaae1f - last_write_checksum: sha1:bd2e42d3aea8a5c465e0efb09ec9f2b54eb34e6d - pristine_git_object: b02de7565cef5221b0a745665f4cf0f3ab28c868 - lib/stack_one/models/shared/unifiedlogspaginatedlegacy.rbi: - id: a9cd2610be3c - last_write_checksum: sha1:bccafc01602cf3c7155354f3b01e9925550a5175 - pristine_git_object: 5fa897babcfd45208ed36b152d06fb2b29ee2e49 - lib/stack_one/models/shared/unifiedlogspartiallegacy.rb: - id: f378632ef2ef - last_write_checksum: sha1:15d5b4336fa3f0bb63d3942b0221446e689d67d6 - pristine_git_object: e8cd28f37ab3d9edc4c57053e0e23884d8505bdf - lib/stack_one/models/shared/unifiedlogspartiallegacy.rbi: - id: 07c95d4f8404 - last_write_checksum: sha1:929930fdb812cc10764a418e73e4594510b67c02 - pristine_git_object: 14378b1f4d59dadaaa3c586e1cbb6de61ee22587 lib/stack_one/models/shared/unifiedlogspostdto.rb: id: e1719e98b415 last_write_checksum: sha1:17ba3c56e4aee7caec029a18aa9968a648d0b7e1 @@ -31216,14 +30944,6 @@ trackedFiles: id: dc592d051878 last_write_checksum: sha1:cd645d7458139b05c93605bb436ac04aefa5e3f7 pristine_git_object: 97df5e5da5bdc958114f6375e8eab3f31e786bf9 - lib/stack_one/models/shared/url.rb: - id: 73648069a382 - last_write_checksum: sha1:bacf6a75980f97eddf0d66f357f32d49c222bfa5 - pristine_git_object: bd6abdb041686cab1048f0376a1ab6d9431f0af8 - lib/stack_one/models/shared/url.rbi: - id: 9f1f453610ad - last_write_checksum: sha1:127be3a3a8c72bacc3557afdfea7e3b19aa46117 - pristine_git_object: cd8ddc7f7e4d34b938906d9f138ae88a1890fc98 lib/stack_one/models/shared/user.rb: id: 46b4c7557634 last_write_checksum: sha1:5b9107293d9a3e613c56bc714c10e4657f0b4583 @@ -31442,16 +31162,12 @@ trackedFiles: pristine_git_object: fa0e1261ba10d1bfd10fbc26351a5af5006b2298 lib/stack_one/proxy.rb: id: e2ed92e8b2b1 - last_write_checksum: sha1:371f8ecd5efaaf549d23e515636361afdfd3ab7b - pristine_git_object: 4e455e59dfef84c93c586410c9c61ca0cb0e9103 - lib/stack_one/request_logs.rb: - id: 25a20ab32b9e - last_write_checksum: sha1:4ea7a1db0613b0b6dc5b3180f007428ce9f06299 - pristine_git_object: 4a0ffcda38e2b4c42abe671e35454206ba1ed2d2 + last_write_checksum: sha1:fbed57ec2982ca0e82d7f8e35a9adb76bc9f4b26 + pristine_git_object: 24233d91f1bd8d1350bf6ca06e36626020160452 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,20 +31178,20 @@ 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:6749e44ab22a54dc0a755abbc624eb4cff6ce377 + pristine_git_object: 825a58066d57711eaeed007c9964ecd488f78c2b lib/stack_one/sdkconfiguration.rbi: id: b14272994fad last_write_checksum: sha1:10f1877c55e4df6d6b8ee7d75f4d0cd9f23c06cb pristine_git_object: 4e228aa39bd7b198be39dfd07d5c2a1b07ae7baa lib/stack_one/stackone.rb: id: 291fa11342ac - last_write_checksum: sha1:0a585b14f75ebb207ea00b6dedb70c401a593254 - pristine_git_object: cb29ebb058680f963bd083280621644b28a81a8a + last_write_checksum: sha1:3d53f1bda6b4b7d007405ba6ed0c7333faee7f93 + pristine_git_object: 52b2e09d0d59c4e09b374954caed1d25c23f85f8 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 +31210,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 @@ -31510,8 +31226,8 @@ trackedFiles: pristine_git_object: aef16a34f7016276663406f65f40d24f8d37a18b lib/stackone_client.rb: id: 207b98c4bff6 - last_write_checksum: sha1:53f2e7a9910b6f878b1d9b57bd2bcb9085924fdb - pristine_git_object: 692be2b19cc610f24a5e50596009b9befd530f67 + last_write_checksum: sha1:d7f9248708dcf6f87ffdb89143fd349880feb57d + pristine_git_object: 3365623dd6088e67395480071e0ff65b45f73737 sorbet/config: id: 59392da43f94 last_write_checksum: sha1:d02b32628dad70edc5929a9b9801d5e2dca15d40 @@ -31534,8 +31250,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: @@ -31849,6 +31565,7 @@ examples: order_direction: "asc" include: "step_logs" filter: {"account_ids": "45355976281015164504,45355976281015164505", "actions": "download,upload", "child_resources": "documents,time-off", "end_date": "2020-01-01T00:00:00.000Z", "http_methods": "GET,POST", "order_by": "duration", "order_direction": "asc", "providers": "ashby,greenhouse", "request_ids": "adbf752f-6457-4ddd-89b3-98ae2252b83b,adbf752f-6457-4ddd-89b3-98ae2252b83c", "resources": "employees,users", "services": "hris,ats", "source_types": "DASHBOARD,SYNTHETIC_WEBHOOK", "start_date": "2020-01-01T00:00:00.000Z", "status_codes": "200,400", "sub_resources": "documents,employees", "success": true} + expand: "connector" requestBody: application/json: {"filters": {"account_secure_id": ["45355976281015164504"], "action": ["create_employee"], "action_id": ["get_employees"], "action_run_id": ["adbf752f-6457-4ddd-89b3-98ae2252b83b"], "action_type": ["sync"], "category": ["hris"], "connector_key": ["slack"], "connector_version": ["1.0.0"], "end_time": "2025-01-31T23:59:59.999Z", "log_id": ["adbf752f-6457-4ddd-89b3-98ae2252b83b"], "mode": ["production"], "origin_owner_id": ["owner-123"], "provider": ["hibob"], "request_id": ["adbf752f-6457-4ddd-89b3-98ae2252b83b"], "resource": ["employees"], "service": ["hris"], "source_id": ["1234567890"], "source_type": ["DASHBOARD"], "start_time": "2025-01-01T00:00:00.000Z", "status_code": ["200"], "sub_resource": ["documents"], "success": true}, "page": 1, "page_size": 25} responses: @@ -31883,9 +31600,11 @@ examples: order_by: "duration" order_direction: "asc" filter: {"account_ids": "45355976281015164504,45355976281015164505", "actions": "download,upload", "categories": "hris,ats", "end_date": "2020-01-01T00:00:00.000Z", "http_methods": "GET,POST", "order_by": "eventDatetime", "order_direction": "asc", "request_ids": "adbf752f-6457-4ddd-89b3-98ae2252b83b,adbf752f-6457-4ddd-89b3-98ae2252b83c", "resources": "employees,users", "source_types": "DASHBOARD,SYNTHETIC_WEBHOOK", "start_date": "2020-01-01T00:00:00.000Z", "status_codes": "200,400", "success": true} + requestBody: + application/json: {"filters": {"account_secure_id": ["45355976281015164504"], "action": ["create", "delete"], "end_time": "2025-01-31T23:59:59.999Z", "event_type": ["account_create", "account_delete"], "start_time": "2025-01-01T00:00:00.000Z", "success": true}, "page": 1, "page_size": 25} responses: "200": - application/json: {"data": [{"account_id": "45355976281015164504", "action": "download", "category": "hris", "child_resource": "time-off", "duration": 356, "end_time": "2021-01-01T00:00:00Z", "event_datetime": "2021-01-01T00:00:00Z", "http_method": "get", "path": "/unified/hris/employees", "project_id": "dev-project-68574", "request_id": "adbf752f-6457-4ddd-89b3-98ae2252b83b", "resource": "employees", "source_id": "1234567890", "source_ip": "192.168.1.1", "source_type": "DASHBOARD", "source_value": "ACCOUNT_TESTER", "start_time": "2021-01-01T00:00:00Z", "status": 200, "sub_resource": "documents", "success": true, "url": "https://api.stackone.com/unified/hris/employees?raw=false"}]} + application/json: {"data": [{"account_id": "45355976281015164504", "action": "download", "end_time": "2021-01-01T00:00:00Z", "event_id": "adbf752f-6457-4ddd-89b3-98ae2252b83b", "event_type": "account_create", "http_method": "get", "log_id": "adbf752f-6457-4ddd-89b3-98ae2252b83b", "log_type": "platform", "project_id": "dev-project-68574", "service": "unified-api", "source_id": "1234567890", "source_type": "DASHBOARD", "source_value": "ACCOUNT_TESTER", "start_time": "2021-01-01T00:00:00Z", "success": true, "url": "https://api.stackone.com/unified/hris/employees?raw=false"}], "page": 1, "page_size": 25, "total": 100} "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": @@ -35471,7 +35190,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 +35228,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 +41751,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 +42236,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": @@ -42820,7 +42539,7 @@ examples: actionRunId: "" responses: "200": - application/json: {"account_id": "45355976281015164504", "action_id": "get_employees", "action_run_id": "adbf752f-6457-4ddd-89b3-98ae2252b83b", "action_type": "sync", "agent_id": "agent-123", "auth_id": "auth-123", "auth_type": "API_KEY", "category": "hris", "connector_key": "workday", "connector_owner": "stackone", "connector_profile_id": "profile-123", "connector_version": "1.0.0", "duration_ms": 356, "end_time": "2021-01-01T00:00:00Z", "event_time": "2021-01-01T00:00:00Z", "http_method": "GET", "ip_address": "192.168.1.1", "is_background": false, "log_id": "adbf752f-6457-4ddd-89b3-98ae2252b83b", "log_type": "action", "mode": "production", "origin_owner_id": "owner-123", "origin_owner_name": "Test Owner", "project_id": "dev-project-68574", "risk_level": "low", "session_id": "session-123", "source_id": "1234567890", "source_type": "DASHBOARD", "source_value": "ACCOUNT_TESTER", "start_time": "2021-01-01T00:00:00Z", "status_code": 200, "stream_type": "HTTP", "success": true, "tier2_score": 0.5, "transport_type": "HTTP", "url": "https://api.stackone.com/unified/hris/employees", "user_agent": "Mozilla/5.0"} + application/json: {"account_id": "45355976281015164504", "action_id": "get_employees", "action_run_id": "adbf752f-6457-4ddd-89b3-98ae2252b83b", "action_type": "sync", "agent_id": "agent-123", "auth_id": "auth-123", "auth_type": "API_KEY", "category": "hris", "connector": {"categories": ["hris"], "key": "workday", "logo_url": "https://app.stackone.com/logos/workday.png", "name": "Workday", "owner": "stackone", "version": "1.0.0"}, "connector_key": "workday", "connector_owner": "stackone", "connector_profile_id": "profile-123", "connector_version": "1.0.0", "duration_ms": 356, "end_time": "2021-01-01T00:00:00Z", "event_time": "2021-01-01T00:00:00Z", "http_method": "GET", "ip_address": "192.168.1.1", "is_background": false, "log_id": "adbf752f-6457-4ddd-89b3-98ae2252b83b", "log_type": "action", "mode": "production", "origin_owner_id": "owner-123", "origin_owner_name": "Test Owner", "project_id": "dev-project-68574", "risk_level": "low", "session_id": "session-123", "source_id": "1234567890", "source_type": "DASHBOARD", "source_value": "ACCOUNT_TESTER", "start_time": "2021-01-01T00:00:00Z", "status_code": 200, "stream_type": "HTTP", "success": true, "tier2_score": 0.5, "transport_type": "HTTP", "url": "https://api.stackone.com/unified/hris/employees", "user_agent": "Mozilla/5.0"} "400": application/json: {"data": {"headers": {}, "message": "Bad Request", "statusCode": 400}, "message": "Bad Request", "provider_errors": null, "statusCode": 400, "timestamp": "2023-05-30T00:00:00.000Z"} "401": @@ -42897,6 +42616,8 @@ examples: application/json: {"message": "Not Implemented", "statusCode": 501, "timestamp": "2023-05-30T00:00:00.000Z"} "502": application/json: {"message": "Bad Gateway", "statusCode": 502, "timestamp": "2023-05-30T00:00:00.000Z"} + "200": + application/json: {"data": {"connector_key": [{"count": 800, "label": "Workday", "value": "workday"}], "success": [{"count": 1500, "value": "true"}]}} stackone_get_provider_advanced_log: speakeasy-default-stackone-get-provider-advanced-log: parameters: @@ -43048,7 +42769,7 @@ examples: requestId: "" responses: "200": - application/json: {"account_id": "45355976281015164504", "action": "list", "agent_id": "agent-123", "auth_id": "auth-123", "auth_type": "API_KEY", "child_resource": "time-off", "connector_key": "workday", "connector_owner": "stackone", "connector_version": "1.0.0", "duration": 356, "duration_ms": 356, "end_time": "2021-01-01T00:00:00Z", "event_time": "2021-01-01T00:00:00Z", "http_method": "GET", "ip_address": "192.168.1.1", "is_background": false, "is_worker": false, "log_id": "adbf752f-6457-4ddd-89b3-98ae2252b83b", "log_type": "unified", "mode": "production", "origin_owner_id": "owner-123", "origin_owner_name": "Test Owner", "path": "/unified/hris/employees", "project_id": "dev-project-68574", "provider": "workday", "request_id": "adbf752f-6457-4ddd-89b3-98ae2252b83b", "resource": "employees", "service": "hris", "session_id": "session-123", "source_id": "1234567890", "source_type": "DASHBOARD", "source_value": "ACCOUNT_TESTER", "start_time": "2021-01-01T00:00:00Z", "status": 200, "status_code": 200, "stream_type": "HTTP", "sub_resource": "documents", "success": true, "transport_type": "HTTP", "url": "https://api.stackone.com/unified/hris/employees", "user_agent": "Mozilla/5.0"} + application/json: {"account_id": "45355976281015164504", "action": "list", "agent_id": "agent-123", "auth_id": "auth-123", "auth_type": "API_KEY", "child_resource": "time-off", "connector": {"categories": ["hris"], "key": "workday", "logo_url": "https://app.stackone.com/logos/workday.png", "name": "Workday", "owner": "stackone", "version": "1.0.0"}, "connector_key": "workday", "connector_owner": "stackone", "connector_version": "1.0.0", "duration": 356, "duration_ms": 356, "end_time": "2021-01-01T00:00:00Z", "event_time": "2021-01-01T00:00:00Z", "http_method": "GET", "ip_address": "192.168.1.1", "is_background": false, "is_worker": false, "log_id": "adbf752f-6457-4ddd-89b3-98ae2252b83b", "log_type": "unified", "mode": "production", "origin_owner_id": "owner-123", "origin_owner_name": "Test Owner", "path": "/unified/hris/employees", "project_id": "dev-project-68574", "provider": "workday", "request_id": "adbf752f-6457-4ddd-89b3-98ae2252b83b", "resource": "employees", "service": "hris", "session_id": "session-123", "source_id": "1234567890", "source_type": "DASHBOARD", "source_value": "ACCOUNT_TESTER", "start_time": "2021-01-01T00:00:00Z", "status": 200, "status_code": 200, "stream_type": "HTTP", "sub_resource": "documents", "success": true, "transport_type": "HTTP", "url": "https://api.stackone.com/unified/hris/employees", "user_agent": "Mozilla/5.0"} "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 +43184,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.logs.list_logs()`: \n * `request` **Changed** (Breaking ⚠️)\n * `response.data[]` **Changed**\n* `stack_one.request_logs.list_platform_logs()`: **Removed** (Breaking ⚠️)\n* `stack_one.logs.get_logs_stats_dimensions()`: `response.status[200]` **Added**\n* `stack_one.logs.list_platform_logs()`: **Added**\n* `stack_one.request_logs.list_step_logs_legacy()`: **Removed** (Breaking ⚠️)\n* `stack_one.actions.list_actions_meta()`: `response.data[].actions[].has_required_parameters` **Added**\n* `stack_one.request_logs.get_log()`: **Removed** (Breaking ⚠️)\n* `stack_one.actions.search_actions()`: `response.results[]` **Changed**\n* `stack_one.logs.get_action_log()`: `response.connector` **Added**\n* `stack_one.logs.get_logs_stats_aggregate()`: \n * `request.interval_type.enum(none)` **Added**\n* `stack_one.request_logs.list_logs_legacy()`: **Removed** (Breaking ⚠️)\n* `stack_one.logs.get_unified_log()`: `response.connector` **Added**\n* `stack_one.logs.list_action_logs()`: `response.data[].connector` **Added**\n* `stack_one.mcp.mcp_get()`: **Removed** (Breaking ⚠️)\n* `stack_one.logs.list_unified_logs()`: `response.data[].connector` **Added**\n* `stack_one.mcp.mcp_delete()`: **Removed** (Breaking ⚠️)\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..a4223bc06 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.790.3 +speakeasyVersion: 1.796.2 sources: my-source: sourceNamespace: my-source - sourceRevisionDigest: sha256:914ca6ecf0e6a3bc040602755ac3df782cd7bc32fcc35b3f231928407d70b1c1 - sourceBlobDigest: sha256:e19934553ca41e75383a049a2b6e9c4988259e18ba4aa3418517a75968ae5941 + sourceRevisionDigest: sha256:242afa4e9d3055b8b2ffe41a3040928924aa455bcfd200fcd70649d359367929 + sourceBlobDigest: sha256:00befe40e8ff821d2f21fb7ba693fb59d0791cb6b3bb27afb8ab046dde06d7f8 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:242afa4e9d3055b8b2ffe41a3040928924aa455bcfd200fcd70649d359367929 + sourceBlobDigest: sha256:00befe40e8ff821d2f21fb7ba693fb59d0791cb6b3bb27afb8ab046dde06d7f8 codeSamplesNamespace: code-samples-ruby-stackonerubyclient - codeSamplesRevisionDigest: sha256:9616d7b9e610db812935c02c47979d00d1757b127ac4640fba85143c69e13b86 + codeSamplesRevisionDigest: sha256:2f6a1bf393ac5f653524fa50f68918de37ca6ce0c7d922dd3a58cf0518ff54ab workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index 1a05984ff..2ad810770 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 @@ -434,6 +444,7 @@ end * [list_action_logs](docs/sdks/logs/README.md#list_action_logs) - List Action Logs * [list_action_step_logs](docs/sdks/logs/README.md#list_action_step_logs) - List Action Step Logs * [list_logs](docs/sdks/logs/README.md#list_logs) - List Logs +* [list_platform_logs](docs/sdks/logs/README.md#list_platform_logs) - List Platform Logs * [list_provider_logs](docs/sdks/logs/README.md#list_provider_logs) - List Provider Logs * [list_step_logs](docs/sdks/logs/README.md#list_step_logs) - List Step Logs * [list_unified_logs](docs/sdks/logs/README.md#list_unified_logs) - List Unified Logs @@ -470,8 +481,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) @@ -492,13 +501,6 @@ end * [~~proxy_request~~](docs/sdks/proxy/README.md#proxy_request) - Proxy Request (Legacy) :warning: **Deprecated** -### [~~RequestLogs~~](docs/sdks/requestlogs/README.md) - -* [~~get_log~~](docs/sdks/requestlogs/README.md#get_log) - Get Log :warning: **Deprecated** -* [~~list_logs_legacy~~](docs/sdks/requestlogs/README.md#list_logs_legacy) - List Logs :warning: **Deprecated** -* [~~list_platform_logs~~](docs/sdks/requestlogs/README.md#list_platform_logs) - List Platform Logs :warning: **Deprecated** -* [~~list_step_logs_legacy~~](docs/sdks/requestlogs/README.md#list_step_logs_legacy) - List Step Logs :warning: **Deprecated** - ### [Screening](docs/sdks/screening/README.md) * [create_screening_order](docs/sdks/screening/README.md#create_screening_order) - Create Screening Order diff --git a/RELEASES.md b/RELEASES.md index bbd3cba74..43337f55c 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-31 09:03:17 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.796.2 (2.933.0) 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..b0a3d05c2 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": @@ -110,7 +110,7 @@ actions: "x-codeSamples": - "lang": "ruby" "label": "stackone_list_logs" - "source": "require 'stackone_client'\n\nModels = ::StackOne::Models\ns = ::StackOne::StackOne.new(\n security: Models::Shared::Security.new(\n password: '',\n username: ''\n )\n)\n\nreq = Models::Shared::LogsPostDto.new(\n filters: Models::Shared::LogsPostDtoFilters.new(\n account_secure_id: [\n '45355976281015164504',\n ],\n action: [\n 'create_employee',\n ],\n action_id: [\n 'get_employees',\n ],\n action_run_id: [\n 'adbf752f-6457-4ddd-89b3-98ae2252b83b',\n ],\n action_type: [\n 'sync',\n ],\n category: [\n 'hris',\n ],\n connector_key: [\n 'slack',\n ],\n connector_version: [\n '1.0.0',\n ],\n end_time: '2025-01-31T23:59:59.999Z',\n log_id: [\n 'adbf752f-6457-4ddd-89b3-98ae2252b83b',\n ],\n mode: [\n 'production',\n ],\n origin_owner_id: [\n 'owner-123',\n ],\n provider: [\n 'hibob',\n ],\n request_id: [\n 'adbf752f-6457-4ddd-89b3-98ae2252b83b',\n ],\n resource: [\n 'employees',\n ],\n service: [\n 'hris',\n ],\n source_id: [\n '1234567890',\n ],\n source_type: [\n 'DASHBOARD',\n ],\n start_time: '2025-01-01T00:00:00.000Z',\n status_code: [\n '200',\n ],\n sub_resource: [\n 'documents',\n ],\n success: true\n ),\n page: 1.0,\n page_size: 25.0\n)\nres = s.logs.list_logs(request: req)\n\nunless res.logs_paginated.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.logs.list_logs(logs_post_dto: Models::Shared::LogsPostDto.new(\n filters: Models::Shared::LogsPostDtoFilters.new(\n account_secure_id: [\n '45355976281015164504',\n ],\n action: [\n 'create_employee',\n ],\n action_id: [\n 'get_employees',\n ],\n action_run_id: [\n 'adbf752f-6457-4ddd-89b3-98ae2252b83b',\n ],\n action_type: [\n 'sync',\n ],\n category: [\n 'hris',\n ],\n connector_key: [\n 'slack',\n ],\n connector_version: [\n '1.0.0',\n ],\n end_time: '2025-01-31T23:59:59.999Z',\n log_id: [\n 'adbf752f-6457-4ddd-89b3-98ae2252b83b',\n ],\n mode: [\n 'production',\n ],\n origin_owner_id: [\n 'owner-123',\n ],\n provider: [\n 'hibob',\n ],\n request_id: [\n 'adbf752f-6457-4ddd-89b3-98ae2252b83b',\n ],\n resource: [\n 'employees',\n ],\n service: [\n 'hris',\n ],\n source_id: [\n '1234567890',\n ],\n source_type: [\n 'DASHBOARD',\n ],\n start_time: '2025-01-01T00:00:00.000Z',\n status_code: [\n '200',\n ],\n sub_resource: [\n 'documents',\n ],\n success: true\n ),\n page: 1.0,\n page_size: 25.0\n), expand: 'connector')\n\nunless res.logs_paginated.nil?\n # handle response\nend" - target: $["paths"]["/logs/actions"]["post"] update: "x-codeSamples": @@ -153,6 +153,12 @@ actions: - "lang": "ruby" "label": "stackone_get_step_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_step_advanced_log(action_run_id: '', step_index: 7982.24)\n\nif res.status_code == 200\n # handle response\nend" + - target: $["paths"]["/logs/platform"]["post"] + update: + "x-codeSamples": + - "lang": "ruby" + "label": "stackone_list_platform_logs" + "source": "require 'stackone_client'\n\nModels = ::StackOne::Models\ns = ::StackOne::StackOne.new(\n security: Models::Shared::Security.new(\n password: '',\n username: ''\n )\n)\n\nreq = Models::Shared::PlatformLogsPostDto.new(\n filters: Models::Shared::PlatformLogsPostDtoFilters.new(\n account_secure_id: [\n '45355976281015164504',\n ],\n action: [\n 'create',\n 'delete',\n ],\n end_time: '2025-01-31T23:59:59.999Z',\n event_type: [\n 'account_create',\n 'account_delete',\n ],\n start_time: '2025-01-01T00:00:00.000Z',\n success: true\n ),\n page: 1.0,\n page_size: 25.0\n)\nres = s.logs.list_platform_logs(request: req)\n\nunless res.platform_logs_paginated.nil?\n # handle response\nend" - target: $["paths"]["/logs/provider"]["post"] update: "x-codeSamples": @@ -170,7 +176,7 @@ actions: "x-codeSamples": - "lang": "ruby" "label": "stackone_get_logs_stats_dimensions" - "source": "require 'stackone_client'\n\nModels = ::StackOne::Models\ns = ::StackOne::StackOne.new(\n security: Models::Shared::Security.new(\n password: '',\n username: ''\n )\n)\n\nreq = Models::Shared::DimensionsPostDto.new(\n dimensions: [],\n filters: Models::Shared::DimensionsPostDtoFilters.new(\n account_secure_id: [\n '45355976281015164504',\n ],\n action: [\n 'create_employee',\n ],\n action_id: [\n 'get_employees',\n ],\n action_run_id: [\n 'adbf752f-6457-4ddd-89b3-98ae2252b83b',\n ],\n action_type: [\n 'sync',\n ],\n category: [\n 'hris',\n ],\n connector_key: [\n 'slack',\n ],\n connector_version: [\n '1.0.0',\n ],\n end_time: '2025-01-31T23:59:59.999Z',\n log_id: [\n 'adbf752f-6457-4ddd-89b3-98ae2252b83b',\n ],\n mode: [\n 'production',\n ],\n origin_owner_id: [\n 'owner-123',\n ],\n provider: [\n 'hibob',\n ],\n request_id: [\n 'adbf752f-6457-4ddd-89b3-98ae2252b83b',\n ],\n resource: [\n 'employees',\n ],\n service: [\n 'hris',\n ],\n source_id: [\n '1234567890',\n ],\n source_type: [\n 'DASHBOARD',\n ],\n start_time: '2025-01-01T00:00:00.000Z',\n status_code: [\n '200',\n ],\n sub_resource: [\n 'documents',\n ],\n success: true\n )\n)\nres = s.logs.get_logs_stats_dimensions(request: req)\n\nif res.status_code == 200\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)\n\nreq = Models::Shared::DimensionsPostDto.new(\n dimensions: [],\n filters: Models::Shared::DimensionsPostDtoFilters.new(\n account_secure_id: [\n '45355976281015164504',\n ],\n action: [\n 'create_employee',\n ],\n action_id: [\n 'get_employees',\n ],\n action_run_id: [\n 'adbf752f-6457-4ddd-89b3-98ae2252b83b',\n ],\n action_type: [\n 'sync',\n ],\n category: [\n 'hris',\n ],\n connector_key: [\n 'slack',\n ],\n connector_version: [\n '1.0.0',\n ],\n end_time: '2025-01-31T23:59:59.999Z',\n log_id: [\n 'adbf752f-6457-4ddd-89b3-98ae2252b83b',\n ],\n mode: [\n 'production',\n ],\n origin_owner_id: [\n 'owner-123',\n ],\n provider: [\n 'hibob',\n ],\n request_id: [\n 'adbf752f-6457-4ddd-89b3-98ae2252b83b',\n ],\n resource: [\n 'employees',\n ],\n service: [\n 'hris',\n ],\n source_id: [\n '1234567890',\n ],\n source_type: [\n 'DASHBOARD',\n ],\n start_time: '2025-01-01T00:00:00.000Z',\n status_code: [\n '200',\n ],\n sub_resource: [\n 'documents',\n ],\n success: true\n )\n)\nres = s.logs.get_logs_stats_dimensions(request: req)\n\nunless res.logs_dimensions.nil?\n # handle response\nend" - target: $["paths"]["/logs/steps"]["post"] update: "x-codeSamples": @@ -213,18 +219,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": @@ -236,7 +230,7 @@ actions: "x-codeSamples": - "lang": "ruby" "label": "accounting_list_companies" - "source": "require 'stackone_client'\n\nModels = ::StackOne::Models\ns = ::StackOne::StackOne.new(\n security: Models::Shared::Security.new(\n password: '',\n username: ''\n )\n)\n\nreq = Models::Operations::AccountingListCompaniesRequest.new(\n prefer: 'heartbeat',\n fields_: 'id,remote_id,name,base_currency,fiscal_year_start_month,fiscal_year_start_day,unified_custom_fields',\n filter: Models::Operations::AccountingListCompaniesQueryParamFilter.new(\n updated_after: DateTime.iso8601('2020-01-01T00:00:00.000Z')\n ),\n x_account_id: ''\n)\nres = s.accounting.list_companies(request: req)\n\nunless res.accounting_companies_paginated.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)\n\nreq = Models::Operations::AccountingListCompaniesRequest.new(\n prefer: 'heartbeat',\n fields_: 'id,remote_id,name,base_currency,fiscal_year_start_month,fiscal_year_start_day,unified_custom_fields',\n filter: Models::Operations::QueryParamFilter.new(\n updated_after: DateTime.iso8601('2020-01-01T00:00:00.000Z')\n ),\n x_account_id: ''\n)\nres = s.accounting.list_companies(request: req)\n\nunless res.accounting_companies_paginated.nil?\n # handle response\nend" - target: $["paths"]["/unified/accounting/companies/{id}"]["get"] update: "x-codeSamples": diff --git a/docs/models/operations/accountinglistcompaniesqueryparamfilter.md b/docs/models/operations/accountinglistcompaniesqueryparamfilter.md deleted file mode 100644 index b6131a57a..000000000 --- a/docs/models/operations/accountinglistcompaniesqueryparamfilter.md +++ /dev/null @@ -1,10 +0,0 @@ -# AccountingListCompaniesQueryParamFilter - -Filter parameters that allow greater customisation of the list response - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | -| `updated_after` | [Date](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/Date.html) | :heavy_minus_sign: | Use a string with a date to only select results updated after that given date | 2020-01-01T00:00:00.000Z | \ No newline at end of file diff --git a/docs/models/operations/accountinglistcompaniesrequest.md b/docs/models/operations/accountinglistcompaniesrequest.md index 0cca73fde..6300b5cce 100644 --- a/docs/models/operations/accountinglistcompaniesrequest.md +++ b/docs/models/operations/accountinglistcompaniesrequest.md @@ -7,7 +7,7 @@ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `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,base_currency,fiscal_year_start_month,fiscal_year_start_day,unified_custom_fields | -| `filter` | [T.nilable(Models::Operations::AccountingListCompaniesQueryParamFilter)](../../models/operations/accountinglistcompaniesqueryparamfilter.md) | :heavy_minus_sign: | Filter parameters that allow greater customisation of the list response | | +| `filter` | [T.nilable(Models::Operations::QueryParamFilter)](../../models/operations/queryparamfilter.md) | :heavy_minus_sign: | Filter parameters that allow greater customisation of the list response | | | `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) | | 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/orderby.md b/docs/models/operations/orderby.md deleted file mode 100644 index 5b1102fd7..000000000 --- a/docs/models/operations/orderby.md +++ /dev/null @@ -1,22 +0,0 @@ -# OrderBy - -The field to order the results by. - -## Example Usage - -```ruby -require "stackone_client" - -value = OrderBy::PROVIDER -``` - - -## Values - -| Name | Value | -| ---------------- | ---------------- | -| `PROVIDER` | provider | -| `SERVICE` | service | -| `STATUS` | status | -| `EVENT_DATETIME` | eventDatetime | -| `DURATION` | duration | \ No newline at end of file diff --git a/docs/models/operations/orderdirection.md b/docs/models/operations/orderdirection.md deleted file mode 100644 index e0c1bbbcc..000000000 --- a/docs/models/operations/orderdirection.md +++ /dev/null @@ -1,19 +0,0 @@ -# OrderDirection - -The direction to order the results by. - -## Example Usage - -```ruby -require "stackone_client" - -value = OrderDirection::ASC -``` - - -## Values - -| Name | Value | -| ------ | ------ | -| `ASC` | asc | -| `DESC` | desc | \ No newline at end of file diff --git a/docs/models/operations/queryparamfilter.md b/docs/models/operations/queryparamfilter.md index 843030ee4..5385f223a 100644 --- a/docs/models/operations/queryparamfilter.md +++ b/docs/models/operations/queryparamfilter.md @@ -5,23 +5,6 @@ Filter parameters that allow greater customisation of the list response ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -| `account_ids` | *T.nilable(::String)* | :heavy_minus_sign: | A comma-separated list of account IDs to filter the results by. | 45355976281015164504,45355976281015164505 | -| `actions` | *T.nilable(::String)* | :heavy_minus_sign: | A comma-separated list of actions to filter the results by. | download,upload | -| `child_resources` | *T.nilable(::String)* | :heavy_minus_sign: | A comma-separated list of child resources to filter the results by. | documents,time-off | -| `end_date` | [Date](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/Date.html) | :heavy_minus_sign: | A ISO8601 date string to filter the results by end_date. | 2020-01-01T00:00:00.000Z | -| `http_methods` | *T.nilable(::String)* | :heavy_minus_sign: | A comma-separated list of HTTP methods to filter the results by. | GET,POST | -| `order_by` | [T.nilable(Models::Operations::QueryParamOrderBy)](../../models/operations/queryparamorderby.md) | :heavy_minus_sign: | The field to order the results by. | created_at | -| `order_direction` | [T.nilable(Models::Operations::QueryParamOrderDirection)](../../models/operations/queryparamorderdirection.md) | :heavy_minus_sign: | The direction to order the results by. | asc | -| `providers` | *T.nilable(::String)* | :heavy_minus_sign: | A comma-separated list of provider keys to filter the results by. | ashby,greenhouse | -| `request_ids` | *T.nilable(::String)* | :heavy_minus_sign: | A comma-separated list of request IDs to filter the results by. | adbf752f-6457-4ddd-89b3-98ae2252b83b,adbf752f-6457-4ddd-89b3-98ae2252b83c | -| `resources` | *T.nilable(::String)* | :heavy_minus_sign: | A comma-separated list of resources to filter the results by. | employees,users | -| `services` | *T.nilable(::String)* | :heavy_minus_sign: | A comma-separated list of services to filter the results by. | hris,ats | -| `source_ids` | *T.nilable(::String)* | :heavy_minus_sign: | A comma-separated list of source IDs to filter the results by. | | -| `source_types` | *T.nilable(::String)* | :heavy_minus_sign: | A comma-separated list of source types to filter the results by. | DASHBOARD,SYNTHETIC_WEBHOOK | -| `source_values` | *T.nilable(::String)* | :heavy_minus_sign: | A comma-separated list of source values to filter the results by. | | -| `start_date` | [Date](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/Date.html) | :heavy_minus_sign: | A ISO8601 date string to filter the results by start_date. | 2020-01-01T00:00:00.000Z | -| `status_codes` | *T.nilable(::String)* | :heavy_minus_sign: | A comma-separated list of status codes to filter the results by. | 200,400 | -| `sub_resources` | *T.nilable(::String)* | :heavy_minus_sign: | A comma-separated list of sub resources to filter the results by. | documents,employees | -| `success` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | A boolean value to filter the results by success or failure. | true | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | +| `updated_after` | [Date](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/Date.html) | :heavy_minus_sign: | Use a string with a date to only select results updated after that given date | 2020-01-01T00:00:00.000Z | \ No newline at end of file diff --git a/docs/models/operations/queryparaminclude.md b/docs/models/operations/queryparaminclude.md deleted file mode 100644 index 64ecbfeed..000000000 --- a/docs/models/operations/queryparaminclude.md +++ /dev/null @@ -1,19 +0,0 @@ -# QueryParamInclude - -The include parameter allows you to include additional data in the response. - -## Example Usage - -```ruby -require "stackone_client" - -value = QueryParamInclude::STEP_LOGS -``` - - -## Values - -| Name | Value | -| --------------- | --------------- | -| `STEP_LOGS` | step_logs | -| `ADVANCED_LOGS` | advanced_logs | \ No newline at end of file diff --git a/docs/models/operations/queryparamorderby.md b/docs/models/operations/queryparamorderby.md deleted file mode 100644 index 47b22966b..000000000 --- a/docs/models/operations/queryparamorderby.md +++ /dev/null @@ -1,22 +0,0 @@ -# QueryParamOrderBy - -The field to order the results by. - -## Example Usage - -```ruby -require "stackone_client" - -value = QueryParamOrderBy::PROVIDER -``` - - -## Values - -| Name | Value | -| ---------------- | ---------------- | -| `PROVIDER` | provider | -| `SERVICE` | service | -| `STATUS` | status | -| `EVENT_DATETIME` | eventDatetime | -| `DURATION` | duration | \ No newline at end of file diff --git a/docs/models/operations/queryparamorderdirection.md b/docs/models/operations/queryparamorderdirection.md deleted file mode 100644 index a0762ebc7..000000000 --- a/docs/models/operations/queryparamorderdirection.md +++ /dev/null @@ -1,19 +0,0 @@ -# QueryParamOrderDirection - -The direction to order the results by. - -## Example Usage - -```ruby -require "stackone_client" - -value = QueryParamOrderDirection::ASC -``` - - -## Values - -| Name | Value | -| ------ | ------ | -| `ASC` | asc | -| `DESC` | desc | \ No newline at end of file diff --git a/docs/models/operations/stackonegetlogrequest.md b/docs/models/operations/stackonegetlogrequest.md deleted file mode 100644 index 11e730922..000000000 --- a/docs/models/operations/stackonegetlogrequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# StackoneGetLogRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `id` | *::String* | :heavy_check_mark: | N/A | | -| `include` | [T.nilable(Models::Operations::QueryParamInclude)](../../models/operations/queryparaminclude.md) | :heavy_minus_sign: | The include parameter allows you to include additional data in the response. | step_logs | \ No newline at end of file diff --git a/docs/models/operations/stackonegetlogresponse.md b/docs/models/operations/stackonegetlogresponse.md deleted file mode 100644 index 206bc2b9e..000000000 --- a/docs/models/operations/stackonegetlogresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# StackoneGetLogResponse - - -## 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 | -| `unified_log_result_legacy` | [T.nilable(Models::Shared::UnifiedLogResultLegacy)](../../models/shared/unifiedlogresultlegacy.md) | :heavy_minus_sign: | The log was retrieved. | \ No newline at end of file diff --git a/docs/models/operations/stackonegetlogsstatsdimensionsresponse.md b/docs/models/operations/stackonegetlogsstatsdimensionsresponse.md index 1a4347e00..0f716eb91 100644 --- a/docs/models/operations/stackonegetlogsstatsdimensionsresponse.md +++ b/docs/models/operations/stackonegetlogsstatsdimensionsresponse.md @@ -3,9 +3,10 @@ ## 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 +| 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 | +| `logs_dimensions` | [T.nilable(Models::Shared::LogsDimensions)](../../models/shared/logsdimensions.md) | :heavy_minus_sign: | The dimension values were retrieved. | +| `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/stackonelistlogslegacyqueryparaminclude.md b/docs/models/operations/stackonelistlogslegacyqueryparaminclude.md deleted file mode 100644 index f6c1dc16b..000000000 --- a/docs/models/operations/stackonelistlogslegacyqueryparaminclude.md +++ /dev/null @@ -1,18 +0,0 @@ -# StackoneListLogsLegacyQueryParamInclude - -The include parameter allows you to include additional data in the response. - -## Example Usage - -```ruby -require "stackone_client" - -value = StackoneListLogsLegacyQueryParamInclude::STEP_LOGS -``` - - -## Values - -| Name | Value | -| ----------- | ----------- | -| `STEP_LOGS` | step_logs | \ No newline at end of file diff --git a/docs/models/operations/stackonelistlogslegacyrequest.md b/docs/models/operations/stackonelistlogslegacyrequest.md deleted file mode 100644 index ff24e49cd..000000000 --- a/docs/models/operations/stackonelistlogslegacyrequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# StackoneListLogsLegacyRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -| `filter` | [T.nilable(Models::Operations::QueryParamFilter)](../../models/operations/queryparamfilter.md) | :heavy_minus_sign: | Filter parameters that allow greater customisation of the list response | | -| `include` | [T.nilable(Models::Operations::StackoneListLogsLegacyQueryParamInclude)](../../models/operations/stackonelistlogslegacyqueryparaminclude.md) | :heavy_minus_sign: | The include parameter allows you to include additional data in the response. | step_logs | -| `next_` | *T.nilable(::String)* | :heavy_minus_sign: | The unified cursor | | -| `order_by` | [T.nilable(Models::Operations::OrderBy)](../../models/operations/orderby.md) | :heavy_minus_sign: | The field to order the results by. | created_at | -| `order_direction` | [T.nilable(Models::Operations::OrderDirection)](../../models/operations/orderdirection.md) | :heavy_minus_sign: | The direction to order the results by. | asc | -| `page_size` | *T.nilable(::Float)* | :heavy_minus_sign: | The number of results per page (default value is 25) | | \ No newline at end of file diff --git a/docs/models/operations/stackonelistlogslegacyresponse.md b/docs/models/operations/stackonelistlogslegacyresponse.md deleted file mode 100644 index d5c9761b6..000000000 --- a/docs/models/operations/stackonelistlogslegacyresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# StackoneListLogsLegacyResponse - - -## 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 | -| `unified_logs_paginated_legacy` | [T.nilable(Models::Shared::UnifiedLogsPaginatedLegacy)](../../models/shared/unifiedlogspaginatedlegacy.md) | :heavy_minus_sign: | The list of logs was retrieved. | \ No newline at end of file diff --git a/docs/models/operations/stackonelistlogsrequest.md b/docs/models/operations/stackonelistlogsrequest.md new file mode 100644 index 000000000..b7fbc474a --- /dev/null +++ b/docs/models/operations/stackonelistlogsrequest.md @@ -0,0 +1,9 @@ +# StackoneListLogsRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `logs_post_dto` | [Models::Shared::LogsPostDto](../../models/shared/logspostdto.md) | :heavy_check_mark: | N/A | | +| `expand` | *T.nilable(::String)* | :heavy_minus_sign: | A comma-separated list of additional fields to expand. Supported values: `connector` (the connector display data — name, logo, categories — for each row). Omitted unless requested, as resolving it is more expensive. `connector_key`, `connector_version` and `connector_owner` are always returned regardless. | connector | \ No newline at end of file diff --git a/docs/models/operations/stackonelistplatformlogsqueryparamfilter.md b/docs/models/operations/stackonelistplatformlogsqueryparamfilter.md deleted file mode 100644 index c1e888df8..000000000 --- a/docs/models/operations/stackonelistplatformlogsqueryparamfilter.md +++ /dev/null @@ -1,24 +0,0 @@ -# StackoneListPlatformLogsQueryParamFilter - -Filter parameters that allow greater customisation of the list response - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `account_ids` | *T.nilable(::String)* | :heavy_minus_sign: | A comma-separated list of account IDs to filter the results by. | 45355976281015164504,45355976281015164505 | -| `actions` | *T.nilable(::String)* | :heavy_minus_sign: | A comma-separated list of actions to filter the results by. | download,upload | -| `categories` | *T.nilable(::String)* | :heavy_minus_sign: | A comma-separated list of categories to filter the results by. | hris,ats | -| `end_date` | [Date](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/Date.html) | :heavy_minus_sign: | A ISO8601 date string to filter the results by end_date. | 2020-01-01T00:00:00.000Z | -| `http_methods` | *T.nilable(::String)* | :heavy_minus_sign: | A comma-separated list of HTTP methods to filter the results by. | GET,POST | -| `order_by` | [T.nilable(Models::Operations::StackoneListPlatformLogsQueryParamRequestLogsOrderBy)](../../models/operations/stackonelistplatformlogsqueryparamrequestlogsorderby.md) | :heavy_minus_sign: | The field to order the results by. | created_at | -| `order_direction` | [T.nilable(Models::Operations::StackoneListPlatformLogsQueryParamRequestLogsOrderDirection)](../../models/operations/stackonelistplatformlogsqueryparamrequestlogsorderdirection.md) | :heavy_minus_sign: | The direction to order the results by. | asc | -| `request_ids` | *T.nilable(::String)* | :heavy_minus_sign: | A comma-separated list of request IDs to filter the results by. | adbf752f-6457-4ddd-89b3-98ae2252b83b,adbf752f-6457-4ddd-89b3-98ae2252b83c | -| `resources` | *T.nilable(::String)* | :heavy_minus_sign: | A comma-separated list of resources to filter the results by. | employees,users | -| `source_ids` | *T.nilable(::String)* | :heavy_minus_sign: | A comma-separated list of source IDs to filter the results by. | | -| `source_types` | *T.nilable(::String)* | :heavy_minus_sign: | A comma-separated list of source types to filter the results by. | DASHBOARD,SYNTHETIC_WEBHOOK | -| `source_values` | *T.nilable(::String)* | :heavy_minus_sign: | A comma-separated list of source values to filter the results by. | | -| `start_date` | [Date](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/Date.html) | :heavy_minus_sign: | A ISO8601 date string to filter the results by start_date. | 2020-01-01T00:00:00.000Z | -| `status_codes` | *T.nilable(::String)* | :heavy_minus_sign: | A comma-separated list of status codes to filter the results by. | 200,400 | -| `success` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | A boolean value to filter the results by success or failure. | true | \ No newline at end of file diff --git a/docs/models/operations/stackonelistplatformlogsqueryparamorderby.md b/docs/models/operations/stackonelistplatformlogsqueryparamorderby.md deleted file mode 100644 index e1407c0cb..000000000 --- a/docs/models/operations/stackonelistplatformlogsqueryparamorderby.md +++ /dev/null @@ -1,22 +0,0 @@ -# StackoneListPlatformLogsQueryParamOrderBy - -The field to order the results by. - -## Example Usage - -```ruby -require "stackone_client" - -value = StackoneListPlatformLogsQueryParamOrderBy::PROVIDER -``` - - -## Values - -| Name | Value | -| ---------------- | ---------------- | -| `PROVIDER` | provider | -| `SERVICE` | service | -| `STATUS` | status | -| `EVENT_DATETIME` | eventDatetime | -| `DURATION` | duration | \ No newline at end of file diff --git a/docs/models/operations/stackonelistplatformlogsqueryparamorderdirection.md b/docs/models/operations/stackonelistplatformlogsqueryparamorderdirection.md deleted file mode 100644 index 033542f19..000000000 --- a/docs/models/operations/stackonelistplatformlogsqueryparamorderdirection.md +++ /dev/null @@ -1,19 +0,0 @@ -# StackoneListPlatformLogsQueryParamOrderDirection - -The direction to order the results by. - -## Example Usage - -```ruby -require "stackone_client" - -value = StackoneListPlatformLogsQueryParamOrderDirection::ASC -``` - - -## Values - -| Name | Value | -| ------ | ------ | -| `ASC` | asc | -| `DESC` | desc | \ No newline at end of file diff --git a/docs/models/operations/stackonelistplatformlogsqueryparamrequestlogsorderby.md b/docs/models/operations/stackonelistplatformlogsqueryparamrequestlogsorderby.md deleted file mode 100644 index 737101e88..000000000 --- a/docs/models/operations/stackonelistplatformlogsqueryparamrequestlogsorderby.md +++ /dev/null @@ -1,22 +0,0 @@ -# StackoneListPlatformLogsQueryParamRequestLogsOrderBy - -The field to order the results by. - -## Example Usage - -```ruby -require "stackone_client" - -value = StackoneListPlatformLogsQueryParamRequestLogsOrderBy::PROVIDER -``` - - -## Values - -| Name | Value | -| ---------------- | ---------------- | -| `PROVIDER` | provider | -| `SERVICE` | service | -| `STATUS` | status | -| `EVENT_DATETIME` | eventDatetime | -| `DURATION` | duration | \ No newline at end of file diff --git a/docs/models/operations/stackonelistplatformlogsqueryparamrequestlogsorderdirection.md b/docs/models/operations/stackonelistplatformlogsqueryparamrequestlogsorderdirection.md deleted file mode 100644 index 59f8ace88..000000000 --- a/docs/models/operations/stackonelistplatformlogsqueryparamrequestlogsorderdirection.md +++ /dev/null @@ -1,19 +0,0 @@ -# StackoneListPlatformLogsQueryParamRequestLogsOrderDirection - -The direction to order the results by. - -## Example Usage - -```ruby -require "stackone_client" - -value = StackoneListPlatformLogsQueryParamRequestLogsOrderDirection::ASC -``` - - -## Values - -| Name | Value | -| ------ | ------ | -| `ASC` | asc | -| `DESC` | desc | \ No newline at end of file diff --git a/docs/models/operations/stackonelistplatformlogsrequest.md b/docs/models/operations/stackonelistplatformlogsrequest.md deleted file mode 100644 index 86ae3ce97..000000000 --- a/docs/models/operations/stackonelistplatformlogsrequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# StackoneListPlatformLogsRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `filter` | [T.nilable(Models::Operations::StackoneListPlatformLogsQueryParamFilter)](../../models/operations/stackonelistplatformlogsqueryparamfilter.md) | :heavy_minus_sign: | Filter parameters that allow greater customisation of the list response | | -| `next_` | *T.nilable(::String)* | :heavy_minus_sign: | The unified cursor | | -| `order_by` | [T.nilable(Models::Operations::StackoneListPlatformLogsQueryParamOrderBy)](../../models/operations/stackonelistplatformlogsqueryparamorderby.md) | :heavy_minus_sign: | The field to order the results by. | created_at | -| `order_direction` | [T.nilable(Models::Operations::StackoneListPlatformLogsQueryParamOrderDirection)](../../models/operations/stackonelistplatformlogsqueryparamorderdirection.md) | :heavy_minus_sign: | The direction to order the results by. | asc | -| `page_size` | *T.nilable(::Float)* | :heavy_minus_sign: | The number of results per page (default value is 25) | | \ No newline at end of file diff --git a/docs/models/operations/stackonelistplatformlogsresponse.md b/docs/models/operations/stackonelistplatformlogsresponse.md index 81103cdf7..38f0d8fb7 100644 --- a/docs/models/operations/stackonelistplatformlogsresponse.md +++ b/docs/models/operations/stackonelistplatformlogsresponse.md @@ -3,10 +3,10 @@ ## 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 | -| `platform_logs_paginated_legacy` | [T.nilable(Models::Shared::PlatformLogsPaginatedLegacy)](../../models/shared/platformlogspaginatedlegacy.md) | :heavy_minus_sign: | The list of platform logs was retrieved. | -| `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 | +| `platform_logs_paginated` | [T.nilable(Models::Shared::PlatformLogsPaginated)](../../models/shared/platformlogspaginated.md) | :heavy_minus_sign: | The list of platform logs was retrieved. | +| `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/stackoneliststeplogslegacyqueryparamfilter.md b/docs/models/operations/stackoneliststeplogslegacyqueryparamfilter.md deleted file mode 100644 index 6f6647615..000000000 --- a/docs/models/operations/stackoneliststeplogslegacyqueryparamfilter.md +++ /dev/null @@ -1,22 +0,0 @@ -# StackoneListStepLogsLegacyQueryParamFilter - -Filter parameters that allow greater customisation of the list response - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | -| `account_ids` | *T.nilable(::String)* | :heavy_minus_sign: | A comma-separated list of account IDs to filter the results by. | 45355976281015164504,45355976281015164505 | -| `actions` | *T.nilable(::String)* | :heavy_minus_sign: | A comma-separated list of actions to filter the results by. | download,upload | -| `child_resources` | *T.nilable(::String)* | :heavy_minus_sign: | A comma-separated list of child resources to filter the results by. | documents,time-off | -| `end_date` | [Date](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/Date.html) | :heavy_minus_sign: | A ISO8601 date string to filter the results by end_date. | 2020-01-01T00:00:00.000Z | -| `http_methods` | *T.nilable(::String)* | :heavy_minus_sign: | A comma-separated list of HTTP methods to filter the results by. | GET,POST | -| `providers` | *T.nilable(::String)* | :heavy_minus_sign: | A comma-separated list of provider keys to filter the results by. | ashby,greenhouse | -| `request_ids` | *T.nilable(::String)* | :heavy_minus_sign: | A comma-separated list of request IDs to filter the results by. | adbf752f-6457-4ddd-89b3-98ae2252b83b,adbf752f-6457-4ddd-89b3-98ae2252b83c | -| `resources` | *T.nilable(::String)* | :heavy_minus_sign: | A comma-separated list of resources to filter the results by. | employees,users | -| `services` | *T.nilable(::String)* | :heavy_minus_sign: | A comma-separated list of services to filter the results by. | hris,ats | -| `start_date` | [Date](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/Date.html) | :heavy_minus_sign: | A ISO8601 date string to filter the results by start_date. | 2020-01-01T00:00:00.000Z | -| `status_codes` | *T.nilable(::String)* | :heavy_minus_sign: | A comma-separated list of status codes to filter the results by. | 200,400 | -| `sub_resources` | *T.nilable(::String)* | :heavy_minus_sign: | A comma-separated list of sub resources to filter the results by. | documents,employees | -| `success` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | A boolean value to filter the results by success or failure. | true | \ No newline at end of file diff --git a/docs/models/operations/stackoneliststeplogslegacyqueryparamorderby.md b/docs/models/operations/stackoneliststeplogslegacyqueryparamorderby.md deleted file mode 100644 index 51ce68629..000000000 --- a/docs/models/operations/stackoneliststeplogslegacyqueryparamorderby.md +++ /dev/null @@ -1,22 +0,0 @@ -# StackoneListStepLogsLegacyQueryParamOrderBy - -The field to order the results by. - -## Example Usage - -```ruby -require "stackone_client" - -value = StackoneListStepLogsLegacyQueryParamOrderBy::PROVIDER -``` - - -## Values - -| Name | Value | -| ---------------- | ---------------- | -| `PROVIDER` | provider | -| `SERVICE` | service | -| `STATUS` | status | -| `EVENT_DATETIME` | eventDatetime | -| `DURATION` | duration | \ No newline at end of file diff --git a/docs/models/operations/stackoneliststeplogslegacyqueryparamorderdirection.md b/docs/models/operations/stackoneliststeplogslegacyqueryparamorderdirection.md deleted file mode 100644 index 9e69f813d..000000000 --- a/docs/models/operations/stackoneliststeplogslegacyqueryparamorderdirection.md +++ /dev/null @@ -1,19 +0,0 @@ -# StackoneListStepLogsLegacyQueryParamOrderDirection - -The direction to order the results by. - -## Example Usage - -```ruby -require "stackone_client" - -value = StackoneListStepLogsLegacyQueryParamOrderDirection::ASC -``` - - -## Values - -| Name | Value | -| ------ | ------ | -| `ASC` | asc | -| `DESC` | desc | \ No newline at end of file diff --git a/docs/models/operations/stackoneliststeplogslegacyrequest.md b/docs/models/operations/stackoneliststeplogslegacyrequest.md deleted file mode 100644 index bfaf5cf40..000000000 --- a/docs/models/operations/stackoneliststeplogslegacyrequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# StackoneListStepLogsLegacyRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `filter` | [T.nilable(Models::Operations::StackoneListStepLogsLegacyQueryParamFilter)](../../models/operations/stackoneliststeplogslegacyqueryparamfilter.md) | :heavy_minus_sign: | Filter parameters that allow greater customisation of the list response | | -| `next_` | *T.nilable(::String)* | :heavy_minus_sign: | The unified cursor | | -| `order_by` | [T.nilable(Models::Operations::StackoneListStepLogsLegacyQueryParamOrderBy)](../../models/operations/stackoneliststeplogslegacyqueryparamorderby.md) | :heavy_minus_sign: | The field to order the results by. | created_at | -| `order_direction` | [T.nilable(Models::Operations::StackoneListStepLogsLegacyQueryParamOrderDirection)](../../models/operations/stackoneliststeplogslegacyqueryparamorderdirection.md) | :heavy_minus_sign: | The direction to order the results by. | asc | -| `page_size` | *T.nilable(::Float)* | :heavy_minus_sign: | The number of results per page (default value is 25) | | \ No newline at end of file diff --git a/docs/models/operations/stackoneliststeplogslegacyresponse.md b/docs/models/operations/stackoneliststeplogslegacyresponse.md deleted file mode 100644 index c050640cd..000000000 --- a/docs/models/operations/stackoneliststeplogslegacyresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# StackoneListStepLogsLegacyResponse - - -## 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 | -| `step_logs_paginated_legacy` | [T.nilable(Models::Shared::StepLogsPaginatedLegacy)](../../models/shared/steplogspaginatedlegacy.md) | :heavy_minus_sign: | The list of step logs was retrieved. | \ 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/actionlog.md b/docs/models/shared/actionlog.md index 4c7cc5bc9..42502fd6b 100644 --- a/docs/models/shared/actionlog.md +++ b/docs/models/shared/actionlog.md @@ -3,42 +3,43 @@ ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -| `account_id` | *T.nilable(::String)* | :heavy_minus_sign: | The account ID | 45355976281015164504 | -| `action_id` | *T.nilable(::String)* | :heavy_minus_sign: | The action ID | get_employees | -| `action_run_id` | *::String* | :heavy_check_mark: | The action run ID | adbf752f-6457-4ddd-89b3-98ae2252b83b | -| `action_type` | *T.nilable(::String)* | :heavy_minus_sign: | The action type | sync | -| `agent_id` | *T.nilable(::String)* | :heavy_minus_sign: | The agent ID | agent-123 | -| `auth_id` | *T.nilable(::String)* | :heavy_minus_sign: | The authentication ID | auth-123 | -| `auth_type` | *T.nilable(::String)* | :heavy_minus_sign: | The authentication type | API_KEY | -| `category` | *T.nilable(::String)* | :heavy_minus_sign: | The category | hris | -| `connector_key` | *T.nilable(::String)* | :heavy_minus_sign: | The connector key | workday | -| `connector_owner` | *T.nilable(::String)* | :heavy_minus_sign: | The connector owner | stackone | -| `connector_profile_id` | *T.nilable(::String)* | :heavy_minus_sign: | The connector profile ID | profile-123 | -| `connector_version` | *T.nilable(::String)* | :heavy_minus_sign: | The connector version | 1.0.0 | -| `duration_ms` | *T.nilable(::Float)* | :heavy_minus_sign: | The duration in milliseconds | 356 | -| `end_time` | [Date](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/Date.html) | :heavy_minus_sign: | The request end time ISO8601 date string | 2021-01-01T00:00:00Z | -| `event_time` | [Date](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/Date.html) | :heavy_minus_sign: | The event ISO8601 date string | 2021-01-01T00:00:00Z | -| `http_method` | *T.nilable(::String)* | :heavy_minus_sign: | The HTTP method | GET | -| `ip_address` | *T.nilable(::String)* | :heavy_minus_sign: | The IP address | 192.168.1.1 | -| `is_background` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Whether this is a background request | false | -| `log_id` | *::String* | :heavy_check_mark: | The unique log identifier | adbf752f-6457-4ddd-89b3-98ae2252b83b | -| `log_type` | [Models::Shared::LogType](../../models/shared/logtype.md) | :heavy_check_mark: | The type of log | action | -| `mode` | *T.nilable(::String)* | :heavy_minus_sign: | The mode | production | -| `origin_owner_id` | *T.nilable(::String)* | :heavy_minus_sign: | The origin owner ID | owner-123 | -| `origin_owner_name` | *T.nilable(::String)* | :heavy_minus_sign: | The origin owner name | Test Owner | -| `project_id` | *T.nilable(::String)* | :heavy_minus_sign: | The project ID | dev-project-68574 | -| `risk_level` | *T.nilable(::String)* | :heavy_minus_sign: | The risk level from Defender | low | -| `session_id` | *T.nilable(::String)* | :heavy_minus_sign: | The session ID | session-123 | -| `source_id` | *T.nilable(::String)* | :heavy_minus_sign: | The source ID | 1234567890 | -| `source_type` | *T.nilable(::String)* | :heavy_minus_sign: | The source type | DASHBOARD | -| `source_value` | *T.nilable(::String)* | :heavy_minus_sign: | The source value | ACCOUNT_TESTER | -| `start_time` | [Date](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/Date.html) | :heavy_minus_sign: | The request start time ISO8601 date string | 2021-01-01T00:00:00Z | -| `status_code` | *T.nilable(::Float)* | :heavy_minus_sign: | The HTTP status code | 200 | -| `stream_type` | *T.nilable(::String)* | :heavy_minus_sign: | The stream type | HTTP | -| `success` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | The success flag | true | -| `tier2_score` | *T.nilable(::Float)* | :heavy_minus_sign: | The tier 2 score from Defender | 0.5 | -| `transport_type` | *T.nilable(::String)* | :heavy_minus_sign: | The transport type | HTTP | -| `url` | *T.nilable(::String)* | :heavy_minus_sign: | The request URL | https://api.stackone.com/unified/hris/employees | -| `user_agent` | *T.nilable(::String)* | :heavy_minus_sign: | The user agent | Mozilla/5.0 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `account_id` | *T.nilable(::String)* | :heavy_minus_sign: | The account ID | 45355976281015164504 | +| `action_id` | *T.nilable(::String)* | :heavy_minus_sign: | The action ID | get_employees | +| `action_run_id` | *::String* | :heavy_check_mark: | The action run ID | adbf752f-6457-4ddd-89b3-98ae2252b83b | +| `action_type` | *T.nilable(::String)* | :heavy_minus_sign: | The action type | sync | +| `agent_id` | *T.nilable(::String)* | :heavy_minus_sign: | The agent ID | agent-123 | +| `auth_id` | *T.nilable(::String)* | :heavy_minus_sign: | The authentication ID | auth-123 | +| `auth_type` | *T.nilable(::String)* | :heavy_minus_sign: | The authentication type | API_KEY | +| `category` | *T.nilable(::String)* | :heavy_minus_sign: | The category | hris | +| `connector` | [T.nilable(Models::Shared::Connector)](../../models/shared/connector.md) | :heavy_minus_sign: | The connector display data — name, logo and categories. Only present when requested via `?expand=connector`; `connector_key`, `connector_version` and `connector_owner` are always returned regardless. | | +| `connector_key` | *T.nilable(::String)* | :heavy_minus_sign: | The connector key | workday | +| `connector_owner` | *T.nilable(::String)* | :heavy_minus_sign: | The connector owner | stackone | +| `connector_profile_id` | *T.nilable(::String)* | :heavy_minus_sign: | The connector profile ID | profile-123 | +| `connector_version` | *T.nilable(::String)* | :heavy_minus_sign: | The connector version | 1.0.0 | +| `duration_ms` | *T.nilable(::Float)* | :heavy_minus_sign: | The duration in milliseconds | 356 | +| `end_time` | [Date](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/Date.html) | :heavy_minus_sign: | The request end time ISO8601 date string | 2021-01-01T00:00:00Z | +| `event_time` | [Date](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/Date.html) | :heavy_minus_sign: | The event ISO8601 date string | 2021-01-01T00:00:00Z | +| `http_method` | *T.nilable(::String)* | :heavy_minus_sign: | The HTTP method | GET | +| `ip_address` | *T.nilable(::String)* | :heavy_minus_sign: | The IP address | 192.168.1.1 | +| `is_background` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Whether this is a background request | false | +| `log_id` | *::String* | :heavy_check_mark: | The unique log identifier | adbf752f-6457-4ddd-89b3-98ae2252b83b | +| `log_type` | [Models::Shared::LogType](../../models/shared/logtype.md) | :heavy_check_mark: | The type of log | action | +| `mode` | *T.nilable(::String)* | :heavy_minus_sign: | The mode | production | +| `origin_owner_id` | *T.nilable(::String)* | :heavy_minus_sign: | The origin owner ID | owner-123 | +| `origin_owner_name` | *T.nilable(::String)* | :heavy_minus_sign: | The origin owner name | Test Owner | +| `project_id` | *T.nilable(::String)* | :heavy_minus_sign: | The project ID | dev-project-68574 | +| `risk_level` | *T.nilable(::String)* | :heavy_minus_sign: | The risk level from Defender | low | +| `session_id` | *T.nilable(::String)* | :heavy_minus_sign: | The session ID | session-123 | +| `source_id` | *T.nilable(::String)* | :heavy_minus_sign: | The source ID | 1234567890 | +| `source_type` | *T.nilable(::String)* | :heavy_minus_sign: | The source type | DASHBOARD | +| `source_value` | *T.nilable(::String)* | :heavy_minus_sign: | The source value | ACCOUNT_TESTER | +| `start_time` | [Date](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/Date.html) | :heavy_minus_sign: | The request start time ISO8601 date string | 2021-01-01T00:00:00Z | +| `status_code` | *T.nilable(::Float)* | :heavy_minus_sign: | The HTTP status code | 200 | +| `stream_type` | *T.nilable(::String)* | :heavy_minus_sign: | The stream type | HTTP | +| `success` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | The success flag | true | +| `tier2_score` | *T.nilable(::Float)* | :heavy_minus_sign: | The tier 2 score from Defender | 0.5 | +| `transport_type` | *T.nilable(::String)* | :heavy_minus_sign: | The transport type | HTTP | +| `url` | *T.nilable(::String)* | :heavy_minus_sign: | The request URL | https://api.stackone.com/unified/hris/employees | +| `user_agent` | *T.nilable(::String)* | :heavy_minus_sign: | The user agent | Mozilla/5.0 | \ No newline at end of file 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/actionsearchresultdto.md b/docs/models/shared/actionsearchresultdto.md index c964a35ca..c4bd7e2a2 100644 --- a/docs/models/shared/actionsearchresultdto.md +++ b/docs/models/shared/actionsearchresultdto.md @@ -6,4 +6,6 @@ | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | | `id` | *::String* | :heavy_check_mark: | Action identifier in Lambda format: {connector}_{version}_{connector}_{action}_{scope} | slack_1.0.0_slack_send_message_global | -| `similarity_score` | *::Float* | :heavy_check_mark: | Cosine similarity score (0-1) | | \ No newline at end of file +| `prerequisite_actions` | T::Array<*::String*> | :heavy_minus_sign: | Prerequisite action IDs that should be run first to obtain IDs this action needs | | +| `similarity_score` | *::Float* | :heavy_check_mark: | Cosine similarity score (0-1) | | +| `tool_name` | *T.nilable(::String)* | :heavy_minus_sign: | Human-readable tool name | | \ No newline at end of file diff --git a/docs/models/shared/actionsrpcsyncedrequestdto.md b/docs/models/shared/actionsrpcsyncedrequestdto.md index bb3c3a097..94119b544 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. Naming one that no longer exists is rejected with a `400`. | 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/connector.md b/docs/models/shared/connector.md new file mode 100644 index 000000000..d16fcbf78 --- /dev/null +++ b/docs/models/shared/connector.md @@ -0,0 +1,15 @@ +# Connector + +The connector display data — name, logo and categories. Only present when requested via `?expand=connector`; `connector_key`, `connector_version` and `connector_owner` are always returned regardless. + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | +| `categories` | T::Array<*::String*> | :heavy_check_mark: | The connector categories | [
"hris"
] | +| `key` | *::String* | :heavy_check_mark: | The connector key | workday | +| `logo_url` | *::String* | :heavy_check_mark: | The connector logo. Falls back to a placeholder when none is declared. | https://app.stackone.com/logos/workday.png | +| `name` | *T.nilable(::String)* | :heavy_check_mark: | The connector display name. `null` when the connector is unknown. | Workday | +| `owner` | *::String* | :heavy_check_mark: | The connector owner. Defaults to the global `stackone` owner. | stackone | +| `version` | *T.nilable(::String)* | :heavy_check_mark: | The connector version the log was served by | 1.0.0 | \ No newline at end of file diff --git a/docs/models/shared/connectsessioncreate.md b/docs/models/shared/connectsessioncreate.md index b3b76914b..d8e1646bf 100644 --- a/docs/models/shared/connectsessioncreate.md +++ b/docs/models/shared/connectsessioncreate.md @@ -3,19 +3,19 @@ ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `account_id` | *T.nilable(::String)* | :heavy_minus_sign: | The unique identifier for the account associated with this connect session. When this field is present, the hub will launch in edit mode using the retrieved token. | | -| `categories` | T::Array<[Models::Shared::ConnectSessionCreateCategories](../../models/shared/connectsessioncreatecategories.md)> | :heavy_minus_sign: | The categories of the provider to connect to | [
"ats",
"hris",
"hrisLegacy",
"crm",
"iam",
"marketing",
"lms",
"stackOne",
"documents",
"ticketing",
"screening",
"messaging",
"accounting",
"scheduling"
] | -| `connector_profile_id` | *T.nilable(::String)* | :heavy_minus_sign: | The ID of the connector profile to use for this connect session. Use this to route to a non-default connector profile — for example when you have multiple profiles for the same provider, or when migrating end users to a new connector major version. Retrieve the ID from GET /connector_profiles. When omitted, the session uses the project default connector profile for the given provider. | | -| `expires_in` | *T.nilable(::Float)* | :heavy_minus_sign: | How long the session should be valid for in seconds | | -| ~~`integration_id`~~ | *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.

Deprecated: use `connector_profile_id` instead. The ID of the auth config to use for this connect session. Use this to route to a non-default auth config — for example when you have multiple configs for the same provider, or when migrating end users to a new connector major version. Retrieve the ID from GET /auth_configs. When omitted, the session uses the project default auth config for the given provider. | | -| `label` | *T.nilable(::String)* | :heavy_minus_sign: | The label to be applied to the account associated with this connect session. | | -| `metadata` | [T.nilable(Models::Shared::ConnectSessionCreateMetadata)](../../models/shared/connectsessioncreatemetadata.md) | :heavy_minus_sign: | The metadata for the connection | | -| `multiple` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | If set, this connect session will allow creation of multiple accounts with the same origin owner id and provider. Has no effect if account_id is set. | | -| `origin_owner_id` | *::String* | :heavy_check_mark: | The unique identifier for the organization in your system (e.g. your customer's org ID). Combined with origin_owner_name and provider, this determines whether a new linked account is created or an existing one is updated. | | -| `origin_owner_name` | *::String* | :heavy_check_mark: | A human-readable name for the organization. Stored against the linked account in StackOne for identification purposes. | | -| `origin_username` | *T.nilable(::String)* | :heavy_minus_sign: | The origin username | | -| `provider` | *T.nilable(::String)* | :heavy_minus_sign: | The provider key to connect to (e.g. "salesforce", "bamboohr"). When provided, the hub opens directly at the credential entry step for this provider using the project default auth config. Omit to show the full provider selection screen. To use a non-default auth config, use integration_id instead. | | -| ~~`provider_version`~~ | *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.

Deprecated. provider_version no longer determines which connector version is used for the session and can cause session creation to fail. Omit this field — passing provider alone will create a session using the default auth config. To target a specific auth config, use integration_id. | | -| `type` | [T.nilable(Models::Shared::ConnectSessionCreateType)](../../models/shared/connectsessioncreatetype.md) | :heavy_minus_sign: | The connect session account type | [
"PRODUCTION",
"TEST"
] | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `account_id` | *T.nilable(::String)* | :heavy_minus_sign: | The unique identifier for the account associated with this connect session. When this field is present, the hub will launch in edit mode using the retrieved token. | | +| `categories` | T::Array<[Models::Shared::ConnectSessionCreateCategories](../../models/shared/connectsessioncreatecategories.md)> | :heavy_minus_sign: | The categories of the provider to connect to | [
"ats",
"hris",
"hrisLegacy",
"crm",
"iam",
"marketing",
"lms",
"stackOne",
"documents",
"ticketing",
"screening",
"messaging",
"accounting",
"scheduling"
] | +| `connector_profile_id` | *T.nilable(::String)* | :heavy_minus_sign: | The ID of the connector profile to use for this connect session. Use this to route to a non-default connector profile — for example when you have multiple profiles for the same provider, or when migrating end users to a new connector major version. Retrieve the ID from GET /connector_profiles. When omitted, the session binds to the project default connector profile when the caller may use it, otherwise to another connector profile for the provider that the caller may use. | | +| `expires_in` | *T.nilable(::Float)* | :heavy_minus_sign: | How long the session should be valid for in seconds | | +| ~~`integration_id`~~ | *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.

Deprecated: use `connector_profile_id` instead (this is an alias for it). The ID of the connector profile to use for this connect session. Use this to route to a non-default connector profile — for example when you have multiple profiles for the same provider, or when migrating end users to a new connector major version. Retrieve the ID from GET /connector_profiles. When omitted, the session binds to the project default connector profile when the caller may use it, otherwise to another connector profile for the provider that the caller may use. | | +| `label` | *T.nilable(::String)* | :heavy_minus_sign: | The label to be applied to the account associated with this connect session. | | +| `metadata` | [T.nilable(Models::Shared::ConnectSessionCreateMetadata)](../../models/shared/connectsessioncreatemetadata.md) | :heavy_minus_sign: | The metadata for the connection | | +| `multiple` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | If set, this connect session will allow creation of multiple accounts with the same origin owner id and provider. Has no effect if account_id is set. | | +| `origin_owner_id` | *::String* | :heavy_check_mark: | The unique identifier for the organization in your system (e.g. your customer's org ID). Combined with origin_owner_name and provider, this determines whether a new linked account is created or an existing one is updated. | | +| `origin_owner_name` | *::String* | :heavy_check_mark: | A human-readable name for the organization. Stored against the linked account in StackOne for identification purposes. | | +| `origin_username` | *T.nilable(::String)* | :heavy_minus_sign: | The origin username | | +| `provider` | *T.nilable(::String)* | :heavy_minus_sign: | The provider key to connect to (e.g. "salesforce", "bamboohr"). When provided, the hub opens directly at the credential entry step for this provider. The session binds to the project default connector profile when the caller may use it, otherwise to another connector profile for the provider that the caller may use; if none is usable the request is refused. Omit to show the full provider selection screen. To target a specific connector profile, use connector_profile_id instead. | | +| ~~`provider_version`~~ | *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.

Deprecated. When supplied, provider_version restricts binding to connector profiles of that version, so a version with no usable profile causes session creation to fail. Omit it to bind the default connector profile (or another the caller may use). To target a specific connector profile, use connector_profile_id. | | +| `type` | [T.nilable(Models::Shared::ConnectSessionCreateType)](../../models/shared/connectsessioncreatetype.md) | :heavy_minus_sign: | The connect session account type | [
"PRODUCTION",
"TEST"
] | \ No newline at end of file diff --git a/docs/models/shared/custommappingerror.md b/docs/models/shared/custommappingerror.md deleted file mode 100644 index e1556ae08..000000000 --- a/docs/models/shared/custommappingerror.md +++ /dev/null @@ -1,10 +0,0 @@ -# CustomMappingError - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | -| `id` | *T.nilable(::String)* | :heavy_minus_sign: | The custom mapping identifier | adbf752f-6457-4ddd-89b3-98ae2252b83b | -| `message` | *T.nilable(::String)* | :heavy_minus_sign: | The error message | Invalid value | -| `target_field` | *T.nilable(::String)* | :heavy_minus_sign: | The target field where the error occurred | first_name | \ 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/models/shared/intervaltype.md b/docs/models/shared/intervaltype.md index 138305794..04e24f2a8 100644 --- a/docs/models/shared/intervaltype.md +++ b/docs/models/shared/intervaltype.md @@ -22,4 +22,5 @@ custom = IntervalType.deserialize("custom_value") | `HOUR` | hour | | `DAY` | day | | `WEEK` | week | -| `MONTH` | month | \ No newline at end of file +| `MONTH` | month | +| `NONE` | none | \ No newline at end of file diff --git a/docs/models/shared/logsdimensions.md b/docs/models/shared/logsdimensions.md new file mode 100644 index 000000000..208696b9d --- /dev/null +++ b/docs/models/shared/logsdimensions.md @@ -0,0 +1,8 @@ +# LogsDimensions + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | +| `data` | T::Hash[Symbol, T::Array<[Models::Shared::LogsDimensionValue](../../models/shared/logsdimensionvalue.md)>] | :heavy_check_mark: | The distinct values for each requested dimension, keyed by dimension name | {
"connector_key": [
{
"value": "workday",
"count": 800,
"label": "Workday"
}
],
"success": [
{
"value": "true",
"count": 1500
}
]
} | \ No newline at end of file diff --git a/docs/models/shared/logsdimensionvalue.md b/docs/models/shared/logsdimensionvalue.md new file mode 100644 index 000000000..e135ed396 --- /dev/null +++ b/docs/models/shared/logsdimensionvalue.md @@ -0,0 +1,10 @@ +# LogsDimensionValue + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `count` | *::Float* | :heavy_check_mark: | The number of logs carrying this value | 800 | +| `label` | *T.nilable(::String)* | :heavy_minus_sign: | A human-readable label for the value. Currently only resolved for the `connector_key` dimension, where it is the connector display name (falling back to the key itself when the connector is unknown). Absent for every other dimension. | Workday | +| `value` | *::String* | :heavy_check_mark: | The dimension value | workday | \ No newline at end of file diff --git a/docs/models/shared/platformlog.md b/docs/models/shared/platformlog.md new file mode 100644 index 000000000..643646a75 --- /dev/null +++ b/docs/models/shared/platformlog.md @@ -0,0 +1,45 @@ +# PlatformLog + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `account_id` | *T.nilable(::String)* | :heavy_minus_sign: | The account ID | 45355976281015164504 | +| `action` | *T.nilable(::String)* | :heavy_minus_sign: | The verb, without its resource prefix | create | +| `agent_id` | *T.nilable(::String)* | :heavy_minus_sign: | The agent ID | agent-123 | +| `auth_id` | *T.nilable(::String)* | :heavy_minus_sign: | The authentication ID | auth-123 | +| `auth_type` | *T.nilable(::String)* | :heavy_minus_sign: | The authentication type | API_KEY | +| `connector` | [T.nilable(Models::Shared::PlatformLogConnector)](../../models/shared/platformlogconnector.md) | :heavy_minus_sign: | The connector display data — name, logo and categories. Only present when requested via `?expand=connector`; `connector_key`, `connector_version` and `connector_owner` are always returned regardless. | | +| `connector_key` | *T.nilable(::String)* | :heavy_minus_sign: | The connector key | workday | +| `connector_owner` | *T.nilable(::String)* | :heavy_minus_sign: | The connector owner | stackone | +| `connector_version` | *T.nilable(::String)* | :heavy_minus_sign: | The connector version | 1.0.0 | +| `details` | *T.nilable(::String)* | :heavy_minus_sign: | Everything about the event with no column of its own — the HTTP method, path, status code and originating request id, plus the route category and resource. Not filterable; use `event_type` and `action` for that. | | +| `duration_ms` | *T.nilable(::Float)* | :heavy_minus_sign: | The duration in milliseconds | 356 | +| `end_time` | [Date](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/Date.html) | :heavy_minus_sign: | The request end time ISO8601 date string | 2021-01-01T00:00:00Z | +| `event_id` | *::String* | :heavy_check_mark: | The unique identifier for this event | adbf752f-6457-4ddd-89b3-98ae2252b83b | +| `event_time` | [Date](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/Date.html) | :heavy_minus_sign: | The event ISO8601 date string | 2021-01-01T00:00:00Z | +| `event_type` | *::String* | :heavy_check_mark: | What happened, as `_` | account_create | +| `http_method` | *T.nilable(::String)* | :heavy_minus_sign: | The HTTP method | GET | +| `ip_address` | *T.nilable(::String)* | :heavy_minus_sign: | The IP address | 192.168.1.1 | +| `is_background` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Whether this is a background request | false | +| `log_id` | *::String* | :heavy_check_mark: | The unique log identifier | adbf752f-6457-4ddd-89b3-98ae2252b83b | +| `log_type` | [Models::Shared::PlatformLogLogType](../../models/shared/platformloglogtype.md) | :heavy_check_mark: | The type of log | platform | +| `mode` | *T.nilable(::String)* | :heavy_minus_sign: | The mode | production | +| `origin_owner_id` | *T.nilable(::String)* | :heavy_minus_sign: | The origin owner ID | owner-123 | +| `origin_owner_name` | *T.nilable(::String)* | :heavy_minus_sign: | The origin owner name | Test Owner | +| `project_id` | *T.nilable(::String)* | :heavy_minus_sign: | The project ID | dev-project-68574 | +| `service` | *::String* | :heavy_check_mark: | The service that emitted the event | unified-api | +| `session_id` | *T.nilable(::String)* | :heavy_minus_sign: | The session ID | session-123 | +| `source_id` | *T.nilable(::String)* | :heavy_minus_sign: | The source ID | 1234567890 | +| `source_type` | *T.nilable(::String)* | :heavy_minus_sign: | The source type | DASHBOARD | +| `source_value` | *T.nilable(::String)* | :heavy_minus_sign: | The source value | ACCOUNT_TESTER | +| `start_time` | [Date](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/Date.html) | :heavy_minus_sign: | The request start time ISO8601 date string | 2021-01-01T00:00:00Z | +| `status_code` | *T.nilable(::Float)* | :heavy_minus_sign: | The HTTP status code | 200 | +| `stream_type` | *T.nilable(::String)* | :heavy_minus_sign: | The stream type | HTTP | +| `sub_action` | *T.nilable(::String)* | :heavy_minus_sign: | A narrower qualifier on the action, where one applies | | +| `success` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | The success flag | true | +| `transport_type` | *T.nilable(::String)* | :heavy_minus_sign: | The transport type | HTTP | +| `url` | *T.nilable(::String)* | :heavy_minus_sign: | The request URL | https://api.stackone.com/unified/hris/employees | +| `user_agent` | *T.nilable(::String)* | :heavy_minus_sign: | The user agent | Mozilla/5.0 | +| `user_id` | *T.nilable(::String)* | :heavy_minus_sign: | The user the operation is attributed to. Caller-asserted rather than authenticated. | | \ No newline at end of file diff --git a/docs/models/shared/platformlogconnector.md b/docs/models/shared/platformlogconnector.md new file mode 100644 index 000000000..5172938fd --- /dev/null +++ b/docs/models/shared/platformlogconnector.md @@ -0,0 +1,15 @@ +# PlatformLogConnector + +The connector display data — name, logo and categories. Only present when requested via `?expand=connector`; `connector_key`, `connector_version` and `connector_owner` are always returned regardless. + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | +| `categories` | T::Array<*::String*> | :heavy_check_mark: | The connector categories | [
"hris"
] | +| `key` | *::String* | :heavy_check_mark: | The connector key | workday | +| `logo_url` | *::String* | :heavy_check_mark: | The connector logo. Falls back to a placeholder when none is declared. | https://app.stackone.com/logos/workday.png | +| `name` | *T.nilable(::String)* | :heavy_check_mark: | The connector display name. `null` when the connector is unknown. | Workday | +| `owner` | *::String* | :heavy_check_mark: | The connector owner. Defaults to the global `stackone` owner. | stackone | +| `version` | *T.nilable(::String)* | :heavy_check_mark: | The connector version the log was served by | 1.0.0 | \ No newline at end of file diff --git a/docs/models/shared/platformloglegacy.md b/docs/models/shared/platformloglegacy.md deleted file mode 100644 index 402fed48a..000000000 --- a/docs/models/shared/platformloglegacy.md +++ /dev/null @@ -1,28 +0,0 @@ -# PlatformLogLegacy - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -| `account_id` | *T.nilable(::String)* | :heavy_minus_sign: | The account ID of the request | 45355976281015164504 | -| `action` | *T.nilable(::String)* | :heavy_minus_sign: | The requested action | download | -| `category` | *T.nilable(::String)* | :heavy_minus_sign: | The requested category | hris | -| `child_resource` | *T.nilable(::String)* | :heavy_minus_sign: | The requested child resource | time-off | -| `duration` | *T.nilable(::Float)* | :heavy_minus_sign: | The request duration in milliseconds | 356 | -| `end_time` | [Date](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/Date.html) | :heavy_minus_sign: | The request end time ISO8601 date string | 2021-01-01T00:00:00Z | -| `event_datetime` | [Date](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/Date.html) | :heavy_minus_sign: | The event ISO8601 date string | 2021-01-01T00:00:00Z | -| `http_method` | *T.nilable(::String)* | :heavy_minus_sign: | The requested HTTP method | get | -| `path` | *T.nilable(::String)* | :heavy_minus_sign: | The requested path | /unified/hris/employees | -| `project_id` | *T.nilable(::String)* | :heavy_minus_sign: | The project ID of the request | dev-project-68574 | -| `request_id` | *T.nilable(::String)* | :heavy_minus_sign: | The request ID | adbf752f-6457-4ddd-89b3-98ae2252b83b | -| `resource` | *T.nilable(::String)* | :heavy_minus_sign: | The requested resource | employees | -| `source_id` | *T.nilable(::String)* | :heavy_minus_sign: | The requests source ID | 1234567890 | -| `source_ip` | *T.nilable(::String)* | :heavy_minus_sign: | The requests source IPV4 ip address | 192.168.1.1 | -| `source_type` | *T.nilable(::String)* | :heavy_minus_sign: | The requests source type | DASHBOARD | -| `source_value` | *T.nilable(::String)* | :heavy_minus_sign: | The requests source value | ACCOUNT_TESTER | -| `start_time` | [Date](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/Date.html) | :heavy_minus_sign: | The request start time ISO8601 date string | 2021-01-01T00:00:00Z | -| `status` | *T.nilable(::Float)* | :heavy_minus_sign: | The requests response status code | 200 | -| `sub_resource` | *T.nilable(::String)* | :heavy_minus_sign: | The requested sub resource | documents | -| `success` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | The request success flag | true | -| `url` | *T.nilable(::String)* | :heavy_minus_sign: | The requested URL | https://api.stackone.com/unified/hris/employees?raw=false | \ No newline at end of file diff --git a/docs/models/shared/platformloglogtype.md b/docs/models/shared/platformloglogtype.md new file mode 100644 index 000000000..09c598e16 --- /dev/null +++ b/docs/models/shared/platformloglogtype.md @@ -0,0 +1,21 @@ +# PlatformLogLogType + +The type of log + +## Example Usage + +```ruby +require "stackone_client" + +value = PlatformLogLogType::PLATFORM + +# Open enum: use .deserialize() to create instances from custom string values +custom = PlatformLogLogType.deserialize("custom_value") +``` + + +## Values + +| Name | Value | +| ---------- | ---------- | +| `PLATFORM` | platform | \ No newline at end of file diff --git a/docs/models/shared/platformlogspaginated.md b/docs/models/shared/platformlogspaginated.md new file mode 100644 index 000000000..b0f68322e --- /dev/null +++ b/docs/models/shared/platformlogspaginated.md @@ -0,0 +1,11 @@ +# PlatformLogsPaginated + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `data` | T::Array<[Models::Shared::PlatformLog](../../models/shared/platformlog.md)> | :heavy_check_mark: | The list of platform logs | | +| `page` | *::Float* | :heavy_check_mark: | The page number returned | 1 | +| `page_size` | *::Float* | :heavy_check_mark: | The number of results per page | 25 | +| `total` | *::Float* | :heavy_check_mark: | Total number of logs matching the filters | 100 | \ No newline at end of file diff --git a/docs/models/shared/platformlogspaginatedlegacy.md b/docs/models/shared/platformlogspaginatedlegacy.md deleted file mode 100644 index cf5cf4692..000000000 --- a/docs/models/shared/platformlogspaginatedlegacy.md +++ /dev/null @@ -1,9 +0,0 @@ -# PlatformLogsPaginatedLegacy - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | -| `data` | T::Array<[Models::Shared::PlatformLogLegacy](../../models/shared/platformloglegacy.md)> | :heavy_check_mark: | N/A | -| `next_` | *T.nilable(::String)* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/platformlogspostdto.md b/docs/models/shared/platformlogspostdto.md new file mode 100644 index 000000000..70810b31d --- /dev/null +++ b/docs/models/shared/platformlogspostdto.md @@ -0,0 +1,10 @@ +# PlatformLogsPostDto + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | +| `filters` | [T.nilable(Models::Shared::PlatformLogsPostDtoFilters)](../../models/shared/platformlogspostdtofilters.md) | :heavy_minus_sign: | The filters to apply to the results | | +| `page` | *T.nilable(::Float)* | :heavy_minus_sign: | The page number of the results to return | 1 | +| `page_size` | *T.nilable(::Float)* | :heavy_minus_sign: | The number of results per page | 25 | \ No newline at end of file diff --git a/docs/models/shared/platformlogspostdtofilters.md b/docs/models/shared/platformlogspostdtofilters.md new file mode 100644 index 000000000..abc2e69cc --- /dev/null +++ b/docs/models/shared/platformlogspostdtofilters.md @@ -0,0 +1,27 @@ +# PlatformLogsPostDtoFilters + +The filters to apply to the results + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | +| `account_secure_id` | T::Array<*::String*> | :heavy_minus_sign: | Filter by account IDs | [
"45355976281015164504"
] | +| `action` | T::Array<*::String*> | :heavy_minus_sign: | Filter by the verb, independent of the resource it acted on | [
"create",
"delete"
] | +| `agent_id` | T::Array<*::String*> | :heavy_minus_sign: | Filter by agent ID | | +| `auth_id` | T::Array<*::String*> | :heavy_minus_sign: | Filter by the identifier of the credential used | | +| `auth_type` | T::Array<*::String*> | :heavy_minus_sign: | Filter by the credential type the caller authenticated with | | +| `end_time` | *T.nilable(::String)* | :heavy_minus_sign: | The end of the time range to filter by (ISO 8601 timestamp) | 2025-01-31T23:59:59.999Z | +| `event_id` | T::Array<*::String*> | :heavy_minus_sign: | Filter by event IDs | | +| `event_type` | T::Array<*::String*> | :heavy_minus_sign: | Filter by event types. Each is `_`, so pass the set for a resource to see everything that happened to it. | [
"account_create",
"account_delete"
] | +| `ip_address` | T::Array<*::String*> | :heavy_minus_sign: | Filter by the IP the operation came from | | +| `order_by` | [T.nilable(Models::Shared::PlatformLogsPostDtoOrderBy)](../../models/shared/platformlogspostdtoorderby.md) | :heavy_minus_sign: | The field to order the results by | | +| `order_direction` | [T.nilable(Models::Shared::PlatformLogsPostDtoOrderDirection)](../../models/shared/platformlogspostdtoorderdirection.md) | :heavy_minus_sign: | The direction to order the results by | | +| `session_id` | T::Array<*::String*> | :heavy_minus_sign: | Filter by session ID | | +| `source_id` | T::Array<*::String*> | :heavy_minus_sign: | Filter by source ID | | +| `source_type` | T::Array<*::String*> | :heavy_minus_sign: | Filter by source type | | +| `start_time` | *T.nilable(::String)* | :heavy_minus_sign: | The start of the time range to filter by (ISO 8601 timestamp) | 2025-01-01T00:00:00.000Z | +| `success` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Filter by success status | true | +| `transport_type` | T::Array<*::String*> | :heavy_minus_sign: | Filter by transport type | | +| `user_id` | T::Array<*::String*> | :heavy_minus_sign: | Filter by the user the operation is attributed to | | \ No newline at end of file diff --git a/docs/models/shared/platformlogspostdtoorderby.md b/docs/models/shared/platformlogspostdtoorderby.md new file mode 100644 index 000000000..50e14e84a --- /dev/null +++ b/docs/models/shared/platformlogspostdtoorderby.md @@ -0,0 +1,24 @@ +# PlatformLogsPostDtoOrderBy + +The field to order the results by + +## Example Usage + +```ruby +require "stackone_client" + +value = PlatformLogsPostDtoOrderBy::START_TIME + +# Open enum: use .deserialize() to create instances from custom string values +custom = PlatformLogsPostDtoOrderBy.deserialize("custom_value") +``` + + +## Values + +| Name | Value | +| ------------- | ------------- | +| `START_TIME` | start_time | +| `END_TIME` | end_time | +| `EVENT_TIME` | event_time | +| `DURATION_MS` | duration_ms | \ No newline at end of file diff --git a/docs/models/shared/platformlogspostdtoorderdirection.md b/docs/models/shared/platformlogspostdtoorderdirection.md new file mode 100644 index 000000000..016b131ca --- /dev/null +++ b/docs/models/shared/platformlogspostdtoorderdirection.md @@ -0,0 +1,22 @@ +# PlatformLogsPostDtoOrderDirection + +The direction to order the results by + +## Example Usage + +```ruby +require "stackone_client" + +value = PlatformLogsPostDtoOrderDirection::ASC + +# Open enum: use .deserialize() to create instances from custom string values +custom = PlatformLogsPostDtoOrderDirection.deserialize("custom_value") +``` + + +## Values + +| Name | Value | +| ------ | ------ | +| `ASC` | asc | +| `DESC` | desc | \ No newline at end of file diff --git a/docs/models/shared/request.md b/docs/models/shared/request.md deleted file mode 100644 index 4f984a104..000000000 --- a/docs/models/shared/request.md +++ /dev/null @@ -1,14 +0,0 @@ -# Request - -The advanced log request data - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | -| `body` | *T.nilable(::Object)* | :heavy_minus_sign: | N/A | | -| `headers` | T::Hash[Symbol, *::Object*] | :heavy_minus_sign: | N/A | {
"content-type": "application/json",
"authorization": "Bearer token"
} | -| `id` | *T.nilable(::String)* | :heavy_minus_sign: | The request ID | adbf752f-6457-4ddd-89b3-98ae2252b83b | -| `method` | *T.nilable(::String)* | :heavy_minus_sign: | The request method | get | -| `url` | [T.nilable(Models::Shared::Url)](../../models/shared/url.md) | :heavy_minus_sign: | The request URL data | | \ No newline at end of file diff --git a/docs/models/shared/steplogpartiallegacy.md b/docs/models/shared/steplogpartiallegacy.md deleted file mode 100644 index 5176e129f..000000000 --- a/docs/models/shared/steplogpartiallegacy.md +++ /dev/null @@ -1,26 +0,0 @@ -# StepLogPartialLegacy - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -| `account_id` | *T.nilable(::String)* | :heavy_minus_sign: | The account ID of the request | 45355976281015164504 | -| `action` | *T.nilable(::String)* | :heavy_minus_sign: | The requested action | download | -| `child_resource` | *T.nilable(::String)* | :heavy_minus_sign: | The requested child resource | time-off | -| `duration` | *T.nilable(::Float)* | :heavy_minus_sign: | The request duration in milliseconds | 356 | -| `end_time` | [Date](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/Date.html) | :heavy_minus_sign: | The request end time ISO8601 date string | 2021-01-01T00:00:00Z | -| `http_method` | *T.nilable(::String)* | :heavy_minus_sign: | The requested HTTP method | get | -| `id` | *T.nilable(::String)* | :heavy_minus_sign: | The provider request ID | adbf752f-6457-4ddd-89b3-98ae2252b83b | -| `is_worker` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | The asynchronous worker flag | false | -| `path` | *T.nilable(::String)* | :heavy_minus_sign: | The requested path | /unified/hris/employees | -| `project_id` | *T.nilable(::String)* | :heavy_minus_sign: | The project ID of the request | dev-project-68574 | -| `provider` | *T.nilable(::String)* | :heavy_minus_sign: | The requested provider | planday | -| `request_id` | *T.nilable(::String)* | :heavy_minus_sign: | The request ID | adbf752f-6457-4ddd-89b3-98ae2252b83b | -| `resource` | *T.nilable(::String)* | :heavy_minus_sign: | The requested resource | employees | -| `service` | *T.nilable(::String)* | :heavy_minus_sign: | The requested service | hris | -| `start_time` | [Date](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/Date.html) | :heavy_minus_sign: | The request start time ISO8601 date string | 2021-01-01T00:00:00Z | -| `status` | *T.nilable(::Float)* | :heavy_minus_sign: | The requests response status code | 200 | -| `sub_resource` | *T.nilable(::String)* | :heavy_minus_sign: | The requested sub resource | documents | -| `success` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | The request success flag | true | -| `url` | *T.nilable(::String)* | :heavy_minus_sign: | The requested URL | https://api.stackone.com/unified/hris/employees?raw=false | \ No newline at end of file diff --git a/docs/models/shared/steplogspaginatedlegacy.md b/docs/models/shared/steplogspaginatedlegacy.md deleted file mode 100644 index a5dc80bfb..000000000 --- a/docs/models/shared/steplogspaginatedlegacy.md +++ /dev/null @@ -1,9 +0,0 @@ -# StepLogsPaginatedLegacy - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `data` | T::Array<[Models::Shared::StepLogPartialLegacy](../../models/shared/steplogpartiallegacy.md)> | :heavy_check_mark: | N/A | -| `next_` | *T.nilable(::String)* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/unifiedlog.md b/docs/models/shared/unifiedlog.md index 115857517..d0c2d0a3f 100644 --- a/docs/models/shared/unifiedlog.md +++ b/docs/models/shared/unifiedlog.md @@ -3,46 +3,47 @@ ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | -| `account_id` | *T.nilable(::String)* | :heavy_minus_sign: | The account ID | 45355976281015164504 | -| `action` | *T.nilable(::String)* | :heavy_minus_sign: | The action | list | -| `agent_id` | *T.nilable(::String)* | :heavy_minus_sign: | The agent ID | agent-123 | -| `auth_id` | *T.nilable(::String)* | :heavy_minus_sign: | The authentication ID | auth-123 | -| `auth_type` | *T.nilable(::String)* | :heavy_minus_sign: | The authentication type | API_KEY | -| `child_resource` | *T.nilable(::String)* | :heavy_minus_sign: | The child resource | time-off | -| `connector_key` | *T.nilable(::String)* | :heavy_minus_sign: | The connector key | workday | -| `connector_owner` | *T.nilable(::String)* | :heavy_minus_sign: | The connector owner | stackone | -| `connector_version` | *T.nilable(::String)* | :heavy_minus_sign: | The connector version | 1.0.0 | -| `duration` | *T.nilable(::Float)* | :heavy_minus_sign: | The duration in milliseconds (legacy field) | 356 | -| `duration_ms` | *T.nilable(::Float)* | :heavy_minus_sign: | The duration in milliseconds | 356 | -| `end_time` | [Date](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/Date.html) | :heavy_minus_sign: | The request end time ISO8601 date string | 2021-01-01T00:00:00Z | -| `event_time` | [Date](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/Date.html) | :heavy_minus_sign: | The event ISO8601 date string | 2021-01-01T00:00:00Z | -| `http_method` | *T.nilable(::String)* | :heavy_minus_sign: | The HTTP method | GET | -| `ip_address` | *T.nilable(::String)* | :heavy_minus_sign: | The IP address | 192.168.1.1 | -| `is_background` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Whether this is a background request | false | -| `is_worker` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Whether this request was handled by a worker | false | -| `log_id` | *::String* | :heavy_check_mark: | The unique log identifier | adbf752f-6457-4ddd-89b3-98ae2252b83b | -| `log_type` | [Models::Shared::UnifiedLogLogType](../../models/shared/unifiedloglogtype.md) | :heavy_check_mark: | The type of log | unified | -| `mode` | *T.nilable(::String)* | :heavy_minus_sign: | The mode | production | -| `origin_owner_id` | *T.nilable(::String)* | :heavy_minus_sign: | The origin owner ID | owner-123 | -| `origin_owner_name` | *T.nilable(::String)* | :heavy_minus_sign: | The origin owner name | Test Owner | -| `path` | *T.nilable(::String)* | :heavy_minus_sign: | The request path | /unified/hris/employees | -| `project_id` | *T.nilable(::String)* | :heavy_minus_sign: | The project ID | dev-project-68574 | -| `provider` | *T.nilable(::String)* | :heavy_minus_sign: | The provider | workday | -| `request_id` | *::String* | :heavy_check_mark: | The request ID | adbf752f-6457-4ddd-89b3-98ae2252b83b | -| `resource` | *T.nilable(::String)* | :heavy_minus_sign: | The resource | employees | -| `service` | *T.nilable(::String)* | :heavy_minus_sign: | The service | hris | -| `session_id` | *T.nilable(::String)* | :heavy_minus_sign: | The session ID | session-123 | -| `source_id` | *T.nilable(::String)* | :heavy_minus_sign: | The source ID | 1234567890 | -| `source_type` | *T.nilable(::String)* | :heavy_minus_sign: | The source type | DASHBOARD | -| `source_value` | *T.nilable(::String)* | :heavy_minus_sign: | The source value | ACCOUNT_TESTER | -| `start_time` | [Date](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/Date.html) | :heavy_minus_sign: | The request start time ISO8601 date string | 2021-01-01T00:00:00Z | -| `status` | *T.nilable(::Float)* | :heavy_minus_sign: | The response status (legacy field) | 200 | -| `status_code` | *T.nilable(::Float)* | :heavy_minus_sign: | The HTTP status code | 200 | -| `stream_type` | *T.nilable(::String)* | :heavy_minus_sign: | The stream type | HTTP | -| `sub_resource` | *T.nilable(::String)* | :heavy_minus_sign: | The sub resource | documents | -| `success` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | The success flag | true | -| `transport_type` | *T.nilable(::String)* | :heavy_minus_sign: | The transport type | HTTP | -| `url` | *T.nilable(::String)* | :heavy_minus_sign: | The request URL | https://api.stackone.com/unified/hris/employees | -| `user_agent` | *T.nilable(::String)* | :heavy_minus_sign: | The user agent | Mozilla/5.0 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `account_id` | *T.nilable(::String)* | :heavy_minus_sign: | The account ID | 45355976281015164504 | +| `action` | *T.nilable(::String)* | :heavy_minus_sign: | The action | list | +| `agent_id` | *T.nilable(::String)* | :heavy_minus_sign: | The agent ID | agent-123 | +| `auth_id` | *T.nilable(::String)* | :heavy_minus_sign: | The authentication ID | auth-123 | +| `auth_type` | *T.nilable(::String)* | :heavy_minus_sign: | The authentication type | API_KEY | +| `child_resource` | *T.nilable(::String)* | :heavy_minus_sign: | The child resource | time-off | +| `connector` | [T.nilable(Models::Shared::UnifiedLogConnector)](../../models/shared/unifiedlogconnector.md) | :heavy_minus_sign: | The connector display data — name, logo and categories. Only present when requested via `?expand=connector`; `connector_key`, `connector_version` and `connector_owner` are always returned regardless. | | +| `connector_key` | *T.nilable(::String)* | :heavy_minus_sign: | The connector key | workday | +| `connector_owner` | *T.nilable(::String)* | :heavy_minus_sign: | The connector owner | stackone | +| `connector_version` | *T.nilable(::String)* | :heavy_minus_sign: | The connector version | 1.0.0 | +| `duration` | *T.nilable(::Float)* | :heavy_minus_sign: | The duration in milliseconds (legacy field) | 356 | +| `duration_ms` | *T.nilable(::Float)* | :heavy_minus_sign: | The duration in milliseconds | 356 | +| `end_time` | [Date](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/Date.html) | :heavy_minus_sign: | The request end time ISO8601 date string | 2021-01-01T00:00:00Z | +| `event_time` | [Date](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/Date.html) | :heavy_minus_sign: | The event ISO8601 date string | 2021-01-01T00:00:00Z | +| `http_method` | *T.nilable(::String)* | :heavy_minus_sign: | The HTTP method | GET | +| `ip_address` | *T.nilable(::String)* | :heavy_minus_sign: | The IP address | 192.168.1.1 | +| `is_background` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Whether this is a background request | false | +| `is_worker` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Whether this request was handled by a worker | false | +| `log_id` | *::String* | :heavy_check_mark: | The unique log identifier | adbf752f-6457-4ddd-89b3-98ae2252b83b | +| `log_type` | [Models::Shared::UnifiedLogLogType](../../models/shared/unifiedloglogtype.md) | :heavy_check_mark: | The type of log | unified | +| `mode` | *T.nilable(::String)* | :heavy_minus_sign: | The mode | production | +| `origin_owner_id` | *T.nilable(::String)* | :heavy_minus_sign: | The origin owner ID | owner-123 | +| `origin_owner_name` | *T.nilable(::String)* | :heavy_minus_sign: | The origin owner name | Test Owner | +| `path` | *T.nilable(::String)* | :heavy_minus_sign: | The request path | /unified/hris/employees | +| `project_id` | *T.nilable(::String)* | :heavy_minus_sign: | The project ID | dev-project-68574 | +| `provider` | *T.nilable(::String)* | :heavy_minus_sign: | The provider | workday | +| `request_id` | *::String* | :heavy_check_mark: | The request ID | adbf752f-6457-4ddd-89b3-98ae2252b83b | +| `resource` | *T.nilable(::String)* | :heavy_minus_sign: | The resource | employees | +| `service` | *T.nilable(::String)* | :heavy_minus_sign: | The service | hris | +| `session_id` | *T.nilable(::String)* | :heavy_minus_sign: | The session ID | session-123 | +| `source_id` | *T.nilable(::String)* | :heavy_minus_sign: | The source ID | 1234567890 | +| `source_type` | *T.nilable(::String)* | :heavy_minus_sign: | The source type | DASHBOARD | +| `source_value` | *T.nilable(::String)* | :heavy_minus_sign: | The source value | ACCOUNT_TESTER | +| `start_time` | [Date](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/Date.html) | :heavy_minus_sign: | The request start time ISO8601 date string | 2021-01-01T00:00:00Z | +| `status` | *T.nilable(::Float)* | :heavy_minus_sign: | The response status (legacy field) | 200 | +| `status_code` | *T.nilable(::Float)* | :heavy_minus_sign: | The HTTP status code | 200 | +| `stream_type` | *T.nilable(::String)* | :heavy_minus_sign: | The stream type | HTTP | +| `sub_resource` | *T.nilable(::String)* | :heavy_minus_sign: | The sub resource | documents | +| `success` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | The success flag | true | +| `transport_type` | *T.nilable(::String)* | :heavy_minus_sign: | The transport type | HTTP | +| `url` | *T.nilable(::String)* | :heavy_minus_sign: | The request URL | https://api.stackone.com/unified/hris/employees | +| `user_agent` | *T.nilable(::String)* | :heavy_minus_sign: | The user agent | Mozilla/5.0 | \ No newline at end of file diff --git a/docs/models/shared/unifiedlogconnector.md b/docs/models/shared/unifiedlogconnector.md new file mode 100644 index 000000000..da2557c2b --- /dev/null +++ b/docs/models/shared/unifiedlogconnector.md @@ -0,0 +1,15 @@ +# UnifiedLogConnector + +The connector display data — name, logo and categories. Only present when requested via `?expand=connector`; `connector_key`, `connector_version` and `connector_owner` are always returned regardless. + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | +| `categories` | T::Array<*::String*> | :heavy_check_mark: | The connector categories | [
"hris"
] | +| `key` | *::String* | :heavy_check_mark: | The connector key | workday | +| `logo_url` | *::String* | :heavy_check_mark: | The connector logo. Falls back to a placeholder when none is declared. | https://app.stackone.com/logos/workday.png | +| `name` | *T.nilable(::String)* | :heavy_check_mark: | The connector display name. `null` when the connector is unknown. | Workday | +| `owner` | *::String* | :heavy_check_mark: | The connector owner. Defaults to the global `stackone` owner. | stackone | +| `version` | *T.nilable(::String)* | :heavy_check_mark: | The connector version the log was served by | 1.0.0 | \ No newline at end of file diff --git a/docs/models/shared/unifiedlogresultlegacy.md b/docs/models/shared/unifiedlogresultlegacy.md deleted file mode 100644 index 432910b82..000000000 --- a/docs/models/shared/unifiedlogresultlegacy.md +++ /dev/null @@ -1,8 +0,0 @@ -# UnifiedLogResultLegacy - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | -| `data` | [Models::Shared::UnifiedLogsLegacy](../../models/shared/unifiedlogslegacy.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/unifiedlogslegacy.md b/docs/models/shared/unifiedlogslegacy.md deleted file mode 100644 index 8a87e6a9c..000000000 --- a/docs/models/shared/unifiedlogslegacy.md +++ /dev/null @@ -1,33 +0,0 @@ -# UnifiedLogsLegacy - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -| `account_id` | *T.nilable(::String)* | :heavy_minus_sign: | The account ID of the request | 45355976281015164504 | -| `action` | *T.nilable(::String)* | :heavy_minus_sign: | The requested action | download | -| `child_resource` | *T.nilable(::String)* | :heavy_minus_sign: | The requested child resource | time-off | -| `duration` | *T.nilable(::Float)* | :heavy_minus_sign: | The request duration in milliseconds | 356 | -| `end_time` | [Date](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/Date.html) | :heavy_minus_sign: | The request end time ISO8601 date string | 2021-01-01T00:00:00Z | -| `event_datetime` | [Date](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/Date.html) | :heavy_minus_sign: | The event ISO8601 date string | 2021-01-01T00:00:00Z | -| `http_method` | *T.nilable(::String)* | :heavy_minus_sign: | The requested HTTP method | get | -| `is_worker` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | The asynchronous worker flag | false | -| `path` | *T.nilable(::String)* | :heavy_minus_sign: | The requested path | /unified/hris/employees | -| `project_id` | *T.nilable(::String)* | :heavy_minus_sign: | The project ID of the request | dev-project-68574 | -| `provider` | *T.nilable(::String)* | :heavy_minus_sign: | The requested provider | planday | -| `request` | [T.nilable(Models::Shared::Request)](../../models/shared/request.md) | :heavy_minus_sign: | The advanced log request data | | -| `request_id` | *T.nilable(::String)* | :heavy_minus_sign: | The request ID | adbf752f-6457-4ddd-89b3-98ae2252b83b | -| `resource` | *T.nilable(::String)* | :heavy_minus_sign: | The requested resource | employees | -| `response` | [T.nilable(Models::Shared::UnifiedLogsLegacyResponse)](../../models/shared/unifiedlogslegacyresponse.md) | :heavy_minus_sign: | The advanced log response data | | -| `service` | *T.nilable(::String)* | :heavy_minus_sign: | The requested service | hris | -| `source_id` | *T.nilable(::String)* | :heavy_minus_sign: | The requests source ID | 1234567890 | -| `source_ip` | *T.nilable(::String)* | :heavy_minus_sign: | The requests source IPV4 ip address | 192.168.1.1 | -| `source_type` | *T.nilable(::String)* | :heavy_minus_sign: | The requests source type | DASHBOARD | -| `source_value` | *T.nilable(::String)* | :heavy_minus_sign: | The requests source value | ACCOUNT_TESTER | -| `start_time` | [Date](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/Date.html) | :heavy_minus_sign: | The request start time ISO8601 date string | 2021-01-01T00:00:00Z | -| `status` | *T.nilable(::Float)* | :heavy_minus_sign: | The requests response status code | 200 | -| `step_requests` | T::Array<[Models::Shared::StepLog](../../models/shared/steplog.md)> | :heavy_minus_sign: | The list of provider requests | | -| `sub_resource` | *T.nilable(::String)* | :heavy_minus_sign: | The requested sub resource | documents | -| `success` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | The request success flag | true | -| `url` | *T.nilable(::String)* | :heavy_minus_sign: | The requested URL | https://api.stackone.com/unified/hris/employees?raw=false | \ No newline at end of file diff --git a/docs/models/shared/unifiedlogslegacyresponse.md b/docs/models/shared/unifiedlogslegacyresponse.md deleted file mode 100644 index badde765c..000000000 --- a/docs/models/shared/unifiedlogslegacyresponse.md +++ /dev/null @@ -1,14 +0,0 @@ -# UnifiedLogsLegacyResponse - -The advanced log response data - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `body` | *T.nilable(::Object)* | :heavy_minus_sign: | N/A | | -| `custom_mapping_errors` | T::Array<[Models::Shared::CustomMappingError](../../models/shared/custommappingerror.md)> | :heavy_minus_sign: | The custom mapping errors | | -| `headers` | T::Hash[Symbol, *::Object*] | :heavy_minus_sign: | N/A | {
"content-type": "application/json",
"authorization": "Bearer token"
} | -| `provider_errors` | T::Array<[Models::Shared::ProviderError](../../models/shared/providererror.md)> | :heavy_minus_sign: | The provider errors | | -| `status_code` | *T.nilable(::Float)* | :heavy_minus_sign: | The response status code | 200 | \ No newline at end of file diff --git a/docs/models/shared/unifiedlogspaginatedlegacy.md b/docs/models/shared/unifiedlogspaginatedlegacy.md deleted file mode 100644 index b272b9de1..000000000 --- a/docs/models/shared/unifiedlogspaginatedlegacy.md +++ /dev/null @@ -1,9 +0,0 @@ -# UnifiedLogsPaginatedLegacy - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -| `data` | T::Array<[Models::Shared::UnifiedLogsPartialLegacy](../../models/shared/unifiedlogspartiallegacy.md)> | :heavy_check_mark: | N/A | -| `next_` | *T.nilable(::String)* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/unifiedlogspartiallegacy.md b/docs/models/shared/unifiedlogspartiallegacy.md deleted file mode 100644 index 2dee04025..000000000 --- a/docs/models/shared/unifiedlogspartiallegacy.md +++ /dev/null @@ -1,31 +0,0 @@ -# UnifiedLogsPartialLegacy - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `account_id` | *T.nilable(::String)* | :heavy_minus_sign: | The account ID of the request | 45355976281015164504 | -| `action` | *T.nilable(::String)* | :heavy_minus_sign: | The requested action | download | -| `child_resource` | *T.nilable(::String)* | :heavy_minus_sign: | The requested child resource | time-off | -| `duration` | *T.nilable(::Float)* | :heavy_minus_sign: | The request duration in milliseconds | 356 | -| `end_time` | [Date](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/Date.html) | :heavy_minus_sign: | The request end time ISO8601 date string | 2021-01-01T00:00:00Z | -| `event_datetime` | [Date](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/Date.html) | :heavy_minus_sign: | The event ISO8601 date string | 2021-01-01T00:00:00Z | -| `http_method` | *T.nilable(::String)* | :heavy_minus_sign: | The requested HTTP method | get | -| `is_worker` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | The asynchronous worker flag | false | -| `path` | *T.nilable(::String)* | :heavy_minus_sign: | The requested path | /unified/hris/employees | -| `project_id` | *T.nilable(::String)* | :heavy_minus_sign: | The project ID of the request | dev-project-68574 | -| `provider` | *T.nilable(::String)* | :heavy_minus_sign: | The requested provider | planday | -| `request_id` | *T.nilable(::String)* | :heavy_minus_sign: | The request ID | adbf752f-6457-4ddd-89b3-98ae2252b83b | -| `resource` | *T.nilable(::String)* | :heavy_minus_sign: | The requested resource | employees | -| `service` | *T.nilable(::String)* | :heavy_minus_sign: | The requested service | hris | -| `source_id` | *T.nilable(::String)* | :heavy_minus_sign: | The requests source ID | 1234567890 | -| `source_ip` | *T.nilable(::String)* | :heavy_minus_sign: | The requests source IPV4 ip address | 192.168.1.1 | -| `source_type` | *T.nilable(::String)* | :heavy_minus_sign: | The requests source type | DASHBOARD | -| `source_value` | *T.nilable(::String)* | :heavy_minus_sign: | The requests source value | ACCOUNT_TESTER | -| `start_time` | [Date](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/Date.html) | :heavy_minus_sign: | The request start time ISO8601 date string | 2021-01-01T00:00:00Z | -| `status` | *T.nilable(::Float)* | :heavy_minus_sign: | The requests response status code | 200 | -| `step_requests` | T::Array<[Models::Shared::StepLogPartialLegacy](../../models/shared/steplogpartiallegacy.md)> | :heavy_minus_sign: | The list of provider requests | | -| `sub_resource` | *T.nilable(::String)* | :heavy_minus_sign: | The requested sub resource | documents | -| `success` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | The request success flag | true | -| `url` | *T.nilable(::String)* | :heavy_minus_sign: | The requested URL | https://api.stackone.com/unified/hris/employees?raw=false | \ No newline at end of file diff --git a/docs/models/shared/url.md b/docs/models/shared/url.md deleted file mode 100644 index ffce48bf8..000000000 --- a/docs/models/shared/url.md +++ /dev/null @@ -1,13 +0,0 @@ -# Url - -The request URL data - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | -| `hostname` | *T.nilable(::String)* | :heavy_minus_sign: | The request URL hostname | example.com | -| `path` | *T.nilable(::String)* | :heavy_minus_sign: | The request path | /api/v1/resource | -| `query_params` | T::Hash[Symbol, *::Object*] | :heavy_minus_sign: | The request query parameters | {
"page": 1,
"limit": 10
} | -| `url` | *T.nilable(::String)* | :heavy_minus_sign: | The request URL | https://example.com/api/v1/resource | \ No newline at end of file diff --git a/docs/sdks/accounting/README.md b/docs/sdks/accounting/README.md index 9243600f7..7d3746523 100644 --- a/docs/sdks/accounting/README.md +++ b/docs/sdks/accounting/README.md @@ -411,7 +411,7 @@ s = ::StackOne::StackOne.new( req = Models::Operations::AccountingListCompaniesRequest.new( prefer: 'heartbeat', fields_: 'id,remote_id,name,base_currency,fiscal_year_start_month,fiscal_year_start_day,unified_custom_fields', - filter: Models::Operations::AccountingListCompaniesQueryParamFilter.new( + filter: Models::Operations::QueryParamFilter.new( updated_after: DateTime.iso8601('2020-01-01T00:00:00.000Z') ), x_account_id: '' diff --git a/docs/sdks/actions/README.md b/docs/sdks/actions/README.md index de0962eaf..b0e40e823 100644 --- a/docs/sdks/actions/README.md +++ b/docs/sdks/actions/README.md @@ -71,7 +71,7 @@ end ## check_permissions -Checks what permissions a user has on a given resource. Delegates to the connected provider's unified_check_permissions action. +Checks what permissions a user has on a given resource. Delegates to the connected provider's `unified_check_permissions` action. ### Example Usage @@ -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 an action, read from the Data Sync index rather than the provider. Responds with a refusal when no sync can be selected to serve the read. ### 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 @@ -345,7 +351,7 @@ end ## search_actions -Search connector actions by semantic similarity +Ranks the project's connector actions by how closely they match a natural-language query, so an agent can find the right action without reading the whole catalog. ### Example Usage diff --git a/docs/sdks/connectsessions/README.md b/docs/sdks/connectsessions/README.md index fa0c06047..ad7d8d1ed 100644 --- a/docs/sdks/connectsessions/README.md +++ b/docs/sdks/connectsessions/README.md @@ -12,7 +12,7 @@ Generate connection session tokens or auth URLs to allow your customers to conne ## authenticate_connect_session -Authenticate Connect Session +Exchanges a connect session token for the session it belongs to. ### Example Usage @@ -68,7 +68,7 @@ end ## create_connect_session -Create Connect Session +Creates a short-lived connect session and returns the token and auth link that open the account-linking flow for one end-user. ### Example Usage @@ -141,7 +141,7 @@ end ## get_connect_session -Get Connect Session +Returns a connect session and the state of its most recent connection attempt. ### Example Usage diff --git a/docs/sdks/logs/README.md b/docs/sdks/logs/README.md index 3e70e15a7..6bf1690d5 100644 --- a/docs/sdks/logs/README.md +++ b/docs/sdks/logs/README.md @@ -20,6 +20,7 @@ API request logs and analytics. * [list_action_logs](#list_action_logs) - List Action Logs * [list_action_step_logs](#list_action_step_logs) - List Action Step Logs * [list_logs](#list_logs) - List Logs +* [list_platform_logs](#list_platform_logs) - List Platform Logs * [list_provider_logs](#list_provider_logs) - List Provider Logs * [list_step_logs](#list_step_logs) - List Step Logs * [list_unified_logs](#list_unified_logs) - List Unified Logs @@ -240,7 +241,7 @@ end ## get_logs_stats_dimensions -Returns the distinct values available for the requested dimensions (for example connector, account, or status code). Use to populate filter controls and build breakdowns. +Returns the distinct values available for the requested dimensions (for example connector, account, or status code). Use to populate filter controls and build breakdowns. Values of the `connector_key` dimension also carry a `label` holding the connector display name. ### Example Usage @@ -323,7 +324,7 @@ req = Models::Shared::DimensionsPostDto.new( ) res = s.logs.get_logs_stats_dimensions(request: req) -if res.status_code == 200 +unless res.logs_dimensions.nil? # handle response end @@ -841,8 +842,7 @@ s = ::StackOne::StackOne.new( username: '' ) ) - -req = Models::Shared::LogsPostDto.new( +res = s.logs.list_logs(logs_post_dto: Models::Shared::LogsPostDto.new( filters: Models::Shared::LogsPostDtoFilters.new( account_secure_id: [ '45355976281015164504', @@ -907,8 +907,7 @@ req = Models::Shared::LogsPostDto.new( ), page: 1.0, page_size: 25.0 -) -res = s.logs.list_logs(request: req) +), expand: 'connector') unless res.logs_paginated.nil? # handle response @@ -918,9 +917,10 @@ end ### Parameters -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | -| `request` | [Models::Shared::LogsPostDto](../../models/shared/logspostdto.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `logs_post_dto` | [Models::Shared::LogsPostDto](../../models/shared/logspostdto.md) | :heavy_check_mark: | N/A | | +| `expand` | *T.nilable(::String)* | :heavy_minus_sign: | A comma-separated list of additional fields to expand. Supported values: `connector` (the connector display data — name, logo, categories — for each row). Omitted unless requested, as resolving it is more expensive. `connector_key`, `connector_version` and `connector_owner` are always returned regardless. | connector | ### Response @@ -943,6 +943,79 @@ end | Models::Errors::BadGatewayResponse | 502 | application/json | | Errors::APIError | 4XX, 5XX | \*/\* | +## list_platform_logs + +Returns a paginated list of platform logs — the audit trail of operations on StackOne itself, such as creating an account or deleting an integration, as opposed to requests proxied to a provider. Filter `event_type` to scope to a resource: each is `_`, so passing the set for a resource returns everything that happened to it. + +### Example Usage + + +```ruby +require 'stackone_client' + +Models = ::StackOne::Models +s = ::StackOne::StackOne.new( + security: Models::Shared::Security.new( + password: '', + username: '' + ) +) + +req = Models::Shared::PlatformLogsPostDto.new( + filters: Models::Shared::PlatformLogsPostDtoFilters.new( + account_secure_id: [ + '45355976281015164504', + ], + action: [ + 'create', + 'delete', + ], + end_time: '2025-01-31T23:59:59.999Z', + event_type: [ + 'account_create', + 'account_delete', + ], + start_time: '2025-01-01T00:00:00.000Z', + success: true + ), + page: 1.0, + page_size: 25.0 +) +res = s.logs.list_platform_logs(request: req) + +unless res.platform_logs_paginated.nil? + # handle response +end + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `request` | [Models::Shared::PlatformLogsPostDto](../../models/shared/platformlogspostdto.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[T.nilable(Models::Operations::StackoneListPlatformLogsResponse)](../../models/operations/stackonelistplatformlogsresponse.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 | \*/\* | + ## list_provider_logs Returns a paginated list of provider request logs — the raw requests StackOne sent to the downstream provider. 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/docs/sdks/requestlogs/README.md b/docs/sdks/requestlogs/README.md deleted file mode 100644 index 17a7c71b9..000000000 --- a/docs/sdks/requestlogs/README.md +++ /dev/null @@ -1,296 +0,0 @@ -# ~~RequestLogs~~ - -> [!WARNING] -> This SDK is **DEPRECATED** - -## Overview - -API requests and response logs. - -### Available Operations - -* [~~get_log~~](#get_log) - Get Log :warning: **Deprecated** -* [~~list_logs_legacy~~](#list_logs_legacy) - List Logs :warning: **Deprecated** -* [~~list_platform_logs~~](#list_platform_logs) - List Platform Logs :warning: **Deprecated** -* [~~list_step_logs_legacy~~](#list_step_logs_legacy) - List Step Logs :warning: **Deprecated** - -## ~~get_log~~ - -Get Log - -> :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible. - -### Example Usage - - -```ruby -require 'stackone_client' - -Models = ::StackOne::Models -s = ::StackOne::StackOne.new( - security: Models::Shared::Security.new( - password: '', - username: '' - ) -) -res = s.request_logs.get_log(id: '', include: Models::Operations::QueryParamInclude::STEP_LOGS) - -unless res.unified_log_result_legacy.nil? - # handle response -end - -``` - -### Parameters - -| Parameter | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `id` | *::String* | :heavy_check_mark: | N/A | | -| `include` | [T.nilable(Models::Operations::QueryParamInclude)](../../models/operations/queryparaminclude.md) | :heavy_minus_sign: | The include parameter allows you to include additional data in the response. | step_logs | - -### Response - -**[T.nilable(Models::Operations::StackoneGetLogResponse)](../../models/operations/stackonegetlogresponse.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 | \*/\* | - -## ~~list_logs_legacy~~ - -List Logs - -> :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible. - -### Example Usage - - -```ruby -require 'stackone_client' - -Models = ::StackOne::Models -s = ::StackOne::StackOne.new( - security: Models::Shared::Security.new( - password: '', - username: '' - ) -) - -req = Models::Operations::StackoneListLogsLegacyRequest.new( - filter: Models::Operations::QueryParamFilter.new( - account_ids: '45355976281015164504,45355976281015164505', - actions: 'download,upload', - child_resources: 'documents,time-off', - end_date: DateTime.iso8601('2020-01-01T00:00:00.000Z'), - http_methods: 'GET,POST', - order_by: Models::Operations::QueryParamOrderBy::PROVIDER, - order_direction: Models::Operations::QueryParamOrderDirection::ASC, - providers: 'ashby,greenhouse', - request_ids: 'adbf752f-6457-4ddd-89b3-98ae2252b83b,adbf752f-6457-4ddd-89b3-98ae2252b83c', - resources: 'employees,users', - services: 'hris,ats', - source_types: 'DASHBOARD,SYNTHETIC_WEBHOOK', - start_date: DateTime.iso8601('2020-01-01T00:00:00.000Z'), - status_codes: '200,400', - sub_resources: 'documents,employees', - success: true - ), - include: Models::Operations::StackoneListLogsLegacyQueryParamInclude::STEP_LOGS, - order_by: Models::Operations::OrderBy::SERVICE, - order_direction: Models::Operations::OrderDirection::ASC -) -res = s.request_logs.list_logs_legacy(request: req) - -unless res.unified_logs_paginated_legacy.nil? - # handle response -end - -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -| `request` | [Models::Operations::StackoneListLogsLegacyRequest](../../models/operations/stackonelistlogslegacyrequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[T.nilable(Models::Operations::StackoneListLogsLegacyResponse)](../../models/operations/stackonelistlogslegacyresponse.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 | \*/\* | - -## ~~list_platform_logs~~ - -List Platform Logs - -> :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible. - -### Example Usage - - -```ruby -require 'stackone_client' - -Models = ::StackOne::Models -s = ::StackOne::StackOne.new( - security: Models::Shared::Security.new( - password: '', - username: '' - ) -) - -req = Models::Operations::StackoneListPlatformLogsRequest.new( - filter: Models::Operations::StackoneListPlatformLogsQueryParamFilter.new( - account_ids: '45355976281015164504,45355976281015164505', - actions: 'download,upload', - categories: 'hris,ats', - end_date: DateTime.iso8601('2020-01-01T00:00:00.000Z'), - http_methods: 'GET,POST', - order_by: Models::Operations::StackoneListPlatformLogsQueryParamRequestLogsOrderBy::EVENT_DATETIME, - order_direction: Models::Operations::StackoneListPlatformLogsQueryParamRequestLogsOrderDirection::ASC, - request_ids: 'adbf752f-6457-4ddd-89b3-98ae2252b83b,adbf752f-6457-4ddd-89b3-98ae2252b83c', - resources: 'employees,users', - source_types: 'DASHBOARD,SYNTHETIC_WEBHOOK', - start_date: DateTime.iso8601('2020-01-01T00:00:00.000Z'), - status_codes: '200,400', - success: true - ), - order_by: Models::Operations::StackoneListPlatformLogsQueryParamOrderBy::DURATION, - order_direction: Models::Operations::StackoneListPlatformLogsQueryParamOrderDirection::ASC -) -res = s.request_logs.list_platform_logs(request: req) - -unless res.platform_logs_paginated_legacy.nil? - # handle response -end - -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | -| `request` | [Models::Operations::StackoneListPlatformLogsRequest](../../models/operations/stackonelistplatformlogsrequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[T.nilable(Models::Operations::StackoneListPlatformLogsResponse)](../../models/operations/stackonelistplatformlogsresponse.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 | \*/\* | - -## ~~list_step_logs_legacy~~ - -List Step Logs - -> :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible. - -### Example Usage - - -```ruby -require 'stackone_client' - -Models = ::StackOne::Models -s = ::StackOne::StackOne.new( - security: Models::Shared::Security.new( - password: '', - username: '' - ) -) - -req = Models::Operations::StackoneListStepLogsLegacyRequest.new( - filter: Models::Operations::StackoneListStepLogsLegacyQueryParamFilter.new( - account_ids: '45355976281015164504,45355976281015164505', - actions: 'download,upload', - child_resources: 'documents,time-off', - end_date: DateTime.iso8601('2020-01-01T00:00:00.000Z'), - http_methods: 'GET,POST', - providers: 'ashby,greenhouse', - request_ids: 'adbf752f-6457-4ddd-89b3-98ae2252b83b,adbf752f-6457-4ddd-89b3-98ae2252b83c', - resources: 'employees,users', - services: 'hris,ats', - start_date: DateTime.iso8601('2020-01-01T00:00:00.000Z'), - status_codes: '200,400', - sub_resources: 'documents,employees', - success: true - ), - order_by: Models::Operations::StackoneListStepLogsLegacyQueryParamOrderBy::STATUS, - order_direction: Models::Operations::StackoneListStepLogsLegacyQueryParamOrderDirection::ASC -) -res = s.request_logs.list_step_logs_legacy(request: req) - -unless res.step_logs_paginated_legacy.nil? - # handle response -end - -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | -| `request` | [Models::Operations::StackoneListStepLogsLegacyRequest](../../models/operations/stackoneliststeplogslegacyrequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[T.nilable(Models::Operations::StackoneListStepLogsLegacyResponse)](../../models/operations/stackoneliststeplogslegacyresponse.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 | \*/\* | \ No newline at end of file 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..993051490 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, @@ -334,7 +334,7 @@ def build_action_embeddings(request:, retries: nil, timeout_ms: nil, http_header sig { params(check_permissions_request_dto: Models::Shared::CheckPermissionsRequestDto, x_account_id: ::String, prefer: T.nilable(::String), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::StackoneCheckPermissionsResponse) } def check_permissions(check_permissions_request_dto:, x_account_id:, prefer: nil, retries: nil, timeout_ms: nil, http_headers: nil) # check_permissions - Check user permissions on a resource - # Checks what permissions a user has on a given resource. Delegates to the connected provider's unified_check_permissions action. + # Checks what permissions a user has on a given resource. Delegates to the connected provider's `unified_check_permissions` action. # # If set, this operation will use `password` from the global security. request = Models::Operations::StackoneCheckPermissionsRequest.new( @@ -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 an action, read from the Data Sync index rather than the provider. Responds with a refusal when no sync can be selected to serve the read. # # 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 @@ -1531,6 +1531,7 @@ def rpc_action_synced(actions_rpc_synced_request_dto:, page_size: nil, skip: nil sig { params(request: Models::Shared::ActionSearchDto, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::StackoneSearchActionsResponse) } def search_actions(request:, retries: nil, timeout_ms: nil, http_headers: nil) # search_actions - Search connector actions by semantic similarity + # Ranks the project's connector actions by how closely they match a natural-language query, so an agent can find the right action without reading the whole catalog. # # If set, this operation will use `password` from the global security. url, params = @sdk_configuration.get_server_details @@ -1572,7 +1573,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..aae24cecd 100644 --- a/lib/stack_one/connect_sessions.rb +++ b/lib/stack_one/connect_sessions.rb @@ -44,6 +44,7 @@ def get_url(base_url:, url_variables: nil) sig { params(request: Models::Shared::ConnectSessionAuthenticate, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::StackoneAuthenticateConnectSessionResponse) } def authenticate_connect_session(request:, retries: nil, timeout_ms: nil, http_headers: nil) # authenticate_connect_session - Authenticate Connect Session + # Exchanges a connect session token for the session it belongs to. # # If set, this operation will use `password` from the global security. url, params = @sdk_configuration.get_server_details @@ -85,7 +86,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, @@ -333,6 +334,7 @@ def authenticate_connect_session(request:, retries: nil, timeout_ms: nil, http_h sig { params(request: Models::Shared::ConnectSessionCreate, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::StackoneCreateConnectSessionResponse) } def create_connect_session(request:, retries: nil, timeout_ms: nil, http_headers: nil) # create_connect_session - Create Connect Session + # Creates a short-lived connect session and returns the token and auth link that open the account-linking flow for one end-user. # # If set, this operation will use `password` from the global security. url, params = @sdk_configuration.get_server_details @@ -374,7 +376,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, @@ -622,6 +624,7 @@ def create_connect_session(request:, retries: nil, timeout_ms: nil, http_headers sig { params(id: ::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::StackoneGetConnectSessionResponse) } def get_connect_session(id:, retries: nil, timeout_ms: nil, http_headers: nil) # get_connect_session - Get Connect Session + # Returns a connect session and the state of its most recent connection attempt. # # If set, this operation will use `password` from the global security. request = Models::Operations::StackoneGetConnectSessionRequest.new( @@ -660,7 +663,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..6d2941984 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, @@ -1165,7 +1165,7 @@ def get_logs_stats_aggregate(request:, retries: nil, timeout_ms: nil, http_heade sig { params(request: Models::Shared::DimensionsPostDto, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::StackoneGetLogsStatsDimensionsResponse) } def get_logs_stats_dimensions(request:, retries: nil, timeout_ms: nil, http_headers: nil) # get_logs_stats_dimensions - Get Logs Stats Dimensions - # Returns the distinct values available for the requested dimensions (for example connector, account, or status code). Use to populate filter controls and build breakdowns. + # Returns the distinct values available for the requested dimensions (for example connector, account, or status code). Use to populate filter controls and build breakdowns. Values of the `connector_key` dimension also carry a `label` holding the connector display name. # # If set, this operation will use `password` from the global security. url, params = @sdk_configuration.get_server_details @@ -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, @@ -1266,18 +1266,27 @@ def get_logs_stats_dimensions(request:, retries: nil, timeout_ms: nil, http_head 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::StackoneGetLogsStatsDimensionsResponse.new( - status_code: http_response.status, - content_type: content_type, - raw_response: http_response, - headers: {} - ) + 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::Shared::LogsDimensions) + response = Models::Operations::StackoneGetLogsStatsDimensionsResponse.new( + status_code: http_response.status, + content_type: content_type, + raw_response: http_response, + headers: {}, + logs_dimensions: T.unsafe(obj) + ) + + return response + 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, ['400']) if Utils.match_content_type(content_type, 'application/json') http_response = @sdk_configuration.hooks.after_success( @@ -1486,7 +1495,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 +1773,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 +2051,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 +2329,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 +2606,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 +2883,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 +3172,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 +3462,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, @@ -3689,18 +3698,22 @@ def list_action_step_logs(action_run_id:, page:, page_size:, retries: nil, timeo end - sig { params(request: Models::Shared::LogsPostDto, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::StackoneListLogsResponse) } - def list_logs(request:, retries: nil, timeout_ms: nil, http_headers: nil) + sig { params(logs_post_dto: Models::Shared::LogsPostDto, expand: T.nilable(::String), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::StackoneListLogsResponse) } + def list_logs(logs_post_dto:, expand: nil, retries: nil, timeout_ms: nil, http_headers: nil) # list_logs - List Logs # Returns a paginated list of logs. Each log includes a `log_type` discriminator field with possible values: `action` or `unified`. Use the `log_type` filter to request specific types. # # If set, this operation will use `password` from the global security. + request = Models::Operations::StackoneListLogsRequest.new( + logs_post_dto: logs_post_dto, + expand: expand + ) url, params = @sdk_configuration.get_server_details base_url = Utils.template_url(url, params) url = "#{base_url}/logs" headers = {} headers = T.cast(headers, T::Hash[String, String]) - req_content_type, data, form = Utils.serialize_request_body(request, false, false, :request, :json) + req_content_type, data, form = Utils.serialize_request_body(request, false, false, :logs_post_dto, :json) headers['content-type'] = req_content_type raise StandardError, 'request body is required' if data.nil? && form.nil? @@ -3711,6 +3724,7 @@ def list_logs(request:, retries: nil, timeout_ms: nil, http_headers: nil) else body = data end + query_params = Utils.get_query_params(Models::Operations::StackoneListLogsRequest, request, nil) headers['Accept'] = 'application/json' headers['user-agent'] = @sdk_configuration.user_agent retries ||= @sdk_configuration.retry_config @@ -3734,7 +3748,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, @@ -3753,6 +3767,7 @@ def list_logs(request:, retries: nil, timeout_ms: nil, http_headers: nil) req.body = body req.headers.merge!(headers) req.options.timeout = timeout unless timeout.nil? + req.params = query_params Utils.configure_request_security(req, security, %i[password]) http_headers&.each do |key, value| req.headers[key.to_s] = value @@ -3979,6 +3994,296 @@ def list_logs(request:, retries: nil, timeout_ms: nil, http_headers: nil) end + sig { params(request: Models::Shared::PlatformLogsPostDto, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::StackoneListPlatformLogsResponse) } + def list_platform_logs(request:, retries: nil, timeout_ms: nil, http_headers: nil) + # list_platform_logs - List Platform Logs + # Returns a paginated list of platform logs — the audit trail of operations on StackOne itself, such as creating an account or deleting an integration, as opposed to requests proxied to a provider. Filter `event_type` to scope to a resource: each is `_`, so passing the set for a resource returns everything that happened to it. + # + # If set, this operation will use `password` from the global security. + url, params = @sdk_configuration.get_server_details + base_url = Utils.template_url(url, params) + url = "#{base_url}/logs/platform" + headers = {} + headers = T.cast(headers, T::Hash[String, String]) + req_content_type, data, form = Utils.serialize_request_body(request, false, false, :request, :json) + headers['content-type'] = req_content_type + raise StandardError, 'request body is required' if data.nil? && form.nil? + + if form && !form.empty? + body = Utils.encode_form(form) + elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded') + body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object])) + else + body = data + end + 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] + + security = @sdk_configuration.security_source&.call + + timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? + timeout ||= @sdk_configuration.timeout + + + connection = @sdk_configuration.client.dup + connection.use Utils::RetryMiddleware, retry_options + + hook_ctx = SDKHooks::HookContext.new( + config: @sdk_configuration, + base_url: base_url, + oauth2_scopes: nil, + operation_id: 'stackone_list_platform_logs', + security_source: @sdk_configuration.security_source + ) + + error = T.let(nil, T.nilable(StandardError)) + http_response = T.let(nil, T.nilable(Faraday::Response)) + + + begin + http_response = T.must(connection).post(url) do |req| + req.body = body + req.headers.merge!(headers) + req.options.timeout = timeout unless timeout.nil? + Utils.configure_request_security(req, security, %i[password]) + 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']) + 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::Shared::PlatformLogsPaginated) + response = Models::Operations::StackoneListPlatformLogsResponse.new( + status_code: http_response.status, + content_type: content_type, + raw_response: http_response, + headers: {}, + platform_logs_paginated: T.unsafe(obj) + ) + + return response + 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, ['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(request: Models::Shared::ProviderLogsPostDto, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::StackoneListProviderLogsResponse) } def list_provider_logs(request:, retries: nil, timeout_ms: nil, http_headers: nil) # list_provider_logs - List Provider Logs @@ -4024,7 +4329,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 +4610,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 +4900,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 +5190,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..66e2ed411 100644 --- a/lib/stack_one/models/operations.rb +++ b/lib/stack_one/models/operations.rb @@ -18,7 +18,6 @@ module Operations autoload :AccountingGetCompanyResponse, 'stack_one/models/operations/accounting_get_company_response.rb' autoload :AccountingGetCompanyTaxRateRequest, 'stack_one/models/operations/accounting_get_company_tax_rate_request.rb' autoload :AccountingGetCompanyTaxRateResponse, 'stack_one/models/operations/accounting_get_company_tax_rate_response.rb' - autoload :AccountingListCompaniesQueryParamFilter, 'stack_one/models/operations/accounting_list_companies_queryparam_filter.rb' autoload :AccountingListCompaniesRequest, 'stack_one/models/operations/accounting_list_companies_request.rb' autoload :AccountingListCompaniesResponse, 'stack_one/models/operations/accounting_list_companies_response.rb' autoload :AccountingListCompanyAccountsQueryParamFilter, 'stack_one/models/operations/accounting_list_company_accounts_queryparam_filter.rb' @@ -31,6 +30,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' @@ -625,14 +625,9 @@ module Operations autoload :MessagingListUsersResponse, 'stack_one/models/operations/messaging_list_users_response.rb' autoload :MessagingSendMessageRequest, 'stack_one/models/operations/messaging_send_message_request.rb' autoload :MessagingSendMessageResponse, 'stack_one/models/operations/messaging_send_message_response.rb' - autoload :OrderBy, 'stack_one/models/operations/order_by.rb' - autoload :OrderDirection, 'stack_one/models/operations/order_direction.rb' autoload :ParamStyle, 'stack_one/models/operations/param_style.rb' autoload :QueryParamActive, 'stack_one/models/operations/queryparam_active.rb' autoload :QueryParamFilter, 'stack_one/models/operations/queryparam_filter.rb' - autoload :QueryParamInclude, 'stack_one/models/operations/queryparam_include.rb' - autoload :QueryParamOrderBy, 'stack_one/models/operations/queryparam_order_by.rb' - autoload :QueryParamOrderDirection, 'stack_one/models/operations/queryparam_order_direction.rb' autoload :QueryParamStatus, 'stack_one/models/operations/queryparam_status.rb' autoload :QueryParamType, 'stack_one/models/operations/queryparam_type.rb' autoload :ScreeningCreateScreeningOrderRequest, 'stack_one/models/operations/screening_create_screening_order_request.rb' @@ -669,8 +664,6 @@ module Operations autoload :StackoneGetConnectorMetaResponse, 'stack_one/models/operations/stackone_get_connector_meta_response.rb' autoload :StackoneGetConnectorProfilePinnedVersionRequest, 'stack_one/models/operations/stackone_get_connector_profile_pinned_version_request.rb' autoload :StackoneGetConnectorProfilePinnedVersionResponse, 'stack_one/models/operations/stackone_get_connector_profile_pinned_version_response.rb' - autoload :StackoneGetLogRequest, 'stack_one/models/operations/stackone_get_log_request.rb' - autoload :StackoneGetLogResponse, 'stack_one/models/operations/stackone_get_log_response.rb' autoload :StackoneGetLogsStatsAggregateResponse, 'stack_one/models/operations/stackone_get_logs_stats_aggregate_response.rb' autoload :StackoneGetLogsStatsDimensionsResponse, 'stack_one/models/operations/stackone_get_logs_stats_dimensions_response.rb' autoload :StackoneGetProviderAdvancedLogRequest, 'stack_one/models/operations/stackone_get_provider_advanced_log_request.rb' @@ -701,33 +694,14 @@ module Operations autoload :StackoneListLinkedAccountsRequest, 'stack_one/models/operations/stackone_list_linked_accounts_request.rb' autoload :StackoneListLinkedAccountsResponse, 'stack_one/models/operations/stackone_list_linked_accounts_response.rb' autoload :StackoneListLinkedAccountsResponseBody, 'stack_one/models/operations/stackone_list_linked_accounts_responsebody.rb' - autoload :StackoneListLogsLegacyQueryParamInclude, 'stack_one/models/operations/stackone_list_logs_legacy_queryparam_include.rb' - autoload :StackoneListLogsLegacyRequest, 'stack_one/models/operations/stackone_list_logs_legacy_request.rb' - autoload :StackoneListLogsLegacyResponse, 'stack_one/models/operations/stackone_list_logs_legacy_response.rb' + autoload :StackoneListLogsRequest, 'stack_one/models/operations/stackone_list_logs_request.rb' autoload :StackoneListLogsResponse, 'stack_one/models/operations/stackone_list_logs_response.rb' - autoload :StackoneListPlatformLogsQueryParamRequestLogsOrderBy, 'stack_one/models/operations/stackone_list_platform_logs_queryparam_request_logs_order_by.rb' - autoload :StackoneListPlatformLogsQueryParamRequestLogsOrderDirection, 'stack_one/models/operations/stackone_list_platform_logs_queryparam_request_logs_order_direction.rb' - autoload :StackoneListPlatformLogsQueryParamFilter, 'stack_one/models/operations/stackone_list_platform_logs_queryparam_filter.rb' - autoload :StackoneListPlatformLogsQueryParamOrderBy, 'stack_one/models/operations/stackone_list_platform_logs_queryparam_order_by.rb' - autoload :StackoneListPlatformLogsQueryParamOrderDirection, 'stack_one/models/operations/stackone_list_platform_logs_queryparam_order_direction.rb' - autoload :StackoneListPlatformLogsRequest, 'stack_one/models/operations/stackone_list_platform_logs_request.rb' autoload :StackoneListPlatformLogsResponse, 'stack_one/models/operations/stackone_list_platform_logs_response.rb' autoload :StackoneListProviderLogsResponse, 'stack_one/models/operations/stackone_list_provider_logs_response.rb' - autoload :StackoneListStepLogsLegacyQueryParamFilter, 'stack_one/models/operations/stackone_list_step_logs_legacy_queryparam_filter.rb' - autoload :StackoneListStepLogsLegacyQueryParamOrderBy, 'stack_one/models/operations/stackone_list_step_logs_legacy_queryparam_order_by.rb' - autoload :StackoneListStepLogsLegacyQueryParamOrderDirection, 'stack_one/models/operations/stackone_list_step_logs_legacy_queryparam_order_direction.rb' - autoload :StackoneListStepLogsLegacyRequest, 'stack_one/models/operations/stackone_list_step_logs_legacy_request.rb' - autoload :StackoneListStepLogsLegacyResponse, 'stack_one/models/operations/stackone_list_step_logs_legacy_response.rb' autoload :StackoneListStepLogsResponse, 'stack_one/models/operations/stackone_list_step_logs_response.rb' 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 +712,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/accounting_list_companies_queryparam_filter.rb b/lib/stack_one/models/operations/accounting_list_companies_queryparam_filter.rb deleted file mode 100644 index 73ddae98c..000000000 --- a/lib/stack_one/models/operations/accounting_list_companies_queryparam_filter.rb +++ /dev/null @@ -1,32 +0,0 @@ -# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -# typed: true -# frozen_string_literal: true - - -module StackOne - module Models - module Operations - # Filter parameters that allow greater customisation of the list response - class AccountingListCompaniesQueryParamFilter - extend T::Sig - include Crystalline::MetadataFields - - # Use a string with a date to only select results updated after that given date - field :updated_after, Crystalline::Nilable.new(::DateTime), { 'query_param': { 'field_name': 'updated_after' } } - - sig { params(updated_after: T.nilable(::DateTime)).void } - def initialize(updated_after: nil) - @updated_after = updated_after - end - - sig { params(other: T.untyped).returns(T::Boolean) } - def ==(other) - return false unless other.is_a? self.class - return false unless @updated_after == other.updated_after - true - end - end - end - end -end diff --git a/lib/stack_one/models/operations/accounting_list_companies_queryparam_filter.rbi b/lib/stack_one/models/operations/accounting_list_companies_queryparam_filter.rbi deleted file mode 100644 index bd6a5d5cb..000000000 --- a/lib/stack_one/models/operations/accounting_list_companies_queryparam_filter.rbi +++ /dev/null @@ -1,13 +0,0 @@ -# typed: true -# frozen_string_literal: true - - -class StackOne::Models::Operations::AccountingListCompaniesQueryParamFilter - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class StackOne::Models::Operations::AccountingListCompaniesQueryParamFilter - def updated_after(); end - def updated_after=(str_); end -end diff --git a/lib/stack_one/models/operations/accounting_list_companies_request.rb b/lib/stack_one/models/operations/accounting_list_companies_request.rb index 128c5067d..a6f1b7a7e 100644 --- a/lib/stack_one/models/operations/accounting_list_companies_request.rb +++ b/lib/stack_one/models/operations/accounting_list_companies_request.rb @@ -19,7 +19,7 @@ class AccountingListCompaniesRequest # The comma separated list of fields that will be returned in the response (if empty, all fields are returned) field :fields_, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'fields', 'style': 'form', 'explode': true } } # Filter parameters that allow greater customisation of the list response - field :filter, Crystalline::Nilable.new(Models::Operations::AccountingListCompaniesQueryParamFilter), { 'query_param': { 'field_name': 'filter', 'style': 'deepObject', 'explode': true } } + field :filter, Crystalline::Nilable.new(Models::Operations::QueryParamFilter), { 'query_param': { 'field_name': 'filter', 'style': 'deepObject', 'explode': true } } # The unified cursor field :next_, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } } # The page number of the results to fetch @@ -37,7 +37,7 @@ class AccountingListCompaniesRequest # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible. field :updated_after, Crystalline::Nilable.new(::DateTime), { 'query_param': { 'field_name': 'updated_after', 'style': 'form', 'explode': true } } - sig { params(x_account_id: ::String, prefer: T.nilable(::String), fields_: T.nilable(::String), filter: T.nilable(Models::Operations::AccountingListCompaniesQueryParamFilter), next_: T.nilable(::String), page: T.nilable(::String), page_size: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean), updated_after: T.nilable(::DateTime)).void } + sig { params(x_account_id: ::String, prefer: T.nilable(::String), fields_: T.nilable(::String), filter: T.nilable(Models::Operations::QueryParamFilter), next_: T.nilable(::String), page: T.nilable(::String), page_size: T.nilable(::String), proxy: T.nilable(T::Hash[Symbol, ::Object]), raw: T.nilable(T::Boolean), updated_after: T.nilable(::DateTime)).void } def initialize(x_account_id:, prefer: nil, fields_: nil, filter: nil, next_: nil, page: nil, page_size: nil, proxy: nil, raw: nil, updated_after: nil) @x_account_id = x_account_id @prefer = prefer 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/order_by.rbi b/lib/stack_one/models/operations/apps.rbi similarity index 55% rename from lib/stack_one/models/operations/order_by.rbi rename to lib/stack_one/models/operations/apps.rbi index f4f1c763c..7060097b8 100644 --- a/lib/stack_one/models/operations/order_by.rbi +++ b/lib/stack_one/models/operations/apps.rbi @@ -2,10 +2,10 @@ # frozen_string_literal: true -class StackOne::Models::Operations::OrderBy +class StackOne::Models::Operations::Apps extend ::Crystalline::MetadataFields::ClassMethods end -class StackOne::Models::Operations::OrderBy +class StackOne::Models::Operations::Apps end diff --git a/lib/stack_one/models/operations/order_by.rb b/lib/stack_one/models/operations/order_by.rb deleted file mode 100644 index f3c56d1b0..000000000 --- a/lib/stack_one/models/operations/order_by.rb +++ /dev/null @@ -1,22 +0,0 @@ -# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -# typed: true -# frozen_string_literal: true - - -module StackOne - module Models - module Operations - # OrderBy - The field to order the results by. - class OrderBy < T::Enum - enums do - PROVIDER = new('provider') - SERVICE = new('service') - STATUS = new('status') - EVENT_DATETIME = new('eventDatetime') - DURATION = new('duration') - end - end - end - end -end diff --git a/lib/stack_one/models/operations/queryparam_filter.rb b/lib/stack_one/models/operations/queryparam_filter.rb index 2965343ce..0540c4968 100644 --- a/lib/stack_one/models/operations/queryparam_filter.rb +++ b/lib/stack_one/models/operations/queryparam_filter.rb @@ -12,86 +12,18 @@ class QueryParamFilter extend T::Sig include Crystalline::MetadataFields - # A comma-separated list of account IDs to filter the results by. - field :account_ids, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'account_ids' } } - # A comma-separated list of actions to filter the results by. - field :actions, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'actions' } } - # A comma-separated list of child resources to filter the results by. - field :child_resources, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'child_resources' } } - # A ISO8601 date string to filter the results by end_date. - field :end_date, Crystalline::Nilable.new(::DateTime), { 'query_param': { 'field_name': 'end_date' } } - # A comma-separated list of HTTP methods to filter the results by. - field :http_methods, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'http_methods' } } - # The field to order the results by. - field :order_by, Crystalline::Nilable.new(Models::Operations::QueryParamOrderBy), { 'query_param': { 'field_name': 'order_by' } } - # The direction to order the results by. - field :order_direction, Crystalline::Nilable.new(Models::Operations::QueryParamOrderDirection), { 'query_param': { 'field_name': 'order_direction' } } - # A comma-separated list of provider keys to filter the results by. - field :providers, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'providers' } } - # A comma-separated list of request IDs to filter the results by. - field :request_ids, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'request_ids' } } - # A comma-separated list of resources to filter the results by. - field :resources, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'resources' } } - # A comma-separated list of services to filter the results by. - field :services, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'services' } } - # A comma-separated list of source IDs to filter the results by. - field :source_ids, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'source_ids' } } - # A comma-separated list of source types to filter the results by. - field :source_types, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'source_types' } } - # A comma-separated list of source values to filter the results by. - field :source_values, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'source_values' } } - # A ISO8601 date string to filter the results by start_date. - field :start_date, Crystalline::Nilable.new(::DateTime), { 'query_param': { 'field_name': 'start_date' } } - # A comma-separated list of status codes to filter the results by. - field :status_codes, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'status_codes' } } - # A comma-separated list of sub resources to filter the results by. - field :sub_resources, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'sub_resources' } } - # A boolean value to filter the results by success or failure. - field :success, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'query_param': { 'field_name': 'success' } } + # Use a string with a date to only select results updated after that given date + field :updated_after, Crystalline::Nilable.new(::DateTime), { 'query_param': { 'field_name': 'updated_after' } } - sig { params(account_ids: T.nilable(::String), actions: T.nilable(::String), child_resources: T.nilable(::String), end_date: T.nilable(::DateTime), http_methods: T.nilable(::String), order_by: T.nilable(Models::Operations::QueryParamOrderBy), order_direction: T.nilable(Models::Operations::QueryParamOrderDirection), providers: T.nilable(::String), request_ids: T.nilable(::String), resources: T.nilable(::String), services: T.nilable(::String), source_ids: T.nilable(::String), source_types: T.nilable(::String), source_values: T.nilable(::String), start_date: T.nilable(::DateTime), status_codes: T.nilable(::String), sub_resources: T.nilable(::String), success: T.nilable(T::Boolean)).void } - def initialize(account_ids: nil, actions: nil, child_resources: nil, end_date: nil, http_methods: nil, order_by: nil, order_direction: nil, providers: nil, request_ids: nil, resources: nil, services: nil, source_ids: nil, source_types: nil, source_values: nil, start_date: nil, status_codes: nil, sub_resources: nil, success: nil) - @account_ids = account_ids - @actions = actions - @child_resources = child_resources - @end_date = end_date - @http_methods = http_methods - @order_by = order_by - @order_direction = order_direction - @providers = providers - @request_ids = request_ids - @resources = resources - @services = services - @source_ids = source_ids - @source_types = source_types - @source_values = source_values - @start_date = start_date - @status_codes = status_codes - @sub_resources = sub_resources - @success = success + sig { params(updated_after: T.nilable(::DateTime)).void } + def initialize(updated_after: nil) + @updated_after = updated_after end sig { params(other: T.untyped).returns(T::Boolean) } def ==(other) return false unless other.is_a? self.class - return false unless @account_ids == other.account_ids - return false unless @actions == other.actions - return false unless @child_resources == other.child_resources - return false unless @end_date == other.end_date - return false unless @http_methods == other.http_methods - return false unless @order_by == other.order_by - return false unless @order_direction == other.order_direction - return false unless @providers == other.providers - return false unless @request_ids == other.request_ids - return false unless @resources == other.resources - return false unless @services == other.services - return false unless @source_ids == other.source_ids - return false unless @source_types == other.source_types - return false unless @source_values == other.source_values - return false unless @start_date == other.start_date - return false unless @status_codes == other.status_codes - return false unless @sub_resources == other.sub_resources - return false unless @success == other.success + return false unless @updated_after == other.updated_after true end end diff --git a/lib/stack_one/models/operations/queryparam_filter.rbi b/lib/stack_one/models/operations/queryparam_filter.rbi index 596778ca8..c3595e006 100644 --- a/lib/stack_one/models/operations/queryparam_filter.rbi +++ b/lib/stack_one/models/operations/queryparam_filter.rbi @@ -8,40 +8,6 @@ end class StackOne::Models::Operations::QueryParamFilter - def account_ids(); end - def account_ids=(str_); end - def actions(); end - def actions=(str_); end - def child_resources(); end - def child_resources=(str_); end - def end_date(); end - def end_date=(str_); end - def http_methods(); end - def http_methods=(str_); end - def order_by(); end - def order_by=(str_); end - def order_direction(); end - def order_direction=(str_); end - def providers(); end - def providers=(str_); end - def request_ids(); end - def request_ids=(str_); end - def resources(); end - def resources=(str_); end - def services(); end - def services=(str_); end - def source_ids(); end - def source_ids=(str_); end - def source_types(); end - def source_types=(str_); end - def source_values(); end - def source_values=(str_); end - def start_date(); end - def start_date=(str_); end - def status_codes(); end - def status_codes=(str_); end - def sub_resources(); end - def sub_resources=(str_); end - def success(); end - def success=(str_); end + def updated_after(); end + def updated_after=(str_); end end diff --git a/lib/stack_one/models/operations/queryparam_include.rb b/lib/stack_one/models/operations/queryparam_include.rb deleted file mode 100644 index fa082d56e..000000000 --- a/lib/stack_one/models/operations/queryparam_include.rb +++ /dev/null @@ -1,19 +0,0 @@ -# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -# typed: true -# frozen_string_literal: true - - -module StackOne - module Models - module Operations - # QueryParamInclude - The include parameter allows you to include additional data in the response. - class QueryParamInclude < T::Enum - enums do - STEP_LOGS = new('step_logs') - ADVANCED_LOGS = new('advanced_logs') - end - end - end - end -end diff --git a/lib/stack_one/models/operations/queryparam_include.rbi b/lib/stack_one/models/operations/queryparam_include.rbi deleted file mode 100644 index 8d8f530ea..000000000 --- a/lib/stack_one/models/operations/queryparam_include.rbi +++ /dev/null @@ -1,11 +0,0 @@ -# typed: true -# frozen_string_literal: true - - -class StackOne::Models::Operations::QueryParamInclude - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class StackOne::Models::Operations::QueryParamInclude -end diff --git a/lib/stack_one/models/operations/queryparam_order_by.rb b/lib/stack_one/models/operations/queryparam_order_by.rb deleted file mode 100644 index de3b25dab..000000000 --- a/lib/stack_one/models/operations/queryparam_order_by.rb +++ /dev/null @@ -1,22 +0,0 @@ -# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -# typed: true -# frozen_string_literal: true - - -module StackOne - module Models - module Operations - # QueryParamOrderBy - The field to order the results by. - class QueryParamOrderBy < T::Enum - enums do - PROVIDER = new('provider') - SERVICE = new('service') - STATUS = new('status') - EVENT_DATETIME = new('eventDatetime') - DURATION = new('duration') - end - end - end - end -end diff --git a/lib/stack_one/models/operations/queryparam_order_by.rbi b/lib/stack_one/models/operations/queryparam_order_by.rbi deleted file mode 100644 index bcdcb24d8..000000000 --- a/lib/stack_one/models/operations/queryparam_order_by.rbi +++ /dev/null @@ -1,11 +0,0 @@ -# typed: true -# frozen_string_literal: true - - -class StackOne::Models::Operations::QueryParamOrderBy - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class StackOne::Models::Operations::QueryParamOrderBy -end diff --git a/lib/stack_one/models/operations/queryparam_order_direction.rbi b/lib/stack_one/models/operations/queryparam_order_direction.rbi deleted file mode 100644 index 532494fd8..000000000 --- a/lib/stack_one/models/operations/queryparam_order_direction.rbi +++ /dev/null @@ -1,11 +0,0 @@ -# typed: true -# frozen_string_literal: true - - -class StackOne::Models::Operations::QueryParamOrderDirection - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class StackOne::Models::Operations::QueryParamOrderDirection -end diff --git a/lib/stack_one/models/operations/stackone_get_log_request.rb b/lib/stack_one/models/operations/stackone_get_log_request.rb deleted file mode 100644 index 97af9c403..000000000 --- a/lib/stack_one/models/operations/stackone_get_log_request.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 StackoneGetLogRequest - extend T::Sig - include Crystalline::MetadataFields - - - field :id, ::String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } } - # The include parameter allows you to include additional data in the response. - field :include, Crystalline::Nilable.new(Models::Operations::QueryParamInclude), { 'query_param': { 'field_name': 'include', 'style': 'form', 'explode': true } } - - sig { params(id: ::String, include: T.nilable(Models::Operations::QueryParamInclude)).void } - def initialize(id:, include: nil) - @id = id - @include = include - end - - sig { params(other: T.untyped).returns(T::Boolean) } - def ==(other) - return false unless other.is_a? self.class - return false unless @id == other.id - return false unless @include == other.include - true - end - end - end - end -end diff --git a/lib/stack_one/models/operations/stackone_get_log_request.rbi b/lib/stack_one/models/operations/stackone_get_log_request.rbi deleted file mode 100644 index 114f111c3..000000000 --- a/lib/stack_one/models/operations/stackone_get_log_request.rbi +++ /dev/null @@ -1,15 +0,0 @@ -# typed: true -# frozen_string_literal: true - - -class StackOne::Models::Operations::StackoneGetLogRequest - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class StackOne::Models::Operations::StackoneGetLogRequest - def id(); end - def id=(str_); end - def include(); end - def include=(str_); end -end diff --git a/lib/stack_one/models/operations/stackone_get_log_response.rb b/lib/stack_one/models/operations/stackone_get_log_response.rb deleted file mode 100644 index a741b1205..000000000 --- a/lib/stack_one/models/operations/stackone_get_log_response.rb +++ /dev/null @@ -1,48 +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 StackoneGetLogResponse - 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 - # The log was retrieved. - field :unified_log_result_legacy, Crystalline::Nilable.new(Models::Shared::UnifiedLogResultLegacy) - - sig { params(content_type: ::String, headers: T::Hash[Symbol, T::Array[::String]], status_code: ::Integer, raw_response: ::Faraday::Response, unified_log_result_legacy: T.nilable(Models::Shared::UnifiedLogResultLegacy)).void } - def initialize(content_type:, headers:, status_code:, raw_response:, unified_log_result_legacy: nil) - @content_type = content_type - @headers = headers - @status_code = status_code - @raw_response = raw_response - @unified_log_result_legacy = unified_log_result_legacy - 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 - return false unless @unified_log_result_legacy == other.unified_log_result_legacy - true - end - end - end - end -end diff --git a/lib/stack_one/models/operations/stackone_get_log_response.rbi b/lib/stack_one/models/operations/stackone_get_log_response.rbi deleted file mode 100644 index 92b4ab8b6..000000000 --- a/lib/stack_one/models/operations/stackone_get_log_response.rbi +++ /dev/null @@ -1,21 +0,0 @@ -# typed: true -# frozen_string_literal: true - - -class StackOne::Models::Operations::StackoneGetLogResponse - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class StackOne::Models::Operations::StackoneGetLogResponse - 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 - def unified_log_result_legacy(); end - def unified_log_result_legacy=(str_); end -end diff --git a/lib/stack_one/models/operations/stackone_get_logs_stats_dimensions_response.rb b/lib/stack_one/models/operations/stackone_get_logs_stats_dimensions_response.rb index 27a1e1c7b..54d3cf5ae 100644 --- a/lib/stack_one/models/operations/stackone_get_logs_stats_dimensions_response.rb +++ b/lib/stack_one/models/operations/stackone_get_logs_stats_dimensions_response.rb @@ -20,13 +20,16 @@ class StackoneGetLogsStatsDimensionsResponse field :status_code, ::Integer # Raw HTTP response; suitable for custom response parsing field :raw_response, ::Faraday::Response + # The dimension values were retrieved. + field :logs_dimensions, Crystalline::Nilable.new(Models::Shared::LogsDimensions) - 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:) + sig { params(content_type: ::String, headers: T::Hash[Symbol, T::Array[::String]], status_code: ::Integer, raw_response: ::Faraday::Response, logs_dimensions: T.nilable(Models::Shared::LogsDimensions)).void } + def initialize(content_type:, headers:, status_code:, raw_response:, logs_dimensions: nil) @content_type = content_type @headers = headers @status_code = status_code @raw_response = raw_response + @logs_dimensions = logs_dimensions end sig { params(other: T.untyped).returns(T::Boolean) } @@ -36,6 +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 @logs_dimensions == other.logs_dimensions true end end diff --git a/lib/stack_one/models/operations/stackone_get_logs_stats_dimensions_response.rbi b/lib/stack_one/models/operations/stackone_get_logs_stats_dimensions_response.rbi index eafb55bdb..2a87e7ac3 100644 --- a/lib/stack_one/models/operations/stackone_get_logs_stats_dimensions_response.rbi +++ b/lib/stack_one/models/operations/stackone_get_logs_stats_dimensions_response.rbi @@ -16,4 +16,6 @@ class StackOne::Models::Operations::StackoneGetLogsStatsDimensionsResponse def status_code=(str_); end def raw_response(); end def raw_response=(str_); end + def logs_dimensions(); end + def logs_dimensions=(str_); end end diff --git a/lib/stack_one/models/operations/stackone_list_logs_legacy_queryparam_include.rb b/lib/stack_one/models/operations/stackone_list_logs_legacy_queryparam_include.rb deleted file mode 100644 index d8887430e..000000000 --- a/lib/stack_one/models/operations/stackone_list_logs_legacy_queryparam_include.rb +++ /dev/null @@ -1,18 +0,0 @@ -# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -# typed: true -# frozen_string_literal: true - - -module StackOne - module Models - module Operations - # StackoneListLogsLegacyQueryParamInclude - The include parameter allows you to include additional data in the response. - class StackoneListLogsLegacyQueryParamInclude < T::Enum - enums do - STEP_LOGS = new('step_logs') - end - end - end - end -end diff --git a/lib/stack_one/models/operations/stackone_list_logs_legacy_queryparam_include.rbi b/lib/stack_one/models/operations/stackone_list_logs_legacy_queryparam_include.rbi deleted file mode 100644 index ec344a52f..000000000 --- a/lib/stack_one/models/operations/stackone_list_logs_legacy_queryparam_include.rbi +++ /dev/null @@ -1,11 +0,0 @@ -# typed: true -# frozen_string_literal: true - - -class StackOne::Models::Operations::StackoneListLogsLegacyQueryParamInclude - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class StackOne::Models::Operations::StackoneListLogsLegacyQueryParamInclude -end diff --git a/lib/stack_one/models/operations/stackone_list_logs_legacy_request.rb b/lib/stack_one/models/operations/stackone_list_logs_legacy_request.rb deleted file mode 100644 index 4a35c4f58..000000000 --- a/lib/stack_one/models/operations/stackone_list_logs_legacy_request.rb +++ /dev/null @@ -1,52 +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 StackoneListLogsLegacyRequest - extend T::Sig - include Crystalline::MetadataFields - - # Filter parameters that allow greater customisation of the list response - field :filter, Crystalline::Nilable.new(Models::Operations::QueryParamFilter), { 'query_param': { 'field_name': 'filter', 'style': 'form', 'explode': true } } - # The include parameter allows you to include additional data in the response. - field :include, Crystalline::Nilable.new(Models::Operations::StackoneListLogsLegacyQueryParamInclude), { 'query_param': { 'field_name': 'include', 'style': 'form', 'explode': true } } - # The unified cursor - field :next_, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } } - # The field to order the results by. - field :order_by, Crystalline::Nilable.new(Models::Operations::OrderBy), { 'query_param': { 'field_name': 'order_by', 'style': 'form', 'explode': true } } - # The direction to order the results by. - field :order_direction, Crystalline::Nilable.new(Models::Operations::OrderDirection), { 'query_param': { 'field_name': 'order_direction', 'style': 'form', 'explode': true } } - # The number of results per page (default value is 25) - field :page_size, Crystalline::Nilable.new(::Float), { 'query_param': { 'field_name': 'page_size', 'style': 'form', 'explode': true } } - - sig { params(filter: T.nilable(Models::Operations::QueryParamFilter), include: T.nilable(Models::Operations::StackoneListLogsLegacyQueryParamInclude), next_: T.nilable(::String), order_by: T.nilable(Models::Operations::OrderBy), order_direction: T.nilable(Models::Operations::OrderDirection), page_size: T.nilable(::Float)).void } - def initialize(filter: nil, include: nil, next_: nil, order_by: nil, order_direction: nil, page_size: nil) - @filter = filter - @include = include - @next_ = next_ - @order_by = order_by - @order_direction = order_direction - @page_size = page_size - end - - sig { params(other: T.untyped).returns(T::Boolean) } - def ==(other) - return false unless other.is_a? self.class - return false unless @filter == other.filter - return false unless @include == other.include - return false unless @next_ == other.next_ - return false unless @order_by == other.order_by - return false unless @order_direction == other.order_direction - return false unless @page_size == other.page_size - true - end - end - end - end -end diff --git a/lib/stack_one/models/operations/stackone_list_logs_legacy_request.rbi b/lib/stack_one/models/operations/stackone_list_logs_legacy_request.rbi deleted file mode 100644 index a2940c9d9..000000000 --- a/lib/stack_one/models/operations/stackone_list_logs_legacy_request.rbi +++ /dev/null @@ -1,23 +0,0 @@ -# typed: true -# frozen_string_literal: true - - -class StackOne::Models::Operations::StackoneListLogsLegacyRequest - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class StackOne::Models::Operations::StackoneListLogsLegacyRequest - def filter(); end - def filter=(str_); end - def include(); end - def include=(str_); end - def next_(); end - def next_=(str_); end - def order_by(); end - def order_by=(str_); end - def order_direction(); end - def order_direction=(str_); end - def page_size(); end - def page_size=(str_); end -end diff --git a/lib/stack_one/models/operations/stackone_list_logs_legacy_response.rb b/lib/stack_one/models/operations/stackone_list_logs_legacy_response.rb deleted file mode 100644 index 7b742f461..000000000 --- a/lib/stack_one/models/operations/stackone_list_logs_legacy_response.rb +++ /dev/null @@ -1,48 +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 StackoneListLogsLegacyResponse - 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 - # The list of logs was retrieved. - field :unified_logs_paginated_legacy, Crystalline::Nilable.new(Models::Shared::UnifiedLogsPaginatedLegacy) - - sig { params(content_type: ::String, headers: T::Hash[Symbol, T::Array[::String]], status_code: ::Integer, raw_response: ::Faraday::Response, unified_logs_paginated_legacy: T.nilable(Models::Shared::UnifiedLogsPaginatedLegacy)).void } - def initialize(content_type:, headers:, status_code:, raw_response:, unified_logs_paginated_legacy: nil) - @content_type = content_type - @headers = headers - @status_code = status_code - @raw_response = raw_response - @unified_logs_paginated_legacy = unified_logs_paginated_legacy - 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 - return false unless @unified_logs_paginated_legacy == other.unified_logs_paginated_legacy - true - end - end - end - end -end diff --git a/lib/stack_one/models/operations/stackone_list_logs_legacy_response.rbi b/lib/stack_one/models/operations/stackone_list_logs_legacy_response.rbi deleted file mode 100644 index a0aaa69c8..000000000 --- a/lib/stack_one/models/operations/stackone_list_logs_legacy_response.rbi +++ /dev/null @@ -1,21 +0,0 @@ -# typed: true -# frozen_string_literal: true - - -class StackOne::Models::Operations::StackoneListLogsLegacyResponse - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class StackOne::Models::Operations::StackoneListLogsLegacyResponse - 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 - def unified_logs_paginated_legacy(); end - def unified_logs_paginated_legacy=(str_); end -end diff --git a/lib/stack_one/models/operations/stackone_list_logs_request.rb b/lib/stack_one/models/operations/stackone_list_logs_request.rb new file mode 100644 index 000000000..d453c70d7 --- /dev/null +++ b/lib/stack_one/models/operations/stackone_list_logs_request.rb @@ -0,0 +1,36 @@ +# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +# typed: true +# frozen_string_literal: true + + +module StackOne + module Models + module Operations + + class StackoneListLogsRequest + extend T::Sig + include Crystalline::MetadataFields + + + field :logs_post_dto, Models::Shared::LogsPostDto, { 'request': { 'media_type': 'application/json' } } + # A comma-separated list of additional fields to expand. Supported values: `connector` (the connector display data — name, logo, categories — for each row). Omitted unless requested, as resolving it is more expensive. `connector_key`, `connector_version` and `connector_owner` are always returned regardless. + field :expand, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'expand', 'style': 'form', 'explode': true } } + + sig { params(logs_post_dto: Models::Shared::LogsPostDto, expand: T.nilable(::String)).void } + def initialize(logs_post_dto:, expand: nil) + @logs_post_dto = logs_post_dto + @expand = expand + end + + sig { params(other: T.untyped).returns(T::Boolean) } + def ==(other) + return false unless other.is_a? self.class + return false unless @logs_post_dto == other.logs_post_dto + return false unless @expand == other.expand + true + end + end + end + end +end diff --git a/lib/stack_one/models/operations/stackone_list_logs_request.rbi b/lib/stack_one/models/operations/stackone_list_logs_request.rbi new file mode 100644 index 000000000..15ad5f471 --- /dev/null +++ b/lib/stack_one/models/operations/stackone_list_logs_request.rbi @@ -0,0 +1,15 @@ +# typed: true +# frozen_string_literal: true + + +class StackOne::Models::Operations::StackoneListLogsRequest + extend ::Crystalline::MetadataFields::ClassMethods +end + + +class StackOne::Models::Operations::StackoneListLogsRequest + def logs_post_dto(); end + def logs_post_dto=(str_); end + def expand(); end + def expand=(str_); end +end diff --git a/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_filter.rb b/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_filter.rb deleted file mode 100644 index f0beba2d5..000000000 --- a/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_filter.rb +++ /dev/null @@ -1,88 +0,0 @@ -# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -# typed: true -# frozen_string_literal: true - - -module StackOne - module Models - module Operations - # Filter parameters that allow greater customisation of the list response - class StackoneListPlatformLogsQueryParamFilter - extend T::Sig - include Crystalline::MetadataFields - - # A comma-separated list of account IDs to filter the results by. - field :account_ids, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'account_ids' } } - # A comma-separated list of actions to filter the results by. - field :actions, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'actions' } } - # A comma-separated list of categories to filter the results by. - field :categories, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'categories' } } - # A ISO8601 date string to filter the results by end_date. - field :end_date, Crystalline::Nilable.new(::DateTime), { 'query_param': { 'field_name': 'end_date' } } - # A comma-separated list of HTTP methods to filter the results by. - field :http_methods, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'http_methods' } } - # The field to order the results by. - field :order_by, Crystalline::Nilable.new(Models::Operations::StackoneListPlatformLogsQueryParamRequestLogsOrderBy), { 'query_param': { 'field_name': 'order_by' } } - # The direction to order the results by. - field :order_direction, Crystalline::Nilable.new(Models::Operations::StackoneListPlatformLogsQueryParamRequestLogsOrderDirection), { 'query_param': { 'field_name': 'order_direction' } } - # A comma-separated list of request IDs to filter the results by. - field :request_ids, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'request_ids' } } - # A comma-separated list of resources to filter the results by. - field :resources, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'resources' } } - # A comma-separated list of source IDs to filter the results by. - field :source_ids, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'source_ids' } } - # A comma-separated list of source types to filter the results by. - field :source_types, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'source_types' } } - # A comma-separated list of source values to filter the results by. - field :source_values, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'source_values' } } - # A ISO8601 date string to filter the results by start_date. - field :start_date, Crystalline::Nilable.new(::DateTime), { 'query_param': { 'field_name': 'start_date' } } - # A comma-separated list of status codes to filter the results by. - field :status_codes, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'status_codes' } } - # A boolean value to filter the results by success or failure. - field :success, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'query_param': { 'field_name': 'success' } } - - sig { params(account_ids: T.nilable(::String), actions: T.nilable(::String), categories: T.nilable(::String), end_date: T.nilable(::DateTime), http_methods: T.nilable(::String), order_by: T.nilable(Models::Operations::StackoneListPlatformLogsQueryParamRequestLogsOrderBy), order_direction: T.nilable(Models::Operations::StackoneListPlatformLogsQueryParamRequestLogsOrderDirection), request_ids: T.nilable(::String), resources: T.nilable(::String), source_ids: T.nilable(::String), source_types: T.nilable(::String), source_values: T.nilable(::String), start_date: T.nilable(::DateTime), status_codes: T.nilable(::String), success: T.nilable(T::Boolean)).void } - def initialize(account_ids: nil, actions: nil, categories: nil, end_date: nil, http_methods: nil, order_by: nil, order_direction: nil, request_ids: nil, resources: nil, source_ids: nil, source_types: nil, source_values: nil, start_date: nil, status_codes: nil, success: nil) - @account_ids = account_ids - @actions = actions - @categories = categories - @end_date = end_date - @http_methods = http_methods - @order_by = order_by - @order_direction = order_direction - @request_ids = request_ids - @resources = resources - @source_ids = source_ids - @source_types = source_types - @source_values = source_values - @start_date = start_date - @status_codes = status_codes - @success = success - end - - sig { params(other: T.untyped).returns(T::Boolean) } - def ==(other) - return false unless other.is_a? self.class - return false unless @account_ids == other.account_ids - return false unless @actions == other.actions - return false unless @categories == other.categories - return false unless @end_date == other.end_date - return false unless @http_methods == other.http_methods - return false unless @order_by == other.order_by - return false unless @order_direction == other.order_direction - return false unless @request_ids == other.request_ids - return false unless @resources == other.resources - return false unless @source_ids == other.source_ids - return false unless @source_types == other.source_types - return false unless @source_values == other.source_values - return false unless @start_date == other.start_date - return false unless @status_codes == other.status_codes - return false unless @success == other.success - true - end - end - end - end -end diff --git a/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_filter.rbi b/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_filter.rbi deleted file mode 100644 index dddd933fc..000000000 --- a/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_filter.rbi +++ /dev/null @@ -1,41 +0,0 @@ -# typed: true -# frozen_string_literal: true - - -class StackOne::Models::Operations::StackoneListPlatformLogsQueryParamFilter - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class StackOne::Models::Operations::StackoneListPlatformLogsQueryParamFilter - def account_ids(); end - def account_ids=(str_); end - def actions(); end - def actions=(str_); end - def categories(); end - def categories=(str_); end - def end_date(); end - def end_date=(str_); end - def http_methods(); end - def http_methods=(str_); end - def order_by(); end - def order_by=(str_); end - def order_direction(); end - def order_direction=(str_); end - def request_ids(); end - def request_ids=(str_); end - def resources(); end - def resources=(str_); end - def source_ids(); end - def source_ids=(str_); end - def source_types(); end - def source_types=(str_); end - def source_values(); end - def source_values=(str_); end - def start_date(); end - def start_date=(str_); end - def status_codes(); end - def status_codes=(str_); end - def success(); end - def success=(str_); end -end diff --git a/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_order_by.rb b/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_order_by.rb deleted file mode 100644 index ea92803a4..000000000 --- a/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_order_by.rb +++ /dev/null @@ -1,22 +0,0 @@ -# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -# typed: true -# frozen_string_literal: true - - -module StackOne - module Models - module Operations - # StackoneListPlatformLogsQueryParamOrderBy - The field to order the results by. - class StackoneListPlatformLogsQueryParamOrderBy < T::Enum - enums do - PROVIDER = new('provider') - SERVICE = new('service') - STATUS = new('status') - EVENT_DATETIME = new('eventDatetime') - DURATION = new('duration') - end - end - end - end -end diff --git a/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_order_by.rbi b/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_order_by.rbi deleted file mode 100644 index 463a88e72..000000000 --- a/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_order_by.rbi +++ /dev/null @@ -1,11 +0,0 @@ -# typed: true -# frozen_string_literal: true - - -class StackOne::Models::Operations::StackoneListPlatformLogsQueryParamOrderBy - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class StackOne::Models::Operations::StackoneListPlatformLogsQueryParamOrderBy -end diff --git a/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_order_direction.rb b/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_order_direction.rb deleted file mode 100644 index a7f282726..000000000 --- a/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_order_direction.rb +++ /dev/null @@ -1,19 +0,0 @@ -# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -# typed: true -# frozen_string_literal: true - - -module StackOne - module Models - module Operations - # StackoneListPlatformLogsQueryParamOrderDirection - The direction to order the results by. - class StackoneListPlatformLogsQueryParamOrderDirection < T::Enum - enums do - ASC = new('asc') - DESC = new('desc') - end - end - end - end -end diff --git a/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_order_direction.rbi b/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_order_direction.rbi deleted file mode 100644 index 8da01a189..000000000 --- a/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_order_direction.rbi +++ /dev/null @@ -1,11 +0,0 @@ -# typed: true -# frozen_string_literal: true - - -class StackOne::Models::Operations::StackoneListPlatformLogsQueryParamOrderDirection - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class StackOne::Models::Operations::StackoneListPlatformLogsQueryParamOrderDirection -end diff --git a/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_request_logs_order_by.rb b/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_request_logs_order_by.rb deleted file mode 100644 index 2d7fc6887..000000000 --- a/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_request_logs_order_by.rb +++ /dev/null @@ -1,22 +0,0 @@ -# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -# typed: true -# frozen_string_literal: true - - -module StackOne - module Models - module Operations - # StackoneListPlatformLogsQueryParamRequestLogsOrderBy - The field to order the results by. - class StackoneListPlatformLogsQueryParamRequestLogsOrderBy < T::Enum - enums do - PROVIDER = new('provider') - SERVICE = new('service') - STATUS = new('status') - EVENT_DATETIME = new('eventDatetime') - DURATION = new('duration') - end - end - end - end -end diff --git a/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_request_logs_order_by.rbi b/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_request_logs_order_by.rbi deleted file mode 100644 index f1a11e2da..000000000 --- a/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_request_logs_order_by.rbi +++ /dev/null @@ -1,11 +0,0 @@ -# typed: true -# frozen_string_literal: true - - -class StackOne::Models::Operations::StackoneListPlatformLogsQueryParamRequestLogsOrderBy - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class StackOne::Models::Operations::StackoneListPlatformLogsQueryParamRequestLogsOrderBy -end diff --git a/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_request_logs_order_direction.rb b/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_request_logs_order_direction.rb deleted file mode 100644 index 39d4e6da7..000000000 --- a/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_request_logs_order_direction.rb +++ /dev/null @@ -1,19 +0,0 @@ -# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -# typed: true -# frozen_string_literal: true - - -module StackOne - module Models - module Operations - # StackoneListPlatformLogsQueryParamRequestLogsOrderDirection - The direction to order the results by. - class StackoneListPlatformLogsQueryParamRequestLogsOrderDirection < T::Enum - enums do - ASC = new('asc') - DESC = new('desc') - end - end - end - end -end diff --git a/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_request_logs_order_direction.rbi b/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_request_logs_order_direction.rbi deleted file mode 100644 index 504eaa992..000000000 --- a/lib/stack_one/models/operations/stackone_list_platform_logs_queryparam_request_logs_order_direction.rbi +++ /dev/null @@ -1,11 +0,0 @@ -# typed: true -# frozen_string_literal: true - - -class StackOne::Models::Operations::StackoneListPlatformLogsQueryParamRequestLogsOrderDirection - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class StackOne::Models::Operations::StackoneListPlatformLogsQueryParamRequestLogsOrderDirection -end diff --git a/lib/stack_one/models/operations/stackone_list_platform_logs_request.rb b/lib/stack_one/models/operations/stackone_list_platform_logs_request.rb deleted file mode 100644 index ae301a904..000000000 --- a/lib/stack_one/models/operations/stackone_list_platform_logs_request.rb +++ /dev/null @@ -1,48 +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 StackoneListPlatformLogsRequest - extend T::Sig - include Crystalline::MetadataFields - - # Filter parameters that allow greater customisation of the list response - field :filter, Crystalline::Nilable.new(Models::Operations::StackoneListPlatformLogsQueryParamFilter), { 'query_param': { 'field_name': 'filter', 'style': 'form', 'explode': true } } - # The unified cursor - field :next_, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } } - # The field to order the results by. - field :order_by, Crystalline::Nilable.new(Models::Operations::StackoneListPlatformLogsQueryParamOrderBy), { 'query_param': { 'field_name': 'order_by', 'style': 'form', 'explode': true } } - # The direction to order the results by. - field :order_direction, Crystalline::Nilable.new(Models::Operations::StackoneListPlatformLogsQueryParamOrderDirection), { 'query_param': { 'field_name': 'order_direction', 'style': 'form', 'explode': true } } - # The number of results per page (default value is 25) - field :page_size, Crystalline::Nilable.new(::Float), { 'query_param': { 'field_name': 'page_size', 'style': 'form', 'explode': true } } - - sig { params(filter: T.nilable(Models::Operations::StackoneListPlatformLogsQueryParamFilter), next_: T.nilable(::String), order_by: T.nilable(Models::Operations::StackoneListPlatformLogsQueryParamOrderBy), order_direction: T.nilable(Models::Operations::StackoneListPlatformLogsQueryParamOrderDirection), page_size: T.nilable(::Float)).void } - def initialize(filter: nil, next_: nil, order_by: nil, order_direction: nil, page_size: nil) - @filter = filter - @next_ = next_ - @order_by = order_by - @order_direction = order_direction - @page_size = page_size - end - - sig { params(other: T.untyped).returns(T::Boolean) } - def ==(other) - return false unless other.is_a? self.class - return false unless @filter == other.filter - return false unless @next_ == other.next_ - return false unless @order_by == other.order_by - return false unless @order_direction == other.order_direction - return false unless @page_size == other.page_size - true - end - end - end - end -end diff --git a/lib/stack_one/models/operations/stackone_list_platform_logs_request.rbi b/lib/stack_one/models/operations/stackone_list_platform_logs_request.rbi deleted file mode 100644 index 4eb2b9e90..000000000 --- a/lib/stack_one/models/operations/stackone_list_platform_logs_request.rbi +++ /dev/null @@ -1,21 +0,0 @@ -# typed: true -# frozen_string_literal: true - - -class StackOne::Models::Operations::StackoneListPlatformLogsRequest - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class StackOne::Models::Operations::StackoneListPlatformLogsRequest - def filter(); end - def filter=(str_); end - def next_(); end - def next_=(str_); end - def order_by(); end - def order_by=(str_); end - def order_direction(); end - def order_direction=(str_); end - def page_size(); end - def page_size=(str_); end -end diff --git a/lib/stack_one/models/operations/stackone_list_platform_logs_response.rb b/lib/stack_one/models/operations/stackone_list_platform_logs_response.rb index 0d4aec6dc..708256608 100644 --- a/lib/stack_one/models/operations/stackone_list_platform_logs_response.rb +++ b/lib/stack_one/models/operations/stackone_list_platform_logs_response.rb @@ -21,15 +21,15 @@ class StackoneListPlatformLogsResponse # Raw HTTP response; suitable for custom response parsing field :raw_response, ::Faraday::Response # The list of platform logs was retrieved. - field :platform_logs_paginated_legacy, Crystalline::Nilable.new(Models::Shared::PlatformLogsPaginatedLegacy) + field :platform_logs_paginated, Crystalline::Nilable.new(Models::Shared::PlatformLogsPaginated) - sig { params(content_type: ::String, headers: T::Hash[Symbol, T::Array[::String]], status_code: ::Integer, raw_response: ::Faraday::Response, platform_logs_paginated_legacy: T.nilable(Models::Shared::PlatformLogsPaginatedLegacy)).void } - def initialize(content_type:, headers:, status_code:, raw_response:, platform_logs_paginated_legacy: nil) + sig { params(content_type: ::String, headers: T::Hash[Symbol, T::Array[::String]], status_code: ::Integer, raw_response: ::Faraday::Response, platform_logs_paginated: T.nilable(Models::Shared::PlatformLogsPaginated)).void } + def initialize(content_type:, headers:, status_code:, raw_response:, platform_logs_paginated: nil) @content_type = content_type @headers = headers @status_code = status_code @raw_response = raw_response - @platform_logs_paginated_legacy = platform_logs_paginated_legacy + @platform_logs_paginated = platform_logs_paginated 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 @platform_logs_paginated_legacy == other.platform_logs_paginated_legacy + return false unless @platform_logs_paginated == other.platform_logs_paginated true end end diff --git a/lib/stack_one/models/operations/stackone_list_platform_logs_response.rbi b/lib/stack_one/models/operations/stackone_list_platform_logs_response.rbi index 19930ad4f..a3ebd621f 100644 --- a/lib/stack_one/models/operations/stackone_list_platform_logs_response.rbi +++ b/lib/stack_one/models/operations/stackone_list_platform_logs_response.rbi @@ -16,6 +16,6 @@ class StackOne::Models::Operations::StackoneListPlatformLogsResponse def status_code=(str_); end def raw_response(); end def raw_response=(str_); end - def platform_logs_paginated_legacy(); end - def platform_logs_paginated_legacy=(str_); end + def platform_logs_paginated(); end + def platform_logs_paginated=(str_); end end diff --git a/lib/stack_one/models/operations/stackone_list_step_logs_legacy_queryparam_filter.rb b/lib/stack_one/models/operations/stackone_list_step_logs_legacy_queryparam_filter.rb deleted file mode 100644 index 888fd45fe..000000000 --- a/lib/stack_one/models/operations/stackone_list_step_logs_legacy_queryparam_filter.rb +++ /dev/null @@ -1,80 +0,0 @@ -# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -# typed: true -# frozen_string_literal: true - - -module StackOne - module Models - module Operations - # Filter parameters that allow greater customisation of the list response - class StackoneListStepLogsLegacyQueryParamFilter - extend T::Sig - include Crystalline::MetadataFields - - # A comma-separated list of account IDs to filter the results by. - field :account_ids, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'account_ids' } } - # A comma-separated list of actions to filter the results by. - field :actions, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'actions' } } - # A comma-separated list of child resources to filter the results by. - field :child_resources, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'child_resources' } } - # A ISO8601 date string to filter the results by end_date. - field :end_date, Crystalline::Nilable.new(::DateTime), { 'query_param': { 'field_name': 'end_date' } } - # A comma-separated list of HTTP methods to filter the results by. - field :http_methods, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'http_methods' } } - # A comma-separated list of provider keys to filter the results by. - field :providers, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'providers' } } - # A comma-separated list of request IDs to filter the results by. - field :request_ids, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'request_ids' } } - # A comma-separated list of resources to filter the results by. - field :resources, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'resources' } } - # A comma-separated list of services to filter the results by. - field :services, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'services' } } - # A ISO8601 date string to filter the results by start_date. - field :start_date, Crystalline::Nilable.new(::DateTime), { 'query_param': { 'field_name': 'start_date' } } - # A comma-separated list of status codes to filter the results by. - field :status_codes, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'status_codes' } } - # A comma-separated list of sub resources to filter the results by. - field :sub_resources, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'sub_resources' } } - # A boolean value to filter the results by success or failure. - field :success, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'query_param': { 'field_name': 'success' } } - - sig { params(account_ids: T.nilable(::String), actions: T.nilable(::String), child_resources: T.nilable(::String), end_date: T.nilable(::DateTime), http_methods: T.nilable(::String), providers: T.nilable(::String), request_ids: T.nilable(::String), resources: T.nilable(::String), services: T.nilable(::String), start_date: T.nilable(::DateTime), status_codes: T.nilable(::String), sub_resources: T.nilable(::String), success: T.nilable(T::Boolean)).void } - def initialize(account_ids: nil, actions: nil, child_resources: nil, end_date: nil, http_methods: nil, providers: nil, request_ids: nil, resources: nil, services: nil, start_date: nil, status_codes: nil, sub_resources: nil, success: nil) - @account_ids = account_ids - @actions = actions - @child_resources = child_resources - @end_date = end_date - @http_methods = http_methods - @providers = providers - @request_ids = request_ids - @resources = resources - @services = services - @start_date = start_date - @status_codes = status_codes - @sub_resources = sub_resources - @success = success - end - - sig { params(other: T.untyped).returns(T::Boolean) } - def ==(other) - return false unless other.is_a? self.class - return false unless @account_ids == other.account_ids - return false unless @actions == other.actions - return false unless @child_resources == other.child_resources - return false unless @end_date == other.end_date - return false unless @http_methods == other.http_methods - return false unless @providers == other.providers - return false unless @request_ids == other.request_ids - return false unless @resources == other.resources - return false unless @services == other.services - return false unless @start_date == other.start_date - return false unless @status_codes == other.status_codes - return false unless @sub_resources == other.sub_resources - return false unless @success == other.success - true - end - end - end - end -end diff --git a/lib/stack_one/models/operations/stackone_list_step_logs_legacy_queryparam_filter.rbi b/lib/stack_one/models/operations/stackone_list_step_logs_legacy_queryparam_filter.rbi deleted file mode 100644 index b3320db79..000000000 --- a/lib/stack_one/models/operations/stackone_list_step_logs_legacy_queryparam_filter.rbi +++ /dev/null @@ -1,37 +0,0 @@ -# typed: true -# frozen_string_literal: true - - -class StackOne::Models::Operations::StackoneListStepLogsLegacyQueryParamFilter - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class StackOne::Models::Operations::StackoneListStepLogsLegacyQueryParamFilter - def account_ids(); end - def account_ids=(str_); end - def actions(); end - def actions=(str_); end - def child_resources(); end - def child_resources=(str_); end - def end_date(); end - def end_date=(str_); end - def http_methods(); end - def http_methods=(str_); end - def providers(); end - def providers=(str_); end - def request_ids(); end - def request_ids=(str_); end - def resources(); end - def resources=(str_); end - def services(); end - def services=(str_); end - def start_date(); end - def start_date=(str_); end - def status_codes(); end - def status_codes=(str_); end - def sub_resources(); end - def sub_resources=(str_); end - def success(); end - def success=(str_); end -end diff --git a/lib/stack_one/models/operations/stackone_list_step_logs_legacy_queryparam_order_by.rb b/lib/stack_one/models/operations/stackone_list_step_logs_legacy_queryparam_order_by.rb deleted file mode 100644 index f189d76ce..000000000 --- a/lib/stack_one/models/operations/stackone_list_step_logs_legacy_queryparam_order_by.rb +++ /dev/null @@ -1,22 +0,0 @@ -# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -# typed: true -# frozen_string_literal: true - - -module StackOne - module Models - module Operations - # StackoneListStepLogsLegacyQueryParamOrderBy - The field to order the results by. - class StackoneListStepLogsLegacyQueryParamOrderBy < T::Enum - enums do - PROVIDER = new('provider') - SERVICE = new('service') - STATUS = new('status') - EVENT_DATETIME = new('eventDatetime') - DURATION = new('duration') - end - end - end - end -end diff --git a/lib/stack_one/models/operations/stackone_list_step_logs_legacy_queryparam_order_by.rbi b/lib/stack_one/models/operations/stackone_list_step_logs_legacy_queryparam_order_by.rbi deleted file mode 100644 index 692b37ec5..000000000 --- a/lib/stack_one/models/operations/stackone_list_step_logs_legacy_queryparam_order_by.rbi +++ /dev/null @@ -1,11 +0,0 @@ -# typed: true -# frozen_string_literal: true - - -class StackOne::Models::Operations::StackoneListStepLogsLegacyQueryParamOrderBy - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class StackOne::Models::Operations::StackoneListStepLogsLegacyQueryParamOrderBy -end diff --git a/lib/stack_one/models/operations/stackone_list_step_logs_legacy_queryparam_order_direction.rb b/lib/stack_one/models/operations/stackone_list_step_logs_legacy_queryparam_order_direction.rb deleted file mode 100644 index dbe236072..000000000 --- a/lib/stack_one/models/operations/stackone_list_step_logs_legacy_queryparam_order_direction.rb +++ /dev/null @@ -1,19 +0,0 @@ -# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -# typed: true -# frozen_string_literal: true - - -module StackOne - module Models - module Operations - # StackoneListStepLogsLegacyQueryParamOrderDirection - The direction to order the results by. - class StackoneListStepLogsLegacyQueryParamOrderDirection < T::Enum - enums do - ASC = new('asc') - DESC = new('desc') - end - end - end - end -end diff --git a/lib/stack_one/models/operations/stackone_list_step_logs_legacy_queryparam_order_direction.rbi b/lib/stack_one/models/operations/stackone_list_step_logs_legacy_queryparam_order_direction.rbi deleted file mode 100644 index 143ee6bf6..000000000 --- a/lib/stack_one/models/operations/stackone_list_step_logs_legacy_queryparam_order_direction.rbi +++ /dev/null @@ -1,11 +0,0 @@ -# typed: true -# frozen_string_literal: true - - -class StackOne::Models::Operations::StackoneListStepLogsLegacyQueryParamOrderDirection - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class StackOne::Models::Operations::StackoneListStepLogsLegacyQueryParamOrderDirection -end diff --git a/lib/stack_one/models/operations/stackone_list_step_logs_legacy_request.rb b/lib/stack_one/models/operations/stackone_list_step_logs_legacy_request.rb deleted file mode 100644 index 073b6b2fc..000000000 --- a/lib/stack_one/models/operations/stackone_list_step_logs_legacy_request.rb +++ /dev/null @@ -1,48 +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 StackoneListStepLogsLegacyRequest - extend T::Sig - include Crystalline::MetadataFields - - # Filter parameters that allow greater customisation of the list response - field :filter, Crystalline::Nilable.new(Models::Operations::StackoneListStepLogsLegacyQueryParamFilter), { 'query_param': { 'field_name': 'filter', 'style': 'form', 'explode': true } } - # The unified cursor - field :next_, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'next', 'style': 'form', 'explode': true } } - # The field to order the results by. - field :order_by, Crystalline::Nilable.new(Models::Operations::StackoneListStepLogsLegacyQueryParamOrderBy), { 'query_param': { 'field_name': 'order_by', 'style': 'form', 'explode': true } } - # The direction to order the results by. - field :order_direction, Crystalline::Nilable.new(Models::Operations::StackoneListStepLogsLegacyQueryParamOrderDirection), { 'query_param': { 'field_name': 'order_direction', 'style': 'form', 'explode': true } } - # The number of results per page (default value is 25) - field :page_size, Crystalline::Nilable.new(::Float), { 'query_param': { 'field_name': 'page_size', 'style': 'form', 'explode': true } } - - sig { params(filter: T.nilable(Models::Operations::StackoneListStepLogsLegacyQueryParamFilter), next_: T.nilable(::String), order_by: T.nilable(Models::Operations::StackoneListStepLogsLegacyQueryParamOrderBy), order_direction: T.nilable(Models::Operations::StackoneListStepLogsLegacyQueryParamOrderDirection), page_size: T.nilable(::Float)).void } - def initialize(filter: nil, next_: nil, order_by: nil, order_direction: nil, page_size: nil) - @filter = filter - @next_ = next_ - @order_by = order_by - @order_direction = order_direction - @page_size = page_size - end - - sig { params(other: T.untyped).returns(T::Boolean) } - def ==(other) - return false unless other.is_a? self.class - return false unless @filter == other.filter - return false unless @next_ == other.next_ - return false unless @order_by == other.order_by - return false unless @order_direction == other.order_direction - return false unless @page_size == other.page_size - true - end - end - end - end -end diff --git a/lib/stack_one/models/operations/stackone_list_step_logs_legacy_request.rbi b/lib/stack_one/models/operations/stackone_list_step_logs_legacy_request.rbi deleted file mode 100644 index b2953ad16..000000000 --- a/lib/stack_one/models/operations/stackone_list_step_logs_legacy_request.rbi +++ /dev/null @@ -1,21 +0,0 @@ -# typed: true -# frozen_string_literal: true - - -class StackOne::Models::Operations::StackoneListStepLogsLegacyRequest - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class StackOne::Models::Operations::StackoneListStepLogsLegacyRequest - def filter(); end - def filter=(str_); end - def next_(); end - def next_=(str_); end - def order_by(); end - def order_by=(str_); end - def order_direction(); end - def order_direction=(str_); end - def page_size(); end - def page_size=(str_); end -end diff --git a/lib/stack_one/models/operations/stackone_list_step_logs_legacy_response.rb b/lib/stack_one/models/operations/stackone_list_step_logs_legacy_response.rb deleted file mode 100644 index c3e998e2a..000000000 --- a/lib/stack_one/models/operations/stackone_list_step_logs_legacy_response.rb +++ /dev/null @@ -1,48 +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 StackoneListStepLogsLegacyResponse - 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 - # The list of step logs was retrieved. - field :step_logs_paginated_legacy, Crystalline::Nilable.new(Models::Shared::StepLogsPaginatedLegacy) - - sig { params(content_type: ::String, headers: T::Hash[Symbol, T::Array[::String]], status_code: ::Integer, raw_response: ::Faraday::Response, step_logs_paginated_legacy: T.nilable(Models::Shared::StepLogsPaginatedLegacy)).void } - def initialize(content_type:, headers:, status_code:, raw_response:, step_logs_paginated_legacy: nil) - @content_type = content_type - @headers = headers - @status_code = status_code - @raw_response = raw_response - @step_logs_paginated_legacy = step_logs_paginated_legacy - 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 - return false unless @step_logs_paginated_legacy == other.step_logs_paginated_legacy - true - end - end - end - end -end diff --git a/lib/stack_one/models/operations/stackone_list_step_logs_legacy_response.rbi b/lib/stack_one/models/operations/stackone_list_step_logs_legacy_response.rbi deleted file mode 100644 index af26b5f4e..000000000 --- a/lib/stack_one/models/operations/stackone_list_step_logs_legacy_response.rbi +++ /dev/null @@ -1,21 +0,0 @@ -# typed: true -# frozen_string_literal: true - - -class StackOne::Models::Operations::StackoneListStepLogsLegacyResponse - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class StackOne::Models::Operations::StackoneListStepLogsLegacyResponse - 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 - def step_logs_paginated_legacy(); end - def step_logs_paginated_legacy=(str_); end -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..5f9a3b72e 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' @@ -455,7 +457,6 @@ module Shared autoload :CustomFields, 'stack_one/models/shared/customfields.rb' autoload :CustomFields4, 'stack_one/models/shared/customfields_4.rb' autoload :CustomFieldsValue, 'stack_one/models/shared/customfields_value.rb' - autoload :CustomMappingError, 'stack_one/models/shared/custommappingerror.rb' autoload :DeleteResult, 'stack_one/models/shared/deleteresult.rb' autoload :Department, 'stack_one/models/shared/department.rb' autoload :DepartmentResult, 'stack_one/models/shared/departmentresult.rb' @@ -1215,6 +1216,8 @@ module Shared autoload :LocalizationModelLanguage, 'stack_one/models/shared/localizationmodel_language.rb' autoload :LocalizationModelSourceValue, 'stack_one/models/shared/localizationmodel_source_value.rb' autoload :LocalizationModelValue, 'stack_one/models/shared/localizationmodel_value.rb' + autoload :LogsDimensionValue, 'stack_one/models/shared/logsdimensionvalue.rb' + autoload :LogsDimensions, 'stack_one/models/shared/logsdimensions.rb' autoload :LogsPaginated, 'stack_one/models/shared/logspaginated.rb' autoload :LogsPaginatedData, 'stack_one/models/shared/logspaginated_data.rb' autoload :LogsPaginatedQuery, 'stack_one/models/shared/logspaginated_query.rb' @@ -1310,8 +1313,14 @@ module Shared autoload :PatchAccountExternalDtoType, 'stack_one/models/shared/patchaccountexternaldto_type.rb' autoload :PhoneNumber, 'stack_one/models/shared/phonenumber.rb' autoload :PhoneNumberType, 'stack_one/models/shared/phonenumber_type.rb' - autoload :PlatformLogLegacy, 'stack_one/models/shared/platformloglegacy.rb' - autoload :PlatformLogsPaginatedLegacy, 'stack_one/models/shared/platformlogspaginatedlegacy.rb' + autoload :PlatformLog, 'stack_one/models/shared/platformlog.rb' + autoload :PlatformLogConnector, 'stack_one/models/shared/platformlog_connector.rb' + autoload :PlatformLogLogType, 'stack_one/models/shared/platformlog_log_type.rb' + autoload :PlatformLogsPaginated, 'stack_one/models/shared/platformlogspaginated.rb' + autoload :PlatformLogsPostDto, 'stack_one/models/shared/platformlogspostdto.rb' + autoload :PlatformLogsPostDtoFilters, 'stack_one/models/shared/platformlogspostdto_filters.rb' + autoload :PlatformLogsPostDtoOrderBy, 'stack_one/models/shared/platformlogspostdto_order_by.rb' + autoload :PlatformLogsPostDtoOrderDirection, 'stack_one/models/shared/platformlogspostdto_order_direction.rb' autoload :Position, 'stack_one/models/shared/position.rb' autoload :PositionResult, 'stack_one/models/shared/positionresult.rb' autoload :Position4, 'stack_one/models/shared/position_4.rb' @@ -1430,10 +1439,8 @@ module Shared autoload :SocialLink, 'stack_one/models/shared/sociallink.rb' autoload :StatusReason, 'stack_one/models/shared/statusreason.rb' autoload :StepLog, 'stack_one/models/shared/steplog.rb' - autoload :StepLogPartialLegacy, 'stack_one/models/shared/steplogpartiallegacy.rb' autoload :StepLogLogType, 'stack_one/models/shared/steplog_log_type.rb' autoload :StepLogsPaginated, 'stack_one/models/shared/steplogspaginated.rb' - autoload :StepLogsPaginatedLegacy, 'stack_one/models/shared/steplogspaginatedlegacy.rb' autoload :StepLogsPaginatedQuery, 'stack_one/models/shared/steplogspaginated_query.rb' autoload :StepsLogsPostDto, 'stack_one/models/shared/stepslogspostdto.rb' autoload :StepsLogsPostDtoFilters, 'stack_one/models/shared/stepslogspostdto_filters.rb' @@ -1618,14 +1625,10 @@ module Shared autoload :TimeOffType, 'stack_one/models/shared/timeoff_type.rb' autoload :TimeOffValue, 'stack_one/models/shared/timeoff_value.rb' autoload :UnifiedLog, 'stack_one/models/shared/unifiedlog.rb' - autoload :UnifiedLogResultLegacy, 'stack_one/models/shared/unifiedlogresultlegacy.rb' + autoload :UnifiedLogConnector, 'stack_one/models/shared/unifiedlog_connector.rb' autoload :UnifiedLogLogType, 'stack_one/models/shared/unifiedlog_log_type.rb' - autoload :UnifiedLogsLegacy, 'stack_one/models/shared/unifiedlogslegacy.rb' - autoload :UnifiedLogsLegacyResponse, 'stack_one/models/shared/unifiedlogslegacy_response.rb' autoload :UnifiedLogsPaginated, 'stack_one/models/shared/unifiedlogspaginated.rb' - autoload :UnifiedLogsPaginatedLegacy, 'stack_one/models/shared/unifiedlogspaginatedlegacy.rb' autoload :UnifiedLogsPaginatedQuery, 'stack_one/models/shared/unifiedlogspaginated_query.rb' - autoload :UnifiedLogsPartialLegacy, 'stack_one/models/shared/unifiedlogspartiallegacy.rb' autoload :UnifiedLogsPostDto, 'stack_one/models/shared/unifiedlogspostdto.rb' autoload :UnifiedLogsPostDtoFilters, 'stack_one/models/shared/unifiedlogspostdto_filters.rb' autoload :UnifiedLogsPostDtoHttpMethod, 'stack_one/models/shared/unifiedlogspostdto_http_method.rb' @@ -1694,6 +1697,7 @@ module Shared autoload :ConditionType, 'stack_one/models/shared/condition_type.rb' autoload :Confidential, 'stack_one/models/shared/confidential.rb' autoload :Config, 'stack_one/models/shared/config.rb' + autoload :Connector, 'stack_one/models/shared/connector.rb' autoload :ContentType, 'stack_one/models/shared/content_type.rb' autoload :ContractType, 'stack_one/models/shared/contract_type.rb' autoload :CostCenter, 'stack_one/models/shared/cost_center.rb' @@ -1775,7 +1779,6 @@ module Shared autoload :Query, 'stack_one/models/shared/query.rb' autoload :Raw, 'stack_one/models/shared/raw.rb' autoload :RejectedReasonType, 'stack_one/models/shared/rejected_reason_type.rb' - autoload :Request, 'stack_one/models/shared/request.rb' autoload :Requester, 'stack_one/models/shared/requester.rb' autoload :Required, 'stack_one/models/shared/required.rb' autoload :Resource, 'stack_one/models/shared/resource.rb' @@ -1797,7 +1800,6 @@ module Shared autoload :Status, 'stack_one/models/shared/status.rb' autoload :Support, 'stack_one/models/shared/support.rb' autoload :Type, 'stack_one/models/shared/type.rb' - autoload :Url, 'stack_one/models/shared/url.rb' autoload :User, 'stack_one/models/shared/user.rb' autoload :Value, 'stack_one/models/shared/value.rb' autoload :Visibility, 'stack_one/models/shared/visibility.rb' diff --git a/lib/stack_one/models/shared/actionlog.rb b/lib/stack_one/models/shared/actionlog.rb index 2bd396c73..60278d502 100644 --- a/lib/stack_one/models/shared/actionlog.rb +++ b/lib/stack_one/models/shared/actionlog.rb @@ -32,6 +32,8 @@ class ActionLog field :auth_type, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('auth_type') } } # The category field :category, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('category') } } + # The connector display data — name, logo and categories. Only present when requested via `?expand=connector`; `connector_key`, `connector_version` and `connector_owner` are always returned regardless. + field :connector, Crystalline::Nilable.new(Models::Shared::Connector), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('connector') } } # The connector key field :connector_key, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('connector_key') } } # The connector owner @@ -87,8 +89,8 @@ class ActionLog # The user agent field :user_agent, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('user_agent') } } - sig { params(action_run_id: ::String, log_id: ::String, log_type: Models::Shared::LogType, account_id: T.nilable(::String), action_id: T.nilable(::String), action_type: T.nilable(::String), agent_id: T.nilable(::String), auth_id: T.nilable(::String), auth_type: T.nilable(::String), category: T.nilable(::String), connector_key: T.nilable(::String), connector_owner: T.nilable(::String), connector_profile_id: T.nilable(::String), connector_version: T.nilable(::String), duration_ms: T.nilable(::Float), end_time: T.nilable(::DateTime), event_time: T.nilable(::DateTime), http_method: T.nilable(::String), ip_address: T.nilable(::String), is_background: T.nilable(T::Boolean), mode: T.nilable(::String), origin_owner_id: T.nilable(::String), origin_owner_name: T.nilable(::String), project_id: T.nilable(::String), risk_level: T.nilable(::String), session_id: T.nilable(::String), source_id: T.nilable(::String), source_type: T.nilable(::String), source_value: T.nilable(::String), start_time: T.nilable(::DateTime), status_code: T.nilable(::Float), stream_type: T.nilable(::String), success: T.nilable(T::Boolean), tier2_score: T.nilable(::Float), transport_type: T.nilable(::String), url: T.nilable(::String), user_agent: T.nilable(::String)).void } - def initialize(action_run_id:, log_id:, log_type:, account_id: nil, action_id: nil, action_type: nil, agent_id: nil, auth_id: nil, auth_type: nil, category: nil, connector_key: nil, connector_owner: nil, connector_profile_id: nil, connector_version: nil, duration_ms: nil, end_time: nil, event_time: nil, http_method: nil, ip_address: nil, is_background: nil, mode: nil, origin_owner_id: nil, origin_owner_name: nil, project_id: nil, risk_level: nil, session_id: nil, source_id: nil, source_type: nil, source_value: nil, start_time: nil, status_code: nil, stream_type: nil, success: nil, tier2_score: nil, transport_type: nil, url: nil, user_agent: nil) + sig { params(action_run_id: ::String, log_id: ::String, log_type: Models::Shared::LogType, account_id: T.nilable(::String), action_id: T.nilable(::String), action_type: T.nilable(::String), agent_id: T.nilable(::String), auth_id: T.nilable(::String), auth_type: T.nilable(::String), category: T.nilable(::String), connector: T.nilable(Models::Shared::Connector), connector_key: T.nilable(::String), connector_owner: T.nilable(::String), connector_profile_id: T.nilable(::String), connector_version: T.nilable(::String), duration_ms: T.nilable(::Float), end_time: T.nilable(::DateTime), event_time: T.nilable(::DateTime), http_method: T.nilable(::String), ip_address: T.nilable(::String), is_background: T.nilable(T::Boolean), mode: T.nilable(::String), origin_owner_id: T.nilable(::String), origin_owner_name: T.nilable(::String), project_id: T.nilable(::String), risk_level: T.nilable(::String), session_id: T.nilable(::String), source_id: T.nilable(::String), source_type: T.nilable(::String), source_value: T.nilable(::String), start_time: T.nilable(::DateTime), status_code: T.nilable(::Float), stream_type: T.nilable(::String), success: T.nilable(T::Boolean), tier2_score: T.nilable(::Float), transport_type: T.nilable(::String), url: T.nilable(::String), user_agent: T.nilable(::String)).void } + def initialize(action_run_id:, log_id:, log_type:, account_id: nil, action_id: nil, action_type: nil, agent_id: nil, auth_id: nil, auth_type: nil, category: nil, connector: nil, connector_key: nil, connector_owner: nil, connector_profile_id: nil, connector_version: nil, duration_ms: nil, end_time: nil, event_time: nil, http_method: nil, ip_address: nil, is_background: nil, mode: nil, origin_owner_id: nil, origin_owner_name: nil, project_id: nil, risk_level: nil, session_id: nil, source_id: nil, source_type: nil, source_value: nil, start_time: nil, status_code: nil, stream_type: nil, success: nil, tier2_score: nil, transport_type: nil, url: nil, user_agent: nil) @action_run_id = action_run_id @log_id = log_id @log_type = log_type @@ -99,6 +101,7 @@ def initialize(action_run_id:, log_id:, log_type:, account_id: nil, action_id: n @auth_id = auth_id @auth_type = auth_type @category = category + @connector = connector @connector_key = connector_key @connector_owner = connector_owner @connector_profile_id = connector_profile_id @@ -141,6 +144,7 @@ def ==(other) return false unless @auth_id == other.auth_id return false unless @auth_type == other.auth_type return false unless @category == other.category + return false unless @connector == other.connector return false unless @connector_key == other.connector_key return false unless @connector_owner == other.connector_owner return false unless @connector_profile_id == other.connector_profile_id diff --git a/lib/stack_one/models/shared/actionlog.rbi b/lib/stack_one/models/shared/actionlog.rbi index 4f5d04b1e..4270ef601 100644 --- a/lib/stack_one/models/shared/actionlog.rbi +++ b/lib/stack_one/models/shared/actionlog.rbi @@ -28,6 +28,8 @@ class StackOne::Models::Shared::ActionLog def auth_type=(str_); end def category(); end def category=(str_); end + def connector(); end + def connector=(str_); end def connector_key(); end def connector_key=(str_); end def connector_owner(); end 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/actionsearchresultdto.rb b/lib/stack_one/models/shared/actionsearchresultdto.rb index a5ae68da1..0a42f451a 100644 --- a/lib/stack_one/models/shared/actionsearchresultdto.rb +++ b/lib/stack_one/models/shared/actionsearchresultdto.rb @@ -16,11 +16,17 @@ class ActionSearchResultDto field :id, ::String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id'), required: true } } # Cosine similarity score (0-1) field :similarity_score, ::Float, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('similarity_score'), required: true } } + # Prerequisite action IDs that should be run first to obtain IDs this action needs + field :prerequisite_actions, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('prerequisite_actions') } } + # Human-readable tool name + field :tool_name, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('tool_name') } } - sig { params(id: ::String, similarity_score: ::Float).void } - def initialize(id:, similarity_score:) + sig { params(id: ::String, similarity_score: ::Float, prerequisite_actions: T.nilable(T::Array[::String]), tool_name: T.nilable(::String)).void } + def initialize(id:, similarity_score:, prerequisite_actions: nil, tool_name: nil) @id = id @similarity_score = similarity_score + @prerequisite_actions = prerequisite_actions + @tool_name = tool_name end sig { params(other: T.untyped).returns(T::Boolean) } @@ -28,6 +34,8 @@ def ==(other) return false unless other.is_a? self.class return false unless @id == other.id return false unless @similarity_score == other.similarity_score + return false unless @prerequisite_actions == other.prerequisite_actions + return false unless @tool_name == other.tool_name true end end diff --git a/lib/stack_one/models/shared/actionsearchresultdto.rbi b/lib/stack_one/models/shared/actionsearchresultdto.rbi index d7696659a..93dda37e9 100644 --- a/lib/stack_one/models/shared/actionsearchresultdto.rbi +++ b/lib/stack_one/models/shared/actionsearchresultdto.rbi @@ -12,4 +12,8 @@ class StackOne::Models::Shared::ActionSearchResultDto def id=(str_); end def similarity_score(); end def similarity_score=(str_); end + def prerequisite_actions(); end + def prerequisite_actions=(str_); end + def tool_name(); end + def tool_name=(str_); end end diff --git a/lib/stack_one/models/shared/actionsrpcsyncedrequestdto.rb b/lib/stack_one/models/shared/actionsrpcsyncedrequestdto.rb index d7ea43744..3d10dff5d 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. Naming one that no longer exists is rejected with a `400`. + 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/connector.rb b/lib/stack_one/models/shared/connector.rb new file mode 100644 index 000000000..d340c762d --- /dev/null +++ b/lib/stack_one/models/shared/connector.rb @@ -0,0 +1,52 @@ +# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +# typed: true +# frozen_string_literal: true + + +module StackOne + module Models + module Shared + # The connector display data — name, logo and categories. Only present when requested via `?expand=connector`; `connector_key`, `connector_version` and `connector_owner` are always returned regardless. + class Connector + extend T::Sig + include Crystalline::MetadataFields + + # The connector categories + field :categories, Crystalline::Array.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('categories'), required: true } } + # The connector key + field :key, ::String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('key'), required: true } } + # The connector logo. Falls back to a placeholder when none is declared. + field :logo_url, ::String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('logo_url'), required: true } } + # The connector owner. Defaults to the global `stackone` owner. + field :owner, ::String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('owner'), required: true } } + # The connector display name. `null` when the connector is unknown. + field :name, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name'), required: true } } + # The connector version the log was served by + field :version, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('version'), required: true } } + + sig { params(categories: T::Array[::String], key: ::String, logo_url: ::String, owner: ::String, name: T.nilable(::String), version: T.nilable(::String)).void } + def initialize(categories:, key:, logo_url:, owner:, name: nil, version: nil) + @categories = categories + @key = key + @logo_url = logo_url + @owner = owner + @name = name + @version = version + end + + sig { params(other: T.untyped).returns(T::Boolean) } + def ==(other) + return false unless other.is_a? self.class + return false unless @categories == other.categories + return false unless @key == other.key + return false unless @logo_url == other.logo_url + return false unless @owner == other.owner + return false unless @name == other.name + return false unless @version == other.version + true + end + end + end + end +end diff --git a/lib/stack_one/models/shared/connector.rbi b/lib/stack_one/models/shared/connector.rbi new file mode 100644 index 000000000..6e097ed8b --- /dev/null +++ b/lib/stack_one/models/shared/connector.rbi @@ -0,0 +1,23 @@ +# typed: true +# frozen_string_literal: true + + +class StackOne::Models::Shared::Connector + extend ::Crystalline::MetadataFields::ClassMethods +end + + +class StackOne::Models::Shared::Connector + def categories(); end + def categories=(str_); end + def key(); end + def key=(str_); end + def logo_url(); end + def logo_url=(str_); end + def owner(); end + def owner=(str_); end + def name(); end + def name=(str_); end + def version(); end + def version=(str_); end +end diff --git a/lib/stack_one/models/shared/connectsessioncreate.rb b/lib/stack_one/models/shared/connectsessioncreate.rb index 5a5a755ed..5444aac63 100644 --- a/lib/stack_one/models/shared/connectsessioncreate.rb +++ b/lib/stack_one/models/shared/connectsessioncreate.rb @@ -20,9 +20,9 @@ class ConnectSessionCreate field :account_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('account_id') } } # The categories of the provider to connect to field :categories, Crystalline::Nilable.new(Crystalline::Array.new(Models::Shared::ConnectSessionCreateCategories)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('categories') } } - # The ID of the connector profile to use for this connect session. Use this to route to a non-default connector profile — for example when you have multiple profiles for the same provider, or when migrating end users to a new connector major version. Retrieve the ID from GET /connector_profiles. When omitted, the session uses the project default connector profile for the given provider. + # The ID of the connector profile to use for this connect session. Use this to route to a non-default connector profile — for example when you have multiple profiles for the same provider, or when migrating end users to a new connector major version. Retrieve the ID from GET /connector_profiles. When omitted, the session binds to the project default connector profile when the caller may use it, otherwise to another connector profile for the provider that the caller may use. field :connector_profile_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('connector_profile_id') } } - # Deprecated: use `connector_profile_id` instead. The ID of the auth config to use for this connect session. Use this to route to a non-default auth config — for example when you have multiple configs for the same provider, or when migrating end users to a new connector major version. Retrieve the ID from GET /auth_configs. When omitted, the session uses the project default auth config for the given provider. + # Deprecated: use `connector_profile_id` instead (this is an alias for it). The ID of the connector profile to use for this connect session. Use this to route to a non-default connector profile — for example when you have multiple profiles for the same provider, or when migrating end users to a new connector major version. Retrieve the ID from GET /connector_profiles. When omitted, the session binds to the project default connector profile when the caller may use it, otherwise to another connector profile for the provider that the caller may use. # # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible. field :integration_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('integration_id') } } @@ -32,9 +32,9 @@ class ConnectSessionCreate field :metadata, Crystalline::Nilable.new(Models::Shared::ConnectSessionCreateMetadata), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('metadata') } } # The origin username field :origin_username, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('origin_username') } } - # The provider key to connect to (e.g. "salesforce", "bamboohr"). When provided, the hub opens directly at the credential entry step for this provider using the project default auth config. Omit to show the full provider selection screen. To use a non-default auth config, use integration_id instead. + # The provider key to connect to (e.g. "salesforce", "bamboohr"). When provided, the hub opens directly at the credential entry step for this provider. The session binds to the project default connector profile when the caller may use it, otherwise to another connector profile for the provider that the caller may use; if none is usable the request is refused. Omit to show the full provider selection screen. To target a specific connector profile, use connector_profile_id instead. field :provider, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('provider') } } - # Deprecated. provider_version no longer determines which connector version is used for the session and can cause session creation to fail. Omit this field — passing provider alone will create a session using the default auth config. To target a specific auth config, use integration_id. + # Deprecated. When supplied, provider_version restricts binding to connector profiles of that version, so a version with no usable profile causes session creation to fail. Omit it to bind the default connector profile (or another the caller may use). To target a specific connector profile, use connector_profile_id. # # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible. field :provider_version, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('provider_version') } } diff --git a/lib/stack_one/models/shared/custommappingerror.rb b/lib/stack_one/models/shared/custommappingerror.rb deleted file mode 100644 index a77e06351..000000000 --- a/lib/stack_one/models/shared/custommappingerror.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 Shared - - class CustomMappingError - extend T::Sig - include Crystalline::MetadataFields - - # The custom mapping identifier - field :id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } } - # The error message - field :message, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('message') } } - # The target field where the error occurred - field :target_field, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('targetField') } } - - sig { params(id: T.nilable(::String), message: T.nilable(::String), target_field: T.nilable(::String)).void } - def initialize(id: nil, message: nil, target_field: nil) - @id = id - @message = message - @target_field = target_field - end - - sig { params(other: T.untyped).returns(T::Boolean) } - def ==(other) - return false unless other.is_a? self.class - return false unless @id == other.id - return false unless @message == other.message - return false unless @target_field == other.target_field - true - end - end - end - end -end diff --git a/lib/stack_one/models/shared/custommappingerror.rbi b/lib/stack_one/models/shared/custommappingerror.rbi deleted file mode 100644 index 8b3e02b57..000000000 --- a/lib/stack_one/models/shared/custommappingerror.rbi +++ /dev/null @@ -1,17 +0,0 @@ -# typed: true -# frozen_string_literal: true - - -class StackOne::Models::Shared::CustomMappingError - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class StackOne::Models::Shared::CustomMappingError - def id(); end - def id=(str_); end - def message(); end - def message=(str_); end - def target_field(); end - def target_field=(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/models/shared/interval_type.rb b/lib/stack_one/models/shared/interval_type.rb index c0eda3b58..1a557ca25 100644 --- a/lib/stack_one/models/shared/interval_type.rb +++ b/lib/stack_one/models/shared/interval_type.rb @@ -16,6 +16,7 @@ class IntervalType DAY = new('day') WEEK = new('week') MONTH = new('month') + NONE = new('none') end open! end diff --git a/lib/stack_one/models/shared/unifiedlogresultlegacy.rb b/lib/stack_one/models/shared/logsdimensions.rb similarity index 56% rename from lib/stack_one/models/shared/unifiedlogresultlegacy.rb rename to lib/stack_one/models/shared/logsdimensions.rb index 3c764dc18..69ae868c8 100644 --- a/lib/stack_one/models/shared/unifiedlogresultlegacy.rb +++ b/lib/stack_one/models/shared/logsdimensions.rb @@ -8,14 +8,14 @@ module StackOne module Models module Shared - class UnifiedLogResultLegacy + class LogsDimensions extend T::Sig include Crystalline::MetadataFields + # The distinct values for each requested dimension, keyed by dimension name + field :data, Crystalline::Hash.new(Symbol, Crystalline::Array.new(Models::Shared::LogsDimensionValue)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('data'), required: true } } - field :data, Models::Shared::UnifiedLogsLegacy, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('data'), required: true } } - - sig { params(data: Models::Shared::UnifiedLogsLegacy).void } + sig { params(data: T::Hash[Symbol, T::Array[Models::Shared::LogsDimensionValue]]).void } def initialize(data:) @data = data end diff --git a/lib/stack_one/models/shared/unifiedlogresultlegacy.rbi b/lib/stack_one/models/shared/logsdimensions.rbi similarity index 57% rename from lib/stack_one/models/shared/unifiedlogresultlegacy.rbi rename to lib/stack_one/models/shared/logsdimensions.rbi index 5ac96e7c3..550e6071d 100644 --- a/lib/stack_one/models/shared/unifiedlogresultlegacy.rbi +++ b/lib/stack_one/models/shared/logsdimensions.rbi @@ -2,12 +2,12 @@ # frozen_string_literal: true -class StackOne::Models::Shared::UnifiedLogResultLegacy +class StackOne::Models::Shared::LogsDimensions extend ::Crystalline::MetadataFields::ClassMethods end -class StackOne::Models::Shared::UnifiedLogResultLegacy +class StackOne::Models::Shared::LogsDimensions def data(); end def data=(str_); end end diff --git a/lib/stack_one/models/shared/logsdimensionvalue.rb b/lib/stack_one/models/shared/logsdimensionvalue.rb new file mode 100644 index 000000000..76c5d7398 --- /dev/null +++ b/lib/stack_one/models/shared/logsdimensionvalue.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 LogsDimensionValue + extend T::Sig + include Crystalline::MetadataFields + + # The number of logs carrying this value + field :count, ::Float, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('count'), required: true } } + # The dimension value + field :value, ::String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), required: true } } + # A human-readable label for the value. Currently only resolved for the `connector_key` dimension, where it is the connector display name (falling back to the key itself when the connector is unknown). Absent for every other dimension. + field :label, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('label') } } + + sig { params(count: ::Float, value: ::String, label: T.nilable(::String)).void } + def initialize(count:, value:, label: nil) + @count = count + @value = value + @label = label + end + + sig { params(other: T.untyped).returns(T::Boolean) } + def ==(other) + return false unless other.is_a? self.class + return false unless @count == other.count + return false unless @value == other.value + return false unless @label == other.label + true + end + end + end + end +end diff --git a/lib/stack_one/models/shared/logsdimensionvalue.rbi b/lib/stack_one/models/shared/logsdimensionvalue.rbi new file mode 100644 index 000000000..9b907e7ad --- /dev/null +++ b/lib/stack_one/models/shared/logsdimensionvalue.rbi @@ -0,0 +1,17 @@ +# typed: true +# frozen_string_literal: true + + +class StackOne::Models::Shared::LogsDimensionValue + extend ::Crystalline::MetadataFields::ClassMethods +end + + +class StackOne::Models::Shared::LogsDimensionValue + def count(); end + def count=(str_); end + def value(); end + def value=(str_); end + def label(); end + def label=(str_); end +end diff --git a/lib/stack_one/models/shared/platformlog.rb b/lib/stack_one/models/shared/platformlog.rb new file mode 100644 index 000000000..e5d735791 --- /dev/null +++ b/lib/stack_one/models/shared/platformlog.rb @@ -0,0 +1,180 @@ +# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +# typed: true +# frozen_string_literal: true + + +module StackOne + module Models + module Shared + + class PlatformLog + extend T::Sig + include Crystalline::MetadataFields + + # The unique identifier for this event + field :event_id, ::String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('event_id'), required: true } } + # What happened, as `_` + field :event_type, ::String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('event_type'), required: true } } + # The unique log identifier + field :log_id, ::String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('log_id'), required: true } } + # The type of log + field :log_type, Models::Shared::PlatformLogLogType, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('log_type'), required: true, 'decoder': ::StackOne::Utils.open_enum_from_string(Models::Shared::PlatformLogLogType, false) } } + # The service that emitted the event + field :service, ::String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('service'), required: true } } + # The account ID + field :account_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('account_id') } } + # The verb, without its resource prefix + field :action, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('action') } } + # The agent ID + field :agent_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('agent_id') } } + # The authentication ID + field :auth_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('auth_id') } } + # The authentication type + field :auth_type, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('auth_type') } } + # The connector display data — name, logo and categories. Only present when requested via `?expand=connector`; `connector_key`, `connector_version` and `connector_owner` are always returned regardless. + field :connector, Crystalline::Nilable.new(Models::Shared::PlatformLogConnector), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('connector') } } + # The connector key + field :connector_key, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('connector_key') } } + # The connector owner + field :connector_owner, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('connector_owner') } } + # The connector version + field :connector_version, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('connector_version') } } + # Everything about the event with no column of its own — the HTTP method, path, status code and originating request id, plus the route category and resource. Not filterable; use `event_type` and `action` for that. + field :details, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('details') } } + # The duration in milliseconds + field :duration_ms, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('duration_ms') } } + # The request end time ISO8601 date string + field :end_time, Crystalline::Nilable.new(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('end_time'), 'decoder': ::StackOne::Utils.datetime_from_iso_format(true) } } + # The event ISO8601 date string + field :event_time, Crystalline::Nilable.new(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('event_time'), 'decoder': ::StackOne::Utils.datetime_from_iso_format(true) } } + # The HTTP method + field :http_method, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('http_method') } } + # The IP address + field :ip_address, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('ip_address') } } + # Whether this is a background request + field :is_background, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('is_background') } } + # The mode + field :mode, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('mode') } } + # The origin owner ID + field :origin_owner_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('origin_owner_id') } } + # The origin owner name + field :origin_owner_name, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('origin_owner_name') } } + # The project ID + field :project_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('project_id') } } + # The session ID + field :session_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('session_id') } } + # The source ID + field :source_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_id') } } + # The source type + field :source_type, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_type') } } + # The source value + field :source_value, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } } + # The request start time ISO8601 date string + field :start_time, Crystalline::Nilable.new(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('start_time'), 'decoder': ::StackOne::Utils.datetime_from_iso_format(true) } } + # The HTTP status code + field :status_code, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('status_code') } } + # The stream type + field :stream_type, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('stream_type') } } + # A narrower qualifier on the action, where one applies + field :sub_action, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('sub_action') } } + # The success flag + field :success, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('success') } } + # The transport type + field :transport_type, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('transport_type') } } + # The request URL + field :url, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('url') } } + # The user agent + field :user_agent, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('user_agent') } } + # The user the operation is attributed to. Caller-asserted rather than authenticated. + field :user_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('user_id') } } + + sig { params(event_id: ::String, event_type: ::String, log_id: ::String, log_type: Models::Shared::PlatformLogLogType, service: ::String, account_id: T.nilable(::String), action: T.nilable(::String), agent_id: T.nilable(::String), auth_id: T.nilable(::String), auth_type: T.nilable(::String), connector: T.nilable(Models::Shared::PlatformLogConnector), connector_key: T.nilable(::String), connector_owner: T.nilable(::String), connector_version: T.nilable(::String), details: T.nilable(::String), duration_ms: T.nilable(::Float), end_time: T.nilable(::DateTime), event_time: T.nilable(::DateTime), http_method: T.nilable(::String), ip_address: T.nilable(::String), is_background: T.nilable(T::Boolean), mode: T.nilable(::String), origin_owner_id: T.nilable(::String), origin_owner_name: T.nilable(::String), project_id: T.nilable(::String), session_id: T.nilable(::String), source_id: T.nilable(::String), source_type: T.nilable(::String), source_value: T.nilable(::String), start_time: T.nilable(::DateTime), status_code: T.nilable(::Float), stream_type: T.nilable(::String), sub_action: T.nilable(::String), success: T.nilable(T::Boolean), transport_type: T.nilable(::String), url: T.nilable(::String), user_agent: T.nilable(::String), user_id: T.nilable(::String)).void } + def initialize(event_id:, event_type:, log_id:, log_type:, service:, account_id: nil, action: nil, agent_id: nil, auth_id: nil, auth_type: nil, connector: nil, connector_key: nil, connector_owner: nil, connector_version: nil, details: nil, duration_ms: nil, end_time: nil, event_time: nil, http_method: nil, ip_address: nil, is_background: nil, mode: nil, origin_owner_id: nil, origin_owner_name: nil, project_id: nil, session_id: nil, source_id: nil, source_type: nil, source_value: nil, start_time: nil, status_code: nil, stream_type: nil, sub_action: nil, success: nil, transport_type: nil, url: nil, user_agent: nil, user_id: nil) + @event_id = event_id + @event_type = event_type + @log_id = log_id + @log_type = log_type + @service = service + @account_id = account_id + @action = action + @agent_id = agent_id + @auth_id = auth_id + @auth_type = auth_type + @connector = connector + @connector_key = connector_key + @connector_owner = connector_owner + @connector_version = connector_version + @details = details + @duration_ms = duration_ms + @end_time = end_time + @event_time = event_time + @http_method = http_method + @ip_address = ip_address + @is_background = is_background + @mode = mode + @origin_owner_id = origin_owner_id + @origin_owner_name = origin_owner_name + @project_id = project_id + @session_id = session_id + @source_id = source_id + @source_type = source_type + @source_value = source_value + @start_time = start_time + @status_code = status_code + @stream_type = stream_type + @sub_action = sub_action + @success = success + @transport_type = transport_type + @url = url + @user_agent = user_agent + @user_id = user_id + end + + sig { params(other: T.untyped).returns(T::Boolean) } + def ==(other) + return false unless other.is_a? self.class + return false unless @event_id == other.event_id + return false unless @event_type == other.event_type + return false unless @log_id == other.log_id + return false unless @log_type == other.log_type + return false unless @service == other.service + return false unless @account_id == other.account_id + return false unless @action == other.action + return false unless @agent_id == other.agent_id + return false unless @auth_id == other.auth_id + return false unless @auth_type == other.auth_type + return false unless @connector == other.connector + return false unless @connector_key == other.connector_key + return false unless @connector_owner == other.connector_owner + return false unless @connector_version == other.connector_version + return false unless @details == other.details + return false unless @duration_ms == other.duration_ms + return false unless @end_time == other.end_time + return false unless @event_time == other.event_time + return false unless @http_method == other.http_method + return false unless @ip_address == other.ip_address + return false unless @is_background == other.is_background + return false unless @mode == other.mode + return false unless @origin_owner_id == other.origin_owner_id + return false unless @origin_owner_name == other.origin_owner_name + return false unless @project_id == other.project_id + return false unless @session_id == other.session_id + return false unless @source_id == other.source_id + return false unless @source_type == other.source_type + return false unless @source_value == other.source_value + return false unless @start_time == other.start_time + return false unless @status_code == other.status_code + return false unless @stream_type == other.stream_type + return false unless @sub_action == other.sub_action + return false unless @success == other.success + return false unless @transport_type == other.transport_type + return false unless @url == other.url + return false unless @user_agent == other.user_agent + return false unless @user_id == other.user_id + true + end + end + end + end +end diff --git a/lib/stack_one/models/shared/platformlog.rbi b/lib/stack_one/models/shared/platformlog.rbi new file mode 100644 index 000000000..ad2685917 --- /dev/null +++ b/lib/stack_one/models/shared/platformlog.rbi @@ -0,0 +1,87 @@ +# typed: true +# frozen_string_literal: true + + +class StackOne::Models::Shared::PlatformLog + extend ::Crystalline::MetadataFields::ClassMethods +end + + +class StackOne::Models::Shared::PlatformLog + def event_id(); end + def event_id=(str_); end + def event_type(); end + def event_type=(str_); end + def log_id(); end + def log_id=(str_); end + def log_type(); end + def log_type=(str_); end + def service(); end + def service=(str_); end + def account_id(); end + def account_id=(str_); end + def action(); end + def action=(str_); end + def agent_id(); end + def agent_id=(str_); end + def auth_id(); end + def auth_id=(str_); end + def auth_type(); end + def auth_type=(str_); end + def connector(); end + def connector=(str_); end + def connector_key(); end + def connector_key=(str_); end + def connector_owner(); end + def connector_owner=(str_); end + def connector_version(); end + def connector_version=(str_); end + def details(); end + def details=(str_); end + def duration_ms(); end + def duration_ms=(str_); end + def end_time(); end + def end_time=(str_); end + def event_time(); end + def event_time=(str_); end + def http_method(); end + def http_method=(str_); end + def ip_address(); end + def ip_address=(str_); end + def is_background(); end + def is_background=(str_); end + def mode(); end + def mode=(str_); end + def origin_owner_id(); end + def origin_owner_id=(str_); end + def origin_owner_name(); end + def origin_owner_name=(str_); end + def project_id(); end + def project_id=(str_); end + def session_id(); end + def session_id=(str_); end + def source_id(); end + def source_id=(str_); end + def source_type(); end + def source_type=(str_); end + def source_value(); end + def source_value=(str_); end + def start_time(); end + def start_time=(str_); end + def status_code(); end + def status_code=(str_); end + def stream_type(); end + def stream_type=(str_); end + def sub_action(); end + def sub_action=(str_); end + def success(); end + def success=(str_); end + def transport_type(); end + def transport_type=(str_); end + def url(); end + def url=(str_); end + def user_agent(); end + def user_agent=(str_); end + def user_id(); end + def user_id=(str_); end +end diff --git a/lib/stack_one/models/shared/platformlog_connector.rb b/lib/stack_one/models/shared/platformlog_connector.rb new file mode 100644 index 000000000..11f325198 --- /dev/null +++ b/lib/stack_one/models/shared/platformlog_connector.rb @@ -0,0 +1,52 @@ +# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +# typed: true +# frozen_string_literal: true + + +module StackOne + module Models + module Shared + # The connector display data — name, logo and categories. Only present when requested via `?expand=connector`; `connector_key`, `connector_version` and `connector_owner` are always returned regardless. + class PlatformLogConnector + extend T::Sig + include Crystalline::MetadataFields + + # The connector categories + field :categories, Crystalline::Array.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('categories'), required: true } } + # The connector key + field :key, ::String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('key'), required: true } } + # The connector logo. Falls back to a placeholder when none is declared. + field :logo_url, ::String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('logo_url'), required: true } } + # The connector owner. Defaults to the global `stackone` owner. + field :owner, ::String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('owner'), required: true } } + # The connector display name. `null` when the connector is unknown. + field :name, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name'), required: true } } + # The connector version the log was served by + field :version, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('version'), required: true } } + + sig { params(categories: T::Array[::String], key: ::String, logo_url: ::String, owner: ::String, name: T.nilable(::String), version: T.nilable(::String)).void } + def initialize(categories:, key:, logo_url:, owner:, name: nil, version: nil) + @categories = categories + @key = key + @logo_url = logo_url + @owner = owner + @name = name + @version = version + end + + sig { params(other: T.untyped).returns(T::Boolean) } + def ==(other) + return false unless other.is_a? self.class + return false unless @categories == other.categories + return false unless @key == other.key + return false unless @logo_url == other.logo_url + return false unless @owner == other.owner + return false unless @name == other.name + return false unless @version == other.version + true + end + end + end + end +end diff --git a/lib/stack_one/models/shared/platformlog_connector.rbi b/lib/stack_one/models/shared/platformlog_connector.rbi new file mode 100644 index 000000000..48250a5e6 --- /dev/null +++ b/lib/stack_one/models/shared/platformlog_connector.rbi @@ -0,0 +1,23 @@ +# typed: true +# frozen_string_literal: true + + +class StackOne::Models::Shared::PlatformLogConnector + extend ::Crystalline::MetadataFields::ClassMethods +end + + +class StackOne::Models::Shared::PlatformLogConnector + def categories(); end + def categories=(str_); end + def key(); end + def key=(str_); end + def logo_url(); end + def logo_url=(str_); end + def owner(); end + def owner=(str_); end + def name(); end + def name=(str_); end + def version(); end + def version=(str_); end +end diff --git a/lib/stack_one/models/operations/order_direction.rb b/lib/stack_one/models/shared/platformlog_log_type.rb similarity index 52% rename from lib/stack_one/models/operations/order_direction.rb rename to lib/stack_one/models/shared/platformlog_log_type.rb index 7e0d24e66..7cf8cced1 100644 --- a/lib/stack_one/models/operations/order_direction.rb +++ b/lib/stack_one/models/shared/platformlog_log_type.rb @@ -6,13 +6,14 @@ module StackOne module Models - module Operations - # OrderDirection - The direction to order the results by. - class OrderDirection < T::Enum + module Shared + # PlatformLogLogType - The type of log + class PlatformLogLogType + include ::Crystalline::Enum enums do - ASC = new('asc') - DESC = new('desc') + PLATFORM = new('platform') end + open! end end end diff --git a/lib/stack_one/models/operations/order_direction.rbi b/lib/stack_one/models/shared/platformlog_log_type.rbi similarity index 51% rename from lib/stack_one/models/operations/order_direction.rbi rename to lib/stack_one/models/shared/platformlog_log_type.rbi index 399dae781..3292be0f3 100644 --- a/lib/stack_one/models/operations/order_direction.rbi +++ b/lib/stack_one/models/shared/platformlog_log_type.rbi @@ -2,10 +2,10 @@ # frozen_string_literal: true -class StackOne::Models::Operations::OrderDirection +class StackOne::Models::Shared::PlatformLogLogType extend ::Crystalline::MetadataFields::ClassMethods end -class StackOne::Models::Operations::OrderDirection +class StackOne::Models::Shared::PlatformLogLogType end diff --git a/lib/stack_one/models/shared/platformloglegacy.rb b/lib/stack_one/models/shared/platformloglegacy.rb deleted file mode 100644 index 58d4146f3..000000000 --- a/lib/stack_one/models/shared/platformloglegacy.rb +++ /dev/null @@ -1,112 +0,0 @@ -# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -# typed: true -# frozen_string_literal: true - - -module StackOne - module Models - module Shared - - class PlatformLogLegacy - extend T::Sig - include Crystalline::MetadataFields - - # The account ID of the request - field :account_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('account_id') } } - # The requested action - field :action, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('action') } } - # The requested category - field :category, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('category') } } - # The requested child resource - field :child_resource, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('child_resource') } } - # The request duration in milliseconds - field :duration, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('duration') } } - # The request end time ISO8601 date string - field :end_time, Crystalline::Nilable.new(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('end_time'), 'decoder': ::StackOne::Utils.datetime_from_iso_format(true) } } - # The event ISO8601 date string - field :event_datetime, Crystalline::Nilable.new(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('event_datetime'), 'decoder': ::StackOne::Utils.datetime_from_iso_format(true) } } - # The requested HTTP method - field :http_method, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('http_method') } } - # The requested path - field :path, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('path') } } - # The project ID of the request - field :project_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('project_id') } } - # The request ID - field :request_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('request_id') } } - # The requested resource - field :resource, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('resource') } } - # The requests source ID - field :source_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_id') } } - # The requests source IPV4 ip address - field :source_ip, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_ip') } } - # The requests source type - field :source_type, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_type') } } - # The requests source value - field :source_value, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } } - # The request start time ISO8601 date string - field :start_time, Crystalline::Nilable.new(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('start_time'), 'decoder': ::StackOne::Utils.datetime_from_iso_format(true) } } - # The requests response status code - field :status, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('status') } } - # The requested sub resource - field :sub_resource, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('sub_resource') } } - # The request success flag - field :success, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('success') } } - # The requested URL - field :url, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('url') } } - - sig { params(account_id: T.nilable(::String), action: T.nilable(::String), category: T.nilable(::String), child_resource: T.nilable(::String), duration: T.nilable(::Float), end_time: T.nilable(::DateTime), event_datetime: T.nilable(::DateTime), http_method: T.nilable(::String), path: T.nilable(::String), project_id: T.nilable(::String), request_id: T.nilable(::String), resource: T.nilable(::String), source_id: T.nilable(::String), source_ip: T.nilable(::String), source_type: T.nilable(::String), source_value: T.nilable(::String), start_time: T.nilable(::DateTime), status: T.nilable(::Float), sub_resource: T.nilable(::String), success: T.nilable(T::Boolean), url: T.nilable(::String)).void } - def initialize(account_id: nil, action: nil, category: nil, child_resource: nil, duration: nil, end_time: nil, event_datetime: nil, http_method: nil, path: nil, project_id: nil, request_id: nil, resource: nil, source_id: nil, source_ip: nil, source_type: nil, source_value: nil, start_time: nil, status: nil, sub_resource: nil, success: nil, url: nil) - @account_id = account_id - @action = action - @category = category - @child_resource = child_resource - @duration = duration - @end_time = end_time - @event_datetime = event_datetime - @http_method = http_method - @path = path - @project_id = project_id - @request_id = request_id - @resource = resource - @source_id = source_id - @source_ip = source_ip - @source_type = source_type - @source_value = source_value - @start_time = start_time - @status = status - @sub_resource = sub_resource - @success = success - @url = url - end - - sig { params(other: T.untyped).returns(T::Boolean) } - def ==(other) - return false unless other.is_a? self.class - return false unless @account_id == other.account_id - return false unless @action == other.action - return false unless @category == other.category - return false unless @child_resource == other.child_resource - return false unless @duration == other.duration - return false unless @end_time == other.end_time - return false unless @event_datetime == other.event_datetime - return false unless @http_method == other.http_method - return false unless @path == other.path - return false unless @project_id == other.project_id - return false unless @request_id == other.request_id - return false unless @resource == other.resource - return false unless @source_id == other.source_id - return false unless @source_ip == other.source_ip - return false unless @source_type == other.source_type - return false unless @source_value == other.source_value - return false unless @start_time == other.start_time - return false unless @status == other.status - return false unless @sub_resource == other.sub_resource - return false unless @success == other.success - return false unless @url == other.url - true - end - end - end - end -end diff --git a/lib/stack_one/models/shared/platformloglegacy.rbi b/lib/stack_one/models/shared/platformloglegacy.rbi deleted file mode 100644 index 7633d7793..000000000 --- a/lib/stack_one/models/shared/platformloglegacy.rbi +++ /dev/null @@ -1,53 +0,0 @@ -# typed: true -# frozen_string_literal: true - - -class StackOne::Models::Shared::PlatformLogLegacy - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class StackOne::Models::Shared::PlatformLogLegacy - def account_id(); end - def account_id=(str_); end - def action(); end - def action=(str_); end - def category(); end - def category=(str_); end - def child_resource(); end - def child_resource=(str_); end - def duration(); end - def duration=(str_); end - def end_time(); end - def end_time=(str_); end - def event_datetime(); end - def event_datetime=(str_); end - def http_method(); end - def http_method=(str_); end - def path(); end - def path=(str_); end - def project_id(); end - def project_id=(str_); end - def request_id(); end - def request_id=(str_); end - def resource(); end - def resource=(str_); end - def source_id(); end - def source_id=(str_); end - def source_ip(); end - def source_ip=(str_); end - def source_type(); end - def source_type=(str_); end - def source_value(); end - def source_value=(str_); end - def start_time(); end - def start_time=(str_); end - def status(); end - def status=(str_); end - def sub_resource(); end - def sub_resource=(str_); end - def success(); end - def success=(str_); end - def url(); end - def url=(str_); end -end diff --git a/lib/stack_one/models/shared/platformlogspaginated.rb b/lib/stack_one/models/shared/platformlogspaginated.rb new file mode 100644 index 000000000..3b655833f --- /dev/null +++ b/lib/stack_one/models/shared/platformlogspaginated.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 PlatformLogsPaginated + extend T::Sig + include Crystalline::MetadataFields + + # The list of platform logs + field :data, Crystalline::Array.new(Models::Shared::PlatformLog), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('data'), required: true } } + # The page number returned + field :page, ::Float, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('page'), required: true } } + # The number of results per page + field :page_size, ::Float, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('page_size'), required: true } } + # Total number of logs matching the filters + field :total, ::Float, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('total'), required: true } } + + sig { params(data: T::Array[Models::Shared::PlatformLog], page: ::Float, page_size: ::Float, total: ::Float).void } + def initialize(data:, page:, page_size:, total:) + @data = data + @page = page + @page_size = page_size + @total = total + end + + sig { params(other: T.untyped).returns(T::Boolean) } + def ==(other) + return false unless other.is_a? self.class + return false unless @data == other.data + return false unless @page == other.page + return false unless @page_size == other.page_size + return false unless @total == other.total + true + end + end + end + end +end diff --git a/lib/stack_one/models/shared/platformlogspaginated.rbi b/lib/stack_one/models/shared/platformlogspaginated.rbi new file mode 100644 index 000000000..d664c13b9 --- /dev/null +++ b/lib/stack_one/models/shared/platformlogspaginated.rbi @@ -0,0 +1,19 @@ +# typed: true +# frozen_string_literal: true + + +class StackOne::Models::Shared::PlatformLogsPaginated + extend ::Crystalline::MetadataFields::ClassMethods +end + + +class StackOne::Models::Shared::PlatformLogsPaginated + def data(); end + def data=(str_); end + def page(); end + def page=(str_); end + def page_size(); end + def page_size=(str_); end + def total(); end + def total=(str_); end +end diff --git a/lib/stack_one/models/shared/platformlogspaginatedlegacy.rb b/lib/stack_one/models/shared/platformlogspaginatedlegacy.rb deleted file mode 100644 index 6baffc2de..000000000 --- a/lib/stack_one/models/shared/platformlogspaginatedlegacy.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 Shared - - class PlatformLogsPaginatedLegacy - extend T::Sig - include Crystalline::MetadataFields - - - field :data, Crystalline::Array.new(Models::Shared::PlatformLogLegacy), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('data'), required: true } } - - field :next_, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('next') } } - - sig { params(data: T::Array[Models::Shared::PlatformLogLegacy], next_: T.nilable(::String)).void } - def initialize(data:, next_: nil) - @data = data - @next_ = next_ - end - - sig { params(other: T.untyped).returns(T::Boolean) } - def ==(other) - return false unless other.is_a? self.class - return false unless @data == other.data - return false unless @next_ == other.next_ - true - end - end - end - end -end diff --git a/lib/stack_one/models/shared/platformlogspaginatedlegacy.rbi b/lib/stack_one/models/shared/platformlogspaginatedlegacy.rbi deleted file mode 100644 index d72fce32c..000000000 --- a/lib/stack_one/models/shared/platformlogspaginatedlegacy.rbi +++ /dev/null @@ -1,15 +0,0 @@ -# typed: true -# frozen_string_literal: true - - -class StackOne::Models::Shared::PlatformLogsPaginatedLegacy - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class StackOne::Models::Shared::PlatformLogsPaginatedLegacy - def data(); end - def data=(str_); end - def next_(); end - def next_=(str_); end -end diff --git a/lib/stack_one/models/shared/platformlogspostdto.rb b/lib/stack_one/models/shared/platformlogspostdto.rb new file mode 100644 index 000000000..c346648dc --- /dev/null +++ b/lib/stack_one/models/shared/platformlogspostdto.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 PlatformLogsPostDto + extend T::Sig + include Crystalline::MetadataFields + + # The filters to apply to the results + field :filters, Crystalline::Nilable.new(Models::Shared::PlatformLogsPostDtoFilters), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('filters') } } + # The page number of the results to return + field :page, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('page') } } + # The number of results per page + field :page_size, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('page_size') } } + + sig { params(filters: T.nilable(Models::Shared::PlatformLogsPostDtoFilters), page: T.nilable(::Float), page_size: T.nilable(::Float)).void } + def initialize(filters: nil, page: nil, page_size: nil) + @filters = filters + @page = page + @page_size = page_size + end + + sig { params(other: T.untyped).returns(T::Boolean) } + def ==(other) + return false unless other.is_a? self.class + return false unless @filters == other.filters + return false unless @page == other.page + return false unless @page_size == other.page_size + true + end + end + end + end +end diff --git a/lib/stack_one/models/shared/platformlogspostdto.rbi b/lib/stack_one/models/shared/platformlogspostdto.rbi new file mode 100644 index 000000000..30832940e --- /dev/null +++ b/lib/stack_one/models/shared/platformlogspostdto.rbi @@ -0,0 +1,17 @@ +# typed: true +# frozen_string_literal: true + + +class StackOne::Models::Shared::PlatformLogsPostDto + extend ::Crystalline::MetadataFields::ClassMethods +end + + +class StackOne::Models::Shared::PlatformLogsPostDto + def filters(); end + def filters=(str_); end + def page(); end + def page=(str_); end + def page_size(); end + def page_size=(str_); end +end diff --git a/lib/stack_one/models/shared/platformlogspostdto_filters.rb b/lib/stack_one/models/shared/platformlogspostdto_filters.rb new file mode 100644 index 000000000..1b6a4514d --- /dev/null +++ b/lib/stack_one/models/shared/platformlogspostdto_filters.rb @@ -0,0 +1,100 @@ +# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +# typed: true +# frozen_string_literal: true + + +module StackOne + module Models + module Shared + # The filters to apply to the results + class PlatformLogsPostDtoFilters + extend T::Sig + include Crystalline::MetadataFields + + # Filter by account IDs + field :account_secure_id, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('account_secure_id') } } + # Filter by the verb, independent of the resource it acted on + field :action, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('action') } } + # Filter by agent ID + field :agent_id, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('agent_id') } } + # Filter by the identifier of the credential used + field :auth_id, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('auth_id') } } + # Filter by the credential type the caller authenticated with + field :auth_type, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('auth_type') } } + # The end of the time range to filter by (ISO 8601 timestamp) + field :end_time, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('end_time') } } + # Filter by event IDs + field :event_id, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('event_id') } } + # Filter by event types. Each is `_`, so pass the set for a resource to see everything that happened to it. + field :event_type, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('event_type') } } + # Filter by the IP the operation came from + field :ip_address, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('ip_address') } } + # The field to order the results by + field :order_by, Crystalline::Nilable.new(Models::Shared::PlatformLogsPostDtoOrderBy), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('order_by'), 'decoder': ::StackOne::Utils.open_enum_from_string(Models::Shared::PlatformLogsPostDtoOrderBy, true) } } + # The direction to order the results by + field :order_direction, Crystalline::Nilable.new(Models::Shared::PlatformLogsPostDtoOrderDirection), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('order_direction'), 'decoder': ::StackOne::Utils.open_enum_from_string(Models::Shared::PlatformLogsPostDtoOrderDirection, true) } } + # Filter by session ID + field :session_id, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('session_id') } } + # Filter by source ID + field :source_id, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_id') } } + # Filter by source type + field :source_type, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_type') } } + # The start of the time range to filter by (ISO 8601 timestamp) + field :start_time, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('start_time') } } + # Filter by success status + field :success, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('success') } } + # Filter by transport type + field :transport_type, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('transport_type') } } + # Filter by the user the operation is attributed to + field :user_id, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('user_id') } } + + sig { params(account_secure_id: T.nilable(T::Array[::String]), action: T.nilable(T::Array[::String]), agent_id: T.nilable(T::Array[::String]), auth_id: T.nilable(T::Array[::String]), auth_type: T.nilable(T::Array[::String]), end_time: T.nilable(::String), event_id: T.nilable(T::Array[::String]), event_type: T.nilable(T::Array[::String]), ip_address: T.nilable(T::Array[::String]), order_by: T.nilable(Models::Shared::PlatformLogsPostDtoOrderBy), order_direction: T.nilable(Models::Shared::PlatformLogsPostDtoOrderDirection), session_id: T.nilable(T::Array[::String]), source_id: T.nilable(T::Array[::String]), source_type: T.nilable(T::Array[::String]), start_time: T.nilable(::String), success: T.nilable(T::Boolean), transport_type: T.nilable(T::Array[::String]), user_id: T.nilable(T::Array[::String])).void } + def initialize(account_secure_id: nil, action: nil, agent_id: nil, auth_id: nil, auth_type: nil, end_time: nil, event_id: nil, event_type: nil, ip_address: nil, order_by: nil, order_direction: nil, session_id: nil, source_id: nil, source_type: nil, start_time: nil, success: nil, transport_type: nil, user_id: nil) + @account_secure_id = account_secure_id + @action = action + @agent_id = agent_id + @auth_id = auth_id + @auth_type = auth_type + @end_time = end_time + @event_id = event_id + @event_type = event_type + @ip_address = ip_address + @order_by = order_by + @order_direction = order_direction + @session_id = session_id + @source_id = source_id + @source_type = source_type + @start_time = start_time + @success = success + @transport_type = transport_type + @user_id = user_id + end + + sig { params(other: T.untyped).returns(T::Boolean) } + def ==(other) + return false unless other.is_a? self.class + return false unless @account_secure_id == other.account_secure_id + return false unless @action == other.action + return false unless @agent_id == other.agent_id + return false unless @auth_id == other.auth_id + return false unless @auth_type == other.auth_type + return false unless @end_time == other.end_time + return false unless @event_id == other.event_id + return false unless @event_type == other.event_type + return false unless @ip_address == other.ip_address + return false unless @order_by == other.order_by + return false unless @order_direction == other.order_direction + return false unless @session_id == other.session_id + return false unless @source_id == other.source_id + return false unless @source_type == other.source_type + return false unless @start_time == other.start_time + return false unless @success == other.success + return false unless @transport_type == other.transport_type + return false unless @user_id == other.user_id + true + end + end + end + end +end diff --git a/lib/stack_one/models/shared/platformlogspostdto_filters.rbi b/lib/stack_one/models/shared/platformlogspostdto_filters.rbi new file mode 100644 index 000000000..d0a9c767d --- /dev/null +++ b/lib/stack_one/models/shared/platformlogspostdto_filters.rbi @@ -0,0 +1,47 @@ +# typed: true +# frozen_string_literal: true + + +class StackOne::Models::Shared::PlatformLogsPostDtoFilters + extend ::Crystalline::MetadataFields::ClassMethods +end + + +class StackOne::Models::Shared::PlatformLogsPostDtoFilters + def account_secure_id(); end + def account_secure_id=(str_); end + def action(); end + def action=(str_); end + def agent_id(); end + def agent_id=(str_); end + def auth_id(); end + def auth_id=(str_); end + def auth_type(); end + def auth_type=(str_); end + def end_time(); end + def end_time=(str_); end + def event_id(); end + def event_id=(str_); end + def event_type(); end + def event_type=(str_); end + def ip_address(); end + def ip_address=(str_); end + def order_by(); end + def order_by=(str_); end + def order_direction(); end + def order_direction=(str_); end + def session_id(); end + def session_id=(str_); end + def source_id(); end + def source_id=(str_); end + def source_type(); end + def source_type=(str_); end + def start_time(); end + def start_time=(str_); end + def success(); end + def success=(str_); end + def transport_type(); end + def transport_type=(str_); end + def user_id(); end + def user_id=(str_); end +end diff --git a/lib/stack_one/models/shared/platformlogspostdto_order_by.rb b/lib/stack_one/models/shared/platformlogspostdto_order_by.rb new file mode 100644 index 000000000..8e866817b --- /dev/null +++ b/lib/stack_one/models/shared/platformlogspostdto_order_by.rb @@ -0,0 +1,23 @@ +# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +# typed: true +# frozen_string_literal: true + + +module StackOne + module Models + module Shared + # PlatformLogsPostDtoOrderBy - The field to order the results by + class PlatformLogsPostDtoOrderBy + include ::Crystalline::Enum + enums do + START_TIME = new('start_time') + END_TIME = new('end_time') + EVENT_TIME = new('event_time') + DURATION_MS = new('duration_ms') + end + open! + end + end + end +end diff --git a/lib/stack_one/models/shared/platformlogspostdto_order_by.rbi b/lib/stack_one/models/shared/platformlogspostdto_order_by.rbi new file mode 100644 index 000000000..5fb71b7fe --- /dev/null +++ b/lib/stack_one/models/shared/platformlogspostdto_order_by.rbi @@ -0,0 +1,11 @@ +# typed: true +# frozen_string_literal: true + + +class StackOne::Models::Shared::PlatformLogsPostDtoOrderBy + extend ::Crystalline::MetadataFields::ClassMethods +end + + +class StackOne::Models::Shared::PlatformLogsPostDtoOrderBy +end diff --git a/lib/stack_one/models/operations/queryparam_order_direction.rb b/lib/stack_one/models/shared/platformlogspostdto_order_direction.rb similarity index 57% rename from lib/stack_one/models/operations/queryparam_order_direction.rb rename to lib/stack_one/models/shared/platformlogspostdto_order_direction.rb index 9173f1940..d1b550380 100644 --- a/lib/stack_one/models/operations/queryparam_order_direction.rb +++ b/lib/stack_one/models/shared/platformlogspostdto_order_direction.rb @@ -6,13 +6,15 @@ module StackOne module Models - module Operations - # QueryParamOrderDirection - The direction to order the results by. - class QueryParamOrderDirection < T::Enum + module Shared + # PlatformLogsPostDtoOrderDirection - The direction to order the results by + class PlatformLogsPostDtoOrderDirection + include ::Crystalline::Enum enums do ASC = new('asc') DESC = new('desc') end + open! end end end diff --git a/lib/stack_one/models/shared/platformlogspostdto_order_direction.rbi b/lib/stack_one/models/shared/platformlogspostdto_order_direction.rbi new file mode 100644 index 000000000..a4eb510c5 --- /dev/null +++ b/lib/stack_one/models/shared/platformlogspostdto_order_direction.rbi @@ -0,0 +1,11 @@ +# typed: true +# frozen_string_literal: true + + +class StackOne::Models::Shared::PlatformLogsPostDtoOrderDirection + extend ::Crystalline::MetadataFields::ClassMethods +end + + +class StackOne::Models::Shared::PlatformLogsPostDtoOrderDirection +end diff --git a/lib/stack_one/models/shared/request.rb b/lib/stack_one/models/shared/request.rb deleted file mode 100644 index b7562ed9b..000000000 --- a/lib/stack_one/models/shared/request.rb +++ /dev/null @@ -1,48 +0,0 @@ -# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -# typed: true -# frozen_string_literal: true - - -module StackOne - module Models - module Shared - # The advanced log request data - class Request - extend T::Sig - include Crystalline::MetadataFields - - - field :body, Crystalline::Nilable.new(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('body') } } - - field :headers, Crystalline::Nilable.new(Crystalline::Hash.new(Symbol, ::Object)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('headers') } } - # The request ID - field :id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } } - # The request method - field :method, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('method') } } - # The request URL data - field :url, Crystalline::Nilable.new(Models::Shared::Url), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('url') } } - - sig { params(body: T.nilable(::Object), headers: T.nilable(T::Hash[Symbol, ::Object]), id: T.nilable(::String), method: T.nilable(::String), url: T.nilable(Models::Shared::Url)).void } - def initialize(body: nil, headers: nil, id: nil, method: nil, url: nil) - @body = body - @headers = headers - @id = id - @method = method - @url = url - end - - sig { params(other: T.untyped).returns(T::Boolean) } - def ==(other) - return false unless other.is_a? self.class - return false unless @body == other.body - return false unless @headers == other.headers - return false unless @id == other.id - return false unless @method == other.method - return false unless @url == other.url - true - end - end - end - end -end diff --git a/lib/stack_one/models/shared/request.rbi b/lib/stack_one/models/shared/request.rbi deleted file mode 100644 index 369588203..000000000 --- a/lib/stack_one/models/shared/request.rbi +++ /dev/null @@ -1,21 +0,0 @@ -# typed: true -# frozen_string_literal: true - - -class StackOne::Models::Shared::Request - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class StackOne::Models::Shared::Request - def body(); end - def body=(str_); end - def headers(); end - def headers=(str_); end - def id(); end - def id=(str_); end - def method(); end - def method=(str_); end - def url(); end - def url=(str_); end -end diff --git a/lib/stack_one/models/shared/steplogpartiallegacy.rb b/lib/stack_one/models/shared/steplogpartiallegacy.rb deleted file mode 100644 index ea1f70cf6..000000000 --- a/lib/stack_one/models/shared/steplogpartiallegacy.rb +++ /dev/null @@ -1,104 +0,0 @@ -# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -# typed: true -# frozen_string_literal: true - - -module StackOne - module Models - module Shared - - class StepLogPartialLegacy - extend T::Sig - include Crystalline::MetadataFields - - # The account ID of the request - field :account_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('account_id') } } - # The requested action - field :action, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('action') } } - # The requested child resource - field :child_resource, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('child_resource') } } - # The request duration in milliseconds - field :duration, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('duration') } } - # The request end time ISO8601 date string - field :end_time, Crystalline::Nilable.new(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('end_time'), 'decoder': ::StackOne::Utils.datetime_from_iso_format(true) } } - # The requested HTTP method - field :http_method, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('http_method') } } - # The provider request ID - field :id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } } - # The asynchronous worker flag - field :is_worker, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('is_worker') } } - # The requested path - field :path, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('path') } } - # The project ID of the request - field :project_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('project_id') } } - # The requested provider - field :provider, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('provider') } } - # The request ID - field :request_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('request_id') } } - # The requested resource - field :resource, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('resource') } } - # The requested service - field :service, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('service') } } - # The request start time ISO8601 date string - field :start_time, Crystalline::Nilable.new(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('start_time'), 'decoder': ::StackOne::Utils.datetime_from_iso_format(true) } } - # The requests response status code - field :status, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('status') } } - # The requested sub resource - field :sub_resource, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('sub_resource') } } - # The request success flag - field :success, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('success') } } - # The requested URL - field :url, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('url') } } - - sig { params(account_id: T.nilable(::String), action: T.nilable(::String), child_resource: T.nilable(::String), duration: T.nilable(::Float), end_time: T.nilable(::DateTime), http_method: T.nilable(::String), id: T.nilable(::String), is_worker: T.nilable(T::Boolean), path: T.nilable(::String), project_id: T.nilable(::String), provider: T.nilable(::String), request_id: T.nilable(::String), resource: T.nilable(::String), service: T.nilable(::String), start_time: T.nilable(::DateTime), status: T.nilable(::Float), sub_resource: T.nilable(::String), success: T.nilable(T::Boolean), url: T.nilable(::String)).void } - def initialize(account_id: nil, action: nil, child_resource: nil, duration: nil, end_time: nil, http_method: nil, id: nil, is_worker: nil, path: nil, project_id: nil, provider: nil, request_id: nil, resource: nil, service: nil, start_time: nil, status: nil, sub_resource: nil, success: nil, url: nil) - @account_id = account_id - @action = action - @child_resource = child_resource - @duration = duration - @end_time = end_time - @http_method = http_method - @id = id - @is_worker = is_worker - @path = path - @project_id = project_id - @provider = provider - @request_id = request_id - @resource = resource - @service = service - @start_time = start_time - @status = status - @sub_resource = sub_resource - @success = success - @url = url - end - - sig { params(other: T.untyped).returns(T::Boolean) } - def ==(other) - return false unless other.is_a? self.class - return false unless @account_id == other.account_id - return false unless @action == other.action - return false unless @child_resource == other.child_resource - return false unless @duration == other.duration - return false unless @end_time == other.end_time - return false unless @http_method == other.http_method - return false unless @id == other.id - return false unless @is_worker == other.is_worker - return false unless @path == other.path - return false unless @project_id == other.project_id - return false unless @provider == other.provider - return false unless @request_id == other.request_id - return false unless @resource == other.resource - return false unless @service == other.service - return false unless @start_time == other.start_time - return false unless @status == other.status - return false unless @sub_resource == other.sub_resource - return false unless @success == other.success - return false unless @url == other.url - true - end - end - end - end -end diff --git a/lib/stack_one/models/shared/steplogpartiallegacy.rbi b/lib/stack_one/models/shared/steplogpartiallegacy.rbi deleted file mode 100644 index c622a4027..000000000 --- a/lib/stack_one/models/shared/steplogpartiallegacy.rbi +++ /dev/null @@ -1,49 +0,0 @@ -# typed: true -# frozen_string_literal: true - - -class StackOne::Models::Shared::StepLogPartialLegacy - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class StackOne::Models::Shared::StepLogPartialLegacy - def account_id(); end - def account_id=(str_); end - def action(); end - def action=(str_); end - def child_resource(); end - def child_resource=(str_); end - def duration(); end - def duration=(str_); end - def end_time(); end - def end_time=(str_); end - def http_method(); end - def http_method=(str_); end - def id(); end - def id=(str_); end - def is_worker(); end - def is_worker=(str_); end - def path(); end - def path=(str_); end - def project_id(); end - def project_id=(str_); end - def provider(); end - def provider=(str_); end - def request_id(); end - def request_id=(str_); end - def resource(); end - def resource=(str_); end - def service(); end - def service=(str_); end - def start_time(); end - def start_time=(str_); end - def status(); end - def status=(str_); end - def sub_resource(); end - def sub_resource=(str_); end - def success(); end - def success=(str_); end - def url(); end - def url=(str_); end -end diff --git a/lib/stack_one/models/shared/steplogspaginatedlegacy.rb b/lib/stack_one/models/shared/steplogspaginatedlegacy.rb deleted file mode 100644 index abd4530d4..000000000 --- a/lib/stack_one/models/shared/steplogspaginatedlegacy.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 Shared - - class StepLogsPaginatedLegacy - extend T::Sig - include Crystalline::MetadataFields - - - field :data, Crystalline::Array.new(Models::Shared::StepLogPartialLegacy), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('data'), required: true } } - - field :next_, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('next') } } - - sig { params(data: T::Array[Models::Shared::StepLogPartialLegacy], next_: T.nilable(::String)).void } - def initialize(data:, next_: nil) - @data = data - @next_ = next_ - end - - sig { params(other: T.untyped).returns(T::Boolean) } - def ==(other) - return false unless other.is_a? self.class - return false unless @data == other.data - return false unless @next_ == other.next_ - true - end - end - end - end -end diff --git a/lib/stack_one/models/shared/steplogspaginatedlegacy.rbi b/lib/stack_one/models/shared/steplogspaginatedlegacy.rbi deleted file mode 100644 index 6d9a11b85..000000000 --- a/lib/stack_one/models/shared/steplogspaginatedlegacy.rbi +++ /dev/null @@ -1,15 +0,0 @@ -# typed: true -# frozen_string_literal: true - - -class StackOne::Models::Shared::StepLogsPaginatedLegacy - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class StackOne::Models::Shared::StepLogsPaginatedLegacy - def data(); end - def data=(str_); end - def next_(); end - def next_=(str_); end -end diff --git a/lib/stack_one/models/shared/unifiedlog.rb b/lib/stack_one/models/shared/unifiedlog.rb index 8f2be32e7..4fb7198bd 100644 --- a/lib/stack_one/models/shared/unifiedlog.rb +++ b/lib/stack_one/models/shared/unifiedlog.rb @@ -30,6 +30,8 @@ class UnifiedLog field :auth_type, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('auth_type') } } # The child resource field :child_resource, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('child_resource') } } + # The connector display data — name, logo and categories. Only present when requested via `?expand=connector`; `connector_key`, `connector_version` and `connector_owner` are always returned regardless. + field :connector, Crystalline::Nilable.new(Models::Shared::UnifiedLogConnector), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('connector') } } # The connector key field :connector_key, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('connector_key') } } # The connector owner @@ -95,8 +97,8 @@ class UnifiedLog # The user agent field :user_agent, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('user_agent') } } - sig { params(log_id: ::String, log_type: Models::Shared::UnifiedLogLogType, request_id: ::String, account_id: T.nilable(::String), action: T.nilable(::String), agent_id: T.nilable(::String), auth_id: T.nilable(::String), auth_type: T.nilable(::String), child_resource: T.nilable(::String), connector_key: T.nilable(::String), connector_owner: T.nilable(::String), connector_version: T.nilable(::String), duration: T.nilable(::Float), duration_ms: T.nilable(::Float), end_time: T.nilable(::DateTime), event_time: T.nilable(::DateTime), http_method: T.nilable(::String), ip_address: T.nilable(::String), is_background: T.nilable(T::Boolean), is_worker: T.nilable(T::Boolean), mode: T.nilable(::String), origin_owner_id: T.nilable(::String), origin_owner_name: T.nilable(::String), path: T.nilable(::String), project_id: T.nilable(::String), provider: T.nilable(::String), resource: T.nilable(::String), service: T.nilable(::String), session_id: T.nilable(::String), source_id: T.nilable(::String), source_type: T.nilable(::String), source_value: T.nilable(::String), start_time: T.nilable(::DateTime), status: T.nilable(::Float), status_code: T.nilable(::Float), stream_type: T.nilable(::String), sub_resource: T.nilable(::String), success: T.nilable(T::Boolean), transport_type: T.nilable(::String), url: T.nilable(::String), user_agent: T.nilable(::String)).void } - def initialize(log_id:, log_type:, request_id:, account_id: nil, action: nil, agent_id: nil, auth_id: nil, auth_type: nil, child_resource: nil, connector_key: nil, connector_owner: nil, connector_version: nil, duration: nil, duration_ms: nil, end_time: nil, event_time: nil, http_method: nil, ip_address: nil, is_background: nil, is_worker: nil, mode: nil, origin_owner_id: nil, origin_owner_name: nil, path: nil, project_id: nil, provider: nil, resource: nil, service: nil, session_id: nil, source_id: nil, source_type: nil, source_value: nil, start_time: nil, status: nil, status_code: nil, stream_type: nil, sub_resource: nil, success: nil, transport_type: nil, url: nil, user_agent: nil) + sig { params(log_id: ::String, log_type: Models::Shared::UnifiedLogLogType, request_id: ::String, account_id: T.nilable(::String), action: T.nilable(::String), agent_id: T.nilable(::String), auth_id: T.nilable(::String), auth_type: T.nilable(::String), child_resource: T.nilable(::String), connector: T.nilable(Models::Shared::UnifiedLogConnector), connector_key: T.nilable(::String), connector_owner: T.nilable(::String), connector_version: T.nilable(::String), duration: T.nilable(::Float), duration_ms: T.nilable(::Float), end_time: T.nilable(::DateTime), event_time: T.nilable(::DateTime), http_method: T.nilable(::String), ip_address: T.nilable(::String), is_background: T.nilable(T::Boolean), is_worker: T.nilable(T::Boolean), mode: T.nilable(::String), origin_owner_id: T.nilable(::String), origin_owner_name: T.nilable(::String), path: T.nilable(::String), project_id: T.nilable(::String), provider: T.nilable(::String), resource: T.nilable(::String), service: T.nilable(::String), session_id: T.nilable(::String), source_id: T.nilable(::String), source_type: T.nilable(::String), source_value: T.nilable(::String), start_time: T.nilable(::DateTime), status: T.nilable(::Float), status_code: T.nilable(::Float), stream_type: T.nilable(::String), sub_resource: T.nilable(::String), success: T.nilable(T::Boolean), transport_type: T.nilable(::String), url: T.nilable(::String), user_agent: T.nilable(::String)).void } + def initialize(log_id:, log_type:, request_id:, account_id: nil, action: nil, agent_id: nil, auth_id: nil, auth_type: nil, child_resource: nil, connector: nil, connector_key: nil, connector_owner: nil, connector_version: nil, duration: nil, duration_ms: nil, end_time: nil, event_time: nil, http_method: nil, ip_address: nil, is_background: nil, is_worker: nil, mode: nil, origin_owner_id: nil, origin_owner_name: nil, path: nil, project_id: nil, provider: nil, resource: nil, service: nil, session_id: nil, source_id: nil, source_type: nil, source_value: nil, start_time: nil, status: nil, status_code: nil, stream_type: nil, sub_resource: nil, success: nil, transport_type: nil, url: nil, user_agent: nil) @log_id = log_id @log_type = log_type @request_id = request_id @@ -106,6 +108,7 @@ def initialize(log_id:, log_type:, request_id:, account_id: nil, action: nil, ag @auth_id = auth_id @auth_type = auth_type @child_resource = child_resource + @connector = connector @connector_key = connector_key @connector_owner = connector_owner @connector_version = connector_version @@ -152,6 +155,7 @@ def ==(other) return false unless @auth_id == other.auth_id return false unless @auth_type == other.auth_type return false unless @child_resource == other.child_resource + return false unless @connector == other.connector return false unless @connector_key == other.connector_key return false unless @connector_owner == other.connector_owner return false unless @connector_version == other.connector_version diff --git a/lib/stack_one/models/shared/unifiedlog.rbi b/lib/stack_one/models/shared/unifiedlog.rbi index 8b0585956..619ca18be 100644 --- a/lib/stack_one/models/shared/unifiedlog.rbi +++ b/lib/stack_one/models/shared/unifiedlog.rbi @@ -26,6 +26,8 @@ class StackOne::Models::Shared::UnifiedLog def auth_type=(str_); end def child_resource(); end def child_resource=(str_); end + def connector(); end + def connector=(str_); end def connector_key(); end def connector_key=(str_); end def connector_owner(); end diff --git a/lib/stack_one/models/shared/unifiedlog_connector.rb b/lib/stack_one/models/shared/unifiedlog_connector.rb new file mode 100644 index 000000000..c8c78a58d --- /dev/null +++ b/lib/stack_one/models/shared/unifiedlog_connector.rb @@ -0,0 +1,52 @@ +# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +# typed: true +# frozen_string_literal: true + + +module StackOne + module Models + module Shared + # The connector display data — name, logo and categories. Only present when requested via `?expand=connector`; `connector_key`, `connector_version` and `connector_owner` are always returned regardless. + class UnifiedLogConnector + extend T::Sig + include Crystalline::MetadataFields + + # The connector categories + field :categories, Crystalline::Array.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('categories'), required: true } } + # The connector key + field :key, ::String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('key'), required: true } } + # The connector logo. Falls back to a placeholder when none is declared. + field :logo_url, ::String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('logo_url'), required: true } } + # The connector owner. Defaults to the global `stackone` owner. + field :owner, ::String, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('owner'), required: true } } + # The connector display name. `null` when the connector is unknown. + field :name, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('name'), required: true } } + # The connector version the log was served by + field :version, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('version'), required: true } } + + sig { params(categories: T::Array[::String], key: ::String, logo_url: ::String, owner: ::String, name: T.nilable(::String), version: T.nilable(::String)).void } + def initialize(categories:, key:, logo_url:, owner:, name: nil, version: nil) + @categories = categories + @key = key + @logo_url = logo_url + @owner = owner + @name = name + @version = version + end + + sig { params(other: T.untyped).returns(T::Boolean) } + def ==(other) + return false unless other.is_a? self.class + return false unless @categories == other.categories + return false unless @key == other.key + return false unless @logo_url == other.logo_url + return false unless @owner == other.owner + return false unless @name == other.name + return false unless @version == other.version + true + end + end + end + end +end diff --git a/lib/stack_one/models/shared/unifiedlog_connector.rbi b/lib/stack_one/models/shared/unifiedlog_connector.rbi new file mode 100644 index 000000000..d0676faf5 --- /dev/null +++ b/lib/stack_one/models/shared/unifiedlog_connector.rbi @@ -0,0 +1,23 @@ +# typed: true +# frozen_string_literal: true + + +class StackOne::Models::Shared::UnifiedLogConnector + extend ::Crystalline::MetadataFields::ClassMethods +end + + +class StackOne::Models::Shared::UnifiedLogConnector + def categories(); end + def categories=(str_); end + def key(); end + def key=(str_); end + def logo_url(); end + def logo_url=(str_); end + def owner(); end + def owner=(str_); end + def name(); end + def name=(str_); end + def version(); end + def version=(str_); end +end diff --git a/lib/stack_one/models/shared/unifiedlogslegacy.rb b/lib/stack_one/models/shared/unifiedlogslegacy.rb deleted file mode 100644 index baa720c83..000000000 --- a/lib/stack_one/models/shared/unifiedlogslegacy.rb +++ /dev/null @@ -1,132 +0,0 @@ -# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -# typed: true -# frozen_string_literal: true - - -module StackOne - module Models - module Shared - - class UnifiedLogsLegacy - extend T::Sig - include Crystalline::MetadataFields - - # The account ID of the request - field :account_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('account_id') } } - # The requested action - field :action, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('action') } } - # The requested child resource - field :child_resource, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('child_resource') } } - # The request duration in milliseconds - field :duration, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('duration') } } - # The request end time ISO8601 date string - field :end_time, Crystalline::Nilable.new(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('end_time'), 'decoder': ::StackOne::Utils.datetime_from_iso_format(true) } } - # The event ISO8601 date string - field :event_datetime, Crystalline::Nilable.new(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('event_datetime'), 'decoder': ::StackOne::Utils.datetime_from_iso_format(true) } } - # The requested HTTP method - field :http_method, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('http_method') } } - # The asynchronous worker flag - field :is_worker, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('is_worker') } } - # The requested path - field :path, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('path') } } - # The project ID of the request - field :project_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('project_id') } } - # The requested provider - field :provider, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('provider') } } - # The advanced log request data - field :request, Crystalline::Nilable.new(Models::Shared::Request), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('request') } } - # The request ID - field :request_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('request_id') } } - # The requested resource - field :resource, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('resource') } } - # The advanced log response data - field :response, Crystalline::Nilable.new(Models::Shared::UnifiedLogsLegacyResponse), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('response') } } - # The requested service - field :service, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('service') } } - # The requests source ID - field :source_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_id') } } - # The requests source IPV4 ip address - field :source_ip, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_ip') } } - # The requests source type - field :source_type, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_type') } } - # The requests source value - field :source_value, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } } - # The request start time ISO8601 date string - field :start_time, Crystalline::Nilable.new(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('start_time'), 'decoder': ::StackOne::Utils.datetime_from_iso_format(true) } } - # The requests response status code - field :status, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('status') } } - # The list of provider requests - field :step_requests, Crystalline::Nilable.new(Crystalline::Array.new(Models::Shared::StepLog)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('step_requests') } } - # The requested sub resource - field :sub_resource, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('sub_resource') } } - # The request success flag - field :success, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('success') } } - # The requested URL - field :url, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('url') } } - - sig { params(account_id: T.nilable(::String), action: T.nilable(::String), child_resource: T.nilable(::String), duration: T.nilable(::Float), end_time: T.nilable(::DateTime), event_datetime: T.nilable(::DateTime), http_method: T.nilable(::String), is_worker: T.nilable(T::Boolean), path: T.nilable(::String), project_id: T.nilable(::String), provider: T.nilable(::String), request: T.nilable(Models::Shared::Request), request_id: T.nilable(::String), resource: T.nilable(::String), response: T.nilable(Models::Shared::UnifiedLogsLegacyResponse), service: T.nilable(::String), source_id: T.nilable(::String), source_ip: T.nilable(::String), source_type: T.nilable(::String), source_value: T.nilable(::String), start_time: T.nilable(::DateTime), status: T.nilable(::Float), step_requests: T.nilable(T::Array[Models::Shared::StepLog]), sub_resource: T.nilable(::String), success: T.nilable(T::Boolean), url: T.nilable(::String)).void } - def initialize(account_id: nil, action: nil, child_resource: nil, duration: nil, end_time: nil, event_datetime: nil, http_method: nil, is_worker: nil, path: nil, project_id: nil, provider: nil, request: nil, request_id: nil, resource: nil, response: nil, service: nil, source_id: nil, source_ip: nil, source_type: nil, source_value: nil, start_time: nil, status: nil, step_requests: nil, sub_resource: nil, success: nil, url: nil) - @account_id = account_id - @action = action - @child_resource = child_resource - @duration = duration - @end_time = end_time - @event_datetime = event_datetime - @http_method = http_method - @is_worker = is_worker - @path = path - @project_id = project_id - @provider = provider - @request = request - @request_id = request_id - @resource = resource - @response = response - @service = service - @source_id = source_id - @source_ip = source_ip - @source_type = source_type - @source_value = source_value - @start_time = start_time - @status = status - @step_requests = step_requests - @sub_resource = sub_resource - @success = success - @url = url - end - - sig { params(other: T.untyped).returns(T::Boolean) } - def ==(other) - return false unless other.is_a? self.class - return false unless @account_id == other.account_id - return false unless @action == other.action - return false unless @child_resource == other.child_resource - return false unless @duration == other.duration - return false unless @end_time == other.end_time - return false unless @event_datetime == other.event_datetime - return false unless @http_method == other.http_method - return false unless @is_worker == other.is_worker - return false unless @path == other.path - return false unless @project_id == other.project_id - return false unless @provider == other.provider - return false unless @request == other.request - return false unless @request_id == other.request_id - return false unless @resource == other.resource - return false unless @response == other.response - return false unless @service == other.service - return false unless @source_id == other.source_id - return false unless @source_ip == other.source_ip - return false unless @source_type == other.source_type - return false unless @source_value == other.source_value - return false unless @start_time == other.start_time - return false unless @status == other.status - return false unless @step_requests == other.step_requests - return false unless @sub_resource == other.sub_resource - return false unless @success == other.success - return false unless @url == other.url - true - end - end - end - end -end diff --git a/lib/stack_one/models/shared/unifiedlogslegacy.rbi b/lib/stack_one/models/shared/unifiedlogslegacy.rbi deleted file mode 100644 index 5522a9175..000000000 --- a/lib/stack_one/models/shared/unifiedlogslegacy.rbi +++ /dev/null @@ -1,63 +0,0 @@ -# typed: true -# frozen_string_literal: true - - -class StackOne::Models::Shared::UnifiedLogsLegacy - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class StackOne::Models::Shared::UnifiedLogsLegacy - def account_id(); end - def account_id=(str_); end - def action(); end - def action=(str_); end - def child_resource(); end - def child_resource=(str_); end - def duration(); end - def duration=(str_); end - def end_time(); end - def end_time=(str_); end - def event_datetime(); end - def event_datetime=(str_); end - def http_method(); end - def http_method=(str_); end - def is_worker(); end - def is_worker=(str_); end - def path(); end - def path=(str_); end - def project_id(); end - def project_id=(str_); end - def provider(); end - def provider=(str_); end - def request(); end - def request=(str_); end - def request_id(); end - def request_id=(str_); end - def resource(); end - def resource=(str_); end - def response(); end - def response=(str_); end - def service(); end - def service=(str_); end - def source_id(); end - def source_id=(str_); end - def source_ip(); end - def source_ip=(str_); end - def source_type(); end - def source_type=(str_); end - def source_value(); end - def source_value=(str_); end - def start_time(); end - def start_time=(str_); end - def status(); end - def status=(str_); end - def step_requests(); end - def step_requests=(str_); end - def sub_resource(); end - def sub_resource=(str_); end - def success(); end - def success=(str_); end - def url(); end - def url=(str_); end -end diff --git a/lib/stack_one/models/shared/unifiedlogslegacy_response.rb b/lib/stack_one/models/shared/unifiedlogslegacy_response.rb deleted file mode 100644 index 19927b8a9..000000000 --- a/lib/stack_one/models/shared/unifiedlogslegacy_response.rb +++ /dev/null @@ -1,48 +0,0 @@ -# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -# typed: true -# frozen_string_literal: true - - -module StackOne - module Models - module Shared - # The advanced log response data - class UnifiedLogsLegacyResponse - extend T::Sig - include Crystalline::MetadataFields - - - field :body, Crystalline::Nilable.new(::Object), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('body') } } - # The custom mapping errors - field :custom_mapping_errors, Crystalline::Nilable.new(Crystalline::Array.new(Models::Shared::CustomMappingError)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('custom_mapping_errors') } } - - field :headers, Crystalline::Nilable.new(Crystalline::Hash.new(Symbol, ::Object)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('headers') } } - # The provider errors - field :provider_errors, Crystalline::Nilable.new(Crystalline::Array.new(Models::Shared::ProviderError)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('provider_errors') } } - # The response status code - field :status_code, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('status_code') } } - - sig { params(body: T.nilable(::Object), custom_mapping_errors: T.nilable(T::Array[Models::Shared::CustomMappingError]), headers: T.nilable(T::Hash[Symbol, ::Object]), provider_errors: T.nilable(T::Array[Models::Shared::ProviderError]), status_code: T.nilable(::Float)).void } - def initialize(body: nil, custom_mapping_errors: nil, headers: nil, provider_errors: nil, status_code: nil) - @body = body - @custom_mapping_errors = custom_mapping_errors - @headers = headers - @provider_errors = provider_errors - @status_code = status_code - end - - sig { params(other: T.untyped).returns(T::Boolean) } - def ==(other) - return false unless other.is_a? self.class - return false unless @body == other.body - return false unless @custom_mapping_errors == other.custom_mapping_errors - return false unless @headers == other.headers - return false unless @provider_errors == other.provider_errors - return false unless @status_code == other.status_code - true - end - end - end - end -end diff --git a/lib/stack_one/models/shared/unifiedlogslegacy_response.rbi b/lib/stack_one/models/shared/unifiedlogslegacy_response.rbi deleted file mode 100644 index e222494a7..000000000 --- a/lib/stack_one/models/shared/unifiedlogslegacy_response.rbi +++ /dev/null @@ -1,21 +0,0 @@ -# typed: true -# frozen_string_literal: true - - -class StackOne::Models::Shared::UnifiedLogsLegacyResponse - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class StackOne::Models::Shared::UnifiedLogsLegacyResponse - def body(); end - def body=(str_); end - def custom_mapping_errors(); end - def custom_mapping_errors=(str_); end - def headers(); end - def headers=(str_); end - def provider_errors(); end - def provider_errors=(str_); end - def status_code(); end - def status_code=(str_); end -end diff --git a/lib/stack_one/models/shared/unifiedlogspaginatedlegacy.rb b/lib/stack_one/models/shared/unifiedlogspaginatedlegacy.rb deleted file mode 100644 index b02de7565..000000000 --- a/lib/stack_one/models/shared/unifiedlogspaginatedlegacy.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 Shared - - class UnifiedLogsPaginatedLegacy - extend T::Sig - include Crystalline::MetadataFields - - - field :data, Crystalline::Array.new(Models::Shared::UnifiedLogsPartialLegacy), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('data'), required: true } } - - field :next_, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('next') } } - - sig { params(data: T::Array[Models::Shared::UnifiedLogsPartialLegacy], next_: T.nilable(::String)).void } - def initialize(data:, next_: nil) - @data = data - @next_ = next_ - end - - sig { params(other: T.untyped).returns(T::Boolean) } - def ==(other) - return false unless other.is_a? self.class - return false unless @data == other.data - return false unless @next_ == other.next_ - true - end - end - end - end -end diff --git a/lib/stack_one/models/shared/unifiedlogspaginatedlegacy.rbi b/lib/stack_one/models/shared/unifiedlogspaginatedlegacy.rbi deleted file mode 100644 index 5fa897bab..000000000 --- a/lib/stack_one/models/shared/unifiedlogspaginatedlegacy.rbi +++ /dev/null @@ -1,15 +0,0 @@ -# typed: true -# frozen_string_literal: true - - -class StackOne::Models::Shared::UnifiedLogsPaginatedLegacy - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class StackOne::Models::Shared::UnifiedLogsPaginatedLegacy - def data(); end - def data=(str_); end - def next_(); end - def next_=(str_); end -end diff --git a/lib/stack_one/models/shared/unifiedlogspartiallegacy.rb b/lib/stack_one/models/shared/unifiedlogspartiallegacy.rb deleted file mode 100644 index e8cd28f37..000000000 --- a/lib/stack_one/models/shared/unifiedlogspartiallegacy.rb +++ /dev/null @@ -1,124 +0,0 @@ -# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -# typed: true -# frozen_string_literal: true - - -module StackOne - module Models - module Shared - - class UnifiedLogsPartialLegacy - extend T::Sig - include Crystalline::MetadataFields - - # The account ID of the request - field :account_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('account_id') } } - # The requested action - field :action, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('action') } } - # The requested child resource - field :child_resource, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('child_resource') } } - # The request duration in milliseconds - field :duration, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('duration') } } - # The request end time ISO8601 date string - field :end_time, Crystalline::Nilable.new(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('end_time'), 'decoder': ::StackOne::Utils.datetime_from_iso_format(true) } } - # The event ISO8601 date string - field :event_datetime, Crystalline::Nilable.new(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('event_datetime'), 'decoder': ::StackOne::Utils.datetime_from_iso_format(true) } } - # The requested HTTP method - field :http_method, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('http_method') } } - # The asynchronous worker flag - field :is_worker, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('is_worker') } } - # The requested path - field :path, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('path') } } - # The project ID of the request - field :project_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('project_id') } } - # The requested provider - field :provider, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('provider') } } - # The request ID - field :request_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('request_id') } } - # The requested resource - field :resource, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('resource') } } - # The requested service - field :service, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('service') } } - # The requests source ID - field :source_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_id') } } - # The requests source IPV4 ip address - field :source_ip, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_ip') } } - # The requests source type - field :source_type, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_type') } } - # The requests source value - field :source_value, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } } - # The request start time ISO8601 date string - field :start_time, Crystalline::Nilable.new(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('start_time'), 'decoder': ::StackOne::Utils.datetime_from_iso_format(true) } } - # The requests response status code - field :status, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('status') } } - # The list of provider requests - field :step_requests, Crystalline::Nilable.new(Crystalline::Array.new(Models::Shared::StepLogPartialLegacy)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('step_requests') } } - # The requested sub resource - field :sub_resource, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('sub_resource') } } - # The request success flag - field :success, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('success') } } - # The requested URL - field :url, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('url') } } - - sig { params(account_id: T.nilable(::String), action: T.nilable(::String), child_resource: T.nilable(::String), duration: T.nilable(::Float), end_time: T.nilable(::DateTime), event_datetime: T.nilable(::DateTime), http_method: T.nilable(::String), is_worker: T.nilable(T::Boolean), path: T.nilable(::String), project_id: T.nilable(::String), provider: T.nilable(::String), request_id: T.nilable(::String), resource: T.nilable(::String), service: T.nilable(::String), source_id: T.nilable(::String), source_ip: T.nilable(::String), source_type: T.nilable(::String), source_value: T.nilable(::String), start_time: T.nilable(::DateTime), status: T.nilable(::Float), step_requests: T.nilable(T::Array[Models::Shared::StepLogPartialLegacy]), sub_resource: T.nilable(::String), success: T.nilable(T::Boolean), url: T.nilable(::String)).void } - def initialize(account_id: nil, action: nil, child_resource: nil, duration: nil, end_time: nil, event_datetime: nil, http_method: nil, is_worker: nil, path: nil, project_id: nil, provider: nil, request_id: nil, resource: nil, service: nil, source_id: nil, source_ip: nil, source_type: nil, source_value: nil, start_time: nil, status: nil, step_requests: nil, sub_resource: nil, success: nil, url: nil) - @account_id = account_id - @action = action - @child_resource = child_resource - @duration = duration - @end_time = end_time - @event_datetime = event_datetime - @http_method = http_method - @is_worker = is_worker - @path = path - @project_id = project_id - @provider = provider - @request_id = request_id - @resource = resource - @service = service - @source_id = source_id - @source_ip = source_ip - @source_type = source_type - @source_value = source_value - @start_time = start_time - @status = status - @step_requests = step_requests - @sub_resource = sub_resource - @success = success - @url = url - end - - sig { params(other: T.untyped).returns(T::Boolean) } - def ==(other) - return false unless other.is_a? self.class - return false unless @account_id == other.account_id - return false unless @action == other.action - return false unless @child_resource == other.child_resource - return false unless @duration == other.duration - return false unless @end_time == other.end_time - return false unless @event_datetime == other.event_datetime - return false unless @http_method == other.http_method - return false unless @is_worker == other.is_worker - return false unless @path == other.path - return false unless @project_id == other.project_id - return false unless @provider == other.provider - return false unless @request_id == other.request_id - return false unless @resource == other.resource - return false unless @service == other.service - return false unless @source_id == other.source_id - return false unless @source_ip == other.source_ip - return false unless @source_type == other.source_type - return false unless @source_value == other.source_value - return false unless @start_time == other.start_time - return false unless @status == other.status - return false unless @step_requests == other.step_requests - return false unless @sub_resource == other.sub_resource - return false unless @success == other.success - return false unless @url == other.url - true - end - end - end - end -end diff --git a/lib/stack_one/models/shared/unifiedlogspartiallegacy.rbi b/lib/stack_one/models/shared/unifiedlogspartiallegacy.rbi deleted file mode 100644 index 14378b1f4..000000000 --- a/lib/stack_one/models/shared/unifiedlogspartiallegacy.rbi +++ /dev/null @@ -1,59 +0,0 @@ -# typed: true -# frozen_string_literal: true - - -class StackOne::Models::Shared::UnifiedLogsPartialLegacy - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class StackOne::Models::Shared::UnifiedLogsPartialLegacy - def account_id(); end - def account_id=(str_); end - def action(); end - def action=(str_); end - def child_resource(); end - def child_resource=(str_); end - def duration(); end - def duration=(str_); end - def end_time(); end - def end_time=(str_); end - def event_datetime(); end - def event_datetime=(str_); end - def http_method(); end - def http_method=(str_); end - def is_worker(); end - def is_worker=(str_); end - def path(); end - def path=(str_); end - def project_id(); end - def project_id=(str_); end - def provider(); end - def provider=(str_); end - def request_id(); end - def request_id=(str_); end - def resource(); end - def resource=(str_); end - def service(); end - def service=(str_); end - def source_id(); end - def source_id=(str_); end - def source_ip(); end - def source_ip=(str_); end - def source_type(); end - def source_type=(str_); end - def source_value(); end - def source_value=(str_); end - def start_time(); end - def start_time=(str_); end - def status(); end - def status=(str_); end - def step_requests(); end - def step_requests=(str_); end - def sub_resource(); end - def sub_resource=(str_); end - def success(); end - def success=(str_); end - def url(); end - def url=(str_); end -end diff --git a/lib/stack_one/models/shared/url.rb b/lib/stack_one/models/shared/url.rb deleted file mode 100644 index bd6abdb04..000000000 --- a/lib/stack_one/models/shared/url.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 Shared - # The request URL data - class Url - extend T::Sig - include Crystalline::MetadataFields - - # The request URL hostname - field :hostname, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('hostname') } } - # The request path - field :path, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('path') } } - # The request query parameters - field :query_params, Crystalline::Nilable.new(Crystalline::Hash.new(Symbol, ::Object)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('query_params') } } - # The request URL - field :url, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('url') } } - - sig { params(hostname: T.nilable(::String), path: T.nilable(::String), query_params: T.nilable(T::Hash[Symbol, ::Object]), url: T.nilable(::String)).void } - def initialize(hostname: nil, path: nil, query_params: nil, url: nil) - @hostname = hostname - @path = path - @query_params = query_params - @url = url - end - - sig { params(other: T.untyped).returns(T::Boolean) } - def ==(other) - return false unless other.is_a? self.class - return false unless @hostname == other.hostname - return false unless @path == other.path - return false unless @query_params == other.query_params - return false unless @url == other.url - true - end - end - end - end -end diff --git a/lib/stack_one/models/shared/url.rbi b/lib/stack_one/models/shared/url.rbi deleted file mode 100644 index cd8ddc7f7..000000000 --- a/lib/stack_one/models/shared/url.rbi +++ /dev/null @@ -1,19 +0,0 @@ -# typed: true -# frozen_string_literal: true - - -class StackOne::Models::Shared::Url - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class StackOne::Models::Shared::Url - def hostname(); end - def hostname=(str_); end - def path(); end - def path=(str_); end - def query_params(); end - def query_params=(str_); end - def url(); end - def url=(str_); end -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 deleted file mode 100644 index 4a0ffcda3..000000000 --- a/lib/stack_one/request_logs.rb +++ /dev/null @@ -1,1176 +0,0 @@ -# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -# typed: true -# frozen_string_literal: true - -require 'faraday' -require 'faraday/multipart' -require 'faraday/retry' -require 'sorbet-runtime' -require_relative 'sdk_hooks/hooks' -require_relative 'utils/retries' - -module StackOne - extend T::Sig - class RequestLogs - extend T::Sig - - # API requests and response logs. - - sig { params(sdk_config: SDKConfiguration).void } - def initialize(sdk_config) - @sdk_configuration = sdk_config - - end - - sig { params(base_url: String, url_variables: T.nilable(T::Hash[Symbol, T.any(String, T::Enum)])).returns(String) } - def get_url(base_url:, url_variables: nil) - sd_base_url, sd_options = @sdk_configuration.get_server_details - - if base_url.nil? - base_url = sd_base_url - end - - if url_variables.nil? - url_variables = sd_options - end - - return Utils.template_url base_url, url_variables - end - - - - - sig { params(id: ::String, include: T.nilable(Models::Operations::QueryParamInclude), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::StackoneGetLogResponse) } - def get_log(id:, include: nil, retries: nil, timeout_ms: nil, http_headers: nil) - # get_log - Get Log - # - # If set, this operation will use `password` from the global security. - # - # @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. - request = Models::Operations::StackoneGetLogRequest.new( - id: id, - include: include - ) - url, params = @sdk_configuration.get_server_details - base_url = Utils.template_url(url, params) - url = Utils.generate_url( - Models::Operations::StackoneGetLogRequest, - base_url, - '/requests/logs/{id}', - request - ) - headers = {} - headers = T.cast(headers, T::Hash[String, String]) - query_params = Utils.get_query_params(Models::Operations::StackoneGetLogRequest, 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] - - security = @sdk_configuration.security_source&.call - - 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_get_log', - security_source: @sdk_configuration.security_source - ) - - 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, %i[password]) - 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']) - 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::Shared::UnifiedLogResultLegacy) - response = Models::Operations::StackoneGetLogResponse.new( - status_code: http_response.status, - content_type: content_type, - raw_response: http_response, - headers: {}, - unified_log_result_legacy: T.unsafe(obj) - ) - - return response - 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, ['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(request: Models::Operations::StackoneListLogsLegacyRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::StackoneListLogsLegacyResponse) } - def list_logs_legacy(request:, retries: nil, timeout_ms: nil, http_headers: nil) - # list_logs_legacy - List Logs - # - # If set, this operation will use `password` from the global security. - # - # @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. - url, params = @sdk_configuration.get_server_details - base_url = Utils.template_url(url, params) - url = "#{base_url}/requests/logs" - headers = {} - headers = T.cast(headers, T::Hash[String, String]) - query_params = Utils.get_query_params(Models::Operations::StackoneListLogsLegacyRequest, 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] - - security = @sdk_configuration.security_source&.call - - 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_list_logs_legacy', - security_source: @sdk_configuration.security_source - ) - - 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, %i[password]) - 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']) - 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::Shared::UnifiedLogsPaginatedLegacy) - response = Models::Operations::StackoneListLogsLegacyResponse.new( - status_code: http_response.status, - content_type: content_type, - raw_response: http_response, - headers: {}, - unified_logs_paginated_legacy: T.unsafe(obj) - ) - - return response - 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, ['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(request: Models::Operations::StackoneListPlatformLogsRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::StackoneListPlatformLogsResponse) } - def list_platform_logs(request:, retries: nil, timeout_ms: nil, http_headers: nil) - # list_platform_logs - List Platform Logs - # - # If set, this operation will use `password` from the global security. - # - # @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. - url, params = @sdk_configuration.get_server_details - base_url = Utils.template_url(url, params) - url = "#{base_url}/requests/platform-logs" - headers = {} - headers = T.cast(headers, T::Hash[String, String]) - query_params = Utils.get_query_params(Models::Operations::StackoneListPlatformLogsRequest, 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] - - security = @sdk_configuration.security_source&.call - - 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_list_platform_logs', - security_source: @sdk_configuration.security_source - ) - - 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, %i[password]) - 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']) - 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::Shared::PlatformLogsPaginatedLegacy) - response = Models::Operations::StackoneListPlatformLogsResponse.new( - status_code: http_response.status, - content_type: content_type, - raw_response: http_response, - headers: {}, - platform_logs_paginated_legacy: T.unsafe(obj) - ) - - return response - 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, ['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(request: Models::Operations::StackoneListStepLogsLegacyRequest, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::StackoneListStepLogsLegacyResponse) } - def list_step_logs_legacy(request:, retries: nil, timeout_ms: nil, http_headers: nil) - # list_step_logs_legacy - List Step Logs - # - # If set, this operation will use `password` from the global security. - # - # @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. - url, params = @sdk_configuration.get_server_details - base_url = Utils.template_url(url, params) - url = "#{base_url}/requests/logs/steps" - headers = {} - headers = T.cast(headers, T::Hash[String, String]) - query_params = Utils.get_query_params(Models::Operations::StackoneListStepLogsLegacyRequest, 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] - - security = @sdk_configuration.security_source&.call - - 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_list_step_logs_legacy', - security_source: @sdk_configuration.security_source - ) - - 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, %i[password]) - 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']) - 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::Shared::StepLogsPaginatedLegacy) - response = Models::Operations::StackoneListStepLogsLegacyResponse.new( - status_code: http_response.status, - content_type: content_type, - raw_response: http_response, - headers: {}, - step_logs_paginated_legacy: T.unsafe(obj) - ) - - return response - 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, ['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 -end -end 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..825a58066 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.933.0' + @user_agent = 'speakeasy-sdk/ruby 0.41.2 2.933.0 1.0.0 stackone_client' end sig { returns([String, T::Hash[Symbol, String]]) } diff --git a/lib/stack_one/stackone.rb b/lib/stack_one/stackone.rb index cb29ebb05..52b2e09d0 100644 --- a/lib/stack_one/stackone.rb +++ b/lib/stack_one/stackone.rb @@ -16,7 +16,7 @@ module StackOne class StackOne extend T::Sig - attr_accessor :accounts, :actions, :auth_configs, :connect_sessions, :connector_profiles, :connectors, :logs, :mcp, :request_logs, :accounting, :ats, :crm, :documents, :hris, :iam, :lms, :marketing, :messaging, :proxy, :screening, :ticketing + attr_accessor :accounts, :actions, :auth_configs, :connect_sessions, :connector_profiles, :connectors, :logs, :mcp, :accounting, :ats, :crm, :documents, :hris, :iam, :lms, :marketing, :messaging, :proxy, :screening, :ticketing # Instantiates the SDK, configuring it with the provided parameters. # @@ -86,7 +86,6 @@ def init_sdks @connectors = Connectors.new(@sdk_configuration) @logs = Logs.new(@sdk_configuration) @mcp = Mcp.new(@sdk_configuration) - @request_logs = RequestLogs.new(@sdk_configuration) @accounting = Accounting.new(@sdk_configuration) @ats = Ats.new(@sdk_configuration) @crm = Crm.new(@sdk_configuration) 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/lib/stackone_client.rb b/lib/stackone_client.rb index 692be2b19..3365623dd 100644 --- a/lib/stackone_client.rb +++ b/lib/stackone_client.rb @@ -13,7 +13,6 @@ module StackOne autoload :Connectors, 'stack_one/connectors' autoload :Logs, 'stack_one/logs' autoload :Mcp, 'stack_one/mcp' - autoload :RequestLogs, 'stack_one/request_logs' autoload :Accounting, 'stack_one/accounting' autoload :Ats, 'stack_one/ats' autoload :Crm, 'stack_one/crm' 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 = ''