diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 1b4f5481..00172b9f 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,19 +1,19 @@ lockVersion: 2.0.0 id: 3e3290ca-0ee8-4981-b1bc-14536048fa63 management: - docChecksum: 91d38b9d4b28ef9b1b98e10a0b5a7371 + docChecksum: 00e5ac498ff962a54ae07ba16fd250d1 docVersion: 0.9.0 - speakeasyVersion: 1.686.0 - generationVersion: 2.796.1 - releaseVersion: 0.11.27 - configChecksum: 37e1926f5925719f705610da6ba7d40e + speakeasyVersion: 1.695.0 + generationVersion: 2.799.0 + releaseVersion: 0.11.28 + configChecksum: 03e7fbb96c493ad4660d4b3db19252bc repoURL: https://github.com/gleanwork/api-client-python.git installationURL: https://github.com/gleanwork/api-client-python.git published: true persistentEdits: - generation_id: 8295e5cc-3cba-4720-b40b-d377a32f9ce7 - pristine_commit_hash: ec8d0cb548d884b034e3aa08460751054ec7dca1 - pristine_tree_hash: f2f4799cb7a7f9af40b1a07a81904fe71f4a3e37 + generation_id: 1cea1fcd-0d36-4cc4-b4cc-02912813a181 + pristine_commit_hash: fd44d35ca0a7a7745c2cc3ef9921a12d02b8aa0d + pristine_tree_hash: 543ea6eb261276c8357177a5a5d79d772e0ed90f features: python: additionalDependencies: 1.0.0 @@ -41,7 +41,7 @@ features: responseFormat: 1.0.1 retries: 3.0.3 sdkHooks: 1.2.1 - tests: 1.19.6 + tests: 1.19.7 unions: 3.1.2 uploadStreams: 1.0.0 trackedFiles: @@ -75,8 +75,8 @@ trackedFiles: pristine_git_object: a6800fed5ba94f25934cdd5b8fe3fa6832f51239 docs/errors/gleandataerror.md: id: d8679ae13234 - last_write_checksum: sha1:bc595bf0967592999c683a4e3a43fa69783bbd10 - pristine_git_object: f1df02d4e5daa03df8e8c1b5684fcc91bcabc8a7 + last_write_checksum: sha1:a6567c83c6c0bf8eaed55f50af08001869d6a5de + pristine_git_object: 7c4c0d90fd0a2de3e48b99ce691c1e9a6ab03041 docs/models/activity.md: id: 78c9fe854b65 last_write_checksum: sha1:2bb3d1005124784d416910cff9777277facaebb2 @@ -109,6 +109,10 @@ trackedFiles: id: 77be3840df27 last_write_checksum: sha1:d3c2c8791ea4ad38979641f79b12473d5ef7b6af pristine_git_object: 3f8e3df44347af6a5233e01edd5ed4eb8a195ee3 + docs/models/addcollectionitemsrequestrequest.md: + id: 12fae7efc710 + last_write_checksum: sha1:12862265b02d82195bb05861465a683f1ff70b6f + pristine_git_object: 06b734c859b0d9579513d68bb5819df38aff3e3c docs/models/addcollectionitemsresponse.md: id: 7da8da71c4d9 last_write_checksum: sha1:973313c99ec4dd5eeabbce4373d5ba409d3c17a9 @@ -117,6 +121,14 @@ trackedFiles: id: 561d5510e1fd last_write_checksum: sha1:372dec0693e8b9804729161c20c4064c6c8e054b pristine_git_object: b91d9ff68747160fb9b1df76f6499ddc66baef14 + docs/models/addverificationreminderrequest.md: + id: d036e5a8e487 + last_write_checksum: sha1:c6bce69847c73c7d812862396affa79d8f3e47ca + pristine_git_object: ac943c103887202145ede4cc4fda97541cc768be + docs/models/adminsearchrequest.md: + id: defaea5cef39 + last_write_checksum: sha1:f2593488f88b6a1a278dc05787212eec1ea023c0 + pristine_git_object: 608a7bad94d9445cfa1e7ad9de07cd0bb6848272 docs/models/agent.md: id: ffdbb4c53c87 last_write_checksum: sha1:5cae21e5f1580771477cf08ee54749aa174f1390 @@ -281,6 +293,10 @@ trackedFiles: id: 17d479e27d90 last_write_checksum: sha1:e59c2e682e4271aee48faf382e069ec614f1f1b7 pristine_git_object: f3dfd2e93990c4b6bc193454f63ad4fee24d7095 + docs/models/autocompleterequestrequest.md: + id: 317ac647722c + last_write_checksum: sha1:12cc5b7ecb4f809bf8735c278e50b9d89c5a337e + pristine_git_object: f52bd9ee886df0323f70d1416c7f567beee45fe9 docs/models/autocompleterequestresulttype.md: id: b8d90b50b8a1 last_write_checksum: sha1:ba2246fb302575968eae095e79f2da48c8244c9c @@ -415,8 +431,8 @@ trackedFiles: pristine_git_object: ae4528f9bb83105c8bb4a8f7d9bcef9ce97e83c8 docs/models/chatrequestrequest.md: id: a3ec3d49636c - last_write_checksum: sha1:947597b3e944c1810f0b7bc559d67a73175b0978 - pristine_git_object: 733a2720da0f9a5e18c6a63710f4bc3946af13e7 + last_write_checksum: sha1:a7728be88e6fc29a1827f5abeb9b565293447857 + pristine_git_object: 743e1fd15ef2e5a212c755a793811ccbf19d46a5 docs/models/chatresponse.md: id: f59beb8f6c98 last_write_checksum: sha1:fb69e7b641548c4a72d60bb607b87443fb9abc06 @@ -565,10 +581,18 @@ trackedFiles: id: a024b65d5db4 last_write_checksum: sha1:b8f82bdff7d69ba3fc7535c58363842f55015f1f pristine_git_object: f5442c4758dd1a228b08f9835aab8533a47a8868 + docs/models/createannouncementrequestrequest.md: + id: de0c3ac42c0f + last_write_checksum: sha1:81b253aba6c657667e69d75cf93c6030a2118a42 + pristine_git_object: 69fa43dd3539008293a4d5dd0d345864665cf5da docs/models/createanswerrequest.md: id: b2f4f1bd1e2d last_write_checksum: sha1:06738631e9d37cd6b74284d99ea0a13a538a4f32 pristine_git_object: d00968f31b3d5c21eecdb205bf6bbc76586e968c + docs/models/createanswerrequestrequest.md: + id: ceeb2981de22 + last_write_checksum: sha1:a4ba09a3544dd4eda7b0ffa862fdc4f8f393780b + pristine_git_object: 297b5967bdbfb9dfcb0cdae19efd17f0aaacec9e docs/models/createauthtokenresponse.md: id: 11242161d015 last_write_checksum: sha1:97cdc3ab9b3f9f9ad126ed2e2195f373114fec26 @@ -577,6 +601,10 @@ trackedFiles: id: 4fb742a4bf50 last_write_checksum: sha1:54daa6dff72ccf9da5aa759e7e6ac7693f491f85 pristine_git_object: f0e6c91b8fd6a92ff6862fcc99a6c8aa1d32ae3d + docs/models/createcollectionrequestrequest.md: + id: aba8cdd4ff72 + last_write_checksum: sha1:f9fac4f1e3989d38a3997785710c6b00e56d2d17 + pristine_git_object: 7eaa07b63ff249dd034cb37b080a5936a586b945 docs/models/createcollectionresponse.md: id: 1c420e97a6da last_write_checksum: sha1:28feca094bb87797c4129d2f61685e7d521a60c8 @@ -593,6 +621,10 @@ trackedFiles: id: 19d7a34341b9 last_write_checksum: sha1:8eb5ba8fbfea9bf7df0d5ed1da91c8c639067dd8 pristine_git_object: 1b6b63a0fbf2b25ed4a8337d663860bc417a4a10 + docs/models/createshortcutrequestrequest.md: + id: a616232d47e9 + last_write_checksum: sha1:01576ae1544e66d6f283901101d822132acbb383 + pristine_git_object: 558b5abfe01c41bad4f92940f1c95e5ed057ddbf docs/models/createshortcutresponse.md: id: 82707fc9efe5 last_write_checksum: sha1:320bddb9b5ab5dec88760d844b2d585aea2d87f8 @@ -755,36 +787,48 @@ trackedFiles: pristine_git_object: c4849b3bf6c68ed1bf5a4d515b3f78117b06c9e3 docs/models/deleteallchatsrequest.md: id: 0df31df547ef - last_write_checksum: sha1:19846d33a03738d2881537195ede6ecf39062d1a - pristine_git_object: f98987ba31c9c572488c313fba6f510c33ff0b39 + last_write_checksum: sha1:469b4a6d062bdb6d7932751074656d48d1d9f3b1 + pristine_git_object: 01ac00c0e14b2cac033a0f543f5552a9e64641f0 docs/models/deleteannouncementrequest.md: id: 697f967aeab2 last_write_checksum: sha1:7ba31babddd36adf4e5f5ad96f1188e4ea4dd758 pristine_git_object: 61052076395a429afa6fb0fce1a64baa85c86db8 + docs/models/deleteannouncementrequestrequest.md: + id: 7000e6336d32 + last_write_checksum: sha1:9d1f60a56d32aa96750c2e458372edca7643fc56 + pristine_git_object: 689b1e04c427d189edd6689a3ad7a7d5d07f0b15 docs/models/deleteanswerrequest.md: id: 03a96322822c last_write_checksum: sha1:4255563fe55a59ed04d3dbd64f18eb66d44d91b0 pristine_git_object: 0c9627b096e3cd35d84de3d7a59ff18ddbbf916a + docs/models/deleteanswerrequestrequest.md: + id: 039fc36c25a1 + last_write_checksum: sha1:b0c6e179d80fe5b2e6b95ebd7a7e10bd420292d0 + pristine_git_object: 05520c6f5bac6b44027aa115d9cbd7ee5fba5079 docs/models/deletechatfilesrequest.md: id: 8a85abb12a53 last_write_checksum: sha1:e6de32e685605fd3f0ec4689ca5d52143adf6acf pristine_git_object: 4c7da5812e95ca08dad4b6e669d02bbb919950c5 docs/models/deletechatfilesrequestrequest.md: id: 359c2e279405 - last_write_checksum: sha1:b4f9d9712c409c9f0b5519e36e681900a9662abf - pristine_git_object: 4c37d7cab002be0343413c4fbdd32e4246a787a2 + last_write_checksum: sha1:2f317be3efc3295261a2ae27d444298dd39d5c72 + pristine_git_object: 4aa1d9f25e08907aba0385df709db78dac447008 docs/models/deletechatsrequest.md: id: 89eb2641c5d9 last_write_checksum: sha1:bee37f24e3baf452912e515861c22ae9035b2b72 pristine_git_object: 2db87b989294d5b8e6fda90fb59bc32547dd9237 docs/models/deletechatsrequestrequest.md: id: c44e6e70af59 - last_write_checksum: sha1:41b5018a1afeffa954cb7769436b313e25115491 - pristine_git_object: 24814ad3bd35ae9eace3f4f2d7c584bc85f06265 + last_write_checksum: sha1:f846035edf3b9f73d0c1bee6bd92b0ab109f4a50 + pristine_git_object: 9f0ae5c5f49f2745f903a21d51a1afdfb3c52f1f docs/models/deletecollectionitemrequest.md: id: 7ba74477b69c last_write_checksum: sha1:de0700bb4c8d17753e62a4fb574b47b7c562f321 pristine_git_object: 8032c1e5b6d81d0620b8f8166e2e1e5379f0f651 + docs/models/deletecollectionitemrequestrequest.md: + id: c7f22b20106b + last_write_checksum: sha1:d478c5c18c6fe3654e036f2ca42518631358a124 + pristine_git_object: 3c1c904e0df5ba3e03ee6cb7746d99efc6bc121f docs/models/deletecollectionitemresponse.md: id: 4131887f6194 last_write_checksum: sha1:d481dbb630fd9d0fac3a94185c13dd841a5e1b50 @@ -793,6 +837,10 @@ trackedFiles: id: 6a319d49e4f8 last_write_checksum: sha1:58ba2e905f3e38d29aff18861a32e192ffed0bff pristine_git_object: 5bc3169deaa37662a11e4f16d2208634ba753db6 + docs/models/deletecollectionrequestrequest.md: + id: 6dd52e128fe1 + last_write_checksum: sha1:d897af0af4cc61fb5bc681b69d849c23e299a5fe + pristine_git_object: b77671511a581b186eb3d516c642c33a48fae9c8 docs/models/deletedocumentrequest.md: id: 898eebfc019e last_write_checksum: sha1:4b56b845e774d8f683d8f35beebc18b6daa43673 @@ -817,6 +865,10 @@ trackedFiles: id: 7c2220e28702 last_write_checksum: sha1:950cbd1d2057b793803c538edd36d988228ec913 pristine_git_object: 1e2e09b0677375585aef92057bc5039d035510a4 + docs/models/deleteshortcutrequestrequest.md: + id: cb6f1bded05e + last_write_checksum: sha1:a83911aaddb48be2961f7b055b581be62806d0db + pristine_git_object: 8c355d07279087e5563e1e2bf62075743cc5937a docs/models/deleteteamrequest.md: id: e984ecb440f4 last_write_checksum: sha1:f3e7cbefd6bd5dd7ebd0c77334e6038f1917f75f @@ -1009,6 +1061,10 @@ trackedFiles: id: d6d2f92e3300 last_write_checksum: sha1:ae38e9c690f32cff58a5da3c7e3f0c20375efb60 pristine_git_object: 36f51e20485fe43d6958d5728e4dedd44cadf14f + docs/models/editanswerrequestrequest.md: + id: 29a629f36dd9 + last_write_checksum: sha1:7176b8e885cff7465ddd3a446e21037b30685043 + pristine_git_object: 07d1c82630deece31e284e2914d380fd97c74dae docs/models/editanswerrequestsourcetype.md: id: 4c53a25d9227 last_write_checksum: sha1:2a9b1c7ef22fe5e0ede2b8e0e69b4e54bd9cbf43 @@ -1017,6 +1073,10 @@ trackedFiles: id: e02a0f87262c last_write_checksum: sha1:32eecb9baa98e59b8aeffb296f1692d5b4e9c68d pristine_git_object: e056d4def346c362deb7cde0010169072528765e + docs/models/editcollectionitemrequestrequest.md: + id: e0e03730dbb8 + last_write_checksum: sha1:6691cfd131e1dae196959e4c657a9b3c5469dedc + pristine_git_object: a43167aba6ad6c80848b90013a0f7d08495f8e63 docs/models/editcollectionitemresponse.md: id: 40136411d95f last_write_checksum: sha1:41db244e001368e59a181c4bad5aa642916571f5 @@ -1025,6 +1085,10 @@ trackedFiles: id: a74e4ec0b3ed last_write_checksum: sha1:d4c9d43581c19a236a9204c69c8f8ffb1f1296fa pristine_git_object: 361840bf4bb069a3a95d0424cf1eac9fcb1076eb + docs/models/editcollectionrequestrequest.md: + id: cbd9fc914161 + last_write_checksum: sha1:21ebe4440dd686c0a5afd9d5e944081b566f16f2 + pristine_git_object: b806bc3786468d8fbd35803cb70f56cfd004df87 docs/models/editcollectionresponse.md: id: e9c5d6082c19 last_write_checksum: sha1:21e86fc6eaf9c04acd334397ce3777dfd5273423 @@ -1037,6 +1101,10 @@ trackedFiles: id: 14bb9e17a143 last_write_checksum: sha1:11e046873d7975a69c248dd6c640482531048289 pristine_git_object: 764555151025f6fe4bdc8fb14da13b67981d775c + docs/models/editpinrequestrequest.md: + id: 4e87783ec6bc + last_write_checksum: sha1:cab2f9325db582bde8f6057bac8aba582e5d1257 + pristine_git_object: 5a6db80b8b819de1b5de17b7519c8d629ba8d60a docs/models/employeeinfodefinition.md: id: 78f0c2b4aeb3 last_write_checksum: sha1:fe4cf787e65eadc9db8732165436e99008c06260 @@ -1173,6 +1241,10 @@ trackedFiles: id: 58eb26b19e77 last_write_checksum: sha1:fd2ab08736cef8156169b0cfee8c52e7aed1accf pristine_git_object: 78ae4bc82dcbaf7881021b486ac501a7f1bdfdda + docs/models/feedrequestrequest.md: + id: 6b8dea423ab2 + last_write_checksum: sha1:a326cece89473e5acd6029847b3b091a4c75f1ee + pristine_git_object: e662bffd1c3411c0d30099c488c90cea22931998 docs/models/feedresponse.md: id: f45ab450a68f last_write_checksum: sha1:96e3f76f8ad6bf8c9717b53d6fa530fab2530089 @@ -1219,12 +1291,12 @@ trackedFiles: pristine_git_object: 5a8c54997e977bddfe521d58690e702227d526ff docs/models/getagentrequest.md: id: 743f3a4630be - last_write_checksum: sha1:67cc3963a8da4a532ba7237c679cda747a6e65cc - pristine_git_object: 2b1bcba369869613ef96f22592f6fc595eb69bb5 + last_write_checksum: sha1:b6d2630bc17e91ec71d2bc7e01fec9f7cf046914 + pristine_git_object: 7418c2cec29a24966be06d6da4f7c184ba7f530f docs/models/getagentschemasrequest.md: id: 6eb36cc8bcc8 - last_write_checksum: sha1:e0873cfe8b6b2f75662a607dfb382de244c58938 - pristine_git_object: 925f9ef56c09d8fd31b835cc084136c9cfb63de8 + last_write_checksum: sha1:4db48f06eef4729de598b493e32efa4857c9cf2f + pristine_git_object: 110d717211f9a714c82cdddcfe5ef4be93558194 docs/models/getanswererror.md: id: b744c56b1dd9 last_write_checksum: sha1:317f4758e8da16c2d3ba3929edebc9593e3042cf @@ -1237,6 +1309,10 @@ trackedFiles: id: 25f11c52ac77 last_write_checksum: sha1:17475690eebcc1076b3956f764f52ed3d16c36ff pristine_git_object: bc1d44fc2d81ba4956a70cf3532597ae82ba29ab + docs/models/getanswerrequestrequest.md: + id: 659200436db2 + last_write_checksum: sha1:782906eda75ea7eb9f00b70a4f1c111991585dc2 + pristine_git_object: 3502669e02362cb22f4e2c816b7a1a5dfd05662e docs/models/getanswerresponse.md: id: a2d88593e719 last_write_checksum: sha1:816f478aa8e17984131569eb7ccc093d520e5174 @@ -1247,8 +1323,8 @@ trackedFiles: pristine_git_object: ad9d8ad5f1b5098e95d1f0f16bfc4c4c7300c895 docs/models/getchatapplicationrequestrequest.md: id: 87a4fde892ff - last_write_checksum: sha1:f25f6bf8338e6407752049cb876e66273aa9c702 - pristine_git_object: 6920abdc6ad8ba972164513e2aec0e15b0a8be1e + last_write_checksum: sha1:b1e295e46ea284b811665ab6f92d596e7e7ac3e8 + pristine_git_object: 79cddc37d221bf75e0f1fcb8ab39735e05cc1eac docs/models/getchatapplicationresponse.md: id: 5c2141b43841 last_write_checksum: sha1:61a1da000e2b5157f5bab5582e828026e1989212 @@ -1259,8 +1335,8 @@ trackedFiles: pristine_git_object: 13d9edeca4d01df1e77f2d65a4f2ca6e42401846 docs/models/getchatfilesrequestrequest.md: id: db34624f95d8 - last_write_checksum: sha1:70733a7210c2422293dbb6eb94310cfe9f3c6d31 - pristine_git_object: b9c9dbd212a26472edddce27d81759f3cf68f47d + last_write_checksum: sha1:650f3861450fe6b44c9f953df4552617a4a1ee82 + pristine_git_object: 886c639f34d2287b6ef8529616e78780ee8ac125 docs/models/getchatfilesresponse.md: id: 5ed77f7dd180 last_write_checksum: sha1:75949c792ed2d2b22195a14fccc9fcbbaec5cf44 @@ -1271,8 +1347,8 @@ trackedFiles: pristine_git_object: 8b44a4628b905f2e3a23968b1343e75f69a9d86a docs/models/getchatrequestrequest.md: id: 89032ad4cded - last_write_checksum: sha1:ffb47c3da6154c36ed5aa4585ed5ad4570d7cd9f - pristine_git_object: 95fa70777eeaccd48cb6e4f963f4500cdef76da5 + last_write_checksum: sha1:d1af0c95a4f7ff75c6acf98f4ac59b4385a648b0 + pristine_git_object: e810c575de9d2e1cb0ce47ba68d8a739a6dfcc58 docs/models/getchatresponse.md: id: 8ca5e1521fef last_write_checksum: sha1:8a604ddd40ad6882e9620b6a4959b3b9884bc438 @@ -1281,6 +1357,10 @@ trackedFiles: id: c728f2a301f7 last_write_checksum: sha1:6f7221455f2bbfdc6ff4cb6a69e4d4f3238c8fbe pristine_git_object: 08c4ed74925b1fe99d66a5743547c422b812cbcb + docs/models/getcollectionrequestrequest.md: + id: 1951f5dd0d28 + last_write_checksum: sha1:81ef51998f8f36ddd3c42ecc33dd6950a1d80c7e + pristine_git_object: 63737249618d58f7b93fa1271dccd447b5b412e3 docs/models/getcollectionresponse.md: id: a41700e5b076 last_write_checksum: sha1:d590565259f0114a7d45b963db515543b7aff54d @@ -1297,6 +1377,10 @@ trackedFiles: id: 5ff6c3679628 last_write_checksum: sha1:e2add2ab3cdc7d5bf858321febf1c18f2ceb5c22 pristine_git_object: 0812366b66a6001815d72742ebbe037d0a28c58c + docs/models/getdocpermissionsrequestrequest.md: + id: 5890e488b0c3 + last_write_checksum: sha1:773d36b442ae7a05493a86ea3e4ab0ecd78efeb4 + pristine_git_object: 3f91457dd637af67938bbff9840d340427cf41fb docs/models/getdocpermissionsresponse.md: id: f3c871864de0 last_write_checksum: sha1:e5ba530519c1214d6b0dbea6894bf1268ba93958 @@ -1313,6 +1397,10 @@ trackedFiles: id: 55aa662b3ae3 last_write_checksum: sha1:dec8f276f92ba15b33efa1331d89572be32a2fd3 pristine_git_object: e234fb977243311c33d195ff3ff0d7ed8097894c + docs/models/getdocumentsbyfacetsrequestrequest.md: + id: 5596394ba58a + last_write_checksum: sha1:6fbcfd5f2dc4356030cbc75bb3cf303ba5ddfa63 + pristine_git_object: 6fb44cfc1e3321981ac5be045d26426a1681905e docs/models/getdocumentsbyfacetsresponse.md: id: 1db5b3ab74aa last_write_checksum: sha1:eaf2a24392f54a50b940f15f39f9cbc2296cc867 @@ -1325,6 +1413,10 @@ trackedFiles: id: b352a208f521 last_write_checksum: sha1:c9c6167178228dd2882592014307e541e5c8c0d8 pristine_git_object: 1db38b744f2b4b86860c3407566bc0b49617f7f0 + docs/models/getdocumentsrequestrequest.md: + id: a8c374952e75 + last_write_checksum: sha1:ee19224caa436cd2b5558e005c64775211aeb731 + pristine_git_object: d1c6b7a47144560652788c0e1a74a607bcef19bc docs/models/getdocumentsresponse.md: id: 67802d5a0eed last_write_checksum: sha1:cf5326c022369e8d38c9c596f8ab055edec2754e @@ -1349,6 +1441,10 @@ trackedFiles: id: 0493cde45bd0 last_write_checksum: sha1:8877bbd39413b43d4ccf88bcfe42fdbdc5e9d9d8 pristine_git_object: 09088c90c1bbd5f1c8d750472b2804cfbb7aa916 + docs/models/getpinrequestrequest.md: + id: 32c54ed66a34 + last_write_checksum: sha1:991fcff3dc0458057d6fe4b27c796127560e5cc6 + pristine_git_object: ac7a1f220e8fbe054e4306f1c860657562e6a7b8 docs/models/getpinresponse.md: id: 66abda0c0858 last_write_checksum: sha1:047514d17806168b0d7c599ec012ae6010d7df03 @@ -1367,12 +1463,16 @@ trackedFiles: pristine_git_object: 8c30fc4970323955f18cf70e3f4dde208df10512 docs/models/getshortcutrequest.md: id: 92141254f6ab - last_write_checksum: sha1:30dd545f8496f27de185a745fc9801fd0f43c38a - pristine_git_object: af868a75f66e154614f103f206e839b72397547c - docs/models/getshortcutrequestunion.md: - id: 41759b28faa3 - last_write_checksum: sha1:5382abfa412acbcb108ca54cbf7890d1d5a6344d - pristine_git_object: 43835d5100c30460c123e4ac9bc4f5ca5891f17c + last_write_checksum: sha1:4c1e631b57dbe41d2536ef7116944892134c493a + pristine_git_object: 9da5746594d93b66c13ecfa5b3d6733060628f98 + docs/models/getshortcutrequest1.md: + id: f532add93576 + last_write_checksum: sha1:b5700a9a423e9585f66ae7b3ea0ad006239fdf29 + pristine_git_object: e8d237168cb2eaab56c033d4db6f366e1126bb5f + docs/models/getshortcutrequestrequest.md: + id: 25d2ed600c62 + last_write_checksum: sha1:b148c8cef65ca3f4c2a7a7e48d7e6acb1d955fd8 + pristine_git_object: 79056b951a7652bc408d6cad92f8f511a59911fb docs/models/getshortcutresponse.md: id: 9aa3fd9aebdb last_write_checksum: sha1:98dc39c0164b5baef1dd0ed8f1a60d59da7abaf4 @@ -1391,8 +1491,8 @@ trackedFiles: pristine_git_object: 51f7027a16bc10bb4effbdd438eab18581703421 docs/models/gleandataerror.md: id: feb7c60631e4 - last_write_checksum: sha1:bc595bf0967592999c683a4e3a43fa69783bbd10 - pristine_git_object: f1df02d4e5daa03df8e8c1b5684fcc91bcabc8a7 + last_write_checksum: sha1:a6567c83c6c0bf8eaed55f50af08001869d6a5de + pristine_git_object: 7c4c0d90fd0a2de3e48b99ce691c1e9a6ab03041 docs/models/grantpermission.md: id: 740a53de1e0a last_write_checksum: sha1:6f0d12e70708144b4978da20cccda528785c9e0d @@ -1483,8 +1583,8 @@ trackedFiles: pristine_git_object: 92e666de5f7156588d4dbaa09b36fec6e8f2403e docs/models/inputoptions.md: id: 138e423f4a10 - last_write_checksum: sha1:c087981e52b62b8143f80ad746741b75e483a824 - pristine_git_object: 6d068496b9329ea3ca919e4b7b6fbc9ef3dc2677 + last_write_checksum: sha1:c4188b671a0c08463f924f3f4ce21f29e33d6fae + pristine_git_object: 289414b161669164cdc7df85a54a17c4e7abfe20 docs/models/inputoptionstimeperiodtype.md: id: c6b86b1220fb last_write_checksum: sha1:d6ef77da924ac56d32f6bbf5401d360bf8757bb8 @@ -1525,6 +1625,10 @@ trackedFiles: id: bd63b65986c1 last_write_checksum: sha1:4cd9746405c6425111d5c2f35d0b6a59e50205b2 pristine_git_object: f5831a04a99a98e2adcd70de67befae69e73a531 + docs/models/insightsrequestrequest.md: + id: 567dcce50fab + last_write_checksum: sha1:b550099f60580ba3cac9675a4e9515044be423b3 + pristine_git_object: 42aaa5da08e2b378d3da97b7a0720a98d855374b docs/models/insightsresponse.md: id: 7bcab338ae18 last_write_checksum: sha1:314319d868799e555d466df8a44039c1f0f942b4 @@ -1565,14 +1669,18 @@ trackedFiles: id: 6864867e393c last_write_checksum: sha1:e492b758d47f41c50b8ed2c91cb6ee197a67a647 pristine_git_object: f0b1840d21cfd5745841ee3dad9f4790f7886f81 + docs/models/listanswersrequestrequest.md: + id: 593161e5aad5 + last_write_checksum: sha1:56877f7b51072348f4d7c71a68e1bf090644307d + pristine_git_object: cbe66c049da354b2aadddb5eaa583af41d553599 docs/models/listanswersresponse.md: id: ac203d72fef4 last_write_checksum: sha1:d84b2b1f6174509f4b4dcb3602b57a41f609a153 pristine_git_object: e02a3fddcc9e682dceeef74ee52bcf293ee867f5 docs/models/listchatsrequest.md: id: f4f060e9b0e1 - last_write_checksum: sha1:a2da7a15fa0c3f5953315af0593a80157ea35c91 - pristine_git_object: 2b5b4b0e1e7818bcecec1065ec36c47096386925 + last_write_checksum: sha1:e9fb2c1df6315eb6d41cfc1a9bbd172b5f5acd02 + pristine_git_object: 9a0d72592d98d5f0cd2b8e6729b2596b0e5d116a docs/models/listchatsresponse.md: id: 56cf9a543286 last_write_checksum: sha1:c2316ed4dfc6485cc889d79dfe69ea577c533738 @@ -1581,6 +1689,10 @@ trackedFiles: id: 67e1b9abedd7 last_write_checksum: sha1:7dfe597ae0081226b8dddd81abd17d38b7557abd pristine_git_object: a566a33c052e1d66489a5725e3756a816dcdfc29 + docs/models/listcollectionsrequestrequest.md: + id: 9800bc4f9d9a + last_write_checksum: sha1:7f4bff6d20418a8dfef4ae27e4d7144c508d0672 + pristine_git_object: 1ccd21f38d814a5f4070eec6146a34da18d9141d docs/models/listcollectionsresponse.md: id: d4e9fc9b0229 last_write_checksum: sha1:b7d5407d6740b2f0ee0bf95f226b5ecce198b3f6 @@ -1605,14 +1717,22 @@ trackedFiles: id: 22408579dc19 last_write_checksum: sha1:2470f033b6a50c3ea4817a1b9a06f51860304b18 pristine_git_object: dde5f54d1b3a27a037b24bb8214071230ad97079 + docs/models/listentitiesrequestrequest.md: + id: cfcc2081e0ed + last_write_checksum: sha1:3023b6615096f5c018efb1b43524499b662094ae + pristine_git_object: ec6cdd0169b604153c648926101d1925d254676a docs/models/listentitiesresponse.md: id: 795662eb1108 last_write_checksum: sha1:b8b4d3b76ff95441aa3ef08babaaad0239807cfa pristine_git_object: d7699639a2dd03f0b6dbcaaa29742a8a2b206ad5 docs/models/listpinsrequest.md: id: 8d96c63ec1bb - last_write_checksum: sha1:40ce426c3ab842c23e716b7008fa1e38bd5bc2df - pristine_git_object: 4c0c38891b36dff3b3854ba5f85a3b6c8c7c3467 + last_write_checksum: sha1:6b0dc565942e4b6b5859a2dec2e5fb463212ac52 + pristine_git_object: 49bbce57bbf9657d01c0114817ab7ea3d08e012b + docs/models/listpinsrequestbody.md: + id: b6ad35029581 + last_write_checksum: sha1:9be1a996e1620a68492d843203dd90640b527e69 + pristine_git_object: ad2e4cbdd68308127ba6df5c346316b099f85010 docs/models/listpinsresponse.md: id: c936ae1c22b1 last_write_checksum: sha1:ac94f90c1b5188fb627e4527def7187dd64db008 @@ -1633,10 +1753,14 @@ trackedFiles: id: 782aabefcf0b last_write_checksum: sha1:0bfe9c54078eff8b900ca0dd643b1ec62c4ffd5f pristine_git_object: c575579aff1d399e726acfb8fcc8dafba14570a7 + docs/models/listshortcutsrequest.md: + id: c52f7311f417 + last_write_checksum: sha1:ccf9d16424d7c4727cf4f424567f244fc6796a5f + pristine_git_object: 5ddc952c170644b3d4ba5b110d442422e38fe84f docs/models/listverificationsrequest.md: id: 774f0a0298e4 - last_write_checksum: sha1:a741d072047233ff9200d5f06d9087cb69f8f399 - pristine_git_object: 6852a725206c931dbfa6c7e2e95d7d1fbca55001 + last_write_checksum: sha1:65c65a6c41036b2d14dccb892353e2f34e167446 + pristine_git_object: 320d13234b20a559d2998685f60dbddf4c6a3d4f docs/models/manualfeedbackinfo.md: id: ba432c1095fd last_write_checksum: sha1:1b414738886556bfd280a822964b640f6faa6d55 @@ -1673,6 +1797,10 @@ trackedFiles: id: 43ebf5c6fe35 last_write_checksum: sha1:beecc147e019b999a49250a0379489cd5d9ac8a5 pristine_git_object: 4e064fddb83831285473b6c1d39b815d3ca2d173 + docs/models/messagesrequestrequest.md: + id: 2fa50c40c725 + last_write_checksum: sha1:b2f45e2474960413282369d0130b901cca91b302 + pristine_git_object: 8acae3985b40574380b506d0ae0aacf7e4700d51 docs/models/messagesresponse.md: id: c975c0170460 last_write_checksum: sha1:98a285bfbe7da7d41ba2da1d16d6db8d5c3f3ee7 @@ -1725,6 +1853,10 @@ trackedFiles: id: 1cc1f2177bbd last_write_checksum: sha1:01a30732938d33aa76cf6124974fdae99efcde70 pristine_git_object: f2216729be1c3e7ebba38fe275285fee7fcb52e6 + docs/models/peoplerequestrequest.md: + id: acc3cda54b12 + last_write_checksum: sha1:536bcc20d50abb8c2eda1d893650f69316f51e7d + pristine_git_object: a7ddc1835b7761cfec45f8dc7a60817e630e57ee docs/models/peopleresponse.md: id: f2403a1a85d4 last_write_checksum: sha1:2255e7801b2cea22d06806713476f711333bfb88 @@ -1797,6 +1929,10 @@ trackedFiles: id: 9633c2e6f354 last_write_checksum: sha1:8715b7cee9c72f746c8a24e7baa4c04ae084027a pristine_git_object: ae0403e50fece6b08d250e302e60d3e6a98f0145 + docs/models/pinrequestrequest.md: + id: 52df3106f8dd + last_write_checksum: sha1:64309a6e996c663f2f34cea4390bab0b5909764e + pristine_git_object: a24b8b95237035cda5ff134a9c0cc3bb601e06d7 docs/models/possiblevalue.md: id: 630387aebbc5 last_write_checksum: sha1:490f03fc39621ae0f816bb16d2922e1a8042cdb1 @@ -1897,6 +2033,10 @@ trackedFiles: id: 9af3afaa9e89 last_write_checksum: sha1:6c61bbf334e07ef058d29a674632f8d8507ac3c9 pristine_git_object: 93f5815fc8c797405971ca52b84176073549730b + docs/models/recommendationsrequestrequest.md: + id: d2aeaccbd96a + last_write_checksum: sha1:d975dcbcb9abe64aa53de0504e890d7791b9e631 + pristine_git_object: 763a6dbaa6e001859acc66b609fadbeb87a81a5b docs/models/referencerange.md: id: 5f43eaff88a3 last_write_checksum: sha1:50afa7a8c59ee89013d2c6e2e5181f16f0d7b5e4 @@ -2029,6 +2169,10 @@ trackedFiles: id: 46607eff2140 last_write_checksum: sha1:8880f8a97b5311b5efa0efe7474f865c33641776 pristine_git_object: fb83a2a79ff524a3d8d2e3c5eeb93dc956255a38 + docs/models/searchrequestrequest.md: + id: 0ce27fe572d6 + last_write_checksum: sha1:14c866db2a1c8143c1a13e07578f0dca0d7b2b1f + pristine_git_object: 79efc8a78bf7e29a3f1fdbe108942695aca756c2 docs/models/searchresponse.md: id: d5606b4d403f last_write_checksum: sha1:c3c978f89c42845abab11e176d6265d073b65f48 @@ -2173,6 +2317,10 @@ trackedFiles: id: 8fadabab743e last_write_checksum: sha1:789e5b8e38b25c10969e80222e55f1f4de54afb1 pristine_git_object: eed3bab068a828a4059c0d1b5757161f66f0ec21 + docs/models/summarizerequestrequest.md: + id: d9e372065f07 + last_write_checksum: sha1:e0450f8cef54e63e076ff9a9c14bd69bcffa9883 + pristine_git_object: e4f7d4962256aaa4cd1e3735cb7ebde6bfc5254e docs/models/summarizeresponse.md: id: ce1fcfe05e49 last_write_checksum: sha1:cb44648e6e2d3e33ac24a81351fd6bff8955a834 @@ -2283,8 +2431,8 @@ trackedFiles: pristine_git_object: ea9cde8de86093172d2cd91f998078ffa1eac008 docs/models/ugctype.md: id: 675d62d57771 - last_write_checksum: sha1:8fcd6e88ae59b47d95bb14af60fc5c73ea855903 - pristine_git_object: 252dc1e7c76ef09a6d54fd638755bdac75106573 + last_write_checksum: sha1:30a5948367e5057f4bfbc79bbfc1784aa393445b + pristine_git_object: ffb3d59b7d83e940ee855d8889d512f1c2495883 docs/models/uiconfig.md: id: c4d3817a701c last_write_checksum: sha1:dd422e5a1bbf9af85722cd43c5437716b8bb3017 @@ -2297,6 +2445,10 @@ trackedFiles: id: d3b597ed91fd last_write_checksum: sha1:c3f2d39278abdd61760af541adc0c4e0ff4c8aa7 pristine_git_object: 02cafe18f701ebabf5c89888749d7af33a1021d4 + docs/models/unpinrequest.md: + id: 0c109e9c4694 + last_write_checksum: sha1:5cf4bbc04724e25828decacfc651405ab7d12394 + pristine_git_object: 4108423841d6851a21d7fb6c10ebecc0dc5cd20a docs/models/updateannouncementrequest.md: id: b8e569974360 last_write_checksum: sha1:5ca6f13eabc5b2dd0fe8e79e87bf06a3651c1975 @@ -2309,6 +2461,10 @@ trackedFiles: id: c4fb8de3c6b0 last_write_checksum: sha1:3fae77b086ef0f31131463443921a9409a206550 pristine_git_object: b5229e364ac6e41857ea55794dec5ae7759de607 + docs/models/updateannouncementrequestrequest.md: + id: 1f63a3763a40 + last_write_checksum: sha1:a31407e081b2b90412c3b07162ccddbda181547a + pristine_git_object: e08d3f9c8a6cec4f310eaeddfd9cc981101e9fa8 docs/models/updatedlpconfigrequest.md: id: 3bcc0c7398d0 last_write_checksum: sha1:1a0b62f51d306beeb83f6f8ef7d68c6a85eab65d @@ -2345,6 +2501,10 @@ trackedFiles: id: f05a3e5f94df last_write_checksum: sha1:61a0f8367c4c8a2326e679f18bb8d0e0f1dde830 pristine_git_object: 4fc6d60473199f94ee0bcce00cb625cf5cd90597 + docs/models/updateshortcutrequestrequest.md: + id: b7ac13dcabf8 + last_write_checksum: sha1:581bc7338e6854cbe08e49e0ae25e09c73dffb75 + pristine_git_object: cf21e6867e54c4f136827d083f0b08bcbce289b8 docs/models/updateshortcutresponse.md: id: 9a49aeb8358d last_write_checksum: sha1:4ce1e4cddec0f3834d9d5166df84173633e5053a @@ -2359,8 +2519,8 @@ trackedFiles: pristine_git_object: 78d47ad60753d15ff9256e4df9bdea65641b3fc9 docs/models/uploadchatfilesrequestrequest.md: id: da805ab42079 - last_write_checksum: sha1:520bfed042fd627411a2a9bf0f1e848f0989b788 - pristine_git_object: f849ef6bc074b832f7ef7d82b90375482aefa818 + last_write_checksum: sha1:647679df1c7159482257ad4747b13e681b3e3858 + pristine_git_object: 47ad9ca64c909e148151aa27b69ea4cf0ab0f761 docs/models/uploadchatfilesresponse.md: id: dd5d6eda7e5f last_write_checksum: sha1:f9ae1854cf52c507220b5943274969b7c887668c @@ -2445,6 +2605,10 @@ trackedFiles: id: 27ae6bec5143 last_write_checksum: sha1:98746cab184ce77a1d856a7f50a454287541abaa pristine_git_object: 32df67b29e4daa768a598043b25bdeb9148d0c3e + docs/models/verifyrequestrequest.md: + id: 881201e9e321 + last_write_checksum: sha1:4a0de4594e64cfeb0c141ca242c3f8c26e028883 + pristine_git_object: 8f87704c8059174c4b82314e393da7476d80b6a1 docs/models/viewerinfo.md: id: ac723e0773ae last_write_checksum: sha1:15bec9627873d5b40ef06a4936c3a231ea2e1deb @@ -2487,16 +2651,16 @@ trackedFiles: pristine_git_object: 61dd41f0319201cc105e29174ab1cc0018cecbce docs/sdks/agents/README.md: id: 5965d8232fd8 - last_write_checksum: sha1:72e9fb0dbc7f6c7a63ccf598afc5074c9bb21f07 - pristine_git_object: 4e14896782bf2725231e0cfc5cb19700facca712 + last_write_checksum: sha1:3c2847fb0fe040b14096cfd686aca2a59c7b830f + pristine_git_object: cf7b08733e52531179777a0c85f1e95365741502 docs/sdks/announcements/README.md: id: 3d2e130a217c - last_write_checksum: sha1:7f67d9f33d9dcf9e17649490fd6e905e962f0a2d - pristine_git_object: de45b87e1b93c6f6c365c67567e3aa9d6c70ad8c + last_write_checksum: sha1:ecfa655bb27dee6890656542cfafda0aa6ed1ab9 + pristine_git_object: 6ce0ff139c5632014bea9e058cd99976050e4b14 docs/sdks/answers/README.md: id: d1b7559999eb - last_write_checksum: sha1:41e95c72116be14ed7a8c24f9e4dbf6c9ed87dc6 - pristine_git_object: 49b87159a1cf4febafffc88c7f61f6066d6dac5c + last_write_checksum: sha1:c44be180cb0227441fd6d7134c5886223f1d14fc + pristine_git_object: 3090f9b14d07e4fb32d481dd30b6e91622f244d4 docs/sdks/clientactivity/README.md: id: a309613986a5 last_write_checksum: sha1:e7c6971c7d9683ce04aacd6cb96f467376c843e9 @@ -2507,32 +2671,32 @@ trackedFiles: pristine_git_object: b9a4856d52e9c48fb4917c0052bf86be2ad9cd0e docs/sdks/clientchat/README.md: id: baf998e3d238 - last_write_checksum: sha1:6aac7f35074d68a975eb2a539ddde6147a4e8b8c - pristine_git_object: 334595b13f0f12b868f16ff29d91b35d84b08bc1 + last_write_checksum: sha1:a80438d3ef8f0fff87e0e39956030f05d3bc8a2c + pristine_git_object: c3c363b487f49d552c6e5322bbe243603ff2c993 docs/sdks/clientdocuments/README.md: id: e0c074acef4e - last_write_checksum: sha1:e895433260cef3bb97c2e16a90b64d9052a2a243 - pristine_git_object: 8ef28d902adbc0084ebccb5b5c6fcfc196a62b21 + last_write_checksum: sha1:ef34fa1517c866b9ae0fdb50847031421f26ea0b + pristine_git_object: 8b6d7b29eae189fd1b74792cbba6265840487b61 docs/sdks/clientshortcuts/README.md: id: d5a9d841b61c - last_write_checksum: sha1:f363d2654e98a9db32c6ae962ca533da61a2e5ae - pristine_git_object: 159d46c1d381d69b000661ea7c755012baf66ed9 + last_write_checksum: sha1:e6bd4eb4d27ae7b07f9488113b782c4aa8fa40e7 + pristine_git_object: 9d7f63e9d3f13055deba1775689fa797701858b5 docs/sdks/clientverification/README.md: id: e8d533f9d15b - last_write_checksum: sha1:02ec8b5b65384d5e23d5ef8fa6cc8f400087bfb9 - pristine_git_object: 859adc03997d7b6179b3a8e8d646c9685b40148f + last_write_checksum: sha1:7daee0f15f8ef38b45bf6209d24edf237a7ef281 + pristine_git_object: 63fa8d6cdd4a228402f5e6670422f8adf4613081 docs/sdks/collections/README.md: id: 7985e64efccf - last_write_checksum: sha1:2deab8b221107d48c16a1acee1c455935201390a - pristine_git_object: 4b05e1970dec68d99815be24cb36c6b4b66462c4 + last_write_checksum: sha1:cac778e2d5673e128cb98ec858b9403c2f073d3c + pristine_git_object: f311071e89056a0df703b15f5ebdd17de75e9488 docs/sdks/datasources/README.md: id: 024d3ed36945 last_write_checksum: sha1:9e06819a20a8e78cc82c7b4ea7c84e69206a4d29 pristine_git_object: c9f66bdb622b4684f9f8d14a8ba8720b2809f463 docs/sdks/entities/README.md: id: a140ac5181b9 - last_write_checksum: sha1:0126d8b4ec4e574de52f44ef7205fb9efdcb1ac6 - pristine_git_object: 70e149bf62bc544a92592d0276cbe44d6d6efc98 + last_write_checksum: sha1:c5955573d5570bc98bb911311860abf4c85d19ac + pristine_git_object: 0ac68e93afbd65e5cff4a3c8cd5a91527446a41c docs/sdks/governance/README.md: id: 87817eb7bf48 last_write_checksum: sha1:a7fdbdffd43d79ba890418507c27e5d7a94254a0 @@ -2559,20 +2723,20 @@ trackedFiles: pristine_git_object: 02339bf7ce713ea28210986d201dd89a18d038dc docs/sdks/insights/README.md: id: cc2be3db9032 - last_write_checksum: sha1:2e0310c2b4cd0577f6eb0700ecc8af5feb86f22b - pristine_git_object: deff4674a7e152eb97fadaaece9287b6a5bb617b + last_write_checksum: sha1:3bfde0d33bc5da4239219eb10184a285d2f3b18b + pristine_git_object: 6550149db05fa7f854e637ae16cafccdba6f9eb6 docs/sdks/messages/README.md: id: 3f1f6d38fc33 - last_write_checksum: sha1:70686fd6614b4e073277e2320f1b1257b5b11216 - pristine_git_object: 38f6cfda4cbc913e6b43b9d94d7f08d15f4f5325 + last_write_checksum: sha1:6d327bcc514b9cc83209ec389e0f034ba9b9ebe8 + pristine_git_object: 0aa193b38d7d95cd3301469f9a6ad1260a1b1b51 docs/sdks/people/README.md: id: ff7b3ee21c2b last_write_checksum: sha1:4bb2592f2d27226672308fa1f3cb5c7ebb7691fb pristine_git_object: 8b35d44df3afdcf9a3e3bc320a315da2651d095b docs/sdks/pins/README.md: id: e887aca9ba0f - last_write_checksum: sha1:db8a87de076ffbaaf194914e7ec92e8d0206ad66 - pristine_git_object: 31108891e1ddb9176aad85c3bbc9f867812a9e6c + last_write_checksum: sha1:c11aea840d911395a606a528575fe224c8a6b86a + pristine_git_object: 3a4952c34995f080649e326e0deca557b6b9fa9f docs/sdks/policies/README.md: id: 636269b04e57 last_write_checksum: sha1:aba178ecf4b69bad99532d1b7493d64161109cfc @@ -2583,8 +2747,8 @@ trackedFiles: pristine_git_object: 5dd26e03b79389a3e71e90f9a3ce29b7fa384dd9 docs/sdks/search/README.md: id: 5c534716244c - last_write_checksum: sha1:1d266c4806f8349deadb9db4746c08fbd4f3984c - pristine_git_object: 546e545a012e1844e5322b64f0ab9534dc4a26ad + last_write_checksum: sha1:b26db4e2c274af856d3c7c601edabd6d61b697e3 + pristine_git_object: 7e640dd65cd3039f7f10640480b9f23097cf13b0 docs/sdks/tools/README.md: id: 044286549bac last_write_checksum: sha1:34a5cb54ce4f6836462bea95bd5a3ce3d8080395 @@ -2607,8 +2771,8 @@ trackedFiles: pristine_git_object: 8e34b78a71b8bb97bad6dea99d0f791beb134e5b pyproject.toml: id: 5d07e7d72637 - last_write_checksum: sha1:e74ee3184e376810b0ad328b5c651c9c3cc31cd0 - pristine_git_object: a92333900a6aabd7e86b21f5b1cc0e4c5a232b11 + last_write_checksum: sha1:64ad0265b35e1f7b8e4b1e63978a4a5682155fc2 + pristine_git_object: 0907c294cdfd5063c422800361e711b026cb226a scripts/prepare_readme.py: id: e0c5957a6035 last_write_checksum: sha1:c2c83f71dea61eb50c9e05da83b16d18b4da8794 @@ -2635,20 +2799,20 @@ trackedFiles: pristine_git_object: 58c4d70ac1797b86ff5c4237cafbc344c42d8f64 src/glean/api_client/_version.py: id: 0ce22b26136b - last_write_checksum: sha1:188529d678c18f5c3fb9c35fc9cd1e0f75e4297e - pristine_git_object: 64da52a597a1b036329005760a371e97949a7eb6 + last_write_checksum: sha1:0b5fbdb97f3591ec173baba1cb61993633719263 + pristine_git_object: 933405fe73440fce9cad9f57de2fa0dbc385aa85 src/glean/api_client/agents.py: id: b925701a9217 - last_write_checksum: sha1:56f1329fbf799ea92ed30229d4ed2404666d455d - pristine_git_object: da34d3ab8aa94604d62ffcc34d5e84f94bc6aa16 + last_write_checksum: sha1:35034b44db8e95826ceb314f3a59eeb8961fd419 + pristine_git_object: 1ada812a83100cb15fa6ff745090f76f1e58250f src/glean/api_client/announcements.py: id: 452f3d593912 - last_write_checksum: sha1:38becc9e7b9bf6765e37d01f54fcb15b4986574b - pristine_git_object: 6f26e4a2ca1f4e62c3e4aef79387692465072ffe + last_write_checksum: sha1:f46bdf97d06f038b579907fdb879a65bc995d326 + pristine_git_object: 970c637e50d76311420bd03683bbe1c4ddb18363 src/glean/api_client/answers.py: id: 184a18f8be7e - last_write_checksum: sha1:8345c4d96e84816ce14686fbd0f86e12319edade - pristine_git_object: 25342f6ac6c30295082e1efbade4a2c45fa18e3f + last_write_checksum: sha1:f3ffa432a16a6528c67f6ea2e15194d6b6d8fafc + pristine_git_object: 1d98caa4f6a0e237799de7679aaf1c5b70e5becb src/glean/api_client/basesdk.py: id: a9eeecf7fa49 last_write_checksum: sha1:ccda2f226cc0c1b7d991c8210afaf86920ff7fdf @@ -2667,28 +2831,28 @@ trackedFiles: pristine_git_object: 74cc80064eb9ae60d112a21b8f68e54ae070f56e src/glean/api_client/client_chat.py: id: 42cbb9b5acf3 - last_write_checksum: sha1:adfc380bc7ae8d566bbdda75b2783f35cb82fa6f - pristine_git_object: 5c0eb9c1a4009b18b1889630884e1b015708581e + last_write_checksum: sha1:e4042273ef1e14b075b04e4196646320aa4ff558 + pristine_git_object: 0ffec2f50edbd051e77ac69561d5187248be2ecc src/glean/api_client/client_documents.py: id: dac599de515c - last_write_checksum: sha1:a3834a1be3fc7bdd78589452a32c2930dc7c8bab - pristine_git_object: 82b6efd9a3bfbb6ad2b413ff8662c3ea601b9596 + last_write_checksum: sha1:6d3b776e9ee936a4f2495366adf28d2fcfe04111 + pristine_git_object: da16a0cc73800ae8eb9c3e3a7ae8fc6fc1d898ca src/glean/api_client/client_governance.py: id: 106860f10ce0 last_write_checksum: sha1:ebe769873505002b9f00342174c7fd2508af52b6 pristine_git_object: 6011411d2ab08645047358a30c0a87aec61555bc src/glean/api_client/client_shortcuts.py: id: 5ef5dacbcba9 - last_write_checksum: sha1:69c5be48facf41acbeaed7271138f94386054391 - pristine_git_object: ec94b1e83e9804136e0df20ea663786c21fbbd1f + last_write_checksum: sha1:b9db8b4de9e220d5dbbb13fe68585e6088f0d76b + pristine_git_object: 43b8bd6c5a32f06db05f53a8e56d749dc75f8c9a src/glean/api_client/client_verification.py: id: 211199afa506 - last_write_checksum: sha1:abbd5741b3992d2bc51bdc3d969315692af07f75 - pristine_git_object: 6721985892016c9712f79e332b7812994fe39e6f + last_write_checksum: sha1:362bdd853999bd14b3ceb487d11e0be90ecde8c4 + pristine_git_object: e19e3ff4454b0723394ddae1f03120893d969937 src/glean/api_client/collections.py: id: df34f0fd10dd - last_write_checksum: sha1:4526e6fed6b139afbf755b49d3f1bf1c66f5bc72 - pristine_git_object: e5d36ad77277ae8849236e47c939a35a16205dd7 + last_write_checksum: sha1:6254e8ae79f15dd812784156ea59c57b96f7ee37 + pristine_git_object: 82614ff4b498c483b0ae66d0848df9d7cd600ffa src/glean/api_client/data.py: id: 21cf13413429 last_write_checksum: sha1:f03b31e07a912efca080d9298fbb45e16590702c @@ -2699,8 +2863,8 @@ trackedFiles: pristine_git_object: d7340a086976fc1e2d3f10acaac30895defbc504 src/glean/api_client/entities.py: id: 38ebbab2f8a0 - last_write_checksum: sha1:329f07a0f970e52a86e06703f709e3cc49af7fe3 - pristine_git_object: 34b41dbdb5d68fb714457604642ea33c77e4e1c9 + last_write_checksum: sha1:2cda7b3a04563e5e452eb65a71e357e34707e144 + pristine_git_object: 2564ac766b63e3373d8db9350570edcf319d211d src/glean/api_client/errors/__init__.py: id: 88bbd5450191 last_write_checksum: sha1:e90feb04f3645278f89f5bad7531fd0e5581033a @@ -2715,8 +2879,8 @@ trackedFiles: pristine_git_object: b2f7acde3c293f63d1af370cf1bd4266048c3834 src/glean/api_client/errors/gleandataerror.py: id: 8bae5389c0bf - last_write_checksum: sha1:29d39ccabff4905216e98b25d1d265a71d731785 - pristine_git_object: 978b0be0e85d64351fd71c8cfe765dbd341cf5ee + last_write_checksum: sha1:d9db844614059154744d99927a7468306de298c2 + pristine_git_object: 754c85de70a38e982ea6368b9c4f922883a9a040 src/glean/api_client/errors/gleanerror.py: id: 9f1d85652f59 last_write_checksum: sha1:a7a2bc1335123c6bd8c9f945a9c653f061e14167 @@ -2767,16 +2931,16 @@ trackedFiles: pristine_git_object: c626afd01ac57966ee38c29c341fc36226e6530c src/glean/api_client/insights.py: id: 4c5708d15234 - last_write_checksum: sha1:e98f69ae53c5c5ef4ca8dd9d4d983efa8003040f - pristine_git_object: 4fc30c5c171586aa08c3c8c6404c5f35a3ca7c45 + last_write_checksum: sha1:05e08c38916c7c616753e3e6e44df5325b1e449f + pristine_git_object: 70e8c8e388d178029c8159102ab96db2830832bb src/glean/api_client/messages.py: id: 3751db64257b - last_write_checksum: sha1:cb1c13448ba0224ffdc84ad545607f80f46d2155 - pristine_git_object: 591c47b9df3dba7c5d470721602a14e2256b70fd + last_write_checksum: sha1:d90d1876e9ee907556c5825609fe1de633e66a56 + pristine_git_object: 1c182cb0150642014463e1ceec8bc8b785e5b9f3 src/glean/api_client/models/__init__.py: id: d5f6ea5efcbe - last_write_checksum: sha1:64c5fae947529561ed83b281070c86e67f373a6e - pristine_git_object: df6441d4c6eb91e781c065f43398deefa5d35d7f + last_write_checksum: sha1:7a48fe266a016f5a00325c6c14676e3e07f50b2e + pristine_git_object: 0a95099bff6950c0aa24c83bbd551729c7790edf src/glean/api_client/models/activity.py: id: 6ea27628a0fd last_write_checksum: sha1:27f676cc8276973c98176252bf06e2b4b965935e @@ -2793,6 +2957,10 @@ trackedFiles: id: 331e64597a08 last_write_checksum: sha1:035f1ed3dd8942935e693ce9226b80c723bfc3b4 pristine_git_object: 054b938021330e8f560fa3839b0fa0679d1d238a + src/glean/api_client/models/addcollectionitemsop.py: + id: b74e2acd56ce + last_write_checksum: sha1:74940403af74efbe25adfee529aa347215e05465 + pristine_git_object: 63d983e7368cefb2c90b88ba4f8615a517bda8e0 src/glean/api_client/models/addcollectionitemsrequest.py: id: c17a58ee4169 last_write_checksum: sha1:1f9ff893d0585588e4b2cd901fe4a6c9800a2930 @@ -2805,6 +2973,14 @@ trackedFiles: id: bbb5186e656e last_write_checksum: sha1:c1c1d3c437feefafef553fe1da929f6f3af7585f pristine_git_object: 0b381cf2d9934f9c85156e601a6ee8f012fca758 + src/glean/api_client/models/addverificationreminderop.py: + id: 333d8f0e3e72 + last_write_checksum: sha1:a7082555b05284d95566fd94212459d457c5e51a + pristine_git_object: f50d3fae512c0caeee0df58211b1c05a57a03e73 + src/glean/api_client/models/adminsearchop.py: + id: 3008f93ed424 + last_write_checksum: sha1:b9b39cbdb7798099e81629dcbc98161ce3da15ed + pristine_git_object: 2f774337a58efdc326fe412bb926b2fcdc7a6ac8 src/glean/api_client/models/agent.py: id: f8192dae32b0 last_write_checksum: sha1:0a512f7a66227709bde269378487ff634bbd1f75 @@ -2909,6 +3085,10 @@ trackedFiles: id: 32cff6c3af95 last_write_checksum: sha1:25994cb48397987f33fc1b4a4ab9a889fde59bdb pristine_git_object: e04713a6eef423324ff935b0c8febe133f0bbb6c + src/glean/api_client/models/autocompleteop.py: + id: 64525dda05ca + last_write_checksum: sha1:1fc647fbecdcc7ff2d8686fff1c871a1205ca6cb + pristine_git_object: 1becb54cacdf896e31007d57c71c8d6b32b9c997 src/glean/api_client/models/autocompleterequest.py: id: 23b29c9e7dcf last_write_checksum: sha1:9c2d2889dace26e23fe4a15ab98d4ef48d88b86f @@ -3023,8 +3203,8 @@ trackedFiles: pristine_git_object: d362afe4cc8dec7d4fcc8bbf1c2414ce5dd7edb7 src/glean/api_client/models/chatop.py: id: 324d679cb5db - last_write_checksum: sha1:424bab7bd559481d597c5d1312dd87b28768a1d0 - pristine_git_object: 1fc60c241a7bdaab9fb7493ea365fa6435a00c1d + last_write_checksum: sha1:050cd58ebbb9ec53dbfe226024ef977768c131e0 + pristine_git_object: 5f74227be6a9e4a4f7c1489ac300fa2cae16a4d4 src/glean/api_client/models/chatrequest.py: id: df889fc72055 last_write_checksum: sha1:96fb729593cbb1c39142a23dba05b7ffb3d8bd2e @@ -3149,10 +3329,18 @@ trackedFiles: id: 2ff7e2d8021d last_write_checksum: sha1:0e1eddc376375ce78a5080233fd1ecd74d11b071 pristine_git_object: 2d24b6f285648babfebc438532563102855b5d48 + src/glean/api_client/models/createannouncementop.py: + id: bf2cd073d77d + last_write_checksum: sha1:813459335a23b231a77625c5ee514e5dfee19792 + pristine_git_object: 684220b8f843dfd36ce0a5251c14afb64c777658 src/glean/api_client/models/createannouncementrequest.py: id: 00c8eebb1b76 last_write_checksum: sha1:a2e2cf931ede17d65d3197dcecaefa06809d3440 pristine_git_object: ed56298666ce51cc70609450c1ed9f1c7298f07f + src/glean/api_client/models/createanswerop.py: + id: b638c379e2fc + last_write_checksum: sha1:d90e73526f1d1da4b9047dfb22155438138b7bc4 + pristine_git_object: fce45ee23f7e6bde6762d9cf4fc0c774e5d6a293 src/glean/api_client/models/createanswerrequest.py: id: 80adf1814683 last_write_checksum: sha1:b59b546cbb77e7d99b7bc76f1785105ccba73cbd @@ -3163,8 +3351,8 @@ trackedFiles: pristine_git_object: 50e696acb359f6185f317eabb6196429785d9bef src/glean/api_client/models/createcollectionop.py: id: 3610855a3415 - last_write_checksum: sha1:fc13deb464c8efd3cd09d44b9e56cd9e06f7e869 - pristine_git_object: 2c29395d16c72c27a5de36a1e0a3879c256665d5 + last_write_checksum: sha1:ff0eb9d2062f623f08d8d5e8cf2963284b2db143 + pristine_git_object: 639bfdb5f007cdad4c8f58b5b1ffb6e7a5300b42 src/glean/api_client/models/createcollectionrequest.py: id: e39b15f0ef35 last_write_checksum: sha1:8932371861e88fe0f1672f687836542672958fcb @@ -3177,6 +3365,10 @@ trackedFiles: id: 12ae9b936795 last_write_checksum: sha1:d8bb2f7615e9c998fb1228f6512d23ec23cb669e pristine_git_object: 7c8ceccb12da7806e3e7672749ff9b687285ee29 + src/glean/api_client/models/createshortcutop.py: + id: 3f448216dcfa + last_write_checksum: sha1:1c4201be4d230cbae51868118816a2ee028a6948 + pristine_git_object: 2bc9e3a811275976517af66e0fedf5d8e7fd7044 src/glean/api_client/models/createshortcutrequest.py: id: 8f0d2ac9fc83 last_write_checksum: sha1:84dca7fa3be62505699da379896c138737e35774 @@ -3311,32 +3503,44 @@ trackedFiles: pristine_git_object: a1ec97ce8ed98df8cab123db71569f0b40b67f13 src/glean/api_client/models/deleteallchatsop.py: id: 70e1ea929ffb - last_write_checksum: sha1:bf14b741c1afd62a6f19e1a44139d01096d48b9e - pristine_git_object: 34bb7be37bf051845ddb614b9fac5afec9c7e27c + last_write_checksum: sha1:b0cf9bca5bc08642983a3cbcf46438d7c3a1daec + pristine_git_object: 882f202f056ebd9c2fd3f6e1e1f184399db25b11 + src/glean/api_client/models/deleteannouncementop.py: + id: 85d058f754cf + last_write_checksum: sha1:4e635d52bd5f1d57cc465b0b429717a0944eb9d5 + pristine_git_object: 91f7951a4b0ae72564011cc9bc70914d2a46b515 src/glean/api_client/models/deleteannouncementrequest.py: id: 6a5ffa31b42c last_write_checksum: sha1:b4aafccf05ae6cf9e5bc4d7687cff0de113c8fb5 pristine_git_object: 7531e633f00e150f21ffef89a0fa0edf72efe34c + src/glean/api_client/models/deleteanswerop.py: + id: 02d7a4c6a024 + last_write_checksum: sha1:07b9a39f153dfe1b47ea035452ddab61a483c2b8 + pristine_git_object: 76ffff92d77a34d74333b4c71a8431b971eae420 src/glean/api_client/models/deleteanswerrequest.py: id: 2cacee52b8bf last_write_checksum: sha1:9a9fee965c7ebe80a0897e526dc52523ec15ab41 pristine_git_object: 2f5efe22536b4524c7e5aba01e7fdb76130c6df2 src/glean/api_client/models/deletechatfilesop.py: id: 2e2bebfda978 - last_write_checksum: sha1:985428b727fc8ee5b16fef03790eaab4d0331829 - pristine_git_object: ca1a1f9c33cbfc581f4baa258ae0997a12fb451e + last_write_checksum: sha1:f56b9d74c50b4856107ce72e282103413862a217 + pristine_git_object: cdbd0c7f329dafbd3b8b915649f33a318717d062 src/glean/api_client/models/deletechatfilesrequest.py: id: 88da4a9374bb last_write_checksum: sha1:8654b8a84b7bb990ac47afb0cb4c91ef248af440 pristine_git_object: fc8ea162c4969caae5b518510c61431d5224a2b8 src/glean/api_client/models/deletechatsop.py: id: 2e921316a955 - last_write_checksum: sha1:cf47319df31f53f3453d02b374d39dcfc268a173 - pristine_git_object: a3230e019725065ed35c0e22244476941aadfd2f + last_write_checksum: sha1:0d948d72b13ece94ea664389c5c7a57adffe3f16 + pristine_git_object: 540084d3a7ed02a7c5142cc09b165f916a617eef src/glean/api_client/models/deletechatsrequest.py: id: 2d0590f39c7e last_write_checksum: sha1:ea5fff9198321524287177fc1169a5a4e02d486c pristine_git_object: 7a5dcced0cbfdaa71c354942f76c8b56e06973ff + src/glean/api_client/models/deletecollectionitemop.py: + id: 503debf60d9d + last_write_checksum: sha1:8518d2e47156ea57cb2940f385c2921820cafa2b + pristine_git_object: 9d185806c9bf1252b80369a35b153f749e754315 src/glean/api_client/models/deletecollectionitemrequest.py: id: 396cb5c63bc1 last_write_checksum: sha1:c1269228d0fe19750c392965c8411073749856bc @@ -3345,6 +3549,10 @@ trackedFiles: id: 719afcdd05e1 last_write_checksum: sha1:a147310b57bac75981e185d1fcaae47ae37ed560 pristine_git_object: 05b69dfa7ff2cec9d0bf401280514de26816c319 + src/glean/api_client/models/deletecollectionop.py: + id: 1fbb23e9ab7f + last_write_checksum: sha1:5df95504c207385d88d9efb5506ff61746828ff1 + pristine_git_object: 53473bb94ee0a9c139eb275885e96be182bfa2b7 src/glean/api_client/models/deletecollectionrequest.py: id: 92b4c2c55a81 last_write_checksum: sha1:e1b6bcce9c7f87368abf6fc67920eff28b1bf526 @@ -3369,6 +3577,10 @@ trackedFiles: id: 506e49c72483 last_write_checksum: sha1:3ea89dd3d6173290a78d0a42a831cd245fb91f43 pristine_git_object: 4d7397b8b17cffffa45204947e7484be4a72e8f2 + src/glean/api_client/models/deleteshortcutop.py: + id: 48c5f989a2b4 + last_write_checksum: sha1:32adeaae7c5604886cfa991c3026c20578b3803e + pristine_git_object: 0c9baf910e754b1abf5a26ae865b69b80eda4310 src/glean/api_client/models/deleteshortcutrequest.py: id: aa4724c9617e last_write_checksum: sha1:8187e9166aab564f906ca74323a65e89956244d5 @@ -3513,10 +3725,18 @@ trackedFiles: id: d5bf581bbb4d last_write_checksum: sha1:89e5828b1007a5fe600c74a50af1228298573a4d pristine_git_object: d6059a8fa23d3cc41298d1cfb331d266d793b53c + src/glean/api_client/models/editanswerop.py: + id: 7236676e3bd0 + last_write_checksum: sha1:b9246305f64d4116d8b36ae02d2f5be0cde3e7e4 + pristine_git_object: f253d316836fdae536856e1c09a662bb61cab143 src/glean/api_client/models/editanswerrequest.py: id: fe09a7824140 last_write_checksum: sha1:79add1da6ce8185da5309973f5a5f0612cd027a6 pristine_git_object: 607ce8f449da94de66bd309fb1c2803045edd9ab + src/glean/api_client/models/editcollectionitemop.py: + id: 1384524a3498 + last_write_checksum: sha1:04b76fc546b2b39dcfb226bb51788a612027a177 + pristine_git_object: 64b91d3abbb507b21742307e7f41c5e7186c2611 src/glean/api_client/models/editcollectionitemrequest.py: id: bc22cf6084f5 last_write_checksum: sha1:41520b9e5735d1c89a457eebe78640d5be55eaaf @@ -3525,6 +3745,10 @@ trackedFiles: id: 1932a6ee55dc last_write_checksum: sha1:a70c5c0f863d675568f714759f792b0f4d15f5bc pristine_git_object: 447740a0843cf4cfad48920b7f92e938adb8591d + src/glean/api_client/models/editcollectionop.py: + id: 6bbb39f451cb + last_write_checksum: sha1:b886c78c124b0eee3f79390fbacaf9fadd6a0bd0 + pristine_git_object: ebc50afc35e13d30dbdb47ca2f075eba8f8c5c26 src/glean/api_client/models/editcollectionrequest.py: id: fb314a816369 last_write_checksum: sha1:d352f8d6d8b4a08be93b03f946351a4b353af9ec @@ -3533,6 +3757,10 @@ trackedFiles: id: d5021e1e02ea last_write_checksum: sha1:50246665e5d9a00e96b1eb28cbfb0b11b2a54f83 pristine_git_object: 23cc370a5c1ba0ad761baa0505da04fc7875c7d2 + src/glean/api_client/models/editpinop.py: + id: ccf2c7c31a0e + last_write_checksum: sha1:362557599334d8df280cd62d5dd818ed519f0221 + pristine_git_object: 6591f97bbf357bcaebefbf8807cd0c5f5211bd41 src/glean/api_client/models/editpinrequest.py: id: 394a855b5f16 last_write_checksum: sha1:6b53c9b4e319d8b7143b5360cac31453e3c712a5 @@ -3637,6 +3865,10 @@ trackedFiles: id: 023eb6c10ae1 last_write_checksum: sha1:49a02f7f13d0bd0a86252522cce6fd418e0de10f pristine_git_object: dc49f9c3eb536014748bcf2ee4957a5aa957709f + src/glean/api_client/models/feedop.py: + id: b8067ac0a127 + last_write_checksum: sha1:5785aaa7871eae155d76917b70f37e1015c0fe93 + pristine_git_object: da94a1eb0e06d6040cab805de7b4944a9a4465fa src/glean/api_client/models/feedrequest.py: id: 33496b6a5bab last_write_checksum: sha1:2d67c0ab5b84104f276942c3083bed5b8add2e61 @@ -3675,16 +3907,20 @@ trackedFiles: pristine_git_object: abdaafee6ba2b082cd94635c0470c0b2c22e27f8 src/glean/api_client/models/getagentop.py: id: 40981170ded0 - last_write_checksum: sha1:301eec2a392c26fa8a3c61b0573b459649578d24 - pristine_git_object: fe5de6e24e7b1f1cb56eaeacbd1fc65220b0f851 + last_write_checksum: sha1:dc02e4df39f775f461942b48ad8c1c7e7a398f58 + pristine_git_object: d0057193cba1aae48c88aefccb4ea381b3e5e5dd src/glean/api_client/models/getagentschemasop.py: id: 21bfced8e2bc - last_write_checksum: sha1:43c5bfb8367c7b5f4645c035a2d9a3a91d45231f - pristine_git_object: 17537af72df5186d8b72c54116da2cc3152f17b2 + last_write_checksum: sha1:962ba13795905925c483c8c3bf53e170e5bb1330 + pristine_git_object: 49e8e1d462f73fcc10f88477696567cf3270539f src/glean/api_client/models/getanswererror.py: id: 7d4df3bf2bfc last_write_checksum: sha1:bf62dc25b8fa8621a2fca40f436d0f52d7dc6d4d pristine_git_object: c95c45ab1e388f9f7ab0bf7a920c32cad7f17d5f + src/glean/api_client/models/getanswerop.py: + id: d02c69702982 + last_write_checksum: sha1:c39e1d250ec79b89621d461ca696cc5e88fabcac + pristine_git_object: 49aa5a14b88490161fdc821a90522038a7855293 src/glean/api_client/models/getanswerrequest.py: id: 51b52ca6bdd1 last_write_checksum: sha1:57d204d90fa7d91df4a88d7a6df1a6990a0e91c0 @@ -3695,8 +3931,8 @@ trackedFiles: pristine_git_object: 8c01ba88bb24d79be0395424107d0f043a38cec7 src/glean/api_client/models/getchatapplicationop.py: id: 320af39d31c3 - last_write_checksum: sha1:06d490d4573cc94e5a8deaaf82b22c988ce309f7 - pristine_git_object: 08af371619ab4d38d081d1281c9adc994ace3335 + last_write_checksum: sha1:bdc480286b99c4d9c92215ba878dda2766b1f91e + pristine_git_object: 7757b5b3c409a0f7b92935fa480d75953a966302 src/glean/api_client/models/getchatapplicationrequest.py: id: 6e15de2008bd last_write_checksum: sha1:9788428769ee01fbe7bc39b4281ce952d2a8e052 @@ -3707,8 +3943,8 @@ trackedFiles: pristine_git_object: c2b617f85539f18828c74d80b94cba268545c410 src/glean/api_client/models/getchatfilesop.py: id: 48b9a5c63e2c - last_write_checksum: sha1:1ddf070dbbb2781d2c1a9d46e0bc61fcd4a9f016 - pristine_git_object: 709997e27ff932135b7a2b4572ab7f53c668aa83 + last_write_checksum: sha1:d03f42eaf94946c8ebc63402b670f5d4666d4677 + pristine_git_object: de9515ca950611a24d8db606949f3a60fa901f0a src/glean/api_client/models/getchatfilesrequest.py: id: 86e8fe781667 last_write_checksum: sha1:d86f6114edfc8f2a3058b7d171fe6256ee7e8bc0 @@ -3719,8 +3955,8 @@ trackedFiles: pristine_git_object: 626f22cdb2b7ff24b61e5d329b6e08966b4eb369 src/glean/api_client/models/getchatop.py: id: 2b157d86e810 - last_write_checksum: sha1:a01783d7f4099eb3211657320de12694f811ae7f - pristine_git_object: a233f7089afdc87bd6f4fe0d3eb449969538b01b + last_write_checksum: sha1:a2955637435b53f73bc59b82a86be9411e42fa15 + pristine_git_object: 1a5badde64552d38b4ec87f36f29cd4625a5a802 src/glean/api_client/models/getchatrequest.py: id: 408479eb0833 last_write_checksum: sha1:7d4a3169cb0ab0954471eca8f5066cbb0f265e93 @@ -3729,6 +3965,10 @@ trackedFiles: id: 0ed1381b51b7 last_write_checksum: sha1:e2389903c1f83276f8621a16bce0370c6e549e97 pristine_git_object: 88effaa3cc0f22782a2c7753d832e8dbe8062cd0 + src/glean/api_client/models/getcollectionop.py: + id: e46c77b755f4 + last_write_checksum: sha1:130499d9547e14140ec98e26af05e9b89dc33561 + pristine_git_object: 01f41badfbeb75fc5e2f9e6e96e5f203ca5b90e3 src/glean/api_client/models/getcollectionrequest.py: id: e133223930a2 last_write_checksum: sha1:750189b561ffca8860e1c3ac5c4a70a0ffb2bda2 @@ -3745,6 +3985,10 @@ trackedFiles: id: 0e0111b5d484 last_write_checksum: sha1:ac2b5a4bd5bb5a72c9b33abbb37295193e8e3927 pristine_git_object: 6b2c3478577c9b00fe97bc6b1bf0404ce30929d0 + src/glean/api_client/models/getdocpermissionsop.py: + id: 085293ca24a4 + last_write_checksum: sha1:2e2e8f01020e2e7da4ba77af5a93bd1205aba2b3 + pristine_git_object: 50cd4245a969f4c9d43da3b1ea253373fc1c9d8d src/glean/api_client/models/getdocpermissionsrequest.py: id: 9e472fc389dd last_write_checksum: sha1:4f7769a9132fecccb7d1450945379826aa8cd4e0 @@ -3761,6 +4005,10 @@ trackedFiles: id: 872d5066d91b last_write_checksum: sha1:f1abe1ca098701fe46a3bd8b59ef6f6e1c66f366 pristine_git_object: 9c084ea9d3955b4a52add00d56e34301468dd884 + src/glean/api_client/models/getdocumentsbyfacetsop.py: + id: ca5343a63eff + last_write_checksum: sha1:8f82ba5170cc5843a5282f1fafa9412d75ce7f6d + pristine_git_object: ccad698f7b6edb655296487c01b9df8fb7113055 src/glean/api_client/models/getdocumentsbyfacetsrequest.py: id: 095fa51d67ed last_write_checksum: sha1:10272be737cdb2aa442a5c3445e39c7c5dbff35e @@ -3769,6 +4017,10 @@ trackedFiles: id: ffcd52e8e229 last_write_checksum: sha1:8b94af9c874dc482d72ee3c4198ad67f8980a16e pristine_git_object: 5d8d080e40557f9ff2642d774c4bc2fce5a13b37 + src/glean/api_client/models/getdocumentsop.py: + id: 957b85b955b7 + last_write_checksum: sha1:3350965ca7b362d090f81a17305e2635d930015e + pristine_git_object: 41ab78e24389c2f97d66b9962f60a1a722e292c4 src/glean/api_client/models/getdocumentsrequest.py: id: 35b06c70131e last_write_checksum: sha1:f5e5d476b6c3b09e08464de5a3586be95c4e35b2 @@ -3793,6 +4045,10 @@ trackedFiles: id: 0f3847de9013 last_write_checksum: sha1:c1a156df91e4a8c8d62eac9165eff49b822641c8 pristine_git_object: 682cb48fad24a16f4724ede2de371ccfcf696f0b + src/glean/api_client/models/getpinop.py: + id: ead822eb0da7 + last_write_checksum: sha1:d09ab0d3537690415d3619a772adacbee1afe83d + pristine_git_object: c854e8f0f247429d0c6bedd79610465432ecf36b src/glean/api_client/models/getpinrequest.py: id: cd845a071792 last_write_checksum: sha1:08f98be6d86e5ff7dfd4552f28142b3ce960fb48 @@ -3809,10 +4065,14 @@ trackedFiles: id: 109bc89ef9e7 last_write_checksum: sha1:d6b857528734b75999673d80dff04999994fb2e1 pristine_git_object: 17fc561771d65ffe3d3c15fec7099aedaf8f3341 - src/glean/api_client/models/getshortcutrequest_union.py: - id: 8a7c3d7d425f - last_write_checksum: sha1:451dc6887ca2a706bfe34fe19bf986f88100f1ac - pristine_git_object: 6f031d6dccf18a8e07a8e7c3d9289881ded834f7 + src/glean/api_client/models/getshortcutop.py: + id: 441211afbd50 + last_write_checksum: sha1:8fc0443a07d0dd5e7be19a6142190f3a2ed91ff1 + pristine_git_object: dd5c270c46d0e91f72ffb9b5589cb19c238f91fb + src/glean/api_client/models/getshortcutrequest.py: + id: 0c01b7f76574 + last_write_checksum: sha1:18d613e1443809e7142560cb14db3b987c91af6c + pristine_git_object: 6efe832b0a6facfb137cac38c0ff8db1d4d03302 src/glean/api_client/models/getshortcutresponse.py: id: 2d10a576bd7c last_write_checksum: sha1:d5d5d0d52375a859083e7e58500196817f5350cb @@ -3831,8 +4091,8 @@ trackedFiles: pristine_git_object: 9bd865818900f5e18df747e941b941d023d9cd92 src/glean/api_client/models/gleandataerror.py: id: 86e8dc6c1eb5 - last_write_checksum: sha1:e6f673d62bb9e46c48d64bc562439a86192d2f58 - pristine_git_object: 49567e8d31ff0e8224f5bf2da0e0cd615f209c80 + last_write_checksum: sha1:965386c5e2bc833aa410ea407dd114ae2172cc00 + pristine_git_object: 953126e2faefa6d9b050921194fb22953b1a6b8e src/glean/api_client/models/grantpermission.py: id: 0cfd67112b08 last_write_checksum: sha1:55769b361ff0127e010631f8523cffdf20e47fd2 @@ -3899,8 +4159,8 @@ trackedFiles: pristine_git_object: 21e0654e94d799c3f1841da75c14ba31501a6cd0 src/glean/api_client/models/inputoptions.py: id: 29608097f74b - last_write_checksum: sha1:126cd6e87de31f54d52c0b1951d1f91ddda96946 - pristine_git_object: 4b14eb02ac24a4557a08f30a26635787bd4ca5b3 + last_write_checksum: sha1:bf745b378cd90614ceb8cd0afbe172f2b7fef045 + pristine_git_object: b1c67be37eae3c9578fb3e18d02eeca382f53708 src/glean/api_client/models/insightsagentsrequestoptions.py: id: e10172e8323e last_write_checksum: sha1:b966938195ee3c703471d0b0c05bfd8fcd93710f @@ -3917,6 +4177,10 @@ trackedFiles: id: 06b2f68e597d last_write_checksum: sha1:9dcd3a327a221e4a29453f564b1674c521023710 pristine_git_object: 60f6ef3dd8544dfc142d6eea22c7a5ee79f02ba7 + src/glean/api_client/models/insightsop.py: + id: ded0a3337a07 + last_write_checksum: sha1:57177abb71c5788ef3d0afb37d1b17cbcf470f68 + pristine_git_object: ef886121e9aad14a27333d4aa7a29778530af8d2 src/glean/api_client/models/insightsoverviewrequest.py: id: ba00a51c6496 last_write_checksum: sha1:6e8a165ac8b1940f1b132a8d3137cd9f3654ede9 @@ -3949,6 +4213,10 @@ trackedFiles: id: 35eebfd45449 last_write_checksum: sha1:184579f4fdf58560227c8b1e673b196df952236b pristine_git_object: ea1325bc07aa74dd5dacc581f4d473edfb1a5a12 + src/glean/api_client/models/listanswersop.py: + id: 6df22dfa5611 + last_write_checksum: sha1:048a3e4133897873255ff3997d40265f4f47a72d + pristine_git_object: f94bc53b50d30c39f3ebe4ec6fd30d87da33595b src/glean/api_client/models/listanswersrequest.py: id: 182308b967ae last_write_checksum: sha1:1c27b491f15db22ed07559c4dcaabad06c88dd94 @@ -3959,12 +4227,16 @@ trackedFiles: pristine_git_object: 6afb7851f5d434a734d6bdc243d6da54bde71395 src/glean/api_client/models/listchatsop.py: id: 94b86456aeb7 - last_write_checksum: sha1:0343270f16b90a8ed37728122058e7bebdad757c - pristine_git_object: 44da871239ec48a00dcd69c78f2083a5d7ab9545 + last_write_checksum: sha1:124b2b64133fc8706539d98e0724a1cb172849d0 + pristine_git_object: 883801d64cbe4f06e5c84460ae520edda1361420 src/glean/api_client/models/listchatsresponse.py: id: 50a66bb0b05c last_write_checksum: sha1:b368446c3b8b76bc1410340e4b0972062e4d54c7 pristine_git_object: e10bf1f140c266ac4523d1d2fa90c81a51087da1 + src/glean/api_client/models/listcollectionsop.py: + id: e09e0878038d + last_write_checksum: sha1:03521e75f16b8a1b049cd438a1fbb7579a7ce646 + pristine_git_object: ff908cda41d66674f8c9e45f5402b8bfcd149fad src/glean/api_client/models/listcollectionsrequest.py: id: 1a996c119c07 last_write_checksum: sha1:5b7efa6631b00e71da8ace0229327506d4194ad3 @@ -3981,6 +4253,10 @@ trackedFiles: id: c300fd0a9a6c last_write_checksum: sha1:45d83bf83ed6b5febf4a3ced2bcb7a861502bedf pristine_git_object: 67cf82427664b4f8de0cb2d3e357084206c74245 + src/glean/api_client/models/listentitiesop.py: + id: 06a2c7e16783 + last_write_checksum: sha1:efcc450f078116c4663f2d49a5c1b677f0375ec2 + pristine_git_object: 7f583865ecb67b25c1356ba1ecce4631089410f0 src/glean/api_client/models/listentitiesrequest.py: id: 80b3dc9dfe99 last_write_checksum: sha1:db9cdfca73bec37221cbbc81bd9e2e85e166e2b4 @@ -3991,8 +4267,8 @@ trackedFiles: pristine_git_object: 60103f2b60949ae7749e7f5664cd39a29214f98b src/glean/api_client/models/listpinsop.py: id: 3d0b32b3a1ef - last_write_checksum: sha1:be848b1c6be778f062ac89360bdd1df3da6c78b3 - pristine_git_object: c31a5c29dd3016f8d19f67107b8f5bd2614ba0f9 + last_write_checksum: sha1:fdef4cbb09567d5dccc0c60b994063a754bef417 + pristine_git_object: 3b96ea93922ecabf0d283a4244a8351efae7e729 src/glean/api_client/models/listpinsresponse.py: id: d8ffc5ecc72d last_write_checksum: sha1:de24dc3fec981597fb7db5b5712b017857a3743c @@ -4001,6 +4277,10 @@ trackedFiles: id: be81e93eab44 last_write_checksum: sha1:df800c729c506814967caaa17acb1e6e0d3467c8 pristine_git_object: 02965a79b16c97d50181b0f791f4771645575ca3 + src/glean/api_client/models/listshortcutsop.py: + id: 299c0fa933c2 + last_write_checksum: sha1:4c862da30de4c08bce045dc7479179f2399bfa24 + pristine_git_object: 9e75a23981416b81d572f02bdfd35555c4164093 src/glean/api_client/models/listshortcutspaginatedrequest.py: id: 4a13f02487cd last_write_checksum: sha1:d3ac44fbafa0b85b4c9b72b3cebfb95041c44c95 @@ -4011,8 +4291,8 @@ trackedFiles: pristine_git_object: da0fd32a15a6a1eaea813b0f351bb400f6e4c82a src/glean/api_client/models/listverificationsop.py: id: c0fd4141bc31 - last_write_checksum: sha1:46933e555a4abe0b5e8940d8775ad484e0b0d3c8 - pristine_git_object: f42c46a3c4c025edaed1f8a078fe5d78d1f08df0 + last_write_checksum: sha1:7f3900a87426b35bb9eae6b925e3b39ec16e22e9 + pristine_git_object: c0d3fbcc28b55887e0fc8d81eded50c95dc88d35 src/glean/api_client/models/manualfeedbackinfo.py: id: b7e93f70592f last_write_checksum: sha1:5e6ea5d88609eefb7a94de2de3ac54b621611f22 @@ -4029,6 +4309,10 @@ trackedFiles: id: d2e44a188d40 last_write_checksum: sha1:385e3f64c58bb8746f31fb8992c5868dc343de16 pristine_git_object: e23c15b2fc5eeb63657599d99e8d1400a4c7d1ee + src/glean/api_client/models/messagesop.py: + id: 60537c3f3449 + last_write_checksum: sha1:96acaa835d51973f024d97bf98d47f08b87261af + pristine_git_object: 0c30b2daaff222b0f2fac79842fbf29b5a09d521 src/glean/api_client/models/messagesrequest.py: id: 5664726a791d last_write_checksum: sha1:c949aad5db81d9ccfc1030d5aa48c9b8f948ad9e @@ -4053,6 +4337,10 @@ trackedFiles: id: 143660b5a54b last_write_checksum: sha1:dae43dc38d1554002cb9786c8440631a700202ac pristine_git_object: 054d20054753060f029a4dc433ddbd539fff4dc4 + src/glean/api_client/models/peopleop.py: + id: 0701e843e962 + last_write_checksum: sha1:4fb8d5af049944b81d62112d0da7407459f987d3 + pristine_git_object: 7bae939964a08d06398d8b97c52b562b43596ce7 src/glean/api_client/models/peoplerequest.py: id: a7dcc3001149 last_write_checksum: sha1:d98cb6cd12b2320881e8527004c68708a4ab6d9c @@ -4113,6 +4401,10 @@ trackedFiles: id: 77cd94d61387 last_write_checksum: sha1:c803c5b0bb639196ae8d88ede5594b7184a8c80f pristine_git_object: c7d9416aa21cdd10f5533212f32f2cab9f6e88e8 + src/glean/api_client/models/pinop.py: + id: 9bccdd6255f1 + last_write_checksum: sha1:29fda8e912ea573678318db4882553a291bafada + pristine_git_object: 55e046361364b823edf38b024911d7206fff0df0 src/glean/api_client/models/pinrequest.py: id: 5b14b683421a last_write_checksum: sha1:d224bc1c6d6de1b15d87bd036d02fbb62247e1c5 @@ -4193,6 +4485,10 @@ trackedFiles: id: 13410259df92 last_write_checksum: sha1:69f14e4c3ffb661db72ee3f42bbcae8226fbe8bc pristine_git_object: d7f46af0205d999fa3f81b53b4952579c788be68 + src/glean/api_client/models/recommendationsop.py: + id: ee5dd14cd496 + last_write_checksum: sha1:448097fe0d644676361b5ddaf75f70724dec4018 + pristine_git_object: 5407cad0f16607a7183e9e6fb511607ce076e226 src/glean/api_client/models/recommendationsrequest.py: id: a520b92b656f last_write_checksum: sha1:8b506a1bc41e78204e66aaec006ea8e090dc0b9c @@ -4265,6 +4561,10 @@ trackedFiles: id: ab538c03a9e7 last_write_checksum: sha1:78cb08b2b8368185e15e940502493264d58bb8c9 pristine_git_object: bd830265ca4c50f5ae03d63862fe17860b3214f9 + src/glean/api_client/models/searchop.py: + id: bf0e9fa90f9f + last_write_checksum: sha1:2bde07420388dc6d2ea32df36c4e370b07c6e88e + pristine_git_object: 08c2a35bfb2579c5f96833dd9ee970b369af61a4 src/glean/api_client/models/searchproviderinfo.py: id: b68ee1b0b172 last_write_checksum: sha1:dbdb233b30d1d36cd5f3d5a57c7861d3db906162 @@ -4405,6 +4705,10 @@ trackedFiles: id: 04eeabe42124 last_write_checksum: sha1:ff30b684a5689d343ba2f8e4ae6b60228a5e3767 pristine_git_object: 4a55f087a9b19d542b32dd8064185b090e76b787 + src/glean/api_client/models/summarizeop.py: + id: 2b87b3e6aa4c + last_write_checksum: sha1:3142a3b1c9e631579c4b96d2b05c49a4baf58126 + pristine_git_object: d476d017d45bfef7eaf17bcb2b02852a92d85b9c src/glean/api_client/models/summarizerequest.py: id: 368175eae49b last_write_checksum: sha1:13085b7ec22deb534564e6c47d9c8794208e14dc @@ -4495,12 +4799,20 @@ trackedFiles: pristine_git_object: d20d237b50f1ee24740e67aeaee522b0999d5fb1 src/glean/api_client/models/ugctype.py: id: 9afda9fb9dd7 - last_write_checksum: sha1:df62f173fa4bf673fd035924b6fe98b05beeed0f - pristine_git_object: 383b3994cbeb3faf026e12366a964186b6181e63 + last_write_checksum: sha1:8f7e4236f023551cae93d5a75872ea6d1a3d3c29 + pristine_git_object: 9594a7bfffd04c21e4fdf0c792b3474ed631cb6d src/glean/api_client/models/unpin.py: id: fd3f7ecf7a4f last_write_checksum: sha1:38b097cc87897b932f2f52ecc1e8cebc9a7833a8 pristine_git_object: f8feebc7d73e688fc756430e6471e408c8f3ca66 + src/glean/api_client/models/unpinop.py: + id: 37bd03782f09 + last_write_checksum: sha1:3694dccfbe5bfbf13a82d9bc7d6199d09273336f + pristine_git_object: 4ba6dcab861a50f1285428fbdad13cbfe44a32f4 + src/glean/api_client/models/updateannouncementop.py: + id: d409429a77e2 + last_write_checksum: sha1:7f5ef05d52977197960cce079e980d5e083544c4 + pristine_git_object: 05d4fd15147046bc45cf6eda8099defba814a969 src/glean/api_client/models/updateannouncementrequest.py: id: 4e395ad26b24 last_write_checksum: sha1:e4c5ef85bcdd1eda8ac818abfefe80c793974766 @@ -4537,6 +4849,10 @@ trackedFiles: id: 2ba2a5f2e331 last_write_checksum: sha1:1d85a868469b55eeda4ca98ad2ced3865d00705f pristine_git_object: b34f7fd4589842113a042c9991b5dd58a82b411f + src/glean/api_client/models/updateshortcutop.py: + id: fca201b21308 + last_write_checksum: sha1:123501c6d68705b9db5135b2a2385991c58fcb20 + pristine_git_object: 5b9d8daf1d15b39150e3d602d36c53157f16ca6c src/glean/api_client/models/updateshortcutrequest.py: id: b8914e398f61 last_write_checksum: sha1:58d53c1117469f0b351f9ad1b654044a77e06022 @@ -4551,8 +4867,8 @@ trackedFiles: pristine_git_object: 687544d47bd9c1e71f933ec6fb4e5a33f197b49b src/glean/api_client/models/uploadchatfilesop.py: id: 29eaccdd7727 - last_write_checksum: sha1:6936454ca6f99d423c2f1e4b6942bfbec48a65c8 - pristine_git_object: 59b0c7d062a9463d9de5ac8ab3ec5608ebdf2c90 + last_write_checksum: sha1:4754d58e641d54d4d16c2f2423ca2c1ecf99cbdf + pristine_git_object: 6d4bdd5f363926d9372678ae09864f36e5831e2f src/glean/api_client/models/uploadchatfilesrequest.py: id: c648ec79e147 last_write_checksum: sha1:01c19e13e954a4b2aea2896007d555e94bbf74cb @@ -4621,6 +4937,10 @@ trackedFiles: id: 16a575323484 last_write_checksum: sha1:c07b1c306b1df76652df13d4d43dfc48558f1f5e pristine_git_object: 6f4e916e0eb74a4a88870fb895c4b95d9f865606 + src/glean/api_client/models/verifyop.py: + id: 99ea97ea1819 + last_write_checksum: sha1:f8b74beda2df572d23be942d3f8fcb353ef54b83 + pristine_git_object: ba4ec0690ac82c2a0dd879efd53eea6471e136b8 src/glean/api_client/models/verifyrequest.py: id: 7a0d65d316c5 last_write_checksum: sha1:4fc907edb82a7a35f53e9176cfa385821b37f4af @@ -4655,8 +4975,8 @@ trackedFiles: pristine_git_object: 984073db79503d8bde3a58f8cddc54ddfc2ee331 src/glean/api_client/pins.py: id: 4a37ead65f8a - last_write_checksum: sha1:3a2a2e67b88381ed38f9b4a4553f66ba6d00a337 - pristine_git_object: 80d29702200a5b87416508d7633563589571a275 + last_write_checksum: sha1:9c72f34fc747fd9753beb6dcb967366d8c1c9181 + pristine_git_object: 340b40a5ca4b54de8687754f1fb5a077cc4e8165 src/glean/api_client/policies.py: id: 680f941e0620 last_write_checksum: sha1:e5797a03f6e6c29083253e7c4cc51e9e28a36f61 @@ -4679,8 +4999,8 @@ trackedFiles: pristine_git_object: 22e0a4eab0ef8e54dcfd986084d01c14a56f47a6 src/glean/api_client/search.py: id: a3b404a8b402 - last_write_checksum: sha1:eda8fda10d60fd6d567cbd0ccd62b146fee034a2 - pristine_git_object: 4ea44b0ded2d1d2114a7aa743df784e7e2ac0091 + last_write_checksum: sha1:d3a400202165c7fd87840cd04dbfc6457c7c6005 + pristine_git_object: 90d71a7b2e4d350f855775e200e927fb907b3af2 src/glean/api_client/tools.py: id: 3ea40147c1cc last_write_checksum: sha1:102b41106443bb035323985a0fcb39d55d8ddba0 @@ -5476,7 +5796,7 @@ trackedFiles: tests/mockserver/internal/sdk/models/components/gleanassistinsightsresponse.go: last_write_checksum: sha1:5b8a4fdefd05ed9e53cbee94c32b0a428175ad22 tests/mockserver/internal/sdk/models/components/gleandataerror.go: - last_write_checksum: sha1:e2ba36c9aeaebae5a4f57509af9597481a809f8b + last_write_checksum: sha1:fa6d4a5917a90f72a97628ba20e31dd31b02af0c tests/mockserver/internal/sdk/models/components/grantpermission.go: last_write_checksum: sha1:83d69c5a502306994095bc1a515d6c52798fa696 tests/mockserver/internal/sdk/models/components/greenlistusersrequest.go: @@ -5512,7 +5832,7 @@ trackedFiles: tests/mockserver/internal/sdk/models/components/indexuserrequest.go: last_write_checksum: sha1:06d1d86e560655f1b5c529f630fd757c12b5d0f4 tests/mockserver/internal/sdk/models/components/inputoptions.go: - last_write_checksum: sha1:37bfc1b1073f6918185dada746c2f7c772ee3435 + last_write_checksum: sha1:a8e076c7b78ab09d12da6b5a05b97714306953bd tests/mockserver/internal/sdk/models/components/insightsagentsrequestoptions.go: last_write_checksum: sha1:00e65e5e7f98d1b0b0d3253a15baad2c11c7dec2 tests/mockserver/internal/sdk/models/components/insightsaiapprequestoptions.go: @@ -5794,7 +6114,7 @@ trackedFiles: tests/mockserver/internal/sdk/models/components/toolslistresponse.go: last_write_checksum: sha1:12c38931f0f2810e038e30a743845a97b876d03c tests/mockserver/internal/sdk/models/components/ugctype.go: - last_write_checksum: sha1:e0a05c163ffdcbacd03574a0adcc51ff1997dd59 + last_write_checksum: sha1:b2c7d1fbd1cbcb64e9ff92e786853554cea97772 tests/mockserver/internal/sdk/models/components/unpin.go: last_write_checksum: sha1:6bd1f6c9f451492810949a589b7cf0e07ede176d tests/mockserver/internal/sdk/models/components/updateannouncementrequest.go: @@ -5870,15 +6190,15 @@ trackedFiles: tests/mockserver/internal/sdk/models/operations/activity.go: last_write_checksum: sha1:5957ce406e3a70449e7168b90a96ab29661834ed tests/mockserver/internal/sdk/models/operations/addcollectionitems.go: - last_write_checksum: sha1:5f735957943d7e79366d6353d6c48fc273e6849a + last_write_checksum: sha1:6b24917028ee62ef0a79e353e689d11d1d5fd7f0 tests/mockserver/internal/sdk/models/operations/addverificationreminder.go: - last_write_checksum: sha1:cbef6f30affe579220a476c72c1397d6884cf54b + last_write_checksum: sha1:cd6a0cbf098c64d2873723c6db34d4d104aafee4 tests/mockserver/internal/sdk/models/operations/adminsearch.go: - last_write_checksum: sha1:e2b90fa98367a43a19d1ade415205864c3f2bd54 + last_write_checksum: sha1:8349967c39c2200f8b798379f9d601234dd0ea08 tests/mockserver/internal/sdk/models/operations/autocomplete.go: - last_write_checksum: sha1:649c6bfe21648ef99fadebb2420f752d703037d0 + last_write_checksum: sha1:242f4ac0044ef328043fc3a5d0effdeccb7f291f tests/mockserver/internal/sdk/models/operations/chat.go: - last_write_checksum: sha1:dcde2580dd70d8830c68159f2137f98be67033f6 + last_write_checksum: sha1:f2f55f4fecbef27cf1e00a589d3cea6d95982523 tests/mockserver/internal/sdk/models/operations/chatstream.go: last_write_checksum: sha1:b299a7da20b4ecf28e85b669de479778ed917ef1 tests/mockserver/internal/sdk/models/operations/createandstreamrun.go: @@ -5886,13 +6206,13 @@ trackedFiles: tests/mockserver/internal/sdk/models/operations/createandwaitrun.go: last_write_checksum: sha1:8d070245a42135fc34df714fce8d7d6df72edbd5 tests/mockserver/internal/sdk/models/operations/createannouncement.go: - last_write_checksum: sha1:3530ce01b1389b908fd7c6bfe04ffffa73b1ab1d + last_write_checksum: sha1:a035aac91237a6d6285af28fb8d68545589655b9 tests/mockserver/internal/sdk/models/operations/createanswer.go: - last_write_checksum: sha1:4461cb52022fe25f506bcabc62528b91e2c2d094 + last_write_checksum: sha1:7bac56604ac9dbbdd2c759c81acf67e873e4bd56 tests/mockserver/internal/sdk/models/operations/createauthtoken.go: last_write_checksum: sha1:38490a95b3433ee0a6ef325641981976e847c1af tests/mockserver/internal/sdk/models/operations/createcollection.go: - last_write_checksum: sha1:42466e9f0cf3ab70bb8414e523dd644c5f503256 + last_write_checksum: sha1:e0056a37231832f11558b9fe7d3b658bcfb900b9 tests/mockserver/internal/sdk/models/operations/createfindingsexport.go: last_write_checksum: sha1:825e1e9c17e00b8f29056902188e711dbe285d48 tests/mockserver/internal/sdk/models/operations/createpolicy.go: @@ -5900,25 +6220,25 @@ trackedFiles: tests/mockserver/internal/sdk/models/operations/createreport.go: last_write_checksum: sha1:b9c82a7632c995986f191d03c466420a345d0d42 tests/mockserver/internal/sdk/models/operations/createshortcut.go: - last_write_checksum: sha1:5dc130b4ba82965511de0ae7e86dd17ef7d967d5 + last_write_checksum: sha1:98ff02e8657bc6dcc49ef54c81fd322094b60d29 tests/mockserver/internal/sdk/models/operations/deleteallchats.go: - last_write_checksum: sha1:7ea7cf3376fe341579815d112b6499f080d04fc1 + last_write_checksum: sha1:a3e27dba3ff434ac40651d103f2585b541a3a061 tests/mockserver/internal/sdk/models/operations/deleteannouncement.go: - last_write_checksum: sha1:92f9d7be4c575d757f38e41836426e30e88158c0 + last_write_checksum: sha1:2a26722569463faa2b52c1642f1f5915ac0dae88 tests/mockserver/internal/sdk/models/operations/deleteanswer.go: - last_write_checksum: sha1:54b14cb71f8e46690b84ae7fe5d1632555731be5 + last_write_checksum: sha1:345a8fd35229943057730308e473f44f134d1cd3 tests/mockserver/internal/sdk/models/operations/deletechatfiles.go: - last_write_checksum: sha1:e7f7be6fe84f26aef1ca139d86a1e22d6f8af4c8 + last_write_checksum: sha1:506173bfe099edeb1c4f0954762015bafca2dc18 tests/mockserver/internal/sdk/models/operations/deletechats.go: - last_write_checksum: sha1:a402bfb8ec5e0914fb0695bd0bb1ecd3f5df2cc0 + last_write_checksum: sha1:9c694319cc3e3b220d9fbabbac8060fe4377993f tests/mockserver/internal/sdk/models/operations/deletecollection.go: - last_write_checksum: sha1:3ef03868f2aab829be605dba1e1250f198036127 + last_write_checksum: sha1:eb724e5b7b71ff8b6b79e99b3a8e9bb88c12f1d5 tests/mockserver/internal/sdk/models/operations/deletecollectionitem.go: - last_write_checksum: sha1:89ccaa80ae6b857f57ad2ee1ca15a7810f254d4e + last_write_checksum: sha1:ce58b49a61bb08f2a383f020137dfbeb682c7186 tests/mockserver/internal/sdk/models/operations/deletefindingsexport.go: last_write_checksum: sha1:75f0c5cb8e9465c8e248692de923523cdcba2761 tests/mockserver/internal/sdk/models/operations/deleteshortcut.go: - last_write_checksum: sha1:1e5db1ae20ea804ead16a7ab081ee453fcbea5a5 + last_write_checksum: sha1:843c8276cc4bf518266362585ea810b2e56c015e tests/mockserver/internal/sdk/models/operations/downloadfindingsexport.go: last_write_checksum: sha1:32282301f13c2e740139de75b2efb2c0413ca8e9 tests/mockserver/internal/sdk/models/operations/downloadpolicycsv.go: @@ -5926,41 +6246,41 @@ trackedFiles: tests/mockserver/internal/sdk/models/operations/downloadreportcsv.go: last_write_checksum: sha1:5be47a665f15ebd67c3ccb0be070936ac3f0a04b tests/mockserver/internal/sdk/models/operations/editanswer.go: - last_write_checksum: sha1:46d0995defdc7c39736bf5c8285e79f0e598f762 + last_write_checksum: sha1:6319063f92d2532ab663554171253c25f7b0f865 tests/mockserver/internal/sdk/models/operations/editcollection.go: - last_write_checksum: sha1:74d0cd186696b3574389f891f8089b406efab145 + last_write_checksum: sha1:f728d0af16fe57defc5a1e229a125e7fcab675b0 tests/mockserver/internal/sdk/models/operations/editcollectionitem.go: - last_write_checksum: sha1:fae911cee133540a2388479d532a5add1012b579 + last_write_checksum: sha1:d31194f3dd387014f598e8fa830af8809cf90e87 tests/mockserver/internal/sdk/models/operations/editpin.go: - last_write_checksum: sha1:893eb168d3505744d28a40186f2383a15504bba7 + last_write_checksum: sha1:68f0bedad3f1292e88176f78c4a3feaaa72636a5 tests/mockserver/internal/sdk/models/operations/feed.go: - last_write_checksum: sha1:583c3f65f15eb020e9091e7a09f059d6dbfecfb1 + last_write_checksum: sha1:5cc00b3895c2391dab6e7706a97903ed226c8f10 tests/mockserver/internal/sdk/models/operations/feedback.go: last_write_checksum: sha1:7d5a51aed8eacae15096b90250b2a35f647b45ac tests/mockserver/internal/sdk/models/operations/getagent.go: - last_write_checksum: sha1:d891bc90f4d81a0977f6cedee571685977d20487 + last_write_checksum: sha1:97fa8b77eab495bb56cda7e91667fd77d8567faa tests/mockserver/internal/sdk/models/operations/getagentschemas.go: - last_write_checksum: sha1:2f4625bd8c585549e768400f1b867163e42632e7 + last_write_checksum: sha1:2c2ca4842ec6e43e2b0fe486c273600ea369c3e1 tests/mockserver/internal/sdk/models/operations/getanswer.go: - last_write_checksum: sha1:0b237b13fc7986d332548e4be8573e9a6fdc1cca + last_write_checksum: sha1:464649f75bf44047247059576b829e2fe409815d tests/mockserver/internal/sdk/models/operations/getchat.go: - last_write_checksum: sha1:0bd97b5e18fd81ba0011952477a790bc724b88ce + last_write_checksum: sha1:830d4df2089c82c236e71784eb380eb58c1e2ec0 tests/mockserver/internal/sdk/models/operations/getchatapplication.go: - last_write_checksum: sha1:66051d825c1fbfe2bfc12583b8df8ab26b5d724d + last_write_checksum: sha1:8f6f58e46b6e1ac9a5172dfdc09f28446335dd25 tests/mockserver/internal/sdk/models/operations/getchatfiles.go: - last_write_checksum: sha1:a182a409432a7c27b2264f8502ceef742a2a52c8 + last_write_checksum: sha1:b9331fcb429d8bb22487234f7fa3627ee91b21f9 tests/mockserver/internal/sdk/models/operations/getcollection.go: - last_write_checksum: sha1:a01d4b745af6515d193d31a0204f0472cd183630 + last_write_checksum: sha1:758de3276a51cb9ef5e2bc09d8e689a95ff4fc53 tests/mockserver/internal/sdk/models/operations/getdocpermissions.go: - last_write_checksum: sha1:59dc60d6382711186c4110d6d62b94f49ec68c5e + last_write_checksum: sha1:dfd7bfff0ab9672ecfed72ca75845eeb6e1572b3 tests/mockserver/internal/sdk/models/operations/getdocuments.go: - last_write_checksum: sha1:1fe33ac5dd621e8a8b6e0441903db5d1bc3b11da + last_write_checksum: sha1:d4f23739c982a434827c5e540cb10b8e4ad942a5 tests/mockserver/internal/sdk/models/operations/getdocumentsbyfacets.go: - last_write_checksum: sha1:115ab3a64f7cff5fba836cb267fd56745452f3f8 + last_write_checksum: sha1:d4bf58f85d349c021ec670d2a7fc308e13c64a11 tests/mockserver/internal/sdk/models/operations/getdocvisibility.go: last_write_checksum: sha1:5402b1db287c42416c4f4aea7768be3d562f42c9 tests/mockserver/internal/sdk/models/operations/getpin.go: - last_write_checksum: sha1:c176f67fa51f2cfa0a0ef0be9a5785f97250ad44 + last_write_checksum: sha1:7bf799aefdcb8165fe3fe2d5a756a0fa7b2251dc tests/mockserver/internal/sdk/models/operations/getpolicy.go: last_write_checksum: sha1:8d4c18ff0db3e28e0de5c1d04c0eddb5f02692e7 tests/mockserver/internal/sdk/models/operations/getreportstatus.go: @@ -5968,33 +6288,33 @@ trackedFiles: tests/mockserver/internal/sdk/models/operations/getrestapiv1toolslist.go: last_write_checksum: sha1:4b333486980e930369ed4c804a7a82da12af3985 tests/mockserver/internal/sdk/models/operations/getshortcut.go: - last_write_checksum: sha1:f1ba65a8edb67c47a016d7b108dd67785f8df0fe + last_write_checksum: sha1:9d3a3758b295b8ee5b1bcc3f433ab0fe9a663644 tests/mockserver/internal/sdk/models/operations/insights.go: - last_write_checksum: sha1:5f35bf67a5566a0ba41a5d5f88cb24bf94b59de5 + last_write_checksum: sha1:3091cfd7f0f9ad34caa7ba644bd79bfcbf009f6b tests/mockserver/internal/sdk/models/operations/listanswers.go: - last_write_checksum: sha1:416e2ddaa59c4c7b66955d90e353c5c3c08b4167 + last_write_checksum: sha1:4177467d63a522673e6fc55099bca7eb4485c888 tests/mockserver/internal/sdk/models/operations/listchats.go: - last_write_checksum: sha1:0ff998c4605383851afeb240aa653ea365504a71 + last_write_checksum: sha1:2c15c1ab202e82f06527529f4aed2ae981bcc18e tests/mockserver/internal/sdk/models/operations/listcollections.go: - last_write_checksum: sha1:396e087a2d1cc1f7c145710cfc2e33fc2a88e4eb + last_write_checksum: sha1:d260f925936fb9de661a06ec411a5d875d59b97f tests/mockserver/internal/sdk/models/operations/listentities.go: - last_write_checksum: sha1:19072515fe93b882cf60fa58b80ffa3c70bf7f84 + last_write_checksum: sha1:466d941106775a6674cca3ae6f07f0f1f41a9a77 tests/mockserver/internal/sdk/models/operations/listfindingsexports.go: last_write_checksum: sha1:bc380b07b5659cc6bb63d4d1c56da32ded5d5cfb tests/mockserver/internal/sdk/models/operations/listpins.go: - last_write_checksum: sha1:62d707a3bb796e9282c80b5c6f495aa12ea9bb68 + last_write_checksum: sha1:0f78c07c1ad4bce0694e9a460d054472a45d33f2 tests/mockserver/internal/sdk/models/operations/listpolicies.go: last_write_checksum: sha1:873e036f6e3166351de3868799fda4c7e4e6f23b tests/mockserver/internal/sdk/models/operations/listshortcuts.go: - last_write_checksum: sha1:df3a33271a40fc4eeac29b522d472e1ca932bb51 + last_write_checksum: sha1:b82eb9565758c5f1f4664c132869a41ff3b5c214 tests/mockserver/internal/sdk/models/operations/listverifications.go: - last_write_checksum: sha1:7ce42277a2833bf83efb52e386998abb6425132b + last_write_checksum: sha1:4b7f74c8948528b2687a834a7ade6fdc629db31c tests/mockserver/internal/sdk/models/operations/messages.go: - last_write_checksum: sha1:bd5570eaa4111c14f849c3144300433538a0845f + last_write_checksum: sha1:6f6eeb2807ea13c66d3600caf246e3ae6d2c1e99 tests/mockserver/internal/sdk/models/operations/people.go: - last_write_checksum: sha1:5a014ee7706adc6db3e3e5ceab65539315faff31 + last_write_checksum: sha1:5c9b08af447b7e58258a9c20fdd02ccadaa54895 tests/mockserver/internal/sdk/models/operations/pin.go: - last_write_checksum: sha1:44ea6e779637e05626146f3a3e000b39871bd8ca + last_write_checksum: sha1:5248f738207e7e99637a538c31c57d93394a588c tests/mockserver/internal/sdk/models/operations/postapiindexv1adddatasource.go: last_write_checksum: sha1:2f82dc427027cdb45f8fcf8fa6454e28599233aa tests/mockserver/internal/sdk/models/operations/postapiindexv1betausers.go: @@ -6072,31 +6392,31 @@ trackedFiles: tests/mockserver/internal/sdk/models/operations/postrestapiv1toolscall.go: last_write_checksum: sha1:a598e25aef310bd7c8c7c37987899e6f88e918f9 tests/mockserver/internal/sdk/models/operations/recommendations.go: - last_write_checksum: sha1:038b9dbb0057a5df6c6fb4d8625fb8bcbb1e6e6a + last_write_checksum: sha1:6ae07252753671a40f928d93b959ea0403154494 tests/mockserver/internal/sdk/models/operations/search.go: - last_write_checksum: sha1:6bf4ec701c188fb195525550a201a0a0e2b09750 + last_write_checksum: sha1:8ebd0389fc5b227f30ce9e4ff19b12516c4b5329 tests/mockserver/internal/sdk/models/operations/searchagents.go: last_write_checksum: sha1:15a0051b4288ddfec731e7198c1561ceb4187faf tests/mockserver/internal/sdk/models/operations/setdocvisibility.go: last_write_checksum: sha1:af755e76cbc165a8f9282ecbb67ba09d32ac9e22 tests/mockserver/internal/sdk/models/operations/summarize.go: - last_write_checksum: sha1:ddde2cc76030dd5d239b5c19e41ea2b264205e8c + last_write_checksum: sha1:e23c22ddcc5ffa4d3201ff38dee77bf305c1b156 tests/mockserver/internal/sdk/models/operations/unpin.go: - last_write_checksum: sha1:605fd15abbc6cffae0bf369831ca390f85db4cce + last_write_checksum: sha1:ebc6723ce70f20e4847d322b1f63ab297b7b4d39 tests/mockserver/internal/sdk/models/operations/updateannouncement.go: - last_write_checksum: sha1:f09b2db0a0ca4fcdaa5d2812b360fc1f287bdd3d + last_write_checksum: sha1:219c6a8e147028e49185ebfe1488b8efe1e5f4a3 tests/mockserver/internal/sdk/models/operations/updatepolicy.go: last_write_checksum: sha1:555e1077b891a4d7a21f275bcffe983b7fff9120 tests/mockserver/internal/sdk/models/operations/updateshortcut.go: - last_write_checksum: sha1:a281706f648c15c16513e06ad582a05e27d7a94c + last_write_checksum: sha1:f9689073485924ff89de0d476d3bd0ea56b73501 tests/mockserver/internal/sdk/models/operations/uploadchatfiles.go: - last_write_checksum: sha1:a9700d5dd59c4c9e8dfacda1ebe9feeed653c54e + last_write_checksum: sha1:f1c44bb376adee3854955832ceff513124324a3b tests/mockserver/internal/sdk/models/operations/verify.go: - last_write_checksum: sha1:312f2afd842757b48d7a741d9c5e74549f737a51 + last_write_checksum: sha1:f20f8fd1bbf3169e0e4516595d7971e5cae03951 tests/mockserver/internal/sdk/models/sdkerrors/collectionerror.go: last_write_checksum: sha1:a8ce08145cf00a84487714f875ba1d3a8d84be1d tests/mockserver/internal/sdk/models/sdkerrors/gleandataerror.go: - last_write_checksum: sha1:8b2cb972da36ace2356aac3c81b133626315fd6c + last_write_checksum: sha1:ee697c8e2807f2b86c3de73bcbc013bbaf4ee2e9 tests/mockserver/internal/sdk/types/bigint.go: last_write_checksum: sha1:49b004005d0461fb04b846eca062b070b0360b31 tests/mockserver/internal/sdk/types/date.go: @@ -6110,7 +6430,7 @@ trackedFiles: tests/mockserver/internal/sdk/types/pointers.go: last_write_checksum: sha1:fc2275ea006257ba9ba4ff6f2a2cdb6205371eef tests/mockserver/internal/sdk/utils/json.go: - last_write_checksum: sha1:5608b7911537cefb829eadfd5df85f43d0918a1d + last_write_checksum: sha1:6c771a2a3442f04ef7f925fc37b3e16655cd6ab4 tests/mockserver/internal/sdk/utils/reflect.go: last_write_checksum: sha1:2e555f970ae33dd41130199d1b87c9864b485fdf tests/mockserver/internal/sdk/utils/sort.go: @@ -6173,12 +6493,12 @@ trackedFiles: pristine_git_object: 6be5e6a77a5918ec1c069bd0b89b76c08ad7dfad tests/test_client_documents.py: id: e41c035a85b3 - last_write_checksum: sha1:37e765a7adddebc975d63c541e791ab3af5ae23d - pristine_git_object: da0882b216dde017669aa0b60f9e442ba41481ab + last_write_checksum: sha1:d29128c0414195ef128ee8a28f192332ebccd46f + pristine_git_object: 96ebd8a4c7eb1f304df1ddcc9c3f8f61ef40445a tests/test_client_shortcuts.py: id: 9a1252d16102 - last_write_checksum: sha1:0f6503db3a78347b80bf55f0d6022df4e3e8b161 - pristine_git_object: 6530e65fbc1b97004c0a01e83648652ff99b926b + last_write_checksum: sha1:e079d1b8357780da423fe68f38a5c4d88724fafe + pristine_git_object: 1b3a5a00ba2162dc14a37110a6a2f3dd960a8c5c tests/test_client_user.py: id: d0d9efc1996d last_write_checksum: sha1:8b01269dd6d5e482c28d14394f4745aae1be6c17 @@ -6233,8 +6553,8 @@ trackedFiles: pristine_git_object: c64882efb749dec916454d169b905964076b39e7 tests/test_pins.py: id: ca3f94cca4af - last_write_checksum: sha1:2a4484539a2cf42da7c5d92b1c7378a259029cc7 - pristine_git_object: 6f6cb1cf3636448de3c04963a4a8396a4cb69254 + last_write_checksum: sha1:4d9eb94936fb2e8431c731f9b2179d32ae7a7c46 + pristine_git_object: fae672bbb1ebffb6b22ce6260a47c02d62ede3fd tests/test_policies.py: id: 4a08836fb665 last_write_checksum: sha1:5a7a52568dc7f3b2c2f555eade996a746b680367 @@ -6249,8 +6569,8 @@ trackedFiles: pristine_git_object: df2944ebda36db652b2770dd1c23be83df90fc99 tests/test_summarize.py: id: a255d8a6f627 - last_write_checksum: sha1:4f50b660d414adea1d509dfc957eb74a12654ee4 - pristine_git_object: 63b4eb8541c2b110dab6dda746fef9ac074611f1 + last_write_checksum: sha1:54133b124c0940a3188a5f22c3705e89e04c0599 + pristine_git_object: 4752dda147dc1265028d19e0fadeb80528c82927 tests/test_tools.py: id: 70889bdf7321 last_write_checksum: sha1:3c0c220f8975b050c322f6475e95f7af4e65b995 @@ -7138,6 +7458,7 @@ generatedTests: updateshortcut: "2025-06-12T19:13:52-04:00" listfindingsexports: "2025-12-10T17:53:31Z" downloadfindingsexport: "2025-12-10T17:53:31Z" +releaseNotes: "## Python SDK Changes:\n* `glean.client.documents.retrieve()`: `request` **Changed** **Breaking** :warning:\n* `glean.client.shortcuts.retrieve()`: `request` **Changed** **Breaking** :warning:\n* `glean.client.pins.list()`: `request` **Changed** **Breaking** :warning:\n* `glean.client.documents.retrieve_by_facets()`: `request` **Changed** **Breaking** :warning:\n* `glean.client.chat.upload_files()`: `request.locale` **Added**\n* `glean.client.verification.verify()`: `request.locale` **Added**\n* `glean.client.answers.retrieve()`: `request.locale` **Added**\n* `glean.client.answers.list()`: `request.locale` **Added**\n* `glean.client.chat.create()`: `request.locale` **Added**\n* `glean.client.chat.delete_all()`: `request.locale` **Added**\n* `glean.client.chat.delete()`: `request.locale` **Added**\n* `glean.client.chat.retrieve()`: `request.locale` **Added**\n* `glean.client.chat.list()`: `request.locale` **Added**\n* `glean.client.messages.retrieve()`: \n * `request.locale` **Added**\n * `response.search_response.glean_data_error.federated_search_rate_limit_error` **Added**\n* `glean.client.announcements.create()`: `request.locale` **Added**\n* `glean.client.chat.retrieve_files()`: `request.locale` **Added**\n* `glean.client.chat.delete_files()`: `request.locale` **Added**\n* `glean.client.agents.retrieve()`: `request.locale` **Added**\n* `glean.client.agents.retrieve_schemas()`: `request.locale` **Added**\n* `glean.client.collections.add_items()`: `request.locale` **Added**\n* `glean.client.collections.create()`: `request.locale` **Added**\n* `glean.client.collections.delete()`: `request.locale` **Added**\n* `glean.client.collections.delete_item()`: `request.locale` **Added**\n* `glean.client.collections.update()`: `request.locale` **Added**\n* `glean.client.collections.update_item()`: `request.locale` **Added**\n* `glean.client.collections.retrieve()`: `request.locale` **Added**\n* `glean.client.collections.list()`: `request.locale` **Added**\n* `glean.client.documents.retrieve_permissions()`: `request.locale` **Added**\n* `glean.client.answers.delete()`: `request.locale` **Added**\n* `glean.client.answers.create()`: `request.locale` **Added**\n* `glean.client.answers.update()`: `request.locale` **Added**\n* `glean.client.documents.summarize()`: `request.locale` **Added**\n* `glean.client.chat.retrieve_application()`: `request.locale` **Added**\n* `glean.client.pins.update()`: `request.locale` **Added**\n* `glean.client.pins.retrieve()`: `request.locale` **Added**\n* `glean.client.announcements.update()`: `request.locale` **Added**\n* `glean.client.pins.create()`: `request.locale` **Added**\n* `glean.client.pins.remove()`: `request.locale` **Added**\n* `glean.client.search.query_as_admin()`: \n * `request.locale` **Added**\n * `response.glean_data_error.federated_search_rate_limit_error` **Added**\n * `error.federated_search_rate_limit_error` **Added**\n* `glean.client.search.autocomplete()`: \n * `request.locale` **Added**\n * `response.glean_data_error.federated_search_rate_limit_error` **Added**\n* `glean.client.search.retrieve_feed()`: `request.locale` **Added**\n* `glean.client.search.recommendations()`: \n * `request.locale` **Added**\n * `response.glean_data_error.federated_search_rate_limit_error` **Added**\n* `glean.client.search.query()`: \n * `request.locale` **Added**\n * `response.glean_data_error.federated_search_rate_limit_error` **Added**\n * `error.federated_search_rate_limit_error` **Added**\n* `glean.client.entities.list()`: `request.locale` **Added**\n* `glean.client.entities.read_people()`: `request.locale` **Added**\n* `glean.client.shortcuts.create()`: `request.locale` **Added**\n* `glean.client.shortcuts.delete()`: `request.locale` **Added**\n* `glean.client.announcements.delete()`: `request.locale` **Added**\n* `glean.client.shortcuts.list()`: `request.locale` **Added**\n* `glean.client.shortcuts.update()`: `request.locale` **Added**\n* `glean.client.verification.add_reminder()`: `request.locale` **Added**\n* `glean.client.verification.list()`: `request.locale` **Added**\n* `glean.client.insights.retrieve()`: `request.locale` **Added**\n* `glean.client.governance.data.policies.retrieve()`: `response.report.config.input_options.subset_doc_ids_to_scan` **Added**\n* `glean.client.governance.data.policies.update()`: \n * `request.config.input_options.subset_doc_ids_to_scan` **Added**\n* `glean.client.governance.data.policies.list()`: `response.reports.[].config.input_options.subset_doc_ids_to_scan` **Added**\n* `glean.client.governance.data.policies.create()`: \n * `request.config.input_options.subset_doc_ids_to_scan` **Added**\n * `response.report.config.input_options.subset_doc_ids_to_scan` **Added**\n* `glean.client.governance.data.reports.create()`: \n * `request.config.input_options.subset_doc_ids_to_scan` **Added**\n" generatedFiles: - .devcontainer/README.md - .devcontainer/devcontainer.json diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 5194a521..00ac7d6b 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -32,7 +32,7 @@ generation: generateNewTests: true skipResponseBodyAssertions: true python: - version: 0.11.27 + version: 0.11.28 additionalDependencies: dev: {} main: {} diff --git a/.speakeasy/glean-merged-spec.yaml b/.speakeasy/glean-merged-spec.yaml index f8520c95..0f84d9d0 100644 --- a/.speakeasy/glean-merged-spec.yaml +++ b/.speakeasy/glean-merged-spec.yaml @@ -2,7 +2,7 @@ openapi: 3.0.0 info: version: 0.9.0 title: Glean API - x-source-commit-sha: 17a84cfc3e3f0e0a3eec1792cf57a65f444d613e + x-source-commit-sha: a604bd819216fb7919e8d0b0bd69f5af33b5d2bd description: | # Introduction In addition to the data sources that Glean has built-in support for, Glean also provides a REST API that enables customers to put arbitrary content in the search index. This is useful, for example, for doing permissions-aware search over content in internal tools that reside on-prem as well as for searching over applications that Glean does not currently support first class. In addition these APIs allow the customer to push organization data (people info, organization structure etc) into Glean. @@ -22,7 +22,7 @@ info: These API clients provide type-safe, idiomatic interfaces for working with Glean IndexingAPIs in your language of choice. x-logo: url: https://app.glean.com/images/glean-text2.svg - x-open-api-commit-sha: 3bb1859df9ba2cff7a43d5b1c336bb826a766b4c + x-open-api-commit-sha: 62b05ceecaf04d28668647bb61969173aed8cbd9 x-speakeasy-name: 'Glean API' servers: - url: https://{instance}-be.glean.com @@ -101,7 +101,8 @@ paths: operationId: createannouncement x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -134,7 +135,8 @@ paths: operationId: deleteannouncement x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -163,7 +165,8 @@ paths: operationId: updateannouncement x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -196,7 +199,8 @@ paths: operationId: createanswer x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -229,7 +233,8 @@ paths: operationId: deleteanswer x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -258,7 +263,8 @@ paths: operationId: editanswer x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -291,7 +297,8 @@ paths: operationId: getanswer x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -325,7 +332,8 @@ paths: deprecated: true x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -347,6 +355,12 @@ paths: description: Not Authorized "429": description: Too Many Requests + x-glean-deprecated: + id: 4c0923bd-64c7-45b9-99a5-b36f2705e618 + introduced: "2026-01-21" + message: Answer boards have been removed and this endpoint no longer serves a purpose + removal: "2026-10-15" + x-speakeasy-deprecation-message: "Deprecated on 2026-01-21, removal scheduled for 2026-10-15: Answer boards have been removed and this endpoint no longer serves a purpose" x-speakeasy-name-override: list x-speakeasy-group: client.answers /rest/api/v1/createauthtoken: @@ -388,6 +402,7 @@ paths: x-visibility: Public x-codegen-request-body-name: payload parameters: + - $ref: "#/components/parameters/locale" - $ref: "#/components/parameters/timezoneOffset" requestBody: content: @@ -526,6 +541,7 @@ paths: x-visibility: Public x-codegen-request-body-name: payload parameters: + - $ref: "#/components/parameters/locale" - $ref: "#/components/parameters/timezoneOffset" responses: "200": @@ -548,6 +564,7 @@ paths: x-visibility: Public x-codegen-request-body-name: payload parameters: + - $ref: "#/components/parameters/locale" - $ref: "#/components/parameters/timezoneOffset" requestBody: content: @@ -579,6 +596,7 @@ paths: x-visibility: Public x-codegen-request-body-name: payload parameters: + - $ref: "#/components/parameters/locale" - $ref: "#/components/parameters/timezoneOffset" requestBody: content: @@ -614,6 +632,7 @@ paths: x-visibility: Public x-codegen-request-body-name: payload parameters: + - $ref: "#/components/parameters/locale" - $ref: "#/components/parameters/timezoneOffset" responses: "200": @@ -640,6 +659,7 @@ paths: x-visibility: Preview x-codegen-request-body-name: payload parameters: + - $ref: "#/components/parameters/locale" - $ref: "#/components/parameters/timezoneOffset" requestBody: content: @@ -672,6 +692,7 @@ paths: operationId: uploadchatfiles x-visibility: Public parameters: + - $ref: "#/components/parameters/locale" - $ref: "#/components/parameters/timezoneOffset" requestBody: required: true @@ -706,6 +727,7 @@ paths: operationId: getchatfiles x-visibility: Public parameters: + - $ref: "#/components/parameters/locale" - $ref: "#/components/parameters/timezoneOffset" requestBody: required: true @@ -740,6 +762,7 @@ paths: operationId: deletechatfiles x-visibility: Public parameters: + - $ref: "#/components/parameters/locale" - $ref: "#/components/parameters/timezoneOffset" requestBody: required: true @@ -769,6 +792,7 @@ paths: operationId: getAgent x-visibility: Preview parameters: + - $ref: "#/components/parameters/locale" - $ref: "#/components/parameters/timezoneOffset" - description: The ID of the agent. required: true @@ -808,6 +832,7 @@ paths: operationId: getAgentSchemas x-visibility: Preview parameters: + - $ref: "#/components/parameters/locale" - $ref: "#/components/parameters/timezoneOffset" - description: The ID of the agent. required: true @@ -993,7 +1018,8 @@ paths: operationId: addcollectionitems x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1026,7 +1052,8 @@ paths: operationId: createcollection x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1065,7 +1092,8 @@ paths: operationId: deletecollection x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1100,7 +1128,8 @@ paths: operationId: deletecollectionitem x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1135,7 +1164,8 @@ paths: operationId: editcollection x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1174,7 +1204,8 @@ paths: operationId: editcollectionitem x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1207,7 +1238,8 @@ paths: operationId: getcollection x-visibility: Preview x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1240,7 +1272,8 @@ paths: operationId: listcollections x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1273,7 +1306,8 @@ paths: operationId: getdocpermissions x-visibility: Preview x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1308,7 +1342,8 @@ paths: operationId: getdocuments x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1341,7 +1376,8 @@ paths: operationId: getdocumentsbyfacets x-visibility: Preview x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1374,7 +1410,8 @@ paths: operationId: insights x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1407,7 +1444,8 @@ paths: operationId: messages x-visibility: Preview x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1440,7 +1478,8 @@ paths: operationId: editpin x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1473,7 +1512,8 @@ paths: operationId: getpin x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1506,7 +1546,8 @@ paths: operationId: listpins x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1539,7 +1580,8 @@ paths: operationId: pin x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1572,7 +1614,8 @@ paths: operationId: unpin x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1603,7 +1646,8 @@ paths: operationId: adminsearch x-visibility: Preview x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1648,7 +1692,8 @@ paths: operationId: autocomplete x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1681,7 +1726,8 @@ paths: operationId: feed x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1716,7 +1762,8 @@ paths: operationId: recommendations x-visibility: Preview x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1755,7 +1802,8 @@ paths: operationId: search x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1802,7 +1850,8 @@ paths: operationId: listentities x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1835,7 +1884,8 @@ paths: operationId: people x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1868,7 +1918,8 @@ paths: operationId: createshortcut x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1901,7 +1952,8 @@ paths: operationId: deleteshortcut x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1930,7 +1982,8 @@ paths: operationId: getshortcut x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1963,7 +2016,8 @@ paths: operationId: listshortcuts x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1996,7 +2050,8 @@ paths: operationId: updateshortcut x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -2029,7 +2084,8 @@ paths: operationId: summarize x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -2062,7 +2118,8 @@ paths: operationId: addverificationreminder x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -2104,6 +2161,7 @@ paths: required: false schema: type: integer + - $ref: "#/components/parameters/locale" responses: "200": description: OK @@ -2128,7 +2186,8 @@ paths: operationId: verify x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -2229,7 +2288,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/IndexDocumentRequest" + $ref: '#/components/schemas/IndexDocumentRequest' required: true x-exportParamName: IndexDocumentRequest responses: @@ -2255,7 +2314,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/IndexDocumentsRequest" + $ref: '#/components/schemas/IndexDocumentsRequest' required: true x-exportParamName: IndexDocumentsRequest responses: @@ -2281,7 +2340,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/BulkIndexDocumentsRequest" + $ref: '#/components/schemas/BulkIndexDocumentsRequest' required: true x-exportParamName: BulkIndexDocumentsRequest responses: @@ -2305,7 +2364,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UpdatePermissionsRequest" + $ref: '#/components/schemas/UpdatePermissionsRequest' required: true x-exportParamName: UpdatePermissionsRequest responses: @@ -2342,7 +2401,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ProcessAllDocumentsRequest" + $ref: '#/components/schemas/ProcessAllDocumentsRequest' x-exportParamName: ProcessAllDocumentsRequest responses: "200": @@ -2365,7 +2424,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/DeleteDocumentRequest" + $ref: '#/components/schemas/DeleteDocumentRequest' required: true x-exportParamName: DeleteDocumentRequest responses: @@ -2389,7 +2448,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/IndexUserRequest" + $ref: '#/components/schemas/IndexUserRequest' required: true x-exportParamName: IndexUserRequest responses: @@ -2415,7 +2474,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/BulkIndexUsersRequest" + $ref: '#/components/schemas/BulkIndexUsersRequest' required: true x-exportParamName: BulkIndexUsersRequest responses: @@ -2439,7 +2498,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/IndexGroupRequest" + $ref: '#/components/schemas/IndexGroupRequest' required: true x-exportParamName: IndexGroupRequest responses: @@ -2465,7 +2524,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/BulkIndexGroupsRequest" + $ref: '#/components/schemas/BulkIndexGroupsRequest' required: true x-exportParamName: BulkIndexGroupsRequest responses: @@ -2489,7 +2548,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/IndexMembershipRequest" + $ref: '#/components/schemas/IndexMembershipRequest' required: true x-exportParamName: IndexMembershipRequest responses: @@ -2513,7 +2572,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/BulkIndexMembershipsRequest" + $ref: '#/components/schemas/BulkIndexMembershipsRequest' required: true x-exportParamName: BulkIndexMembershipsRequest responses: @@ -2538,7 +2597,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ProcessAllMembershipsRequest" + $ref: '#/components/schemas/ProcessAllMembershipsRequest' x-exportParamName: ProcessAllMembershipsRequest responses: "200": @@ -2561,7 +2620,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/DeleteUserRequest" + $ref: '#/components/schemas/DeleteUserRequest' required: true x-exportParamName: DeleteUserRequest responses: @@ -2587,7 +2646,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/DeleteGroupRequest" + $ref: '#/components/schemas/DeleteGroupRequest' required: true x-exportParamName: DeleteGroupRequest responses: @@ -2611,7 +2670,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/DeleteMembershipRequest" + $ref: '#/components/schemas/DeleteMembershipRequest' required: true x-exportParamName: DeleteMembershipRequest responses: @@ -2627,7 +2686,6 @@ paths: x-speakeasy-group: indexing.permissions /api/index/v1/debug/{datasource}/status: post: - x-beta: true summary: | Beta: Get datasource status description: | @@ -2649,16 +2707,16 @@ paths: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/DebugDatasourceStatusResponse" + $ref: '#/components/schemas/DebugDatasourceStatusResponse' "400": description: Bad Request "401": description: Not Authorized + x-beta: true x-speakeasy-name-override: status x-speakeasy-group: indexing.datasource /api/index/v1/debug/{datasource}/document: post: - x-beta: true summary: | Beta: Get document information description: | @@ -2678,7 +2736,7 @@ paths: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/DebugDocumentRequest" + $ref: '#/components/schemas/DebugDocumentRequest' required: true x-exportParamName: DebugDocumentRequest responses: @@ -2687,16 +2745,16 @@ paths: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/DebugDocumentResponse" + $ref: '#/components/schemas/DebugDocumentResponse' "400": description: Bad Request "401": description: Not Authorized + x-beta: true x-speakeasy-group: indexing.documents x-speakeasy-name-override: debug /api/index/v1/debug/{datasource}/documents: post: - x-beta: true summary: | Beta: Get information of a batch of documents description: | @@ -2716,7 +2774,7 @@ paths: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/DebugDocumentsRequest" + $ref: '#/components/schemas/DebugDocumentsRequest' required: true x-exportParamName: DebugDocumentsRequest responses: @@ -2725,16 +2783,16 @@ paths: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/DebugDocumentsResponse" + $ref: '#/components/schemas/DebugDocumentsResponse' "400": description: Bad Request "401": description: Not Authorized + x-beta: true x-speakeasy-group: indexing.documents x-speakeasy-name-override: debugMany /api/index/v1/debug/{datasource}/user: post: - x-beta: true summary: | Beta: Get user information description: | @@ -2754,7 +2812,7 @@ paths: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/DebugUserRequest" + $ref: '#/components/schemas/DebugUserRequest' required: true x-exportParamName: DebugUserRequest responses: @@ -2763,11 +2821,12 @@ paths: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/DebugUserResponse" + $ref: '#/components/schemas/DebugUserResponse' "400": description: Bad Request "401": description: Not Authorized + x-beta: true x-speakeasy-name-override: debug x-speakeasy-group: indexing.people /api/index/v1/checkdocumentaccess: @@ -2783,7 +2842,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CheckDocumentAccessRequest" + $ref: '#/components/schemas/CheckDocumentAccessRequest' required: true x-exportParamName: CheckDocumentAccessRequest responses: @@ -2792,7 +2851,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CheckDocumentAccessResponse" + $ref: '#/components/schemas/CheckDocumentAccessResponse' "400": description: Bad Request "401": @@ -2803,7 +2862,6 @@ paths: x-speakeasy-name-override: checkAccess /api/index/v1/getdocumentstatus: post: - deprecated: true summary: Get document upload and indexing status description: | Intended for debugging/validation. Fetches the current upload and indexing status of documents. @@ -2815,7 +2873,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetDocumentStatusRequest" + $ref: '#/components/schemas/GetDocumentStatusRequest' required: true x-exportParamName: GetDocumentStatusRequest responses: @@ -2824,18 +2882,18 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetDocumentStatusResponse" + $ref: '#/components/schemas/GetDocumentStatusResponse' "400": description: Bad Request "401": description: Not Authorized "429": description: Too Many Requests + deprecated: true x-speakeasy-group: indexing.documents x-speakeasy-name-override: status /api/index/v1/getdocumentcount: post: - deprecated: true summary: Get document count description: | Fetches document count for the specified custom datasource. @@ -2847,7 +2905,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetDocumentCountRequest" + $ref: '#/components/schemas/GetDocumentCountRequest' required: true x-exportParamName: GetDocumentCountRequest responses: @@ -2856,18 +2914,18 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetDocumentCountResponse" + $ref: '#/components/schemas/GetDocumentCountResponse' "400": description: Bad Request "401": description: Not Authorized "409": description: Conflict + deprecated: true x-speakeasy-group: indexing.documents x-speakeasy-name-override: count /api/index/v1/getusercount: post: - deprecated: true summary: Get user count description: | Fetches user count for the specified custom datasource. @@ -2879,7 +2937,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetUserCountRequest" + $ref: '#/components/schemas/GetUserCountRequest' required: true x-exportParamName: GetUserCountRequest responses: @@ -2888,13 +2946,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetUserCountResponse" + $ref: '#/components/schemas/GetUserCountResponse' "400": description: Bad Request "401": description: Not Authorized "409": description: Conflict + deprecated: true x-speakeasy-name-override: count x-speakeasy-group: indexing.people /api/index/v1/betausers: @@ -2907,7 +2966,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GreenlistUsersRequest" + $ref: '#/components/schemas/GreenlistUsersRequest' required: true x-exportParamName: GreenlistUsersRequest responses: @@ -2931,7 +2990,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CustomDatasourceConfig" + $ref: '#/components/schemas/CustomDatasourceConfig' required: true x-exportParamName: DatasourceConfig responses: @@ -2953,7 +3012,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetDatasourceConfigRequest" + $ref: '#/components/schemas/GetDatasourceConfigRequest' required: true x-exportParamName: GetDatasourceConfigRequest responses: @@ -2962,7 +3021,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CustomDatasourceConfig" + $ref: '#/components/schemas/CustomDatasourceConfig' "400": description: Bad Request "401": @@ -2983,7 +3042,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/RotateTokenResponse" + $ref: '#/components/schemas/RotateTokenResponse' "400": description: Bad Request "401": @@ -3000,7 +3059,7 @@ paths: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/IndexEmployeeRequest" + $ref: '#/components/schemas/IndexEmployeeRequest' required: true x-exportParamName: IndexEmployeeRequest responses: @@ -3024,7 +3083,7 @@ paths: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/BulkIndexEmployeesRequest" + $ref: '#/components/schemas/BulkIndexEmployeesRequest' required: true x-exportParamName: BulkIndexEmployeesRequest responses: @@ -3067,7 +3126,7 @@ paths: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/DeleteEmployeeRequest" + $ref: '#/components/schemas/DeleteEmployeeRequest' required: true x-exportParamName: DeleteEmployeeRequest responses: @@ -3091,7 +3150,7 @@ paths: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/IndexTeamRequest" + $ref: '#/components/schemas/IndexTeamRequest' required: true x-exportParamName: IndexTeamRequest responses: @@ -3115,7 +3174,7 @@ paths: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/DeleteTeamRequest" + $ref: '#/components/schemas/DeleteTeamRequest' required: true x-exportParamName: DeleteTeamRequest responses: @@ -3139,7 +3198,7 @@ paths: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/BulkIndexTeamsRequest" + $ref: '#/components/schemas/BulkIndexTeamsRequest' required: true x-exportParamName: BulkIndexTeamsRequest responses: @@ -3163,7 +3222,7 @@ paths: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/BulkIndexShortcutsRequest" + $ref: '#/components/schemas/BulkIndexShortcutsRequest' required: true x-exportParamName: BulkIndexShortcutsRequest responses: @@ -3187,7 +3246,7 @@ paths: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/UploadShortcutsRequest" + $ref: '#/components/schemas/UploadShortcutsRequest' required: true x-exportParamName: UploadShortcutsRequest responses: @@ -3203,10 +3262,9 @@ paths: x-speakeasy-group: indexing.shortcuts /rest/api/v1/governance/data/policies/{id}: get: - description: Fetches the specified policy version, or the latest if no version is provided. - summary: Gets specified policy operationId: getpolicy - x-visibility: Public + summary: Gets specified policy + description: Fetches the specified policy version, or the latest if no version is provided. tags: - Governance parameters: @@ -3229,17 +3287,18 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetDlpReportResponse" + $ref: '#/components/schemas/GetDlpReportResponse' "403": description: Permissions error "500": description: Internal error + x-visibility: Public x-speakeasy-group: client.governance.data.policies x-speakeasy-name-override: retrieve post: - description: Updates an existing policy. - summary: Updates an existing policy operationId: updatepolicy + summary: Updates an existing policy + description: Updates an existing policy. tags: - Governance parameters: @@ -3253,7 +3312,7 @@ paths: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/UpdateDlpReportRequest" + $ref: '#/components/schemas/UpdateDlpReportRequest' required: true responses: "200": @@ -3261,7 +3320,7 @@ paths: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/UpdateDlpReportResponse" + $ref: '#/components/schemas/UpdateDlpReportResponse' "403": description: Permissions error "500": @@ -3270,10 +3329,9 @@ paths: x-speakeasy-name-override: update /rest/api/v1/governance/data/policies: get: - description: Lists policies with filtering. - summary: Lists policies operationId: listpolicies - x-visibility: Public + summary: Lists policies + description: Lists policies with filtering. tags: - Governance parameters: @@ -3295,25 +3353,25 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ListDlpReportsResponse" + $ref: '#/components/schemas/ListDlpReportsResponse' "403": description: Permissions error "500": description: Internal error + x-visibility: Public x-speakeasy-group: client.governance.data.policies x-speakeasy-name-override: list post: - description: Creates a new policy with specified specifications and returns its id. - summary: Creates new policy operationId: createpolicy - x-visibility: Public + summary: Creates new policy + description: Creates a new policy with specified specifications and returns its id. tags: - Governance requestBody: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/CreateDlpReportRequest" + $ref: '#/components/schemas/CreateDlpReportRequest' required: true responses: "200": @@ -3321,19 +3379,19 @@ paths: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/CreateDlpReportResponse" + $ref: '#/components/schemas/CreateDlpReportResponse' "403": description: Permissions error "500": description: Internal error + x-visibility: Public x-speakeasy-group: client.governance.data.policies x-speakeasy-name-override: create /rest/api/v1/governance/data/policies/{id}/download: get: - description: Downloads CSV violations report for a specific policy id. This does not support continuous policies. - summary: Downloads violations CSV for policy operationId: downloadpolicycsv - x-visibility: Public + summary: Downloads violations CSV for policy + description: Downloads CSV violations report for a specific policy id. This does not support continuous policies. tags: - Governance parameters: @@ -3349,29 +3407,29 @@ paths: content: text/csv; charset=UTF-8: schema: - description: CSV of all the violations found for this policy. type: string + description: CSV of all the violations found for this policy. "400": description: Bad request error (e.g., continuous policies are not supported). "403": description: Permissions error "500": description: Internal error + x-visibility: Public x-speakeasy-group: client.governance.data.policies x-speakeasy-name-override: download /rest/api/v1/governance/data/reports: post: - description: Creates a new one-time report and executes its batch job. - summary: Creates new one-time report operationId: createreport - x-visibility: Public + summary: Creates new one-time report + description: Creates a new one-time report and executes its batch job. tags: - Governance requestBody: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/UpdateDlpConfigRequest" + $ref: '#/components/schemas/UpdateDlpConfigRequest' required: true responses: "200": @@ -3379,19 +3437,19 @@ paths: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/UpdateDlpConfigResponse" + $ref: '#/components/schemas/UpdateDlpConfigResponse' "403": description: Permissions error "500": description: Internal error + x-visibility: Public x-speakeasy-group: client.governance.data.reports x-speakeasy-name-override: create /rest/api/v1/governance/data/reports/{id}/download: get: - description: Downloads CSV violations report for a specific report id. - summary: Downloads violations CSV for report operationId: downloadreportcsv - x-visibility: Public + summary: Downloads violations CSV for report + description: Downloads CSV violations report for a specific report id. tags: - Governance parameters: @@ -3407,20 +3465,20 @@ paths: content: text/csv; charset=UTF-8: schema: - description: CSV of all the violations found for this report. type: string + description: CSV of all the violations found for this report. "403": description: Permissions error "500": description: Internal error + x-visibility: Public x-speakeasy-group: client.governance.data.reports x-speakeasy-name-override: download /rest/api/v1/governance/data/reports/{id}/status: get: - description: Fetches the status of the run corresponding to the report-id. - summary: Fetches report run status operationId: getreportstatus - x-visibility: Public + summary: Fetches report run status + description: Fetches the status of the run corresponding to the report-id. tags: - Governance parameters: @@ -3436,19 +3494,19 @@ paths: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/ReportStatusResponse" + $ref: '#/components/schemas/ReportStatusResponse' "403": description: Permissions error "500": description: Internal error + x-visibility: Public x-speakeasy-group: client.governance.data.reports x-speakeasy-name-override: status /rest/api/v1/governance/documents/visibilityoverrides: get: - description: Fetches the visibility override status of the documents passed. - summary: Fetches documents visibility operationId: getdocvisibility - x-visibility: Public + summary: Fetches documents visibility + description: Fetches the visibility override status of the documents passed. tags: - Governance parameters: @@ -3465,25 +3523,25 @@ paths: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/GetDocumentVisibilityOverridesResponse" + $ref: '#/components/schemas/GetDocumentVisibilityOverridesResponse' "403": description: Permissions error "500": description: Internal error + x-visibility: Public x-speakeasy-group: client.governance.documents.visibilityoverrides x-speakeasy-name-override: list post: - description: Sets the visibility-override state of the documents specified, effectively hiding or un-hiding documents. - summary: Hide or unhide docs operationId: setdocvisibility - x-visibility: Public + summary: Hide or unhide docs + description: Sets the visibility-override state of the documents specified, effectively hiding or un-hiding documents. tags: - Governance requestBody: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/UpdateDocumentVisibilityOverridesRequest" + $ref: '#/components/schemas/UpdateDocumentVisibilityOverridesRequest' required: true responses: "200": @@ -3491,26 +3549,26 @@ paths: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/UpdateDocumentVisibilityOverridesResponse" + $ref: '#/components/schemas/UpdateDocumentVisibilityOverridesResponse' "403": description: Permissions error "500": description: Internal error + x-visibility: Public x-speakeasy-group: client.governance.documents.visibilityoverrides x-speakeasy-name-override: create /rest/api/v1/governance/data/findings/exports: post: - description: Creates a new DLP findings export job. - summary: Creates findings export operationId: createfindingsexport - x-visibility: Private + summary: Creates findings export + description: Creates a new DLP findings export job. tags: - Governance requestBody: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/DlpExportFindingsRequest" + $ref: '#/components/schemas/DlpExportFindingsRequest' required: true responses: "200": @@ -3518,16 +3576,16 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ExportInfo" + $ref: '#/components/schemas/ExportInfo' "403": description: Permissions error "500": description: Internal error + x-visibility: Public get: - description: Lists all DLP findings exports. - summary: Lists findings exports operationId: listfindingsexports - x-visibility: Private + summary: Lists findings exports + description: Lists all DLP findings exports. tags: - Governance responses: @@ -3536,17 +3594,17 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ListDlpFindingsExportsResponse" + $ref: '#/components/schemas/ListDlpFindingsExportsResponse' "403": description: Permissions error "500": description: Internal error + x-visibility: Public /rest/api/v1/governance/data/findings/exports/{id}: get: - description: Downloads a DLP findings export as a CSV file. - summary: Downloads findings export operationId: downloadfindingsexport - x-visibility: Private + summary: Downloads findings export + description: Downloads a DLP findings export as a CSV file. tags: - Governance parameters: @@ -3562,17 +3620,17 @@ paths: content: text/csv; charset=UTF-8: schema: - description: CSV of all the exported findings. type: string + description: CSV of all the exported findings. "403": description: Permissions error "500": description: Internal error + x-visibility: Public delete: - description: Deletes a DLP findings export. - summary: Deletes findings export operationId: deletefindingsexport - x-visibility: Private + summary: Deletes findings export + description: Deletes a DLP findings export. tags: - Governance parameters: @@ -3590,6 +3648,7 @@ paths: description: Permissions error "500": description: Internal error + x-visibility: Public /rest/api/v1/chat#stream: post: tags: @@ -3776,6 +3835,14 @@ components: action: type: string description: The type of activity this represents. + x-enumDescriptions: + VIEW: Represents a visit to the given `url`. + EDIT: Represents an edit of the document represented by the `url`. + SEARCH: Represents a search performed at the given `url`. + COMMENT: Represents a comment on the document represented by the `url`. + CRAWL: Represents an explicit request to index the given `url` along with associated attributes in this payload. + HISTORICAL_SEARCH: Represents a search performed at the given `url` as indicated by the user's history. + HISTORICAL_VIEW: Represents a visit to the given `url` as indicated by the user's history. enum: - VIEW - EDIT @@ -4099,6 +4166,37 @@ components: event: type: string description: The action the user took within a Glean client with respect to the object referred to by the given `trackingToken`. + x-enumDescriptions: + CLICK: The object's primary link was clicked with the intent to view its full representation. Depending on the object type, this may imply an external navigation or navigating to a new page or view within the Glean app. + CONTAINER_CLICK: A link to the object's parent container (e.g. the folder in which it's located) was clicked. + COPY_LINK: The user copied a link to the primary link. + CREATE: The user creates a document. + DISMISS: The user dismissed the object such that it was hidden from view. + DOWNVOTE: The user gave feedback that the object was not useful. + EMAIL: The user attempted to send an email. + EXECUTE: The user executed the object (e.g. ran a workflow). + FILTER: The user applied a filter. + FIRST_TOKEN: The first token of a streaming response is received. + FOCUS_IN: The user clicked into an interactive element, e.g. the search box. + LAST_TOKEN: The final token of a streaming response is received. + MANUAL_FEEDBACK: The user submitted textual manual feedback regarding the object. + MANUAL_FEEDBACK_SIDE_BY_SIDE: The user submitted comparative feedback for multiple side-by-side implementations. + MARK_AS_READ: The user explicitly marked the content as read. + MESSAGE: The user attempted to send a message using their default messaing app. + MIDDLE_CLICK: The user middle clicked the object's primary link with the intent to open its full representation in a new tab. + PAGE_BLUR: The user puts a page out of focus but keeps it in the background. + PAGE_FOCUS: The user puts a page in focus, meaning it is the first to receive keyboard events. + PAGE_LEAVE: The user leaves a page and it is unloaded (by clicking a link, closing the tab/window, etc). + PREVIEW: The user clicked the object's inline preview affordance. + RIGHT_CLICK: The user right clicked the object's primary link. This may indicate an intent to open it in a new tab or copy it. + SECTION_CLICK: The user clicked a link to a subsection of the primary object. + SEEN: The user has likely seen the object (e.g. took action to make the object visible within the user's viewport). + SELECT: The user explicitly selected something, eg. a chat response variant they prefer. + SHARE: The user shared the object with another user. + SHOW_MORE: The user clicked the object's show more affordance. + UPVOTE: The user gave feedback that the object was useful. + VIEW: The object was visible within the user's viewport. + VISIBLE: The object was visible within the user's viewport. enum: - CLICK - CONTAINER_CLICK @@ -4318,6 +4416,12 @@ components: - LT - GT - NOT_EQUALS + x-enumDescriptions: + EQUALS: The value is equal to the specified value. + ID_EQUALS: The value is equal to the specified ID. + LT: The value is less than the specified value. + GT: The value is greater than the specified value. + NOT_EQUALS: The value is not equal to the specified value. example: EQUALS x-speakeasy-enum-descriptions: EQUALS: The value is equal to the specified value. @@ -4508,6 +4612,12 @@ components: items: type: string description: Hints for the response content. + x-enumDescriptions: + ALL_RESULT_COUNTS: Return result counts for each result set which has non-zero results, even when the request itself is limited to a subset. + FACET_RESULTS: Return only facet results. + QUERY_METADATA: Returns result counts for each result set which has non-zero results, as well as other information about the search such as suggested spelling corrections. + RESULTS: Return search result documents. + SPELLCHECK_METADATA: Return metadata pertaining to spellcheck results. enum: - ALL_RESULT_COUNTS - FACET_RESULTS @@ -4845,8 +4955,6 @@ components: format: date-time description: The team member's start date TeamEmail: - type: object - description: Information about a team's email properties: email: type: string @@ -4854,11 +4962,13 @@ components: description: An email address type: type: string - description: An enum of `PRIMARY`, `SECONDARY`, `ONCALL`, `OTHER` default: OTHER + description: An enum of `PRIMARY`, `SECONDARY`, `ONCALL`, `OTHER` + type: object required: - email - type + description: Information about a team's email CustomFieldValueStr: properties: strText: @@ -6010,6 +6120,8 @@ components: - TICKET - TRANSCRIPT - WITH + x-enumDescriptions: + CANONICAL: Canonical documents for the entity, such as overview docs, architecture docs elastic. x-speakeasy-enum-descriptions: CANONICAL: Canonical documents for the entity, such as overview docs, architecture docs elastic. associatedEntityId: @@ -6142,6 +6254,10 @@ components: prominence: type: string description: The level of visual distinction that should be given to a result. + x-enumDescriptions: + HERO: A high-confidence result that should feature prominently on the page. + PROMOTED: May not be the best result but should be given additional visual distinction. + STANDARD: Should not be distinct from any other results. enum: - HERO - PROMOTED @@ -6201,6 +6317,10 @@ components: type: string description: | The level of visual distinction that should be given to a result. + x-enumDescriptions: + HERO: A high-confidence result that should feature prominently on the page. + PROMOTED: May not be the best result but should be given additional visual distinction. + STANDARD: Should not be distinct from any other results. enum: - HERO - PROMOTED @@ -6498,6 +6618,11 @@ components: properties: type: type: string + x-enumDescriptions: + FULL_TIME: The person is a current full-time employee of the company. + CONTRACTOR: The person is a current contractor of the company. + NON_EMPLOYEE: The person object represents a non-human actor such as a service or admin account. + FORMER_EMPLOYEE: The person is a previous employee of the company. enum: - FULL_TIME - CONTRACTOR @@ -6676,6 +6801,13 @@ components: DocumentVisibility: type: string description: The level of visibility of the document as understood by our system. + x-enumDescriptions: + PRIVATE: Only one person is able to see the document. + SPECIFIC_PEOPLE_AND_GROUPS: Only specific people and/or groups can see the document. + DOMAIN_LINK: Anyone in the domain with the link can see the document. + DOMAIN_VISIBLE: Anyone in the domain can search for the document. + PUBLIC_LINK: Anyone with the link can see the document. + PUBLIC_VISIBLE: Anyone on the internet can search for the document. enum: - PRIVATE - SPECIFIC_PEOPLE_AND_GROUPS @@ -7167,6 +7299,12 @@ components: agent: type: string description: Name of the agent. + x-enumDescriptions: + DEFAULT: Integrates with your company's knowledge. This will soon be deprecated in favor of the FAST and ADVANCED `agent` values + GPT: Communicates directly with the LLM. This will soon be deprecated in favor of the FAST and ADVANCED `agent` values + UNIVERSAL: Uses both company and web knowledge. This will soon be deprecated in favor of the FAST and ADVANCED `agent` values + FAST: Uses an agent powered by the agentic engine that responds faster but may have lower quality results. Requires the agentic engine to be enabled in the deployment. + ADVANCED: Uses an agent powered by the agentic engine that thinks for longer and potentially makes more LLM calls to return higher quality results. Requires the agentic engine to be enabled in the deployment. enum: - DEFAULT - GPT @@ -7184,7 +7322,10 @@ components: mode: type: string description: Top level modes to run GleanChat in. - enum: + x-enumDescriptions: + DEFAULT: Used if no mode supplied. + QUICK: Deprecated. + enum: - DEFAULT - QUICK x-speakeasy-enum-descriptions: @@ -7554,6 +7695,16 @@ components: type: string default: CONTENT description: Semantically groups content of a certain type. It can be used for purposes such as differential UI treatment. USER authored messages should be of type CONTENT and do not need `messageType` specified. + x-enumDescriptions: + UPDATE: An intermediate state message for progress updates. + CONTENT: A user query or response message. + CONTEXT: A message providing context in addition to the user query. + DEBUG: A debug message. Strictly used internally. + DEBUG_EXTERNAL: A debug message to be used while debugging Action creation. + ERROR: A message that describes an error while processing the request. + HEADING: A heading message used to distinguish different sections of the holistic response. + WARNING: A warning message to be shown to the user. + SERVER_TOOL: A message used to for server-side tool auth/use, for request and response. enum: - UPDATE - CONTENT @@ -9025,6 +9176,9 @@ components: type: array items: $ref: "#/components/schemas/ErrorMessage" + federatedSearchRateLimitError: + type: boolean + description: Indicates the federated search results could not be fetched due to rate limiting. x-speakeasy-name-override: GleanDataError ResultsResponse: properties: @@ -9873,6 +10027,10 @@ components: SectionType: type: string description: Type of the section. This defines how the section should be interpreted and rendered in the digest. + x-enumDescriptions: + CHANNEL: A standard section for channel-based digests (e.g. from Slack, Teams). + MENTIONS: A dedicated section that surfaces user mentions (actionable, informative, or all). + TOPIC: A section driven by a generic topic, not tied to any specific channel or instance. enum: - CHANNEL - MENTIONS @@ -9884,6 +10042,9 @@ components: UpdateType: type: string description: Optional type classification for the update. + x-enumDescriptions: + ACTIONABLE: Updates that require user attention or action + INFORMATIVE: Updates that are purely informational enum: - ACTIONABLE - INFORMATIVE @@ -10033,6 +10194,7 @@ components: - SHORTCUTS_TYPE - WORKFLOWS_TYPE - PROMPT_TEMPLATES_TYPE + - PRISM_VIEWS_TYPE FavoriteInfo: type: object properties: @@ -10399,6 +10561,9 @@ components: type: string default: STANDARD description: The type of request being made. + x-enumDescriptions: + STANDARD: Used by default for all requests and satisfies all standard use cases for list requests. Limited to 10000 entities. + FULL_DIRECTORY: Used exclusively to return a comprehensive list of all people entities in the organization, typically for audit like purposes. The recommended approach is to sort by FIRST_NAME or LAST_NAME, and use pagination for large organizations. enum: - STANDARD - FULL_DIRECTORY @@ -10488,6 +10653,9 @@ components: - PEOPLE_WITHOUT_MANAGER includeTypes: description: The types of people entities to include in the response in addition to those returned by default. + x-enumDescriptions: + PEOPLE_WITHOUT_MANAGER: Returns all people without a manager apart from the requested IDs. + INVALID_ENTITIES: Includes invalid entities in the response if any of the requested IDs are invalid. type: array items: type: string @@ -10827,20 +10995,19 @@ components: description: The error message if applicable IndexDocumentRequest: type: object - description: Describes the request body of the /indexdocument API call properties: version: type: integer format: int64 description: Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. document: + $ref: '#/components/schemas/DocumentDefinition' description: Document being added/updated - $ref: "#/components/schemas/DocumentDefinition" required: - document + description: Describes the request body of the /indexdocument API call IndexDocumentsRequest: type: object - description: Describes the request body of the /indexdocuments API call properties: uploadId: type: string @@ -10849,16 +11016,16 @@ components: type: string description: Datasource of the documents documents: - description: Batch of documents being added/updated type: array items: - $ref: "#/components/schemas/DocumentDefinition" + $ref: '#/components/schemas/DocumentDefinition' + description: Batch of documents being added/updated required: - documents - datasource + description: Describes the request body of the /indexdocuments API call UpdatePermissionsRequest: type: object - description: Describes the request body of the /updatepermissions API call properties: datasource: type: string @@ -10873,30 +11040,30 @@ components: description: | The permalink for viewing the document. **Note: viewURL is a required field if id was not set when uploading the document.**' permissions: - $ref: "#/components/schemas/DocumentPermissionsDefinition" + $ref: '#/components/schemas/DocumentPermissionsDefinition' description: The permissions that define who can view this document in the search results. Please refer to [this](https://developers.glean.com/indexing/documents/permissions) for more details. required: - permissions - datasource + description: Describes the request body of the /updatepermissions API call GetDocumentCountRequest: type: object - description: Describes the request body of the /getdocumentcount API call properties: datasource: type: string description: Datasource name for which document count is needed. required: - datasource + description: Describes the request body of the /getdocumentcount API call GetDocumentCountResponse: type: object - description: Describes the response body of the /getdocumentcount API call properties: documentCount: type: integer description: Number of documents corresponding to the specified custom datasource. + description: Describes the response body of the /getdocumentcount API call GetDocumentStatusRequest: type: object - description: Describes the request body for /getdocumentstatus API call properties: datasource: type: string @@ -10911,9 +11078,9 @@ components: - datasource - objectType - docId + description: Describes the request body for /getdocumentstatus API call GetDocumentStatusResponse: type: object - description: Describes the response body of the /getdocumentstatus API call properties: uploadStatus: type: string @@ -10929,11 +11096,9 @@ components: type: integer format: int64 description: Time of last successful indexing, in epoch seconds + description: Describes the response body of the /getdocumentstatus API call BulkIndexRequest: type: object - description: Describes the request body of a bulk upload API call - required: - - uploadId properties: uploadId: type: string @@ -10947,68 +11112,70 @@ components: forceRestartUpload: type: boolean description: Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + required: + - uploadId + description: Describes the request body of a bulk upload API call BulkIndexTeamsRequest: type: object - description: Describes the request body of the /bulkindexteams API call allOf: - - $ref: "#/components/schemas/BulkIndexRequest" + - $ref: '#/components/schemas/BulkIndexRequest' - type: object properties: teams: - description: Batch of team information type: array items: - $ref: "#/components/schemas/TeamInfoDefinition" + $ref: '#/components/schemas/TeamInfoDefinition' + description: Batch of team information required: - teams + description: Describes the request body of the /bulkindexteams API call BulkIndexEmployeesRequest: type: object - description: Describes the request body of the /bulkindexemployees API call allOf: - - $ref: "#/components/schemas/BulkIndexRequest" + - $ref: '#/components/schemas/BulkIndexRequest' - type: object properties: employees: - description: Batch of employee information type: array items: - $ref: "#/components/schemas/EmployeeInfoDefinition" + $ref: '#/components/schemas/EmployeeInfoDefinition' + description: Batch of employee information disableStaleDataDeletionCheck: type: boolean description: True if older employee data needs to be force deleted after the upload completes. Defaults to older data being deleted only if the percentage of data being deleted is less than 20%. This must only be set when `isLastPage = true` required: - employees + description: Describes the request body of the /bulkindexemployees API call BulkIndexDocumentsRequest: type: object - description: Describes the request body of the /bulkindexdocuments API call allOf: - - $ref: "#/components/schemas/BulkIndexRequest" + - $ref: '#/components/schemas/BulkIndexRequest' - type: object properties: datasource: type: string description: Datasource of the documents documents: - description: Batch of documents for the datasource type: array items: - $ref: "#/components/schemas/DocumentDefinition" + $ref: '#/components/schemas/DocumentDefinition' + description: Batch of documents for the datasource disableStaleDocumentDeletionCheck: type: boolean description: True if older documents need to be force deleted after the upload completes. Defaults to older documents being deleted asynchronously. This must only be set when `isLastPage = true` required: - datasource - documents + description: Describes the request body of the /bulkindexdocuments API call ProcessAllDocumentsRequest: type: object - description: Describes the request body of the /processalldocuments API call properties: datasource: type: string description: If provided, process documents only for this custom datasource. Otherwise all uploaded documents are processed. + description: Describes the request body of the /processalldocuments API call DeleteDocumentRequest: type: object - description: Describes the request body of the /deletedocument API call properties: version: type: integer @@ -11027,9 +11194,9 @@ components: - datasource - id - objectType + description: Describes the request body of the /deletedocument API call IndexUserRequest: type: object - description: Describes the request body of the /indexuser API call properties: version: type: integer @@ -11039,30 +11206,30 @@ components: type: string description: The datasource for which the user is added user: + $ref: '#/components/schemas/DatasourceUserDefinition' description: The user to be added or updated - $ref: "#/components/schemas/DatasourceUserDefinition" required: - datasource - user + description: Describes the request body of the /indexuser API call GetUserCountRequest: type: object - description: Describes the request body of the /getusercount API call properties: datasource: type: string description: Datasource name for which user count is needed. required: - datasource + description: Describes the request body of the /getusercount API call GetUserCountResponse: type: object - description: Describes the response body of the /getusercount API call properties: userCount: type: integer description: Number of users corresponding to the specified custom datasource. + description: Describes the response body of the /getusercount API call BulkIndexUsersRequest: type: object - description: Describes the request body for the /bulkindexusers API call properties: uploadId: type: string @@ -11080,10 +11247,10 @@ components: type: string description: datasource of the users users: - description: batch of users for the datasource type: array items: - $ref: "#/components/schemas/DatasourceUserDefinition" + $ref: '#/components/schemas/DatasourceUserDefinition' + description: batch of users for the datasource disableStaleDataDeletionCheck: type: boolean description: True if older user data needs to be force deleted after the upload completes. Defaults to older data being deleted only if the percentage of data being deleted is less than a reasonable threshold. This must only be set when `isLastPage = true` @@ -11091,31 +11258,31 @@ components: - uploadId - datasource - users + description: Describes the request body for the /bulkindexusers API call GreenlistUsersRequest: type: object - description: Describes the request body of the /betausers API call properties: datasource: type: string description: Datasource which needs to be made visible to users specified in the `emails` field. emails: type: array - description: The emails of the beta users items: type: string format: email + description: The emails of the beta users required: - datasource - emails + description: Describes the request body of the /betausers API call DatasourceUserDefinition: type: object - description: describes a user in the datasource properties: email: type: string userId: - description: To be supplied if the user id in the datasource is not the email type: string + description: To be supplied if the user id in the datasource is not the email name: type: string isActive: @@ -11124,9 +11291,9 @@ components: required: - email - name + description: describes a user in the datasource IndexGroupRequest: type: object - description: Describes the request body of the /indexgroup API call properties: version: type: integer @@ -11136,14 +11303,14 @@ components: type: string description: The datasource for which the group is added group: + $ref: '#/components/schemas/DatasourceGroupDefinition' description: The group to be added or updated - $ref: "#/components/schemas/DatasourceGroupDefinition" required: - datasource - group + description: Describes the request body of the /indexgroup API call BulkIndexGroupsRequest: type: object - description: Describes the request body for the /bulkindexgroups API call properties: uploadId: type: string @@ -11161,10 +11328,10 @@ components: type: string description: datasource of the groups groups: - description: batch of groups for the datasource type: array items: - $ref: "#/components/schemas/DatasourceGroupDefinition" + $ref: '#/components/schemas/DatasourceGroupDefinition' + description: batch of groups for the datasource disableStaleDataDeletionCheck: type: boolean description: True if older group data needs to be force deleted after the upload completes. Defaults to older data being deleted only if the percentage of data being deleted is less than a reasonable threshold. This must only be set when `isLastPage = true` @@ -11172,18 +11339,18 @@ components: - uploadId - datasource - groups + description: Describes the request body for the /bulkindexgroups API call DatasourceGroupDefinition: type: object - description: describes a group in the datasource properties: name: type: string description: name of the group. Should be unique among all groups for the datasource, and cannot have spaces. required: - name + description: describes a group in the datasource IndexMembershipRequest: type: object - description: Describes the request body of the /indexmembership API call properties: version: type: integer @@ -11193,14 +11360,14 @@ components: type: string description: The datasource for which the membership is added membership: + $ref: '#/components/schemas/DatasourceMembershipDefinition' description: The membership to be added or updated - $ref: "#/components/schemas/DatasourceMembershipDefinition" required: - datasource - membership + description: Describes the request body of the /indexmembership API call BulkIndexMembershipsRequest: type: object - description: Describes the request body for the /bulkindexmemberships API call properties: uploadId: type: string @@ -11221,49 +11388,49 @@ components: type: string description: group who's memberships are specified memberships: - description: batch of memberships for the group type: array items: - $ref: "#/components/schemas/DatasourceBulkMembershipDefinition" + $ref: '#/components/schemas/DatasourceBulkMembershipDefinition' + description: batch of memberships for the group required: - uploadId - datasource - memberships + description: Describes the request body for the /bulkindexmemberships API call ProcessAllMembershipsRequest: type: object - description: Describes the request body of the /processallmemberships API call properties: datasource: type: string description: If provided, process group memberships only for this custom datasource. Otherwise all uploaded memberships are processed. + description: Describes the request body of the /processallmemberships API call DatasourceMembershipDefinition: type: object - description: describes the membership row of a group. Only one of memberUserId and memberGroupName can be specified. properties: groupName: - description: The group for which the membership is specified type: string + description: The group for which the membership is specified memberUserId: - description: If the member is a user, then the email or datasource id for the user type: string + description: If the member is a user, then the email or datasource id for the user memberGroupName: - description: If the member is a group, then the name of the member group type: string + description: If the member is a group, then the name of the member group required: - groupName + description: describes the membership row of a group. Only one of memberUserId and memberGroupName can be specified. DatasourceBulkMembershipDefinition: type: object - description: describes the membership row of a group in the bulk uploaded. Only one of memberUserId and memberGroupName can be specified. properties: memberUserId: - description: If the member is a user, then the email or datasource id for the user type: string + description: If the member is a user, then the email or datasource id for the user memberGroupName: - description: If the member is a group, then the name of the member group type: string + description: If the member is a group, then the name of the member group + description: describes the membership row of a group in the bulk uploaded. Only one of memberUserId and memberGroupName can be specified. DeleteUserRequest: type: object - description: Describes the request body of the /deleteuser API call properties: version: type: integer @@ -11273,14 +11440,14 @@ components: type: string description: The datasource for which the user is removed email: - description: The email of the user to be deleted type: string + description: The email of the user to be deleted required: - datasource - email + description: Describes the request body of the /deleteuser API call DeleteGroupRequest: type: object - description: Describes the request body of the /deletegroup API call properties: version: type: integer @@ -11290,14 +11457,14 @@ components: type: string description: The datasource for which the group is removed groupName: - description: the name of the group to be deleted type: string + description: the name of the group to be deleted required: - datasource - groupName + description: Describes the request body of the /deletegroup API call DeleteMembershipRequest: type: object - description: Describes the request body of the /deletemembership API call properties: version: type: integer @@ -11307,36 +11474,36 @@ components: type: string description: The datasource for which the membership is removed membership: + $ref: '#/components/schemas/DatasourceMembershipDefinition' description: the name of the membership to be deleted - $ref: "#/components/schemas/DatasourceMembershipDefinition" required: - datasource - membership + description: Describes the request body of the /deletemembership API call DeleteEmployeeRequest: type: object - description: Describes the request body of the /deleteemployee API call properties: version: type: integer format: int64 description: Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. employeeEmail: - description: The deleted employee's email type: string + description: The deleted employee's email required: - employeeEmail + description: Describes the request body of the /deleteemployee API call DeleteTeamRequest: type: object - description: Describes the request body of the /deleteteam API call properties: id: - description: The deleted team's id type: string + description: The deleted team's id required: - id + description: Describes the request body of the /deleteteam API call DocumentDefinition: type: object - description: Indexable document structure properties: title: type: string @@ -11367,16 +11534,16 @@ components: description: | The datasource specific id for the document. This field is case insensitive and should not be more than 200 characters in length. Note: id is a required field for datasources created after 1st March 2025 summary: - $ref: "#/components/schemas/ContentDefinition" + $ref: '#/components/schemas/ContentDefinition' body: - $ref: "#/components/schemas/ContentDefinition" + $ref: '#/components/schemas/ContentDefinition' author: - $ref: "#/components/schemas/UserReferenceDefinition" + $ref: '#/components/schemas/UserReferenceDefinition' owner: - $ref: "#/components/schemas/UserReferenceDefinition" + $ref: '#/components/schemas/UserReferenceDefinition' description: The current owner of the document, if not the author. permissions: - $ref: "#/components/schemas/DocumentPermissionsDefinition" + $ref: '#/components/schemas/DocumentPermissionsDefinition' description: The permissions that define who can view this document in the search results. Please refer to [this](https://developers.glean.com/indexing/documents/permissions) for more details. createdAt: type: integer @@ -11387,14 +11554,14 @@ components: format: int64 description: The last update time, in epoch seconds. updatedBy: - $ref: "#/components/schemas/UserReferenceDefinition" + $ref: '#/components/schemas/UserReferenceDefinition' tags: type: array items: type: string description: Labels associated with the document. interactions: - $ref: "#/components/schemas/DocumentInteractionsDefinition" + $ref: '#/components/schemas/DocumentInteractionsDefinition' status: type: string additionalUrls: @@ -11405,27 +11572,27 @@ components: comments: type: array items: - $ref: "#/components/schemas/CommentDefinition" + $ref: '#/components/schemas/CommentDefinition' description: Comments associated with the document. customProperties: type: array items: - $ref: "#/components/schemas/CustomProperty" + $ref: '#/components/schemas/CustomProperty' description: Additional metadata properties of the document. These can surface as [facets and operators](https://developers.glean.com/indexing/datasource/custom-properties/operators_and_facets). required: - datasource + description: Indexable document structure CommentDefinition: type: object - description: Describes a comment on a document properties: id: type: string description: The document specific id for the comment. This field is case insensitive and should not be more than 200 characters in length. author: - $ref: "#/components/schemas/UserReferenceDefinition" + $ref: '#/components/schemas/UserReferenceDefinition' description: The author of the comment. content: - $ref: "#/components/schemas/ContentDefinition" + $ref: '#/components/schemas/ContentDefinition' description: The content of the comment. createdAt: type: integer @@ -11436,13 +11603,13 @@ components: format: int64 description: The last updated time, in epoch seconds. updatedBy: - $ref: "#/components/schemas/UserReferenceDefinition" + $ref: '#/components/schemas/UserReferenceDefinition' description: The user who last updated the comment. required: - id + description: Describes a comment on a document ContentDefinition: type: object - description: Describes text content or base64 encoded binary content properties: mimeType: type: string @@ -11454,9 +11621,9 @@ components: description: base64 encoded binary content. Only one of textContent or binary content can be specified required: - mimeType + description: Describes text content or base64 encoded binary content UserReferenceDefinition: type: object - description: Describes how a user is referenced in a document. The user can be referenced by email or by a datasource specific id. properties: email: type: string @@ -11465,42 +11632,42 @@ components: description: some datasources refer to the user by the datasource user id in the document name: type: string + description: Describes how a user is referenced in a document. The user can be referenced by email or by a datasource specific id. PermissionsGroupIntersectionDefinition: type: object - description: describes a list of groups that are all required in a permissions constraint properties: requiredGroups: type: array items: type: string + description: describes a list of groups that are all required in a permissions constraint DocumentPermissionsDefinition: type: object - description: describes the access control details of the document properties: allowedUsers: - description: List of users who can view the document type: array items: - $ref: "#/components/schemas/UserReferenceDefinition" + $ref: '#/components/schemas/UserReferenceDefinition' + description: List of users who can view the document allowedGroups: - description: List of groups that can view the document type: array items: type: string + description: List of groups that can view the document allowedGroupIntersections: - description: List of allowed group intersections. This describes a permissions constraint of the form ((GroupA AND GroupB AND GroupC) OR (GroupX AND GroupY) OR ... type: array items: - $ref: "#/components/schemas/PermissionsGroupIntersectionDefinition" + $ref: '#/components/schemas/PermissionsGroupIntersectionDefinition' + description: List of allowed group intersections. This describes a permissions constraint of the form ((GroupA AND GroupB AND GroupC) OR (GroupX AND GroupY) OR ... allowAnonymousAccess: - description: If true, then any Glean user can view the document type: boolean + description: If true, then any Glean user can view the document allowAllDatasourceUsersAccess: - description: If true, then any user who has an account in the datasource can view the document. type: boolean + description: If true, then any user who has an account in the datasource can view the document. + description: describes the access control details of the document DocumentInteractionsDefinition: type: object - description: describes the interactions on the document properties: numViews: type: integer @@ -11508,9 +11675,9 @@ components: type: integer numComments: type: integer + description: describes the interactions on the document CheckDocumentAccessRequest: type: object - description: Describes the request body of the /checkdocumentaccess API call properties: datasource: type: string @@ -11529,44 +11696,44 @@ components: - objectType - docId - userEmail + description: Describes the request body of the /checkdocumentaccess API call CheckDocumentAccessResponse: type: object - description: Describes the response body of the /checkdocumentaccess API call properties: hasAccess: type: boolean description: If true, user has access to document for search + description: Describes the response body of the /checkdocumentaccess API call CustomProperty: type: object - description: Describes the custom properties of the object. properties: name: type: string value: description: Must either be a string or an array of strings. An integer, boolean, etc. is not valid. When OpenAPI Generator supports `oneOf`, we can semantically enforce this. + description: Describes the custom properties of the object. DatasourceConfig: - $ref: "#/components/schemas/SharedDatasourceConfig" + $ref: '#/components/schemas/SharedDatasourceConfig' GetDatasourceConfigRequest: type: object - description: Describes the request body of the /getdatasourceconfig API call properties: datasource: type: string description: Datasource name for which config is needed. required: - datasource + description: Describes the request body of the /getdatasourceconfig API call DatasourceConfigList: - description: List of datasource configurations. - required: - - datasourceConfig properties: datasourceConfig: type: array - description: Datasource configuration. items: - $ref: "#/components/schemas/SharedDatasourceConfig" + $ref: '#/components/schemas/SharedDatasourceConfig' + description: Datasource configuration. + required: + - datasourceConfig + description: List of datasource configurations. RotateTokenResponse: - description: Describes the response body of the /rotatetoken API call properties: rawSecret: type: string @@ -11579,31 +11746,31 @@ components: type: integer format: int64 description: Refers to the time period in minutes before which this token needs to be rotated. It is required to rotate the token within the specified `rotationPeriodMinutes` after each `/rotatetoken` call, otherwise the tokens would expire. Note that the token would still expire at `expiresAt` timestamp provided during token creation even if the token is being regularly rotated. `rotationPeriodMinutes` property is inherited from the parent token being rotated + description: Describes the response body of the /rotatetoken API call IndexEmployeeRequest: type: object - description: Info about an employee and optional version for that info properties: employee: + $ref: '#/components/schemas/EmployeeInfoDefinition' description: Info about the employee - $ref: "#/components/schemas/EmployeeInfoDefinition" version: - description: Version number for the employee object. If absent or 0 then no version checks are done type: integer format: int64 + description: Version number for the employee object. If absent or 0 then no version checks are done required: - employee + description: Info about an employee and optional version for that info IndexEmployeeListRequest: type: object - description: Describes the request body of the /indexemployeelist API call properties: employees: - description: List of employee info and version. type: array items: - $ref: "#/components/schemas/IndexEmployeeRequest" + $ref: '#/components/schemas/IndexEmployeeRequest' + description: List of employee info and version. + description: Describes the request body of the /indexemployeelist API call SocialNetworkDefinition: type: object - description: Employee's social network profile properties: name: type: string @@ -11614,15 +11781,18 @@ components: profileUrl: type: string description: Link to profile. + description: Employee's social network profile AdditionalFieldDefinition: type: object - description: Additional information about the employee or team. properties: key: type: string description: Key to reference this field, e.g. "languages". Note that the key should be all lowercase alphabetic characters with no numbers, spaces, hyphens or underscores. value: type: array + items: + type: object + description: Either a string or HypertextField. When OpenAPI Generator supports oneOf, we can semantically enforce this in the docs. description: | List of type string or HypertextField. @@ -11639,9 +11809,7 @@ components: **Note**: If using the Python SDK to pass in a list of strings, the value may need to be a list of dictionaries. In that case, the key in that dictionary will be ignored. Example: ```"languages": [{"lang":"English","lang":"Spanish",...}]```. In this case, the key "lang" will be ignored and can even be passed in as an empty string. - items: - type: object - description: Either a string or HypertextField. When OpenAPI Generator supports oneOf, we can semantically enforce this in the docs. + description: Additional information about the employee or team. HypertextField: type: object properties: @@ -11653,7 +11821,6 @@ components: description: URL for the hypertext field. EmployeeInfoDefinition: type: object - description: Describes employee info properties: email: type: string @@ -11681,8 +11848,8 @@ components: description: The employee's location (city/office name etc). deprecated: true structuredLocation: + $ref: '#/components/schemas/StructuredLocation' description: Detailed location with information about country, state, city etc. - $ref: "#/components/schemas/StructuredLocation" title: type: string description: The employee's role title. @@ -11698,14 +11865,14 @@ components: description: An organizational unit where everyone has a similar task, e.g. `Engineering`. datasourceProfiles: type: array - description: The datasource profiles of the employee, e.g. `Slack`,`Github`. items: - $ref: "#/components/schemas/DatasourceProfile" + $ref: '#/components/schemas/DatasourceProfile' + description: The datasource profiles of the employee, e.g. `Slack`,`Github`. teams: type: array - description: Info about the employee's team(s) items: - $ref: "#/components/schemas/EmployeeTeamInfo" + $ref: '#/components/schemas/EmployeeTeamInfo' + description: Info about the employee's team(s) startDate: type: string format: date @@ -11722,17 +11889,17 @@ components: description: She/her, He/his or other pronoun. alsoKnownAs: type: array - description: Other names associated with the employee. items: type: string + description: Other names associated with the employee. profileUrl: type: string description: Link to internal company person profile. socialNetworks: type: array - description: List of social network profiles. items: - $ref: "#/components/schemas/SocialNetworkDefinition" + $ref: '#/components/schemas/SocialNetworkDefinition' + description: List of social network profiles. managerEmail: type: string description: The email of the employee's manager @@ -11746,37 +11913,37 @@ components: default: FULL_TIME relationships: type: array - description: List of unidirectional relationships with other employees. E.g. this employee (`A`) is a CHIEF_OF_STAFF to another employee (`B`); or this employee (`A`) is an EXECUTIVE_ASSISTANT of another employee (`C`). The mapping should be attached to `A`'s profile. items: - $ref: "#/components/schemas/EntityRelationship" + $ref: '#/components/schemas/EntityRelationship' + description: List of unidirectional relationships with other employees. E.g. this employee (`A`) is a CHIEF_OF_STAFF to another employee (`B`); or this employee (`A`) is an EXECUTIVE_ASSISTANT of another employee (`C`). The mapping should be attached to `A`'s profile. status: type: string description: The status of the employee, an enum of `CURRENT`, `FUTURE`, `EX` default: CURRENT additionalFields: type: array - description: List of additional fields with more information about the employee. items: - $ref: "#/components/schemas/AdditionalFieldDefinition" + $ref: '#/components/schemas/AdditionalFieldDefinition' + description: List of additional fields with more information about the employee. required: - department - email + description: Describes employee info EmployeeAndVersionDefinition: type: object - description: describes info about an employee and optional version for that info properties: employee: + $ref: '#/components/schemas/EmployeeInfoDefinition' description: Info about the employee - $ref: "#/components/schemas/EmployeeInfoDefinition" version: - description: Version number for the employee object. If absent or 0 then no version checks are done type: integer format: int64 + description: Version number for the employee object. If absent or 0 then no version checks are done required: - info + description: describes info about an employee and optional version for that info EmployeeTeamInfo: type: object - description: Information about which team an employee belongs to properties: id: type: string @@ -11788,12 +11955,9 @@ components: type: string format: uri description: Link to internal company team page + description: Information about which team an employee belongs to EntityRelationship: type: object - description: Describes a relationship edge between a source and destination entity - required: - - name - - email properties: name: type: string @@ -11801,14 +11965,17 @@ components: email: type: string description: Email of the person with whom the relationship exists. Per the example above, either `B` or `C`'s email depending on the relationship. + required: + - name + - email + description: Describes a relationship edge between a source and destination entity TeamMember: type: object - description: Information about a team's member properties: email: type: string - description: The member's email format: email + description: The member's email relationship: type: string description: The member's relationship to the team, an enum of `MEMBER`, `MANAGER`, `LEAD`, `POINT_OF_CONTACT`, `OTHER` @@ -11819,9 +11986,9 @@ components: description: The member's start date required: - email + description: Information about a team's member TeamInfoDefinition: type: object - description: Information about an employee's team properties: id: type: string @@ -11849,120 +12016,121 @@ components: A link to an external team page. If set, team results will link to it. emails: type: array - description: The emails of the team items: - $ref: "#/components/schemas/TeamEmail" + $ref: '#/components/schemas/TeamEmail' + description: The emails of the team datasourceProfiles: type: array - description: The datasource profiles of the team, e.g. `Slack`,`Github`. items: - $ref: "#/components/schemas/DatasourceProfile" + $ref: '#/components/schemas/DatasourceProfile' + description: The datasource profiles of the team, e.g. `Slack`,`Github`. members: type: array - description: The members of the team items: - $ref: "#/components/schemas/TeamMember" + $ref: '#/components/schemas/TeamMember' + description: The members of the team additionalFields: type: array - description: List of additional fields with more information about the team. items: - $ref: "#/components/schemas/AdditionalFieldDefinition" + $ref: '#/components/schemas/AdditionalFieldDefinition' + description: List of additional fields with more information about the team. required: - id - members - name + description: Information about an employee's team IndexTeamRequest: type: object - description: Info about a team and optional version for that info properties: team: + $ref: '#/components/schemas/TeamInfoDefinition' description: Info about the team - $ref: "#/components/schemas/TeamInfoDefinition" version: - description: Version number for the team object. If absent or 0 then no version checks are done type: integer format: int64 + description: Version number for the team object. If absent or 0 then no version checks are done required: - team + description: Info about a team and optional version for that info BulkIndexShortcutsRequest: type: object - description: Describes the request body of the /bulkindexshortcuts API call allOf: - - $ref: "#/components/schemas/BulkIndexRequest" + - $ref: '#/components/schemas/BulkIndexRequest' - type: object properties: shortcuts: - description: Batch of shortcuts information type: array items: - $ref: "#/components/schemas/ExternalShortcut" + $ref: '#/components/schemas/ExternalShortcut' + description: Batch of shortcuts information required: - shortcuts + description: Describes the request body of the /bulkindexshortcuts API call UploadShortcutsRequest: type: object - description: Describes the request body of the /uploadshortcuts API call allOf: - - $ref: "#/components/schemas/BulkIndexRequest" + - $ref: '#/components/schemas/BulkIndexRequest' - type: object properties: shortcuts: - description: Batch of shortcuts information type: array items: - $ref: "#/components/schemas/IndexingShortcut" + $ref: '#/components/schemas/IndexingShortcut' + description: Batch of shortcuts information required: - shortcuts + description: Describes the request body of the /uploadshortcuts API call DebugDatasourceStatusResponse: type: object - description: Describes the response body of the /debug/{datasource}/status API call properties: documents: type: object properties: bulkUploadHistory: + $ref: '#/components/schemas/BulkUploadHistoryEventList' type: object - $ref: "#/components/schemas/BulkUploadHistoryEventList" counts: type: object properties: uploaded: type: array items: - $ref: "#/components/schemas/DatasourceObjectTypeDocumentCountEntry" + $ref: '#/components/schemas/DatasourceObjectTypeDocumentCountEntry' description: | A list of object types and corresponding upload counts. Note: This data may be cached and could be up to 3 hours stale. indexed: type: array - description: The number of documents indexed, grouped by objectType items: - $ref: "#/components/schemas/DatasourceObjectTypeDocumentCountEntry" + $ref: '#/components/schemas/DatasourceObjectTypeDocumentCountEntry' + description: The number of documents indexed, grouped by objectType processingHistory: - $ref: "#/components/schemas/ProcessingHistoryEventList" + $ref: '#/components/schemas/ProcessingHistoryEventList' identity: type: object properties: processingHistory: - $ref: "#/components/schemas/ProcessingHistoryEventList" + $ref: '#/components/schemas/ProcessingHistoryEventList' users: - $ref: "#/components/schemas/DebugDatasourceStatusIdentityResponseComponent" + $ref: '#/components/schemas/DebugDatasourceStatusIdentityResponseComponent' groups: - $ref: "#/components/schemas/DebugDatasourceStatusIdentityResponseComponent" + $ref: '#/components/schemas/DebugDatasourceStatusIdentityResponseComponent' memberships: - $ref: "#/components/schemas/DebugDatasourceStatusIdentityResponseComponent" + $ref: '#/components/schemas/DebugDatasourceStatusIdentityResponseComponent' datasourceVisibility: type: string - description: The visibility of the datasource, an enum of VISIBLE_TO_ALL, VISIBLE_TO_TEST_GROUP, NOT_VISIBLE enum: - ENABLED_FOR_ALL - ENABLED_FOR_TEST_GROUP - NOT_ENABLED + description: The visibility of the datasource, an enum of VISIBLE_TO_ALL, VISIBLE_TO_TEST_GROUP, NOT_VISIBLE example: ENABLED_FOR_ALL + description: Describes the response body of the /debug/{datasource}/status API call DebugDatasourceStatusIdentityResponseComponent: type: object properties: bulkUploadHistory: + $ref: '#/components/schemas/BulkUploadHistoryEventList' type: object - $ref: "#/components/schemas/BulkUploadHistoryEventList" counts: type: object properties: @@ -11983,7 +12151,6 @@ components: example: 15 BulkUploadHistoryEvent: type: object - description: Information about a successful bulk upload properties: uploadId: type: string @@ -11999,14 +12166,13 @@ components: example: "2021-08-06T18:58:01.000Z" status: type: string - description: The status of the upload, an enum of ACTIVE, SUCCESSFUL enum: - ACTIVE - SUCCESSFUL + description: The status of the upload, an enum of ACTIVE, SUCCESSFUL example: SUCCESSFUL processingState: type: string - description: The current state of the upload, an enum of UNAVAILABLE, UPLOAD STARTED, UPLOAD IN PROGRESS, UPLOAD COMPLETED, DELETION PAUSED, INDEXING COMPLETED enum: - UNAVAILABLE - UPLOAD STARTED @@ -12014,15 +12180,16 @@ components: - UPLOAD COMPLETED - DELETION PAUSED - INDEXING COMPLETED + description: The current state of the upload, an enum of UNAVAILABLE, UPLOAD STARTED, UPLOAD IN PROGRESS, UPLOAD COMPLETED, DELETION PAUSED, INDEXING COMPLETED example: UPLOAD COMPLETED + description: Information about a successful bulk upload BulkUploadHistoryEventList: - description: Information about active and recent successful uploads for the datasource type: array items: - $ref: "#/components/schemas/BulkUploadHistoryEvent" + $ref: '#/components/schemas/BulkUploadHistoryEvent' + description: Information about active and recent successful uploads for the datasource DebugDocumentRequest: type: object - description: Describes the request body of the /debug/{datasource}/document API call. properties: objectType: type: string @@ -12035,30 +12202,30 @@ components: required: - objectType - docId + description: Describes the request body of the /debug/{datasource}/document API call. DebugDocumentResponse: type: object - description: Describes the response body of the /debug/{datasource}/document API call properties: status: + $ref: '#/components/schemas/DocumentStatusResponse' type: object description: Upload and indexing status of the document - $ref: "#/components/schemas/DocumentStatusResponse" uploadedPermissions: - $ref: "#/components/schemas/DocumentPermissionsDefinition" + $ref: '#/components/schemas/DocumentPermissionsDefinition' + description: Describes the response body of the /debug/{datasource}/document API call DebugDocumentsRequest: type: object - description: Describes the request body of the /debug/{datasource}/documents API call. properties: debugDocuments: type: array - description: Documents to fetch debug information for items: - $ref: "#/components/schemas/DebugDocumentRequest" + $ref: '#/components/schemas/DebugDocumentRequest' + description: Documents to fetch debug information for required: - debugDocuments + description: Describes the request body of the /debug/{datasource}/documents API call. DebugDocumentsResponseItem: type: object - description: Describes the response body of a single document in the /debug/{datasource}/documents API call properties: docId: type: string @@ -12067,21 +12234,21 @@ components: type: string description: objectType of the document debugInfo: + $ref: '#/components/schemas/DebugDocumentResponse' type: object description: Debug information of the document - $ref: "#/components/schemas/DebugDocumentResponse" + description: Describes the response body of a single document in the /debug/{datasource}/documents API call DebugDocumentsResponse: type: object - description: Describes the response body of a single document in the /debug/{datasource}/documents API call properties: documentStatuses: type: array - description: List of document ids/urls and their debug information items: - $ref: "#/components/schemas/DebugDocumentsResponseItem" + $ref: '#/components/schemas/DebugDocumentsResponseItem' + description: List of document ids/urls and their debug information + description: Describes the response body of a single document in the /debug/{datasource}/documents API call DocumentStatusResponse: type: object - description: Describes the document status response body properties: uploadStatus: type: string @@ -12103,17 +12270,18 @@ components: type: string description: Permission identity status, enum of NOT_UPLOADED, UPLOADED, STATUS_UNKNOWN (Always unknown if `identityDatasourceName` is set). Document visibility may be affected status is `NOT_UPLOADED`. example: UPLOADED + description: Describes the document status response body LifeCycleEvent: type: object properties: event: type: string - description: Type of event enum: - UPLOADED - INDEXED - DELETION_REQUESTED - DELETED + description: Type of event example: INDEXED timestamp: type: string @@ -12121,7 +12289,6 @@ components: example: "2021-08-06T17:58:01.000Z" ProcessingHistoryEvent: type: object - description: Processing history event for a datasource properties: startTime: type: string @@ -12131,14 +12298,14 @@ components: type: string description: The end time of the processing in ISO 8601 format, 'NA' if still in progress example: "2021-08-06T18:58:01.000Z" + description: Processing history event for a datasource ProcessingHistoryEventList: - description: Information about processing history for the datasource type: array items: - $ref: "#/components/schemas/ProcessingHistoryEvent" + $ref: '#/components/schemas/ProcessingHistoryEvent' + description: Information about processing history for the datasource DebugUserRequest: type: object - description: Describes the request body of the /debug/{datasource}/user API call properties: email: type: string @@ -12146,44 +12313,44 @@ components: example: u1@foo.com required: - email + description: Describes the request body of the /debug/{datasource}/user API call DebugUserResponse: type: object - description: Describes the response body of the /debug/{datasource}/user API call properties: status: + $ref: '#/components/schemas/UserStatusResponse' type: object description: Upload and indexing status of the user - $ref: "#/components/schemas/UserStatusResponse" uploadedGroups: type: array - description: List of groups the user is a member of, as uploaded via permissions API. items: - $ref: "#/components/schemas/DatasourceGroupDefinition" + $ref: '#/components/schemas/DatasourceGroupDefinition' + description: List of groups the user is a member of, as uploaded via permissions API. + description: Describes the response body of the /debug/{datasource}/user API call UserStatusResponse: type: object - description: Describes the user status response body properties: isActiveUser: type: boolean description: Whether the user is active or not example: true uploadStatus: - $ref: "#/components/schemas/UploadStatusEnum" + $ref: '#/components/schemas/UploadStatusEnum' lastUploadedAt: type: string description: Time of last successful upload for the user, in ISO 8601 format example: "2021-08-06T17:58:01.000Z" + description: Describes the user status response body UploadStatusEnum: type: string - description: Upload status, enum of NOT_UPLOADED, UPLOADED, STATUS_UNKNOWN enum: - UPLOADED - NOT_UPLOADED - STATUS_UNKNOWN + description: Upload status, enum of NOT_UPLOADED, UPLOADED, STATUS_UNKNOWN example: UPLOADED DebugDocumentLifecycleRequest: type: object - description: Describes the request body of the /debug/{datasource}/document/events API call. properties: objectType: type: string @@ -12204,26 +12371,26 @@ components: required: - objectType - docId + description: Describes the request body of the /debug/{datasource}/document/events API call. DebugDocumentLifecycleResponse: type: object - description: Describes the response body of the /debug/{datasource}/document/events API call properties: lifeCycleEvents: type: array - description: List of lifecycle events corresponding to the document items: - $ref: "#/components/schemas/LifeCycleEvent" + $ref: '#/components/schemas/LifeCycleEvent' + description: List of lifecycle events corresponding to the document + description: Describes the response body of the /debug/{datasource}/document/events API call SuccessResponse: type: object - description: Success response for custom metadata operations properties: success: type: boolean description: Indicates if the operation was successful default: true + description: Success response for custom metadata operations ErrorInfoResponse: type: object - description: Error response for custom metadata operations properties: error: type: string @@ -12233,6 +12400,7 @@ components: description: Additional details about the error required: - error + description: Error response for custom metadata operations PropertyDefinition: properties: name: @@ -12274,7 +12442,6 @@ components: type: string description: The unique identifier of the `PropertyGroup` to which this property belongs. PropertyGroup: - description: A grouping for multiple PropertyDefinition. Grouped properties will be displayed together in the UI. properties: name: type: string @@ -12282,8 +12449,8 @@ components: displayLabel: type: string description: The user-friendly group label to display. + description: A grouping for multiple PropertyDefinition. Grouped properties will be displayed together in the UI. ObjectDefinition: - description: The definition for an `DocumentMetadata.objectType` within a datasource. properties: name: type: string @@ -12316,17 +12483,17 @@ components: propertyDefinitions: type: array items: - $ref: "#/components/schemas/PropertyDefinition" + $ref: '#/components/schemas/PropertyDefinition' propertyGroups: type: array - description: A list of `PropertyGroup`s belonging to this object type, which will group properties to be displayed together in the UI. items: - $ref: "#/components/schemas/PropertyGroup" + $ref: '#/components/schemas/PropertyGroup' + description: A list of `PropertyGroup`s belonging to this object type, which will group properties to be displayed together in the UI. summarizable: - description: Whether or not the object is summarizable type: boolean + description: Whether or not the object is summarizable + description: The definition for an `DocumentMetadata.objectType` within a datasource. CanonicalizingRegexType: - description: Regular expression to apply to an arbitrary string to transform it into a canonical string. properties: matchRegex: type: string @@ -12334,11 +12501,9 @@ components: rewriteRegex: type: string description: Regular expression to transform into a canonical string. + description: Regular expression to apply to an arbitrary string to transform it into a canonical string. SharedDatasourceConfigNoInstance: type: object - description: Structure describing shared config properties of a datasource with no multi-instance support. - required: - - name properties: name: type: string @@ -12367,20 +12532,20 @@ components: - ENTITY - CALENDAR - AGENTS - default: UNCATEGORIZED description: The type of this datasource. It is an important signal for relevance and must be specified and cannot be UNCATEGORIZED. Please refer to [this](https://developers.glean.com/docs/indexing_api_datasource_category/) for more details. + default: UNCATEGORIZED urlRegex: type: string - description: "Regular expression that matches URLs of documents of the datasource instance. The behavior for multiple matches is non-deterministic. **Note: `urlRegex` is a required field for non-entity datasources, but not required if the datasource is used to push custom entities (ie. datasources where isEntityDatasource is false). Please add a regex as specific as possible to this datasource instance.**" + description: 'Regular expression that matches URLs of documents of the datasource instance. The behavior for multiple matches is non-deterministic. **Note: `urlRegex` is a required field for non-entity datasources, but not required if the datasource is used to push custom entities (ie. datasources where isEntityDatasource is false). Please add a regex as specific as possible to this datasource instance.**' example: https://example-company.datasource.com/.* iconUrl: type: string description: The URL to an image to be displayed as an icon for this datasource instance. Must have a transparency mask. SVG are recommended over PNG. Public, scio-authenticated and Base64 encoded data URLs are all valid (but not third-party-authenticated URLs). objectDefinitions: type: array - description: The list of top-level `objectType`s for the datasource. items: - $ref: "#/components/schemas/ObjectDefinition" + $ref: '#/components/schemas/ObjectDefinition' + description: The list of top-level `objectType`s for the datasource. suggestionText: type: string description: Example text for what to search for in this datasource @@ -12389,15 +12554,14 @@ components: description: The URL of the landing page for this datasource instance. Should point to the most useful page for users, not the company marketing page. crawlerSeedUrls: type: array - description: This only applies to WEB_CRAWL and BROWSER_CRAWL datasources. Defines the seed URLs for crawling. items: type: string + description: This only applies to WEB_CRAWL and BROWSER_CRAWL datasources. Defines the seed URLs for crawling. iconDarkUrl: type: string description: The URL to an image to be displayed as an icon for this datasource instance in dark mode. Must have a transparency mask. SVG are recommended over PNG. Public, scio-authenticated and Base64 encoded data URLs are all valid (but not third-party-authenticated URLs). hideBuiltInFacets: type: array - description: List of built-in facet types that should be hidden for the datasource. items: type: string enum: @@ -12405,54 +12569,58 @@ components: - TAG - AUTHOR - OWNER + description: List of built-in facet types that should be hidden for the datasource. canonicalizingURLRegex: type: array - description: A list of regular expressions to apply to an arbitrary URL to transform it into a canonical URL for this datasource instance. Regexes are to be applied in the order specified in this list. items: - $ref: "#/components/schemas/CanonicalizingRegexType" + $ref: '#/components/schemas/CanonicalizingRegexType' + description: A list of regular expressions to apply to an arbitrary URL to transform it into a canonical URL for this datasource instance. Regexes are to be applied in the order specified in this list. canonicalizingTitleRegex: type: array - description: A list of regular expressions to apply to an arbitrary title to transform it into a title that will be displayed in the search results items: - $ref: "#/components/schemas/CanonicalizingRegexType" + $ref: '#/components/schemas/CanonicalizingRegexType' + description: A list of regular expressions to apply to an arbitrary title to transform it into a title that will be displayed in the search results redlistTitleRegex: type: string description: A regex that identifies titles that should not be indexed connectorType: - allOf: - - $ref: "#/components/schemas/ConnectorType" type: string + allOf: + - $ref: '#/components/schemas/ConnectorType' + deprecated: false quicklinks: type: array - description: List of actions for this datasource instance that will show up in autocomplete and app card, e.g. "Create new issue" for jira items: - $ref: "#/components/schemas/Quicklink" + $ref: '#/components/schemas/Quicklink' + description: List of actions for this datasource instance that will show up in autocomplete and app card, e.g. "Create new issue" for jira renderConfigPreset: type: string description: The name of a render config to use for displaying results from this datasource. Any well known datasource name may be used to render the same as that source, e.g. `web` or `gdrive`. Please refer to [this](https://developers.glean.com/docs/rendering_search_results/) for more details aliases: type: array - description: Aliases that can be used as `app` operator-values. items: type: string + description: Aliases that can be used as `app` operator-values. isOnPrem: type: boolean description: Whether or not this datasource is hosted on-premise. trustUrlRegexForViewActivity: type: boolean - default: true description: True if browser activity is able to report the correct URL for VIEW events. Set this to true if the URLs reported by Chrome are constant throughout each page load. Set this to false if the page has Javascript that modifies the URL during or after the load. + default: true includeUtmSource: type: boolean description: If true, a utm_source query param will be added to outbound links to this datasource within Glean. stripFragmentInCanonicalUrl: type: boolean - default: true description: If true, the fragment part of the URL will be stripped when converting to a canonical url. + default: true + required: + - name + description: Structure describing shared config properties of a datasource with no multi-instance support. CustomDatasourceConfig: - description: Structure describing config properties of a custom datasource allOf: - - $ref: "#/components/schemas/SharedDatasourceConfigNoInstance" + - $ref: '#/components/schemas/SharedDatasourceConfigNoInstance' - type: object properties: identityDatasourceName: @@ -12466,12 +12634,13 @@ components: description: whether email is used to reference users in document ACLs and in group memberships. isEntityDatasource: type: boolean - default: false description: True if this datasource is used to push custom entities. + default: false isTestDatasource: type: boolean - default: false description: True if this datasource will be used for testing purpose only. Documents from such a datasource wouldn't have any effect on search rankings. + default: false + description: Structure describing config properties of a custom datasource ShortcutProperties: properties: inputAlias: @@ -12500,7 +12669,7 @@ components: description: The time the shortcut was updated in epoch seconds. ExternalShortcut: allOf: - - $ref: "#/components/schemas/ShortcutProperties" + - $ref: '#/components/schemas/ShortcutProperties' - type: object required: - destinationUrl @@ -12524,9 +12693,8 @@ components: format: url description: The URL using which the user can access the edit page of the shortcut. SharedDatasourceConfig: - description: Structure describing shared config properties of the datasource (including multi-instance support) allOf: - - $ref: "#/components/schemas/SharedDatasourceConfigNoInstance" + - $ref: '#/components/schemas/SharedDatasourceConfigNoInstance' - type: object properties: datasourceName: @@ -12538,9 +12706,10 @@ components: instanceDescription: type: string description: A human readable string identifying this instance as compared to its peers, e.g. "github.com/askscio" or "github.askscio.com" + description: Structure describing shared config properties of the datasource (including multi-instance support) IndexingShortcut: allOf: - - $ref: "#/components/schemas/ShortcutProperties" + - $ref: '#/components/schemas/ShortcutProperties' - type: object required: - destinationUrl @@ -12556,7 +12725,6 @@ components: SensitiveInfoType: properties: likelihoodThreshold: - deprecated: true type: string enum: - LIKELY @@ -12564,98 +12732,104 @@ components: - POSSIBLE - UNLIKELY - VERY_UNLIKELY + deprecated: true infoType: - description: Text representation of an info-type to scan for. type: string + description: Text representation of an info-type to scan for. TimeRange: properties: startTime: type: string - description: start time of the time range, applicable for the CUSTOM type. format: date-time + description: start time of the time range, applicable for the CUSTOM type. endTime: type: string - description: end time of the time range, applicable for the CUSTOM type. format: date-time + description: end time of the time range, applicable for the CUSTOM type. lastNDaysValue: type: integer - description: The number of days to look back from the current time, applicable for the LAST_N_DAYS type. format: int64 + description: The number of days to look back from the current time, applicable for the LAST_N_DAYS type. InputOptions: - description: Controls which data-sources and what time-range to include in scans. properties: urlGreenlist: - deprecated: true type: array - description: list of url regex matching documents excluded from report items: type: string + description: list of url regex matching documents excluded from report + deprecated: true datasourcesType: type: string - description: The types of datasource for which to run the report/policy. enum: - ALL - CUSTOM + description: The types of datasource for which to run the report/policy. datasources: - deprecated: true type: array - description: List of datasources to consider for report. DEPRECATED - use datasourceInstances instead. items: type: string + description: List of datasources to consider for report. DEPRECATED - use datasourceInstances instead. + deprecated: true datasourceInstances: type: array - description: List of datasource instances to consider for report/policy. items: type: string + description: List of datasource instances to consider for report/policy. timePeriodType: type: string - description: Type of time period for which to run the report/policy. PAST_DAY is deprecated. enum: - ALL_TIME - PAST_YEAR - PAST_DAY - CUSTOM - LAST_N_DAYS + description: Type of time period for which to run the report/policy. PAST_DAY is deprecated. customTimeRange: - $ref: "#/components/schemas/TimeRange" + $ref: '#/components/schemas/TimeRange' + subsetDocIdsToScan: + type: array + items: + type: string + description: Subset of document IDs to scan. If empty, all documents matching other scope criteria will be scanned. + description: Controls which data-sources and what time-range to include in scans. SharingOptions: - description: Controls how "shared" a document must be to get picked for scans. properties: enabled: - deprecated: true type: boolean + deprecated: true threshold: - description: The minimum number of users the document is shared with. type: integer + description: The minimum number of users the document is shared with. thresholdEnabled: - description: Documents will be filtered based on how many people have access to it. type: boolean + description: Documents will be filtered based on how many people have access to it. anyoneWithLinkEnabled: - deprecated: true type: boolean + deprecated: true anyoneInternalEnabled: - description: Only users within the organization can access the document. type: boolean + description: Only users within the organization can access the document. anonymousAccessEnabled: - description: Anyone on the internet can access the document. type: boolean + description: Anyone on the internet can access the document. userAccessEnabled: - description: Enable user access check type: boolean + description: Enable user access check userIds: type: array - description: Any one of the specified users can access the document. items: type: string + description: Any one of the specified users can access the document. + description: Controls how "shared" a document must be to get picked for scans. ExternalSharingOptions: - deprecated: true allOf: - description: DEPRECATED - use `broadSharingOptions` instead. - - $ref: "#/components/schemas/SharingOptions" + - $ref: '#/components/schemas/SharingOptions' - type: object properties: domainAccessEnabled: type: boolean + deprecated: true HotwordProximity: properties: windowBefore: @@ -12667,36 +12841,35 @@ components: regex: type: string proximity: - $ref: "#/components/schemas/HotwordProximity" + $ref: '#/components/schemas/HotwordProximity' SensitiveExpression: properties: expression: - description: Sensitive word, phrase, or regular expression. type: string + description: Sensitive word, phrase, or regular expression. hotwords: - description: Zero to three proximate regular expressions necessary to consider an expression as sensitive content. type: array items: - $ref: "#/components/schemas/Hotword" + $ref: '#/components/schemas/Hotword' + description: Zero to three proximate regular expressions necessary to consider an expression as sensitive content. CustomSensitiveRuleType: type: string - description: Type of the custom sensitive rule. enum: - REGEX - TERM - INFO_TYPE + description: Type of the custom sensitive rule. CustomSensitiveRule: properties: id: - description: Identifier for the custom sensitive expression. type: string + description: Identifier for the custom sensitive expression. value: type: string description: The value of the custom sensitive rule. For REGEX type, this is the regex pattern; for TERM type, it is the term to match; and for INFO_TYPE type, it refers to predefined categories of sensitive content. See https://cloud.google.com/dlp/docs/infotypes-reference for available options. type: - $ref: "#/components/schemas/CustomSensitiveRuleType" + $ref: '#/components/schemas/CustomSensitiveRuleType' likelihoodThreshold: - description: Likelihood threshold for BUILT_IN infotypes (e.g., LIKELY, VERY_LIKELY). Only applicable for BUILT_IN type. type: string enum: - LIKELY @@ -12704,43 +12877,44 @@ components: - POSSIBLE - UNLIKELY - VERY_UNLIKELY + description: Likelihood threshold for BUILT_IN infotypes (e.g., LIKELY, VERY_LIKELY). Only applicable for BUILT_IN type. CustomSensitiveExpression: properties: id: - description: Identifier for the custom sensitive expression. type: string + description: Identifier for the custom sensitive expression. keyword: + $ref: '#/components/schemas/CustomSensitiveRule' description: The keyword to match against. - $ref: "#/components/schemas/CustomSensitiveRule" evaluationExpression: - description: The expression to evaluate the keyword match. type: string + description: The expression to evaluate the keyword match. SensitiveContentOptions: - description: Options for defining sensitive content within scanned documents. properties: sensitiveInfoTypes: - deprecated: true - description: DEPRECATED - use 'customSensitiveExpressions' instead. type: array items: - $ref: "#/components/schemas/SensitiveInfoType" - sensitiveTerms: - deprecated: true + $ref: '#/components/schemas/SensitiveInfoType' description: DEPRECATED - use 'customSensitiveExpressions' instead. + deprecated: true + sensitiveTerms: type: array items: - $ref: "#/components/schemas/SensitiveExpression" - sensitiveRegexes: - deprecated: true + $ref: '#/components/schemas/SensitiveExpression' description: DEPRECATED - use 'customSensitiveExpressions' instead. + deprecated: true + sensitiveRegexes: type: array items: - $ref: "#/components/schemas/SensitiveExpression" + $ref: '#/components/schemas/SensitiveExpression' + description: DEPRECATED - use 'customSensitiveExpressions' instead. + deprecated: true customSensitiveExpressions: - description: list of custom sensitive expressions to consider as sensitive content type: array items: - $ref: "#/components/schemas/CustomSensitiveExpression" + $ref: '#/components/schemas/CustomSensitiveExpression' + description: list of custom sensitive expressions to consider as sensitive content + description: Options for defining sensitive content within scanned documents. DlpPersonMetadata: properties: firstName: @@ -12750,10 +12924,6 @@ components: type: string description: The user's primary email address DlpPerson: - description: Details about the person who created this report/policy. - required: - - name - - obfuscatedId properties: name: type: string @@ -12762,111 +12932,114 @@ components: type: string description: An opaque identifier that can be used to request metadata for a Person. metadata: - $ref: "#/components/schemas/DlpPersonMetadata" + $ref: '#/components/schemas/DlpPersonMetadata' + required: + - name + - obfuscatedId + description: Details about the person who created this report/policy. AllowlistOptions: - description: Terms that are allow-listed during the scans. If any finding picked up by a rule exactly matches a term in the allow-list, it will not be counted as a violation. properties: terms: type: array - description: list of words and phrases to consider as whitelisted content items: type: string + description: list of words and phrases to consider as whitelisted content + description: Terms that are allow-listed during the scans. If any finding picked up by a rule exactly matches a term in the allow-list, it will not be counted as a violation. DlpConfig: - description: Detailed configuration of what documents and sensitive content will be scanned. properties: version: - description: Synonymous with report/policy id. type: integer format: int64 + description: Synonymous with report/policy id. sensitiveInfoTypes: - deprecated: true - description: DEPRECATED - use `sensitiveContentOptions` instead. type: array items: - $ref: "#/components/schemas/SensitiveInfoType" + $ref: '#/components/schemas/SensitiveInfoType' + description: DEPRECATED - use `sensitiveContentOptions` instead. + deprecated: true inputOptions: + $ref: '#/components/schemas/InputOptions' description: Options for documents to include or exclude in a report - $ref: "#/components/schemas/InputOptions" externalSharingOptions: - deprecated: true + $ref: '#/components/schemas/ExternalSharingOptions' description: DEPRECATED - use `broadSharingOptions` instead. - $ref: "#/components/schemas/ExternalSharingOptions" + deprecated: true broadSharingOptions: + $ref: '#/components/schemas/SharingOptions' description: Options for defining documents to scan for sensitive content. - $ref: "#/components/schemas/SharingOptions" sensitiveContentOptions: + $ref: '#/components/schemas/SensitiveContentOptions' description: Options for defining sensitive content within scanned documents. - $ref: "#/components/schemas/SensitiveContentOptions" reportName: type: string frequency: - description: Interval between scans. type: string + description: Interval between scans. createdBy: + $ref: '#/components/schemas/DlpPerson' description: Person who created this report/policy. - $ref: "#/components/schemas/DlpPerson" createdAt: - description: Timestamp at which this configuration was created. type: string format: iso-date-time + description: Timestamp at which this configuration was created. redactQuote: - description: redact quote in findings of the report type: boolean + description: redact quote in findings of the report autoHideDocs: - description: auto hide documents with findings in the report type: boolean + description: auto hide documents with findings in the report allowlistOptions: + $ref: '#/components/schemas/AllowlistOptions' description: Options for defining whitelisting content within scanned documents - $ref: "#/components/schemas/AllowlistOptions" + description: Detailed configuration of what documents and sensitive content will be scanned. DlpFrequency: type: string - description: Interval between scans. DAILY is deprecated. - x-include-enum-class-prefix: true enum: - ONCE - DAILY - WEEKLY - CONTINUOUS - NONE + description: Interval between scans. DAILY is deprecated. + x-include-enum-class-prefix: true DlpReportStatus: type: string - description: The status of the policy/report. Only ACTIVE status will be picked for scans. - x-include-enum-class-prefix: true enum: - ACTIVE - INACTIVE - CANCELLED - NONE + description: The status of the policy/report. Only ACTIVE status will be picked for scans. + x-include-enum-class-prefix: true DlpReport: - description: Full policy information that will be used for scans. properties: id: type: string name: type: string config: + $ref: '#/components/schemas/DlpConfig' description: All details of the policy that is needed for a scan. - $ref: "#/components/schemas/DlpConfig" frequency: + $ref: '#/components/schemas/DlpFrequency' description: The interval between scans. - $ref: "#/components/schemas/DlpFrequency" status: + $ref: '#/components/schemas/DlpReportStatus' description: The status of the policy. - $ref: "#/components/schemas/DlpReportStatus" createdBy: + $ref: '#/components/schemas/DlpPerson' description: Person who created this report. - $ref: "#/components/schemas/DlpPerson" createdAt: - description: Timestamp at which the policy was created. type: string format: iso-date-time + description: Timestamp at which the policy was created. lastUpdatedAt: - description: Timestamp at which the policy was last updated. type: string format: iso-date-time + description: Timestamp at which the policy was last updated. autoHideDocs: - description: Auto hide documents with findings in the policy. type: boolean + description: Auto hide documents with findings in the policy. lastScanStatus: type: string enum: @@ -12877,33 +13050,34 @@ components: - CANCELLING - ACTIVE lastScanStartTime: - description: The timestamp at which the report's last run/scan began. type: string format: iso-date-time + description: The timestamp at which the report's last run/scan began. updatedBy: + $ref: '#/components/schemas/DlpPerson' description: Person who last updated this report. - $ref: "#/components/schemas/DlpPerson" + description: Full policy information that will be used for scans. GetDlpReportResponse: properties: report: - $ref: "#/components/schemas/DlpReport" + $ref: '#/components/schemas/DlpReport' UpdateDlpReportRequest: properties: config: + $ref: '#/components/schemas/DlpConfig' description: The new configuration the policy will follow if provided. - $ref: "#/components/schemas/DlpConfig" frequency: + $ref: '#/components/schemas/DlpFrequency' description: The new frequency the policy will follow if provided. - $ref: "#/components/schemas/DlpFrequency" status: + $ref: '#/components/schemas/DlpReportStatus' description: The new status the policy will be updated to if provided. - $ref: "#/components/schemas/DlpReportStatus" autoHideDocs: - description: The new autoHideDoc boolean the policy will be updated to if provided. type: boolean + description: The new autoHideDoc boolean the policy will be updated to if provided. reportName: - description: The new name of the policy if provided. type: string + description: The new name of the policy if provided. DlpSimpleResult: type: string enum: @@ -12912,45 +13086,45 @@ components: UpdateDlpReportResponse: properties: result: - $ref: "#/components/schemas/DlpSimpleResult" + $ref: '#/components/schemas/DlpSimpleResult' ListDlpReportsResponse: properties: reports: type: array items: - $ref: "#/components/schemas/DlpReport" + $ref: '#/components/schemas/DlpReport' CreateDlpReportRequest: properties: name: - description: Name of the policy being created. type: string + description: Name of the policy being created. config: + $ref: '#/components/schemas/DlpConfig' description: Details on the configuration used in the scans. - $ref: "#/components/schemas/DlpConfig" frequency: + $ref: '#/components/schemas/DlpFrequency' description: Interval between scans. - $ref: "#/components/schemas/DlpFrequency" autoHideDocs: - description: Controls whether the policy should hide documents with violations. type: boolean + description: Controls whether the policy should hide documents with violations. CreateDlpReportResponse: properties: report: - $ref: "#/components/schemas/DlpReport" + $ref: '#/components/schemas/DlpReport' UpdateDlpConfigRequest: properties: config: - $ref: "#/components/schemas/DlpConfig" + $ref: '#/components/schemas/DlpConfig' frequency: - description: Only "ONCE" is supported for reports. type: string + description: Only "ONCE" is supported for reports. UpdateDlpConfigResponse: properties: result: - $ref: "#/components/schemas/DlpSimpleResult" + $ref: '#/components/schemas/DlpSimpleResult' reportId: - description: The id of the report that was just created and run. type: string + description: The id of the report that was just created and run. ReportStatusResponse: properties: status: @@ -12963,70 +13137,70 @@ components: - CANCELLING - ACTIVE startTime: - description: The timestamp at which the report's run/scan began. type: string format: iso-date-time + description: The timestamp at which the report's run/scan began. DocumentVisibilityOverride: properties: docId: type: string override: - description: The visibility-override state of the document. type: string enum: - NONE - HIDE_FROM_ALL - HIDE_FROM_GROUPS - HIDE_FROM_ALL_EXCEPT_OWNER + description: The visibility-override state of the document. GetDocumentVisibilityOverridesResponse: properties: visibilityOverrides: type: array items: - $ref: "#/components/schemas/DocumentVisibilityOverride" + $ref: '#/components/schemas/DocumentVisibilityOverride' UpdateDocumentVisibilityOverridesRequest: properties: visibilityOverrides: type: array items: - $ref: "#/components/schemas/DocumentVisibilityOverride" + $ref: '#/components/schemas/DocumentVisibilityOverride' DocumentVisibilityUpdateResult: allOf: - - $ref: "#/components/schemas/DocumentVisibilityOverride" + - $ref: '#/components/schemas/DocumentVisibilityOverride' - type: object properties: success: - description: Whether this document was successfully set to its desired visibility state. type: boolean + description: Whether this document was successfully set to its desired visibility state. UpdateDocumentVisibilityOverridesResponse: properties: results: - description: The documents and whether their visibility was successfully updated. type: array items: - $ref: "#/components/schemas/DocumentVisibilityUpdateResult" + $ref: '#/components/schemas/DocumentVisibilityUpdateResult' + description: The documents and whether their visibility was successfully updated. DlpSeverity: type: string - description: Severity levels for DLP findings and analyses. - x-include-enum-class-prefix: true enum: - UNSPECIFIED - LOW - MEDIUM - HIGH + description: Severity levels for DLP findings and analyses. + x-include-enum-class-prefix: true TimeRangeFilter: properties: timePeriodType: type: string - description: The type of time period for which to filter findings. enum: - PAST_DAY - PAST_WEEK - PAST_MONTH - PAST_YEAR - CUSTOM + description: The type of time period for which to filter findings. customTimeRange: - $ref: "#/components/schemas/TimeRange" + $ref: '#/components/schemas/TimeRange' DlpFindingFilter: properties: infoType: @@ -13044,28 +13218,28 @@ components: items: type: string severity: - $ref: "#/components/schemas/DlpSeverity" + $ref: '#/components/schemas/DlpSeverity' documentSeverity: type: array items: - $ref: "#/components/schemas/DlpSeverity" + $ref: '#/components/schemas/DlpSeverity' timeRange: - $ref: "#/components/schemas/TimeRangeFilter" + $ref: '#/components/schemas/TimeRangeFilter' archived: type: boolean ExportInfo: properties: createdBy: + $ref: '#/components/schemas/DlpPerson' description: person who triggered this export - $ref: "#/components/schemas/DlpPerson" startTime: - description: Timestamp at which this export started. type: string format: iso-date-time + description: Timestamp at which this export started. endTime: - description: Timestamp at which this export completed. type: string format: iso-date-time + description: Timestamp at which this export completed. exportId: type: string description: The ID of the export @@ -13073,15 +13247,15 @@ components: type: string description: The name of the file to export the findings to filter: - $ref: "#/components/schemas/DlpFindingFilter" + $ref: '#/components/schemas/DlpFindingFilter' description: The filters used to export the findings status: type: string - description: The status of the export enum: - PENDING - COMPLETED - FAILED + description: The status of the export exportSize: type: integer format: int64 @@ -13091,27 +13265,27 @@ components: exports: type: array items: - $ref: "#/components/schemas/ExportInfo" + $ref: '#/components/schemas/ExportInfo' DlpExportFindingsRequest: properties: exportType: type: string - description: The type of export to perform enum: - FINDINGS - DOCUMENTS + description: The type of export to perform filter: - $ref: "#/components/schemas/DlpFindingFilter" + $ref: '#/components/schemas/DlpFindingFilter' fileName: type: string description: The name of the file to export the findings to fieldScope: type: string - description: Controls which fields to include in the export enum: - ALL - EXCLUDE_SENSITIVE - CUSTOM + description: Controls which fields to include in the export fieldsToExclude: type: array items: @@ -13161,6 +13335,13 @@ components: If set, response lines will be streamed one-by-one as they become available. Each will be a ChatResponse, formatted as JSON, and separated by a new line. If false, the entire response will be returned at once. Note that if this is set and the model being used does not support streaming, the model's response will not be streamed, but other messages from the endpoint still will be. default: true parameters: + locale: + name: locale + in: query + description: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + required: false + schema: + type: string timezoneOffset: name: timezoneOffset in: query @@ -13173,37 +13354,37 @@ components: content: application/json: schema: - $ref: "#/components/schemas/SuccessResponse" + $ref: '#/components/schemas/SuccessResponse' BadRequestError: description: Bad Request content: application/json: schema: - $ref: "#/components/schemas/ErrorInfoResponse" + $ref: '#/components/schemas/ErrorInfoResponse' UnauthorizedError: description: Not Authorized content: application/json: schema: - $ref: "#/components/schemas/ErrorInfoResponse" + $ref: '#/components/schemas/ErrorInfoResponse' NotFoundError: description: Not Found content: application/json: schema: - $ref: "#/components/schemas/ErrorInfoResponse" + $ref: '#/components/schemas/ErrorInfoResponse' TooManyRequestsError: description: Too Many Requests content: application/json: schema: - $ref: "#/components/schemas/ErrorInfoResponse" + $ref: '#/components/schemas/ErrorInfoResponse' InternalServerError: description: Internal Server Error content: application/json: schema: - $ref: "#/components/schemas/ErrorInfoResponse" + $ref: '#/components/schemas/ErrorInfoResponse' x-tagGroups: - name: Search & Generative AI tags: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 7163a0bc..4428682a 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,12 +1,12 @@ -speakeasyVersion: 1.686.0 +speakeasyVersion: 1.695.0 sources: Glean API: sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:fcb56a3a1b355cdff7e63a0b76385f81472ce01a748f25a409b13b70d89436cc - sourceBlobDigest: sha256:01a8dbd2649712ab871b1799b6c76f92f4edb070c675738cac74685c81879a37 + sourceRevisionDigest: sha256:bb13a27a1807163bc2babeb60cb7d6eced3ec0aecd545316fd34b2942bbc9231 + sourceBlobDigest: sha256:754e444485e3f1b5878502843a9145357e16ebc547a7d51e0344d7f6f2db979b tags: - latest - - speakeasy-sdk-regen-1768441819 + - speakeasy-sdk-regen-1768614376 Glean Client API: sourceNamespace: glean-client-api sourceRevisionDigest: sha256:4edc63ad559e4f2c9fb9ebf5edaaaaa9269f1874d271cfd84b441d6dacac43d2 @@ -17,10 +17,10 @@ targets: glean: source: Glean API sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:fcb56a3a1b355cdff7e63a0b76385f81472ce01a748f25a409b13b70d89436cc - sourceBlobDigest: sha256:01a8dbd2649712ab871b1799b6c76f92f4edb070c675738cac74685c81879a37 + sourceRevisionDigest: sha256:bb13a27a1807163bc2babeb60cb7d6eced3ec0aecd545316fd34b2942bbc9231 + sourceBlobDigest: sha256:754e444485e3f1b5878502843a9145357e16ebc547a7d51e0344d7f6f2db979b codeSamplesNamespace: glean-api-specs-python-code-samples - codeSamplesRevisionDigest: sha256:77edd92d12a6f8e9e87bc2578f8369e25dba1060192ba455304996c267701c6a + codeSamplesRevisionDigest: sha256:6d1a83b662c97a98ed954794396e03996b3df017fdd903eee0119a420d1fd70f workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/RELEASES.md b/RELEASES.md index 96a2a717..0062454b 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -498,4 +498,14 @@ Based on: ### Generated - [python v0.11.27] . ### Releases -- [PyPI v0.11.27] https://pypi.org/project/glean-api-client/0.11.27 - . \ No newline at end of file +- [PyPI v0.11.27] https://pypi.org/project/glean-api-client/0.11.27 - . + +## 2026-01-22 22:57:22 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.695.0 (2.799.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v0.11.28] . +### Releases +- [PyPI v0.11.28] https://pypi.org/project/glean-api-client/0.11.28 - . \ No newline at end of file diff --git a/docs/errors/gleandataerror.md b/docs/errors/gleandataerror.md index f1df02d4..7c4c0d90 100644 --- a/docs/errors/gleandataerror.md +++ b/docs/errors/gleandataerror.md @@ -3,9 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -| `bad_gmail_token` | *Optional[bool]* | :heavy_minus_sign: | Indicates the gmail results could not be fetched due to bad token. | -| `bad_outlook_token` | *Optional[bool]* | :heavy_minus_sign: | Indicates the outlook results could not be fetched due to bad token. | -| `invalid_operators` | List[[models.InvalidOperatorValueError](../models/invalidoperatorvalueerror.md)] | :heavy_minus_sign: | Indicates results could not be fetched due to invalid operators in the query. | -| `error_messages` | List[[models.ErrorMessage](../models/errormessage.md)] | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `bad_gmail_token` | *Optional[bool]* | :heavy_minus_sign: | Indicates the gmail results could not be fetched due to bad token. | +| `bad_outlook_token` | *Optional[bool]* | :heavy_minus_sign: | Indicates the outlook results could not be fetched due to bad token. | +| `invalid_operators` | List[[models.InvalidOperatorValueError](../models/invalidoperatorvalueerror.md)] | :heavy_minus_sign: | Indicates results could not be fetched due to invalid operators in the query. | +| `error_messages` | List[[models.ErrorMessage](../models/errormessage.md)] | :heavy_minus_sign: | N/A | +| `federated_search_rate_limit_error` | *Optional[bool]* | :heavy_minus_sign: | Indicates the federated search results could not be fetched due to rate limiting. | \ No newline at end of file diff --git a/docs/models/addcollectionitemsrequestrequest.md b/docs/models/addcollectionitemsrequestrequest.md new file mode 100644 index 00000000..06b734c8 --- /dev/null +++ b/docs/models/addcollectionitemsrequestrequest.md @@ -0,0 +1,9 @@ +# AddcollectionitemsRequestRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `add_collection_items_request` | [models.AddCollectionItemsRequest](../models/addcollectionitemsrequest.md) | :heavy_check_mark: | Data describing the add operation. | \ No newline at end of file diff --git a/docs/models/addverificationreminderrequest.md b/docs/models/addverificationreminderrequest.md new file mode 100644 index 00000000..ac943c10 --- /dev/null +++ b/docs/models/addverificationreminderrequest.md @@ -0,0 +1,9 @@ +# AddverificationreminderRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `reminder_request` | [models.ReminderRequest](../models/reminderrequest.md) | :heavy_check_mark: | Details about the reminder. | \ No newline at end of file diff --git a/docs/models/adminsearchrequest.md b/docs/models/adminsearchrequest.md new file mode 100644 index 00000000..608a7bad --- /dev/null +++ b/docs/models/adminsearchrequest.md @@ -0,0 +1,9 @@ +# AdminsearchRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | | +| `search_request` | [models.SearchRequest](../models/searchrequest.md) | :heavy_check_mark: | Admin search request | {
"trackingToken": "trackingToken",
"query": "vacation policy",
"pageSize": 10,
"requestOptions": {
"facetFilters": [
{
"fieldName": "type",
"values": [
{
"value": "article",
"relationType": "EQUALS"
},
{
"value": "document",
"relationType": "EQUALS"
}
]
},
{
"fieldName": "department",
"values": [
{
"value": "engineering",
"relationType": "EQUALS"
}
]
}
]
}
} | \ No newline at end of file diff --git a/docs/models/autocompleterequestrequest.md b/docs/models/autocompleterequestrequest.md new file mode 100644 index 00000000..f52bd9ee --- /dev/null +++ b/docs/models/autocompleterequestrequest.md @@ -0,0 +1,9 @@ +# AutocompleteRequestRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | | +| `autocomplete_request` | [models.AutocompleteRequest](../models/autocompleterequest.md) | :heavy_check_mark: | Autocomplete request | {
"trackingToken": "trackingToken",
"query": "what is a que",
"datasource": "GDRIVE",
"resultSize": 10
} | \ No newline at end of file diff --git a/docs/models/chatrequestrequest.md b/docs/models/chatrequestrequest.md index 733a2720..743e1fd1 100644 --- a/docs/models/chatrequestrequest.md +++ b/docs/models/chatrequestrequest.md @@ -3,7 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `timezone_offset` | *Optional[int]* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `chat_request` | [models.ChatRequest](../models/chatrequest.md) | :heavy_check_mark: | Includes chat history for Glean AI to respond to. | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezone_offset` | *Optional[int]* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `chat_request` | [models.ChatRequest](../models/chatrequest.md) | :heavy_check_mark: | Includes chat history for Glean AI to respond to. | \ No newline at end of file diff --git a/docs/models/createannouncementrequestrequest.md b/docs/models/createannouncementrequestrequest.md new file mode 100644 index 00000000..69fa43dd --- /dev/null +++ b/docs/models/createannouncementrequestrequest.md @@ -0,0 +1,9 @@ +# CreateannouncementRequestRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `create_announcement_request` | [models.CreateAnnouncementRequest](../models/createannouncementrequest.md) | :heavy_check_mark: | Announcement content | \ No newline at end of file diff --git a/docs/models/createanswerrequestrequest.md b/docs/models/createanswerrequestrequest.md new file mode 100644 index 00000000..297b5967 --- /dev/null +++ b/docs/models/createanswerrequestrequest.md @@ -0,0 +1,9 @@ +# CreateanswerRequestRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `create_answer_request` | [models.CreateAnswerRequest](../models/createanswerrequest.md) | :heavy_check_mark: | CreateAnswer request | \ No newline at end of file diff --git a/docs/models/createcollectionrequestrequest.md b/docs/models/createcollectionrequestrequest.md new file mode 100644 index 00000000..7eaa07b6 --- /dev/null +++ b/docs/models/createcollectionrequestrequest.md @@ -0,0 +1,9 @@ +# CreatecollectionRequestRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `create_collection_request` | [models.CreateCollectionRequest](../models/createcollectionrequest.md) | :heavy_check_mark: | Collection content plus any additional metadata for the request. | \ No newline at end of file diff --git a/docs/models/createshortcutrequestrequest.md b/docs/models/createshortcutrequestrequest.md new file mode 100644 index 00000000..558b5abf --- /dev/null +++ b/docs/models/createshortcutrequestrequest.md @@ -0,0 +1,9 @@ +# CreateshortcutRequestRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `create_shortcut_request` | [models.CreateShortcutRequest](../models/createshortcutrequest.md) | :heavy_check_mark: | CreateShortcut request | \ No newline at end of file diff --git a/docs/models/deleteallchatsrequest.md b/docs/models/deleteallchatsrequest.md index f98987ba..01ac00c0 100644 --- a/docs/models/deleteallchatsrequest.md +++ b/docs/models/deleteallchatsrequest.md @@ -3,6 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `timezone_offset` | *Optional[int]* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezone_offset` | *Optional[int]* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | \ No newline at end of file diff --git a/docs/models/deleteannouncementrequestrequest.md b/docs/models/deleteannouncementrequestrequest.md new file mode 100644 index 00000000..689b1e04 --- /dev/null +++ b/docs/models/deleteannouncementrequestrequest.md @@ -0,0 +1,9 @@ +# DeleteannouncementRequestRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `delete_announcement_request` | [models.DeleteAnnouncementRequest](../models/deleteannouncementrequest.md) | :heavy_check_mark: | Delete announcement request | \ No newline at end of file diff --git a/docs/models/deleteanswerrequestrequest.md b/docs/models/deleteanswerrequestrequest.md new file mode 100644 index 00000000..05520c6f --- /dev/null +++ b/docs/models/deleteanswerrequestrequest.md @@ -0,0 +1,9 @@ +# DeleteanswerRequestRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `delete_answer_request` | [models.DeleteAnswerRequest](../models/deleteanswerrequest.md) | :heavy_check_mark: | DeleteAnswer request | \ No newline at end of file diff --git a/docs/models/deletechatfilesrequestrequest.md b/docs/models/deletechatfilesrequestrequest.md index 4c37d7ca..4aa1d9f2 100644 --- a/docs/models/deletechatfilesrequestrequest.md +++ b/docs/models/deletechatfilesrequestrequest.md @@ -3,7 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `timezone_offset` | *Optional[int]* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `delete_chat_files_request` | [models.DeleteChatFilesRequest](../models/deletechatfilesrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezone_offset` | *Optional[int]* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `delete_chat_files_request` | [models.DeleteChatFilesRequest](../models/deletechatfilesrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/deletechatsrequestrequest.md b/docs/models/deletechatsrequestrequest.md index 24814ad3..9f0ae5c5 100644 --- a/docs/models/deletechatsrequestrequest.md +++ b/docs/models/deletechatsrequestrequest.md @@ -3,7 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `timezone_offset` | *Optional[int]* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `delete_chats_request` | [models.DeleteChatsRequest](../models/deletechatsrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezone_offset` | *Optional[int]* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `delete_chats_request` | [models.DeleteChatsRequest](../models/deletechatsrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/deletecollectionitemrequestrequest.md b/docs/models/deletecollectionitemrequestrequest.md new file mode 100644 index 00000000..3c1c904e --- /dev/null +++ b/docs/models/deletecollectionitemrequestrequest.md @@ -0,0 +1,9 @@ +# DeletecollectionitemRequestRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `delete_collection_item_request` | [models.DeleteCollectionItemRequest](../models/deletecollectionitemrequest.md) | :heavy_check_mark: | Data describing the delete operation. | \ No newline at end of file diff --git a/docs/models/deletecollectionrequestrequest.md b/docs/models/deletecollectionrequestrequest.md new file mode 100644 index 00000000..b7767151 --- /dev/null +++ b/docs/models/deletecollectionrequestrequest.md @@ -0,0 +1,9 @@ +# DeletecollectionRequestRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `delete_collection_request` | [models.DeleteCollectionRequest](../models/deletecollectionrequest.md) | :heavy_check_mark: | DeleteCollection request | \ No newline at end of file diff --git a/docs/models/deleteshortcutrequestrequest.md b/docs/models/deleteshortcutrequestrequest.md new file mode 100644 index 00000000..8c355d07 --- /dev/null +++ b/docs/models/deleteshortcutrequestrequest.md @@ -0,0 +1,9 @@ +# DeleteshortcutRequestRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `delete_shortcut_request` | [models.DeleteShortcutRequest](../models/deleteshortcutrequest.md) | :heavy_check_mark: | DeleteShortcut request | \ No newline at end of file diff --git a/docs/models/editanswerrequestrequest.md b/docs/models/editanswerrequestrequest.md new file mode 100644 index 00000000..07d1c826 --- /dev/null +++ b/docs/models/editanswerrequestrequest.md @@ -0,0 +1,9 @@ +# EditanswerRequestRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `edit_answer_request` | [models.EditAnswerRequest](../models/editanswerrequest.md) | :heavy_check_mark: | EditAnswer request | \ No newline at end of file diff --git a/docs/models/editcollectionitemrequestrequest.md b/docs/models/editcollectionitemrequestrequest.md new file mode 100644 index 00000000..a43167ab --- /dev/null +++ b/docs/models/editcollectionitemrequestrequest.md @@ -0,0 +1,9 @@ +# EditcollectionitemRequestRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `edit_collection_item_request` | [models.EditCollectionItemRequest](../models/editcollectionitemrequest.md) | :heavy_check_mark: | Edit Collection Items request | \ No newline at end of file diff --git a/docs/models/editcollectionrequestrequest.md b/docs/models/editcollectionrequestrequest.md new file mode 100644 index 00000000..b806bc37 --- /dev/null +++ b/docs/models/editcollectionrequestrequest.md @@ -0,0 +1,9 @@ +# EditcollectionRequestRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `edit_collection_request` | [models.EditCollectionRequest](../models/editcollectionrequest.md) | :heavy_check_mark: | Collection content plus any additional metadata for the request. | \ No newline at end of file diff --git a/docs/models/editpinrequestrequest.md b/docs/models/editpinrequestrequest.md new file mode 100644 index 00000000..5a6db80b --- /dev/null +++ b/docs/models/editpinrequestrequest.md @@ -0,0 +1,9 @@ +# EditpinRequestRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `edit_pin_request` | [models.EditPinRequest](../models/editpinrequest.md) | :heavy_check_mark: | Edit pins request | \ No newline at end of file diff --git a/docs/models/feedrequestrequest.md b/docs/models/feedrequestrequest.md new file mode 100644 index 00000000..e662bffd --- /dev/null +++ b/docs/models/feedrequestrequest.md @@ -0,0 +1,9 @@ +# FeedRequestRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `feed_request` | [models.FeedRequest](../models/feedrequest.md) | :heavy_check_mark: | Includes request params, client data and more for making user's feed. | \ No newline at end of file diff --git a/docs/models/getagentrequest.md b/docs/models/getagentrequest.md index 2b1bcba3..7418c2ce 100644 --- a/docs/models/getagentrequest.md +++ b/docs/models/getagentrequest.md @@ -3,7 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `timezone_offset` | *Optional[int]* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `agent_id` | *str* | :heavy_check_mark: | The ID of the agent. | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezone_offset` | *Optional[int]* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `agent_id` | *str* | :heavy_check_mark: | The ID of the agent. | \ No newline at end of file diff --git a/docs/models/getagentschemasrequest.md b/docs/models/getagentschemasrequest.md index 925f9ef5..110d7172 100644 --- a/docs/models/getagentschemasrequest.md +++ b/docs/models/getagentschemasrequest.md @@ -3,7 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `timezone_offset` | *Optional[int]* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `agent_id` | *str* | :heavy_check_mark: | The ID of the agent. | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezone_offset` | *Optional[int]* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `agent_id` | *str* | :heavy_check_mark: | The ID of the agent. | \ No newline at end of file diff --git a/docs/models/getanswerrequestrequest.md b/docs/models/getanswerrequestrequest.md new file mode 100644 index 00000000..3502669e --- /dev/null +++ b/docs/models/getanswerrequestrequest.md @@ -0,0 +1,9 @@ +# GetanswerRequestRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `get_answer_request` | [models.GetAnswerRequest](../models/getanswerrequest.md) | :heavy_check_mark: | GetAnswer request | \ No newline at end of file diff --git a/docs/models/getchatapplicationrequestrequest.md b/docs/models/getchatapplicationrequestrequest.md index 6920abdc..79cddc37 100644 --- a/docs/models/getchatapplicationrequestrequest.md +++ b/docs/models/getchatapplicationrequestrequest.md @@ -3,7 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `timezone_offset` | *Optional[int]* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `get_chat_application_request` | [models.GetChatApplicationRequest](../models/getchatapplicationrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezone_offset` | *Optional[int]* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `get_chat_application_request` | [models.GetChatApplicationRequest](../models/getchatapplicationrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getchatfilesrequestrequest.md b/docs/models/getchatfilesrequestrequest.md index b9c9dbd2..886c639f 100644 --- a/docs/models/getchatfilesrequestrequest.md +++ b/docs/models/getchatfilesrequestrequest.md @@ -3,7 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `timezone_offset` | *Optional[int]* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `get_chat_files_request` | [models.GetChatFilesRequest](../models/getchatfilesrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezone_offset` | *Optional[int]* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `get_chat_files_request` | [models.GetChatFilesRequest](../models/getchatfilesrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getchatrequestrequest.md b/docs/models/getchatrequestrequest.md index 95fa7077..e810c575 100644 --- a/docs/models/getchatrequestrequest.md +++ b/docs/models/getchatrequestrequest.md @@ -3,7 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `timezone_offset` | *Optional[int]* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `get_chat_request` | [models.GetChatRequest](../models/getchatrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezone_offset` | *Optional[int]* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `get_chat_request` | [models.GetChatRequest](../models/getchatrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getcollectionrequestrequest.md b/docs/models/getcollectionrequestrequest.md new file mode 100644 index 00000000..63737249 --- /dev/null +++ b/docs/models/getcollectionrequestrequest.md @@ -0,0 +1,9 @@ +# GetcollectionRequestRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `get_collection_request` | [models.GetCollectionRequest](../models/getcollectionrequest.md) | :heavy_check_mark: | GetCollection request | \ No newline at end of file diff --git a/docs/models/getdocpermissionsrequestrequest.md b/docs/models/getdocpermissionsrequestrequest.md new file mode 100644 index 00000000..3f91457d --- /dev/null +++ b/docs/models/getdocpermissionsrequestrequest.md @@ -0,0 +1,9 @@ +# GetdocpermissionsRequestRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `get_doc_permissions_request` | [models.GetDocPermissionsRequest](../models/getdocpermissionsrequest.md) | :heavy_check_mark: | Document permissions request | \ No newline at end of file diff --git a/docs/models/getdocumentsbyfacetsrequestrequest.md b/docs/models/getdocumentsbyfacetsrequestrequest.md new file mode 100644 index 00000000..6fb44cfc --- /dev/null +++ b/docs/models/getdocumentsbyfacetsrequestrequest.md @@ -0,0 +1,9 @@ +# GetdocumentsbyfacetsRequestRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `get_documents_by_facets_request` | [Optional[models.GetDocumentsByFacetsRequest]](../models/getdocumentsbyfacetsrequest.md) | :heavy_minus_sign: | Information about facet conditions for documents to be retrieved. | \ No newline at end of file diff --git a/docs/models/getdocumentsrequestrequest.md b/docs/models/getdocumentsrequestrequest.md new file mode 100644 index 00000000..d1c6b7a4 --- /dev/null +++ b/docs/models/getdocumentsrequestrequest.md @@ -0,0 +1,9 @@ +# GetdocumentsRequestRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `get_documents_request` | [Optional[models.GetDocumentsRequest]](../models/getdocumentsrequest.md) | :heavy_minus_sign: | Information about documents requested. | \ No newline at end of file diff --git a/docs/models/getpinrequestrequest.md b/docs/models/getpinrequestrequest.md new file mode 100644 index 00000000..ac7a1f22 --- /dev/null +++ b/docs/models/getpinrequestrequest.md @@ -0,0 +1,9 @@ +# GetpinRequestRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `get_pin_request` | [models.GetPinRequest](../models/getpinrequest.md) | :heavy_check_mark: | Get pin request | \ No newline at end of file diff --git a/docs/models/getshortcutrequest.md b/docs/models/getshortcutrequest.md index af868a75..9da57465 100644 --- a/docs/models/getshortcutrequest.md +++ b/docs/models/getshortcutrequest.md @@ -1,8 +1,17 @@ # GetShortcutRequest -## Fields +## Supported Types + +### `models.UserGeneratedContentID` + +```python +value: models.UserGeneratedContentID = /* values here */ +``` + +### `models.GetShortcutRequest1` + +```python +value: models.GetShortcutRequest1 = /* values here */ +``` -| Field | Type | Required | Description | -| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | -| `alias` | *str* | :heavy_check_mark: | The alias for the shortcut, including any arguments for variable shortcuts. | \ No newline at end of file diff --git a/docs/models/getshortcutrequest1.md b/docs/models/getshortcutrequest1.md new file mode 100644 index 00000000..e8d23716 --- /dev/null +++ b/docs/models/getshortcutrequest1.md @@ -0,0 +1,8 @@ +# GetShortcutRequest1 + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `alias` | *str* | :heavy_check_mark: | The alias for the shortcut, including any arguments for variable shortcuts. | \ No newline at end of file diff --git a/docs/models/getshortcutrequestrequest.md b/docs/models/getshortcutrequestrequest.md new file mode 100644 index 00000000..79056b95 --- /dev/null +++ b/docs/models/getshortcutrequestrequest.md @@ -0,0 +1,9 @@ +# GetshortcutRequestRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `get_shortcut_request` | [models.GetShortcutRequest](../models/getshortcutrequest.md) | :heavy_check_mark: | GetShortcut request | \ No newline at end of file diff --git a/docs/models/getshortcutrequestunion.md b/docs/models/getshortcutrequestunion.md deleted file mode 100644 index 43835d51..00000000 --- a/docs/models/getshortcutrequestunion.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetShortcutRequestUnion - - -## Supported Types - -### `models.UserGeneratedContentID` - -```python -value: models.UserGeneratedContentID = /* values here */ -``` - -### `models.GetShortcutRequest` - -```python -value: models.GetShortcutRequest = /* values here */ -``` - diff --git a/docs/models/gleandataerror.md b/docs/models/gleandataerror.md index f1df02d4..7c4c0d90 100644 --- a/docs/models/gleandataerror.md +++ b/docs/models/gleandataerror.md @@ -3,9 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -| `bad_gmail_token` | *Optional[bool]* | :heavy_minus_sign: | Indicates the gmail results could not be fetched due to bad token. | -| `bad_outlook_token` | *Optional[bool]* | :heavy_minus_sign: | Indicates the outlook results could not be fetched due to bad token. | -| `invalid_operators` | List[[models.InvalidOperatorValueError](../models/invalidoperatorvalueerror.md)] | :heavy_minus_sign: | Indicates results could not be fetched due to invalid operators in the query. | -| `error_messages` | List[[models.ErrorMessage](../models/errormessage.md)] | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `bad_gmail_token` | *Optional[bool]* | :heavy_minus_sign: | Indicates the gmail results could not be fetched due to bad token. | +| `bad_outlook_token` | *Optional[bool]* | :heavy_minus_sign: | Indicates the outlook results could not be fetched due to bad token. | +| `invalid_operators` | List[[models.InvalidOperatorValueError](../models/invalidoperatorvalueerror.md)] | :heavy_minus_sign: | Indicates results could not be fetched due to invalid operators in the query. | +| `error_messages` | List[[models.ErrorMessage](../models/errormessage.md)] | :heavy_minus_sign: | N/A | +| `federated_search_rate_limit_error` | *Optional[bool]* | :heavy_minus_sign: | Indicates the federated search results could not be fetched due to rate limiting. | \ No newline at end of file diff --git a/docs/models/inputoptions.md b/docs/models/inputoptions.md index 6d068496..289414b1 100644 --- a/docs/models/inputoptions.md +++ b/docs/models/inputoptions.md @@ -12,4 +12,5 @@ Controls which data-sources and what time-range to include in scans. | ~~`datasources`~~ | List[*str*] | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

List of datasources to consider for report. DEPRECATED - use datasourceInstances instead. | | `datasource_instances` | List[*str*] | :heavy_minus_sign: | List of datasource instances to consider for report/policy. | | `time_period_type` | [Optional[models.InputOptionsTimePeriodType]](../models/inputoptionstimeperiodtype.md) | :heavy_minus_sign: | Type of time period for which to run the report/policy. PAST_DAY is deprecated. | -| `custom_time_range` | [Optional[models.TimeRange]](../models/timerange.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| `custom_time_range` | [Optional[models.TimeRange]](../models/timerange.md) | :heavy_minus_sign: | N/A | +| `subset_doc_ids_to_scan` | List[*str*] | :heavy_minus_sign: | Subset of document IDs to scan. If empty, all documents matching other scope criteria will be scanned. | \ No newline at end of file diff --git a/docs/models/insightsrequestrequest.md b/docs/models/insightsrequestrequest.md new file mode 100644 index 00000000..42aaa5da --- /dev/null +++ b/docs/models/insightsrequestrequest.md @@ -0,0 +1,9 @@ +# InsightsRequestRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `insights_request` | [models.InsightsRequest](../models/insightsrequest.md) | :heavy_check_mark: | Includes request parameters for insights requests. | \ No newline at end of file diff --git a/docs/models/listanswersrequestrequest.md b/docs/models/listanswersrequestrequest.md new file mode 100644 index 00000000..cbe66c04 --- /dev/null +++ b/docs/models/listanswersrequestrequest.md @@ -0,0 +1,9 @@ +# ListanswersRequestRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `list_answers_request` | [models.ListAnswersRequest](../models/listanswersrequest.md) | :heavy_check_mark: | ListAnswers request | \ No newline at end of file diff --git a/docs/models/listchatsrequest.md b/docs/models/listchatsrequest.md index 2b5b4b0e..9a0d7259 100644 --- a/docs/models/listchatsrequest.md +++ b/docs/models/listchatsrequest.md @@ -3,6 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `timezone_offset` | *Optional[int]* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezone_offset` | *Optional[int]* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | \ No newline at end of file diff --git a/docs/models/listcollectionsrequestrequest.md b/docs/models/listcollectionsrequestrequest.md new file mode 100644 index 00000000..1ccd21f3 --- /dev/null +++ b/docs/models/listcollectionsrequestrequest.md @@ -0,0 +1,9 @@ +# ListcollectionsRequestRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `list_collections_request` | [models.ListCollectionsRequest](../models/listcollectionsrequest.md) | :heavy_check_mark: | ListCollections request | \ No newline at end of file diff --git a/docs/models/listentitiesrequestrequest.md b/docs/models/listentitiesrequestrequest.md new file mode 100644 index 00000000..ec6cdd01 --- /dev/null +++ b/docs/models/listentitiesrequestrequest.md @@ -0,0 +1,9 @@ +# ListentitiesRequestRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `list_entities_request` | [models.ListEntitiesRequest](../models/listentitiesrequest.md) | :heavy_check_mark: | List people request | \ No newline at end of file diff --git a/docs/models/listpinsrequest.md b/docs/models/listpinsrequest.md index 4c0c3889..49bbce57 100644 --- a/docs/models/listpinsrequest.md +++ b/docs/models/listpinsrequest.md @@ -1,9 +1,9 @@ # ListpinsRequest -List pins request - ## Fields -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `request_body` | [models.ListpinsRequestBody](../models/listpinsrequestbody.md) | :heavy_check_mark: | List pins request | \ No newline at end of file diff --git a/docs/models/listpinsrequestbody.md b/docs/models/listpinsrequestbody.md new file mode 100644 index 00000000..ad2e4cbd --- /dev/null +++ b/docs/models/listpinsrequestbody.md @@ -0,0 +1,9 @@ +# ListpinsRequestBody + +List pins request + + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/listshortcutsrequest.md b/docs/models/listshortcutsrequest.md new file mode 100644 index 00000000..5ddc952c --- /dev/null +++ b/docs/models/listshortcutsrequest.md @@ -0,0 +1,9 @@ +# ListshortcutsRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `list_shortcuts_paginated_request` | [models.ListShortcutsPaginatedRequest](../models/listshortcutspaginatedrequest.md) | :heavy_check_mark: | Filters, sorters, paging params required for pagination | \ No newline at end of file diff --git a/docs/models/listverificationsrequest.md b/docs/models/listverificationsrequest.md index 6852a725..320d1323 100644 --- a/docs/models/listverificationsrequest.md +++ b/docs/models/listverificationsrequest.md @@ -3,6 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | ------------------------------------- | -| `count` | *Optional[int]* | :heavy_minus_sign: | Maximum number of documents to return | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `count` | *Optional[int]* | :heavy_minus_sign: | Maximum number of documents to return | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | \ No newline at end of file diff --git a/docs/models/messagesrequestrequest.md b/docs/models/messagesrequestrequest.md new file mode 100644 index 00000000..8acae398 --- /dev/null +++ b/docs/models/messagesrequestrequest.md @@ -0,0 +1,9 @@ +# MessagesRequestRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `messages_request` | [models.MessagesRequest](../models/messagesrequest.md) | :heavy_check_mark: | Includes request params such as the id for channel/message and direction. | \ No newline at end of file diff --git a/docs/models/peoplerequestrequest.md b/docs/models/peoplerequestrequest.md new file mode 100644 index 00000000..a7ddc183 --- /dev/null +++ b/docs/models/peoplerequestrequest.md @@ -0,0 +1,9 @@ +# PeopleRequestRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | | +| `people_request` | [models.PeopleRequest](../models/peoplerequest.md) | :heavy_check_mark: | People request | {
"obfuscatedIds": [
"abc123",
"abc456"
]
} | \ No newline at end of file diff --git a/docs/models/pinrequestrequest.md b/docs/models/pinrequestrequest.md new file mode 100644 index 00000000..a24b8b95 --- /dev/null +++ b/docs/models/pinrequestrequest.md @@ -0,0 +1,9 @@ +# PinRequestRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `pin_request` | [models.PinRequest](../models/pinrequest.md) | :heavy_check_mark: | Details about the document and query for the pin. | \ No newline at end of file diff --git a/docs/models/recommendationsrequestrequest.md b/docs/models/recommendationsrequestrequest.md new file mode 100644 index 00000000..763a6dba --- /dev/null +++ b/docs/models/recommendationsrequestrequest.md @@ -0,0 +1,9 @@ +# RecommendationsRequestRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `recommendations_request` | [models.RecommendationsRequest](../models/recommendationsrequest.md) | :heavy_check_mark: | Recommendations request | \ No newline at end of file diff --git a/docs/models/searchrequestrequest.md b/docs/models/searchrequestrequest.md new file mode 100644 index 00000000..79efc8a7 --- /dev/null +++ b/docs/models/searchrequestrequest.md @@ -0,0 +1,9 @@ +# SearchRequestRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | | +| `search_request` | [models.SearchRequest](../models/searchrequest.md) | :heavy_check_mark: | Search request | {
"trackingToken": "trackingToken",
"query": "vacation policy",
"pageSize": 10,
"requestOptions": {
"facetFilters": [
{
"fieldName": "type",
"values": [
{
"value": "article",
"relationType": "EQUALS"
},
{
"value": "document",
"relationType": "EQUALS"
}
]
},
{
"fieldName": "department",
"values": [
{
"value": "engineering",
"relationType": "EQUALS"
}
]
}
]
}
} | \ No newline at end of file diff --git a/docs/models/summarizerequestrequest.md b/docs/models/summarizerequestrequest.md new file mode 100644 index 00000000..e4f7d496 --- /dev/null +++ b/docs/models/summarizerequestrequest.md @@ -0,0 +1,9 @@ +# SummarizeRequestRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `summarize_request` | [models.SummarizeRequest](../models/summarizerequest.md) | :heavy_check_mark: | Includes request params such as the query and specs of the documents to summarize. | \ No newline at end of file diff --git a/docs/models/ugctype.md b/docs/models/ugctype.md index 252dc1e7..ffb3d59b 100644 --- a/docs/models/ugctype.md +++ b/docs/models/ugctype.md @@ -10,4 +10,5 @@ | `COLLECTIONS_TYPE` | COLLECTIONS_TYPE | | `SHORTCUTS_TYPE` | SHORTCUTS_TYPE | | `WORKFLOWS_TYPE` | WORKFLOWS_TYPE | -| `PROMPT_TEMPLATES_TYPE` | PROMPT_TEMPLATES_TYPE | \ No newline at end of file +| `PROMPT_TEMPLATES_TYPE` | PROMPT_TEMPLATES_TYPE | +| `PRISM_VIEWS_TYPE` | PRISM_VIEWS_TYPE | \ No newline at end of file diff --git a/docs/models/unpinrequest.md b/docs/models/unpinrequest.md new file mode 100644 index 00000000..41084238 --- /dev/null +++ b/docs/models/unpinrequest.md @@ -0,0 +1,9 @@ +# UnpinRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `unpin` | [models.Unpin](../models/unpin.md) | :heavy_check_mark: | Details about the pin being unpinned. | \ No newline at end of file diff --git a/docs/models/updateannouncementrequestrequest.md b/docs/models/updateannouncementrequestrequest.md new file mode 100644 index 00000000..e08d3f9c --- /dev/null +++ b/docs/models/updateannouncementrequestrequest.md @@ -0,0 +1,9 @@ +# UpdateannouncementRequestRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `update_announcement_request` | [models.UpdateAnnouncementRequest](../models/updateannouncementrequest.md) | :heavy_check_mark: | Announcement content. Id need to be specified for the announcement. | \ No newline at end of file diff --git a/docs/models/updateshortcutrequestrequest.md b/docs/models/updateshortcutrequestrequest.md new file mode 100644 index 00000000..cf21e686 --- /dev/null +++ b/docs/models/updateshortcutrequestrequest.md @@ -0,0 +1,9 @@ +# UpdateshortcutRequestRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `update_shortcut_request` | [models.UpdateShortcutRequest](../models/updateshortcutrequest.md) | :heavy_check_mark: | Shortcut content. Id need to be specified for the shortcut. | \ No newline at end of file diff --git a/docs/models/uploadchatfilesrequestrequest.md b/docs/models/uploadchatfilesrequestrequest.md index f849ef6b..47ad9ca6 100644 --- a/docs/models/uploadchatfilesrequestrequest.md +++ b/docs/models/uploadchatfilesrequestrequest.md @@ -3,7 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `timezone_offset` | *Optional[int]* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `upload_chat_files_request` | [models.UploadChatFilesRequest](../models/uploadchatfilesrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezone_offset` | *Optional[int]* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `upload_chat_files_request` | [models.UploadChatFilesRequest](../models/uploadchatfilesrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/verifyrequestrequest.md b/docs/models/verifyrequestrequest.md new file mode 100644 index 00000000..8f87704c --- /dev/null +++ b/docs/models/verifyrequestrequest.md @@ -0,0 +1,9 @@ +# VerifyRequestRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `verify_request` | [models.VerifyRequest](../models/verifyrequest.md) | :heavy_check_mark: | Details about the verification request. | \ No newline at end of file diff --git a/docs/sdks/agents/README.md b/docs/sdks/agents/README.md index 4e148967..cf7b0873 100644 --- a/docs/sdks/agents/README.md +++ b/docs/sdks/agents/README.md @@ -35,11 +35,12 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `agent_id` | *str* | :heavy_check_mark: | The ID of the agent. | -| `timezone_offset` | *Optional[int]* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `agent_id` | *str* | :heavy_check_mark: | The ID of the agent. | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezone_offset` | *Optional[int]* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -76,11 +77,12 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `agent_id` | *str* | :heavy_check_mark: | The ID of the agent. | -| `timezone_offset` | *Optional[int]* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `agent_id` | *str* | :heavy_check_mark: | The ID of the agent. | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezone_offset` | *Optional[int]* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response diff --git a/docs/sdks/announcements/README.md b/docs/sdks/announcements/README.md index de45b87e..6ce0ff13 100644 --- a/docs/sdks/announcements/README.md +++ b/docs/sdks/announcements/README.md @@ -1083,6 +1083,7 @@ with Glean( | `start_time` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | The date and time at which the announcement becomes active. | | `end_time` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | The date and time at which the announcement expires. | | `title` | *str* | :heavy_check_mark: | The headline of the announcement. | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | | `body` | [Optional[models.StructuredText]](../../models/structuredtext.md) | :heavy_minus_sign: | N/A | | `emoji` | *Optional[str]* | :heavy_minus_sign: | An emoji used to indicate the nature of the announcement. | | `thumbnail` | [Optional[models.Thumbnail]](../../models/thumbnail.md) | :heavy_minus_sign: | N/A | @@ -1130,10 +1131,11 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `id` | *int* | :heavy_check_mark: | The opaque id of the announcement to be deleted. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *int* | :heavy_check_mark: | The opaque id of the announcement to be deleted. | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Errors @@ -2217,6 +2219,7 @@ with Glean( | `end_time` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | The date and time at which the announcement expires. | | `title` | *str* | :heavy_check_mark: | The headline of the announcement. | | `id` | *int* | :heavy_check_mark: | The opaque id of the announcement. | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | | `body` | [Optional[models.StructuredText]](../../models/structuredtext.md) | :heavy_minus_sign: | N/A | | `emoji` | *Optional[str]* | :heavy_minus_sign: | An emoji used to indicate the nature of the announcement. | | `thumbnail` | [Optional[models.Thumbnail]](../../models/thumbnail.md) | :heavy_minus_sign: | N/A | diff --git a/docs/sdks/answers/README.md b/docs/sdks/answers/README.md index 49b87159..3090f9b1 100644 --- a/docs/sdks/answers/README.md +++ b/docs/sdks/answers/README.md @@ -83,10 +83,11 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `data` | [models.AnswerCreationData](../../models/answercreationdata.md) | :heavy_check_mark: | N/A | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `data` | [models.AnswerCreationData](../../models/answercreationdata.md) | :heavy_check_mark: | N/A | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -122,11 +123,12 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *int* | :heavy_check_mark: | The opaque ID of the Answer. | 3 | -| `doc_id` | *Optional[str]* | :heavy_minus_sign: | Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID isn't available. If both are available, using the Answer ID is preferred. | ANSWERS_answer_3 | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | +| Parameter | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *int* | :heavy_check_mark: | The opaque ID of the Answer. | 3 | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | | +| `doc_id` | *Optional[str]* | :heavy_minus_sign: | Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID isn't available. If both are available, using the Answer ID is preferred. | ANSWERS_answer_3 | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | ### Errors @@ -202,6 +204,7 @@ with Glean( | Parameter | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *int* | :heavy_check_mark: | The opaque ID of the Answer. | 3 | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | | | `doc_id` | *Optional[str]* | :heavy_minus_sign: | Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID isn't available. If both are available, using the Answer ID is preferred. | ANSWERS_answer_3 | | `question` | *Optional[str]* | :heavy_minus_sign: | N/A | Why is the sky blue? | | `question_variations` | List[*str*] | :heavy_minus_sign: | Additional ways of phrasing this question. | | @@ -253,11 +256,12 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *Optional[int]* | :heavy_minus_sign: | The opaque ID of the Answer. | 3 | -| `doc_id` | *Optional[str]* | :heavy_minus_sign: | Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID isn't available. If both are available, using the Answer ID is preferred. | ANSWERS_answer_3 | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | +| Parameter | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | | +| `id` | *Optional[int]* | :heavy_minus_sign: | The opaque ID of the Answer. | 3 | +| `doc_id` | *Optional[str]* | :heavy_minus_sign: | Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID isn't available. If both are available, using the Answer ID is preferred. | ANSWERS_answer_3 | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | ### Response @@ -273,7 +277,7 @@ with Glean( List Answers created by the current user. -> :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible. +> :warning: **DEPRECATED**: Deprecated on 2026-01-21, removal scheduled for 2026-10-15: Answer boards have been removed and this endpoint no longer serves a purpose. ### Example Usage @@ -296,10 +300,11 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `board_id` | *Optional[int]* | :heavy_minus_sign: | The Answer Board Id to list answers on. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `board_id` | *Optional[int]* | :heavy_minus_sign: | The Answer Board Id to list answers on. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response diff --git a/docs/sdks/clientchat/README.md b/docs/sdks/clientchat/README.md index 334595b1..c3c363b4 100644 --- a/docs/sdks/clientchat/README.md +++ b/docs/sdks/clientchat/README.md @@ -51,6 +51,7 @@ with Glean( | Parameter | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `messages` | List[[models.ChatMessage](../../models/chatmessage.md)] | :heavy_check_mark: | A list of chat messages, from most recent to least recent. At least one message must specify a USER author. | | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | | | `timezone_offset` | *Optional[int]* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | | | `session_info` | [Optional[models.SessionInfo]](../../models/sessioninfo.md) | :heavy_minus_sign: | N/A | | | `save_chat` | *Optional[bool]* | :heavy_minus_sign: | Save the current interaction as a Chat for the user to access and potentially continue later. | | @@ -98,10 +99,11 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `timezone_offset` | *Optional[int]* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezone_offset` | *Optional[int]* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Errors @@ -133,11 +135,12 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `ids` | List[*str*] | :heavy_check_mark: | A non-empty list of ids of the Chats to be deleted. | -| `timezone_offset` | *Optional[int]* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `ids` | List[*str*] | :heavy_check_mark: | A non-empty list of ids of the Chats to be deleted. | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezone_offset` | *Optional[int]* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Errors @@ -170,11 +173,12 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `id` | *str* | :heavy_check_mark: | The id of the Chat to be retrieved. | -| `timezone_offset` | *Optional[int]* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *str* | :heavy_check_mark: | The id of the Chat to be retrieved. | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezone_offset` | *Optional[int]* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -211,10 +215,11 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `timezone_offset` | *Optional[int]* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezone_offset` | *Optional[int]* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -251,11 +256,12 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `id` | *str* | :heavy_check_mark: | The id of the Chat application to be retrieved. | -| `timezone_offset` | *Optional[int]* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *str* | :heavy_check_mark: | The id of the Chat application to be retrieved. | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezone_offset` | *Optional[int]* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -292,11 +298,12 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `files` | List[[models.File](../../models/file.md)] | :heavy_check_mark: | Raw files to be uploaded for chat in binary format. | -| `timezone_offset` | *Optional[int]* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `files` | List[[models.File](../../models/file.md)] | :heavy_check_mark: | Raw files to be uploaded for chat in binary format. | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezone_offset` | *Optional[int]* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -335,11 +342,12 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `file_ids` | List[*str*] | :heavy_check_mark: | IDs of files to fetch. | -| `timezone_offset` | *Optional[int]* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `file_ids` | List[*str*] | :heavy_check_mark: | IDs of files to fetch. | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezone_offset` | *Optional[int]* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -379,11 +387,12 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `file_ids` | List[*str*] | :heavy_check_mark: | IDs of files to delete. | -| `timezone_offset` | *Optional[int]* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `file_ids` | List[*str*] | :heavy_check_mark: | IDs of files to delete. | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezone_offset` | *Optional[int]* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Errors diff --git a/docs/sdks/clientdocuments/README.md b/docs/sdks/clientdocuments/README.md index 8ef28d90..8b6d7b29 100644 --- a/docs/sdks/clientdocuments/README.md +++ b/docs/sdks/clientdocuments/README.md @@ -34,10 +34,11 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `document_id` | *Optional[str]* | :heavy_minus_sign: | The Glean Document ID to retrieve permissions for. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `document_id` | *Optional[str]* | :heavy_minus_sign: | The Glean Document ID to retrieve permissions for. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -74,10 +75,11 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `request` | [models.GetDocumentsRequest](../../models/getdocumentsrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `get_documents_request` | [Optional[models.GetDocumentsRequest]](../../models/getdocumentsrequest.md) | :heavy_minus_sign: | Information about documents requested. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -105,7 +107,7 @@ with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), ) as glean: - res = glean.client.documents.retrieve_by_facets(request={ + res = glean.client.documents.retrieve_by_facets(get_documents_by_facets_request={ "filter_sets": [ { "filters": [ @@ -134,10 +136,11 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | -| `request` | [models.GetDocumentsByFacetsRequest](../../models/getdocumentsbyfacetsrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `get_documents_by_facets_request` | [Optional[models.GetDocumentsByFacetsRequest]](../../models/getdocumentsbyfacetsrequest.md) | :heavy_minus_sign: | Information about facet conditions for documents to be retrieved. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -179,14 +182,15 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | -| `document_specs` | List[[models.DocumentSpecUnion](../../models/documentspecunion.md)] | :heavy_check_mark: | Specifications of documents to summarize | -| `timestamp` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | The ISO 8601 timestamp associated with the client request. | -| `query` | *Optional[str]* | :heavy_minus_sign: | Optional query that the summary should be about | -| `preferred_summary_length` | *Optional[int]* | :heavy_minus_sign: | Optional length of summary output. If not given, defaults to 500 chars. | -| `tracking_token` | *Optional[str]* | :heavy_minus_sign: | An opaque token that represents this particular result. To be used for /feedback reporting. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `document_specs` | List[[models.DocumentSpecUnion](../../models/documentspecunion.md)] | :heavy_check_mark: | Specifications of documents to summarize | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timestamp` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | The ISO 8601 timestamp associated with the client request. | +| `query` | *Optional[str]* | :heavy_minus_sign: | Optional query that the summary should be about | +| `preferred_summary_length` | *Optional[int]* | :heavy_minus_sign: | Optional length of summary output. If not given, defaults to 500 chars. | +| `tracking_token` | *Optional[str]* | :heavy_minus_sign: | An opaque token that represents this particular result. To be used for /feedback reporting. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response diff --git a/docs/sdks/clientshortcuts/README.md b/docs/sdks/clientshortcuts/README.md index 159d46c1..9d7f63e9 100644 --- a/docs/sdks/clientshortcuts/README.md +++ b/docs/sdks/clientshortcuts/README.md @@ -54,10 +54,11 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | -| `data` | [models.ShortcutMutableProperties](../../models/shortcutmutableproperties.md) | :heavy_check_mark: | N/A | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `data` | [models.ShortcutMutableProperties](../../models/shortcutmutableproperties.md) | :heavy_check_mark: | N/A | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -93,10 +94,11 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `id` | *int* | :heavy_check_mark: | The opaque id of the user generated content. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *int* | :heavy_check_mark: | The opaque id of the user generated content. | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Errors @@ -120,7 +122,7 @@ with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), ) as glean: - res = glean.client.shortcuts.retrieve(request={ + res = glean.client.shortcuts.retrieve(get_shortcut_request={ "alias": "", }) @@ -131,10 +133,11 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | -| `request` | [models.GetShortcutRequestUnion](../../models/getshortcutrequestunion.md) | :heavy_check_mark: | The request object to use for the request. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `get_shortcut_request` | [models.GetShortcutRequest](../../models/getshortcutrequest.md) | :heavy_check_mark: | GetShortcut request | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -185,15 +188,16 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `page_size` | *int* | :heavy_check_mark: | N/A | 10 | -| `include_fields` | List[[models.ListShortcutsPaginatedRequestIncludeField](../../models/listshortcutspaginatedrequestincludefield.md)] | :heavy_minus_sign: | Array of fields/data to be included in response that are not included by default | | -| `cursor` | *Optional[str]* | :heavy_minus_sign: | A token specifying the position in the overall results to start at. Received from the endpoint and iterated back. Currently being used as page no (as we implement offset pagination) | | -| `filters` | List[[models.FacetFilter](../../models/facetfilter.md)] | :heavy_minus_sign: | A list of filters for the query. An AND is assumed between different filters. We support filters on Go Link name, author, department and type. | | -| `sort` | [Optional[models.SortOptions]](../../models/sortoptions.md) | :heavy_minus_sign: | N/A | | -| `query` | *Optional[str]* | :heavy_minus_sign: | Search query that should be a substring in atleast one of the fields (alias , inputAlias, destinationUrl, description). Empty query does not filter shortcuts. | | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | +| Parameter | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `page_size` | *int* | :heavy_check_mark: | N/A | 10 | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | | +| `include_fields` | List[[models.ListShortcutsPaginatedRequestIncludeField](../../models/listshortcutspaginatedrequestincludefield.md)] | :heavy_minus_sign: | Array of fields/data to be included in response that are not included by default | | +| `cursor` | *Optional[str]* | :heavy_minus_sign: | A token specifying the position in the overall results to start at. Received from the endpoint and iterated back. Currently being used as page no (as we implement offset pagination) | | +| `filters` | List[[models.FacetFilter](../../models/facetfilter.md)] | :heavy_minus_sign: | A list of filters for the query. An AND is assumed between different filters. We support filters on Go Link name, author, department and type. | | +| `sort` | [Optional[models.SortOptions]](../../models/sortoptions.md) | :heavy_minus_sign: | N/A | | +| `query` | *Optional[str]* | :heavy_minus_sign: | Search query that should be a substring in atleast one of the fields (alias , inputAlias, destinationUrl, description). Empty query does not filter shortcuts. | | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | ### Response @@ -246,18 +250,19 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | -| `id` | *int* | :heavy_check_mark: | The opaque id of the user generated content. | -| `input_alias` | *Optional[str]* | :heavy_minus_sign: | Link text following go/ prefix as entered by the user. | -| `destination_url` | *Optional[str]* | :heavy_minus_sign: | Destination URL for the shortcut. | -| `destination_document_id` | *Optional[str]* | :heavy_minus_sign: | Glean Document ID for the URL, if known. | -| `description` | *Optional[str]* | :heavy_minus_sign: | A short, plain text blurb to help people understand the intent of the shortcut. | -| `unlisted` | *Optional[bool]* | :heavy_minus_sign: | Whether this shortcut is unlisted or not. Unlisted shortcuts are visible to author + admins only. | -| `url_template` | *Optional[str]* | :heavy_minus_sign: | For variable shortcuts, contains the URL template; note, `destinationUrl` contains default URL. | -| `added_roles` | List[[models.UserRoleSpecification](../../models/userrolespecification.md)] | :heavy_minus_sign: | A list of user roles added for the Shortcut. | -| `removed_roles` | List[[models.UserRoleSpecification](../../models/userrolespecification.md)] | :heavy_minus_sign: | A list of user roles removed for the Shortcut. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *int* | :heavy_check_mark: | The opaque id of the user generated content. | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `input_alias` | *Optional[str]* | :heavy_minus_sign: | Link text following go/ prefix as entered by the user. | +| `destination_url` | *Optional[str]* | :heavy_minus_sign: | Destination URL for the shortcut. | +| `destination_document_id` | *Optional[str]* | :heavy_minus_sign: | Glean Document ID for the URL, if known. | +| `description` | *Optional[str]* | :heavy_minus_sign: | A short, plain text blurb to help people understand the intent of the shortcut. | +| `unlisted` | *Optional[bool]* | :heavy_minus_sign: | Whether this shortcut is unlisted or not. Unlisted shortcuts are visible to author + admins only. | +| `url_template` | *Optional[str]* | :heavy_minus_sign: | For variable shortcuts, contains the URL template; note, `destinationUrl` contains default URL. | +| `added_roles` | List[[models.UserRoleSpecification](../../models/userrolespecification.md)] | :heavy_minus_sign: | A list of user roles added for the Shortcut. | +| `removed_roles` | List[[models.UserRoleSpecification](../../models/userrolespecification.md)] | :heavy_minus_sign: | A list of user roles removed for the Shortcut. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response diff --git a/docs/sdks/clientverification/README.md b/docs/sdks/clientverification/README.md index 859adc03..63fa8d6c 100644 --- a/docs/sdks/clientverification/README.md +++ b/docs/sdks/clientverification/README.md @@ -36,6 +36,7 @@ with Glean( | Parameter | Type | Required | Description | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `document_id` | *str* | :heavy_check_mark: | The document which the verification is for new reminders and/or update. | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | | `assignee` | *Optional[str]* | :heavy_minus_sign: | The obfuscated id of the person this verification is assigned to. | | `remind_in_days` | *Optional[int]* | :heavy_minus_sign: | Reminder for the next verifications in terms of days. For deletion, this will be omitted. | | `reason` | *Optional[str]* | :heavy_minus_sign: | An optional free-text reason for the reminder. This is particularly useful when a reminder is used to ask for verification from another user (for example, "Duplicate", "Incomplete", "Incorrect"). | @@ -76,10 +77,11 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `count` | *Optional[int]* | :heavy_minus_sign: | Maximum number of documents to return | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `count` | *Optional[int]* | :heavy_minus_sign: | Maximum number of documents to return | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -116,11 +118,12 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | -| `document_id` | *str* | :heavy_check_mark: | The document which is verified. | -| `action` | [Optional[models.VerifyRequestAction]](../../models/verifyrequestaction.md) | :heavy_minus_sign: | The verification action requested. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `document_id` | *str* | :heavy_check_mark: | The document which is verified. | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `action` | [Optional[models.VerifyRequestAction]](../../models/verifyrequestaction.md) | :heavy_minus_sign: | The verification action requested. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response diff --git a/docs/sdks/collections/README.md b/docs/sdks/collections/README.md index 4b05e197..f311071e 100644 --- a/docs/sdks/collections/README.md +++ b/docs/sdks/collections/README.md @@ -38,11 +38,12 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | -| `collection_id` | *float* | :heavy_check_mark: | The ID of the Collection to add items to. | -| `added_collection_item_descriptors` | List[[models.CollectionItemDescriptor](../../models/collectionitemdescriptor.md)] | :heavy_minus_sign: | The CollectionItemDescriptors of the items being added. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `collection_id` | *float* | :heavy_check_mark: | The ID of the Collection to add items to. | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `added_collection_item_descriptors` | List[[models.CollectionItemDescriptor](../../models/collectionitemdescriptor.md)] | :heavy_minus_sign: | The CollectionItemDescriptors of the items being added. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -109,20 +110,21 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `name` | *str* | :heavy_check_mark: | The unique name of the Collection. | -| `description` | *Optional[str]* | :heavy_minus_sign: | A brief summary of the Collection's contents. | -| `added_roles` | List[[models.UserRoleSpecification](../../models/userrolespecification.md)] | :heavy_minus_sign: | A list of added user roles for the Collection. | -| `removed_roles` | List[[models.UserRoleSpecification](../../models/userrolespecification.md)] | :heavy_minus_sign: | A list of removed user roles for the Collection. | -| `audience_filters` | List[[models.FacetFilter](../../models/facetfilter.md)] | :heavy_minus_sign: | Filters which restrict who should see this Collection. Values are taken from the corresponding filters in people search. | -| `icon` | *Optional[str]* | :heavy_minus_sign: | The emoji icon of this Collection. | -| `admin_locked` | *Optional[bool]* | :heavy_minus_sign: | Indicates whether edits are allowed for everyone or only admins. | -| `parent_id` | *Optional[int]* | :heavy_minus_sign: | The parent of this Collection, or 0 if it's a top-level Collection. | -| `thumbnail` | [Optional[models.Thumbnail]](../../models/thumbnail.md) | :heavy_minus_sign: | N/A | -| `allowed_datasource` | *Optional[str]* | :heavy_minus_sign: | The datasource type this Collection can hold. | -| `new_next_item_id` | *Optional[str]* | :heavy_minus_sign: | The (optional) ItemId of the next CollectionItem in sequence. If omitted, will be added to the end of the Collection. Only used if parentId is specified. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `name` | *str* | :heavy_check_mark: | The unique name of the Collection. | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `description` | *Optional[str]* | :heavy_minus_sign: | A brief summary of the Collection's contents. | +| `added_roles` | List[[models.UserRoleSpecification](../../models/userrolespecification.md)] | :heavy_minus_sign: | A list of added user roles for the Collection. | +| `removed_roles` | List[[models.UserRoleSpecification](../../models/userrolespecification.md)] | :heavy_minus_sign: | A list of removed user roles for the Collection. | +| `audience_filters` | List[[models.FacetFilter](../../models/facetfilter.md)] | :heavy_minus_sign: | Filters which restrict who should see this Collection. Values are taken from the corresponding filters in people search. | +| `icon` | *Optional[str]* | :heavy_minus_sign: | The emoji icon of this Collection. | +| `admin_locked` | *Optional[bool]* | :heavy_minus_sign: | Indicates whether edits are allowed for everyone or only admins. | +| `parent_id` | *Optional[int]* | :heavy_minus_sign: | The parent of this Collection, or 0 if it's a top-level Collection. | +| `thumbnail` | [Optional[models.Thumbnail]](../../models/thumbnail.md) | :heavy_minus_sign: | N/A | +| `allowed_datasource` | *Optional[str]* | :heavy_minus_sign: | The datasource type this Collection can hold. | +| `new_next_item_id` | *Optional[str]* | :heavy_minus_sign: | The (optional) ItemId of the next CollectionItem in sequence. If omitted, will be added to the end of the Collection. Only used if parentId is specified. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -163,11 +165,12 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `ids` | List[*int*] | :heavy_check_mark: | The IDs of the Collections to delete. | -| `allowed_datasource` | *Optional[str]* | :heavy_minus_sign: | The datasource allowed in the Collection to be deleted. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `ids` | List[*int*] | :heavy_check_mark: | The IDs of the Collections to delete. | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `allowed_datasource` | *Optional[str]* | :heavy_minus_sign: | The datasource allowed in the Collection to be deleted. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Errors @@ -201,12 +204,13 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | -| `collection_id` | *float* | :heavy_check_mark: | The ID of the Collection to remove an item in. | -| `item_id` | *str* | :heavy_check_mark: | The item ID of the CollectionItem to remove from this Collection. | -| `document_id` | *Optional[str]* | :heavy_minus_sign: | The (optional) Glean Document ID of the CollectionItem to remove from this Collection if this is an indexed document. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `collection_id` | *float* | :heavy_check_mark: | The ID of the Collection to remove an item in. | +| `item_id` | *str* | :heavy_check_mark: | The item ID of the CollectionItem to remove from this Collection. | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `document_id` | *Optional[str]* | :heavy_minus_sign: | The (optional) Glean Document ID of the CollectionItem to remove from this Collection if this is an indexed document. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -273,20 +277,21 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `name` | *str* | :heavy_check_mark: | The unique name of the Collection. | -| `id` | *int* | :heavy_check_mark: | The ID of the Collection to modify. | -| `description` | *Optional[str]* | :heavy_minus_sign: | A brief summary of the Collection's contents. | -| `added_roles` | List[[models.UserRoleSpecification](../../models/userrolespecification.md)] | :heavy_minus_sign: | A list of added user roles for the Collection. | -| `removed_roles` | List[[models.UserRoleSpecification](../../models/userrolespecification.md)] | :heavy_minus_sign: | A list of removed user roles for the Collection. | -| `audience_filters` | List[[models.FacetFilter](../../models/facetfilter.md)] | :heavy_minus_sign: | Filters which restrict who should see this Collection. Values are taken from the corresponding filters in people search. | -| `icon` | *Optional[str]* | :heavy_minus_sign: | The emoji icon of this Collection. | -| `admin_locked` | *Optional[bool]* | :heavy_minus_sign: | Indicates whether edits are allowed for everyone or only admins. | -| `parent_id` | *Optional[int]* | :heavy_minus_sign: | The parent of this Collection, or 0 if it's a top-level Collection. | -| `thumbnail` | [Optional[models.Thumbnail]](../../models/thumbnail.md) | :heavy_minus_sign: | N/A | -| `allowed_datasource` | *Optional[str]* | :heavy_minus_sign: | The datasource type this Collection can hold. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `name` | *str* | :heavy_check_mark: | The unique name of the Collection. | +| `id` | *int* | :heavy_check_mark: | The ID of the Collection to modify. | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `description` | *Optional[str]* | :heavy_minus_sign: | A brief summary of the Collection's contents. | +| `added_roles` | List[[models.UserRoleSpecification](../../models/userrolespecification.md)] | :heavy_minus_sign: | A list of added user roles for the Collection. | +| `removed_roles` | List[[models.UserRoleSpecification](../../models/userrolespecification.md)] | :heavy_minus_sign: | A list of removed user roles for the Collection. | +| `audience_filters` | List[[models.FacetFilter](../../models/facetfilter.md)] | :heavy_minus_sign: | Filters which restrict who should see this Collection. Values are taken from the corresponding filters in people search. | +| `icon` | *Optional[str]* | :heavy_minus_sign: | The emoji icon of this Collection. | +| `admin_locked` | *Optional[bool]* | :heavy_minus_sign: | Indicates whether edits are allowed for everyone or only admins. | +| `parent_id` | *Optional[int]* | :heavy_minus_sign: | The parent of this Collection, or 0 if it's a top-level Collection. | +| `thumbnail` | [Optional[models.Thumbnail]](../../models/thumbnail.md) | :heavy_minus_sign: | N/A | +| `allowed_datasource` | *Optional[str]* | :heavy_minus_sign: | The datasource type this Collection can hold. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -324,14 +329,15 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | -| `collection_id` | *int* | :heavy_check_mark: | The ID of the Collection to edit CollectionItems in. | -| `item_id` | *str* | :heavy_check_mark: | The ID of the CollectionItem to edit. | -| `name` | *Optional[str]* | :heavy_minus_sign: | The optional name of the Collection item. | -| `description` | *Optional[str]* | :heavy_minus_sign: | A helpful description of why this CollectionItem is in the Collection that it's in. | -| `icon` | *Optional[str]* | :heavy_minus_sign: | The emoji icon for this CollectionItem. Only used for Text type items. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `collection_id` | *int* | :heavy_check_mark: | The ID of the Collection to edit CollectionItems in. | +| `item_id` | *str* | :heavy_check_mark: | The ID of the CollectionItem to edit. | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `name` | *Optional[str]* | :heavy_minus_sign: | The optional name of the Collection item. | +| `description` | *Optional[str]* | :heavy_minus_sign: | A helpful description of why this CollectionItem is in the Collection that it's in. | +| `icon` | *Optional[str]* | :heavy_minus_sign: | The emoji icon for this CollectionItem. Only used for Text type items. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -368,13 +374,14 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `id` | *int* | :heavy_check_mark: | The ID of the Collection to be retrieved. | -| `with_items` | *Optional[bool]* | :heavy_minus_sign: | Whether or not to include the Collection Items in this Collection. Only request if absolutely required, as this is expensive. | -| `with_hierarchy` | *Optional[bool]* | :heavy_minus_sign: | Whether or not to include the top level Collection in this Collection's hierarchy. | -| `allowed_datasource` | *Optional[str]* | :heavy_minus_sign: | The datasource allowed in the Collection returned. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *int* | :heavy_check_mark: | The ID of the Collection to be retrieved. | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `with_items` | *Optional[bool]* | :heavy_minus_sign: | Whether or not to include the Collection Items in this Collection. Only request if absolutely required, as this is expensive. | +| `with_hierarchy` | *Optional[bool]* | :heavy_minus_sign: | Whether or not to include the top level Collection in this Collection's hierarchy. | +| `allowed_datasource` | *Optional[str]* | :heavy_minus_sign: | The datasource allowed in the Collection returned. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -411,12 +418,13 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `include_audience` | *Optional[bool]* | :heavy_minus_sign: | Whether to include the audience filters with the listed Collections. | -| `include_roles` | *Optional[bool]* | :heavy_minus_sign: | Whether to include the editor roles with the listed Collections. | -| `allowed_datasource` | *Optional[str]* | :heavy_minus_sign: | The datasource type this Collection can hold.
ANSWERS - for Collections representing answer boards | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `include_audience` | *Optional[bool]* | :heavy_minus_sign: | Whether to include the audience filters with the listed Collections. | +| `include_roles` | *Optional[bool]* | :heavy_minus_sign: | Whether to include the editor roles with the listed Collections. | +| `allowed_datasource` | *Optional[str]* | :heavy_minus_sign: | The datasource type this Collection can hold.
ANSWERS - for Collections representing answer boards | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response diff --git a/docs/sdks/entities/README.md b/docs/sdks/entities/README.md index 70e149bf..0ac68e93 100644 --- a/docs/sdks/entities/README.md +++ b/docs/sdks/entities/README.md @@ -46,19 +46,20 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | -| `filter_` | List[[models.FacetFilter](../../models/facetfilter.md)] | :heavy_minus_sign: | N/A | | -| `sort` | List[[models.SortOptions](../../models/sortoptions.md)] | :heavy_minus_sign: | Use EntitiesSortOrder enum for SortOptions.sortBy | | -| `entity_type` | [Optional[models.ListEntitiesRequestEntityType]](../../models/listentitiesrequestentitytype.md) | :heavy_minus_sign: | N/A | | -| `datasource` | *Optional[str]* | :heavy_minus_sign: | The datasource associated with the entity type, most commonly used with CUSTOM_ENTITIES | | -| `query` | *Optional[str]* | :heavy_minus_sign: | A query string to search for entities that each entity in the response must conform to. An empty query does not filter any entities. | | -| `include_fields` | List[[models.ListEntitiesRequestIncludeField](../../models/listentitiesrequestincludefield.md)] | :heavy_minus_sign: | List of entity fields to return (that aren't returned by default) | | -| `page_size` | *Optional[int]* | :heavy_minus_sign: | Hint to the server about how many results to send back. Server may return less. | 100 | -| `cursor` | *Optional[str]* | :heavy_minus_sign: | Pagination cursor. A previously received opaque token representing the position in the overall results at which to start. | | -| `source` | *Optional[str]* | :heavy_minus_sign: | A string denoting the search surface from which the endpoint is called. | | -| `request_type` | [Optional[models.RequestType]](../../models/requesttype.md) | :heavy_minus_sign: | The type of request being made. | | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | +| Parameter | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | | +| `filter_` | List[[models.FacetFilter](../../models/facetfilter.md)] | :heavy_minus_sign: | N/A | | +| `sort` | List[[models.SortOptions](../../models/sortoptions.md)] | :heavy_minus_sign: | Use EntitiesSortOrder enum for SortOptions.sortBy | | +| `entity_type` | [Optional[models.ListEntitiesRequestEntityType]](../../models/listentitiesrequestentitytype.md) | :heavy_minus_sign: | N/A | | +| `datasource` | *Optional[str]* | :heavy_minus_sign: | The datasource associated with the entity type, most commonly used with CUSTOM_ENTITIES | | +| `query` | *Optional[str]* | :heavy_minus_sign: | A query string to search for entities that each entity in the response must conform to. An empty query does not filter any entities. | | +| `include_fields` | List[[models.ListEntitiesRequestIncludeField](../../models/listentitiesrequestincludefield.md)] | :heavy_minus_sign: | List of entity fields to return (that aren't returned by default) | | +| `page_size` | *Optional[int]* | :heavy_minus_sign: | Hint to the server about how many results to send back. Server may return less. | 100 | +| `cursor` | *Optional[str]* | :heavy_minus_sign: | Pagination cursor. A previously received opaque token representing the position in the overall results at which to start. | | +| `source` | *Optional[str]* | :heavy_minus_sign: | A string denoting the search surface from which the endpoint is called. | | +| `request_type` | [Optional[models.RequestType]](../../models/requesttype.md) | :heavy_minus_sign: | The type of request being made. | | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | ### Response @@ -98,15 +99,16 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `timezone_offset` | *Optional[int]* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `obfuscated_ids` | List[*str*] | :heavy_minus_sign: | The Person IDs to retrieve. If no IDs are requested, the current user's details are returned. | -| `email_ids` | List[*str*] | :heavy_minus_sign: | The email IDs to retrieve. The result is the deduplicated union of emailIds and obfuscatedIds. | -| `include_fields` | List[[models.PeopleRequestIncludeField](../../models/peoplerequestincludefield.md)] | :heavy_minus_sign: | List of PersonMetadata fields to return (that aren't returned by default) | -| `include_types` | List[[models.IncludeType](../../models/includetype.md)] | :heavy_minus_sign: | The types of people entities to include in the response in addition to those returned by default. | -| `source` | *Optional[str]* | :heavy_minus_sign: | A string denoting the search surface from which the endpoint is called. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezone_offset` | *Optional[int]* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `obfuscated_ids` | List[*str*] | :heavy_minus_sign: | The Person IDs to retrieve. If no IDs are requested, the current user's details are returned. | +| `email_ids` | List[*str*] | :heavy_minus_sign: | The email IDs to retrieve. The result is the deduplicated union of emailIds and obfuscatedIds. | +| `include_fields` | List[[models.PeopleRequestIncludeField](../../models/peoplerequestincludefield.md)] | :heavy_minus_sign: | List of PersonMetadata fields to return (that aren't returned by default) | +| `include_types` | List[[models.IncludeType](../../models/includetype.md)] | :heavy_minus_sign: | The types of people entities to include in the response in addition to those returned by default. | +| `source` | *Optional[str]* | :heavy_minus_sign: | A string denoting the search surface from which the endpoint is called. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response diff --git a/docs/sdks/insights/README.md b/docs/sdks/insights/README.md index deff4674..6550149d 100644 --- a/docs/sdks/insights/README.md +++ b/docs/sdks/insights/README.md @@ -33,6 +33,7 @@ with Glean( | Parameter | Type | Required | Description | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | | `overview_request` | [Optional[models.InsightsOverviewRequest]](../../models/insightsoverviewrequest.md) | :heavy_minus_sign: | N/A | | `assistant_request` | [Optional[models.InsightsAssistantRequest]](../../models/insightsassistantrequest.md) | :heavy_minus_sign: | N/A | | `agents_request` | [Optional[models.AgentsInsightsV2Request]](../../models/agentsinsightsv2request.md) | :heavy_minus_sign: | N/A | diff --git a/docs/sdks/messages/README.md b/docs/sdks/messages/README.md index 38f6cfda..0aa193b3 100644 --- a/docs/sdks/messages/README.md +++ b/docs/sdks/messages/README.md @@ -31,17 +31,18 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `id_type` | [models.IDType](../../models/idtype.md) | :heavy_check_mark: | Type of the id in the incoming request. | -| `id` | *str* | :heavy_check_mark: | ID corresponding to the requested idType. Note that channel and threads are represented by the underlying datasource's ID and conversations are represented by their document's ID. | -| `datasource` | [models.Datasource](../../models/datasource.md) | :heavy_check_mark: | The type of the data source. | -| `workspace_id` | *Optional[str]* | :heavy_minus_sign: | Id for the for the workspace in case of multiple workspaces. | -| `direction` | [Optional[models.Direction]](../../models/direction.md) | :heavy_minus_sign: | The direction of the results asked with respect to the reference timestamp. Missing field defaults to OLDER. Only applicable when using a message_id. | -| `timestamp_millis` | *Optional[int]* | :heavy_minus_sign: | Timestamp in millis of the reference message. Only applicable when using a message_id. | -| `include_root_message` | *Optional[bool]* | :heavy_minus_sign: | Whether to include root message in response. | -| `datasource_instance_display_name` | *Optional[str]* | :heavy_minus_sign: | The datasource instance display name from which the document was extracted. This is used for appinstance facet filter for datasources that support multiple instances. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `id_type` | [models.IDType](../../models/idtype.md) | :heavy_check_mark: | Type of the id in the incoming request. | +| `id` | *str* | :heavy_check_mark: | ID corresponding to the requested idType. Note that channel and threads are represented by the underlying datasource's ID and conversations are represented by their document's ID. | +| `datasource` | [models.Datasource](../../models/datasource.md) | :heavy_check_mark: | The type of the data source. | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `workspace_id` | *Optional[str]* | :heavy_minus_sign: | Id for the for the workspace in case of multiple workspaces. | +| `direction` | [Optional[models.Direction]](../../models/direction.md) | :heavy_minus_sign: | The direction of the results asked with respect to the reference timestamp. Missing field defaults to OLDER. Only applicable when using a message_id. | +| `timestamp_millis` | *Optional[int]* | :heavy_minus_sign: | Timestamp in millis of the reference message. Only applicable when using a message_id. | +| `include_root_message` | *Optional[bool]* | :heavy_minus_sign: | Whether to include root message in response. | +| `datasource_instance_display_name` | *Optional[str]* | :heavy_minus_sign: | The datasource instance display name from which the document was extracted. This is used for appinstance facet filter for datasources that support multiple instances. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response diff --git a/docs/sdks/pins/README.md b/docs/sdks/pins/README.md index 31108891..3a4952c3 100644 --- a/docs/sdks/pins/README.md +++ b/docs/sdks/pins/README.md @@ -49,12 +49,13 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | -| `queries` | List[*str*] | :heavy_minus_sign: | The query strings for which the pinned result will show. | -| `audience_filters` | List[[models.FacetFilter](../../models/facetfilter.md)] | :heavy_minus_sign: | Filters which restrict who should see the pinned document. Values are taken from the corresponding filters in people search. | -| `id` | *Optional[str]* | :heavy_minus_sign: | The opaque id of the pin to be edited. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `queries` | List[*str*] | :heavy_minus_sign: | The query strings for which the pinned result will show. | +| `audience_filters` | List[[models.FacetFilter](../../models/facetfilter.md)] | :heavy_minus_sign: | Filters which restrict who should see the pinned document. Values are taken from the corresponding filters in people search. | +| `id` | *Optional[str]* | :heavy_minus_sign: | The opaque id of the pin to be edited. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -91,10 +92,11 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `id` | *Optional[str]* | :heavy_minus_sign: | The opaque id of the pin to be fetched. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `id` | *Optional[str]* | :heavy_minus_sign: | The opaque id of the pin to be fetched. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -122,7 +124,7 @@ with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), ) as glean: - res = glean.client.pins.list(request={}) + res = glean.client.pins.list(request_body={}) # Handle response print(res) @@ -131,10 +133,11 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `request` | [models.ListpinsRequest](../../models/listpinsrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `request_body` | [models.ListpinsRequestBody](../../models/listpinsrequestbody.md) | :heavy_check_mark: | List pins request | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -185,12 +188,13 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | -| `queries` | List[*str*] | :heavy_minus_sign: | The query strings for which the pinned result will show. | -| `audience_filters` | List[[models.FacetFilter](../../models/facetfilter.md)] | :heavy_minus_sign: | Filters which restrict who should see the pinned document. Values are taken from the corresponding filters in people search. | -| `document_id` | *Optional[str]* | :heavy_minus_sign: | The document to be pinned. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `queries` | List[*str*] | :heavy_minus_sign: | The query strings for which the pinned result will show. | +| `audience_filters` | List[[models.FacetFilter](../../models/facetfilter.md)] | :heavy_minus_sign: | Filters which restrict who should see the pinned document. Values are taken from the corresponding filters in people search. | +| `document_id` | *Optional[str]* | :heavy_minus_sign: | The document to be pinned. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -226,10 +230,11 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `id` | *Optional[str]* | :heavy_minus_sign: | The opaque id of the pin to be unpinned. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `id` | *Optional[str]* | :heavy_minus_sign: | The opaque id of the pin to be unpinned. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Errors diff --git a/docs/sdks/search/README.md b/docs/sdks/search/README.md index 546e545a..7e640dd6 100644 --- a/docs/sdks/search/README.md +++ b/docs/sdks/search/README.md @@ -138,6 +138,7 @@ with Glean( | Parameter | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `query` | *str* | :heavy_check_mark: | The search terms. | vacation policy | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | | | `timestamp` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | The ISO 8601 timestamp associated with the client request. | | | `tracking_token` | *Optional[str]* | :heavy_minus_sign: | A previously received trackingToken for a search associated with the same query. Useful for more requests and requests for other tabs. | | | `session_info` | [Optional[models.SessionInfo]](../../models/sessioninfo.md) | :heavy_minus_sign: | N/A | | @@ -196,17 +197,18 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `tracking_token` | *Optional[str]* | :heavy_minus_sign: | N/A | | -| `session_info` | [Optional[models.SessionInfo]](../../models/sessioninfo.md) | :heavy_minus_sign: | N/A | | -| `query` | *Optional[str]* | :heavy_minus_sign: | Partially typed query. | San Fra | -| `datasources_filter` | List[*str*] | :heavy_minus_sign: | Filter results to only those relevant to one or more datasources (e.g. jira, gdrive). Results are unfiltered if missing. | | -| `datasource` | *Optional[str]* | :heavy_minus_sign: | Filter to only return results relevant to the given datasource. | | -| `result_types` | List[[models.AutocompleteRequestResultType](../../models/autocompleterequestresulttype.md)] | :heavy_minus_sign: | Filter to only return results of the given type(s). All types may be returned if omitted. | | -| `result_size` | *Optional[int]* | :heavy_minus_sign: | Maximum number of results to be returned. If no value is provided, the backend will cap at 200.
| 10 | -| `auth_tokens` | List[[models.AuthToken](../../models/authtoken.md)] | :heavy_minus_sign: | Auth tokens which may be used for federated results. | | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | +| Parameter | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | | +| `tracking_token` | *Optional[str]* | :heavy_minus_sign: | N/A | | +| `session_info` | [Optional[models.SessionInfo]](../../models/sessioninfo.md) | :heavy_minus_sign: | N/A | | +| `query` | *Optional[str]* | :heavy_minus_sign: | Partially typed query. | San Fra | +| `datasources_filter` | List[*str*] | :heavy_minus_sign: | Filter results to only those relevant to one or more datasources (e.g. jira, gdrive). Results are unfiltered if missing. | | +| `datasource` | *Optional[str]* | :heavy_minus_sign: | Filter to only return results relevant to the given datasource. | | +| `result_types` | List[[models.AutocompleteRequestResultType](../../models/autocompleterequestresulttype.md)] | :heavy_minus_sign: | Filter to only return results of the given type(s). All types may be returned if omitted. | | +| `result_size` | *Optional[int]* | :heavy_minus_sign: | Maximum number of results to be returned. If no value is provided, the backend will cap at 200.
| 10 | +| `auth_tokens` | List[[models.AuthToken](../../models/authtoken.md)] | :heavy_minus_sign: | Auth tokens which may be used for federated results. | | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | ### Response @@ -243,13 +245,14 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -| `categories` | List[[models.FeedRequestCategory](../../models/feedrequestcategory.md)] | :heavy_minus_sign: | Categories of content requested. An allowlist gives flexibility to request content separately or together. | | -| `request_options` | [Optional[models.FeedRequestOptions]](../../models/feedrequestoptions.md) | :heavy_minus_sign: | N/A | | -| `timeout_millis` | *Optional[int]* | :heavy_minus_sign: | Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer. | 5000 | -| `session_info` | [Optional[models.SessionInfo]](../../models/sessioninfo.md) | :heavy_minus_sign: | N/A | | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | +| Parameter | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | | +| `categories` | List[[models.FeedRequestCategory](../../models/feedrequestcategory.md)] | :heavy_minus_sign: | Categories of content requested. An allowlist gives flexibility to request content separately or together. | | +| `request_options` | [Optional[models.FeedRequestOptions]](../../models/feedrequestoptions.md) | :heavy_minus_sign: | N/A | | +| `timeout_millis` | *Optional[int]* | :heavy_minus_sign: | Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer. | 5000 | +| `session_info` | [Optional[models.SessionInfo]](../../models/sessioninfo.md) | :heavy_minus_sign: | N/A | | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | ### Response @@ -452,17 +455,18 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `timestamp` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | The ISO 8601 timestamp associated with the client request. | | -| `tracking_token` | *Optional[str]* | :heavy_minus_sign: | A previously received trackingToken for a search associated with the same query. Useful for more requests and requests for other tabs. | | -| `session_info` | [Optional[models.SessionInfo]](../../models/sessioninfo.md) | :heavy_minus_sign: | N/A | | -| `source_document` | [Optional[models.Document]](../../models/document.md) | :heavy_minus_sign: | N/A | | -| `page_size` | *Optional[int]* | :heavy_minus_sign: | Hint to the server about how many results to send back. Server may return less or more. Structured results and clustered results don't count towards pageSize. | 100 | -| `max_snippet_size` | *Optional[int]* | :heavy_minus_sign: | Hint to the server about how many characters long a snippet may be. Server may return less or more. | 400 | -| `recommendation_document_spec` | [Optional[models.DocumentSpecUnion]](../../models/documentspecunion.md) | :heavy_minus_sign: | N/A | | -| `request_options` | [Optional[models.RecommendationsRequestOptions]](../../models/recommendationsrequestoptions.md) | :heavy_minus_sign: | N/A | | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | +| Parameter | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | | +| `timestamp` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | The ISO 8601 timestamp associated with the client request. | | +| `tracking_token` | *Optional[str]* | :heavy_minus_sign: | A previously received trackingToken for a search associated with the same query. Useful for more requests and requests for other tabs. | | +| `session_info` | [Optional[models.SessionInfo]](../../models/sessioninfo.md) | :heavy_minus_sign: | N/A | | +| `source_document` | [Optional[models.Document]](../../models/document.md) | :heavy_minus_sign: | N/A | | +| `page_size` | *Optional[int]* | :heavy_minus_sign: | Hint to the server about how many results to send back. Server may return less or more. Structured results and clustered results don't count towards pageSize. | 100 | +| `max_snippet_size` | *Optional[int]* | :heavy_minus_sign: | Hint to the server about how many characters long a snippet may be. Server may return less or more. | 400 | +| `recommendation_document_spec` | [Optional[models.DocumentSpecUnion]](../../models/documentspecunion.md) | :heavy_minus_sign: | N/A | | +| `request_options` | [Optional[models.RecommendationsRequestOptions]](../../models/recommendationsrequestoptions.md) | :heavy_minus_sign: | N/A | | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | ### Response @@ -602,6 +606,7 @@ with Glean( | Parameter | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `query` | *str* | :heavy_check_mark: | The search terms. | vacation policy | +| `locale` | *Optional[str]* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | | | `timestamp` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | The ISO 8601 timestamp associated with the client request. | | | `tracking_token` | *Optional[str]* | :heavy_minus_sign: | A previously received trackingToken for a search associated with the same query. Useful for more requests and requests for other tabs. | | | `session_info` | [Optional[models.SessionInfo]](../../models/sessioninfo.md) | :heavy_minus_sign: | N/A | | diff --git a/pyproject.toml b/pyproject.toml index a9233390..0907c294 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "glean-api-client" -version = "0.11.27" +version = "0.11.28" description = "Python Client SDK Generated by Speakeasy." authors = [{ name = "Glean Technologies, Inc." },] readme = "README-PYPI.md" diff --git a/speakeasyusagegen/.speakeasy/logs/naming.log b/speakeasyusagegen/.speakeasy/logs/naming.log index bfb880d4..13f27acc 100644 --- a/speakeasyusagegen/.speakeasy/logs/naming.log +++ b/speakeasyusagegen/.speakeasy/logs/naming.log @@ -22,8 +22,8 @@ DEBUG prepend_op_id: Renamed to "createcollection_ResponseBody" DEBUG add_name: Renamed to "DocumentOrError" labels: "scope:shared refName:DocumentOrError" registrationID: "scope:shared refType:Schemas refName:DocumentOrError component:true oneOfPosition:2 originalName:" -DEBUG prepend_op_id: Renamed to "listpins_request" - labels: "original_name:request operation:listpins operationTag:client.pins" +DEBUG prepend_op_id: Renamed to "listpins_RequestBody" + labels: "original_name:RequestBody operation:listpins operationTag:client.pins requestResponse:request" registrationID: "scope:operations operationTag:client.pins operation:listpins requestResponse:request originalName:RequestBody" DEBUG add_name: Renamed to "GetShortcutRequest" labels: "scope:shared refName:GetShortcutRequest" @@ -406,8 +406,8 @@ DEBUG incremented: Renamed to "ResponseBody_2" DEBUG prepend_op_id: N/A rename "createcollection_ResponseBody" labels: "original_name:ResponseBody operation:createcollection operationTag:client.collections requestResponse:response data_type:union" registrationID: "scope:operations operationTag:client.collections operation:createcollection requestResponse:response responseStatusCode:200 responseMediaType:application/json originalName:ResponseBody" -DEBUG prepend_op_id: N/A rename "listpins_request" - labels: "original_name:request operation:listpins operationTag:client.pins" +DEBUG prepend_op_id: N/A rename "listpins_RequestBody" + labels: "original_name:RequestBody operation:listpins operationTag:client.pins requestResponse:request" registrationID: "scope:operations operationTag:client.pins operation:listpins requestResponse:request originalName:RequestBody" DEBUG @@ -444,176 +444,184 @@ FeedbackRequest (feedback: string, body: Feedback) WorkflowFeedbackInfoSource (enum: ZERO_STATE, LIBRARY, HOMEPAGE) FeedbackResponse (HttpMeta: HTTPMetadata) Announcements (SDK empty) -CreateAnnouncementRequest (startTime: date-time, endTime: date-time, title: string ...) - StructuredText (text: string, structuredList: array) - StructuredTextItem (link: string, document: Document, text: string ...) - Document (id: string, datasource: string, connectorType: ConnectorType ...) - ConnectorType (enum: API_CRAWL, BROWSER_CRAWL, BROWSER_HISTORY ...) - DocumentContent (fullTextList: array) - DocumentMetadata (datasource: string, datasourceInstance: string, objectType: string ...) - Person (name: string, obfuscatedId: string, relatedDocuments: array ...) - RelatedDocuments (relation: enum, associatedEntityId: string, querySuggestion: QuerySuggestion ...) - Relation (enum: ATTACHMENT, CANONICAL, CASE ...) - QuerySuggestion (missingTerm: string, query: string, searchProviderInfo: SearchProviderInfo ...) - SearchProviderInfo (name: string, logoUrl: string, searchLinkUrlTemplate: string) - ResultTab (id: string, count: integer, datasource: string ...) - SearchRequestOptions (datasourceFilter: string, datasourcesFilter: array, queryOverridesFacetFilters: boolean ...) - FacetFilter (fieldName: string, values: array, groupName: string) - FacetFilterValue (value: string, relationType: enum, isNegated: boolean) - RelationType (enum: EQUALS, ID_EQUALS, LT ...) - FacetFilterSet (filters: array) - FacetBucketFilter (facet: string, prefix: string) - AuthToken (accessToken: string, datasource: string, scope: string ...) - ResponseHint (enum: ALL_RESULT_COUNTS, FACET_RESULTS, QUERY_METADATA ...) - RestrictionFilters (containerSpecs: array) - DocumentSpecUnion (union) - DocumentSpec1 (url: string) - DocumentSpec2 (id: string) - DocumentSpec3 (ugcType: enum, contentId: integer, docType: string) - DocumentSpecUgcType1 (enum: ANNOUNCEMENTS, ANSWERS, COLLECTIONS ...) - DocumentSpec4 (ugcType: enum, ugcId: string, docType: string) - DocumentSpecUgcType2 (enum: ANNOUNCEMENTS, ANSWERS, COLLECTIONS ...) - TextRange (startIndex: integer, endIndex: integer, type: enum ...) - TextRangeType (enum: BOLD, CITATION, HIGHLIGHT ...) - DocumentSection (title: string, url: string) - SearchRequestInputDetails (hasCopyPaste: boolean) - SearchResult (structuredResults: array, trackingToken: string, document: Document ...) - StructuredResult (document: Document, person: Person, customer: Customer ...) - PersonMetadata (type: enum, firstName: string, lastName: string ...) - PersonMetadataType (enum: FULL_TIME, CONTRACTOR, NON_EMPLOYEE ...) - PersonTeam (id: string, name: string, externalLink: string ...) - PersonTeamRelationship (enum: MEMBER, MANAGER, LEAD ...) - StructuredLocation (deskLocation: string, timezone: string, address: string ...) - SocialNetwork (name: string, profileName: string, profileUrl: string) - DatasourceProfile (datasource: string, handle: string, url: string ...) - QuerySuggestionList (suggestions: array, person: Person) - PersonDistance (name: string, obfuscatedId: string, distance: float32) - InviteInfo (signUpTime: date-time, invites: array, inviter: Person ...) - ChannelInviteInfo (channel: CommunicationChannel, isAutoInvite: boolean, inviter: Person ...) - CommunicationChannel (enum: COMMUNICATION_CHANNEL_EMAIL, COMMUNICATION_CHANNEL_SLACK) - Permissions (canAdminSearch: boolean, canAdminClientApiGlobalTokens: boolean, canDlp: boolean ...) - ReadPermission (scopeType: ScopeType) - ScopeType (enum: GLOBAL, OWN) - WritePermission (scopeType: ScopeType, create: boolean, update: boolean ...) - GrantPermission (scopeType: ScopeType) - CustomFieldData (label: string, values: array, displayable: boolean) - CustomFieldValue (union) - CustomFieldValueStr (strText: string) - CustomFieldValueHyperlink (urlAnchor: string, urlLink: string) - CustomFieldValuePerson (person: Person) - AnonymousEvent (time: TimeInterval, eventType: enum) - TimeInterval (start: string, end: string) - AnonymousEventEventType (enum: DEFAULT, OUT_OF_OFFICE) - Badge (key: string, displayName: string, iconConfig: IconConfig ...) - IconConfig (generatedBackgroundColorKey: string, backgroundColor: string, color: string ...) - IconType (enum: COLLECTION, CUSTOM, DATASOURCE ...) - Customer (id: string, domains: array, company: Company ...) - Company (name: string, profileUrl: string, websiteUrls: array ...) - CustomerMetadata (datasourceId: string, customData: map) - CustomDataValue (displayLabel: string, stringValue: string, stringListValue: array ...) - Team (relatedObjects: map, permissions: ObjectPermissions, id: string ...) - RelatedObjectEdge (objects: array) - RelatedObject (id: string, metadata: class) - RelatedObjectMetadata (name: string) - ObjectPermissions (write: WritePermission) - PersonToTeamRelationship (person: Person, relationship: enum, customRelationshipStr: string ...) - PersonToTeamRelationshipRelationship (enum: MEMBER, MANAGER, LEAD ...) - TeamEmail (email: string, type: string) - TeamStatus (enum: PROCESSED, QUEUED_FOR_CREATION, QUEUED_FOR_DELETION) - CustomEntity (permissions: ObjectPermissions, id: string, title: string ...) - CustomEntityMetadata (customData: map) - UserRoleSpecification (sourceDocumentSpec: DocumentSpec_union, person: Person, group: Group ...) - Group (type: GroupType, id: string, name: string ...) - GroupType (enum: DEPARTMENT, ALL, TEAM ...) - UserRole (enum: OWNER, VIEWER, ANSWER_MODERATOR ...) - Answer (id: integer, docId: string, question: string ...) - AnswerSourceType (enum: DOCUMENT, ASSISTANT) - AnswerLikes (likedBy: array, likedByUser: boolean, numLikes: integer) - AnswerLike (user: Person, createTime: date-time) - Verification (state: enum, metadata: VerificationMetadata) - State (enum: UNVERIFIED, VERIFIED, DEPRECATED) - VerificationMetadata (lastVerifier: Person, lastVerificationTs: integer, expirationTs: integer ...) - Reminder (assignee: Person, requestor: Person, remindAt: integer ...) - CountInfo (count: integer, period: Period, org: string) - Period (minDaysFromNow: integer, maxDaysFromNow: integer, start: TimePoint ...) - TimePoint (epochSeconds: integer, daysFromNow: integer) - Collection (name: string, description: string, addedRoles: array ...) - Thumbnail (photoId: string, url: string) - CollectionItem (name: string, description: string, icon: string ...) - Shortcut (id: integer, inputAlias: string, destinationUrl: string ...) - CollectionPinnedMetadata (existingPins: array, eligiblePins: array) - CollectionPinTarget (category: CollectionPinnableCategories, value: string, target: CollectionPinnableTargets) - CollectionPinnableCategories (enum: COMPANY_RESOURCE, DEPARTMENT_RESOURCE, TEAM_RESOURCE) - CollectionPinnableTargets (enum: RESOURCE_CARD, TEAM_PROFILE_PAGE) - CollectionPinMetadata (id: integer, target: CollectionPinTarget) - CollectionItemItemType (enum: DOCUMENT, TEXT, URL ...) - GeneratedQna (question: string, answer: string, followUpPrompts: array ...) - FollowupAction (actionRunId: string, actionInstanceId: string, actionId: string ...) - GeneratedQnaStatus (enum: COMPUTING, DISABLED, FAILED ...) - ExtractedQnA (heading: string, question: string, questionResult: SearchResult) - SearchResultSnippet (mimeType: string, text: string, snippetTextOrdering: integer ...) - ClusterGroup (clusteredResults: array, clusterType: ClusterTypeEnum, visibleCountHint: integer) - ClusterTypeEnum (enum: SIMILAR, FRESHNESS, TITLE ...) - SearchResultProminenceEnum (enum: HERO, PROMOTED, STANDARD) - PinDocument (queries: array, audienceFilters: array, id: string ...) - Meeting (id: string, title: string, description: string ...) - CalendarAttendees (people: array, isLimit: boolean, total: integer ...) - CalendarAttendee (isOrganizer: boolean, isInGroup: boolean, person: Person ...) - ResponseStatus (enum: ACCEPTED, DECLINED, NO_RESPONSE ...) - AppResult (datasource: string, docType: string, mimeType: string ...) - Code (repoName: string, fileName: string, fileUrl: string ...) - CodeLine (lineNumber: integer, content: string, ranges: array) - ChatMetadata (id: string, createTime: integer, createdBy: Person ...) - RelatedQuestion (question: string, answer: string, ranges: array) - Disambiguation (name: string, id: string, type: EntityType) - EntityType (enum: PERSON, PROJECT, CUSTOMER) - Prominence (enum: HERO, PROMOTED, STANDARD) - StructuredResultSource (enum: EXPERT_DETECTION, ENTITY_NLQ, CALENDAR_EVENT ...) - DocumentVisibility (enum: PRIVATE, SPECIFIC_PEOPLE_AND_GROUPS, DOMAIN_LINK ...) - DocumentInteractions (numComments: integer, numReactions: integer, reactions: array ...) - Reaction (type: string, count: integer, reactors: array ...) - Share (numDaysAgo: integer, sharer: Person, sharingDocument: Document) - ViewerInfo (role: enum, lastViewedTime: date-time) - Role (enum: ANSWER_MODERATOR, OWNER, VIEWER) - IndexStatus (lastCrawledTime: date-time, lastIndexedTime: date-time) - CreateAnnouncementRequestChannel (enum: MAIN, SOCIAL_FEED) - CreateAnnouncementRequestPostType (enum: TEXT, LINK) +CreateannouncementRequest (locale: string, body: CreateAnnouncementRequest) + CreateAnnouncementRequest (startTime: date-time, endTime: date-time, title: string ...) + StructuredText (text: string, structuredList: array) + StructuredTextItem (link: string, document: Document, text: string ...) + Document (id: string, datasource: string, connectorType: ConnectorType ...) + ConnectorType (enum: API_CRAWL, BROWSER_CRAWL, BROWSER_HISTORY ...) + DocumentContent (fullTextList: array) + DocumentMetadata (datasource: string, datasourceInstance: string, objectType: string ...) + Person (name: string, obfuscatedId: string, relatedDocuments: array ...) + RelatedDocuments (relation: enum, associatedEntityId: string, querySuggestion: QuerySuggestion ...) + Relation (enum: ATTACHMENT, CANONICAL, CASE ...) + QuerySuggestion (missingTerm: string, query: string, searchProviderInfo: SearchProviderInfo ...) + SearchProviderInfo (name: string, logoUrl: string, searchLinkUrlTemplate: string) + ResultTab (id: string, count: integer, datasource: string ...) + SearchRequestOptions (datasourceFilter: string, datasourcesFilter: array, queryOverridesFacetFilters: boolean ...) + FacetFilter (fieldName: string, values: array, groupName: string) + FacetFilterValue (value: string, relationType: enum, isNegated: boolean) + RelationType (enum: EQUALS, ID_EQUALS, LT ...) + FacetFilterSet (filters: array) + FacetBucketFilter (facet: string, prefix: string) + AuthToken (accessToken: string, datasource: string, scope: string ...) + ResponseHint (enum: ALL_RESULT_COUNTS, FACET_RESULTS, QUERY_METADATA ...) + RestrictionFilters (containerSpecs: array) + DocumentSpecUnion (union) + DocumentSpec1 (url: string) + DocumentSpec2 (id: string) + DocumentSpec3 (ugcType: enum, contentId: integer, docType: string) + DocumentSpecUgcType1 (enum: ANNOUNCEMENTS, ANSWERS, COLLECTIONS ...) + DocumentSpec4 (ugcType: enum, ugcId: string, docType: string) + DocumentSpecUgcType2 (enum: ANNOUNCEMENTS, ANSWERS, COLLECTIONS ...) + TextRange (startIndex: integer, endIndex: integer, type: enum ...) + TextRangeType (enum: BOLD, CITATION, HIGHLIGHT ...) + DocumentSection (title: string, url: string) + SearchRequestInputDetails (hasCopyPaste: boolean) + SearchResult (structuredResults: array, trackingToken: string, document: Document ...) + StructuredResult (document: Document, person: Person, customer: Customer ...) + PersonMetadata (type: enum, firstName: string, lastName: string ...) + PersonMetadataType (enum: FULL_TIME, CONTRACTOR, NON_EMPLOYEE ...) + PersonTeam (id: string, name: string, externalLink: string ...) + PersonTeamRelationship (enum: MEMBER, MANAGER, LEAD ...) + StructuredLocation (deskLocation: string, timezone: string, address: string ...) + SocialNetwork (name: string, profileName: string, profileUrl: string) + DatasourceProfile (datasource: string, handle: string, url: string ...) + QuerySuggestionList (suggestions: array, person: Person) + PersonDistance (name: string, obfuscatedId: string, distance: float32) + InviteInfo (signUpTime: date-time, invites: array, inviter: Person ...) + ChannelInviteInfo (channel: CommunicationChannel, isAutoInvite: boolean, inviter: Person ...) + CommunicationChannel (enum: COMMUNICATION_CHANNEL_EMAIL, COMMUNICATION_CHANNEL_SLACK) + Permissions (canAdminSearch: boolean, canAdminClientApiGlobalTokens: boolean, canDlp: boolean ...) + ReadPermission (scopeType: ScopeType) + ScopeType (enum: GLOBAL, OWN) + WritePermission (scopeType: ScopeType, create: boolean, update: boolean ...) + GrantPermission (scopeType: ScopeType) + CustomFieldData (label: string, values: array, displayable: boolean) + CustomFieldValue (union) + CustomFieldValueStr (strText: string) + CustomFieldValueHyperlink (urlAnchor: string, urlLink: string) + CustomFieldValuePerson (person: Person) + AnonymousEvent (time: TimeInterval, eventType: enum) + TimeInterval (start: string, end: string) + AnonymousEventEventType (enum: DEFAULT, OUT_OF_OFFICE) + Badge (key: string, displayName: string, iconConfig: IconConfig ...) + IconConfig (generatedBackgroundColorKey: string, backgroundColor: string, color: string ...) + IconType (enum: COLLECTION, CUSTOM, DATASOURCE ...) + Customer (id: string, domains: array, company: Company ...) + Company (name: string, profileUrl: string, websiteUrls: array ...) + CustomerMetadata (datasourceId: string, customData: map) + CustomDataValue (displayLabel: string, stringValue: string, stringListValue: array ...) + Team (relatedObjects: map, permissions: ObjectPermissions, id: string ...) + RelatedObjectEdge (objects: array) + RelatedObject (id: string, metadata: class) + RelatedObjectMetadata (name: string) + ObjectPermissions (write: WritePermission) + PersonToTeamRelationship (person: Person, relationship: enum, customRelationshipStr: string ...) + PersonToTeamRelationshipRelationship (enum: MEMBER, MANAGER, LEAD ...) + TeamEmail (email: string, type: string) + TeamStatus (enum: PROCESSED, QUEUED_FOR_CREATION, QUEUED_FOR_DELETION) + CustomEntity (permissions: ObjectPermissions, id: string, title: string ...) + CustomEntityMetadata (customData: map) + UserRoleSpecification (sourceDocumentSpec: DocumentSpec_union, person: Person, group: Group ...) + Group (type: GroupType, id: string, name: string ...) + GroupType (enum: DEPARTMENT, ALL, TEAM ...) + UserRole (enum: OWNER, VIEWER, ANSWER_MODERATOR ...) + Answer (id: integer, docId: string, question: string ...) + AnswerSourceType (enum: DOCUMENT, ASSISTANT) + AnswerLikes (likedBy: array, likedByUser: boolean, numLikes: integer) + AnswerLike (user: Person, createTime: date-time) + Verification (state: enum, metadata: VerificationMetadata) + State (enum: UNVERIFIED, VERIFIED, DEPRECATED) + VerificationMetadata (lastVerifier: Person, lastVerificationTs: integer, expirationTs: integer ...) + Reminder (assignee: Person, requestor: Person, remindAt: integer ...) + CountInfo (count: integer, period: Period, org: string) + Period (minDaysFromNow: integer, maxDaysFromNow: integer, start: TimePoint ...) + TimePoint (epochSeconds: integer, daysFromNow: integer) + Collection (name: string, description: string, addedRoles: array ...) + Thumbnail (photoId: string, url: string) + CollectionItem (name: string, description: string, icon: string ...) + Shortcut (id: integer, inputAlias: string, destinationUrl: string ...) + CollectionPinnedMetadata (existingPins: array, eligiblePins: array) + CollectionPinTarget (category: CollectionPinnableCategories, value: string, target: CollectionPinnableTargets) + CollectionPinnableCategories (enum: COMPANY_RESOURCE, DEPARTMENT_RESOURCE, TEAM_RESOURCE) + CollectionPinnableTargets (enum: RESOURCE_CARD, TEAM_PROFILE_PAGE) + CollectionPinMetadata (id: integer, target: CollectionPinTarget) + CollectionItemItemType (enum: DOCUMENT, TEXT, URL ...) + GeneratedQna (question: string, answer: string, followUpPrompts: array ...) + FollowupAction (actionRunId: string, actionInstanceId: string, actionId: string ...) + GeneratedQnaStatus (enum: COMPUTING, DISABLED, FAILED ...) + ExtractedQnA (heading: string, question: string, questionResult: SearchResult) + SearchResultSnippet (mimeType: string, text: string, snippetTextOrdering: integer ...) + ClusterGroup (clusteredResults: array, clusterType: ClusterTypeEnum, visibleCountHint: integer) + ClusterTypeEnum (enum: SIMILAR, FRESHNESS, TITLE ...) + SearchResultProminenceEnum (enum: HERO, PROMOTED, STANDARD) + PinDocument (queries: array, audienceFilters: array, id: string ...) + Meeting (id: string, title: string, description: string ...) + CalendarAttendees (people: array, isLimit: boolean, total: integer ...) + CalendarAttendee (isOrganizer: boolean, isInGroup: boolean, person: Person ...) + ResponseStatus (enum: ACCEPTED, DECLINED, NO_RESPONSE ...) + AppResult (datasource: string, docType: string, mimeType: string ...) + Code (repoName: string, fileName: string, fileUrl: string ...) + CodeLine (lineNumber: integer, content: string, ranges: array) + ChatMetadata (id: string, createTime: integer, createdBy: Person ...) + RelatedQuestion (question: string, answer: string, ranges: array) + Disambiguation (name: string, id: string, type: EntityType) + EntityType (enum: PERSON, PROJECT, CUSTOMER) + Prominence (enum: HERO, PROMOTED, STANDARD) + StructuredResultSource (enum: EXPERT_DETECTION, ENTITY_NLQ, CALENDAR_EVENT ...) + DocumentVisibility (enum: PRIVATE, SPECIFIC_PEOPLE_AND_GROUPS, DOMAIN_LINK ...) + DocumentInteractions (numComments: integer, numReactions: integer, reactions: array ...) + Reaction (type: string, count: integer, reactors: array ...) + Share (numDaysAgo: integer, sharer: Person, sharingDocument: Document) + ViewerInfo (role: enum, lastViewedTime: date-time) + Role (enum: ANSWER_MODERATOR, OWNER, VIEWER) + IndexStatus (lastCrawledTime: date-time, lastIndexedTime: date-time) + CreateAnnouncementRequestChannel (enum: MAIN, SOCIAL_FEED) + CreateAnnouncementRequestPostType (enum: TEXT, LINK) CreateannouncementResponse (HttpMeta: HTTPMetadata, Announcement: Announcement) Announcement (startTime: date-time, endTime: date-time, title: string ...) AnnouncementChannel (enum: MAIN, SOCIAL_FEED) AnnouncementPostType (enum: TEXT, LINK) AnnouncementViewerInfo (isDismissed: boolean, isRead: boolean) -DeleteAnnouncementRequest (id: integer) +DeleteannouncementRequest (locale: string, body: DeleteAnnouncementRequest) + DeleteAnnouncementRequest (id: integer) DeleteannouncementResponse (HttpMeta: HTTPMetadata) -UpdateAnnouncementRequest (startTime: date-time, endTime: date-time, title: string ...) - UpdateAnnouncementRequestChannel (enum: MAIN, SOCIAL_FEED) - UpdateAnnouncementRequestPostType (enum: TEXT, LINK) +UpdateannouncementRequest (locale: string, body: UpdateAnnouncementRequest) + UpdateAnnouncementRequest (startTime: date-time, endTime: date-time, title: string ...) + UpdateAnnouncementRequestChannel (enum: MAIN, SOCIAL_FEED) + UpdateAnnouncementRequestPostType (enum: TEXT, LINK) UpdateannouncementResponse (HttpMeta: HTTPMetadata, Announcement: Announcement) Answers (SDK empty) -CreateAnswerRequest (data: AnswerCreationData) - AnswerCreationData (question: string, questionVariations: array, bodyText: string ...) - AnswerCreationDataSourceType (enum: DOCUMENT, ASSISTANT) - StructuredTextMutableProperties (text: string) +CreateanswerRequest (locale: string, body: CreateAnswerRequest) + CreateAnswerRequest (data: AnswerCreationData) + AnswerCreationData (question: string, questionVariations: array, bodyText: string ...) + AnswerCreationDataSourceType (enum: DOCUMENT, ASSISTANT) + StructuredTextMutableProperties (text: string) CreateanswerResponse (HttpMeta: HTTPMetadata, Answer: Answer) -DeleteAnswerRequest (id: integer, docId: string) +DeleteanswerRequest (locale: string, body: DeleteAnswerRequest) + DeleteAnswerRequest (id: integer, docId: string) DeleteanswerResponse (HttpMeta: HTTPMetadata) -EditAnswerRequest (id: integer, docId: string, question: string ...) - EditAnswerRequestSourceType (enum: DOCUMENT, ASSISTANT) +EditanswerRequest (locale: string, body: EditAnswerRequest) + EditAnswerRequest (id: integer, docId: string, question: string ...) + EditAnswerRequestSourceType (enum: DOCUMENT, ASSISTANT) EditanswerResponse (HttpMeta: HTTPMetadata, Answer: Answer) -GetAnswerRequest (id: integer, docId: string) +GetanswerRequest (locale: string, body: GetAnswerRequest) + GetAnswerRequest (id: integer, docId: string) GetanswerResponse (HttpMeta: HTTPMetadata, GetAnswerResponse: GetAnswerResponse) GetAnswerResponse (answerResult: AnswerResult, error: GetAnswerError) AnswerResult (answer: Answer, trackingToken: string) GetAnswerError (errorType: enum, answerAuthor: Person) GetAnswerErrorErrorType (enum: NO_PERMISSION, INVALID_ID) -ListAnswersRequest (boardId: integer) +ListanswersRequest (locale: string, body: ListAnswersRequest) + ListAnswersRequest (boardId: integer) ListanswersResponse (HttpMeta: HTTPMetadata, ListAnswersResponse: ListAnswersResponse) ListAnswersResponse (answerResults: array) ClientAuthentication (SDK empty) CreateauthtokenResponse (HttpMeta: HTTPMetadata, CreateAuthTokenResponse: CreateAuthTokenResponse) CreateAuthTokenResponse (token: string, expirationTime: integer) Chat (SDK empty) -ChatRequest (timezoneOffset: integer, body: ChatRequest) +ChatRequest (locale: string, timezoneOffset: integer, body: ChatRequest) ChatRequest (messages: array, sessionInfo: SessionInfo, saveChat: boolean ...) ChatMessage (agentConfig: AgentConfig, author: enum, citations: array ...) AgentConfig (agent: enum, toolSets: ToolSets, mode: enum ...) @@ -646,46 +654,46 @@ ChatRequest (timezoneOffset: integer, body: ChatRequest) ChatRestrictionFilters (containerSpecs: array, documentSpecs: array, datasourceInstances: array) ChatResponse (HttpMeta: HTTPMetadata, ChatResponse: ChatResponse) ChatResponse (messages: array, chatId: string, followUpPrompts: array ...) -DeleteallchatsRequest (timezoneOffset: integer) +DeleteallchatsRequest (locale: string, timezoneOffset: integer) DeleteallchatsResponse (HttpMeta: HTTPMetadata) -DeletechatsRequest (timezoneOffset: integer, body: DeleteChatsRequest) +DeletechatsRequest (locale: string, timezoneOffset: integer, body: DeleteChatsRequest) DeleteChatsRequest (ids: array) DeletechatsResponse (HttpMeta: HTTPMetadata) -GetchatRequest (timezoneOffset: integer, body: GetChatRequest) +GetchatRequest (locale: string, timezoneOffset: integer, body: GetChatRequest) GetChatRequest (id: string) GetchatResponse (HttpMeta: HTTPMetadata, GetChatResponse: GetChatResponse) GetChatResponse (chatResult: ChatResult) ChatResult (chat: Chat, trackingToken: string) Chat (id: string, createTime: integer, createdBy: Person ...) -ListchatsRequest (timezoneOffset: integer) +ListchatsRequest (locale: string, timezoneOffset: integer) ListchatsResponse (HttpMeta: HTTPMetadata, ListChatsResponse: ListChatsResponse) ListChatsResponse (chatResults: array) ChatMetadataResult (chat: ChatMetadata, trackingToken: string) -GetchatapplicationRequest (timezoneOffset: integer, body: GetChatApplicationRequest) +GetchatapplicationRequest (locale: string, timezoneOffset: integer, body: GetChatApplicationRequest) GetChatApplicationRequest (id: string) GetchatapplicationResponse (HttpMeta: HTTPMetadata, GetChatApplicationResponse: GetChatApplicationResponse) GetChatApplicationResponse (application: any) -UploadchatfilesRequest (timezoneOffset: integer, body: UploadChatFilesRequest) +UploadchatfilesRequest (locale: string, timezoneOffset: integer, body: UploadChatFilesRequest) UploadChatFilesRequest (files: array) File (fileName: string, content: request-stream) UploadchatfilesResponse (HttpMeta: HTTPMetadata, UploadChatFilesResponse: UploadChatFilesResponse) UploadChatFilesResponse (files: array) -GetchatfilesRequest (timezoneOffset: integer, body: GetChatFilesRequest) +GetchatfilesRequest (locale: string, timezoneOffset: integer, body: GetChatFilesRequest) GetChatFilesRequest (fileIds: array) GetchatfilesResponse (HttpMeta: HTTPMetadata, GetChatFilesResponse: GetChatFilesResponse) GetChatFilesResponse (files: map) -DeletechatfilesRequest (timezoneOffset: integer, body: DeleteChatFilesRequest) +DeletechatfilesRequest (locale: string, timezoneOffset: integer, body: DeleteChatFilesRequest) DeleteChatFilesRequest (fileIds: array) DeletechatfilesResponse (HttpMeta: HTTPMetadata) ChatStreamRequest (timezoneOffset: integer, body: ChatRequest) ChatStreamResponse (HttpMeta: HTTPMetadata, ChatRequestStream: string) Agents (SDK empty) -GetAgentRequest (timezoneOffset: integer, agent_id: string) +GetAgentRequest (locale: string, timezoneOffset: integer, agent_id: string) GetAgentResponse (HttpMeta: HTTPMetadata, Agent: Agent) Agent (agent_id: string, name: string, description: string ...) AgentMetadata (empty) AgentCapabilities (ap.io.messages: boolean, ap.io.streaming: boolean, AdditionalProperties: map) -GetAgentSchemasRequest (timezoneOffset: integer, agent_id: string) +GetAgentSchemasRequest (locale: string, timezoneOffset: integer, agent_id: string) GetAgentSchemasResponse (HttpMeta: HTTPMetadata, AgentSchemas: AgentSchemas) AgentSchemas (agent_id: string, input_schema: class, output_schema: class) InputSchema (empty) @@ -703,14 +711,16 @@ CreateAndWaitRunResponse (HttpMeta: HTTPMetadata, AgentRunWaitResponse: AgentRun AgentRun (agent_id: string, input: map, messages: array ...) AgentExecutionStatus (enum: error, success) Collections (SDK empty) -AddCollectionItemsRequest (collectionId: number, addedCollectionItemDescriptors: array) - CollectionItemDescriptor (name: string, description: string, icon: string ...) - CollectionItemDescriptorItemType (enum: DOCUMENT, TEXT, URL) +AddcollectionitemsRequest (locale: string, body: AddCollectionItemsRequest) + AddCollectionItemsRequest (collectionId: number, addedCollectionItemDescriptors: array) + CollectionItemDescriptor (name: string, description: string, icon: string ...) + CollectionItemDescriptorItemType (enum: DOCUMENT, TEXT, URL) AddcollectionitemsResponse (HttpMeta: HTTPMetadata, AddCollectionItemsResponse: AddCollectionItemsResponse) AddCollectionItemsResponse (collection: Collection, error: AddCollectionItemsError) AddCollectionItemsError (errorType: enum) AddCollectionItemsErrorErrorType (enum: EXISTING_ITEM) -CreateCollectionRequest (name: string, description: string, addedRoles: array ...) +CreatecollectionRequest (locale: string, body: CreateCollectionRequest) + CreateCollectionRequest (name: string, description: string, addedRoles: array ...) CreatecollectionResponse (HttpMeta: HTTPMetadata, oneOf: union) CreatecollectionResponseBody (union) ResponseBody1 (collection: Collection, error: CollectionError) @@ -718,51 +728,62 @@ CreatecollectionResponse (HttpMeta: HTTPMetadata, oneOf: union) CollectionErrorErrorCode (enum: NAME_EXISTS, NOT_FOUND, COLLECTION_PINNED ...) ResponseBody2 (collection: Collection, error: CollectionError) CollectionError (error) -DeleteCollectionRequest (ids: array, allowedDatasource: string) +DeletecollectionRequest (locale: string, body: DeleteCollectionRequest) + DeleteCollectionRequest (ids: array, allowedDatasource: string) DeletecollectionResponse (HttpMeta: HTTPMetadata) -DeleteCollectionItemRequest (collectionId: number, itemId: string, documentId: string) +DeletecollectionitemRequest (locale: string, body: DeleteCollectionItemRequest) + DeleteCollectionItemRequest (collectionId: number, itemId: string, documentId: string) DeletecollectionitemResponse (HttpMeta: HTTPMetadata, DeleteCollectionItemResponse: DeleteCollectionItemResponse) DeleteCollectionItemResponse (collection: Collection) -EditCollectionRequest (name: string, description: string, addedRoles: array ...) +EditcollectionRequest (locale: string, body: EditCollectionRequest) + EditCollectionRequest (name: string, description: string, addedRoles: array ...) EditcollectionResponse (HttpMeta: HTTPMetadata, EditCollectionResponse: EditCollectionResponse) EditCollectionResponse (name: string, description: string, addedRoles: array ...) EditCollectionResponseErrorCode (enum: NAME_EXISTS, NOT_FOUND, COLLECTION_PINNED ...) -EditCollectionItemRequest (name: string, description: string, icon: string ...) +EditcollectionitemRequest (locale: string, body: EditCollectionItemRequest) + EditCollectionItemRequest (name: string, description: string, icon: string ...) EditcollectionitemResponse (HttpMeta: HTTPMetadata, EditCollectionItemResponse: EditCollectionItemResponse) EditCollectionItemResponse (collection: Collection) -GetCollectionRequest (id: integer, withItems: boolean, withHierarchy: boolean ...) +GetcollectionRequest (locale: string, body: GetCollectionRequest) + GetCollectionRequest (id: integer, withItems: boolean, withHierarchy: boolean ...) GetcollectionResponse (HttpMeta: HTTPMetadata, GetCollectionResponse: GetCollectionResponse) GetCollectionResponse (collection: Collection, rootCollection: Collection, trackingToken: string ...) -ListCollectionsRequest (includeAudience: boolean, includeRoles: boolean, allowedDatasource: string) +ListcollectionsRequest (locale: string, body: ListCollectionsRequest) + ListCollectionsRequest (includeAudience: boolean, includeRoles: boolean, allowedDatasource: string) ListcollectionsResponse (HttpMeta: HTTPMetadata, ListCollectionsResponse: ListCollectionsResponse) ListCollectionsResponse (collections: array) ClientDocuments (SDK empty) -GetDocPermissionsRequest (documentId: string) +GetdocpermissionsRequest (locale: string, body: GetDocPermissionsRequest) + GetDocPermissionsRequest (documentId: string) GetdocpermissionsResponse (HttpMeta: HTTPMetadata, GetDocPermissionsResponse: GetDocPermissionsResponse) GetDocPermissionsResponse (allowedUserEmails: array) -GetDocumentsRequest (documentSpecs: array, includeFields: array) - GetDocumentsRequestIncludeField (enum: LAST_VIEWED_AT, VISITORS_COUNT, RECENT_SHARES ...) +GetdocumentsRequest (locale: string, body: GetDocumentsRequest) + GetDocumentsRequest (documentSpecs: array, includeFields: array) + GetDocumentsRequestIncludeField (enum: LAST_VIEWED_AT, VISITORS_COUNT, RECENT_SHARES ...) GetdocumentsResponse (HttpMeta: HTTPMetadata, GetDocumentsResponse: GetDocumentsResponse) GetDocumentsResponse (documents: map) DocumentOrErrorUnion (union) DocumentOrError (error: string) -GetDocumentsByFacetsRequest (datasourcesFilter: array, filterSets: array, cursor: string) +GetdocumentsbyfacetsRequest (locale: string, body: GetDocumentsByFacetsRequest) + GetDocumentsByFacetsRequest (datasourcesFilter: array, filterSets: array, cursor: string) GetdocumentsbyfacetsResponse (HttpMeta: HTTPMetadata, GetDocumentsByFacetsResponse: GetDocumentsByFacetsResponse) GetDocumentsByFacetsResponse (documents: array, hasMoreResults: boolean, cursor: string) -SummarizeRequest (timestamp: date-time, query: string, preferredSummaryLength: integer ...) +SummarizeRequest (locale: string, body: SummarizeRequest) + SummarizeRequest (timestamp: date-time, query: string, preferredSummaryLength: integer ...) SummarizeResponse (HttpMeta: HTTPMetadata, SummarizeResponse: SummarizeResponse) SummarizeResponse (error: class, summary: Summary, trackingToken: string) Error (message: string) Summary (text: string, followUpPrompts: array) Insights (SDK empty) -InsightsRequest (overviewRequest: InsightsOverviewRequest, assistantRequest: InsightsAssistantRequest, agentsRequest: AgentsInsightsV2Request ...) - InsightsOverviewRequest (departments: array, dayRange: Period) - InsightsAssistantRequest (departments: array, dayRange: Period) - AgentsInsightsV2Request (agentIds: array, departments: array, dayRange: Period) - InsightsRequestCategory (enum: AGENTS, AGENT_USERS, TOP_AGENTS ...) - InsightsAiAppRequestOptions (aiAppIds: array) - InsightsAgentsRequestOptions (agentIds: array) - AssistantActivityType (enum: GLEAN_CHAT, AI_SUMMARY, AI_ANSWER ...) +InsightsRequest (locale: string, body: InsightsRequest) + InsightsRequest (overviewRequest: InsightsOverviewRequest, assistantRequest: InsightsAssistantRequest, agentsRequest: AgentsInsightsV2Request ...) + InsightsOverviewRequest (departments: array, dayRange: Period) + InsightsAssistantRequest (departments: array, dayRange: Period) + AgentsInsightsV2Request (agentIds: array, departments: array, dayRange: Period) + InsightsRequestCategory (enum: AGENTS, AGENT_USERS, TOP_AGENTS ...) + InsightsAiAppRequestOptions (aiAppIds: array) + InsightsAgentsRequestOptions (agentIds: array) + AssistantActivityType (enum: GLEAN_CHAT, AI_SUMMARY, AI_ANSWER ...) InsightsResponse (HttpMeta: HTTPMetadata, InsightsResponse: InsightsResponse) InsightsResponse (timeseries: array, users: UserInsightsResponse, content: ContentInsightsResponse ...) LabeledCountInfo (label: string, countInfo: array) @@ -791,10 +812,11 @@ InsightsResponse (HttpMeta: HTTPMetadata, InsightsResponse: InsightsResponse) AgentsUsageByDepartmentInsight (department: string, agentAdoptionRate: float32, userCount: integer ...) AgentUsersInsight (person: Person, departmentName: string, agentsUsedCount: integer ...) Messages (SDK empty) -MessagesRequest (idType: enum, id: string, workspaceId: string ...) - IdType (enum: CHANNEL_NAME, THREAD_ID, CONVERSATION_ID) - Direction (enum: OLDER, NEWER) - Datasource (enum: SLACK, SLACKENTGRID, MICROSOFTTEAMS ...) +MessagesRequest (locale: string, body: MessagesRequest) + MessagesRequest (idType: enum, id: string, workspaceId: string ...) + IdType (enum: CHANNEL_NAME, THREAD_ID, CONVERSATION_ID) + Direction (enum: OLDER, NEWER) + Datasource (enum: SLACK, SLACKENTGRID, MICROSOFTTEAMS ...) MessagesResponse (HttpMeta: HTTPMetadata, MessagesResponse: MessagesResponse) MessagesResponse (hasMore: boolean, searchResponse: SearchResponse, rootMessage: SearchResult) SearchResponse (trackingToken: string, sessionInfo: SessionInfo, results: array ...) @@ -809,24 +831,31 @@ MessagesResponse (HttpMeta: HTTPMetadata, MessagesResponse: MessagesResponse) FacetValue (stringValue: string, integerValue: integer, displayLabel: string ...) ResultsDescription (text: string, iconConfig: IconConfig) Pins (SDK empty) -EditPinRequest (queries: array, audienceFilters: array, id: string) +EditpinRequest (locale: string, body: EditPinRequest) + EditPinRequest (queries: array, audienceFilters: array, id: string) EditpinResponse (HttpMeta: HTTPMetadata, PinDocument: PinDocument) -GetPinRequest (id: string) +GetpinRequest (locale: string, body: GetPinRequest) + GetPinRequest (id: string) GetpinResponse (HttpMeta: HTTPMetadata, GetPinResponse: GetPinResponse) GetPinResponse (pin: PinDocument) -ListpinsRequest (empty) +ListpinsRequest (locale: string, body: class) + ListpinsRequestBody (empty) ListpinsResponse (HttpMeta: HTTPMetadata, ListPinsResponse: ListPinsResponse) ListPinsResponse (pins: array) -PinRequest (queries: array, audienceFilters: array, documentId: string) +PinRequest (locale: string, body: PinRequest) + PinRequest (queries: array, audienceFilters: array, documentId: string) PinResponse (HttpMeta: HTTPMetadata, PinDocument: PinDocument) -Unpin (id: string) +UnpinRequest (locale: string, body: Unpin) + Unpin (id: string) UnpinResponse (HttpMeta: HTTPMetadata) Search (SDK empty) -SearchRequest (timestamp: date-time, trackingToken: string, sessionInfo: SessionInfo ...) +AdminsearchRequest (locale: string, body: SearchRequest) + SearchRequest (timestamp: date-time, trackingToken: string, sessionInfo: SessionInfo ...) AdminsearchResponse (HttpMeta: HTTPMetadata, SearchResponse: SearchResponse) GleanDataError (error) -AutocompleteRequest (trackingToken: string, sessionInfo: SessionInfo, query: string ...) - AutocompleteRequestResultType (enum: ADDITIONAL_DOCUMENT, APP, BROWSER_HISTORY ...) +AutocompleteRequest (locale: string, body: AutocompleteRequest) + AutocompleteRequest (trackingToken: string, sessionInfo: SessionInfo, query: string ...) + AutocompleteRequestResultType (enum: ADDITIONAL_DOCUMENT, APP, BROWSER_HISTORY ...) AutocompleteResponse (HttpMeta: HTTPMetadata, AutocompleteResponse: AutocompleteResponse) AutocompleteResponse (experimentIds: array, trackingToken: string, sessionInfo: SessionInfo ...) AutocompleteResult (result: string, keywords: array, resultType: enum ...) @@ -837,11 +866,12 @@ AutocompleteResponse (HttpMeta: HTTPMetadata, AutocompleteResponse: Autocomplete Quicklink (name: string, shortName: string, url: string ...) Scope (enum: APP_CARD, AUTOCOMPLETE_EXACT_MATCH, AUTOCOMPLETE_FUZZY_MATCH ...) AutocompleteResultGroup (startIndex: integer, endIndex: integer, title: string) -FeedRequest (categories: array, requestOptions: FeedRequestOptions, timeoutMillis: integer ...) - FeedRequestCategory (enum: DOCUMENT_SUGGESTION, DOCUMENT_SUGGESTION_SCENARIO, TRENDING_DOCUMENT ...) - FeedRequestOptions (resultSize: integer, timezoneOffset: integer, categoryToResultSize: map ...) - CategoryToResultSize (resultSize: integer) - ChatZeroStateSuggestionOptions (applicationId: string) +FeedRequest (locale: string, body: FeedRequest) + FeedRequest (categories: array, requestOptions: FeedRequestOptions, timeoutMillis: integer ...) + FeedRequestCategory (enum: DOCUMENT_SUGGESTION, DOCUMENT_SUGGESTION_SCENARIO, TRENDING_DOCUMENT ...) + FeedRequestOptions (resultSize: integer, timezoneOffset: integer, categoryToResultSize: map ...) + CategoryToResultSize (resultSize: integer) + ChatZeroStateSuggestionOptions (applicationId: string) FeedResponse (HttpMeta: HTTPMetadata, FeedResponse: FeedResponse) FeedResponse (experimentIds: array, trackingToken: string, serverTimestamp: integer ...) FeedResult (category: enum, primaryEntry: FeedEntry, secondaryEntries: array ...) @@ -876,56 +906,67 @@ FeedResponse (HttpMeta: HTTPMetadata, FeedResponse: FeedResponse) Workflow (name: string, author: Person, createTimestamp: integer ...) UserActivity (actor: Person, timestamp: integer, action: enum ...) UserActivityAction (enum: ADD, ADD_REMINDER, CLICK ...) -RecommendationsRequest (timestamp: date-time, trackingToken: string, sessionInfo: SessionInfo ...) - RecommendationsRequestOptions (datasourceFilter: string, datasourcesFilter: array, facetFilterSets: array ...) +RecommendationsRequest (locale: string, body: RecommendationsRequest) + RecommendationsRequest (timestamp: date-time, trackingToken: string, sessionInfo: SessionInfo ...) + RecommendationsRequestOptions (datasourceFilter: string, datasourcesFilter: array, facetFilterSets: array ...) RecommendationsResponse (HttpMeta: HTTPMetadata, ResultsResponse: ResultsResponse) ResultsResponse (trackingToken: string, sessionInfo: SessionInfo, results: array ...) +SearchRequest (locale: string, body: SearchRequest) SearchResponse (HttpMeta: HTTPMetadata, SearchResponse: SearchResponse) Entities (SDK empty) -ListEntitiesRequest (filter: array, sort: array, entityType: enum ...) - SortOptions (orderBy: enum, sortBy: string) - OrderBy (enum: ASC, DESC) - ListEntitiesRequestEntityType (enum: PEOPLE, TEAMS, CUSTOM_ENTITIES) - ListEntitiesRequestIncludeField (enum: PEOPLE, TEAMS, PEOPLE_DISTANCE ...) - RequestType (enum: STANDARD, FULL_DIRECTORY) +ListentitiesRequest (locale: string, body: ListEntitiesRequest) + ListEntitiesRequest (filter: array, sort: array, entityType: enum ...) + SortOptions (orderBy: enum, sortBy: string) + OrderBy (enum: ASC, DESC) + ListEntitiesRequestEntityType (enum: PEOPLE, TEAMS, CUSTOM_ENTITIES) + ListEntitiesRequestIncludeField (enum: PEOPLE, TEAMS, PEOPLE_DISTANCE ...) + RequestType (enum: STANDARD, FULL_DIRECTORY) ListentitiesResponse (HttpMeta: HTTPMetadata, ListEntitiesResponse: ListEntitiesResponse) ListEntitiesResponse (results: array, teamResults: array, customEntityResults: array ...) EntitiesSortOrder (enum: ENTITY_NAME, FIRST_NAME, LAST_NAME ...) -PeopleRequest (timezoneOffset: integer, obfuscatedIds: array, emailIds: array ...) - PeopleRequestIncludeField (enum: BADGES, BUSY_EVENTS, DOCUMENT_ACTIVITY ...) - IncludeType (enum: PEOPLE_WITHOUT_MANAGER, INVALID_ENTITIES) +PeopleRequest (locale: string, body: PeopleRequest) + PeopleRequest (timezoneOffset: integer, obfuscatedIds: array, emailIds: array ...) + PeopleRequestIncludeField (enum: BADGES, BUSY_EVENTS, DOCUMENT_ACTIVITY ...) + IncludeType (enum: PEOPLE_WITHOUT_MANAGER, INVALID_ENTITIES) PeopleResponse (HttpMeta: HTTPMetadata, PeopleResponse: PeopleResponse) PeopleResponse (results: array, relatedDocuments: array, errors: array) ClientShortcuts (SDK empty) -CreateShortcutRequest (data: ShortcutMutableProperties) - ShortcutMutableProperties (inputAlias: string, destinationUrl: string, destinationDocumentId: string ...) +CreateshortcutRequest (locale: string, body: CreateShortcutRequest) + CreateShortcutRequest (data: ShortcutMutableProperties) + ShortcutMutableProperties (inputAlias: string, destinationUrl: string, destinationDocumentId: string ...) CreateshortcutResponse (HttpMeta: HTTPMetadata, CreateShortcutResponse: CreateShortcutResponse) CreateShortcutResponse (shortcut: Shortcut, error: ShortcutError) ShortcutError (errorType: enum) ShortcutErrorErrorType (enum: NO_PERMISSION, INVALID_ID, EXISTING_SHORTCUT ...) -DeleteShortcutRequest (id: integer) +DeleteshortcutRequest (locale: string, body: DeleteShortcutRequest) + DeleteShortcutRequest (id: integer) DeleteshortcutResponse (HttpMeta: HTTPMetadata) -GetShortcutRequestUnion (union) - UserGeneratedContentId (id: integer) - GetShortcutRequest (alias: string) +GetshortcutRequest (locale: string, body: GetShortcutRequest_union) + GetShortcutRequestUnion (union) + UserGeneratedContentId (id: integer) + GetShortcutRequest (alias: string) GetshortcutResponse (HttpMeta: HTTPMetadata, GetShortcutResponse: GetShortcutResponse) GetShortcutResponse (shortcut: Shortcut, error: ShortcutError) -ListShortcutsPaginatedRequest (includeFields: array, pageSize: integer, cursor: string ...) - ListShortcutsPaginatedRequestIncludeField (enum: FACETS, PEOPLE_DETAILS) +ListshortcutsRequest (locale: string, body: ListShortcutsPaginatedRequest) + ListShortcutsPaginatedRequest (includeFields: array, pageSize: integer, cursor: string ...) + ListShortcutsPaginatedRequestIncludeField (enum: FACETS, PEOPLE_DETAILS) ListshortcutsResponse (HttpMeta: HTTPMetadata, ListShortcutsPaginatedResponse: ListShortcutsPaginatedResponse) ListShortcutsPaginatedResponse (shortcuts: array, facetResults: array, meta: ShortcutsPaginationMetadata) ShortcutsPaginationMetadata (cursor: string, hasNextPage: boolean, totalItemCount: integer) -UpdateShortcutRequest (id: integer, inputAlias: string, destinationUrl: string ...) +UpdateshortcutRequest (locale: string, body: UpdateShortcutRequest) + UpdateShortcutRequest (id: integer, inputAlias: string, destinationUrl: string ...) UpdateshortcutResponse (HttpMeta: HTTPMetadata, UpdateShortcutResponse: UpdateShortcutResponse) UpdateShortcutResponse (shortcut: Shortcut, error: ShortcutError) Verification (SDK empty) -ReminderRequest (documentId: string, assignee: string, remindInDays: integer ...) +AddverificationreminderRequest (locale: string, body: ReminderRequest) + ReminderRequest (documentId: string, assignee: string, remindInDays: integer ...) AddverificationreminderResponse (HttpMeta: HTTPMetadata, Verification: Verification) -ListverificationsRequest (count: integer) +ListverificationsRequest (count: integer, locale: string) ListverificationsResponse (HttpMeta: HTTPMetadata, VerificationFeed: VerificationFeed) VerificationFeed (documents: array) -VerifyRequest (documentId: string, action: enum) - VerifyRequestAction (enum: VERIFY, DEPRECATE, UNVERIFY) +VerifyRequest (locale: string, body: VerifyRequest) + VerifyRequest (documentId: string, action: enum) + VerifyRequestAction (enum: VERIFY, DEPRECATE, UNVERIFY) VerifyResponse (HttpMeta: HTTPMetadata, Verification: Verification) Tools (SDK empty) Get/rest/api/v1/tools/listRequest (toolNames: array) diff --git a/src/glean/api_client/_version.py b/src/glean/api_client/_version.py index 64da52a5..933405fe 100644 --- a/src/glean/api_client/_version.py +++ b/src/glean/api_client/_version.py @@ -3,10 +3,10 @@ import importlib.metadata __title__: str = "glean-api-client" -__version__: str = "0.11.27" +__version__: str = "0.11.28" __openapi_doc_version__: str = "0.9.0" -__gen_version__: str = "2.796.1" -__user_agent__: str = "speakeasy-sdk/python 0.11.27 2.796.1 0.9.0 glean-api-client" +__gen_version__: str = "2.799.0" +__user_agent__: str = "speakeasy-sdk/python 0.11.28 2.799.0 0.9.0 glean-api-client" try: if __package__ is not None: diff --git a/src/glean/api_client/agents.py b/src/glean/api_client/agents.py index da34d3ab..1ada812a 100644 --- a/src/glean/api_client/agents.py +++ b/src/glean/api_client/agents.py @@ -14,6 +14,7 @@ def retrieve( self, *, agent_id: str, + locale: Optional[str] = None, timezone_offset: Optional[int] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -25,6 +26,7 @@ def retrieve( Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent Builder. :param agent_id: The ID of the agent. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param timezone_offset: The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -42,6 +44,7 @@ def retrieve( base_url = self._get_url(base_url, url_variables) request = models.GetAgentRequest( + locale=locale, timezone_offset=timezone_offset, agent_id=agent_id, ) @@ -101,6 +104,7 @@ async def retrieve_async( self, *, agent_id: str, + locale: Optional[str] = None, timezone_offset: Optional[int] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -112,6 +116,7 @@ async def retrieve_async( Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent Builder. :param agent_id: The ID of the agent. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param timezone_offset: The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -129,6 +134,7 @@ async def retrieve_async( base_url = self._get_url(base_url, url_variables) request = models.GetAgentRequest( + locale=locale, timezone_offset=timezone_offset, agent_id=agent_id, ) @@ -188,6 +194,7 @@ def retrieve_schemas( self, *, agent_id: str, + locale: Optional[str] = None, timezone_offset: Optional[int] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -199,6 +206,7 @@ def retrieve_schemas( Return [agent](https://developers.glean.com/agents/agents-api)'s input and output schemas. You can use these schemas to detect changes to an agent's input or output structure. :param agent_id: The ID of the agent. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param timezone_offset: The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -216,6 +224,7 @@ def retrieve_schemas( base_url = self._get_url(base_url, url_variables) request = models.GetAgentSchemasRequest( + locale=locale, timezone_offset=timezone_offset, agent_id=agent_id, ) @@ -275,6 +284,7 @@ async def retrieve_schemas_async( self, *, agent_id: str, + locale: Optional[str] = None, timezone_offset: Optional[int] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -286,6 +296,7 @@ async def retrieve_schemas_async( Return [agent](https://developers.glean.com/agents/agents-api)'s input and output schemas. You can use these schemas to detect changes to an agent's input or output structure. :param agent_id: The ID of the agent. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param timezone_offset: The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -303,6 +314,7 @@ async def retrieve_schemas_async( base_url = self._get_url(base_url, url_variables) request = models.GetAgentSchemasRequest( + locale=locale, timezone_offset=timezone_offset, agent_id=agent_id, ) diff --git a/src/glean/api_client/announcements.py b/src/glean/api_client/announcements.py index 6f26e4a2..970c637e 100644 --- a/src/glean/api_client/announcements.py +++ b/src/glean/api_client/announcements.py @@ -17,6 +17,7 @@ def create( start_time: datetime, end_time: datetime, title: str, + locale: Optional[str] = None, body: Optional[ Union[models.StructuredText, models.StructuredTextTypedDict] ] = None, @@ -44,6 +45,7 @@ def create( :param start_time: The date and time at which the announcement becomes active. :param end_time: The date and time at which the announcement expires. :param title: The headline of the announcement. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param body: :param emoji: An emoji used to indicate the nature of the announcement. :param thumbnail: @@ -70,23 +72,28 @@ def create( else: base_url = self._get_url(base_url, url_variables) - request = models.CreateAnnouncementRequest( - start_time=start_time, - end_time=end_time, - title=title, - body=utils.get_pydantic_model(body, Optional[models.StructuredText]), - emoji=emoji, - thumbnail=utils.get_pydantic_model(thumbnail, Optional[models.Thumbnail]), - banner=utils.get_pydantic_model(banner, Optional[models.Thumbnail]), - audience_filters=utils.get_pydantic_model( - audience_filters, Optional[List[models.FacetFilter]] + request = models.CreateannouncementRequestRequest( + locale=locale, + create_announcement_request=models.CreateAnnouncementRequest( + start_time=start_time, + end_time=end_time, + title=title, + body=utils.get_pydantic_model(body, Optional[models.StructuredText]), + emoji=emoji, + thumbnail=utils.get_pydantic_model( + thumbnail, Optional[models.Thumbnail] + ), + banner=utils.get_pydantic_model(banner, Optional[models.Thumbnail]), + audience_filters=utils.get_pydantic_model( + audience_filters, Optional[List[models.FacetFilter]] + ), + source_document_id=source_document_id, + hide_attribution=hide_attribution, + channel=channel, + post_type=post_type, + is_prioritized=is_prioritized, + view_url=view_url, ), - source_document_id=source_document_id, - hide_attribution=hide_attribution, - channel=channel, - post_type=post_type, - is_prioritized=is_prioritized, - view_url=view_url, ) req = self._build_request( @@ -103,7 +110,11 @@ def create( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.CreateAnnouncementRequest + request.create_announcement_request, + False, + False, + "json", + models.CreateAnnouncementRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -149,6 +160,7 @@ async def create_async( start_time: datetime, end_time: datetime, title: str, + locale: Optional[str] = None, body: Optional[ Union[models.StructuredText, models.StructuredTextTypedDict] ] = None, @@ -176,6 +188,7 @@ async def create_async( :param start_time: The date and time at which the announcement becomes active. :param end_time: The date and time at which the announcement expires. :param title: The headline of the announcement. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param body: :param emoji: An emoji used to indicate the nature of the announcement. :param thumbnail: @@ -202,23 +215,28 @@ async def create_async( else: base_url = self._get_url(base_url, url_variables) - request = models.CreateAnnouncementRequest( - start_time=start_time, - end_time=end_time, - title=title, - body=utils.get_pydantic_model(body, Optional[models.StructuredText]), - emoji=emoji, - thumbnail=utils.get_pydantic_model(thumbnail, Optional[models.Thumbnail]), - banner=utils.get_pydantic_model(banner, Optional[models.Thumbnail]), - audience_filters=utils.get_pydantic_model( - audience_filters, Optional[List[models.FacetFilter]] + request = models.CreateannouncementRequestRequest( + locale=locale, + create_announcement_request=models.CreateAnnouncementRequest( + start_time=start_time, + end_time=end_time, + title=title, + body=utils.get_pydantic_model(body, Optional[models.StructuredText]), + emoji=emoji, + thumbnail=utils.get_pydantic_model( + thumbnail, Optional[models.Thumbnail] + ), + banner=utils.get_pydantic_model(banner, Optional[models.Thumbnail]), + audience_filters=utils.get_pydantic_model( + audience_filters, Optional[List[models.FacetFilter]] + ), + source_document_id=source_document_id, + hide_attribution=hide_attribution, + channel=channel, + post_type=post_type, + is_prioritized=is_prioritized, + view_url=view_url, ), - source_document_id=source_document_id, - hide_attribution=hide_attribution, - channel=channel, - post_type=post_type, - is_prioritized=is_prioritized, - view_url=view_url, ) req = self._build_request_async( @@ -235,7 +253,11 @@ async def create_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.CreateAnnouncementRequest + request.create_announcement_request, + False, + False, + "json", + models.CreateAnnouncementRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -279,6 +301,7 @@ def delete( self, *, id: int, + locale: Optional[str] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -289,6 +312,7 @@ def delete( Delete an existing user-generated announcement. :param id: The opaque id of the announcement to be deleted. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -304,8 +328,11 @@ def delete( else: base_url = self._get_url(base_url, url_variables) - request = models.DeleteAnnouncementRequest( - id=id, + request = models.DeleteannouncementRequestRequest( + locale=locale, + delete_announcement_request=models.DeleteAnnouncementRequest( + id=id, + ), ) req = self._build_request( @@ -322,7 +349,11 @@ def delete( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.DeleteAnnouncementRequest + request.delete_announcement_request, + False, + False, + "json", + models.DeleteAnnouncementRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -366,6 +397,7 @@ async def delete_async( self, *, id: int, + locale: Optional[str] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -376,6 +408,7 @@ async def delete_async( Delete an existing user-generated announcement. :param id: The opaque id of the announcement to be deleted. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -391,8 +424,11 @@ async def delete_async( else: base_url = self._get_url(base_url, url_variables) - request = models.DeleteAnnouncementRequest( - id=id, + request = models.DeleteannouncementRequestRequest( + locale=locale, + delete_announcement_request=models.DeleteAnnouncementRequest( + id=id, + ), ) req = self._build_request_async( @@ -409,7 +445,11 @@ async def delete_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.DeleteAnnouncementRequest + request.delete_announcement_request, + False, + False, + "json", + models.DeleteAnnouncementRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -456,6 +496,7 @@ def update( end_time: datetime, title: str, id: int, + locale: Optional[str] = None, body: Optional[ Union[models.StructuredText, models.StructuredTextTypedDict] ] = None, @@ -484,6 +525,7 @@ def update( :param end_time: The date and time at which the announcement expires. :param title: The headline of the announcement. :param id: The opaque id of the announcement. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param body: :param emoji: An emoji used to indicate the nature of the announcement. :param thumbnail: @@ -510,24 +552,29 @@ def update( else: base_url = self._get_url(base_url, url_variables) - request = models.UpdateAnnouncementRequest( - start_time=start_time, - end_time=end_time, - title=title, - body=utils.get_pydantic_model(body, Optional[models.StructuredText]), - emoji=emoji, - thumbnail=utils.get_pydantic_model(thumbnail, Optional[models.Thumbnail]), - banner=utils.get_pydantic_model(banner, Optional[models.Thumbnail]), - audience_filters=utils.get_pydantic_model( - audience_filters, Optional[List[models.FacetFilter]] + request = models.UpdateannouncementRequestRequest( + locale=locale, + update_announcement_request=models.UpdateAnnouncementRequest( + start_time=start_time, + end_time=end_time, + title=title, + body=utils.get_pydantic_model(body, Optional[models.StructuredText]), + emoji=emoji, + thumbnail=utils.get_pydantic_model( + thumbnail, Optional[models.Thumbnail] + ), + banner=utils.get_pydantic_model(banner, Optional[models.Thumbnail]), + audience_filters=utils.get_pydantic_model( + audience_filters, Optional[List[models.FacetFilter]] + ), + source_document_id=source_document_id, + hide_attribution=hide_attribution, + channel=channel, + post_type=post_type, + is_prioritized=is_prioritized, + view_url=view_url, + id=id, ), - source_document_id=source_document_id, - hide_attribution=hide_attribution, - channel=channel, - post_type=post_type, - is_prioritized=is_prioritized, - view_url=view_url, - id=id, ) req = self._build_request( @@ -544,7 +591,11 @@ def update( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.UpdateAnnouncementRequest + request.update_announcement_request, + False, + False, + "json", + models.UpdateAnnouncementRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -591,6 +642,7 @@ async def update_async( end_time: datetime, title: str, id: int, + locale: Optional[str] = None, body: Optional[ Union[models.StructuredText, models.StructuredTextTypedDict] ] = None, @@ -619,6 +671,7 @@ async def update_async( :param end_time: The date and time at which the announcement expires. :param title: The headline of the announcement. :param id: The opaque id of the announcement. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param body: :param emoji: An emoji used to indicate the nature of the announcement. :param thumbnail: @@ -645,24 +698,29 @@ async def update_async( else: base_url = self._get_url(base_url, url_variables) - request = models.UpdateAnnouncementRequest( - start_time=start_time, - end_time=end_time, - title=title, - body=utils.get_pydantic_model(body, Optional[models.StructuredText]), - emoji=emoji, - thumbnail=utils.get_pydantic_model(thumbnail, Optional[models.Thumbnail]), - banner=utils.get_pydantic_model(banner, Optional[models.Thumbnail]), - audience_filters=utils.get_pydantic_model( - audience_filters, Optional[List[models.FacetFilter]] + request = models.UpdateannouncementRequestRequest( + locale=locale, + update_announcement_request=models.UpdateAnnouncementRequest( + start_time=start_time, + end_time=end_time, + title=title, + body=utils.get_pydantic_model(body, Optional[models.StructuredText]), + emoji=emoji, + thumbnail=utils.get_pydantic_model( + thumbnail, Optional[models.Thumbnail] + ), + banner=utils.get_pydantic_model(banner, Optional[models.Thumbnail]), + audience_filters=utils.get_pydantic_model( + audience_filters, Optional[List[models.FacetFilter]] + ), + source_document_id=source_document_id, + hide_attribution=hide_attribution, + channel=channel, + post_type=post_type, + is_prioritized=is_prioritized, + view_url=view_url, + id=id, ), - source_document_id=source_document_id, - hide_attribution=hide_attribution, - channel=channel, - post_type=post_type, - is_prioritized=is_prioritized, - view_url=view_url, - id=id, ) req = self._build_request_async( @@ -679,7 +737,11 @@ async def update_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.UpdateAnnouncementRequest + request.update_announcement_request, + False, + False, + "json", + models.UpdateAnnouncementRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, diff --git a/src/glean/api_client/answers.py b/src/glean/api_client/answers.py index 25342f6a..1d98caa4 100644 --- a/src/glean/api_client/answers.py +++ b/src/glean/api_client/answers.py @@ -15,6 +15,7 @@ def create( self, *, data: Union[models.AnswerCreationData, models.AnswerCreationDataTypedDict], + locale: Optional[str] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -25,6 +26,7 @@ def create( Create a user-generated Answer that contains a question and answer. :param data: + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -40,8 +42,11 @@ def create( else: base_url = self._get_url(base_url, url_variables) - request = models.CreateAnswerRequest( - data=utils.get_pydantic_model(data, models.AnswerCreationData), + request = models.CreateanswerRequestRequest( + locale=locale, + create_answer_request=models.CreateAnswerRequest( + data=utils.get_pydantic_model(data, models.AnswerCreationData), + ), ) req = self._build_request( @@ -58,7 +63,11 @@ def create( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.CreateAnswerRequest + request.create_answer_request, + False, + False, + "json", + models.CreateAnswerRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -102,6 +111,7 @@ async def create_async( self, *, data: Union[models.AnswerCreationData, models.AnswerCreationDataTypedDict], + locale: Optional[str] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -112,6 +122,7 @@ async def create_async( Create a user-generated Answer that contains a question and answer. :param data: + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -127,8 +138,11 @@ async def create_async( else: base_url = self._get_url(base_url, url_variables) - request = models.CreateAnswerRequest( - data=utils.get_pydantic_model(data, models.AnswerCreationData), + request = models.CreateanswerRequestRequest( + locale=locale, + create_answer_request=models.CreateAnswerRequest( + data=utils.get_pydantic_model(data, models.AnswerCreationData), + ), ) req = self._build_request_async( @@ -145,7 +159,11 @@ async def create_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.CreateAnswerRequest + request.create_answer_request, + False, + False, + "json", + models.CreateAnswerRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -189,6 +207,7 @@ def delete( self, *, id: int, + locale: Optional[str] = None, doc_id: Optional[str] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -200,6 +219,7 @@ def delete( Delete an existing user-generated Answer. :param id: The opaque ID of the Answer. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param doc_id: Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID isn't available. If both are available, using the Answer ID is preferred. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -216,9 +236,12 @@ def delete( else: base_url = self._get_url(base_url, url_variables) - request = models.DeleteAnswerRequest( - id=id, - doc_id=doc_id, + request = models.DeleteanswerRequestRequest( + locale=locale, + delete_answer_request=models.DeleteAnswerRequest( + id=id, + doc_id=doc_id, + ), ) req = self._build_request( @@ -235,7 +258,11 @@ def delete( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.DeleteAnswerRequest + request.delete_answer_request, + False, + False, + "json", + models.DeleteAnswerRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -279,6 +306,7 @@ async def delete_async( self, *, id: int, + locale: Optional[str] = None, doc_id: Optional[str] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -290,6 +318,7 @@ async def delete_async( Delete an existing user-generated Answer. :param id: The opaque ID of the Answer. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param doc_id: Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID isn't available. If both are available, using the Answer ID is preferred. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -306,9 +335,12 @@ async def delete_async( else: base_url = self._get_url(base_url, url_variables) - request = models.DeleteAnswerRequest( - id=id, - doc_id=doc_id, + request = models.DeleteanswerRequestRequest( + locale=locale, + delete_answer_request=models.DeleteAnswerRequest( + id=id, + doc_id=doc_id, + ), ) req = self._build_request_async( @@ -325,7 +357,11 @@ async def delete_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.DeleteAnswerRequest + request.delete_answer_request, + False, + False, + "json", + models.DeleteAnswerRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -369,6 +405,7 @@ def update( self, *, id: int, + locale: Optional[str] = None, doc_id: Optional[str] = None, question: Optional[str] = None, question_variations: Optional[List[str]] = None, @@ -417,6 +454,7 @@ def update( Update an existing user-generated Answer. :param id: The opaque ID of the Answer. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param doc_id: Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID isn't available. If both are available, using the Answer ID is preferred. :param question: :param question_variations: Additional ways of phrasing this question. @@ -446,33 +484,37 @@ def update( else: base_url = self._get_url(base_url, url_variables) - request = models.EditAnswerRequest( - id=id, - doc_id=doc_id, - question=question, - question_variations=question_variations, - body_text=body_text, - board_id=board_id, - audience_filters=utils.get_pydantic_model( - audience_filters, Optional[List[models.FacetFilter]] - ), - added_roles=utils.get_pydantic_model( - added_roles, Optional[List[models.UserRoleSpecification]] - ), - removed_roles=utils.get_pydantic_model( - removed_roles, Optional[List[models.UserRoleSpecification]] - ), - roles=utils.get_pydantic_model( - roles, Optional[List[models.UserRoleSpecification]] - ), - source_document_spec=utils.get_pydantic_model( - source_document_spec, Optional[models.DocumentSpecUnion] - ), - source_type=source_type, - added_collections=added_collections, - removed_collections=removed_collections, - combined_answer_text=utils.get_pydantic_model( - combined_answer_text, Optional[models.StructuredTextMutableProperties] + request = models.EditanswerRequestRequest( + locale=locale, + edit_answer_request=models.EditAnswerRequest( + id=id, + doc_id=doc_id, + question=question, + question_variations=question_variations, + body_text=body_text, + board_id=board_id, + audience_filters=utils.get_pydantic_model( + audience_filters, Optional[List[models.FacetFilter]] + ), + added_roles=utils.get_pydantic_model( + added_roles, Optional[List[models.UserRoleSpecification]] + ), + removed_roles=utils.get_pydantic_model( + removed_roles, Optional[List[models.UserRoleSpecification]] + ), + roles=utils.get_pydantic_model( + roles, Optional[List[models.UserRoleSpecification]] + ), + source_document_spec=utils.get_pydantic_model( + source_document_spec, Optional[models.DocumentSpecUnion] + ), + source_type=source_type, + added_collections=added_collections, + removed_collections=removed_collections, + combined_answer_text=utils.get_pydantic_model( + combined_answer_text, + Optional[models.StructuredTextMutableProperties], + ), ), ) @@ -490,7 +532,11 @@ def update( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.EditAnswerRequest + request.edit_answer_request, + False, + False, + "json", + models.EditAnswerRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -534,6 +580,7 @@ async def update_async( self, *, id: int, + locale: Optional[str] = None, doc_id: Optional[str] = None, question: Optional[str] = None, question_variations: Optional[List[str]] = None, @@ -582,6 +629,7 @@ async def update_async( Update an existing user-generated Answer. :param id: The opaque ID of the Answer. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param doc_id: Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID isn't available. If both are available, using the Answer ID is preferred. :param question: :param question_variations: Additional ways of phrasing this question. @@ -611,33 +659,37 @@ async def update_async( else: base_url = self._get_url(base_url, url_variables) - request = models.EditAnswerRequest( - id=id, - doc_id=doc_id, - question=question, - question_variations=question_variations, - body_text=body_text, - board_id=board_id, - audience_filters=utils.get_pydantic_model( - audience_filters, Optional[List[models.FacetFilter]] - ), - added_roles=utils.get_pydantic_model( - added_roles, Optional[List[models.UserRoleSpecification]] - ), - removed_roles=utils.get_pydantic_model( - removed_roles, Optional[List[models.UserRoleSpecification]] - ), - roles=utils.get_pydantic_model( - roles, Optional[List[models.UserRoleSpecification]] - ), - source_document_spec=utils.get_pydantic_model( - source_document_spec, Optional[models.DocumentSpecUnion] - ), - source_type=source_type, - added_collections=added_collections, - removed_collections=removed_collections, - combined_answer_text=utils.get_pydantic_model( - combined_answer_text, Optional[models.StructuredTextMutableProperties] + request = models.EditanswerRequestRequest( + locale=locale, + edit_answer_request=models.EditAnswerRequest( + id=id, + doc_id=doc_id, + question=question, + question_variations=question_variations, + body_text=body_text, + board_id=board_id, + audience_filters=utils.get_pydantic_model( + audience_filters, Optional[List[models.FacetFilter]] + ), + added_roles=utils.get_pydantic_model( + added_roles, Optional[List[models.UserRoleSpecification]] + ), + removed_roles=utils.get_pydantic_model( + removed_roles, Optional[List[models.UserRoleSpecification]] + ), + roles=utils.get_pydantic_model( + roles, Optional[List[models.UserRoleSpecification]] + ), + source_document_spec=utils.get_pydantic_model( + source_document_spec, Optional[models.DocumentSpecUnion] + ), + source_type=source_type, + added_collections=added_collections, + removed_collections=removed_collections, + combined_answer_text=utils.get_pydantic_model( + combined_answer_text, + Optional[models.StructuredTextMutableProperties], + ), ), ) @@ -655,7 +707,11 @@ async def update_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.EditAnswerRequest + request.edit_answer_request, + False, + False, + "json", + models.EditAnswerRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -698,6 +754,7 @@ async def update_async( def retrieve( self, *, + locale: Optional[str] = None, id: Optional[int] = None, doc_id: Optional[str] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, @@ -709,6 +766,7 @@ def retrieve( Read the details of a particular Answer given its ID. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param id: The opaque ID of the Answer. :param doc_id: Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID isn't available. If both are available, using the Answer ID is preferred. :param retries: Override the default retry configuration for this method @@ -726,9 +784,12 @@ def retrieve( else: base_url = self._get_url(base_url, url_variables) - request = models.GetAnswerRequest( - id=id, - doc_id=doc_id, + request = models.GetanswerRequestRequest( + locale=locale, + get_answer_request=models.GetAnswerRequest( + id=id, + doc_id=doc_id, + ), ) req = self._build_request( @@ -745,7 +806,11 @@ def retrieve( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.GetAnswerRequest + request.get_answer_request, + False, + False, + "json", + models.GetAnswerRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -788,6 +853,7 @@ def retrieve( async def retrieve_async( self, *, + locale: Optional[str] = None, id: Optional[int] = None, doc_id: Optional[str] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, @@ -799,6 +865,7 @@ async def retrieve_async( Read the details of a particular Answer given its ID. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param id: The opaque ID of the Answer. :param doc_id: Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID isn't available. If both are available, using the Answer ID is preferred. :param retries: Override the default retry configuration for this method @@ -816,9 +883,12 @@ async def retrieve_async( else: base_url = self._get_url(base_url, url_variables) - request = models.GetAnswerRequest( - id=id, - doc_id=doc_id, + request = models.GetanswerRequestRequest( + locale=locale, + get_answer_request=models.GetAnswerRequest( + id=id, + doc_id=doc_id, + ), ) req = self._build_request_async( @@ -835,7 +905,11 @@ async def retrieve_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.GetAnswerRequest + request.get_answer_request, + False, + False, + "json", + models.GetAnswerRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -876,11 +950,12 @@ async def retrieve_async( raise errors.GleanError("Unexpected response received", http_res) @deprecated( - "warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible." + "warning: ** DEPRECATED ** - Deprecated on 2026-01-21, removal scheduled for 2026-10-15: Answer boards have been removed and this endpoint no longer serves a purpose." ) def list( self, *, + locale: Optional[str] = None, board_id: Optional[int] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -891,6 +966,7 @@ def list( List Answers created by the current user. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param board_id: The Answer Board Id to list answers on. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -907,8 +983,11 @@ def list( else: base_url = self._get_url(base_url, url_variables) - request = models.ListAnswersRequest( - board_id=board_id, + request = models.ListanswersRequestRequest( + locale=locale, + list_answers_request=models.ListAnswersRequest( + board_id=board_id, + ), ) req = self._build_request( @@ -925,7 +1004,11 @@ def list( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.ListAnswersRequest + request.list_answers_request, + False, + False, + "json", + models.ListAnswersRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -966,11 +1049,12 @@ def list( raise errors.GleanError("Unexpected response received", http_res) @deprecated( - "warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible." + "warning: ** DEPRECATED ** - Deprecated on 2026-01-21, removal scheduled for 2026-10-15: Answer boards have been removed and this endpoint no longer serves a purpose." ) async def list_async( self, *, + locale: Optional[str] = None, board_id: Optional[int] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -981,6 +1065,7 @@ async def list_async( List Answers created by the current user. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param board_id: The Answer Board Id to list answers on. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -997,8 +1082,11 @@ async def list_async( else: base_url = self._get_url(base_url, url_variables) - request = models.ListAnswersRequest( - board_id=board_id, + request = models.ListanswersRequestRequest( + locale=locale, + list_answers_request=models.ListAnswersRequest( + board_id=board_id, + ), ) req = self._build_request_async( @@ -1015,7 +1103,11 @@ async def list_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.ListAnswersRequest + request.list_answers_request, + False, + False, + "json", + models.ListAnswersRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, diff --git a/src/glean/api_client/client_chat.py b/src/glean/api_client/client_chat.py index 5c0eb9c1..0ffec2f5 100644 --- a/src/glean/api_client/client_chat.py +++ b/src/glean/api_client/client_chat.py @@ -14,6 +14,7 @@ def create( self, *, messages: Union[List[models.ChatMessage], List[models.ChatMessageTypedDict]], + locale: Optional[str] = None, timezone_offset: Optional[int] = None, session_info: Optional[ Union[models.SessionInfo, models.SessionInfoTypedDict] @@ -43,6 +44,7 @@ def create( Have a conversation with Glean AI. :param messages: A list of chat messages, from most recent to least recent. At least one message must specify a USER author. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param timezone_offset: The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. :param session_info: :param save_chat: Save the current interaction as a Chat for the user to access and potentially continue later. @@ -70,6 +72,7 @@ def create( base_url = self._get_url(base_url, url_variables) request = models.ChatRequestRequest( + locale=locale, timezone_offset=timezone_offset, chat_request=models.ChatRequest( messages=utils.get_pydantic_model(messages, List[models.ChatMessage]), @@ -152,6 +155,7 @@ async def create_async( self, *, messages: Union[List[models.ChatMessage], List[models.ChatMessageTypedDict]], + locale: Optional[str] = None, timezone_offset: Optional[int] = None, session_info: Optional[ Union[models.SessionInfo, models.SessionInfoTypedDict] @@ -181,6 +185,7 @@ async def create_async( Have a conversation with Glean AI. :param messages: A list of chat messages, from most recent to least recent. At least one message must specify a USER author. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param timezone_offset: The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. :param session_info: :param save_chat: Save the current interaction as a Chat for the user to access and potentially continue later. @@ -208,6 +213,7 @@ async def create_async( base_url = self._get_url(base_url, url_variables) request = models.ChatRequestRequest( + locale=locale, timezone_offset=timezone_offset, chat_request=models.ChatRequest( messages=utils.get_pydantic_model(messages, List[models.ChatMessage]), @@ -289,6 +295,7 @@ async def create_async( def delete_all( self, *, + locale: Optional[str] = None, timezone_offset: Optional[int] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -299,6 +306,7 @@ def delete_all( Deletes all saved Chats a user has had and all their contained conversational content. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param timezone_offset: The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -316,6 +324,7 @@ def delete_all( base_url = self._get_url(base_url, url_variables) request = models.DeleteallchatsRequest( + locale=locale, timezone_offset=timezone_offset, ) @@ -373,6 +382,7 @@ def delete_all( async def delete_all_async( self, *, + locale: Optional[str] = None, timezone_offset: Optional[int] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -383,6 +393,7 @@ async def delete_all_async( Deletes all saved Chats a user has had and all their contained conversational content. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param timezone_offset: The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -400,6 +411,7 @@ async def delete_all_async( base_url = self._get_url(base_url, url_variables) request = models.DeleteallchatsRequest( + locale=locale, timezone_offset=timezone_offset, ) @@ -458,6 +470,7 @@ def delete( self, *, ids: List[str], + locale: Optional[str] = None, timezone_offset: Optional[int] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -469,6 +482,7 @@ def delete( Deletes saved Chats and all their contained conversational content. :param ids: A non-empty list of ids of the Chats to be deleted. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param timezone_offset: The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -486,6 +500,7 @@ def delete( base_url = self._get_url(base_url, url_variables) request = models.DeletechatsRequestRequest( + locale=locale, timezone_offset=timezone_offset, delete_chats_request=models.DeleteChatsRequest( ids=ids, @@ -554,6 +569,7 @@ async def delete_async( self, *, ids: List[str], + locale: Optional[str] = None, timezone_offset: Optional[int] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -565,6 +581,7 @@ async def delete_async( Deletes saved Chats and all their contained conversational content. :param ids: A non-empty list of ids of the Chats to be deleted. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param timezone_offset: The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -582,6 +599,7 @@ async def delete_async( base_url = self._get_url(base_url, url_variables) request = models.DeletechatsRequestRequest( + locale=locale, timezone_offset=timezone_offset, delete_chats_request=models.DeleteChatsRequest( ids=ids, @@ -650,6 +668,7 @@ def retrieve( self, *, id: str, + locale: Optional[str] = None, timezone_offset: Optional[int] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -661,6 +680,7 @@ def retrieve( Retrieves the chat history between Glean Assistant and the user for a given Chat. :param id: The id of the Chat to be retrieved. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param timezone_offset: The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -678,6 +698,7 @@ def retrieve( base_url = self._get_url(base_url, url_variables) request = models.GetchatRequestRequest( + locale=locale, timezone_offset=timezone_offset, get_chat_request=models.GetChatRequest( id=id, @@ -742,6 +763,7 @@ async def retrieve_async( self, *, id: str, + locale: Optional[str] = None, timezone_offset: Optional[int] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -753,6 +775,7 @@ async def retrieve_async( Retrieves the chat history between Glean Assistant and the user for a given Chat. :param id: The id of the Chat to be retrieved. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param timezone_offset: The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -770,6 +793,7 @@ async def retrieve_async( base_url = self._get_url(base_url, url_variables) request = models.GetchatRequestRequest( + locale=locale, timezone_offset=timezone_offset, get_chat_request=models.GetChatRequest( id=id, @@ -833,6 +857,7 @@ async def retrieve_async( def list( self, *, + locale: Optional[str] = None, timezone_offset: Optional[int] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -843,6 +868,7 @@ def list( Retrieves all the saved Chats between Glean Assistant and the user. The returned Chats contain only metadata and no conversational content. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param timezone_offset: The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -860,6 +886,7 @@ def list( base_url = self._get_url(base_url, url_variables) request = models.ListchatsRequest( + locale=locale, timezone_offset=timezone_offset, ) @@ -917,6 +944,7 @@ def list( async def list_async( self, *, + locale: Optional[str] = None, timezone_offset: Optional[int] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -927,6 +955,7 @@ async def list_async( Retrieves all the saved Chats between Glean Assistant and the user. The returned Chats contain only metadata and no conversational content. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param timezone_offset: The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -944,6 +973,7 @@ async def list_async( base_url = self._get_url(base_url, url_variables) request = models.ListchatsRequest( + locale=locale, timezone_offset=timezone_offset, ) @@ -1002,6 +1032,7 @@ def retrieve_application( self, *, id: str, + locale: Optional[str] = None, timezone_offset: Optional[int] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -1013,6 +1044,7 @@ def retrieve_application( Gets the Chat application details for the specified application ID. :param id: The id of the Chat application to be retrieved. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param timezone_offset: The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -1030,6 +1062,7 @@ def retrieve_application( base_url = self._get_url(base_url, url_variables) request = models.GetchatapplicationRequestRequest( + locale=locale, timezone_offset=timezone_offset, get_chat_application_request=models.GetChatApplicationRequest( id=id, @@ -1098,6 +1131,7 @@ async def retrieve_application_async( self, *, id: str, + locale: Optional[str] = None, timezone_offset: Optional[int] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -1109,6 +1143,7 @@ async def retrieve_application_async( Gets the Chat application details for the specified application ID. :param id: The id of the Chat application to be retrieved. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param timezone_offset: The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -1126,6 +1161,7 @@ async def retrieve_application_async( base_url = self._get_url(base_url, url_variables) request = models.GetchatapplicationRequestRequest( + locale=locale, timezone_offset=timezone_offset, get_chat_application_request=models.GetChatApplicationRequest( id=id, @@ -1194,6 +1230,7 @@ def upload_files( self, *, files: Union[List[models.File], List[models.FileTypedDict]], + locale: Optional[str] = None, timezone_offset: Optional[int] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -1205,6 +1242,7 @@ def upload_files( Upload files for Chat. :param files: Raw files to be uploaded for chat in binary format. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param timezone_offset: The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -1222,6 +1260,7 @@ def upload_files( base_url = self._get_url(base_url, url_variables) request = models.UploadchatfilesRequestRequest( + locale=locale, timezone_offset=timezone_offset, upload_chat_files_request=models.UploadChatFilesRequest( files=utils.get_pydantic_model(files, List[models.File]), @@ -1290,6 +1329,7 @@ async def upload_files_async( self, *, files: Union[List[models.File], List[models.FileTypedDict]], + locale: Optional[str] = None, timezone_offset: Optional[int] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -1301,6 +1341,7 @@ async def upload_files_async( Upload files for Chat. :param files: Raw files to be uploaded for chat in binary format. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param timezone_offset: The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -1318,6 +1359,7 @@ async def upload_files_async( base_url = self._get_url(base_url, url_variables) request = models.UploadchatfilesRequestRequest( + locale=locale, timezone_offset=timezone_offset, upload_chat_files_request=models.UploadChatFilesRequest( files=utils.get_pydantic_model(files, List[models.File]), @@ -1386,6 +1428,7 @@ def retrieve_files( self, *, file_ids: List[str], + locale: Optional[str] = None, timezone_offset: Optional[int] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -1397,6 +1440,7 @@ def retrieve_files( Get files uploaded by a user for Chat. :param file_ids: IDs of files to fetch. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param timezone_offset: The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -1414,6 +1458,7 @@ def retrieve_files( base_url = self._get_url(base_url, url_variables) request = models.GetchatfilesRequestRequest( + locale=locale, timezone_offset=timezone_offset, get_chat_files_request=models.GetChatFilesRequest( file_ids=file_ids, @@ -1482,6 +1527,7 @@ async def retrieve_files_async( self, *, file_ids: List[str], + locale: Optional[str] = None, timezone_offset: Optional[int] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -1493,6 +1539,7 @@ async def retrieve_files_async( Get files uploaded by a user for Chat. :param file_ids: IDs of files to fetch. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param timezone_offset: The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -1510,6 +1557,7 @@ async def retrieve_files_async( base_url = self._get_url(base_url, url_variables) request = models.GetchatfilesRequestRequest( + locale=locale, timezone_offset=timezone_offset, get_chat_files_request=models.GetChatFilesRequest( file_ids=file_ids, @@ -1578,6 +1626,7 @@ def delete_files( self, *, file_ids: List[str], + locale: Optional[str] = None, timezone_offset: Optional[int] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -1589,6 +1638,7 @@ def delete_files( Delete files uploaded by a user for Chat. :param file_ids: IDs of files to delete. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param timezone_offset: The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -1606,6 +1656,7 @@ def delete_files( base_url = self._get_url(base_url, url_variables) request = models.DeletechatfilesRequestRequest( + locale=locale, timezone_offset=timezone_offset, delete_chat_files_request=models.DeleteChatFilesRequest( file_ids=file_ids, @@ -1674,6 +1725,7 @@ async def delete_files_async( self, *, file_ids: List[str], + locale: Optional[str] = None, timezone_offset: Optional[int] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -1685,6 +1737,7 @@ async def delete_files_async( Delete files uploaded by a user for Chat. :param file_ids: IDs of files to delete. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param timezone_offset: The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -1702,6 +1755,7 @@ async def delete_files_async( base_url = self._get_url(base_url, url_variables) request = models.DeletechatfilesRequestRequest( + locale=locale, timezone_offset=timezone_offset, delete_chat_files_request=models.DeleteChatFilesRequest( file_ids=file_ids, diff --git a/src/glean/api_client/client_documents.py b/src/glean/api_client/client_documents.py index 82b6efd9..da16a0cc 100644 --- a/src/glean/api_client/client_documents.py +++ b/src/glean/api_client/client_documents.py @@ -4,16 +4,17 @@ from datetime import datetime from glean.api_client import errors, models, utils from glean.api_client._hooks import HookContext -from glean.api_client.types import BaseModel, OptionalNullable, UNSET +from glean.api_client.types import OptionalNullable, UNSET from glean.api_client.utils import get_security_from_env from glean.api_client.utils.unmarshal_json_response import unmarshal_json_response -from typing import List, Mapping, Optional, Union, cast +from typing import List, Mapping, Optional, Union class ClientDocuments(BaseSDK): def retrieve_permissions( self, *, + locale: Optional[str] = None, document_id: Optional[str] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -24,6 +25,7 @@ def retrieve_permissions( Read the emails of all users who have access to the given document. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param document_id: The Glean Document ID to retrieve permissions for. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -40,8 +42,11 @@ def retrieve_permissions( else: base_url = self._get_url(base_url, url_variables) - request = models.GetDocPermissionsRequest( - document_id=document_id, + request = models.GetdocpermissionsRequestRequest( + locale=locale, + get_doc_permissions_request=models.GetDocPermissionsRequest( + document_id=document_id, + ), ) req = self._build_request( @@ -58,7 +63,11 @@ def retrieve_permissions( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.GetDocPermissionsRequest + request.get_doc_permissions_request, + False, + False, + "json", + models.GetDocPermissionsRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -101,6 +110,7 @@ def retrieve_permissions( async def retrieve_permissions_async( self, *, + locale: Optional[str] = None, document_id: Optional[str] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -111,6 +121,7 @@ async def retrieve_permissions_async( Read the emails of all users who have access to the given document. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param document_id: The Glean Document ID to retrieve permissions for. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -127,8 +138,11 @@ async def retrieve_permissions_async( else: base_url = self._get_url(base_url, url_variables) - request = models.GetDocPermissionsRequest( - document_id=document_id, + request = models.GetdocpermissionsRequestRequest( + locale=locale, + get_doc_permissions_request=models.GetDocPermissionsRequest( + document_id=document_id, + ), ) req = self._build_request_async( @@ -145,7 +159,11 @@ async def retrieve_permissions_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.GetDocPermissionsRequest + request.get_doc_permissions_request, + False, + False, + "json", + models.GetDocPermissionsRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -188,7 +206,8 @@ async def retrieve_permissions_async( def retrieve( self, *, - request: Optional[ + locale: Optional[str] = None, + get_documents_request: Optional[ Union[models.GetDocumentsRequest, models.GetDocumentsRequestTypedDict] ] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, @@ -200,7 +219,8 @@ def retrieve( Read the documents including metadata (does not include enhanced metadata via `/documentmetadata`) for the given list of Glean Document IDs or URLs specified in the request. - :param request: The request object to send. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + :param get_documents_request: Information about documents requested. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -216,9 +236,12 @@ def retrieve( else: base_url = self._get_url(base_url, url_variables) - if not isinstance(request, BaseModel): - request = utils.unmarshal(request, Optional[models.GetDocumentsRequest]) - request = cast(Optional[models.GetDocumentsRequest], request) + request = models.GetdocumentsRequestRequest( + locale=locale, + get_documents_request=utils.get_pydantic_model( + get_documents_request, Optional[models.GetDocumentsRequest] + ), + ) req = self._build_request( method="POST", @@ -234,7 +257,11 @@ def retrieve( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, True, "json", Optional[models.GetDocumentsRequest] + request.get_documents_request, + False, + True, + "json", + Optional[models.GetDocumentsRequest], ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -277,7 +304,8 @@ def retrieve( async def retrieve_async( self, *, - request: Optional[ + locale: Optional[str] = None, + get_documents_request: Optional[ Union[models.GetDocumentsRequest, models.GetDocumentsRequestTypedDict] ] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, @@ -289,7 +317,8 @@ async def retrieve_async( Read the documents including metadata (does not include enhanced metadata via `/documentmetadata`) for the given list of Glean Document IDs or URLs specified in the request. - :param request: The request object to send. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + :param get_documents_request: Information about documents requested. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -305,9 +334,12 @@ async def retrieve_async( else: base_url = self._get_url(base_url, url_variables) - if not isinstance(request, BaseModel): - request = utils.unmarshal(request, Optional[models.GetDocumentsRequest]) - request = cast(Optional[models.GetDocumentsRequest], request) + request = models.GetdocumentsRequestRequest( + locale=locale, + get_documents_request=utils.get_pydantic_model( + get_documents_request, Optional[models.GetDocumentsRequest] + ), + ) req = self._build_request_async( method="POST", @@ -323,7 +355,11 @@ async def retrieve_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, True, "json", Optional[models.GetDocumentsRequest] + request.get_documents_request, + False, + True, + "json", + Optional[models.GetDocumentsRequest], ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -366,7 +402,8 @@ async def retrieve_async( def retrieve_by_facets( self, *, - request: Optional[ + locale: Optional[str] = None, + get_documents_by_facets_request: Optional[ Union[ models.GetDocumentsByFacetsRequest, models.GetDocumentsByFacetsRequestTypedDict, @@ -381,7 +418,8 @@ def retrieve_by_facets( Read the documents including metadata (does not include enhanced metadata via `/documentmetadata`) macthing the given facet conditions. - :param request: The request object to send. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + :param get_documents_by_facets_request: Information about facet conditions for documents to be retrieved. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -397,11 +435,13 @@ def retrieve_by_facets( else: base_url = self._get_url(base_url, url_variables) - if not isinstance(request, BaseModel): - request = utils.unmarshal( - request, Optional[models.GetDocumentsByFacetsRequest] - ) - request = cast(Optional[models.GetDocumentsByFacetsRequest], request) + request = models.GetdocumentsbyfacetsRequestRequest( + locale=locale, + get_documents_by_facets_request=utils.get_pydantic_model( + get_documents_by_facets_request, + Optional[models.GetDocumentsByFacetsRequest], + ), + ) req = self._build_request( method="POST", @@ -417,7 +457,7 @@ def retrieve_by_facets( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, + request.get_documents_by_facets_request, False, True, "json", @@ -466,7 +506,8 @@ def retrieve_by_facets( async def retrieve_by_facets_async( self, *, - request: Optional[ + locale: Optional[str] = None, + get_documents_by_facets_request: Optional[ Union[ models.GetDocumentsByFacetsRequest, models.GetDocumentsByFacetsRequestTypedDict, @@ -481,7 +522,8 @@ async def retrieve_by_facets_async( Read the documents including metadata (does not include enhanced metadata via `/documentmetadata`) macthing the given facet conditions. - :param request: The request object to send. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + :param get_documents_by_facets_request: Information about facet conditions for documents to be retrieved. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -497,11 +539,13 @@ async def retrieve_by_facets_async( else: base_url = self._get_url(base_url, url_variables) - if not isinstance(request, BaseModel): - request = utils.unmarshal( - request, Optional[models.GetDocumentsByFacetsRequest] - ) - request = cast(Optional[models.GetDocumentsByFacetsRequest], request) + request = models.GetdocumentsbyfacetsRequestRequest( + locale=locale, + get_documents_by_facets_request=utils.get_pydantic_model( + get_documents_by_facets_request, + Optional[models.GetDocumentsByFacetsRequest], + ), + ) req = self._build_request_async( method="POST", @@ -517,7 +561,7 @@ async def retrieve_by_facets_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, + request.get_documents_by_facets_request, False, True, "json", @@ -569,6 +613,7 @@ def summarize( document_specs: Union[ List[models.DocumentSpecUnion], List[models.DocumentSpecUnionTypedDict] ], + locale: Optional[str] = None, timestamp: Optional[datetime] = None, query: Optional[str] = None, preferred_summary_length: Optional[int] = None, @@ -583,6 +628,7 @@ def summarize( Generate an AI summary of the requested documents. :param document_specs: Specifications of documents to summarize + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param timestamp: The ISO 8601 timestamp associated with the client request. :param query: Optional query that the summary should be about :param preferred_summary_length: Optional length of summary output. If not given, defaults to 500 chars. @@ -602,14 +648,17 @@ def summarize( else: base_url = self._get_url(base_url, url_variables) - request = models.SummarizeRequest( - timestamp=timestamp, - query=query, - preferred_summary_length=preferred_summary_length, - document_specs=utils.get_pydantic_model( - document_specs, List[models.DocumentSpecUnion] + request = models.SummarizeRequestRequest( + locale=locale, + summarize_request=models.SummarizeRequest( + timestamp=timestamp, + query=query, + preferred_summary_length=preferred_summary_length, + document_specs=utils.get_pydantic_model( + document_specs, List[models.DocumentSpecUnion] + ), + tracking_token=tracking_token, ), - tracking_token=tracking_token, ) req = self._build_request( @@ -626,7 +675,7 @@ def summarize( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.SummarizeRequest + request.summarize_request, False, False, "json", models.SummarizeRequest ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -672,6 +721,7 @@ async def summarize_async( document_specs: Union[ List[models.DocumentSpecUnion], List[models.DocumentSpecUnionTypedDict] ], + locale: Optional[str] = None, timestamp: Optional[datetime] = None, query: Optional[str] = None, preferred_summary_length: Optional[int] = None, @@ -686,6 +736,7 @@ async def summarize_async( Generate an AI summary of the requested documents. :param document_specs: Specifications of documents to summarize + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param timestamp: The ISO 8601 timestamp associated with the client request. :param query: Optional query that the summary should be about :param preferred_summary_length: Optional length of summary output. If not given, defaults to 500 chars. @@ -705,14 +756,17 @@ async def summarize_async( else: base_url = self._get_url(base_url, url_variables) - request = models.SummarizeRequest( - timestamp=timestamp, - query=query, - preferred_summary_length=preferred_summary_length, - document_specs=utils.get_pydantic_model( - document_specs, List[models.DocumentSpecUnion] + request = models.SummarizeRequestRequest( + locale=locale, + summarize_request=models.SummarizeRequest( + timestamp=timestamp, + query=query, + preferred_summary_length=preferred_summary_length, + document_specs=utils.get_pydantic_model( + document_specs, List[models.DocumentSpecUnion] + ), + tracking_token=tracking_token, ), - tracking_token=tracking_token, ) req = self._build_request_async( @@ -729,7 +783,7 @@ async def summarize_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.SummarizeRequest + request.summarize_request, False, False, "json", models.SummarizeRequest ), allow_empty_value=None, timeout_ms=timeout_ms, diff --git a/src/glean/api_client/client_shortcuts.py b/src/glean/api_client/client_shortcuts.py index ec94b1e8..43b8bd6c 100644 --- a/src/glean/api_client/client_shortcuts.py +++ b/src/glean/api_client/client_shortcuts.py @@ -3,10 +3,10 @@ from .basesdk import BaseSDK from glean.api_client import errors, models, utils from glean.api_client._hooks import HookContext -from glean.api_client.types import BaseModel, OptionalNullable, UNSET +from glean.api_client.types import OptionalNullable, UNSET from glean.api_client.utils import get_security_from_env from glean.api_client.utils.unmarshal_json_response import unmarshal_json_response -from typing import List, Mapping, Optional, Union, cast +from typing import List, Mapping, Optional, Union class ClientShortcuts(BaseSDK): @@ -16,6 +16,7 @@ def create( data: Union[ models.ShortcutMutableProperties, models.ShortcutMutablePropertiesTypedDict ], + locale: Optional[str] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -26,6 +27,7 @@ def create( Create a user-generated shortcut that contains an alias and destination URL. :param data: + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -41,8 +43,11 @@ def create( else: base_url = self._get_url(base_url, url_variables) - request = models.CreateShortcutRequest( - data=utils.get_pydantic_model(data, models.ShortcutMutableProperties), + request = models.CreateshortcutRequestRequest( + locale=locale, + create_shortcut_request=models.CreateShortcutRequest( + data=utils.get_pydantic_model(data, models.ShortcutMutableProperties), + ), ) req = self._build_request( @@ -59,7 +64,11 @@ def create( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.CreateShortcutRequest + request.create_shortcut_request, + False, + False, + "json", + models.CreateShortcutRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -105,6 +114,7 @@ async def create_async( data: Union[ models.ShortcutMutableProperties, models.ShortcutMutablePropertiesTypedDict ], + locale: Optional[str] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -115,6 +125,7 @@ async def create_async( Create a user-generated shortcut that contains an alias and destination URL. :param data: + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -130,8 +141,11 @@ async def create_async( else: base_url = self._get_url(base_url, url_variables) - request = models.CreateShortcutRequest( - data=utils.get_pydantic_model(data, models.ShortcutMutableProperties), + request = models.CreateshortcutRequestRequest( + locale=locale, + create_shortcut_request=models.CreateShortcutRequest( + data=utils.get_pydantic_model(data, models.ShortcutMutableProperties), + ), ) req = self._build_request_async( @@ -148,7 +162,11 @@ async def create_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.CreateShortcutRequest + request.create_shortcut_request, + False, + False, + "json", + models.CreateShortcutRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -192,6 +210,7 @@ def delete( self, *, id: int, + locale: Optional[str] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -202,6 +221,7 @@ def delete( Delete an existing user-generated shortcut. :param id: The opaque id of the user generated content. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -217,8 +237,11 @@ def delete( else: base_url = self._get_url(base_url, url_variables) - request = models.DeleteShortcutRequest( - id=id, + request = models.DeleteshortcutRequestRequest( + locale=locale, + delete_shortcut_request=models.DeleteShortcutRequest( + id=id, + ), ) req = self._build_request( @@ -235,7 +258,11 @@ def delete( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.DeleteShortcutRequest + request.delete_shortcut_request, + False, + False, + "json", + models.DeleteShortcutRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -279,6 +306,7 @@ async def delete_async( self, *, id: int, + locale: Optional[str] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -289,6 +317,7 @@ async def delete_async( Delete an existing user-generated shortcut. :param id: The opaque id of the user generated content. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -304,8 +333,11 @@ async def delete_async( else: base_url = self._get_url(base_url, url_variables) - request = models.DeleteShortcutRequest( - id=id, + request = models.DeleteshortcutRequestRequest( + locale=locale, + delete_shortcut_request=models.DeleteShortcutRequest( + id=id, + ), ) req = self._build_request_async( @@ -322,7 +354,11 @@ async def delete_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.DeleteShortcutRequest + request.delete_shortcut_request, + False, + False, + "json", + models.DeleteShortcutRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -365,9 +401,10 @@ async def delete_async( def retrieve( self, *, - request: Union[ - models.GetShortcutRequestUnion, models.GetShortcutRequestUnionTypedDict + get_shortcut_request: Union[ + models.GetShortcutRequest, models.GetShortcutRequestTypedDict ], + locale: Optional[str] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -377,7 +414,8 @@ def retrieve( Read a particular shortcut's details given its ID. - :param request: The request object to send. + :param get_shortcut_request: GetShortcut request + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -393,9 +431,12 @@ def retrieve( else: base_url = self._get_url(base_url, url_variables) - if not isinstance(request, BaseModel): - request = utils.unmarshal(request, models.GetShortcutRequestUnion) - request = cast(models.GetShortcutRequestUnion, request) + request = models.GetshortcutRequestRequest( + locale=locale, + get_shortcut_request=utils.get_pydantic_model( + get_shortcut_request, models.GetShortcutRequest + ), + ) req = self._build_request( method="POST", @@ -411,7 +452,11 @@ def retrieve( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.GetShortcutRequestUnion + request.get_shortcut_request, + False, + False, + "json", + models.GetShortcutRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -454,9 +499,10 @@ def retrieve( async def retrieve_async( self, *, - request: Union[ - models.GetShortcutRequestUnion, models.GetShortcutRequestUnionTypedDict + get_shortcut_request: Union[ + models.GetShortcutRequest, models.GetShortcutRequestTypedDict ], + locale: Optional[str] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -466,7 +512,8 @@ async def retrieve_async( Read a particular shortcut's details given its ID. - :param request: The request object to send. + :param get_shortcut_request: GetShortcut request + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -482,9 +529,12 @@ async def retrieve_async( else: base_url = self._get_url(base_url, url_variables) - if not isinstance(request, BaseModel): - request = utils.unmarshal(request, models.GetShortcutRequestUnion) - request = cast(models.GetShortcutRequestUnion, request) + request = models.GetshortcutRequestRequest( + locale=locale, + get_shortcut_request=utils.get_pydantic_model( + get_shortcut_request, models.GetShortcutRequest + ), + ) req = self._build_request_async( method="POST", @@ -500,7 +550,11 @@ async def retrieve_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.GetShortcutRequestUnion + request.get_shortcut_request, + False, + False, + "json", + models.GetShortcutRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -544,6 +598,7 @@ def list( self, *, page_size: int, + locale: Optional[str] = None, include_fields: Optional[ List[models.ListShortcutsPaginatedRequestIncludeField] ] = None, @@ -563,6 +618,7 @@ def list( List shortcuts editable/owned by the currently authenticated user. :param page_size: + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param include_fields: Array of fields/data to be included in response that are not included by default :param cursor: A token specifying the position in the overall results to start at. Received from the endpoint and iterated back. Currently being used as page no (as we implement offset pagination) :param filters: A list of filters for the query. An AND is assumed between different filters. We support filters on Go Link name, author, department and type. @@ -583,15 +639,18 @@ def list( else: base_url = self._get_url(base_url, url_variables) - request = models.ListShortcutsPaginatedRequest( - include_fields=include_fields, - page_size=page_size, - cursor=cursor, - filters=utils.get_pydantic_model( - filters, Optional[List[models.FacetFilter]] + request = models.ListshortcutsRequest( + locale=locale, + list_shortcuts_paginated_request=models.ListShortcutsPaginatedRequest( + include_fields=include_fields, + page_size=page_size, + cursor=cursor, + filters=utils.get_pydantic_model( + filters, Optional[List[models.FacetFilter]] + ), + sort=utils.get_pydantic_model(sort, Optional[models.SortOptions]), + query=query, ), - sort=utils.get_pydantic_model(sort, Optional[models.SortOptions]), - query=query, ) req = self._build_request( @@ -608,7 +667,11 @@ def list( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.ListShortcutsPaginatedRequest + request.list_shortcuts_paginated_request, + False, + False, + "json", + models.ListShortcutsPaginatedRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -654,6 +717,7 @@ async def list_async( self, *, page_size: int, + locale: Optional[str] = None, include_fields: Optional[ List[models.ListShortcutsPaginatedRequestIncludeField] ] = None, @@ -673,6 +737,7 @@ async def list_async( List shortcuts editable/owned by the currently authenticated user. :param page_size: + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param include_fields: Array of fields/data to be included in response that are not included by default :param cursor: A token specifying the position in the overall results to start at. Received from the endpoint and iterated back. Currently being used as page no (as we implement offset pagination) :param filters: A list of filters for the query. An AND is assumed between different filters. We support filters on Go Link name, author, department and type. @@ -693,15 +758,18 @@ async def list_async( else: base_url = self._get_url(base_url, url_variables) - request = models.ListShortcutsPaginatedRequest( - include_fields=include_fields, - page_size=page_size, - cursor=cursor, - filters=utils.get_pydantic_model( - filters, Optional[List[models.FacetFilter]] + request = models.ListshortcutsRequest( + locale=locale, + list_shortcuts_paginated_request=models.ListShortcutsPaginatedRequest( + include_fields=include_fields, + page_size=page_size, + cursor=cursor, + filters=utils.get_pydantic_model( + filters, Optional[List[models.FacetFilter]] + ), + sort=utils.get_pydantic_model(sort, Optional[models.SortOptions]), + query=query, ), - sort=utils.get_pydantic_model(sort, Optional[models.SortOptions]), - query=query, ) req = self._build_request_async( @@ -718,7 +786,11 @@ async def list_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.ListShortcutsPaginatedRequest + request.list_shortcuts_paginated_request, + False, + False, + "json", + models.ListShortcutsPaginatedRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -764,6 +836,7 @@ def update( self, *, id: int, + locale: Optional[str] = None, input_alias: Optional[str] = None, destination_url: Optional[str] = None, destination_document_id: Optional[str] = None, @@ -792,6 +865,7 @@ def update( Updates the shortcut with the given ID. :param id: The opaque id of the user generated content. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param input_alias: Link text following go/ prefix as entered by the user. :param destination_url: Destination URL for the shortcut. :param destination_document_id: Glean Document ID for the URL, if known. @@ -815,19 +889,22 @@ def update( else: base_url = self._get_url(base_url, url_variables) - request = models.UpdateShortcutRequest( - id=id, - input_alias=input_alias, - destination_url=destination_url, - destination_document_id=destination_document_id, - description=description, - unlisted=unlisted, - url_template=url_template, - added_roles=utils.get_pydantic_model( - added_roles, Optional[List[models.UserRoleSpecification]] - ), - removed_roles=utils.get_pydantic_model( - removed_roles, Optional[List[models.UserRoleSpecification]] + request = models.UpdateshortcutRequestRequest( + locale=locale, + update_shortcut_request=models.UpdateShortcutRequest( + id=id, + input_alias=input_alias, + destination_url=destination_url, + destination_document_id=destination_document_id, + description=description, + unlisted=unlisted, + url_template=url_template, + added_roles=utils.get_pydantic_model( + added_roles, Optional[List[models.UserRoleSpecification]] + ), + removed_roles=utils.get_pydantic_model( + removed_roles, Optional[List[models.UserRoleSpecification]] + ), ), ) @@ -845,7 +922,11 @@ def update( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.UpdateShortcutRequest + request.update_shortcut_request, + False, + False, + "json", + models.UpdateShortcutRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -889,6 +970,7 @@ async def update_async( self, *, id: int, + locale: Optional[str] = None, input_alias: Optional[str] = None, destination_url: Optional[str] = None, destination_document_id: Optional[str] = None, @@ -917,6 +999,7 @@ async def update_async( Updates the shortcut with the given ID. :param id: The opaque id of the user generated content. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param input_alias: Link text following go/ prefix as entered by the user. :param destination_url: Destination URL for the shortcut. :param destination_document_id: Glean Document ID for the URL, if known. @@ -940,19 +1023,22 @@ async def update_async( else: base_url = self._get_url(base_url, url_variables) - request = models.UpdateShortcutRequest( - id=id, - input_alias=input_alias, - destination_url=destination_url, - destination_document_id=destination_document_id, - description=description, - unlisted=unlisted, - url_template=url_template, - added_roles=utils.get_pydantic_model( - added_roles, Optional[List[models.UserRoleSpecification]] - ), - removed_roles=utils.get_pydantic_model( - removed_roles, Optional[List[models.UserRoleSpecification]] + request = models.UpdateshortcutRequestRequest( + locale=locale, + update_shortcut_request=models.UpdateShortcutRequest( + id=id, + input_alias=input_alias, + destination_url=destination_url, + destination_document_id=destination_document_id, + description=description, + unlisted=unlisted, + url_template=url_template, + added_roles=utils.get_pydantic_model( + added_roles, Optional[List[models.UserRoleSpecification]] + ), + removed_roles=utils.get_pydantic_model( + removed_roles, Optional[List[models.UserRoleSpecification]] + ), ), ) @@ -970,7 +1056,11 @@ async def update_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.UpdateShortcutRequest + request.update_shortcut_request, + False, + False, + "json", + models.UpdateShortcutRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, diff --git a/src/glean/api_client/client_verification.py b/src/glean/api_client/client_verification.py index 67219858..e19e3ff4 100644 --- a/src/glean/api_client/client_verification.py +++ b/src/glean/api_client/client_verification.py @@ -14,6 +14,7 @@ def add_reminder( self, *, document_id: str, + locale: Optional[str] = None, assignee: Optional[str] = None, remind_in_days: Optional[int] = None, reason: Optional[str] = None, @@ -27,6 +28,7 @@ def add_reminder( Creates a verification reminder for the document. Users can create verification reminders from different product surfaces. :param document_id: The document which the verification is for new reminders and/or update. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param assignee: The obfuscated id of the person this verification is assigned to. :param remind_in_days: Reminder for the next verifications in terms of days. For deletion, this will be omitted. :param reason: An optional free-text reason for the reminder. This is particularly useful when a reminder is used to ask for verification from another user (for example, \"Duplicate\", \"Incomplete\", \"Incorrect\"). @@ -45,11 +47,14 @@ def add_reminder( else: base_url = self._get_url(base_url, url_variables) - request = models.ReminderRequest( - document_id=document_id, - assignee=assignee, - remind_in_days=remind_in_days, - reason=reason, + request = models.AddverificationreminderRequest( + locale=locale, + reminder_request=models.ReminderRequest( + document_id=document_id, + assignee=assignee, + remind_in_days=remind_in_days, + reason=reason, + ), ) req = self._build_request( @@ -66,7 +71,7 @@ def add_reminder( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.ReminderRequest + request.reminder_request, False, False, "json", models.ReminderRequest ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -110,6 +115,7 @@ async def add_reminder_async( self, *, document_id: str, + locale: Optional[str] = None, assignee: Optional[str] = None, remind_in_days: Optional[int] = None, reason: Optional[str] = None, @@ -123,6 +129,7 @@ async def add_reminder_async( Creates a verification reminder for the document. Users can create verification reminders from different product surfaces. :param document_id: The document which the verification is for new reminders and/or update. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param assignee: The obfuscated id of the person this verification is assigned to. :param remind_in_days: Reminder for the next verifications in terms of days. For deletion, this will be omitted. :param reason: An optional free-text reason for the reminder. This is particularly useful when a reminder is used to ask for verification from another user (for example, \"Duplicate\", \"Incomplete\", \"Incorrect\"). @@ -141,11 +148,14 @@ async def add_reminder_async( else: base_url = self._get_url(base_url, url_variables) - request = models.ReminderRequest( - document_id=document_id, - assignee=assignee, - remind_in_days=remind_in_days, - reason=reason, + request = models.AddverificationreminderRequest( + locale=locale, + reminder_request=models.ReminderRequest( + document_id=document_id, + assignee=assignee, + remind_in_days=remind_in_days, + reason=reason, + ), ) req = self._build_request_async( @@ -162,7 +172,7 @@ async def add_reminder_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.ReminderRequest + request.reminder_request, False, False, "json", models.ReminderRequest ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -206,6 +216,7 @@ def list( self, *, count: Optional[int] = None, + locale: Optional[str] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -216,6 +227,7 @@ def list( Returns the information to be rendered in verification dashboard. Includes information for each document owned by user regarding their verifications. :param count: Maximum number of documents to return + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -233,6 +245,7 @@ def list( request = models.ListverificationsRequest( count=count, + locale=locale, ) req = self._build_request( @@ -290,6 +303,7 @@ async def list_async( self, *, count: Optional[int] = None, + locale: Optional[str] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -300,6 +314,7 @@ async def list_async( Returns the information to be rendered in verification dashboard. Includes information for each document owned by user regarding their verifications. :param count: Maximum number of documents to return + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -317,6 +332,7 @@ async def list_async( request = models.ListverificationsRequest( count=count, + locale=locale, ) req = self._build_request_async( @@ -374,6 +390,7 @@ def verify( self, *, document_id: str, + locale: Optional[str] = None, action: Optional[models.VerifyRequestAction] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -385,6 +402,7 @@ def verify( Verify documents to keep the knowledge up to date within customer corpus. :param document_id: The document which is verified. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param action: The verification action requested. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -401,9 +419,12 @@ def verify( else: base_url = self._get_url(base_url, url_variables) - request = models.VerifyRequest( - document_id=document_id, - action=action, + request = models.VerifyRequestRequest( + locale=locale, + verify_request=models.VerifyRequest( + document_id=document_id, + action=action, + ), ) req = self._build_request( @@ -420,7 +441,7 @@ def verify( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.VerifyRequest + request.verify_request, False, False, "json", models.VerifyRequest ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -464,6 +485,7 @@ async def verify_async( self, *, document_id: str, + locale: Optional[str] = None, action: Optional[models.VerifyRequestAction] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -475,6 +497,7 @@ async def verify_async( Verify documents to keep the knowledge up to date within customer corpus. :param document_id: The document which is verified. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param action: The verification action requested. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -491,9 +514,12 @@ async def verify_async( else: base_url = self._get_url(base_url, url_variables) - request = models.VerifyRequest( - document_id=document_id, - action=action, + request = models.VerifyRequestRequest( + locale=locale, + verify_request=models.VerifyRequest( + document_id=document_id, + action=action, + ), ) req = self._build_request_async( @@ -510,7 +536,7 @@ async def verify_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.VerifyRequest + request.verify_request, False, False, "json", models.VerifyRequest ), allow_empty_value=None, timeout_ms=timeout_ms, diff --git a/src/glean/api_client/collections.py b/src/glean/api_client/collections.py index e5d36ad7..82614ff4 100644 --- a/src/glean/api_client/collections.py +++ b/src/glean/api_client/collections.py @@ -14,6 +14,7 @@ def add_items( self, *, collection_id: float, + locale: Optional[str] = None, added_collection_item_descriptors: Optional[ Union[ List[models.CollectionItemDescriptor], @@ -30,6 +31,7 @@ def add_items( Add items to a Collection. :param collection_id: The ID of the Collection to add items to. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param added_collection_item_descriptors: The CollectionItemDescriptors of the items being added. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -46,11 +48,14 @@ def add_items( else: base_url = self._get_url(base_url, url_variables) - request = models.AddCollectionItemsRequest( - collection_id=collection_id, - added_collection_item_descriptors=utils.get_pydantic_model( - added_collection_item_descriptors, - Optional[List[models.CollectionItemDescriptor]], + request = models.AddcollectionitemsRequestRequest( + locale=locale, + add_collection_items_request=models.AddCollectionItemsRequest( + collection_id=collection_id, + added_collection_item_descriptors=utils.get_pydantic_model( + added_collection_item_descriptors, + Optional[List[models.CollectionItemDescriptor]], + ), ), ) @@ -68,7 +73,11 @@ def add_items( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.AddCollectionItemsRequest + request.add_collection_items_request, + False, + False, + "json", + models.AddCollectionItemsRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -112,6 +121,7 @@ async def add_items_async( self, *, collection_id: float, + locale: Optional[str] = None, added_collection_item_descriptors: Optional[ Union[ List[models.CollectionItemDescriptor], @@ -128,6 +138,7 @@ async def add_items_async( Add items to a Collection. :param collection_id: The ID of the Collection to add items to. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param added_collection_item_descriptors: The CollectionItemDescriptors of the items being added. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -144,11 +155,14 @@ async def add_items_async( else: base_url = self._get_url(base_url, url_variables) - request = models.AddCollectionItemsRequest( - collection_id=collection_id, - added_collection_item_descriptors=utils.get_pydantic_model( - added_collection_item_descriptors, - Optional[List[models.CollectionItemDescriptor]], + request = models.AddcollectionitemsRequestRequest( + locale=locale, + add_collection_items_request=models.AddCollectionItemsRequest( + collection_id=collection_id, + added_collection_item_descriptors=utils.get_pydantic_model( + added_collection_item_descriptors, + Optional[List[models.CollectionItemDescriptor]], + ), ), ) @@ -166,7 +180,11 @@ async def add_items_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.AddCollectionItemsRequest + request.add_collection_items_request, + False, + False, + "json", + models.AddCollectionItemsRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -210,6 +228,7 @@ def create( self, *, name: str, + locale: Optional[str] = None, description: Optional[str] = None, added_roles: Optional[ Union[ @@ -242,6 +261,7 @@ def create( Create a publicly visible (empty) Collection of documents. :param name: The unique name of the Collection. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param description: A brief summary of the Collection's contents. :param added_roles: A list of added user roles for the Collection. :param removed_roles: A list of removed user roles for the Collection. @@ -267,24 +287,29 @@ def create( else: base_url = self._get_url(base_url, url_variables) - request = models.CreateCollectionRequest( - name=name, - description=description, - added_roles=utils.get_pydantic_model( - added_roles, Optional[List[models.UserRoleSpecification]] - ), - removed_roles=utils.get_pydantic_model( - removed_roles, Optional[List[models.UserRoleSpecification]] - ), - audience_filters=utils.get_pydantic_model( - audience_filters, Optional[List[models.FacetFilter]] + request = models.CreatecollectionRequestRequest( + locale=locale, + create_collection_request=models.CreateCollectionRequest( + name=name, + description=description, + added_roles=utils.get_pydantic_model( + added_roles, Optional[List[models.UserRoleSpecification]] + ), + removed_roles=utils.get_pydantic_model( + removed_roles, Optional[List[models.UserRoleSpecification]] + ), + audience_filters=utils.get_pydantic_model( + audience_filters, Optional[List[models.FacetFilter]] + ), + icon=icon, + admin_locked=admin_locked, + parent_id=parent_id, + thumbnail=utils.get_pydantic_model( + thumbnail, Optional[models.Thumbnail] + ), + allowed_datasource=allowed_datasource, + new_next_item_id=new_next_item_id, ), - icon=icon, - admin_locked=admin_locked, - parent_id=parent_id, - thumbnail=utils.get_pydantic_model(thumbnail, Optional[models.Thumbnail]), - allowed_datasource=allowed_datasource, - new_next_item_id=new_next_item_id, ) req = self._build_request( @@ -301,7 +326,11 @@ def create( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.CreateCollectionRequest + request.create_collection_request, + False, + False, + "json", + models.CreateCollectionRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -351,6 +380,7 @@ async def create_async( self, *, name: str, + locale: Optional[str] = None, description: Optional[str] = None, added_roles: Optional[ Union[ @@ -383,6 +413,7 @@ async def create_async( Create a publicly visible (empty) Collection of documents. :param name: The unique name of the Collection. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param description: A brief summary of the Collection's contents. :param added_roles: A list of added user roles for the Collection. :param removed_roles: A list of removed user roles for the Collection. @@ -408,24 +439,29 @@ async def create_async( else: base_url = self._get_url(base_url, url_variables) - request = models.CreateCollectionRequest( - name=name, - description=description, - added_roles=utils.get_pydantic_model( - added_roles, Optional[List[models.UserRoleSpecification]] - ), - removed_roles=utils.get_pydantic_model( - removed_roles, Optional[List[models.UserRoleSpecification]] - ), - audience_filters=utils.get_pydantic_model( - audience_filters, Optional[List[models.FacetFilter]] + request = models.CreatecollectionRequestRequest( + locale=locale, + create_collection_request=models.CreateCollectionRequest( + name=name, + description=description, + added_roles=utils.get_pydantic_model( + added_roles, Optional[List[models.UserRoleSpecification]] + ), + removed_roles=utils.get_pydantic_model( + removed_roles, Optional[List[models.UserRoleSpecification]] + ), + audience_filters=utils.get_pydantic_model( + audience_filters, Optional[List[models.FacetFilter]] + ), + icon=icon, + admin_locked=admin_locked, + parent_id=parent_id, + thumbnail=utils.get_pydantic_model( + thumbnail, Optional[models.Thumbnail] + ), + allowed_datasource=allowed_datasource, + new_next_item_id=new_next_item_id, ), - icon=icon, - admin_locked=admin_locked, - parent_id=parent_id, - thumbnail=utils.get_pydantic_model(thumbnail, Optional[models.Thumbnail]), - allowed_datasource=allowed_datasource, - new_next_item_id=new_next_item_id, ) req = self._build_request_async( @@ -442,7 +478,11 @@ async def create_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.CreateCollectionRequest + request.create_collection_request, + False, + False, + "json", + models.CreateCollectionRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -492,6 +532,7 @@ def delete( self, *, ids: List[int], + locale: Optional[str] = None, allowed_datasource: Optional[str] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -503,6 +544,7 @@ def delete( Delete a Collection given the Collection's ID. :param ids: The IDs of the Collections to delete. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param allowed_datasource: The datasource allowed in the Collection to be deleted. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -519,9 +561,12 @@ def delete( else: base_url = self._get_url(base_url, url_variables) - request = models.DeleteCollectionRequest( - ids=ids, - allowed_datasource=allowed_datasource, + request = models.DeletecollectionRequestRequest( + locale=locale, + delete_collection_request=models.DeleteCollectionRequest( + ids=ids, + allowed_datasource=allowed_datasource, + ), ) req = self._build_request( @@ -538,7 +583,11 @@ def delete( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.DeleteCollectionRequest + request.delete_collection_request, + False, + False, + "json", + models.DeleteCollectionRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -588,6 +637,7 @@ async def delete_async( self, *, ids: List[int], + locale: Optional[str] = None, allowed_datasource: Optional[str] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -599,6 +649,7 @@ async def delete_async( Delete a Collection given the Collection's ID. :param ids: The IDs of the Collections to delete. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param allowed_datasource: The datasource allowed in the Collection to be deleted. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -615,9 +666,12 @@ async def delete_async( else: base_url = self._get_url(base_url, url_variables) - request = models.DeleteCollectionRequest( - ids=ids, - allowed_datasource=allowed_datasource, + request = models.DeletecollectionRequestRequest( + locale=locale, + delete_collection_request=models.DeleteCollectionRequest( + ids=ids, + allowed_datasource=allowed_datasource, + ), ) req = self._build_request_async( @@ -634,7 +688,11 @@ async def delete_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.DeleteCollectionRequest + request.delete_collection_request, + False, + False, + "json", + models.DeleteCollectionRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -685,6 +743,7 @@ def delete_item( *, collection_id: float, item_id: str, + locale: Optional[str] = None, document_id: Optional[str] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -697,6 +756,7 @@ def delete_item( :param collection_id: The ID of the Collection to remove an item in. :param item_id: The item ID of the CollectionItem to remove from this Collection. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param document_id: The (optional) Glean Document ID of the CollectionItem to remove from this Collection if this is an indexed document. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -713,10 +773,13 @@ def delete_item( else: base_url = self._get_url(base_url, url_variables) - request = models.DeleteCollectionItemRequest( - collection_id=collection_id, - item_id=item_id, - document_id=document_id, + request = models.DeletecollectionitemRequestRequest( + locale=locale, + delete_collection_item_request=models.DeleteCollectionItemRequest( + collection_id=collection_id, + item_id=item_id, + document_id=document_id, + ), ) req = self._build_request( @@ -733,7 +796,11 @@ def delete_item( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.DeleteCollectionItemRequest + request.delete_collection_item_request, + False, + False, + "json", + models.DeleteCollectionItemRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -780,6 +847,7 @@ async def delete_item_async( *, collection_id: float, item_id: str, + locale: Optional[str] = None, document_id: Optional[str] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -792,6 +860,7 @@ async def delete_item_async( :param collection_id: The ID of the Collection to remove an item in. :param item_id: The item ID of the CollectionItem to remove from this Collection. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param document_id: The (optional) Glean Document ID of the CollectionItem to remove from this Collection if this is an indexed document. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -808,10 +877,13 @@ async def delete_item_async( else: base_url = self._get_url(base_url, url_variables) - request = models.DeleteCollectionItemRequest( - collection_id=collection_id, - item_id=item_id, - document_id=document_id, + request = models.DeletecollectionitemRequestRequest( + locale=locale, + delete_collection_item_request=models.DeleteCollectionItemRequest( + collection_id=collection_id, + item_id=item_id, + document_id=document_id, + ), ) req = self._build_request_async( @@ -828,7 +900,11 @@ async def delete_item_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.DeleteCollectionItemRequest + request.delete_collection_item_request, + False, + False, + "json", + models.DeleteCollectionItemRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -875,6 +951,7 @@ def update( *, name: str, id: int, + locale: Optional[str] = None, description: Optional[str] = None, added_roles: Optional[ Union[ @@ -907,6 +984,7 @@ def update( :param name: The unique name of the Collection. :param id: The ID of the Collection to modify. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param description: A brief summary of the Collection's contents. :param added_roles: A list of added user roles for the Collection. :param removed_roles: A list of removed user roles for the Collection. @@ -931,24 +1009,29 @@ def update( else: base_url = self._get_url(base_url, url_variables) - request = models.EditCollectionRequest( - name=name, - description=description, - added_roles=utils.get_pydantic_model( - added_roles, Optional[List[models.UserRoleSpecification]] - ), - removed_roles=utils.get_pydantic_model( - removed_roles, Optional[List[models.UserRoleSpecification]] - ), - audience_filters=utils.get_pydantic_model( - audience_filters, Optional[List[models.FacetFilter]] + request = models.EditcollectionRequestRequest( + locale=locale, + edit_collection_request=models.EditCollectionRequest( + name=name, + description=description, + added_roles=utils.get_pydantic_model( + added_roles, Optional[List[models.UserRoleSpecification]] + ), + removed_roles=utils.get_pydantic_model( + removed_roles, Optional[List[models.UserRoleSpecification]] + ), + audience_filters=utils.get_pydantic_model( + audience_filters, Optional[List[models.FacetFilter]] + ), + icon=icon, + admin_locked=admin_locked, + parent_id=parent_id, + thumbnail=utils.get_pydantic_model( + thumbnail, Optional[models.Thumbnail] + ), + allowed_datasource=allowed_datasource, + id=id, ), - icon=icon, - admin_locked=admin_locked, - parent_id=parent_id, - thumbnail=utils.get_pydantic_model(thumbnail, Optional[models.Thumbnail]), - allowed_datasource=allowed_datasource, - id=id, ) req = self._build_request( @@ -965,7 +1048,11 @@ def update( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.EditCollectionRequest + request.edit_collection_request, + False, + False, + "json", + models.EditCollectionRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -1016,6 +1103,7 @@ async def update_async( *, name: str, id: int, + locale: Optional[str] = None, description: Optional[str] = None, added_roles: Optional[ Union[ @@ -1048,6 +1136,7 @@ async def update_async( :param name: The unique name of the Collection. :param id: The ID of the Collection to modify. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param description: A brief summary of the Collection's contents. :param added_roles: A list of added user roles for the Collection. :param removed_roles: A list of removed user roles for the Collection. @@ -1072,24 +1161,29 @@ async def update_async( else: base_url = self._get_url(base_url, url_variables) - request = models.EditCollectionRequest( - name=name, - description=description, - added_roles=utils.get_pydantic_model( - added_roles, Optional[List[models.UserRoleSpecification]] - ), - removed_roles=utils.get_pydantic_model( - removed_roles, Optional[List[models.UserRoleSpecification]] - ), - audience_filters=utils.get_pydantic_model( - audience_filters, Optional[List[models.FacetFilter]] + request = models.EditcollectionRequestRequest( + locale=locale, + edit_collection_request=models.EditCollectionRequest( + name=name, + description=description, + added_roles=utils.get_pydantic_model( + added_roles, Optional[List[models.UserRoleSpecification]] + ), + removed_roles=utils.get_pydantic_model( + removed_roles, Optional[List[models.UserRoleSpecification]] + ), + audience_filters=utils.get_pydantic_model( + audience_filters, Optional[List[models.FacetFilter]] + ), + icon=icon, + admin_locked=admin_locked, + parent_id=parent_id, + thumbnail=utils.get_pydantic_model( + thumbnail, Optional[models.Thumbnail] + ), + allowed_datasource=allowed_datasource, + id=id, ), - icon=icon, - admin_locked=admin_locked, - parent_id=parent_id, - thumbnail=utils.get_pydantic_model(thumbnail, Optional[models.Thumbnail]), - allowed_datasource=allowed_datasource, - id=id, ) req = self._build_request_async( @@ -1106,7 +1200,11 @@ async def update_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.EditCollectionRequest + request.edit_collection_request, + False, + False, + "json", + models.EditCollectionRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -1157,6 +1255,7 @@ def update_item( *, collection_id: int, item_id: str, + locale: Optional[str] = None, name: Optional[str] = None, description: Optional[str] = None, icon: Optional[str] = None, @@ -1171,6 +1270,7 @@ def update_item( :param collection_id: The ID of the Collection to edit CollectionItems in. :param item_id: The ID of the CollectionItem to edit. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param name: The optional name of the Collection item. :param description: A helpful description of why this CollectionItem is in the Collection that it's in. :param icon: The emoji icon for this CollectionItem. Only used for Text type items. @@ -1189,12 +1289,15 @@ def update_item( else: base_url = self._get_url(base_url, url_variables) - request = models.EditCollectionItemRequest( - name=name, - description=description, - icon=icon, - collection_id=collection_id, - item_id=item_id, + request = models.EditcollectionitemRequestRequest( + locale=locale, + edit_collection_item_request=models.EditCollectionItemRequest( + name=name, + description=description, + icon=icon, + collection_id=collection_id, + item_id=item_id, + ), ) req = self._build_request( @@ -1211,7 +1314,11 @@ def update_item( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.EditCollectionItemRequest + request.edit_collection_item_request, + False, + False, + "json", + models.EditCollectionItemRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -1256,6 +1363,7 @@ async def update_item_async( *, collection_id: int, item_id: str, + locale: Optional[str] = None, name: Optional[str] = None, description: Optional[str] = None, icon: Optional[str] = None, @@ -1270,6 +1378,7 @@ async def update_item_async( :param collection_id: The ID of the Collection to edit CollectionItems in. :param item_id: The ID of the CollectionItem to edit. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param name: The optional name of the Collection item. :param description: A helpful description of why this CollectionItem is in the Collection that it's in. :param icon: The emoji icon for this CollectionItem. Only used for Text type items. @@ -1288,12 +1397,15 @@ async def update_item_async( else: base_url = self._get_url(base_url, url_variables) - request = models.EditCollectionItemRequest( - name=name, - description=description, - icon=icon, - collection_id=collection_id, - item_id=item_id, + request = models.EditcollectionitemRequestRequest( + locale=locale, + edit_collection_item_request=models.EditCollectionItemRequest( + name=name, + description=description, + icon=icon, + collection_id=collection_id, + item_id=item_id, + ), ) req = self._build_request_async( @@ -1310,7 +1422,11 @@ async def update_item_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.EditCollectionItemRequest + request.edit_collection_item_request, + False, + False, + "json", + models.EditCollectionItemRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -1354,6 +1470,7 @@ def retrieve( self, *, id: int, + locale: Optional[str] = None, with_items: Optional[bool] = None, with_hierarchy: Optional[bool] = None, allowed_datasource: Optional[str] = None, @@ -1367,6 +1484,7 @@ def retrieve( Read the details of a Collection given its ID. Does not fetch items in this Collection. :param id: The ID of the Collection to be retrieved. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param with_items: Whether or not to include the Collection Items in this Collection. Only request if absolutely required, as this is expensive. :param with_hierarchy: Whether or not to include the top level Collection in this Collection's hierarchy. :param allowed_datasource: The datasource allowed in the Collection returned. @@ -1385,11 +1503,14 @@ def retrieve( else: base_url = self._get_url(base_url, url_variables) - request = models.GetCollectionRequest( - id=id, - with_items=with_items, - with_hierarchy=with_hierarchy, - allowed_datasource=allowed_datasource, + request = models.GetcollectionRequestRequest( + locale=locale, + get_collection_request=models.GetCollectionRequest( + id=id, + with_items=with_items, + with_hierarchy=with_hierarchy, + allowed_datasource=allowed_datasource, + ), ) req = self._build_request( @@ -1406,7 +1527,11 @@ def retrieve( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.GetCollectionRequest + request.get_collection_request, + False, + False, + "json", + models.GetCollectionRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -1450,6 +1575,7 @@ async def retrieve_async( self, *, id: int, + locale: Optional[str] = None, with_items: Optional[bool] = None, with_hierarchy: Optional[bool] = None, allowed_datasource: Optional[str] = None, @@ -1463,6 +1589,7 @@ async def retrieve_async( Read the details of a Collection given its ID. Does not fetch items in this Collection. :param id: The ID of the Collection to be retrieved. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param with_items: Whether or not to include the Collection Items in this Collection. Only request if absolutely required, as this is expensive. :param with_hierarchy: Whether or not to include the top level Collection in this Collection's hierarchy. :param allowed_datasource: The datasource allowed in the Collection returned. @@ -1481,11 +1608,14 @@ async def retrieve_async( else: base_url = self._get_url(base_url, url_variables) - request = models.GetCollectionRequest( - id=id, - with_items=with_items, - with_hierarchy=with_hierarchy, - allowed_datasource=allowed_datasource, + request = models.GetcollectionRequestRequest( + locale=locale, + get_collection_request=models.GetCollectionRequest( + id=id, + with_items=with_items, + with_hierarchy=with_hierarchy, + allowed_datasource=allowed_datasource, + ), ) req = self._build_request_async( @@ -1502,7 +1632,11 @@ async def retrieve_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.GetCollectionRequest + request.get_collection_request, + False, + False, + "json", + models.GetCollectionRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -1545,6 +1679,7 @@ async def retrieve_async( def list( self, *, + locale: Optional[str] = None, include_audience: Optional[bool] = None, include_roles: Optional[bool] = None, allowed_datasource: Optional[str] = None, @@ -1557,6 +1692,7 @@ def list( List all existing Collections. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param include_audience: Whether to include the audience filters with the listed Collections. :param include_roles: Whether to include the editor roles with the listed Collections. :param allowed_datasource: The datasource type this Collection can hold. @@ -1576,10 +1712,13 @@ def list( else: base_url = self._get_url(base_url, url_variables) - request = models.ListCollectionsRequest( - include_audience=include_audience, - include_roles=include_roles, - allowed_datasource=allowed_datasource, + request = models.ListcollectionsRequestRequest( + locale=locale, + list_collections_request=models.ListCollectionsRequest( + include_audience=include_audience, + include_roles=include_roles, + allowed_datasource=allowed_datasource, + ), ) req = self._build_request( @@ -1596,7 +1735,11 @@ def list( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.ListCollectionsRequest + request.list_collections_request, + False, + False, + "json", + models.ListCollectionsRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -1639,6 +1782,7 @@ def list( async def list_async( self, *, + locale: Optional[str] = None, include_audience: Optional[bool] = None, include_roles: Optional[bool] = None, allowed_datasource: Optional[str] = None, @@ -1651,6 +1795,7 @@ async def list_async( List all existing Collections. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param include_audience: Whether to include the audience filters with the listed Collections. :param include_roles: Whether to include the editor roles with the listed Collections. :param allowed_datasource: The datasource type this Collection can hold. @@ -1670,10 +1815,13 @@ async def list_async( else: base_url = self._get_url(base_url, url_variables) - request = models.ListCollectionsRequest( - include_audience=include_audience, - include_roles=include_roles, - allowed_datasource=allowed_datasource, + request = models.ListcollectionsRequestRequest( + locale=locale, + list_collections_request=models.ListCollectionsRequest( + include_audience=include_audience, + include_roles=include_roles, + allowed_datasource=allowed_datasource, + ), ) req = self._build_request_async( @@ -1690,7 +1838,11 @@ async def list_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.ListCollectionsRequest + request.list_collections_request, + False, + False, + "json", + models.ListCollectionsRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, diff --git a/src/glean/api_client/entities.py b/src/glean/api_client/entities.py index 34b41dbd..2564ac76 100644 --- a/src/glean/api_client/entities.py +++ b/src/glean/api_client/entities.py @@ -13,6 +13,7 @@ class Entities(BaseSDK): def list( self, *, + locale: Optional[str] = None, filter_: Optional[ Union[List[models.FacetFilter], List[models.FacetFilterTypedDict]] ] = None, @@ -38,6 +39,7 @@ def list( List some set of details for all entities that fit the given criteria and return in the requested order. Does not support negation in filters, assumes relation type EQUALS. There is a limit of 10000 entities that can be retrieved via this endpoint, except when using FULL_DIRECTORY request type for people entities. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param filter_: :param sort: Use EntitiesSortOrder enum for SortOptions.sortBy :param entity_type: @@ -63,19 +65,22 @@ def list( else: base_url = self._get_url(base_url, url_variables) - request = models.ListEntitiesRequest( - filter_=utils.get_pydantic_model( - filter_, Optional[List[models.FacetFilter]] + request = models.ListentitiesRequestRequest( + locale=locale, + list_entities_request=models.ListEntitiesRequest( + filter_=utils.get_pydantic_model( + filter_, Optional[List[models.FacetFilter]] + ), + sort=utils.get_pydantic_model(sort, Optional[List[models.SortOptions]]), + entity_type=entity_type, + datasource=datasource, + query=query, + include_fields=include_fields, + page_size=page_size, + cursor=cursor, + source=source, + request_type=request_type, ), - sort=utils.get_pydantic_model(sort, Optional[List[models.SortOptions]]), - entity_type=entity_type, - datasource=datasource, - query=query, - include_fields=include_fields, - page_size=page_size, - cursor=cursor, - source=source, - request_type=request_type, ) req = self._build_request( @@ -92,7 +97,11 @@ def list( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.ListEntitiesRequest + request.list_entities_request, + False, + False, + "json", + models.ListEntitiesRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -135,6 +144,7 @@ def list( async def list_async( self, *, + locale: Optional[str] = None, filter_: Optional[ Union[List[models.FacetFilter], List[models.FacetFilterTypedDict]] ] = None, @@ -160,6 +170,7 @@ async def list_async( List some set of details for all entities that fit the given criteria and return in the requested order. Does not support negation in filters, assumes relation type EQUALS. There is a limit of 10000 entities that can be retrieved via this endpoint, except when using FULL_DIRECTORY request type for people entities. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param filter_: :param sort: Use EntitiesSortOrder enum for SortOptions.sortBy :param entity_type: @@ -185,19 +196,22 @@ async def list_async( else: base_url = self._get_url(base_url, url_variables) - request = models.ListEntitiesRequest( - filter_=utils.get_pydantic_model( - filter_, Optional[List[models.FacetFilter]] + request = models.ListentitiesRequestRequest( + locale=locale, + list_entities_request=models.ListEntitiesRequest( + filter_=utils.get_pydantic_model( + filter_, Optional[List[models.FacetFilter]] + ), + sort=utils.get_pydantic_model(sort, Optional[List[models.SortOptions]]), + entity_type=entity_type, + datasource=datasource, + query=query, + include_fields=include_fields, + page_size=page_size, + cursor=cursor, + source=source, + request_type=request_type, ), - sort=utils.get_pydantic_model(sort, Optional[List[models.SortOptions]]), - entity_type=entity_type, - datasource=datasource, - query=query, - include_fields=include_fields, - page_size=page_size, - cursor=cursor, - source=source, - request_type=request_type, ) req = self._build_request_async( @@ -214,7 +228,11 @@ async def list_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.ListEntitiesRequest + request.list_entities_request, + False, + False, + "json", + models.ListEntitiesRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -257,6 +275,7 @@ async def list_async( def read_people( self, *, + locale: Optional[str] = None, timezone_offset: Optional[int] = None, obfuscated_ids: Optional[List[str]] = None, email_ids: Optional[List[str]] = None, @@ -272,6 +291,7 @@ def read_people( Read people details for the given IDs. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param timezone_offset: The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. :param obfuscated_ids: The Person IDs to retrieve. If no IDs are requested, the current user's details are returned. :param email_ids: The email IDs to retrieve. The result is the deduplicated union of emailIds and obfuscatedIds. @@ -293,13 +313,16 @@ def read_people( else: base_url = self._get_url(base_url, url_variables) - request = models.PeopleRequest( - timezone_offset=timezone_offset, - obfuscated_ids=obfuscated_ids, - email_ids=email_ids, - include_fields=include_fields, - include_types=include_types, - source=source, + request = models.PeopleRequestRequest( + locale=locale, + people_request=models.PeopleRequest( + timezone_offset=timezone_offset, + obfuscated_ids=obfuscated_ids, + email_ids=email_ids, + include_fields=include_fields, + include_types=include_types, + source=source, + ), ) req = self._build_request( @@ -316,7 +339,7 @@ def read_people( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.PeopleRequest + request.people_request, False, False, "json", models.PeopleRequest ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -359,6 +382,7 @@ def read_people( async def read_people_async( self, *, + locale: Optional[str] = None, timezone_offset: Optional[int] = None, obfuscated_ids: Optional[List[str]] = None, email_ids: Optional[List[str]] = None, @@ -374,6 +398,7 @@ async def read_people_async( Read people details for the given IDs. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param timezone_offset: The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. :param obfuscated_ids: The Person IDs to retrieve. If no IDs are requested, the current user's details are returned. :param email_ids: The email IDs to retrieve. The result is the deduplicated union of emailIds and obfuscatedIds. @@ -395,13 +420,16 @@ async def read_people_async( else: base_url = self._get_url(base_url, url_variables) - request = models.PeopleRequest( - timezone_offset=timezone_offset, - obfuscated_ids=obfuscated_ids, - email_ids=email_ids, - include_fields=include_fields, - include_types=include_types, - source=source, + request = models.PeopleRequestRequest( + locale=locale, + people_request=models.PeopleRequest( + timezone_offset=timezone_offset, + obfuscated_ids=obfuscated_ids, + email_ids=email_ids, + include_fields=include_fields, + include_types=include_types, + source=source, + ), ) req = self._build_request_async( @@ -418,7 +446,7 @@ async def read_people_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.PeopleRequest + request.people_request, False, False, "json", models.PeopleRequest ), allow_empty_value=None, timeout_ms=timeout_ms, diff --git a/src/glean/api_client/errors/gleandataerror.py b/src/glean/api_client/errors/gleandataerror.py index 978b0be0..754c85de 100644 --- a/src/glean/api_client/errors/gleandataerror.py +++ b/src/glean/api_client/errors/gleandataerror.py @@ -32,6 +32,10 @@ class GleanDataErrorData(BaseModel): Optional[List[models_errormessage.ErrorMessage]], pydantic.Field(alias="errorMessages"), ] = None + federated_search_rate_limit_error: Annotated[ + Optional[bool], pydantic.Field(alias="federatedSearchRateLimitError") + ] = None + r"""Indicates the federated search results could not be fetched due to rate limiting.""" @dataclass(unsafe_hash=True) diff --git a/src/glean/api_client/insights.py b/src/glean/api_client/insights.py index 4fc30c5c..70e8c8e3 100644 --- a/src/glean/api_client/insights.py +++ b/src/glean/api_client/insights.py @@ -13,6 +13,7 @@ class Insights(BaseSDK): def retrieve( self, *, + locale: Optional[str] = None, overview_request: Optional[ Union[ models.InsightsOverviewRequest, models.InsightsOverviewRequestTypedDict @@ -55,6 +56,7 @@ def retrieve( Gets the aggregate usage insights data displayed in the Insights Dashboards. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param overview_request: :param assistant_request: :param agents_request: @@ -80,27 +82,31 @@ def retrieve( else: base_url = self._get_url(base_url, url_variables) - request = models.InsightsRequest( - overview_request=utils.get_pydantic_model( - overview_request, Optional[models.InsightsOverviewRequest] - ), - assistant_request=utils.get_pydantic_model( - assistant_request, Optional[models.InsightsAssistantRequest] - ), - agents_request=utils.get_pydantic_model( - agents_request, Optional[models.AgentsInsightsV2Request] - ), - disable_per_user_insights=disable_per_user_insights, - categories=categories, - departments=departments, - day_range=utils.get_pydantic_model(day_range, Optional[models.Period]), - ai_app_request_options=utils.get_pydantic_model( - ai_app_request_options, Optional[models.InsightsAiAppRequestOptions] - ), - agents_request_options=utils.get_pydantic_model( - agents_request_options, Optional[models.InsightsAgentsRequestOptions] + request = models.InsightsRequestRequest( + locale=locale, + insights_request=models.InsightsRequest( + overview_request=utils.get_pydantic_model( + overview_request, Optional[models.InsightsOverviewRequest] + ), + assistant_request=utils.get_pydantic_model( + assistant_request, Optional[models.InsightsAssistantRequest] + ), + agents_request=utils.get_pydantic_model( + agents_request, Optional[models.AgentsInsightsV2Request] + ), + disable_per_user_insights=disable_per_user_insights, + categories=categories, + departments=departments, + day_range=utils.get_pydantic_model(day_range, Optional[models.Period]), + ai_app_request_options=utils.get_pydantic_model( + ai_app_request_options, Optional[models.InsightsAiAppRequestOptions] + ), + agents_request_options=utils.get_pydantic_model( + agents_request_options, + Optional[models.InsightsAgentsRequestOptions], + ), + assistant_activity_types=assistant_activity_types, ), - assistant_activity_types=assistant_activity_types, ) req = self._build_request( @@ -117,7 +123,7 @@ def retrieve( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.InsightsRequest + request.insights_request, False, False, "json", models.InsightsRequest ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -160,6 +166,7 @@ def retrieve( async def retrieve_async( self, *, + locale: Optional[str] = None, overview_request: Optional[ Union[ models.InsightsOverviewRequest, models.InsightsOverviewRequestTypedDict @@ -202,6 +209,7 @@ async def retrieve_async( Gets the aggregate usage insights data displayed in the Insights Dashboards. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param overview_request: :param assistant_request: :param agents_request: @@ -227,27 +235,31 @@ async def retrieve_async( else: base_url = self._get_url(base_url, url_variables) - request = models.InsightsRequest( - overview_request=utils.get_pydantic_model( - overview_request, Optional[models.InsightsOverviewRequest] - ), - assistant_request=utils.get_pydantic_model( - assistant_request, Optional[models.InsightsAssistantRequest] - ), - agents_request=utils.get_pydantic_model( - agents_request, Optional[models.AgentsInsightsV2Request] - ), - disable_per_user_insights=disable_per_user_insights, - categories=categories, - departments=departments, - day_range=utils.get_pydantic_model(day_range, Optional[models.Period]), - ai_app_request_options=utils.get_pydantic_model( - ai_app_request_options, Optional[models.InsightsAiAppRequestOptions] - ), - agents_request_options=utils.get_pydantic_model( - agents_request_options, Optional[models.InsightsAgentsRequestOptions] + request = models.InsightsRequestRequest( + locale=locale, + insights_request=models.InsightsRequest( + overview_request=utils.get_pydantic_model( + overview_request, Optional[models.InsightsOverviewRequest] + ), + assistant_request=utils.get_pydantic_model( + assistant_request, Optional[models.InsightsAssistantRequest] + ), + agents_request=utils.get_pydantic_model( + agents_request, Optional[models.AgentsInsightsV2Request] + ), + disable_per_user_insights=disable_per_user_insights, + categories=categories, + departments=departments, + day_range=utils.get_pydantic_model(day_range, Optional[models.Period]), + ai_app_request_options=utils.get_pydantic_model( + ai_app_request_options, Optional[models.InsightsAiAppRequestOptions] + ), + agents_request_options=utils.get_pydantic_model( + agents_request_options, + Optional[models.InsightsAgentsRequestOptions], + ), + assistant_activity_types=assistant_activity_types, ), - assistant_activity_types=assistant_activity_types, ) req = self._build_request_async( @@ -264,7 +276,7 @@ async def retrieve_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.InsightsRequest + request.insights_request, False, False, "json", models.InsightsRequest ), allow_empty_value=None, timeout_ms=timeout_ms, diff --git a/src/glean/api_client/messages.py b/src/glean/api_client/messages.py index 591c47b9..1c182cb0 100644 --- a/src/glean/api_client/messages.py +++ b/src/glean/api_client/messages.py @@ -16,6 +16,7 @@ def retrieve( id_type: models.IDType, id: str, datasource: models.Datasource, + locale: Optional[str] = None, workspace_id: Optional[str] = None, direction: Optional[models.Direction] = None, timestamp_millis: Optional[int] = None, @@ -33,6 +34,7 @@ def retrieve( :param id_type: Type of the id in the incoming request. :param id: ID corresponding to the requested idType. Note that channel and threads are represented by the underlying datasource's ID and conversations are represented by their document's ID. :param datasource: The type of the data source. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param workspace_id: Id for the for the workspace in case of multiple workspaces. :param direction: The direction of the results asked with respect to the reference timestamp. Missing field defaults to OLDER. Only applicable when using a message_id. :param timestamp_millis: Timestamp in millis of the reference message. Only applicable when using a message_id. @@ -53,15 +55,18 @@ def retrieve( else: base_url = self._get_url(base_url, url_variables) - request = models.MessagesRequest( - id_type=id_type, - id=id, - workspace_id=workspace_id, - direction=direction, - timestamp_millis=timestamp_millis, - include_root_message=include_root_message, - datasource=datasource, - datasource_instance_display_name=datasource_instance_display_name, + request = models.MessagesRequestRequest( + locale=locale, + messages_request=models.MessagesRequest( + id_type=id_type, + id=id, + workspace_id=workspace_id, + direction=direction, + timestamp_millis=timestamp_millis, + include_root_message=include_root_message, + datasource=datasource, + datasource_instance_display_name=datasource_instance_display_name, + ), ) req = self._build_request( @@ -78,7 +83,7 @@ def retrieve( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.MessagesRequest + request.messages_request, False, False, "json", models.MessagesRequest ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -124,6 +129,7 @@ async def retrieve_async( id_type: models.IDType, id: str, datasource: models.Datasource, + locale: Optional[str] = None, workspace_id: Optional[str] = None, direction: Optional[models.Direction] = None, timestamp_millis: Optional[int] = None, @@ -141,6 +147,7 @@ async def retrieve_async( :param id_type: Type of the id in the incoming request. :param id: ID corresponding to the requested idType. Note that channel and threads are represented by the underlying datasource's ID and conversations are represented by their document's ID. :param datasource: The type of the data source. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param workspace_id: Id for the for the workspace in case of multiple workspaces. :param direction: The direction of the results asked with respect to the reference timestamp. Missing field defaults to OLDER. Only applicable when using a message_id. :param timestamp_millis: Timestamp in millis of the reference message. Only applicable when using a message_id. @@ -161,15 +168,18 @@ async def retrieve_async( else: base_url = self._get_url(base_url, url_variables) - request = models.MessagesRequest( - id_type=id_type, - id=id, - workspace_id=workspace_id, - direction=direction, - timestamp_millis=timestamp_millis, - include_root_message=include_root_message, - datasource=datasource, - datasource_instance_display_name=datasource_instance_display_name, + request = models.MessagesRequestRequest( + locale=locale, + messages_request=models.MessagesRequest( + id_type=id_type, + id=id, + workspace_id=workspace_id, + direction=direction, + timestamp_millis=timestamp_millis, + include_root_message=include_root_message, + datasource=datasource, + datasource_instance_display_name=datasource_instance_display_name, + ), ) req = self._build_request_async( @@ -186,7 +196,7 @@ async def retrieve_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.MessagesRequest + request.messages_request, False, False, "json", models.MessagesRequest ), allow_empty_value=None, timeout_ms=timeout_ms, diff --git a/src/glean/api_client/models/__init__.py b/src/glean/api_client/models/__init__.py index df6441d4..0a95099b 100644 --- a/src/glean/api_client/models/__init__.py +++ b/src/glean/api_client/models/__init__.py @@ -84,6 +84,10 @@ AddCollectionItemsErrorErrorType, AddCollectionItemsErrorTypedDict, ) + from .addcollectionitemsop import ( + AddcollectionitemsRequestRequest, + AddcollectionitemsRequestRequestTypedDict, + ) from .addcollectionitemsrequest import ( AddCollectionItemsRequest, AddCollectionItemsRequestTypedDict, @@ -98,6 +102,11 @@ Value, ValueTypedDict, ) + from .addverificationreminderop import ( + AddverificationreminderRequest, + AddverificationreminderRequestTypedDict, + ) + from .adminsearchop import AdminsearchRequest, AdminsearchRequestTypedDict from .agent import ( Agent, AgentCapabilities, @@ -174,6 +183,10 @@ GrantType, ) from .authtoken import AuthToken, AuthTokenTypedDict + from .autocompleteop import ( + AutocompleteRequestRequest, + AutocompleteRequestRequestTypedDict, + ) from .autocompleterequest import ( AutocompleteRequest, AutocompleteRequestResultType, @@ -306,18 +319,28 @@ ) from .contenttype import ContentType from .countinfo import CountInfo, CountInfoTypedDict + from .createannouncementop import ( + CreateannouncementRequestRequest, + CreateannouncementRequestRequestTypedDict, + ) from .createannouncementrequest import ( CreateAnnouncementRequest, CreateAnnouncementRequestChannel, CreateAnnouncementRequestPostType, CreateAnnouncementRequestTypedDict, ) + from .createanswerop import ( + CreateanswerRequestRequest, + CreateanswerRequestRequestTypedDict, + ) from .createanswerrequest import CreateAnswerRequest, CreateAnswerRequestTypedDict from .createauthtokenresponse import ( CreateAuthTokenResponse, CreateAuthTokenResponseTypedDict, ) from .createcollectionop import ( + CreatecollectionRequestRequest, + CreatecollectionRequestRequestTypedDict, CreatecollectionResponse, CreatecollectionResponseTypedDict, ResponseBody1, @@ -337,6 +360,10 @@ CreateDlpReportResponse, CreateDlpReportResponseTypedDict, ) + from .createshortcutop import ( + CreateshortcutRequestRequest, + CreateshortcutRequestRequestTypedDict, + ) from .createshortcutrequest import ( CreateShortcutRequest, CreateShortcutRequestTypedDict, @@ -436,10 +463,18 @@ from .debuguserrequest import DebugUserRequest, DebugUserRequestTypedDict from .debuguserresponse import DebugUserResponse, DebugUserResponseTypedDict from .deleteallchatsop import DeleteallchatsRequest, DeleteallchatsRequestTypedDict + from .deleteannouncementop import ( + DeleteannouncementRequestRequest, + DeleteannouncementRequestRequestTypedDict, + ) from .deleteannouncementrequest import ( DeleteAnnouncementRequest, DeleteAnnouncementRequestTypedDict, ) + from .deleteanswerop import ( + DeleteanswerRequestRequest, + DeleteanswerRequestRequestTypedDict, + ) from .deleteanswerrequest import DeleteAnswerRequest, DeleteAnswerRequestTypedDict from .deletechatfilesop import ( DeletechatfilesRequestRequest, @@ -454,6 +489,10 @@ DeletechatsRequestRequestTypedDict, ) from .deletechatsrequest import DeleteChatsRequest, DeleteChatsRequestTypedDict + from .deletecollectionitemop import ( + DeletecollectionitemRequestRequest, + DeletecollectionitemRequestRequestTypedDict, + ) from .deletecollectionitemrequest import ( DeleteCollectionItemRequest, DeleteCollectionItemRequestTypedDict, @@ -462,6 +501,10 @@ DeleteCollectionItemResponse, DeleteCollectionItemResponseTypedDict, ) + from .deletecollectionop import ( + DeletecollectionRequestRequest, + DeletecollectionRequestRequestTypedDict, + ) from .deletecollectionrequest import ( DeleteCollectionRequest, DeleteCollectionRequestTypedDict, @@ -483,6 +526,10 @@ DeleteMembershipRequest, DeleteMembershipRequestTypedDict, ) + from .deleteshortcutop import ( + DeleteshortcutRequestRequest, + DeleteshortcutRequestRequestTypedDict, + ) from .deleteshortcutrequest import ( DeleteShortcutRequest, DeleteShortcutRequestTypedDict, @@ -571,11 +618,19 @@ DownloadreportcsvRequest, DownloadreportcsvRequestTypedDict, ) + from .editanswerop import ( + EditanswerRequestRequest, + EditanswerRequestRequestTypedDict, + ) from .editanswerrequest import ( EditAnswerRequest, EditAnswerRequestSourceType, EditAnswerRequestTypedDict, ) + from .editcollectionitemop import ( + EditcollectionitemRequestRequest, + EditcollectionitemRequestRequestTypedDict, + ) from .editcollectionitemrequest import ( EditCollectionItemRequest, EditCollectionItemRequestTypedDict, @@ -584,6 +639,10 @@ EditCollectionItemResponse, EditCollectionItemResponseTypedDict, ) + from .editcollectionop import ( + EditcollectionRequestRequest, + EditcollectionRequestRequestTypedDict, + ) from .editcollectionrequest import ( EditCollectionRequest, EditCollectionRequestTypedDict, @@ -593,6 +652,7 @@ EditCollectionResponseErrorCode, EditCollectionResponseTypedDict, ) + from .editpinop import EditpinRequestRequest, EditpinRequestRequestTypedDict from .editpinrequest import EditPinRequest, EditPinRequestTypedDict from .employeeinfodefinition import ( EmployeeInfoDefinition, @@ -646,6 +706,7 @@ UIConfig, UIConfigTypedDict, ) + from .feedop import FeedRequestRequest, FeedRequestRequestTypedDict from .feedrequest import FeedRequest, FeedRequestCategory, FeedRequestTypedDict from .feedrequestoptions import ( CategoryToResultSize, @@ -675,6 +736,7 @@ GetAnswerErrorErrorType, GetAnswerErrorTypedDict, ) + from .getanswerop import GetanswerRequestRequest, GetanswerRequestRequestTypedDict from .getanswerrequest import GetAnswerRequest, GetAnswerRequestTypedDict from .getanswerresponse import GetAnswerResponse, GetAnswerResponseTypedDict from .getchatapplicationop import ( @@ -701,6 +763,10 @@ from .getchatop import GetchatRequestRequest, GetchatRequestRequestTypedDict from .getchatrequest import GetChatRequest, GetChatRequestTypedDict from .getchatresponse import GetChatResponse, GetChatResponseTypedDict + from .getcollectionop import ( + GetcollectionRequestRequest, + GetcollectionRequestRequestTypedDict, + ) from .getcollectionrequest import ( GetCollectionRequest, GetCollectionRequestTypedDict, @@ -717,6 +783,10 @@ GetDlpReportResponse, GetDlpReportResponseTypedDict, ) + from .getdocpermissionsop import ( + GetdocpermissionsRequestRequest, + GetdocpermissionsRequestRequestTypedDict, + ) from .getdocpermissionsrequest import ( GetDocPermissionsRequest, GetDocPermissionsRequestTypedDict, @@ -733,6 +803,10 @@ GetDocumentCountResponse, GetDocumentCountResponseTypedDict, ) + from .getdocumentsbyfacetsop import ( + GetdocumentsbyfacetsRequestRequest, + GetdocumentsbyfacetsRequestRequestTypedDict, + ) from .getdocumentsbyfacetsrequest import ( GetDocumentsByFacetsRequest, GetDocumentsByFacetsRequestTypedDict, @@ -741,6 +815,10 @@ GetDocumentsByFacetsResponse, GetDocumentsByFacetsResponseTypedDict, ) + from .getdocumentsop import ( + GetdocumentsRequestRequest, + GetdocumentsRequestRequestTypedDict, + ) from .getdocumentsrequest import ( GetDocumentsRequest, GetDocumentsRequestIncludeField, @@ -766,6 +844,7 @@ GetdocvisibilityRequest, GetdocvisibilityRequestTypedDict, ) + from .getpinop import GetpinRequestRequest, GetpinRequestRequestTypedDict from .getpinrequest import GetPinRequest, GetPinRequestTypedDict from .getpinresponse import GetPinResponse, GetPinResponseTypedDict from .getpolicyop import GetpolicyRequest, GetpolicyRequestTypedDict @@ -773,11 +852,15 @@ GetreportstatusRequest, GetreportstatusRequestTypedDict, ) - from .getshortcutrequest_union import ( + from .getshortcutop import ( + GetshortcutRequestRequest, + GetshortcutRequestRequestTypedDict, + ) + from .getshortcutrequest import ( GetShortcutRequest, + GetShortcutRequest1, + GetShortcutRequest1TypedDict, GetShortcutRequestTypedDict, - GetShortcutRequestUnion, - GetShortcutRequestUnionTypedDict, ) from .getshortcutresponse import GetShortcutResponse, GetShortcutResponseTypedDict from .getusercountrequest import GetUserCountRequest, GetUserCountRequestTypedDict @@ -840,6 +923,7 @@ InsightsAssistantRequestTypedDict, ) from .insightschatsummary import InsightsChatSummary, InsightsChatSummaryTypedDict + from .insightsop import InsightsRequestRequest, InsightsRequestRequestTypedDict from .insightsoverviewrequest import ( InsightsOverviewRequest, InsightsOverviewRequestTypedDict, @@ -864,10 +948,18 @@ InvalidOperatorValueErrorTypedDict, ) from .labeledcountinfo import LabeledCountInfo, LabeledCountInfoTypedDict + from .listanswersop import ( + ListanswersRequestRequest, + ListanswersRequestRequestTypedDict, + ) from .listanswersrequest import ListAnswersRequest, ListAnswersRequestTypedDict from .listanswersresponse import ListAnswersResponse, ListAnswersResponseTypedDict from .listchatsop import ListchatsRequest, ListchatsRequestTypedDict from .listchatsresponse import ListChatsResponse, ListChatsResponseTypedDict + from .listcollectionsop import ( + ListcollectionsRequestRequest, + ListcollectionsRequestRequestTypedDict, + ) from .listcollectionsrequest import ( ListCollectionsRequest, ListCollectionsRequestTypedDict, @@ -884,6 +976,10 @@ ListDlpReportsResponse, ListDlpReportsResponseTypedDict, ) + from .listentitiesop import ( + ListentitiesRequestRequest, + ListentitiesRequestRequestTypedDict, + ) from .listentitiesrequest import ( ListEntitiesRequest, ListEntitiesRequestEntityType, @@ -895,9 +991,15 @@ ListEntitiesResponse, ListEntitiesResponseTypedDict, ) - from .listpinsop import ListpinsRequest, ListpinsRequestTypedDict + from .listpinsop import ( + ListpinsRequest, + ListpinsRequestBody, + ListpinsRequestBodyTypedDict, + ListpinsRequestTypedDict, + ) from .listpinsresponse import ListPinsResponse, ListPinsResponseTypedDict from .listpoliciesop import ListpoliciesRequest, ListpoliciesRequestTypedDict + from .listshortcutsop import ListshortcutsRequest, ListshortcutsRequestTypedDict from .listshortcutspaginatedrequest import ( ListShortcutsPaginatedRequest, ListShortcutsPaginatedRequestIncludeField, @@ -930,6 +1032,7 @@ MessageTextBlockTypedDict, MessageTypedDict, ) + from .messagesop import MessagesRequestRequest, MessagesRequestRequestTypedDict from .messagesrequest import ( Datasource, Direction, @@ -950,6 +1053,7 @@ OperatorType, ) from .operatorscope import OperatorScope, OperatorScopeTypedDict + from .peopleop import PeopleRequestRequest, PeopleRequestRequestTypedDict from .peoplerequest import ( IncludeType, PeopleRequest, @@ -972,6 +1076,7 @@ PerUserAssistantInsightTypedDict, ) from .peruserinsight import PerUserInsight, PerUserInsightTypedDict + from .pinop import PinRequestRequest, PinRequestRequestTypedDict from .pinrequest import PinRequest, PinRequestTypedDict from .possiblevalue import PossibleValue, PossibleValueTypedDict from .post_api_index_v1_debug_datasource_documentop import ( @@ -1021,6 +1126,10 @@ ) from .quicklink import Quicklink, QuicklinkTypedDict, Scope from .readpermission import ReadPermission, ReadPermissionTypedDict + from .recommendationsop import ( + RecommendationsRequestRequest, + RecommendationsRequestRequestTypedDict, + ) from .recommendationsrequest import ( RecommendationsRequest, RecommendationsRequestTypedDict, @@ -1054,6 +1163,7 @@ SearchAgentsResponse, SearchAgentsResponseTypedDict, ) + from .searchop import SearchRequestRequest, SearchRequestRequestTypedDict from .searchproviderinfo import SearchProviderInfo, SearchProviderInfoTypedDict from .searchrequest import SearchRequest, SearchRequestTypedDict from .searchrequestinputdetails import ( @@ -1123,6 +1233,7 @@ StructuredTextMutableProperties, StructuredTextMutablePropertiesTypedDict, ) + from .summarizeop import SummarizeRequestRequest, SummarizeRequestRequestTypedDict from .summarizerequest import SummarizeRequest, SummarizeRequestTypedDict from .summarizeresponse import ( Error, @@ -1161,6 +1272,11 @@ from .toolslistresponse import ToolsListResponse, ToolsListResponseTypedDict from .ugctype import UgcType from .unpin import Unpin, UnpinTypedDict + from .unpinop import UnpinRequest, UnpinRequestTypedDict + from .updateannouncementop import ( + UpdateannouncementRequestRequest, + UpdateannouncementRequestRequestTypedDict, + ) from .updateannouncementrequest import ( UpdateAnnouncementRequest, UpdateAnnouncementRequestChannel, @@ -1196,6 +1312,10 @@ UpdatePermissionsRequestTypedDict, ) from .updatepolicyop import UpdatepolicyRequest, UpdatepolicyRequestTypedDict + from .updateshortcutop import ( + UpdateshortcutRequestRequest, + UpdateshortcutRequestRequestTypedDict, + ) from .updateshortcutrequest import ( UpdateShortcutRequest, UpdateShortcutRequestTypedDict, @@ -1247,6 +1367,7 @@ from .userstatusresponse import UserStatusResponse, UserStatusResponseTypedDict from .userviewinfo import UserViewInfo, UserViewInfoTypedDict from .verificationfeed import VerificationFeed, VerificationFeedTypedDict + from .verifyop import VerifyRequestRequest, VerifyRequestRequestTypedDict from .verifyrequest import ( VerifyRequest, VerifyRequestAction, @@ -1332,8 +1453,14 @@ "AddCollectionItemsRequestTypedDict", "AddCollectionItemsResponse", "AddCollectionItemsResponseTypedDict", + "AddcollectionitemsRequestRequest", + "AddcollectionitemsRequestRequestTypedDict", "AdditionalFieldDefinition", "AdditionalFieldDefinitionTypedDict", + "AddverificationreminderRequest", + "AddverificationreminderRequestTypedDict", + "AdminsearchRequest", + "AdminsearchRequestTypedDict", "Agent", "AgentCapabilities", "AgentCapabilitiesTypedDict", @@ -1403,6 +1530,8 @@ "AuthType", "Author", "AutocompleteRequest", + "AutocompleteRequestRequest", + "AutocompleteRequestRequestTypedDict", "AutocompleteRequestResultType", "AutocompleteRequestTypedDict", "AutocompleteResponse", @@ -1542,8 +1671,16 @@ "CreateShortcutRequestTypedDict", "CreateShortcutResponse", "CreateShortcutResponseTypedDict", + "CreateannouncementRequestRequest", + "CreateannouncementRequestRequestTypedDict", + "CreateanswerRequestRequest", + "CreateanswerRequestRequestTypedDict", + "CreatecollectionRequestRequest", + "CreatecollectionRequestRequestTypedDict", "CreatecollectionResponse", "CreatecollectionResponseTypedDict", + "CreateshortcutRequestRequest", + "CreateshortcutRequestRequestTypedDict", "CurrentActiveUsers", "CurrentActiveUsersTypedDict", "CustomDataValue", @@ -1645,12 +1782,22 @@ "DeleteUserRequestTypedDict", "DeleteallchatsRequest", "DeleteallchatsRequestTypedDict", + "DeleteannouncementRequestRequest", + "DeleteannouncementRequestRequestTypedDict", + "DeleteanswerRequestRequest", + "DeleteanswerRequestRequestTypedDict", "DeletechatfilesRequestRequest", "DeletechatfilesRequestRequestTypedDict", "DeletechatsRequestRequest", "DeletechatsRequestRequestTypedDict", + "DeletecollectionRequestRequest", + "DeletecollectionRequestRequestTypedDict", + "DeletecollectionitemRequestRequest", + "DeletecollectionitemRequestRequestTypedDict", "DeletefindingsexportRequest", "DeletefindingsexportRequestTypedDict", + "DeleteshortcutRequestRequest", + "DeleteshortcutRequestRequestTypedDict", "Digest", "DigestSection", "DigestSectionTypedDict", @@ -1744,6 +1891,14 @@ "EditCollectionResponseTypedDict", "EditPinRequest", "EditPinRequestTypedDict", + "EditanswerRequestRequest", + "EditanswerRequestRequestTypedDict", + "EditcollectionRequestRequest", + "EditcollectionRequestRequestTypedDict", + "EditcollectionitemRequestRequest", + "EditcollectionitemRequestRequestTypedDict", + "EditpinRequestRequest", + "EditpinRequestRequestTypedDict", "EmployeeInfoDefinition", "EmployeeInfoDefinitionTypedDict", "EmployeeTeamInfo", @@ -1793,6 +1948,8 @@ "FeedRequestCategory", "FeedRequestOptions", "FeedRequestOptionsTypedDict", + "FeedRequestRequest", + "FeedRequestRequestTypedDict", "FeedRequestTypedDict", "FeedResponse", "FeedResponseTypedDict", @@ -1881,27 +2038,41 @@ "GetRestAPIV1ToolsListRequest", "GetRestAPIV1ToolsListRequestTypedDict", "GetShortcutRequest", + "GetShortcutRequest1", + "GetShortcutRequest1TypedDict", "GetShortcutRequestTypedDict", - "GetShortcutRequestUnion", - "GetShortcutRequestUnionTypedDict", "GetShortcutResponse", "GetShortcutResponseTypedDict", "GetUserCountRequest", "GetUserCountRequestTypedDict", "GetUserCountResponse", "GetUserCountResponseTypedDict", + "GetanswerRequestRequest", + "GetanswerRequestRequestTypedDict", "GetchatRequestRequest", "GetchatRequestRequestTypedDict", "GetchatapplicationRequestRequest", "GetchatapplicationRequestRequestTypedDict", "GetchatfilesRequestRequest", "GetchatfilesRequestRequestTypedDict", + "GetcollectionRequestRequest", + "GetcollectionRequestRequestTypedDict", + "GetdocpermissionsRequestRequest", + "GetdocpermissionsRequestRequestTypedDict", + "GetdocumentsRequestRequest", + "GetdocumentsRequestRequestTypedDict", + "GetdocumentsbyfacetsRequestRequest", + "GetdocumentsbyfacetsRequestRequestTypedDict", "GetdocvisibilityRequest", "GetdocvisibilityRequestTypedDict", + "GetpinRequestRequest", + "GetpinRequestRequestTypedDict", "GetpolicyRequest", "GetpolicyRequestTypedDict", "GetreportstatusRequest", "GetreportstatusRequestTypedDict", + "GetshortcutRequestRequest", + "GetshortcutRequestRequestTypedDict", "GleanAssistInsightsResponse", "GleanAssistInsightsResponseTypedDict", "GleanDataError", @@ -1963,6 +2134,8 @@ "InsightsOverviewResponseTypedDict", "InsightsRequest", "InsightsRequestCategory", + "InsightsRequestRequest", + "InsightsRequestRequestTypedDict", "InsightsRequestTypedDict", "InsightsResponse", "InsightsResponseTypedDict", @@ -2005,12 +2178,22 @@ "ListShortcutsPaginatedRequestTypedDict", "ListShortcutsPaginatedResponse", "ListShortcutsPaginatedResponseTypedDict", + "ListanswersRequestRequest", + "ListanswersRequestRequestTypedDict", "ListchatsRequest", "ListchatsRequestTypedDict", + "ListcollectionsRequestRequest", + "ListcollectionsRequestRequestTypedDict", + "ListentitiesRequestRequest", + "ListentitiesRequestRequestTypedDict", "ListpinsRequest", + "ListpinsRequestBody", + "ListpinsRequestBodyTypedDict", "ListpinsRequestTypedDict", "ListpoliciesRequest", "ListpoliciesRequestTypedDict", + "ListshortcutsRequest", + "ListshortcutsRequestTypedDict", "ListverificationsRequest", "ListverificationsRequestTypedDict", "ManualFeedbackInfo", @@ -2029,6 +2212,8 @@ "MessageType", "MessageTypedDict", "MessagesRequest", + "MessagesRequestRequest", + "MessagesRequestRequestTypedDict", "MessagesRequestTypedDict", "MessagesResponse", "MessagesResponseTypedDict", @@ -2047,6 +2232,8 @@ "OutputSchemaTypedDict", "PeopleRequest", "PeopleRequestIncludeField", + "PeopleRequestRequest", + "PeopleRequestRequestTypedDict", "PeopleRequestTypedDict", "PeopleResponse", "PeopleResponseTypedDict", @@ -2080,6 +2267,8 @@ "PinDocument", "PinDocumentTypedDict", "PinRequest", + "PinRequestRequest", + "PinRequestRequestTypedDict", "PinRequestTypedDict", "PossibleValue", "PossibleValueTypedDict", @@ -2126,6 +2315,8 @@ "RecommendationsRequest", "RecommendationsRequestOptions", "RecommendationsRequestOptionsTypedDict", + "RecommendationsRequestRequest", + "RecommendationsRequestRequestTypedDict", "RecommendationsRequestTypedDict", "ReferenceRange", "ReferenceRangeTypedDict", @@ -2183,6 +2374,8 @@ "SearchRequestInputDetailsTypedDict", "SearchRequestOptions", "SearchRequestOptionsTypedDict", + "SearchRequestRequest", + "SearchRequestRequestTypedDict", "SearchRequestTypedDict", "SearchResponse", "SearchResponseMetadata", @@ -2249,6 +2442,8 @@ "StructuredTextMutablePropertiesTypedDict", "StructuredTextTypedDict", "SummarizeRequest", + "SummarizeRequestRequest", + "SummarizeRequestRequestTypedDict", "SummarizeRequestTypedDict", "SummarizeResponse", "SummarizeResponseTypedDict", @@ -2303,6 +2498,8 @@ "UIOptions", "UgcType", "Unpin", + "UnpinRequest", + "UnpinRequestTypedDict", "UnpinTypedDict", "UpdateAnnouncementRequest", "UpdateAnnouncementRequestChannel", @@ -2327,8 +2524,12 @@ "UpdateShortcutResponse", "UpdateShortcutResponseTypedDict", "UpdateType", + "UpdateannouncementRequestRequest", + "UpdateannouncementRequestRequestTypedDict", "UpdatepolicyRequest", "UpdatepolicyRequestTypedDict", + "UpdateshortcutRequestRequest", + "UpdateshortcutRequestRequestTypedDict", "UploadChatFilesRequest", "UploadChatFilesRequestTypedDict", "UploadChatFilesResponse", @@ -2368,6 +2569,8 @@ "VerificationTypedDict", "VerifyRequest", "VerifyRequestAction", + "VerifyRequestRequest", + "VerifyRequestRequestTypedDict", "VerifyRequestTypedDict", "ViewerInfo", "ViewerInfoTypedDict", @@ -2398,6 +2601,8 @@ "AddCollectionItemsError": ".addcollectionitemserror", "AddCollectionItemsErrorErrorType": ".addcollectionitemserror", "AddCollectionItemsErrorTypedDict": ".addcollectionitemserror", + "AddcollectionitemsRequestRequest": ".addcollectionitemsop", + "AddcollectionitemsRequestRequestTypedDict": ".addcollectionitemsop", "AddCollectionItemsRequest": ".addcollectionitemsrequest", "AddCollectionItemsRequestTypedDict": ".addcollectionitemsrequest", "AddCollectionItemsResponse": ".addcollectionitemsresponse", @@ -2406,6 +2611,10 @@ "AdditionalFieldDefinitionTypedDict": ".additionalfielddefinition", "Value": ".additionalfielddefinition", "ValueTypedDict": ".additionalfielddefinition", + "AddverificationreminderRequest": ".addverificationreminderop", + "AddverificationreminderRequestTypedDict": ".addverificationreminderop", + "AdminsearchRequest": ".adminsearchop", + "AdminsearchRequestTypedDict": ".adminsearchop", "Agent": ".agent", "AgentCapabilities": ".agent", "AgentCapabilitiesTypedDict": ".agent", @@ -2470,6 +2679,8 @@ "GrantType": ".authconfig", "AuthToken": ".authtoken", "AuthTokenTypedDict": ".authtoken", + "AutocompleteRequestRequest": ".autocompleteop", + "AutocompleteRequestRequestTypedDict": ".autocompleteop", "AutocompleteRequest": ".autocompleterequest", "AutocompleteRequestResultType": ".autocompleterequest", "AutocompleteRequestTypedDict": ".autocompleterequest", @@ -2575,14 +2786,20 @@ "ContentType": ".contenttype", "CountInfo": ".countinfo", "CountInfoTypedDict": ".countinfo", + "CreateannouncementRequestRequest": ".createannouncementop", + "CreateannouncementRequestRequestTypedDict": ".createannouncementop", "CreateAnnouncementRequest": ".createannouncementrequest", "CreateAnnouncementRequestChannel": ".createannouncementrequest", "CreateAnnouncementRequestPostType": ".createannouncementrequest", "CreateAnnouncementRequestTypedDict": ".createannouncementrequest", + "CreateanswerRequestRequest": ".createanswerop", + "CreateanswerRequestRequestTypedDict": ".createanswerop", "CreateAnswerRequest": ".createanswerrequest", "CreateAnswerRequestTypedDict": ".createanswerrequest", "CreateAuthTokenResponse": ".createauthtokenresponse", "CreateAuthTokenResponseTypedDict": ".createauthtokenresponse", + "CreatecollectionRequestRequest": ".createcollectionop", + "CreatecollectionRequestRequestTypedDict": ".createcollectionop", "CreatecollectionResponse": ".createcollectionop", "CreatecollectionResponseTypedDict": ".createcollectionop", "ResponseBody1": ".createcollectionop", @@ -2595,6 +2812,8 @@ "CreateDlpReportRequestTypedDict": ".createdlpreportrequest", "CreateDlpReportResponse": ".createdlpreportresponse", "CreateDlpReportResponseTypedDict": ".createdlpreportresponse", + "CreateshortcutRequestRequest": ".createshortcutop", + "CreateshortcutRequestRequestTypedDict": ".createshortcutop", "CreateShortcutRequest": ".createshortcutrequest", "CreateShortcutRequestTypedDict": ".createshortcutrequest", "CreateShortcutResponse": ".createshortcutresponse", @@ -2665,8 +2884,12 @@ "DebugUserResponseTypedDict": ".debuguserresponse", "DeleteallchatsRequest": ".deleteallchatsop", "DeleteallchatsRequestTypedDict": ".deleteallchatsop", + "DeleteannouncementRequestRequest": ".deleteannouncementop", + "DeleteannouncementRequestRequestTypedDict": ".deleteannouncementop", "DeleteAnnouncementRequest": ".deleteannouncementrequest", "DeleteAnnouncementRequestTypedDict": ".deleteannouncementrequest", + "DeleteanswerRequestRequest": ".deleteanswerop", + "DeleteanswerRequestRequestTypedDict": ".deleteanswerop", "DeleteAnswerRequest": ".deleteanswerrequest", "DeleteAnswerRequestTypedDict": ".deleteanswerrequest", "DeletechatfilesRequestRequest": ".deletechatfilesop", @@ -2677,10 +2900,14 @@ "DeletechatsRequestRequestTypedDict": ".deletechatsop", "DeleteChatsRequest": ".deletechatsrequest", "DeleteChatsRequestTypedDict": ".deletechatsrequest", + "DeletecollectionitemRequestRequest": ".deletecollectionitemop", + "DeletecollectionitemRequestRequestTypedDict": ".deletecollectionitemop", "DeleteCollectionItemRequest": ".deletecollectionitemrequest", "DeleteCollectionItemRequestTypedDict": ".deletecollectionitemrequest", "DeleteCollectionItemResponse": ".deletecollectionitemresponse", "DeleteCollectionItemResponseTypedDict": ".deletecollectionitemresponse", + "DeletecollectionRequestRequest": ".deletecollectionop", + "DeletecollectionRequestRequestTypedDict": ".deletecollectionop", "DeleteCollectionRequest": ".deletecollectionrequest", "DeleteCollectionRequestTypedDict": ".deletecollectionrequest", "DeleteDocumentRequest": ".deletedocumentrequest", @@ -2693,6 +2920,8 @@ "DeleteGroupRequestTypedDict": ".deletegrouprequest", "DeleteMembershipRequest": ".deletemembershiprequest", "DeleteMembershipRequestTypedDict": ".deletemembershiprequest", + "DeleteshortcutRequestRequest": ".deleteshortcutop", + "DeleteshortcutRequestRequestTypedDict": ".deleteshortcutop", "DeleteShortcutRequest": ".deleteshortcutrequest", "DeleteShortcutRequestTypedDict": ".deleteshortcutrequest", "DeleteTeamRequest": ".deleteteamrequest", @@ -2771,18 +3000,26 @@ "DownloadpolicycsvRequestTypedDict": ".downloadpolicycsvop", "DownloadreportcsvRequest": ".downloadreportcsvop", "DownloadreportcsvRequestTypedDict": ".downloadreportcsvop", + "EditanswerRequestRequest": ".editanswerop", + "EditanswerRequestRequestTypedDict": ".editanswerop", "EditAnswerRequest": ".editanswerrequest", "EditAnswerRequestSourceType": ".editanswerrequest", "EditAnswerRequestTypedDict": ".editanswerrequest", + "EditcollectionitemRequestRequest": ".editcollectionitemop", + "EditcollectionitemRequestRequestTypedDict": ".editcollectionitemop", "EditCollectionItemRequest": ".editcollectionitemrequest", "EditCollectionItemRequestTypedDict": ".editcollectionitemrequest", "EditCollectionItemResponse": ".editcollectionitemresponse", "EditCollectionItemResponseTypedDict": ".editcollectionitemresponse", + "EditcollectionRequestRequest": ".editcollectionop", + "EditcollectionRequestRequestTypedDict": ".editcollectionop", "EditCollectionRequest": ".editcollectionrequest", "EditCollectionRequestTypedDict": ".editcollectionrequest", "EditCollectionResponse": ".editcollectionresponse", "EditCollectionResponseErrorCode": ".editcollectionresponse", "EditCollectionResponseTypedDict": ".editcollectionresponse", + "EditpinRequestRequest": ".editpinop", + "EditpinRequestRequestTypedDict": ".editpinop", "EditPinRequest": ".editpinrequest", "EditPinRequestTypedDict": ".editpinrequest", "EmployeeInfoDefinition": ".employeeinfodefinition", @@ -2840,6 +3077,8 @@ "JustificationType": ".feedentry", "UIConfig": ".feedentry", "UIConfigTypedDict": ".feedentry", + "FeedRequestRequest": ".feedop", + "FeedRequestRequestTypedDict": ".feedop", "FeedRequest": ".feedrequest", "FeedRequestCategory": ".feedrequest", "FeedRequestTypedDict": ".feedrequest", @@ -2867,6 +3106,8 @@ "GetAnswerError": ".getanswererror", "GetAnswerErrorErrorType": ".getanswererror", "GetAnswerErrorTypedDict": ".getanswererror", + "GetanswerRequestRequest": ".getanswerop", + "GetanswerRequestRequestTypedDict": ".getanswerop", "GetAnswerRequest": ".getanswerrequest", "GetAnswerRequestTypedDict": ".getanswerrequest", "GetAnswerResponse": ".getanswerresponse", @@ -2889,6 +3130,8 @@ "GetChatRequestTypedDict": ".getchatrequest", "GetChatResponse": ".getchatresponse", "GetChatResponseTypedDict": ".getchatresponse", + "GetcollectionRequestRequest": ".getcollectionop", + "GetcollectionRequestRequestTypedDict": ".getcollectionop", "GetCollectionRequest": ".getcollectionrequest", "GetCollectionRequestTypedDict": ".getcollectionrequest", "GetCollectionResponse": ".getcollectionresponse", @@ -2897,6 +3140,8 @@ "GetDatasourceConfigRequestTypedDict": ".getdatasourceconfigrequest", "GetDlpReportResponse": ".getdlpreportresponse", "GetDlpReportResponseTypedDict": ".getdlpreportresponse", + "GetdocpermissionsRequestRequest": ".getdocpermissionsop", + "GetdocpermissionsRequestRequestTypedDict": ".getdocpermissionsop", "GetDocPermissionsRequest": ".getdocpermissionsrequest", "GetDocPermissionsRequestTypedDict": ".getdocpermissionsrequest", "GetDocPermissionsResponse": ".getdocpermissionsresponse", @@ -2905,10 +3150,14 @@ "GetDocumentCountRequestTypedDict": ".getdocumentcountrequest", "GetDocumentCountResponse": ".getdocumentcountresponse", "GetDocumentCountResponseTypedDict": ".getdocumentcountresponse", + "GetdocumentsbyfacetsRequestRequest": ".getdocumentsbyfacetsop", + "GetdocumentsbyfacetsRequestRequestTypedDict": ".getdocumentsbyfacetsop", "GetDocumentsByFacetsRequest": ".getdocumentsbyfacetsrequest", "GetDocumentsByFacetsRequestTypedDict": ".getdocumentsbyfacetsrequest", "GetDocumentsByFacetsResponse": ".getdocumentsbyfacetsresponse", "GetDocumentsByFacetsResponseTypedDict": ".getdocumentsbyfacetsresponse", + "GetdocumentsRequestRequest": ".getdocumentsop", + "GetdocumentsRequestRequestTypedDict": ".getdocumentsop", "GetDocumentsRequest": ".getdocumentsrequest", "GetDocumentsRequestIncludeField": ".getdocumentsrequest", "GetDocumentsRequestTypedDict": ".getdocumentsrequest", @@ -2922,6 +3171,8 @@ "GetDocumentVisibilityOverridesResponseTypedDict": ".getdocumentvisibilityoverridesresponse", "GetdocvisibilityRequest": ".getdocvisibilityop", "GetdocvisibilityRequestTypedDict": ".getdocvisibilityop", + "GetpinRequestRequest": ".getpinop", + "GetpinRequestRequestTypedDict": ".getpinop", "GetPinRequest": ".getpinrequest", "GetPinRequestTypedDict": ".getpinrequest", "GetPinResponse": ".getpinresponse", @@ -2930,10 +3181,12 @@ "GetpolicyRequestTypedDict": ".getpolicyop", "GetreportstatusRequest": ".getreportstatusop", "GetreportstatusRequestTypedDict": ".getreportstatusop", - "GetShortcutRequest": ".getshortcutrequest_union", - "GetShortcutRequestTypedDict": ".getshortcutrequest_union", - "GetShortcutRequestUnion": ".getshortcutrequest_union", - "GetShortcutRequestUnionTypedDict": ".getshortcutrequest_union", + "GetshortcutRequestRequest": ".getshortcutop", + "GetshortcutRequestRequestTypedDict": ".getshortcutop", + "GetShortcutRequest": ".getshortcutrequest", + "GetShortcutRequest1": ".getshortcutrequest", + "GetShortcutRequest1TypedDict": ".getshortcutrequest", + "GetShortcutRequestTypedDict": ".getshortcutrequest", "GetShortcutResponse": ".getshortcutresponse", "GetShortcutResponseTypedDict": ".getshortcutresponse", "GetUserCountRequest": ".getusercountrequest", @@ -2988,6 +3241,8 @@ "InsightsAssistantRequestTypedDict": ".insightsassistantrequest", "InsightsChatSummary": ".insightschatsummary", "InsightsChatSummaryTypedDict": ".insightschatsummary", + "InsightsRequestRequest": ".insightsop", + "InsightsRequestRequestTypedDict": ".insightsop", "InsightsOverviewRequest": ".insightsoverviewrequest", "InsightsOverviewRequestTypedDict": ".insightsoverviewrequest", "InsightsOverviewResponse": ".insightsoverviewresponse", @@ -3004,6 +3259,8 @@ "InvalidOperatorValueErrorTypedDict": ".invalidoperatorvalueerror", "LabeledCountInfo": ".labeledcountinfo", "LabeledCountInfoTypedDict": ".labeledcountinfo", + "ListanswersRequestRequest": ".listanswersop", + "ListanswersRequestRequestTypedDict": ".listanswersop", "ListAnswersRequest": ".listanswersrequest", "ListAnswersRequestTypedDict": ".listanswersrequest", "ListAnswersResponse": ".listanswersresponse", @@ -3012,6 +3269,8 @@ "ListchatsRequestTypedDict": ".listchatsop", "ListChatsResponse": ".listchatsresponse", "ListChatsResponseTypedDict": ".listchatsresponse", + "ListcollectionsRequestRequest": ".listcollectionsop", + "ListcollectionsRequestRequestTypedDict": ".listcollectionsop", "ListCollectionsRequest": ".listcollectionsrequest", "ListCollectionsRequestTypedDict": ".listcollectionsrequest", "ListCollectionsResponse": ".listcollectionsresponse", @@ -3020,6 +3279,8 @@ "ListDlpFindingsExportsResponseTypedDict": ".listdlpfindingsexportsresponse", "ListDlpReportsResponse": ".listdlpreportsresponse", "ListDlpReportsResponseTypedDict": ".listdlpreportsresponse", + "ListentitiesRequestRequest": ".listentitiesop", + "ListentitiesRequestRequestTypedDict": ".listentitiesop", "ListEntitiesRequest": ".listentitiesrequest", "ListEntitiesRequestEntityType": ".listentitiesrequest", "ListEntitiesRequestIncludeField": ".listentitiesrequest", @@ -3028,11 +3289,15 @@ "ListEntitiesResponse": ".listentitiesresponse", "ListEntitiesResponseTypedDict": ".listentitiesresponse", "ListpinsRequest": ".listpinsop", + "ListpinsRequestBody": ".listpinsop", + "ListpinsRequestBodyTypedDict": ".listpinsop", "ListpinsRequestTypedDict": ".listpinsop", "ListPinsResponse": ".listpinsresponse", "ListPinsResponseTypedDict": ".listpinsresponse", "ListpoliciesRequest": ".listpoliciesop", "ListpoliciesRequestTypedDict": ".listpoliciesop", + "ListshortcutsRequest": ".listshortcutsop", + "ListshortcutsRequestTypedDict": ".listshortcutsop", "ListShortcutsPaginatedRequest": ".listshortcutspaginatedrequest", "ListShortcutsPaginatedRequestIncludeField": ".listshortcutspaginatedrequest", "ListShortcutsPaginatedRequestTypedDict": ".listshortcutspaginatedrequest", @@ -3053,6 +3318,8 @@ "MessageTextBlock": ".message", "MessageTextBlockTypedDict": ".message", "MessageTypedDict": ".message", + "MessagesRequestRequest": ".messagesop", + "MessagesRequestRequestTypedDict": ".messagesop", "Datasource": ".messagesrequest", "Direction": ".messagesrequest", "IDType": ".messagesrequest", @@ -3070,6 +3337,8 @@ "OperatorType": ".operatormetadata", "OperatorScope": ".operatorscope", "OperatorScopeTypedDict": ".operatorscope", + "PeopleRequestRequest": ".peopleop", + "PeopleRequestRequestTypedDict": ".peopleop", "IncludeType": ".peoplerequest", "PeopleRequest": ".peoplerequest", "PeopleRequestIncludeField": ".peoplerequest", @@ -3095,6 +3364,8 @@ "PerUserAssistantInsightTypedDict": ".peruserassistantinsight", "PerUserInsight": ".peruserinsight", "PerUserInsightTypedDict": ".peruserinsight", + "PinRequestRequest": ".pinop", + "PinRequestRequestTypedDict": ".pinop", "PinRequest": ".pinrequest", "PinRequestTypedDict": ".pinrequest", "PossibleValue": ".possiblevalue", @@ -3132,6 +3403,8 @@ "Scope": ".quicklink", "ReadPermission": ".readpermission", "ReadPermissionTypedDict": ".readpermission", + "RecommendationsRequestRequest": ".recommendationsop", + "RecommendationsRequestRequestTypedDict": ".recommendationsop", "RecommendationsRequest": ".recommendationsrequest", "RecommendationsRequestTypedDict": ".recommendationsrequest", "RecommendationsRequestOptions": ".recommendationsrequestoptions", @@ -3164,6 +3437,8 @@ "SearchAgentsRequestTypedDict": ".searchagentsrequest", "SearchAgentsResponse": ".searchagentsresponse", "SearchAgentsResponseTypedDict": ".searchagentsresponse", + "SearchRequestRequest": ".searchop", + "SearchRequestRequestTypedDict": ".searchop", "SearchProviderInfo": ".searchproviderinfo", "SearchProviderInfoTypedDict": ".searchproviderinfo", "SearchRequest": ".searchrequest", @@ -3225,6 +3500,8 @@ "StructuredLocationTypedDict": ".structuredlocation", "StructuredTextMutableProperties": ".structuredtextmutableproperties", "StructuredTextMutablePropertiesTypedDict": ".structuredtextmutableproperties", + "SummarizeRequestRequest": ".summarizeop", + "SummarizeRequestRequestTypedDict": ".summarizeop", "SummarizeRequest": ".summarizerequest", "SummarizeRequestTypedDict": ".summarizerequest", "Error": ".summarizeresponse", @@ -3277,6 +3554,10 @@ "UgcType": ".ugctype", "Unpin": ".unpin", "UnpinTypedDict": ".unpin", + "UnpinRequest": ".unpinop", + "UnpinRequestTypedDict": ".unpinop", + "UpdateannouncementRequestRequest": ".updateannouncementop", + "UpdateannouncementRequestRequestTypedDict": ".updateannouncementop", "UpdateAnnouncementRequest": ".updateannouncementrequest", "UpdateAnnouncementRequestChannel": ".updateannouncementrequest", "UpdateAnnouncementRequestPostType": ".updateannouncementrequest", @@ -3297,6 +3578,8 @@ "UpdatePermissionsRequestTypedDict": ".updatepermissionsrequest", "UpdatepolicyRequest": ".updatepolicyop", "UpdatepolicyRequestTypedDict": ".updatepolicyop", + "UpdateshortcutRequestRequest": ".updateshortcutop", + "UpdateshortcutRequestRequestTypedDict": ".updateshortcutop", "UpdateShortcutRequest": ".updateshortcutrequest", "UpdateShortcutRequestTypedDict": ".updateshortcutrequest", "UpdateShortcutResponse": ".updateshortcutresponse", @@ -3334,6 +3617,8 @@ "UserViewInfoTypedDict": ".userviewinfo", "VerificationFeed": ".verificationfeed", "VerificationFeedTypedDict": ".verificationfeed", + "VerifyRequestRequest": ".verifyop", + "VerifyRequestRequestTypedDict": ".verifyop", "VerifyRequest": ".verifyrequest", "VerifyRequestAction": ".verifyrequest", "VerifyRequestTypedDict": ".verifyrequest", diff --git a/src/glean/api_client/models/addcollectionitemsop.py b/src/glean/api_client/models/addcollectionitemsop.py new file mode 100644 index 00000000..63d983e7 --- /dev/null +++ b/src/glean/api_client/models/addcollectionitemsop.py @@ -0,0 +1,49 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .addcollectionitemsrequest import ( + AddCollectionItemsRequest, + AddCollectionItemsRequestTypedDict, +) +from glean.api_client.types import BaseModel, UNSET_SENTINEL +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class AddcollectionitemsRequestRequestTypedDict(TypedDict): + add_collection_items_request: AddCollectionItemsRequestTypedDict + r"""Data describing the add operation.""" + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + +class AddcollectionitemsRequestRequest(BaseModel): + add_collection_items_request: Annotated[ + AddCollectionItemsRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] + r"""Data describing the add operation.""" + + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["locale"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/glean/api_client/models/addverificationreminderop.py b/src/glean/api_client/models/addverificationreminderop.py new file mode 100644 index 00000000..f50d3fae --- /dev/null +++ b/src/glean/api_client/models/addverificationreminderop.py @@ -0,0 +1,46 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .reminderrequest import ReminderRequest, ReminderRequestTypedDict +from glean.api_client.types import BaseModel, UNSET_SENTINEL +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class AddverificationreminderRequestTypedDict(TypedDict): + reminder_request: ReminderRequestTypedDict + r"""Details about the reminder.""" + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + +class AddverificationreminderRequest(BaseModel): + reminder_request: Annotated[ + ReminderRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] + r"""Details about the reminder.""" + + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["locale"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/glean/api_client/models/adminsearchop.py b/src/glean/api_client/models/adminsearchop.py new file mode 100644 index 00000000..2f774337 --- /dev/null +++ b/src/glean/api_client/models/adminsearchop.py @@ -0,0 +1,46 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .searchrequest import SearchRequest, SearchRequestTypedDict +from glean.api_client.types import BaseModel, UNSET_SENTINEL +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class AdminsearchRequestTypedDict(TypedDict): + search_request: SearchRequestTypedDict + r"""Admin search request""" + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + +class AdminsearchRequest(BaseModel): + search_request: Annotated[ + SearchRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] + r"""Admin search request""" + + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["locale"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/glean/api_client/models/autocompleteop.py b/src/glean/api_client/models/autocompleteop.py new file mode 100644 index 00000000..1becb54c --- /dev/null +++ b/src/glean/api_client/models/autocompleteop.py @@ -0,0 +1,46 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .autocompleterequest import AutocompleteRequest, AutocompleteRequestTypedDict +from glean.api_client.types import BaseModel, UNSET_SENTINEL +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class AutocompleteRequestRequestTypedDict(TypedDict): + autocomplete_request: AutocompleteRequestTypedDict + r"""Autocomplete request""" + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + +class AutocompleteRequestRequest(BaseModel): + autocomplete_request: Annotated[ + AutocompleteRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] + r"""Autocomplete request""" + + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["locale"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/glean/api_client/models/chatop.py b/src/glean/api_client/models/chatop.py index 1fc60c24..5f74227b 100644 --- a/src/glean/api_client/models/chatop.py +++ b/src/glean/api_client/models/chatop.py @@ -13,6 +13,8 @@ class ChatRequestRequestTypedDict(TypedDict): chat_request: ChatRequestTypedDict r"""Includes chat history for Glean AI to respond to.""" + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" timezone_offset: NotRequired[int] r"""The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC.""" @@ -24,6 +26,12 @@ class ChatRequestRequest(BaseModel): ] r"""Includes chat history for Glean AI to respond to.""" + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + timezone_offset: Annotated[ Optional[int], pydantic.Field(alias="timezoneOffset"), @@ -33,7 +41,7 @@ class ChatRequestRequest(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = set(["timezoneOffset"]) + optional_fields = set(["locale", "timezoneOffset"]) serialized = handler(self) m = {} diff --git a/src/glean/api_client/models/createannouncementop.py b/src/glean/api_client/models/createannouncementop.py new file mode 100644 index 00000000..684220b8 --- /dev/null +++ b/src/glean/api_client/models/createannouncementop.py @@ -0,0 +1,49 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .createannouncementrequest import ( + CreateAnnouncementRequest, + CreateAnnouncementRequestTypedDict, +) +from glean.api_client.types import BaseModel, UNSET_SENTINEL +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class CreateannouncementRequestRequestTypedDict(TypedDict): + create_announcement_request: CreateAnnouncementRequestTypedDict + r"""Announcement content""" + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + +class CreateannouncementRequestRequest(BaseModel): + create_announcement_request: Annotated[ + CreateAnnouncementRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] + r"""Announcement content""" + + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["locale"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/glean/api_client/models/createanswerop.py b/src/glean/api_client/models/createanswerop.py new file mode 100644 index 00000000..fce45ee2 --- /dev/null +++ b/src/glean/api_client/models/createanswerop.py @@ -0,0 +1,46 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .createanswerrequest import CreateAnswerRequest, CreateAnswerRequestTypedDict +from glean.api_client.types import BaseModel, UNSET_SENTINEL +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class CreateanswerRequestRequestTypedDict(TypedDict): + create_answer_request: CreateAnswerRequestTypedDict + r"""CreateAnswer request""" + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + +class CreateanswerRequestRequest(BaseModel): + create_answer_request: Annotated[ + CreateAnswerRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] + r"""CreateAnswer request""" + + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["locale"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/glean/api_client/models/createcollectionop.py b/src/glean/api_client/models/createcollectionop.py index 2c29395d..639bfdb5 100644 --- a/src/glean/api_client/models/createcollectionop.py +++ b/src/glean/api_client/models/createcollectionop.py @@ -3,10 +3,52 @@ from __future__ import annotations from .collection import Collection, CollectionTypedDict from .collectionerror import CollectionError, CollectionErrorTypedDict +from .createcollectionrequest import ( + CreateCollectionRequest, + CreateCollectionRequestTypedDict, +) from glean.api_client.types import BaseModel, UNSET_SENTINEL +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata from pydantic import model_serializer from typing import Optional, Union -from typing_extensions import NotRequired, TypeAliasType, TypedDict +from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict + + +class CreatecollectionRequestRequestTypedDict(TypedDict): + create_collection_request: CreateCollectionRequestTypedDict + r"""Collection content plus any additional metadata for the request.""" + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + +class CreatecollectionRequestRequest(BaseModel): + create_collection_request: Annotated[ + CreateCollectionRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] + r"""Collection content plus any additional metadata for the request.""" + + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["locale"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m class ResponseBody2TypedDict(TypedDict): diff --git a/src/glean/api_client/models/createshortcutop.py b/src/glean/api_client/models/createshortcutop.py new file mode 100644 index 00000000..2bc9e3a8 --- /dev/null +++ b/src/glean/api_client/models/createshortcutop.py @@ -0,0 +1,46 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .createshortcutrequest import CreateShortcutRequest, CreateShortcutRequestTypedDict +from glean.api_client.types import BaseModel, UNSET_SENTINEL +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class CreateshortcutRequestRequestTypedDict(TypedDict): + create_shortcut_request: CreateShortcutRequestTypedDict + r"""CreateShortcut request""" + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + +class CreateshortcutRequestRequest(BaseModel): + create_shortcut_request: Annotated[ + CreateShortcutRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] + r"""CreateShortcut request""" + + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["locale"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/glean/api_client/models/deleteallchatsop.py b/src/glean/api_client/models/deleteallchatsop.py index 34bb7be3..882f202f 100644 --- a/src/glean/api_client/models/deleteallchatsop.py +++ b/src/glean/api_client/models/deleteallchatsop.py @@ -10,11 +10,19 @@ class DeleteallchatsRequestTypedDict(TypedDict): + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" timezone_offset: NotRequired[int] r"""The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC.""" class DeleteallchatsRequest(BaseModel): + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + timezone_offset: Annotated[ Optional[int], pydantic.Field(alias="timezoneOffset"), @@ -24,7 +32,7 @@ class DeleteallchatsRequest(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = set(["timezoneOffset"]) + optional_fields = set(["locale", "timezoneOffset"]) serialized = handler(self) m = {} diff --git a/src/glean/api_client/models/deleteannouncementop.py b/src/glean/api_client/models/deleteannouncementop.py new file mode 100644 index 00000000..91f7951a --- /dev/null +++ b/src/glean/api_client/models/deleteannouncementop.py @@ -0,0 +1,49 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .deleteannouncementrequest import ( + DeleteAnnouncementRequest, + DeleteAnnouncementRequestTypedDict, +) +from glean.api_client.types import BaseModel, UNSET_SENTINEL +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class DeleteannouncementRequestRequestTypedDict(TypedDict): + delete_announcement_request: DeleteAnnouncementRequestTypedDict + r"""Delete announcement request""" + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + +class DeleteannouncementRequestRequest(BaseModel): + delete_announcement_request: Annotated[ + DeleteAnnouncementRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] + r"""Delete announcement request""" + + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["locale"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/glean/api_client/models/deleteanswerop.py b/src/glean/api_client/models/deleteanswerop.py new file mode 100644 index 00000000..76ffff92 --- /dev/null +++ b/src/glean/api_client/models/deleteanswerop.py @@ -0,0 +1,46 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .deleteanswerrequest import DeleteAnswerRequest, DeleteAnswerRequestTypedDict +from glean.api_client.types import BaseModel, UNSET_SENTINEL +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class DeleteanswerRequestRequestTypedDict(TypedDict): + delete_answer_request: DeleteAnswerRequestTypedDict + r"""DeleteAnswer request""" + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + +class DeleteanswerRequestRequest(BaseModel): + delete_answer_request: Annotated[ + DeleteAnswerRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] + r"""DeleteAnswer request""" + + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["locale"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/glean/api_client/models/deletechatfilesop.py b/src/glean/api_client/models/deletechatfilesop.py index ca1a1f9c..cdbd0c7f 100644 --- a/src/glean/api_client/models/deletechatfilesop.py +++ b/src/glean/api_client/models/deletechatfilesop.py @@ -15,6 +15,8 @@ class DeletechatfilesRequestRequestTypedDict(TypedDict): delete_chat_files_request: DeleteChatFilesRequestTypedDict + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" timezone_offset: NotRequired[int] r"""The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC.""" @@ -25,6 +27,12 @@ class DeletechatfilesRequestRequest(BaseModel): FieldMetadata(request=RequestMetadata(media_type="application/json")), ] + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + timezone_offset: Annotated[ Optional[int], pydantic.Field(alias="timezoneOffset"), @@ -34,7 +42,7 @@ class DeletechatfilesRequestRequest(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = set(["timezoneOffset"]) + optional_fields = set(["locale", "timezoneOffset"]) serialized = handler(self) m = {} diff --git a/src/glean/api_client/models/deletechatsop.py b/src/glean/api_client/models/deletechatsop.py index a3230e01..540084d3 100644 --- a/src/glean/api_client/models/deletechatsop.py +++ b/src/glean/api_client/models/deletechatsop.py @@ -12,6 +12,8 @@ class DeletechatsRequestRequestTypedDict(TypedDict): delete_chats_request: DeleteChatsRequestTypedDict + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" timezone_offset: NotRequired[int] r"""The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC.""" @@ -22,6 +24,12 @@ class DeletechatsRequestRequest(BaseModel): FieldMetadata(request=RequestMetadata(media_type="application/json")), ] + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + timezone_offset: Annotated[ Optional[int], pydantic.Field(alias="timezoneOffset"), @@ -31,7 +39,7 @@ class DeletechatsRequestRequest(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = set(["timezoneOffset"]) + optional_fields = set(["locale", "timezoneOffset"]) serialized = handler(self) m = {} diff --git a/src/glean/api_client/models/deletecollectionitemop.py b/src/glean/api_client/models/deletecollectionitemop.py new file mode 100644 index 00000000..9d185806 --- /dev/null +++ b/src/glean/api_client/models/deletecollectionitemop.py @@ -0,0 +1,49 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .deletecollectionitemrequest import ( + DeleteCollectionItemRequest, + DeleteCollectionItemRequestTypedDict, +) +from glean.api_client.types import BaseModel, UNSET_SENTINEL +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class DeletecollectionitemRequestRequestTypedDict(TypedDict): + delete_collection_item_request: DeleteCollectionItemRequestTypedDict + r"""Data describing the delete operation.""" + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + +class DeletecollectionitemRequestRequest(BaseModel): + delete_collection_item_request: Annotated[ + DeleteCollectionItemRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] + r"""Data describing the delete operation.""" + + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["locale"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/glean/api_client/models/deletecollectionop.py b/src/glean/api_client/models/deletecollectionop.py new file mode 100644 index 00000000..53473bb9 --- /dev/null +++ b/src/glean/api_client/models/deletecollectionop.py @@ -0,0 +1,49 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .deletecollectionrequest import ( + DeleteCollectionRequest, + DeleteCollectionRequestTypedDict, +) +from glean.api_client.types import BaseModel, UNSET_SENTINEL +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class DeletecollectionRequestRequestTypedDict(TypedDict): + delete_collection_request: DeleteCollectionRequestTypedDict + r"""DeleteCollection request""" + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + +class DeletecollectionRequestRequest(BaseModel): + delete_collection_request: Annotated[ + DeleteCollectionRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] + r"""DeleteCollection request""" + + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["locale"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/glean/api_client/models/deleteshortcutop.py b/src/glean/api_client/models/deleteshortcutop.py new file mode 100644 index 00000000..0c9baf91 --- /dev/null +++ b/src/glean/api_client/models/deleteshortcutop.py @@ -0,0 +1,46 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .deleteshortcutrequest import DeleteShortcutRequest, DeleteShortcutRequestTypedDict +from glean.api_client.types import BaseModel, UNSET_SENTINEL +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class DeleteshortcutRequestRequestTypedDict(TypedDict): + delete_shortcut_request: DeleteShortcutRequestTypedDict + r"""DeleteShortcut request""" + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + +class DeleteshortcutRequestRequest(BaseModel): + delete_shortcut_request: Annotated[ + DeleteShortcutRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] + r"""DeleteShortcut request""" + + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["locale"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/glean/api_client/models/editanswerop.py b/src/glean/api_client/models/editanswerop.py new file mode 100644 index 00000000..f253d316 --- /dev/null +++ b/src/glean/api_client/models/editanswerop.py @@ -0,0 +1,46 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .editanswerrequest import EditAnswerRequest, EditAnswerRequestTypedDict +from glean.api_client.types import BaseModel, UNSET_SENTINEL +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class EditanswerRequestRequestTypedDict(TypedDict): + edit_answer_request: EditAnswerRequestTypedDict + r"""EditAnswer request""" + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + +class EditanswerRequestRequest(BaseModel): + edit_answer_request: Annotated[ + EditAnswerRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] + r"""EditAnswer request""" + + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["locale"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/glean/api_client/models/editcollectionitemop.py b/src/glean/api_client/models/editcollectionitemop.py new file mode 100644 index 00000000..64b91d3a --- /dev/null +++ b/src/glean/api_client/models/editcollectionitemop.py @@ -0,0 +1,49 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .editcollectionitemrequest import ( + EditCollectionItemRequest, + EditCollectionItemRequestTypedDict, +) +from glean.api_client.types import BaseModel, UNSET_SENTINEL +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class EditcollectionitemRequestRequestTypedDict(TypedDict): + edit_collection_item_request: EditCollectionItemRequestTypedDict + r"""Edit Collection Items request""" + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + +class EditcollectionitemRequestRequest(BaseModel): + edit_collection_item_request: Annotated[ + EditCollectionItemRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] + r"""Edit Collection Items request""" + + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["locale"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/glean/api_client/models/editcollectionop.py b/src/glean/api_client/models/editcollectionop.py new file mode 100644 index 00000000..ebc50afc --- /dev/null +++ b/src/glean/api_client/models/editcollectionop.py @@ -0,0 +1,46 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .editcollectionrequest import EditCollectionRequest, EditCollectionRequestTypedDict +from glean.api_client.types import BaseModel, UNSET_SENTINEL +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class EditcollectionRequestRequestTypedDict(TypedDict): + edit_collection_request: EditCollectionRequestTypedDict + r"""Collection content plus any additional metadata for the request.""" + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + +class EditcollectionRequestRequest(BaseModel): + edit_collection_request: Annotated[ + EditCollectionRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] + r"""Collection content plus any additional metadata for the request.""" + + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["locale"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/glean/api_client/models/editpinop.py b/src/glean/api_client/models/editpinop.py new file mode 100644 index 00000000..6591f97b --- /dev/null +++ b/src/glean/api_client/models/editpinop.py @@ -0,0 +1,46 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .editpinrequest import EditPinRequest, EditPinRequestTypedDict +from glean.api_client.types import BaseModel, UNSET_SENTINEL +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class EditpinRequestRequestTypedDict(TypedDict): + edit_pin_request: EditPinRequestTypedDict + r"""Edit pins request""" + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + +class EditpinRequestRequest(BaseModel): + edit_pin_request: Annotated[ + EditPinRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] + r"""Edit pins request""" + + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["locale"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/glean/api_client/models/feedop.py b/src/glean/api_client/models/feedop.py new file mode 100644 index 00000000..da94a1eb --- /dev/null +++ b/src/glean/api_client/models/feedop.py @@ -0,0 +1,46 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .feedrequest import FeedRequest, FeedRequestTypedDict +from glean.api_client.types import BaseModel, UNSET_SENTINEL +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class FeedRequestRequestTypedDict(TypedDict): + feed_request: FeedRequestTypedDict + r"""Includes request params, client data and more for making user's feed.""" + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + +class FeedRequestRequest(BaseModel): + feed_request: Annotated[ + FeedRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] + r"""Includes request params, client data and more for making user's feed.""" + + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["locale"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/glean/api_client/models/getagentop.py b/src/glean/api_client/models/getagentop.py index fe5de6e2..d0057193 100644 --- a/src/glean/api_client/models/getagentop.py +++ b/src/glean/api_client/models/getagentop.py @@ -12,6 +12,8 @@ class GetAgentRequestTypedDict(TypedDict): agent_id: str r"""The ID of the agent.""" + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" timezone_offset: NotRequired[int] r"""The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC.""" @@ -22,6 +24,12 @@ class GetAgentRequest(BaseModel): ] r"""The ID of the agent.""" + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + timezone_offset: Annotated[ Optional[int], pydantic.Field(alias="timezoneOffset"), @@ -31,7 +39,7 @@ class GetAgentRequest(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = set(["timezoneOffset"]) + optional_fields = set(["locale", "timezoneOffset"]) serialized = handler(self) m = {} diff --git a/src/glean/api_client/models/getagentschemasop.py b/src/glean/api_client/models/getagentschemasop.py index 17537af7..49e8e1d4 100644 --- a/src/glean/api_client/models/getagentschemasop.py +++ b/src/glean/api_client/models/getagentschemasop.py @@ -12,6 +12,8 @@ class GetAgentSchemasRequestTypedDict(TypedDict): agent_id: str r"""The ID of the agent.""" + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" timezone_offset: NotRequired[int] r"""The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC.""" @@ -22,6 +24,12 @@ class GetAgentSchemasRequest(BaseModel): ] r"""The ID of the agent.""" + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + timezone_offset: Annotated[ Optional[int], pydantic.Field(alias="timezoneOffset"), @@ -31,7 +39,7 @@ class GetAgentSchemasRequest(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = set(["timezoneOffset"]) + optional_fields = set(["locale", "timezoneOffset"]) serialized = handler(self) m = {} diff --git a/src/glean/api_client/models/getanswerop.py b/src/glean/api_client/models/getanswerop.py new file mode 100644 index 00000000..49aa5a14 --- /dev/null +++ b/src/glean/api_client/models/getanswerop.py @@ -0,0 +1,46 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .getanswerrequest import GetAnswerRequest, GetAnswerRequestTypedDict +from glean.api_client.types import BaseModel, UNSET_SENTINEL +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class GetanswerRequestRequestTypedDict(TypedDict): + get_answer_request: GetAnswerRequestTypedDict + r"""GetAnswer request""" + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + +class GetanswerRequestRequest(BaseModel): + get_answer_request: Annotated[ + GetAnswerRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] + r"""GetAnswer request""" + + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["locale"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/glean/api_client/models/getchatapplicationop.py b/src/glean/api_client/models/getchatapplicationop.py index 08af3716..7757b5b3 100644 --- a/src/glean/api_client/models/getchatapplicationop.py +++ b/src/glean/api_client/models/getchatapplicationop.py @@ -15,6 +15,8 @@ class GetchatapplicationRequestRequestTypedDict(TypedDict): get_chat_application_request: GetChatApplicationRequestTypedDict + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" timezone_offset: NotRequired[int] r"""The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC.""" @@ -25,6 +27,12 @@ class GetchatapplicationRequestRequest(BaseModel): FieldMetadata(request=RequestMetadata(media_type="application/json")), ] + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + timezone_offset: Annotated[ Optional[int], pydantic.Field(alias="timezoneOffset"), @@ -34,7 +42,7 @@ class GetchatapplicationRequestRequest(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = set(["timezoneOffset"]) + optional_fields = set(["locale", "timezoneOffset"]) serialized = handler(self) m = {} diff --git a/src/glean/api_client/models/getchatfilesop.py b/src/glean/api_client/models/getchatfilesop.py index 709997e2..de9515ca 100644 --- a/src/glean/api_client/models/getchatfilesop.py +++ b/src/glean/api_client/models/getchatfilesop.py @@ -12,6 +12,8 @@ class GetchatfilesRequestRequestTypedDict(TypedDict): get_chat_files_request: GetChatFilesRequestTypedDict + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" timezone_offset: NotRequired[int] r"""The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC.""" @@ -22,6 +24,12 @@ class GetchatfilesRequestRequest(BaseModel): FieldMetadata(request=RequestMetadata(media_type="application/json")), ] + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + timezone_offset: Annotated[ Optional[int], pydantic.Field(alias="timezoneOffset"), @@ -31,7 +39,7 @@ class GetchatfilesRequestRequest(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = set(["timezoneOffset"]) + optional_fields = set(["locale", "timezoneOffset"]) serialized = handler(self) m = {} diff --git a/src/glean/api_client/models/getchatop.py b/src/glean/api_client/models/getchatop.py index a233f708..1a5badde 100644 --- a/src/glean/api_client/models/getchatop.py +++ b/src/glean/api_client/models/getchatop.py @@ -12,6 +12,8 @@ class GetchatRequestRequestTypedDict(TypedDict): get_chat_request: GetChatRequestTypedDict + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" timezone_offset: NotRequired[int] r"""The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC.""" @@ -22,6 +24,12 @@ class GetchatRequestRequest(BaseModel): FieldMetadata(request=RequestMetadata(media_type="application/json")), ] + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + timezone_offset: Annotated[ Optional[int], pydantic.Field(alias="timezoneOffset"), @@ -31,7 +39,7 @@ class GetchatRequestRequest(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = set(["timezoneOffset"]) + optional_fields = set(["locale", "timezoneOffset"]) serialized = handler(self) m = {} diff --git a/src/glean/api_client/models/getcollectionop.py b/src/glean/api_client/models/getcollectionop.py new file mode 100644 index 00000000..01f41bad --- /dev/null +++ b/src/glean/api_client/models/getcollectionop.py @@ -0,0 +1,46 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .getcollectionrequest import GetCollectionRequest, GetCollectionRequestTypedDict +from glean.api_client.types import BaseModel, UNSET_SENTINEL +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class GetcollectionRequestRequestTypedDict(TypedDict): + get_collection_request: GetCollectionRequestTypedDict + r"""GetCollection request""" + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + +class GetcollectionRequestRequest(BaseModel): + get_collection_request: Annotated[ + GetCollectionRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] + r"""GetCollection request""" + + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["locale"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/glean/api_client/models/getdocpermissionsop.py b/src/glean/api_client/models/getdocpermissionsop.py new file mode 100644 index 00000000..50cd4245 --- /dev/null +++ b/src/glean/api_client/models/getdocpermissionsop.py @@ -0,0 +1,49 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .getdocpermissionsrequest import ( + GetDocPermissionsRequest, + GetDocPermissionsRequestTypedDict, +) +from glean.api_client.types import BaseModel, UNSET_SENTINEL +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class GetdocpermissionsRequestRequestTypedDict(TypedDict): + get_doc_permissions_request: GetDocPermissionsRequestTypedDict + r"""Document permissions request""" + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + +class GetdocpermissionsRequestRequest(BaseModel): + get_doc_permissions_request: Annotated[ + GetDocPermissionsRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] + r"""Document permissions request""" + + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["locale"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/glean/api_client/models/getdocumentsbyfacetsop.py b/src/glean/api_client/models/getdocumentsbyfacetsop.py new file mode 100644 index 00000000..ccad698f --- /dev/null +++ b/src/glean/api_client/models/getdocumentsbyfacetsop.py @@ -0,0 +1,49 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .getdocumentsbyfacetsrequest import ( + GetDocumentsByFacetsRequest, + GetDocumentsByFacetsRequestTypedDict, +) +from glean.api_client.types import BaseModel, UNSET_SENTINEL +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class GetdocumentsbyfacetsRequestRequestTypedDict(TypedDict): + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + get_documents_by_facets_request: NotRequired[GetDocumentsByFacetsRequestTypedDict] + r"""Information about facet conditions for documents to be retrieved.""" + + +class GetdocumentsbyfacetsRequestRequest(BaseModel): + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + get_documents_by_facets_request: Annotated[ + Optional[GetDocumentsByFacetsRequest], + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] = None + r"""Information about facet conditions for documents to be retrieved.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["locale", "GetDocumentsByFacetsRequest"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/glean/api_client/models/getdocumentsop.py b/src/glean/api_client/models/getdocumentsop.py new file mode 100644 index 00000000..41ab78e2 --- /dev/null +++ b/src/glean/api_client/models/getdocumentsop.py @@ -0,0 +1,46 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .getdocumentsrequest import GetDocumentsRequest, GetDocumentsRequestTypedDict +from glean.api_client.types import BaseModel, UNSET_SENTINEL +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class GetdocumentsRequestRequestTypedDict(TypedDict): + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + get_documents_request: NotRequired[GetDocumentsRequestTypedDict] + r"""Information about documents requested.""" + + +class GetdocumentsRequestRequest(BaseModel): + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + get_documents_request: Annotated[ + Optional[GetDocumentsRequest], + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] = None + r"""Information about documents requested.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["locale", "GetDocumentsRequest"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/glean/api_client/models/getpinop.py b/src/glean/api_client/models/getpinop.py new file mode 100644 index 00000000..c854e8f0 --- /dev/null +++ b/src/glean/api_client/models/getpinop.py @@ -0,0 +1,46 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .getpinrequest import GetPinRequest, GetPinRequestTypedDict +from glean.api_client.types import BaseModel, UNSET_SENTINEL +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class GetpinRequestRequestTypedDict(TypedDict): + get_pin_request: GetPinRequestTypedDict + r"""Get pin request""" + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + +class GetpinRequestRequest(BaseModel): + get_pin_request: Annotated[ + GetPinRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] + r"""Get pin request""" + + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["locale"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/glean/api_client/models/getshortcutop.py b/src/glean/api_client/models/getshortcutop.py new file mode 100644 index 00000000..dd5c270c --- /dev/null +++ b/src/glean/api_client/models/getshortcutop.py @@ -0,0 +1,46 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .getshortcutrequest import GetShortcutRequest, GetShortcutRequestTypedDict +from glean.api_client.types import BaseModel, UNSET_SENTINEL +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class GetshortcutRequestRequestTypedDict(TypedDict): + get_shortcut_request: GetShortcutRequestTypedDict + r"""GetShortcut request""" + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + +class GetshortcutRequestRequest(BaseModel): + get_shortcut_request: Annotated[ + GetShortcutRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] + r"""GetShortcut request""" + + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["locale"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/glean/api_client/models/getshortcutrequest_union.py b/src/glean/api_client/models/getshortcutrequest.py similarity index 60% rename from src/glean/api_client/models/getshortcutrequest_union.py rename to src/glean/api_client/models/getshortcutrequest.py index 6f031d6d..6efe832b 100644 --- a/src/glean/api_client/models/getshortcutrequest_union.py +++ b/src/glean/api_client/models/getshortcutrequest.py @@ -10,22 +10,22 @@ from typing_extensions import TypeAliasType, TypedDict -class GetShortcutRequestTypedDict(TypedDict): +class GetShortcutRequest1TypedDict(TypedDict): alias: str r"""The alias for the shortcut, including any arguments for variable shortcuts.""" -class GetShortcutRequest(BaseModel): +class GetShortcutRequest1(BaseModel): alias: str r"""The alias for the shortcut, including any arguments for variable shortcuts.""" -GetShortcutRequestUnionTypedDict = TypeAliasType( - "GetShortcutRequestUnionTypedDict", - Union[UserGeneratedContentIDTypedDict, GetShortcutRequestTypedDict], +GetShortcutRequestTypedDict = TypeAliasType( + "GetShortcutRequestTypedDict", + Union[UserGeneratedContentIDTypedDict, GetShortcutRequest1TypedDict], ) -GetShortcutRequestUnion = TypeAliasType( - "GetShortcutRequestUnion", Union[UserGeneratedContentID, GetShortcutRequest] +GetShortcutRequest = TypeAliasType( + "GetShortcutRequest", Union[UserGeneratedContentID, GetShortcutRequest1] ) diff --git a/src/glean/api_client/models/gleandataerror.py b/src/glean/api_client/models/gleandataerror.py index 49567e8d..953126e2 100644 --- a/src/glean/api_client/models/gleandataerror.py +++ b/src/glean/api_client/models/gleandataerror.py @@ -21,6 +21,8 @@ class GleanDataErrorTypedDict(TypedDict): invalid_operators: NotRequired[List[InvalidOperatorValueErrorTypedDict]] r"""Indicates results could not be fetched due to invalid operators in the query.""" error_messages: NotRequired[List[ErrorMessageTypedDict]] + federated_search_rate_limit_error: NotRequired[bool] + r"""Indicates the federated search results could not be fetched due to rate limiting.""" class GleanDataError(BaseModel): @@ -44,10 +46,21 @@ class GleanDataError(BaseModel): Optional[List[ErrorMessage]], pydantic.Field(alias="errorMessages") ] = None + federated_search_rate_limit_error: Annotated[ + Optional[bool], pydantic.Field(alias="federatedSearchRateLimitError") + ] = None + r"""Indicates the federated search results could not be fetched due to rate limiting.""" + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = set( - ["badGmailToken", "badOutlookToken", "invalidOperators", "errorMessages"] + [ + "badGmailToken", + "badOutlookToken", + "invalidOperators", + "errorMessages", + "federatedSearchRateLimitError", + ] ) serialized = handler(self) m = {} diff --git a/src/glean/api_client/models/inputoptions.py b/src/glean/api_client/models/inputoptions.py index 4b14eb02..b1c67be3 100644 --- a/src/glean/api_client/models/inputoptions.py +++ b/src/glean/api_client/models/inputoptions.py @@ -41,6 +41,8 @@ class InputOptionsTypedDict(TypedDict): time_period_type: NotRequired[InputOptionsTimePeriodType] r"""Type of time period for which to run the report/policy. PAST_DAY is deprecated.""" custom_time_range: NotRequired[TimeRangeTypedDict] + subset_doc_ids_to_scan: NotRequired[List[str]] + r"""Subset of document IDs to scan. If empty, all documents matching other scope criteria will be scanned.""" class InputOptions(BaseModel): @@ -82,6 +84,11 @@ class InputOptions(BaseModel): Optional[TimeRange], pydantic.Field(alias="customTimeRange") ] = None + subset_doc_ids_to_scan: Annotated[ + Optional[List[str]], pydantic.Field(alias="subsetDocIdsToScan") + ] = None + r"""Subset of document IDs to scan. If empty, all documents matching other scope criteria will be scanned.""" + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = set( @@ -92,6 +99,7 @@ def serialize_model(self, handler): "datasourceInstances", "timePeriodType", "customTimeRange", + "subsetDocIdsToScan", ] ) serialized = handler(self) diff --git a/src/glean/api_client/models/insightsop.py b/src/glean/api_client/models/insightsop.py new file mode 100644 index 00000000..ef886121 --- /dev/null +++ b/src/glean/api_client/models/insightsop.py @@ -0,0 +1,46 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .insightsrequest import InsightsRequest, InsightsRequestTypedDict +from glean.api_client.types import BaseModel, UNSET_SENTINEL +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class InsightsRequestRequestTypedDict(TypedDict): + insights_request: InsightsRequestTypedDict + r"""Includes request parameters for insights requests.""" + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + +class InsightsRequestRequest(BaseModel): + insights_request: Annotated[ + InsightsRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] + r"""Includes request parameters for insights requests.""" + + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["locale"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/glean/api_client/models/listanswersop.py b/src/glean/api_client/models/listanswersop.py new file mode 100644 index 00000000..f94bc53b --- /dev/null +++ b/src/glean/api_client/models/listanswersop.py @@ -0,0 +1,46 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .listanswersrequest import ListAnswersRequest, ListAnswersRequestTypedDict +from glean.api_client.types import BaseModel, UNSET_SENTINEL +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class ListanswersRequestRequestTypedDict(TypedDict): + list_answers_request: ListAnswersRequestTypedDict + r"""ListAnswers request""" + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + +class ListanswersRequestRequest(BaseModel): + list_answers_request: Annotated[ + ListAnswersRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] + r"""ListAnswers request""" + + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["locale"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/glean/api_client/models/listchatsop.py b/src/glean/api_client/models/listchatsop.py index 44da8712..883801d6 100644 --- a/src/glean/api_client/models/listchatsop.py +++ b/src/glean/api_client/models/listchatsop.py @@ -10,11 +10,19 @@ class ListchatsRequestTypedDict(TypedDict): + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" timezone_offset: NotRequired[int] r"""The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC.""" class ListchatsRequest(BaseModel): + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + timezone_offset: Annotated[ Optional[int], pydantic.Field(alias="timezoneOffset"), @@ -24,7 +32,7 @@ class ListchatsRequest(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = set(["timezoneOffset"]) + optional_fields = set(["locale", "timezoneOffset"]) serialized = handler(self) m = {} diff --git a/src/glean/api_client/models/listcollectionsop.py b/src/glean/api_client/models/listcollectionsop.py new file mode 100644 index 00000000..ff908cda --- /dev/null +++ b/src/glean/api_client/models/listcollectionsop.py @@ -0,0 +1,49 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .listcollectionsrequest import ( + ListCollectionsRequest, + ListCollectionsRequestTypedDict, +) +from glean.api_client.types import BaseModel, UNSET_SENTINEL +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class ListcollectionsRequestRequestTypedDict(TypedDict): + list_collections_request: ListCollectionsRequestTypedDict + r"""ListCollections request""" + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + +class ListcollectionsRequestRequest(BaseModel): + list_collections_request: Annotated[ + ListCollectionsRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] + r"""ListCollections request""" + + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["locale"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/glean/api_client/models/listentitiesop.py b/src/glean/api_client/models/listentitiesop.py new file mode 100644 index 00000000..7f583865 --- /dev/null +++ b/src/glean/api_client/models/listentitiesop.py @@ -0,0 +1,46 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .listentitiesrequest import ListEntitiesRequest, ListEntitiesRequestTypedDict +from glean.api_client.types import BaseModel, UNSET_SENTINEL +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class ListentitiesRequestRequestTypedDict(TypedDict): + list_entities_request: ListEntitiesRequestTypedDict + r"""List people request""" + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + +class ListentitiesRequestRequest(BaseModel): + list_entities_request: Annotated[ + ListEntitiesRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] + r"""List people request""" + + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["locale"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/glean/api_client/models/listpinsop.py b/src/glean/api_client/models/listpinsop.py index c31a5c29..3b96ea93 100644 --- a/src/glean/api_client/models/listpinsop.py +++ b/src/glean/api_client/models/listpinsop.py @@ -1,13 +1,53 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from glean.api_client.types import BaseModel -from typing_extensions import TypedDict +from glean.api_client.types import BaseModel, UNSET_SENTINEL +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class ListpinsRequestBodyTypedDict(TypedDict): + r"""List pins request""" + + +class ListpinsRequestBody(BaseModel): + r"""List pins request""" class ListpinsRequestTypedDict(TypedDict): + request_body: ListpinsRequestBodyTypedDict r"""List pins request""" + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" class ListpinsRequest(BaseModel): + request_body: Annotated[ + ListpinsRequestBody, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] r"""List pins request""" + + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["locale"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/glean/api_client/models/listshortcutsop.py b/src/glean/api_client/models/listshortcutsop.py new file mode 100644 index 00000000..9e75a239 --- /dev/null +++ b/src/glean/api_client/models/listshortcutsop.py @@ -0,0 +1,49 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .listshortcutspaginatedrequest import ( + ListShortcutsPaginatedRequest, + ListShortcutsPaginatedRequestTypedDict, +) +from glean.api_client.types import BaseModel, UNSET_SENTINEL +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class ListshortcutsRequestTypedDict(TypedDict): + list_shortcuts_paginated_request: ListShortcutsPaginatedRequestTypedDict + r"""Filters, sorters, paging params required for pagination""" + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + +class ListshortcutsRequest(BaseModel): + list_shortcuts_paginated_request: Annotated[ + ListShortcutsPaginatedRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] + r"""Filters, sorters, paging params required for pagination""" + + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["locale"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/glean/api_client/models/listverificationsop.py b/src/glean/api_client/models/listverificationsop.py index f42c46a3..c0d3fbcc 100644 --- a/src/glean/api_client/models/listverificationsop.py +++ b/src/glean/api_client/models/listverificationsop.py @@ -11,6 +11,8 @@ class ListverificationsRequestTypedDict(TypedDict): count: NotRequired[int] r"""Maximum number of documents to return""" + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" class ListverificationsRequest(BaseModel): @@ -20,9 +22,15 @@ class ListverificationsRequest(BaseModel): ] = None r"""Maximum number of documents to return""" + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = set(["count"]) + optional_fields = set(["count", "locale"]) serialized = handler(self) m = {} diff --git a/src/glean/api_client/models/messagesop.py b/src/glean/api_client/models/messagesop.py new file mode 100644 index 00000000..0c30b2da --- /dev/null +++ b/src/glean/api_client/models/messagesop.py @@ -0,0 +1,46 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .messagesrequest import MessagesRequest, MessagesRequestTypedDict +from glean.api_client.types import BaseModel, UNSET_SENTINEL +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class MessagesRequestRequestTypedDict(TypedDict): + messages_request: MessagesRequestTypedDict + r"""Includes request params such as the id for channel/message and direction.""" + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + +class MessagesRequestRequest(BaseModel): + messages_request: Annotated[ + MessagesRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] + r"""Includes request params such as the id for channel/message and direction.""" + + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["locale"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/glean/api_client/models/peopleop.py b/src/glean/api_client/models/peopleop.py new file mode 100644 index 00000000..7bae9399 --- /dev/null +++ b/src/glean/api_client/models/peopleop.py @@ -0,0 +1,46 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .peoplerequest import PeopleRequest, PeopleRequestTypedDict +from glean.api_client.types import BaseModel, UNSET_SENTINEL +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class PeopleRequestRequestTypedDict(TypedDict): + people_request: PeopleRequestTypedDict + r"""People request""" + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + +class PeopleRequestRequest(BaseModel): + people_request: Annotated[ + PeopleRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] + r"""People request""" + + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["locale"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/glean/api_client/models/pinop.py b/src/glean/api_client/models/pinop.py new file mode 100644 index 00000000..55e04636 --- /dev/null +++ b/src/glean/api_client/models/pinop.py @@ -0,0 +1,46 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .pinrequest import PinRequest, PinRequestTypedDict +from glean.api_client.types import BaseModel, UNSET_SENTINEL +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class PinRequestRequestTypedDict(TypedDict): + pin_request: PinRequestTypedDict + r"""Details about the document and query for the pin.""" + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + +class PinRequestRequest(BaseModel): + pin_request: Annotated[ + PinRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] + r"""Details about the document and query for the pin.""" + + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["locale"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/glean/api_client/models/recommendationsop.py b/src/glean/api_client/models/recommendationsop.py new file mode 100644 index 00000000..5407cad0 --- /dev/null +++ b/src/glean/api_client/models/recommendationsop.py @@ -0,0 +1,49 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .recommendationsrequest import ( + RecommendationsRequest, + RecommendationsRequestTypedDict, +) +from glean.api_client.types import BaseModel, UNSET_SENTINEL +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class RecommendationsRequestRequestTypedDict(TypedDict): + recommendations_request: RecommendationsRequestTypedDict + r"""Recommendations request""" + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + +class RecommendationsRequestRequest(BaseModel): + recommendations_request: Annotated[ + RecommendationsRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] + r"""Recommendations request""" + + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["locale"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/glean/api_client/models/searchop.py b/src/glean/api_client/models/searchop.py new file mode 100644 index 00000000..08c2a35b --- /dev/null +++ b/src/glean/api_client/models/searchop.py @@ -0,0 +1,46 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .searchrequest import SearchRequest, SearchRequestTypedDict +from glean.api_client.types import BaseModel, UNSET_SENTINEL +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class SearchRequestRequestTypedDict(TypedDict): + search_request: SearchRequestTypedDict + r"""Search request""" + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + +class SearchRequestRequest(BaseModel): + search_request: Annotated[ + SearchRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] + r"""Search request""" + + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["locale"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/glean/api_client/models/summarizeop.py b/src/glean/api_client/models/summarizeop.py new file mode 100644 index 00000000..d476d017 --- /dev/null +++ b/src/glean/api_client/models/summarizeop.py @@ -0,0 +1,46 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .summarizerequest import SummarizeRequest, SummarizeRequestTypedDict +from glean.api_client.types import BaseModel, UNSET_SENTINEL +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class SummarizeRequestRequestTypedDict(TypedDict): + summarize_request: SummarizeRequestTypedDict + r"""Includes request params such as the query and specs of the documents to summarize.""" + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + +class SummarizeRequestRequest(BaseModel): + summarize_request: Annotated[ + SummarizeRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] + r"""Includes request params such as the query and specs of the documents to summarize.""" + + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["locale"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/glean/api_client/models/ugctype.py b/src/glean/api_client/models/ugctype.py index 383b3994..9594a7bf 100644 --- a/src/glean/api_client/models/ugctype.py +++ b/src/glean/api_client/models/ugctype.py @@ -11,3 +11,4 @@ class UgcType(str, Enum): SHORTCUTS_TYPE = "SHORTCUTS_TYPE" WORKFLOWS_TYPE = "WORKFLOWS_TYPE" PROMPT_TEMPLATES_TYPE = "PROMPT_TEMPLATES_TYPE" + PRISM_VIEWS_TYPE = "PRISM_VIEWS_TYPE" diff --git a/src/glean/api_client/models/unpinop.py b/src/glean/api_client/models/unpinop.py new file mode 100644 index 00000000..4ba6dcab --- /dev/null +++ b/src/glean/api_client/models/unpinop.py @@ -0,0 +1,45 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .unpin import Unpin, UnpinTypedDict +from glean.api_client.types import BaseModel, UNSET_SENTINEL +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class UnpinRequestTypedDict(TypedDict): + unpin: UnpinTypedDict + r"""Details about the pin being unpinned.""" + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + +class UnpinRequest(BaseModel): + unpin: Annotated[ + Unpin, FieldMetadata(request=RequestMetadata(media_type="application/json")) + ] + r"""Details about the pin being unpinned.""" + + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["locale"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/glean/api_client/models/updateannouncementop.py b/src/glean/api_client/models/updateannouncementop.py new file mode 100644 index 00000000..05d4fd15 --- /dev/null +++ b/src/glean/api_client/models/updateannouncementop.py @@ -0,0 +1,49 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .updateannouncementrequest import ( + UpdateAnnouncementRequest, + UpdateAnnouncementRequestTypedDict, +) +from glean.api_client.types import BaseModel, UNSET_SENTINEL +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class UpdateannouncementRequestRequestTypedDict(TypedDict): + update_announcement_request: UpdateAnnouncementRequestTypedDict + r"""Announcement content. Id need to be specified for the announcement.""" + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + +class UpdateannouncementRequestRequest(BaseModel): + update_announcement_request: Annotated[ + UpdateAnnouncementRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] + r"""Announcement content. Id need to be specified for the announcement.""" + + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["locale"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/glean/api_client/models/updateshortcutop.py b/src/glean/api_client/models/updateshortcutop.py new file mode 100644 index 00000000..5b9d8daf --- /dev/null +++ b/src/glean/api_client/models/updateshortcutop.py @@ -0,0 +1,46 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .updateshortcutrequest import UpdateShortcutRequest, UpdateShortcutRequestTypedDict +from glean.api_client.types import BaseModel, UNSET_SENTINEL +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class UpdateshortcutRequestRequestTypedDict(TypedDict): + update_shortcut_request: UpdateShortcutRequestTypedDict + r"""Shortcut content. Id need to be specified for the shortcut.""" + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + +class UpdateshortcutRequestRequest(BaseModel): + update_shortcut_request: Annotated[ + UpdateShortcutRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] + r"""Shortcut content. Id need to be specified for the shortcut.""" + + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["locale"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/glean/api_client/models/uploadchatfilesop.py b/src/glean/api_client/models/uploadchatfilesop.py index 59b0c7d0..6d4bdd5f 100644 --- a/src/glean/api_client/models/uploadchatfilesop.py +++ b/src/glean/api_client/models/uploadchatfilesop.py @@ -15,6 +15,8 @@ class UploadchatfilesRequestRequestTypedDict(TypedDict): upload_chat_files_request: UploadChatFilesRequestTypedDict + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" timezone_offset: NotRequired[int] r"""The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC.""" @@ -25,6 +27,12 @@ class UploadchatfilesRequestRequest(BaseModel): FieldMetadata(request=RequestMetadata(media_type="multipart/form-data")), ] + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + timezone_offset: Annotated[ Optional[int], pydantic.Field(alias="timezoneOffset"), @@ -34,7 +42,7 @@ class UploadchatfilesRequestRequest(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = set(["timezoneOffset"]) + optional_fields = set(["locale", "timezoneOffset"]) serialized = handler(self) m = {} diff --git a/src/glean/api_client/models/verifyop.py b/src/glean/api_client/models/verifyop.py new file mode 100644 index 00000000..ba4ec069 --- /dev/null +++ b/src/glean/api_client/models/verifyop.py @@ -0,0 +1,46 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .verifyrequest import VerifyRequest, VerifyRequestTypedDict +from glean.api_client.types import BaseModel, UNSET_SENTINEL +from glean.api_client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class VerifyRequestRequestTypedDict(TypedDict): + verify_request: VerifyRequestTypedDict + r"""Details about the verification request.""" + locale: NotRequired[str] + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + +class VerifyRequestRequest(BaseModel): + verify_request: Annotated[ + VerifyRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] + r"""Details about the verification request.""" + + locale: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = None + r"""The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["locale"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/glean/api_client/pins.py b/src/glean/api_client/pins.py index 80d29702..340b40a5 100644 --- a/src/glean/api_client/pins.py +++ b/src/glean/api_client/pins.py @@ -3,16 +3,17 @@ from .basesdk import BaseSDK from glean.api_client import errors, models, utils from glean.api_client._hooks import HookContext -from glean.api_client.types import BaseModel, OptionalNullable, UNSET +from glean.api_client.types import OptionalNullable, UNSET from glean.api_client.utils import get_security_from_env from glean.api_client.utils.unmarshal_json_response import unmarshal_json_response -from typing import List, Mapping, Optional, Union, cast +from typing import List, Mapping, Optional, Union class Pins(BaseSDK): def update( self, *, + locale: Optional[str] = None, queries: Optional[List[str]] = None, audience_filters: Optional[ Union[List[models.FacetFilter], List[models.FacetFilterTypedDict]] @@ -27,6 +28,7 @@ def update( Update an existing user-generated pin. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param queries: The query strings for which the pinned result will show. :param audience_filters: Filters which restrict who should see the pinned document. Values are taken from the corresponding filters in people search. :param id: The opaque id of the pin to be edited. @@ -45,12 +47,15 @@ def update( else: base_url = self._get_url(base_url, url_variables) - request = models.EditPinRequest( - queries=queries, - audience_filters=utils.get_pydantic_model( - audience_filters, Optional[List[models.FacetFilter]] + request = models.EditpinRequestRequest( + locale=locale, + edit_pin_request=models.EditPinRequest( + queries=queries, + audience_filters=utils.get_pydantic_model( + audience_filters, Optional[List[models.FacetFilter]] + ), + id=id, ), - id=id, ) req = self._build_request( @@ -67,7 +72,7 @@ def update( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.EditPinRequest + request.edit_pin_request, False, False, "json", models.EditPinRequest ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -110,6 +115,7 @@ def update( async def update_async( self, *, + locale: Optional[str] = None, queries: Optional[List[str]] = None, audience_filters: Optional[ Union[List[models.FacetFilter], List[models.FacetFilterTypedDict]] @@ -124,6 +130,7 @@ async def update_async( Update an existing user-generated pin. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param queries: The query strings for which the pinned result will show. :param audience_filters: Filters which restrict who should see the pinned document. Values are taken from the corresponding filters in people search. :param id: The opaque id of the pin to be edited. @@ -142,12 +149,15 @@ async def update_async( else: base_url = self._get_url(base_url, url_variables) - request = models.EditPinRequest( - queries=queries, - audience_filters=utils.get_pydantic_model( - audience_filters, Optional[List[models.FacetFilter]] + request = models.EditpinRequestRequest( + locale=locale, + edit_pin_request=models.EditPinRequest( + queries=queries, + audience_filters=utils.get_pydantic_model( + audience_filters, Optional[List[models.FacetFilter]] + ), + id=id, ), - id=id, ) req = self._build_request_async( @@ -164,7 +174,7 @@ async def update_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.EditPinRequest + request.edit_pin_request, False, False, "json", models.EditPinRequest ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -207,6 +217,7 @@ async def update_async( def retrieve( self, *, + locale: Optional[str] = None, id: Optional[str] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -217,6 +228,7 @@ def retrieve( Read pin details given its ID. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param id: The opaque id of the pin to be fetched. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -233,8 +245,11 @@ def retrieve( else: base_url = self._get_url(base_url, url_variables) - request = models.GetPinRequest( - id=id, + request = models.GetpinRequestRequest( + locale=locale, + get_pin_request=models.GetPinRequest( + id=id, + ), ) req = self._build_request( @@ -251,7 +266,7 @@ def retrieve( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.GetPinRequest + request.get_pin_request, False, False, "json", models.GetPinRequest ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -294,6 +309,7 @@ def retrieve( async def retrieve_async( self, *, + locale: Optional[str] = None, id: Optional[str] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -304,6 +320,7 @@ async def retrieve_async( Read pin details given its ID. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param id: The opaque id of the pin to be fetched. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -320,8 +337,11 @@ async def retrieve_async( else: base_url = self._get_url(base_url, url_variables) - request = models.GetPinRequest( - id=id, + request = models.GetpinRequestRequest( + locale=locale, + get_pin_request=models.GetPinRequest( + id=id, + ), ) req = self._build_request_async( @@ -338,7 +358,7 @@ async def retrieve_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.GetPinRequest + request.get_pin_request, False, False, "json", models.GetPinRequest ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -381,7 +401,10 @@ async def retrieve_async( def list( self, *, - request: Union[models.ListpinsRequest, models.ListpinsRequestTypedDict], + request_body: Union[ + models.ListpinsRequestBody, models.ListpinsRequestBodyTypedDict + ], + locale: Optional[str] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -391,7 +414,8 @@ def list( Lists all pins. - :param request: The request object to send. + :param request_body: List pins request + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -407,9 +431,12 @@ def list( else: base_url = self._get_url(base_url, url_variables) - if not isinstance(request, BaseModel): - request = utils.unmarshal(request, models.ListpinsRequest) - request = cast(models.ListpinsRequest, request) + request = models.ListpinsRequest( + locale=locale, + request_body=utils.get_pydantic_model( + request_body, models.ListpinsRequestBody + ), + ) req = self._build_request( method="POST", @@ -425,7 +452,7 @@ def list( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.ListpinsRequest + request.request_body, False, False, "json", models.ListpinsRequestBody ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -468,7 +495,10 @@ def list( async def list_async( self, *, - request: Union[models.ListpinsRequest, models.ListpinsRequestTypedDict], + request_body: Union[ + models.ListpinsRequestBody, models.ListpinsRequestBodyTypedDict + ], + locale: Optional[str] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -478,7 +508,8 @@ async def list_async( Lists all pins. - :param request: The request object to send. + :param request_body: List pins request + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -494,9 +525,12 @@ async def list_async( else: base_url = self._get_url(base_url, url_variables) - if not isinstance(request, BaseModel): - request = utils.unmarshal(request, models.ListpinsRequest) - request = cast(models.ListpinsRequest, request) + request = models.ListpinsRequest( + locale=locale, + request_body=utils.get_pydantic_model( + request_body, models.ListpinsRequestBody + ), + ) req = self._build_request_async( method="POST", @@ -512,7 +546,7 @@ async def list_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.ListpinsRequest + request.request_body, False, False, "json", models.ListpinsRequestBody ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -555,6 +589,7 @@ async def list_async( def create( self, *, + locale: Optional[str] = None, queries: Optional[List[str]] = None, audience_filters: Optional[ Union[List[models.FacetFilter], List[models.FacetFilterTypedDict]] @@ -569,6 +604,7 @@ def create( Pin a document as a result for a given search query.Pin results that are known to be a good match. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param queries: The query strings for which the pinned result will show. :param audience_filters: Filters which restrict who should see the pinned document. Values are taken from the corresponding filters in people search. :param document_id: The document to be pinned. @@ -587,12 +623,15 @@ def create( else: base_url = self._get_url(base_url, url_variables) - request = models.PinRequest( - queries=queries, - audience_filters=utils.get_pydantic_model( - audience_filters, Optional[List[models.FacetFilter]] + request = models.PinRequestRequest( + locale=locale, + pin_request=models.PinRequest( + queries=queries, + audience_filters=utils.get_pydantic_model( + audience_filters, Optional[List[models.FacetFilter]] + ), + document_id=document_id, ), - document_id=document_id, ) req = self._build_request( @@ -609,7 +648,7 @@ def create( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.PinRequest + request.pin_request, False, False, "json", models.PinRequest ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -652,6 +691,7 @@ def create( async def create_async( self, *, + locale: Optional[str] = None, queries: Optional[List[str]] = None, audience_filters: Optional[ Union[List[models.FacetFilter], List[models.FacetFilterTypedDict]] @@ -666,6 +706,7 @@ async def create_async( Pin a document as a result for a given search query.Pin results that are known to be a good match. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param queries: The query strings for which the pinned result will show. :param audience_filters: Filters which restrict who should see the pinned document. Values are taken from the corresponding filters in people search. :param document_id: The document to be pinned. @@ -684,12 +725,15 @@ async def create_async( else: base_url = self._get_url(base_url, url_variables) - request = models.PinRequest( - queries=queries, - audience_filters=utils.get_pydantic_model( - audience_filters, Optional[List[models.FacetFilter]] + request = models.PinRequestRequest( + locale=locale, + pin_request=models.PinRequest( + queries=queries, + audience_filters=utils.get_pydantic_model( + audience_filters, Optional[List[models.FacetFilter]] + ), + document_id=document_id, ), - document_id=document_id, ) req = self._build_request_async( @@ -706,7 +750,7 @@ async def create_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.PinRequest + request.pin_request, False, False, "json", models.PinRequest ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -749,6 +793,7 @@ async def create_async( def remove( self, *, + locale: Optional[str] = None, id: Optional[str] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -759,6 +804,7 @@ def remove( Unpin a previously pinned result. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param id: The opaque id of the pin to be unpinned. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -775,8 +821,11 @@ def remove( else: base_url = self._get_url(base_url, url_variables) - request = models.Unpin( - id=id, + request = models.UnpinRequest( + locale=locale, + unpin=models.Unpin( + id=id, + ), ) req = self._build_request( @@ -793,7 +842,7 @@ def remove( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.Unpin + request.unpin, False, False, "json", models.Unpin ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -836,6 +885,7 @@ def remove( async def remove_async( self, *, + locale: Optional[str] = None, id: Optional[str] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -846,6 +896,7 @@ async def remove_async( Unpin a previously pinned result. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param id: The opaque id of the pin to be unpinned. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -862,8 +913,11 @@ async def remove_async( else: base_url = self._get_url(base_url, url_variables) - request = models.Unpin( - id=id, + request = models.UnpinRequest( + locale=locale, + unpin=models.Unpin( + id=id, + ), ) req = self._build_request_async( @@ -880,7 +934,7 @@ async def remove_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.Unpin + request.unpin, False, False, "json", models.Unpin ), allow_empty_value=None, timeout_ms=timeout_ms, diff --git a/src/glean/api_client/search.py b/src/glean/api_client/search.py index 4ea44b0d..90d71a7b 100644 --- a/src/glean/api_client/search.py +++ b/src/glean/api_client/search.py @@ -15,6 +15,7 @@ def query_as_admin( self, *, query: str, + locale: Optional[str] = None, timestamp: Optional[datetime] = None, tracking_token: Optional[str] = None, session_info: Optional[ @@ -48,6 +49,7 @@ def query_as_admin( Retrieves results for search query without respect for permissions. This is available only to privileged users. :param query: The search terms. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param timestamp: The ISO 8601 timestamp associated with the client request. :param tracking_token: A previously received trackingToken for a search associated with the same query. Useful for more requests and requests for other tabs. :param session_info: @@ -75,28 +77,31 @@ def query_as_admin( else: base_url = self._get_url(base_url, url_variables) - request = models.SearchRequest( - timestamp=timestamp, - tracking_token=tracking_token, - session_info=utils.get_pydantic_model( - session_info, Optional[models.SessionInfo] - ), - source_document=utils.get_pydantic_model( - source_document, Optional[models.Document] - ), - page_size=page_size, - max_snippet_size=max_snippet_size, - query=query, - cursor=cursor, - result_tab_ids=result_tab_ids, - input_details=utils.get_pydantic_model( - input_details, Optional[models.SearchRequestInputDetails] - ), - request_options=utils.get_pydantic_model( - request_options, Optional[models.SearchRequestOptions] + request = models.AdminsearchRequest( + locale=locale, + search_request=models.SearchRequest( + timestamp=timestamp, + tracking_token=tracking_token, + session_info=utils.get_pydantic_model( + session_info, Optional[models.SessionInfo] + ), + source_document=utils.get_pydantic_model( + source_document, Optional[models.Document] + ), + page_size=page_size, + max_snippet_size=max_snippet_size, + query=query, + cursor=cursor, + result_tab_ids=result_tab_ids, + input_details=utils.get_pydantic_model( + input_details, Optional[models.SearchRequestInputDetails] + ), + request_options=utils.get_pydantic_model( + request_options, Optional[models.SearchRequestOptions] + ), + timeout_millis=timeout_millis, + disable_spellcheck=disable_spellcheck, ), - timeout_millis=timeout_millis, - disable_spellcheck=disable_spellcheck, ) req = self._build_request( @@ -113,7 +118,7 @@ def query_as_admin( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.SearchRequest + request.search_request, False, False, "json", models.SearchRequest ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -161,6 +166,7 @@ async def query_as_admin_async( self, *, query: str, + locale: Optional[str] = None, timestamp: Optional[datetime] = None, tracking_token: Optional[str] = None, session_info: Optional[ @@ -194,6 +200,7 @@ async def query_as_admin_async( Retrieves results for search query without respect for permissions. This is available only to privileged users. :param query: The search terms. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param timestamp: The ISO 8601 timestamp associated with the client request. :param tracking_token: A previously received trackingToken for a search associated with the same query. Useful for more requests and requests for other tabs. :param session_info: @@ -221,28 +228,31 @@ async def query_as_admin_async( else: base_url = self._get_url(base_url, url_variables) - request = models.SearchRequest( - timestamp=timestamp, - tracking_token=tracking_token, - session_info=utils.get_pydantic_model( - session_info, Optional[models.SessionInfo] - ), - source_document=utils.get_pydantic_model( - source_document, Optional[models.Document] - ), - page_size=page_size, - max_snippet_size=max_snippet_size, - query=query, - cursor=cursor, - result_tab_ids=result_tab_ids, - input_details=utils.get_pydantic_model( - input_details, Optional[models.SearchRequestInputDetails] - ), - request_options=utils.get_pydantic_model( - request_options, Optional[models.SearchRequestOptions] + request = models.AdminsearchRequest( + locale=locale, + search_request=models.SearchRequest( + timestamp=timestamp, + tracking_token=tracking_token, + session_info=utils.get_pydantic_model( + session_info, Optional[models.SessionInfo] + ), + source_document=utils.get_pydantic_model( + source_document, Optional[models.Document] + ), + page_size=page_size, + max_snippet_size=max_snippet_size, + query=query, + cursor=cursor, + result_tab_ids=result_tab_ids, + input_details=utils.get_pydantic_model( + input_details, Optional[models.SearchRequestInputDetails] + ), + request_options=utils.get_pydantic_model( + request_options, Optional[models.SearchRequestOptions] + ), + timeout_millis=timeout_millis, + disable_spellcheck=disable_spellcheck, ), - timeout_millis=timeout_millis, - disable_spellcheck=disable_spellcheck, ) req = self._build_request_async( @@ -259,7 +269,7 @@ async def query_as_admin_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.SearchRequest + request.search_request, False, False, "json", models.SearchRequest ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -306,6 +316,7 @@ async def query_as_admin_async( def autocomplete( self, *, + locale: Optional[str] = None, tracking_token: Optional[str] = None, session_info: Optional[ Union[models.SessionInfo, models.SessionInfoTypedDict] @@ -327,6 +338,7 @@ def autocomplete( Retrieve query suggestions, operators and documents for the given partially typed query. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param tracking_token: :param session_info: :param query: Partially typed query. @@ -351,18 +363,21 @@ def autocomplete( else: base_url = self._get_url(base_url, url_variables) - request = models.AutocompleteRequest( - tracking_token=tracking_token, - session_info=utils.get_pydantic_model( - session_info, Optional[models.SessionInfo] - ), - query=query, - datasources_filter=datasources_filter, - datasource=datasource, - result_types=result_types, - result_size=result_size, - auth_tokens=utils.get_pydantic_model( - auth_tokens, Optional[List[models.AuthToken]] + request = models.AutocompleteRequestRequest( + locale=locale, + autocomplete_request=models.AutocompleteRequest( + tracking_token=tracking_token, + session_info=utils.get_pydantic_model( + session_info, Optional[models.SessionInfo] + ), + query=query, + datasources_filter=datasources_filter, + datasource=datasource, + result_types=result_types, + result_size=result_size, + auth_tokens=utils.get_pydantic_model( + auth_tokens, Optional[List[models.AuthToken]] + ), ), ) @@ -380,7 +395,11 @@ def autocomplete( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.AutocompleteRequest + request.autocomplete_request, + False, + False, + "json", + models.AutocompleteRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -423,6 +442,7 @@ def autocomplete( async def autocomplete_async( self, *, + locale: Optional[str] = None, tracking_token: Optional[str] = None, session_info: Optional[ Union[models.SessionInfo, models.SessionInfoTypedDict] @@ -444,6 +464,7 @@ async def autocomplete_async( Retrieve query suggestions, operators and documents for the given partially typed query. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param tracking_token: :param session_info: :param query: Partially typed query. @@ -468,18 +489,21 @@ async def autocomplete_async( else: base_url = self._get_url(base_url, url_variables) - request = models.AutocompleteRequest( - tracking_token=tracking_token, - session_info=utils.get_pydantic_model( - session_info, Optional[models.SessionInfo] - ), - query=query, - datasources_filter=datasources_filter, - datasource=datasource, - result_types=result_types, - result_size=result_size, - auth_tokens=utils.get_pydantic_model( - auth_tokens, Optional[List[models.AuthToken]] + request = models.AutocompleteRequestRequest( + locale=locale, + autocomplete_request=models.AutocompleteRequest( + tracking_token=tracking_token, + session_info=utils.get_pydantic_model( + session_info, Optional[models.SessionInfo] + ), + query=query, + datasources_filter=datasources_filter, + datasource=datasource, + result_types=result_types, + result_size=result_size, + auth_tokens=utils.get_pydantic_model( + auth_tokens, Optional[List[models.AuthToken]] + ), ), ) @@ -497,7 +521,11 @@ async def autocomplete_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.AutocompleteRequest + request.autocomplete_request, + False, + False, + "json", + models.AutocompleteRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -540,6 +568,7 @@ async def autocomplete_async( def retrieve_feed( self, *, + locale: Optional[str] = None, categories: Optional[List[models.FeedRequestCategory]] = None, request_options: Optional[ Union[models.FeedRequestOptions, models.FeedRequestOptionsTypedDict] @@ -557,6 +586,7 @@ def retrieve_feed( The personalized feed/home includes different types of contents including suggestions, recents, calendar events and many more. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param categories: Categories of content requested. An allowlist gives flexibility to request content separately or together. :param request_options: :param timeout_millis: Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer. @@ -576,14 +606,17 @@ def retrieve_feed( else: base_url = self._get_url(base_url, url_variables) - request = models.FeedRequest( - categories=categories, - request_options=utils.get_pydantic_model( - request_options, Optional[models.FeedRequestOptions] - ), - timeout_millis=timeout_millis, - session_info=utils.get_pydantic_model( - session_info, Optional[models.SessionInfo] + request = models.FeedRequestRequest( + locale=locale, + feed_request=models.FeedRequest( + categories=categories, + request_options=utils.get_pydantic_model( + request_options, Optional[models.FeedRequestOptions] + ), + timeout_millis=timeout_millis, + session_info=utils.get_pydantic_model( + session_info, Optional[models.SessionInfo] + ), ), ) @@ -601,7 +634,7 @@ def retrieve_feed( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.FeedRequest + request.feed_request, False, False, "json", models.FeedRequest ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -644,6 +677,7 @@ def retrieve_feed( async def retrieve_feed_async( self, *, + locale: Optional[str] = None, categories: Optional[List[models.FeedRequestCategory]] = None, request_options: Optional[ Union[models.FeedRequestOptions, models.FeedRequestOptionsTypedDict] @@ -661,6 +695,7 @@ async def retrieve_feed_async( The personalized feed/home includes different types of contents including suggestions, recents, calendar events and many more. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param categories: Categories of content requested. An allowlist gives flexibility to request content separately or together. :param request_options: :param timeout_millis: Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer. @@ -680,14 +715,17 @@ async def retrieve_feed_async( else: base_url = self._get_url(base_url, url_variables) - request = models.FeedRequest( - categories=categories, - request_options=utils.get_pydantic_model( - request_options, Optional[models.FeedRequestOptions] - ), - timeout_millis=timeout_millis, - session_info=utils.get_pydantic_model( - session_info, Optional[models.SessionInfo] + request = models.FeedRequestRequest( + locale=locale, + feed_request=models.FeedRequest( + categories=categories, + request_options=utils.get_pydantic_model( + request_options, Optional[models.FeedRequestOptions] + ), + timeout_millis=timeout_millis, + session_info=utils.get_pydantic_model( + session_info, Optional[models.SessionInfo] + ), ), ) @@ -705,7 +743,7 @@ async def retrieve_feed_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.FeedRequest + request.feed_request, False, False, "json", models.FeedRequest ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -748,6 +786,7 @@ async def retrieve_feed_async( def recommendations( self, *, + locale: Optional[str] = None, timestamp: Optional[datetime] = None, tracking_token: Optional[str] = None, session_info: Optional[ @@ -776,6 +815,7 @@ def recommendations( Retrieve recommended documents for the given URL or Glean Document ID. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param timestamp: The ISO 8601 timestamp associated with the client request. :param tracking_token: A previously received trackingToken for a search associated with the same query. Useful for more requests and requests for other tabs. :param session_info: @@ -799,22 +839,25 @@ def recommendations( else: base_url = self._get_url(base_url, url_variables) - request = models.RecommendationsRequest( - timestamp=timestamp, - tracking_token=tracking_token, - session_info=utils.get_pydantic_model( - session_info, Optional[models.SessionInfo] - ), - source_document=utils.get_pydantic_model( - source_document, Optional[models.Document] - ), - page_size=page_size, - max_snippet_size=max_snippet_size, - recommendation_document_spec=utils.get_pydantic_model( - recommendation_document_spec, Optional[models.DocumentSpecUnion] - ), - request_options=utils.get_pydantic_model( - request_options, Optional[models.RecommendationsRequestOptions] + request = models.RecommendationsRequestRequest( + locale=locale, + recommendations_request=models.RecommendationsRequest( + timestamp=timestamp, + tracking_token=tracking_token, + session_info=utils.get_pydantic_model( + session_info, Optional[models.SessionInfo] + ), + source_document=utils.get_pydantic_model( + source_document, Optional[models.Document] + ), + page_size=page_size, + max_snippet_size=max_snippet_size, + recommendation_document_spec=utils.get_pydantic_model( + recommendation_document_spec, Optional[models.DocumentSpecUnion] + ), + request_options=utils.get_pydantic_model( + request_options, Optional[models.RecommendationsRequestOptions] + ), ), ) @@ -832,7 +875,11 @@ def recommendations( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.RecommendationsRequest + request.recommendations_request, + False, + False, + "json", + models.RecommendationsRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -877,6 +924,7 @@ def recommendations( async def recommendations_async( self, *, + locale: Optional[str] = None, timestamp: Optional[datetime] = None, tracking_token: Optional[str] = None, session_info: Optional[ @@ -905,6 +953,7 @@ async def recommendations_async( Retrieve recommended documents for the given URL or Glean Document ID. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param timestamp: The ISO 8601 timestamp associated with the client request. :param tracking_token: A previously received trackingToken for a search associated with the same query. Useful for more requests and requests for other tabs. :param session_info: @@ -928,22 +977,25 @@ async def recommendations_async( else: base_url = self._get_url(base_url, url_variables) - request = models.RecommendationsRequest( - timestamp=timestamp, - tracking_token=tracking_token, - session_info=utils.get_pydantic_model( - session_info, Optional[models.SessionInfo] - ), - source_document=utils.get_pydantic_model( - source_document, Optional[models.Document] - ), - page_size=page_size, - max_snippet_size=max_snippet_size, - recommendation_document_spec=utils.get_pydantic_model( - recommendation_document_spec, Optional[models.DocumentSpecUnion] - ), - request_options=utils.get_pydantic_model( - request_options, Optional[models.RecommendationsRequestOptions] + request = models.RecommendationsRequestRequest( + locale=locale, + recommendations_request=models.RecommendationsRequest( + timestamp=timestamp, + tracking_token=tracking_token, + session_info=utils.get_pydantic_model( + session_info, Optional[models.SessionInfo] + ), + source_document=utils.get_pydantic_model( + source_document, Optional[models.Document] + ), + page_size=page_size, + max_snippet_size=max_snippet_size, + recommendation_document_spec=utils.get_pydantic_model( + recommendation_document_spec, Optional[models.DocumentSpecUnion] + ), + request_options=utils.get_pydantic_model( + request_options, Optional[models.RecommendationsRequestOptions] + ), ), ) @@ -961,7 +1013,11 @@ async def recommendations_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.RecommendationsRequest + request.recommendations_request, + False, + False, + "json", + models.RecommendationsRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -1007,6 +1063,7 @@ def query( self, *, query: str, + locale: Optional[str] = None, timestamp: Optional[datetime] = None, tracking_token: Optional[str] = None, session_info: Optional[ @@ -1040,6 +1097,7 @@ def query( Retrieve results from the index for the given query and filters. :param query: The search terms. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param timestamp: The ISO 8601 timestamp associated with the client request. :param tracking_token: A previously received trackingToken for a search associated with the same query. Useful for more requests and requests for other tabs. :param session_info: @@ -1067,28 +1125,31 @@ def query( else: base_url = self._get_url(base_url, url_variables) - request = models.SearchRequest( - timestamp=timestamp, - tracking_token=tracking_token, - session_info=utils.get_pydantic_model( - session_info, Optional[models.SessionInfo] - ), - source_document=utils.get_pydantic_model( - source_document, Optional[models.Document] - ), - page_size=page_size, - max_snippet_size=max_snippet_size, - query=query, - cursor=cursor, - result_tab_ids=result_tab_ids, - input_details=utils.get_pydantic_model( - input_details, Optional[models.SearchRequestInputDetails] - ), - request_options=utils.get_pydantic_model( - request_options, Optional[models.SearchRequestOptions] + request = models.SearchRequestRequest( + locale=locale, + search_request=models.SearchRequest( + timestamp=timestamp, + tracking_token=tracking_token, + session_info=utils.get_pydantic_model( + session_info, Optional[models.SessionInfo] + ), + source_document=utils.get_pydantic_model( + source_document, Optional[models.Document] + ), + page_size=page_size, + max_snippet_size=max_snippet_size, + query=query, + cursor=cursor, + result_tab_ids=result_tab_ids, + input_details=utils.get_pydantic_model( + input_details, Optional[models.SearchRequestInputDetails] + ), + request_options=utils.get_pydantic_model( + request_options, Optional[models.SearchRequestOptions] + ), + timeout_millis=timeout_millis, + disable_spellcheck=disable_spellcheck, ), - timeout_millis=timeout_millis, - disable_spellcheck=disable_spellcheck, ) req = self._build_request( @@ -1105,7 +1166,7 @@ def query( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.SearchRequest + request.search_request, False, False, "json", models.SearchRequest ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -1153,6 +1214,7 @@ async def query_async( self, *, query: str, + locale: Optional[str] = None, timestamp: Optional[datetime] = None, tracking_token: Optional[str] = None, session_info: Optional[ @@ -1186,6 +1248,7 @@ async def query_async( Retrieve results from the index for the given query and filters. :param query: The search terms. + :param locale: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. :param timestamp: The ISO 8601 timestamp associated with the client request. :param tracking_token: A previously received trackingToken for a search associated with the same query. Useful for more requests and requests for other tabs. :param session_info: @@ -1213,28 +1276,31 @@ async def query_async( else: base_url = self._get_url(base_url, url_variables) - request = models.SearchRequest( - timestamp=timestamp, - tracking_token=tracking_token, - session_info=utils.get_pydantic_model( - session_info, Optional[models.SessionInfo] - ), - source_document=utils.get_pydantic_model( - source_document, Optional[models.Document] - ), - page_size=page_size, - max_snippet_size=max_snippet_size, - query=query, - cursor=cursor, - result_tab_ids=result_tab_ids, - input_details=utils.get_pydantic_model( - input_details, Optional[models.SearchRequestInputDetails] - ), - request_options=utils.get_pydantic_model( - request_options, Optional[models.SearchRequestOptions] + request = models.SearchRequestRequest( + locale=locale, + search_request=models.SearchRequest( + timestamp=timestamp, + tracking_token=tracking_token, + session_info=utils.get_pydantic_model( + session_info, Optional[models.SessionInfo] + ), + source_document=utils.get_pydantic_model( + source_document, Optional[models.Document] + ), + page_size=page_size, + max_snippet_size=max_snippet_size, + query=query, + cursor=cursor, + result_tab_ids=result_tab_ids, + input_details=utils.get_pydantic_model( + input_details, Optional[models.SearchRequestInputDetails] + ), + request_options=utils.get_pydantic_model( + request_options, Optional[models.SearchRequestOptions] + ), + timeout_millis=timeout_millis, + disable_spellcheck=disable_spellcheck, ), - timeout_millis=timeout_millis, - disable_spellcheck=disable_spellcheck, ) req = self._build_request_async( @@ -1251,7 +1317,7 @@ async def query_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.SearchRequest + request.search_request, False, False, "json", models.SearchRequest ), allow_empty_value=None, timeout_ms=timeout_ms, diff --git a/tests/mockserver/internal/sdk/models/components/gleandataerror.go b/tests/mockserver/internal/sdk/models/components/gleandataerror.go index 12eecd2e..d549ead5 100644 --- a/tests/mockserver/internal/sdk/models/components/gleandataerror.go +++ b/tests/mockserver/internal/sdk/models/components/gleandataerror.go @@ -10,6 +10,8 @@ type GleanDataError struct { // Indicates results could not be fetched due to invalid operators in the query. InvalidOperators []InvalidOperatorValueError `json:"invalidOperators,omitempty"` ErrorMessages []ErrorMessage `json:"errorMessages,omitempty"` + // Indicates the federated search results could not be fetched due to rate limiting. + FederatedSearchRateLimitError *bool `json:"federatedSearchRateLimitError,omitempty"` } func (o *GleanDataError) GetBadGmailToken() *bool { @@ -39,3 +41,10 @@ func (o *GleanDataError) GetErrorMessages() []ErrorMessage { } return o.ErrorMessages } + +func (o *GleanDataError) GetFederatedSearchRateLimitError() *bool { + if o == nil { + return nil + } + return o.FederatedSearchRateLimitError +} diff --git a/tests/mockserver/internal/sdk/models/components/inputoptions.go b/tests/mockserver/internal/sdk/models/components/inputoptions.go index a39771cd..e68d3d1b 100644 --- a/tests/mockserver/internal/sdk/models/components/inputoptions.go +++ b/tests/mockserver/internal/sdk/models/components/inputoptions.go @@ -87,6 +87,8 @@ type InputOptions struct { // Type of time period for which to run the report/policy. PAST_DAY is deprecated. TimePeriodType *InputOptionsTimePeriodType `json:"timePeriodType,omitempty"` CustomTimeRange *TimeRange `json:"customTimeRange,omitempty"` + // Subset of document IDs to scan. If empty, all documents matching other scope criteria will be scanned. + SubsetDocIdsToScan []string `json:"subsetDocIdsToScan,omitempty"` } func (o *InputOptions) GetURLGreenlist() []string { @@ -130,3 +132,10 @@ func (o *InputOptions) GetCustomTimeRange() *TimeRange { } return o.CustomTimeRange } + +func (o *InputOptions) GetSubsetDocIdsToScan() []string { + if o == nil { + return nil + } + return o.SubsetDocIdsToScan +} diff --git a/tests/mockserver/internal/sdk/models/components/ugctype.go b/tests/mockserver/internal/sdk/models/components/ugctype.go index e1cdc164..15fddb30 100644 --- a/tests/mockserver/internal/sdk/models/components/ugctype.go +++ b/tests/mockserver/internal/sdk/models/components/ugctype.go @@ -16,6 +16,7 @@ const ( UgcTypeShortcutsType UgcType = "SHORTCUTS_TYPE" UgcTypeWorkflowsType UgcType = "WORKFLOWS_TYPE" UgcTypePromptTemplatesType UgcType = "PROMPT_TEMPLATES_TYPE" + UgcTypePrismViewsType UgcType = "PRISM_VIEWS_TYPE" ) func (e UgcType) ToPointer() *UgcType { @@ -38,6 +39,8 @@ func (e *UgcType) UnmarshalJSON(data []byte) error { case "WORKFLOWS_TYPE": fallthrough case "PROMPT_TEMPLATES_TYPE": + fallthrough + case "PRISM_VIEWS_TYPE": *e = UgcType(v) return nil default: diff --git a/tests/mockserver/internal/sdk/models/operations/addcollectionitems.go b/tests/mockserver/internal/sdk/models/operations/addcollectionitems.go index fd74638a..5402c0c3 100644 --- a/tests/mockserver/internal/sdk/models/operations/addcollectionitems.go +++ b/tests/mockserver/internal/sdk/models/operations/addcollectionitems.go @@ -6,6 +6,27 @@ import ( "mockserver/internal/sdk/models/components" ) +type AddcollectionitemsRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` + // Data describing the add operation. + Body components.AddCollectionItemsRequest `request:"mediaType=application/json"` +} + +func (o *AddcollectionitemsRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + +func (o *AddcollectionitemsRequest) GetBody() components.AddCollectionItemsRequest { + if o == nil { + return components.AddCollectionItemsRequest{} + } + return o.Body +} + type AddcollectionitemsResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/tests/mockserver/internal/sdk/models/operations/addverificationreminder.go b/tests/mockserver/internal/sdk/models/operations/addverificationreminder.go index fb8ab5ad..5ac1bc76 100644 --- a/tests/mockserver/internal/sdk/models/operations/addverificationreminder.go +++ b/tests/mockserver/internal/sdk/models/operations/addverificationreminder.go @@ -6,6 +6,27 @@ import ( "mockserver/internal/sdk/models/components" ) +type AddverificationreminderRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` + // Details about the reminder. + Body components.ReminderRequest `request:"mediaType=application/json"` +} + +func (o *AddverificationreminderRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + +func (o *AddverificationreminderRequest) GetBody() components.ReminderRequest { + if o == nil { + return components.ReminderRequest{} + } + return o.Body +} + type AddverificationreminderResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/tests/mockserver/internal/sdk/models/operations/adminsearch.go b/tests/mockserver/internal/sdk/models/operations/adminsearch.go index 3a9fc431..d3bcae61 100644 --- a/tests/mockserver/internal/sdk/models/operations/adminsearch.go +++ b/tests/mockserver/internal/sdk/models/operations/adminsearch.go @@ -6,6 +6,27 @@ import ( "mockserver/internal/sdk/models/components" ) +type AdminsearchRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` + // Admin search request + Body components.SearchRequest `request:"mediaType=application/json"` +} + +func (o *AdminsearchRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + +func (o *AdminsearchRequest) GetBody() components.SearchRequest { + if o == nil { + return components.SearchRequest{} + } + return o.Body +} + type AdminsearchResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/tests/mockserver/internal/sdk/models/operations/autocomplete.go b/tests/mockserver/internal/sdk/models/operations/autocomplete.go index 106f5474..e056f244 100644 --- a/tests/mockserver/internal/sdk/models/operations/autocomplete.go +++ b/tests/mockserver/internal/sdk/models/operations/autocomplete.go @@ -6,6 +6,27 @@ import ( "mockserver/internal/sdk/models/components" ) +type AutocompleteRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` + // Autocomplete request + Body components.AutocompleteRequest `request:"mediaType=application/json"` +} + +func (o *AutocompleteRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + +func (o *AutocompleteRequest) GetBody() components.AutocompleteRequest { + if o == nil { + return components.AutocompleteRequest{} + } + return o.Body +} + type AutocompleteResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/tests/mockserver/internal/sdk/models/operations/chat.go b/tests/mockserver/internal/sdk/models/operations/chat.go index e8c31b57..571a9b9d 100644 --- a/tests/mockserver/internal/sdk/models/operations/chat.go +++ b/tests/mockserver/internal/sdk/models/operations/chat.go @@ -7,12 +7,21 @@ import ( ) type ChatRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` // The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. TimezoneOffset *int64 `queryParam:"style=form,explode=true,name=timezoneOffset"` // Includes chat history for Glean AI to respond to. Body components.ChatRequest `request:"mediaType=application/json"` } +func (o *ChatRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + func (o *ChatRequest) GetTimezoneOffset() *int64 { if o == nil { return nil diff --git a/tests/mockserver/internal/sdk/models/operations/createannouncement.go b/tests/mockserver/internal/sdk/models/operations/createannouncement.go index 86d9ba17..420e51a0 100644 --- a/tests/mockserver/internal/sdk/models/operations/createannouncement.go +++ b/tests/mockserver/internal/sdk/models/operations/createannouncement.go @@ -6,6 +6,27 @@ import ( "mockserver/internal/sdk/models/components" ) +type CreateannouncementRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` + // Announcement content + Body components.CreateAnnouncementRequest `request:"mediaType=application/json"` +} + +func (o *CreateannouncementRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + +func (o *CreateannouncementRequest) GetBody() components.CreateAnnouncementRequest { + if o == nil { + return components.CreateAnnouncementRequest{} + } + return o.Body +} + type CreateannouncementResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/tests/mockserver/internal/sdk/models/operations/createanswer.go b/tests/mockserver/internal/sdk/models/operations/createanswer.go index 8abc5c94..6ae4843d 100644 --- a/tests/mockserver/internal/sdk/models/operations/createanswer.go +++ b/tests/mockserver/internal/sdk/models/operations/createanswer.go @@ -6,6 +6,27 @@ import ( "mockserver/internal/sdk/models/components" ) +type CreateanswerRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` + // CreateAnswer request + Body components.CreateAnswerRequest `request:"mediaType=application/json"` +} + +func (o *CreateanswerRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + +func (o *CreateanswerRequest) GetBody() components.CreateAnswerRequest { + if o == nil { + return components.CreateAnswerRequest{} + } + return o.Body +} + type CreateanswerResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/tests/mockserver/internal/sdk/models/operations/createcollection.go b/tests/mockserver/internal/sdk/models/operations/createcollection.go index 04eaedbc..3b62bee2 100644 --- a/tests/mockserver/internal/sdk/models/operations/createcollection.go +++ b/tests/mockserver/internal/sdk/models/operations/createcollection.go @@ -9,6 +9,27 @@ import ( "mockserver/internal/sdk/utils" ) +type CreatecollectionRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` + // Collection content plus any additional metadata for the request. + Body components.CreateCollectionRequest `request:"mediaType=application/json"` +} + +func (o *CreatecollectionRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + +func (o *CreatecollectionRequest) GetBody() components.CreateCollectionRequest { + if o == nil { + return components.CreateCollectionRequest{} + } + return o.Body +} + type ResponseBody2 struct { Collection *components.Collection `json:"collection,omitempty"` Error components.CollectionError `json:"error"` diff --git a/tests/mockserver/internal/sdk/models/operations/createshortcut.go b/tests/mockserver/internal/sdk/models/operations/createshortcut.go index b17cc638..4dead6af 100644 --- a/tests/mockserver/internal/sdk/models/operations/createshortcut.go +++ b/tests/mockserver/internal/sdk/models/operations/createshortcut.go @@ -6,6 +6,27 @@ import ( "mockserver/internal/sdk/models/components" ) +type CreateshortcutRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` + // CreateShortcut request + Body components.CreateShortcutRequest `request:"mediaType=application/json"` +} + +func (o *CreateshortcutRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + +func (o *CreateshortcutRequest) GetBody() components.CreateShortcutRequest { + if o == nil { + return components.CreateShortcutRequest{} + } + return o.Body +} + type CreateshortcutResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/tests/mockserver/internal/sdk/models/operations/deleteallchats.go b/tests/mockserver/internal/sdk/models/operations/deleteallchats.go index d28cebb1..9a61eac0 100644 --- a/tests/mockserver/internal/sdk/models/operations/deleteallchats.go +++ b/tests/mockserver/internal/sdk/models/operations/deleteallchats.go @@ -7,10 +7,19 @@ import ( ) type DeleteallchatsRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` // The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. TimezoneOffset *int64 `queryParam:"style=form,explode=true,name=timezoneOffset"` } +func (o *DeleteallchatsRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + func (o *DeleteallchatsRequest) GetTimezoneOffset() *int64 { if o == nil { return nil diff --git a/tests/mockserver/internal/sdk/models/operations/deleteannouncement.go b/tests/mockserver/internal/sdk/models/operations/deleteannouncement.go index 774b4d1f..6df70f30 100644 --- a/tests/mockserver/internal/sdk/models/operations/deleteannouncement.go +++ b/tests/mockserver/internal/sdk/models/operations/deleteannouncement.go @@ -6,6 +6,27 @@ import ( "mockserver/internal/sdk/models/components" ) +type DeleteannouncementRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` + // Delete announcement request + Body components.DeleteAnnouncementRequest `request:"mediaType=application/json"` +} + +func (o *DeleteannouncementRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + +func (o *DeleteannouncementRequest) GetBody() components.DeleteAnnouncementRequest { + if o == nil { + return components.DeleteAnnouncementRequest{} + } + return o.Body +} + type DeleteannouncementResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` } diff --git a/tests/mockserver/internal/sdk/models/operations/deleteanswer.go b/tests/mockserver/internal/sdk/models/operations/deleteanswer.go index 46b181b2..c30ae2bb 100644 --- a/tests/mockserver/internal/sdk/models/operations/deleteanswer.go +++ b/tests/mockserver/internal/sdk/models/operations/deleteanswer.go @@ -6,6 +6,27 @@ import ( "mockserver/internal/sdk/models/components" ) +type DeleteanswerRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` + // DeleteAnswer request + Body components.DeleteAnswerRequest `request:"mediaType=application/json"` +} + +func (o *DeleteanswerRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + +func (o *DeleteanswerRequest) GetBody() components.DeleteAnswerRequest { + if o == nil { + return components.DeleteAnswerRequest{} + } + return o.Body +} + type DeleteanswerResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` } diff --git a/tests/mockserver/internal/sdk/models/operations/deletechatfiles.go b/tests/mockserver/internal/sdk/models/operations/deletechatfiles.go index 8d41828e..132474f4 100644 --- a/tests/mockserver/internal/sdk/models/operations/deletechatfiles.go +++ b/tests/mockserver/internal/sdk/models/operations/deletechatfiles.go @@ -7,11 +7,20 @@ import ( ) type DeletechatfilesRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` // The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. TimezoneOffset *int64 `queryParam:"style=form,explode=true,name=timezoneOffset"` Body components.DeleteChatFilesRequest `request:"mediaType=application/json"` } +func (o *DeletechatfilesRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + func (o *DeletechatfilesRequest) GetTimezoneOffset() *int64 { if o == nil { return nil diff --git a/tests/mockserver/internal/sdk/models/operations/deletechats.go b/tests/mockserver/internal/sdk/models/operations/deletechats.go index 14372eaa..558b4262 100644 --- a/tests/mockserver/internal/sdk/models/operations/deletechats.go +++ b/tests/mockserver/internal/sdk/models/operations/deletechats.go @@ -7,11 +7,20 @@ import ( ) type DeletechatsRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` // The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. TimezoneOffset *int64 `queryParam:"style=form,explode=true,name=timezoneOffset"` Body components.DeleteChatsRequest `request:"mediaType=application/json"` } +func (o *DeletechatsRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + func (o *DeletechatsRequest) GetTimezoneOffset() *int64 { if o == nil { return nil diff --git a/tests/mockserver/internal/sdk/models/operations/deletecollection.go b/tests/mockserver/internal/sdk/models/operations/deletecollection.go index b21f01fa..29f0e83d 100644 --- a/tests/mockserver/internal/sdk/models/operations/deletecollection.go +++ b/tests/mockserver/internal/sdk/models/operations/deletecollection.go @@ -6,6 +6,27 @@ import ( "mockserver/internal/sdk/models/components" ) +type DeletecollectionRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` + // DeleteCollection request + Body components.DeleteCollectionRequest `request:"mediaType=application/json"` +} + +func (o *DeletecollectionRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + +func (o *DeletecollectionRequest) GetBody() components.DeleteCollectionRequest { + if o == nil { + return components.DeleteCollectionRequest{} + } + return o.Body +} + type DeletecollectionResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` } diff --git a/tests/mockserver/internal/sdk/models/operations/deletecollectionitem.go b/tests/mockserver/internal/sdk/models/operations/deletecollectionitem.go index f9b6a404..ebc25f93 100644 --- a/tests/mockserver/internal/sdk/models/operations/deletecollectionitem.go +++ b/tests/mockserver/internal/sdk/models/operations/deletecollectionitem.go @@ -6,6 +6,27 @@ import ( "mockserver/internal/sdk/models/components" ) +type DeletecollectionitemRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` + // Data describing the delete operation. + Body components.DeleteCollectionItemRequest `request:"mediaType=application/json"` +} + +func (o *DeletecollectionitemRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + +func (o *DeletecollectionitemRequest) GetBody() components.DeleteCollectionItemRequest { + if o == nil { + return components.DeleteCollectionItemRequest{} + } + return o.Body +} + type DeletecollectionitemResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/tests/mockserver/internal/sdk/models/operations/deleteshortcut.go b/tests/mockserver/internal/sdk/models/operations/deleteshortcut.go index 03a740b6..887e2faf 100644 --- a/tests/mockserver/internal/sdk/models/operations/deleteshortcut.go +++ b/tests/mockserver/internal/sdk/models/operations/deleteshortcut.go @@ -6,6 +6,27 @@ import ( "mockserver/internal/sdk/models/components" ) +type DeleteshortcutRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` + // DeleteShortcut request + Body components.DeleteShortcutRequest `request:"mediaType=application/json"` +} + +func (o *DeleteshortcutRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + +func (o *DeleteshortcutRequest) GetBody() components.DeleteShortcutRequest { + if o == nil { + return components.DeleteShortcutRequest{} + } + return o.Body +} + type DeleteshortcutResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` } diff --git a/tests/mockserver/internal/sdk/models/operations/editanswer.go b/tests/mockserver/internal/sdk/models/operations/editanswer.go index 92a67c43..a012cd57 100644 --- a/tests/mockserver/internal/sdk/models/operations/editanswer.go +++ b/tests/mockserver/internal/sdk/models/operations/editanswer.go @@ -6,6 +6,27 @@ import ( "mockserver/internal/sdk/models/components" ) +type EditanswerRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` + // EditAnswer request + Body components.EditAnswerRequest `request:"mediaType=application/json"` +} + +func (o *EditanswerRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + +func (o *EditanswerRequest) GetBody() components.EditAnswerRequest { + if o == nil { + return components.EditAnswerRequest{} + } + return o.Body +} + type EditanswerResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/tests/mockserver/internal/sdk/models/operations/editcollection.go b/tests/mockserver/internal/sdk/models/operations/editcollection.go index 6b17b377..1009daa1 100644 --- a/tests/mockserver/internal/sdk/models/operations/editcollection.go +++ b/tests/mockserver/internal/sdk/models/operations/editcollection.go @@ -6,6 +6,27 @@ import ( "mockserver/internal/sdk/models/components" ) +type EditcollectionRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` + // Collection content plus any additional metadata for the request. + Body components.EditCollectionRequest `request:"mediaType=application/json"` +} + +func (o *EditcollectionRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + +func (o *EditcollectionRequest) GetBody() components.EditCollectionRequest { + if o == nil { + return components.EditCollectionRequest{} + } + return o.Body +} + type EditcollectionResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/tests/mockserver/internal/sdk/models/operations/editcollectionitem.go b/tests/mockserver/internal/sdk/models/operations/editcollectionitem.go index 8ac9f5a9..520900db 100644 --- a/tests/mockserver/internal/sdk/models/operations/editcollectionitem.go +++ b/tests/mockserver/internal/sdk/models/operations/editcollectionitem.go @@ -6,6 +6,27 @@ import ( "mockserver/internal/sdk/models/components" ) +type EditcollectionitemRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` + // Edit Collection Items request + Body components.EditCollectionItemRequest `request:"mediaType=application/json"` +} + +func (o *EditcollectionitemRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + +func (o *EditcollectionitemRequest) GetBody() components.EditCollectionItemRequest { + if o == nil { + return components.EditCollectionItemRequest{} + } + return o.Body +} + type EditcollectionitemResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/tests/mockserver/internal/sdk/models/operations/editpin.go b/tests/mockserver/internal/sdk/models/operations/editpin.go index 921ea93c..9105b336 100644 --- a/tests/mockserver/internal/sdk/models/operations/editpin.go +++ b/tests/mockserver/internal/sdk/models/operations/editpin.go @@ -6,6 +6,27 @@ import ( "mockserver/internal/sdk/models/components" ) +type EditpinRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` + // Edit pins request + Body components.EditPinRequest `request:"mediaType=application/json"` +} + +func (o *EditpinRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + +func (o *EditpinRequest) GetBody() components.EditPinRequest { + if o == nil { + return components.EditPinRequest{} + } + return o.Body +} + type EditpinResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/tests/mockserver/internal/sdk/models/operations/feed.go b/tests/mockserver/internal/sdk/models/operations/feed.go index 1d0cbfbf..8f7a3aa0 100644 --- a/tests/mockserver/internal/sdk/models/operations/feed.go +++ b/tests/mockserver/internal/sdk/models/operations/feed.go @@ -6,6 +6,27 @@ import ( "mockserver/internal/sdk/models/components" ) +type FeedRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` + // Includes request params, client data and more for making user's feed. + Body components.FeedRequest `request:"mediaType=application/json"` +} + +func (o *FeedRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + +func (o *FeedRequest) GetBody() components.FeedRequest { + if o == nil { + return components.FeedRequest{} + } + return o.Body +} + type FeedResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/tests/mockserver/internal/sdk/models/operations/getagent.go b/tests/mockserver/internal/sdk/models/operations/getagent.go index 471bb945..6e79ed8b 100644 --- a/tests/mockserver/internal/sdk/models/operations/getagent.go +++ b/tests/mockserver/internal/sdk/models/operations/getagent.go @@ -7,12 +7,21 @@ import ( ) type GetAgentRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` // The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. TimezoneOffset *int64 `queryParam:"style=form,explode=true,name=timezoneOffset"` // The ID of the agent. AgentID string `pathParam:"style=simple,explode=false,name=agent_id"` } +func (o *GetAgentRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + func (o *GetAgentRequest) GetTimezoneOffset() *int64 { if o == nil { return nil diff --git a/tests/mockserver/internal/sdk/models/operations/getagentschemas.go b/tests/mockserver/internal/sdk/models/operations/getagentschemas.go index b4aa8ea6..8b4bb0ad 100644 --- a/tests/mockserver/internal/sdk/models/operations/getagentschemas.go +++ b/tests/mockserver/internal/sdk/models/operations/getagentschemas.go @@ -7,12 +7,21 @@ import ( ) type GetAgentSchemasRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` // The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. TimezoneOffset *int64 `queryParam:"style=form,explode=true,name=timezoneOffset"` // The ID of the agent. AgentID string `pathParam:"style=simple,explode=false,name=agent_id"` } +func (o *GetAgentSchemasRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + func (o *GetAgentSchemasRequest) GetTimezoneOffset() *int64 { if o == nil { return nil diff --git a/tests/mockserver/internal/sdk/models/operations/getanswer.go b/tests/mockserver/internal/sdk/models/operations/getanswer.go index ce29ef9f..2f3d1ba5 100644 --- a/tests/mockserver/internal/sdk/models/operations/getanswer.go +++ b/tests/mockserver/internal/sdk/models/operations/getanswer.go @@ -6,6 +6,27 @@ import ( "mockserver/internal/sdk/models/components" ) +type GetanswerRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` + // GetAnswer request + Body components.GetAnswerRequest `request:"mediaType=application/json"` +} + +func (o *GetanswerRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + +func (o *GetanswerRequest) GetBody() components.GetAnswerRequest { + if o == nil { + return components.GetAnswerRequest{} + } + return o.Body +} + type GetanswerResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/tests/mockserver/internal/sdk/models/operations/getchat.go b/tests/mockserver/internal/sdk/models/operations/getchat.go index 0c696703..50686f34 100644 --- a/tests/mockserver/internal/sdk/models/operations/getchat.go +++ b/tests/mockserver/internal/sdk/models/operations/getchat.go @@ -7,11 +7,20 @@ import ( ) type GetchatRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` // The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. TimezoneOffset *int64 `queryParam:"style=form,explode=true,name=timezoneOffset"` Body components.GetChatRequest `request:"mediaType=application/json"` } +func (o *GetchatRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + func (o *GetchatRequest) GetTimezoneOffset() *int64 { if o == nil { return nil diff --git a/tests/mockserver/internal/sdk/models/operations/getchatapplication.go b/tests/mockserver/internal/sdk/models/operations/getchatapplication.go index 4d4ddb97..43b8a32f 100644 --- a/tests/mockserver/internal/sdk/models/operations/getchatapplication.go +++ b/tests/mockserver/internal/sdk/models/operations/getchatapplication.go @@ -7,11 +7,20 @@ import ( ) type GetchatapplicationRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` // The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. TimezoneOffset *int64 `queryParam:"style=form,explode=true,name=timezoneOffset"` Body components.GetChatApplicationRequest `request:"mediaType=application/json"` } +func (o *GetchatapplicationRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + func (o *GetchatapplicationRequest) GetTimezoneOffset() *int64 { if o == nil { return nil diff --git a/tests/mockserver/internal/sdk/models/operations/getchatfiles.go b/tests/mockserver/internal/sdk/models/operations/getchatfiles.go index 7ad91227..5ecbbe8d 100644 --- a/tests/mockserver/internal/sdk/models/operations/getchatfiles.go +++ b/tests/mockserver/internal/sdk/models/operations/getchatfiles.go @@ -7,11 +7,20 @@ import ( ) type GetchatfilesRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` // The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. TimezoneOffset *int64 `queryParam:"style=form,explode=true,name=timezoneOffset"` Body components.GetChatFilesRequest `request:"mediaType=application/json"` } +func (o *GetchatfilesRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + func (o *GetchatfilesRequest) GetTimezoneOffset() *int64 { if o == nil { return nil diff --git a/tests/mockserver/internal/sdk/models/operations/getcollection.go b/tests/mockserver/internal/sdk/models/operations/getcollection.go index 38e38763..6b70b3c9 100644 --- a/tests/mockserver/internal/sdk/models/operations/getcollection.go +++ b/tests/mockserver/internal/sdk/models/operations/getcollection.go @@ -6,6 +6,27 @@ import ( "mockserver/internal/sdk/models/components" ) +type GetcollectionRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` + // GetCollection request + Body components.GetCollectionRequest `request:"mediaType=application/json"` +} + +func (o *GetcollectionRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + +func (o *GetcollectionRequest) GetBody() components.GetCollectionRequest { + if o == nil { + return components.GetCollectionRequest{} + } + return o.Body +} + type GetcollectionResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/tests/mockserver/internal/sdk/models/operations/getdocpermissions.go b/tests/mockserver/internal/sdk/models/operations/getdocpermissions.go index a509a3a7..e615fcc1 100644 --- a/tests/mockserver/internal/sdk/models/operations/getdocpermissions.go +++ b/tests/mockserver/internal/sdk/models/operations/getdocpermissions.go @@ -6,6 +6,27 @@ import ( "mockserver/internal/sdk/models/components" ) +type GetdocpermissionsRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` + // Document permissions request + Body components.GetDocPermissionsRequest `request:"mediaType=application/json"` +} + +func (o *GetdocpermissionsRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + +func (o *GetdocpermissionsRequest) GetBody() components.GetDocPermissionsRequest { + if o == nil { + return components.GetDocPermissionsRequest{} + } + return o.Body +} + type GetdocpermissionsResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/tests/mockserver/internal/sdk/models/operations/getdocuments.go b/tests/mockserver/internal/sdk/models/operations/getdocuments.go index a2ef5c08..87367f5e 100644 --- a/tests/mockserver/internal/sdk/models/operations/getdocuments.go +++ b/tests/mockserver/internal/sdk/models/operations/getdocuments.go @@ -6,6 +6,27 @@ import ( "mockserver/internal/sdk/models/components" ) +type GetdocumentsRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` + // Information about documents requested. + Body *components.GetDocumentsRequest `request:"mediaType=application/json"` +} + +func (o *GetdocumentsRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + +func (o *GetdocumentsRequest) GetBody() *components.GetDocumentsRequest { + if o == nil { + return nil + } + return o.Body +} + type GetdocumentsResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/tests/mockserver/internal/sdk/models/operations/getdocumentsbyfacets.go b/tests/mockserver/internal/sdk/models/operations/getdocumentsbyfacets.go index 12629e29..4c3deeb2 100644 --- a/tests/mockserver/internal/sdk/models/operations/getdocumentsbyfacets.go +++ b/tests/mockserver/internal/sdk/models/operations/getdocumentsbyfacets.go @@ -6,6 +6,27 @@ import ( "mockserver/internal/sdk/models/components" ) +type GetdocumentsbyfacetsRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` + // Information about facet conditions for documents to be retrieved. + Body *components.GetDocumentsByFacetsRequest `request:"mediaType=application/json"` +} + +func (o *GetdocumentsbyfacetsRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + +func (o *GetdocumentsbyfacetsRequest) GetBody() *components.GetDocumentsByFacetsRequest { + if o == nil { + return nil + } + return o.Body +} + type GetdocumentsbyfacetsResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/tests/mockserver/internal/sdk/models/operations/getpin.go b/tests/mockserver/internal/sdk/models/operations/getpin.go index 9ccb680e..0292ece8 100644 --- a/tests/mockserver/internal/sdk/models/operations/getpin.go +++ b/tests/mockserver/internal/sdk/models/operations/getpin.go @@ -6,6 +6,27 @@ import ( "mockserver/internal/sdk/models/components" ) +type GetpinRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` + // Get pin request + Body components.GetPinRequest `request:"mediaType=application/json"` +} + +func (o *GetpinRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + +func (o *GetpinRequest) GetBody() components.GetPinRequest { + if o == nil { + return components.GetPinRequest{} + } + return o.Body +} + type GetpinResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/tests/mockserver/internal/sdk/models/operations/getshortcut.go b/tests/mockserver/internal/sdk/models/operations/getshortcut.go index 032c32c5..feebc437 100644 --- a/tests/mockserver/internal/sdk/models/operations/getshortcut.go +++ b/tests/mockserver/internal/sdk/models/operations/getshortcut.go @@ -6,6 +6,27 @@ import ( "mockserver/internal/sdk/models/components" ) +type GetshortcutRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` + // GetShortcut request + Body components.GetShortcutRequestUnion `request:"mediaType=application/json"` +} + +func (o *GetshortcutRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + +func (o *GetshortcutRequest) GetBody() components.GetShortcutRequestUnion { + if o == nil { + return components.GetShortcutRequestUnion{} + } + return o.Body +} + type GetshortcutResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/tests/mockserver/internal/sdk/models/operations/insights.go b/tests/mockserver/internal/sdk/models/operations/insights.go index 0f883502..e644932e 100644 --- a/tests/mockserver/internal/sdk/models/operations/insights.go +++ b/tests/mockserver/internal/sdk/models/operations/insights.go @@ -6,6 +6,27 @@ import ( "mockserver/internal/sdk/models/components" ) +type InsightsRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` + // Includes request parameters for insights requests. + Body components.InsightsRequest `request:"mediaType=application/json"` +} + +func (o *InsightsRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + +func (o *InsightsRequest) GetBody() components.InsightsRequest { + if o == nil { + return components.InsightsRequest{} + } + return o.Body +} + type InsightsResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/tests/mockserver/internal/sdk/models/operations/listanswers.go b/tests/mockserver/internal/sdk/models/operations/listanswers.go index 2229cf7f..f001b009 100644 --- a/tests/mockserver/internal/sdk/models/operations/listanswers.go +++ b/tests/mockserver/internal/sdk/models/operations/listanswers.go @@ -6,6 +6,27 @@ import ( "mockserver/internal/sdk/models/components" ) +type ListanswersRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` + // ListAnswers request + Body components.ListAnswersRequest `request:"mediaType=application/json"` +} + +func (o *ListanswersRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + +func (o *ListanswersRequest) GetBody() components.ListAnswersRequest { + if o == nil { + return components.ListAnswersRequest{} + } + return o.Body +} + type ListanswersResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/tests/mockserver/internal/sdk/models/operations/listchats.go b/tests/mockserver/internal/sdk/models/operations/listchats.go index 36a64f6c..404637d2 100644 --- a/tests/mockserver/internal/sdk/models/operations/listchats.go +++ b/tests/mockserver/internal/sdk/models/operations/listchats.go @@ -7,10 +7,19 @@ import ( ) type ListchatsRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` // The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. TimezoneOffset *int64 `queryParam:"style=form,explode=true,name=timezoneOffset"` } +func (o *ListchatsRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + func (o *ListchatsRequest) GetTimezoneOffset() *int64 { if o == nil { return nil diff --git a/tests/mockserver/internal/sdk/models/operations/listcollections.go b/tests/mockserver/internal/sdk/models/operations/listcollections.go index 9efddbd6..423a2c49 100644 --- a/tests/mockserver/internal/sdk/models/operations/listcollections.go +++ b/tests/mockserver/internal/sdk/models/operations/listcollections.go @@ -6,6 +6,27 @@ import ( "mockserver/internal/sdk/models/components" ) +type ListcollectionsRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` + // ListCollections request + Body components.ListCollectionsRequest `request:"mediaType=application/json"` +} + +func (o *ListcollectionsRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + +func (o *ListcollectionsRequest) GetBody() components.ListCollectionsRequest { + if o == nil { + return components.ListCollectionsRequest{} + } + return o.Body +} + type ListcollectionsResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/tests/mockserver/internal/sdk/models/operations/listentities.go b/tests/mockserver/internal/sdk/models/operations/listentities.go index d05441f9..ee93a302 100644 --- a/tests/mockserver/internal/sdk/models/operations/listentities.go +++ b/tests/mockserver/internal/sdk/models/operations/listentities.go @@ -6,6 +6,27 @@ import ( "mockserver/internal/sdk/models/components" ) +type ListentitiesRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` + // List people request + Body components.ListEntitiesRequest `request:"mediaType=application/json"` +} + +func (o *ListentitiesRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + +func (o *ListentitiesRequest) GetBody() components.ListEntitiesRequest { + if o == nil { + return components.ListEntitiesRequest{} + } + return o.Body +} + type ListentitiesResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/tests/mockserver/internal/sdk/models/operations/listpins.go b/tests/mockserver/internal/sdk/models/operations/listpins.go index 45c93a45..ea87433e 100644 --- a/tests/mockserver/internal/sdk/models/operations/listpins.go +++ b/tests/mockserver/internal/sdk/models/operations/listpins.go @@ -6,8 +6,29 @@ import ( "mockserver/internal/sdk/models/components" ) -// ListpinsRequest - List pins request +// ListpinsRequestBody - List pins request +type ListpinsRequestBody struct { +} + type ListpinsRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` + // List pins request + Body ListpinsRequestBody `request:"mediaType=application/json"` +} + +func (o *ListpinsRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + +func (o *ListpinsRequest) GetBody() ListpinsRequestBody { + if o == nil { + return ListpinsRequestBody{} + } + return o.Body } type ListpinsResponse struct { diff --git a/tests/mockserver/internal/sdk/models/operations/listshortcuts.go b/tests/mockserver/internal/sdk/models/operations/listshortcuts.go index a5b0962f..216616d5 100644 --- a/tests/mockserver/internal/sdk/models/operations/listshortcuts.go +++ b/tests/mockserver/internal/sdk/models/operations/listshortcuts.go @@ -6,6 +6,27 @@ import ( "mockserver/internal/sdk/models/components" ) +type ListshortcutsRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` + // Filters, sorters, paging params required for pagination + Body components.ListShortcutsPaginatedRequest `request:"mediaType=application/json"` +} + +func (o *ListshortcutsRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + +func (o *ListshortcutsRequest) GetBody() components.ListShortcutsPaginatedRequest { + if o == nil { + return components.ListShortcutsPaginatedRequest{} + } + return o.Body +} + type ListshortcutsResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/tests/mockserver/internal/sdk/models/operations/listverifications.go b/tests/mockserver/internal/sdk/models/operations/listverifications.go index 13015ee5..9ca1324d 100644 --- a/tests/mockserver/internal/sdk/models/operations/listverifications.go +++ b/tests/mockserver/internal/sdk/models/operations/listverifications.go @@ -9,6 +9,8 @@ import ( type ListverificationsRequest struct { // Maximum number of documents to return Count *int64 `queryParam:"style=form,explode=true,name=count"` + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` } func (o *ListverificationsRequest) GetCount() *int64 { @@ -18,6 +20,13 @@ func (o *ListverificationsRequest) GetCount() *int64 { return o.Count } +func (o *ListverificationsRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + type ListverificationsResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/tests/mockserver/internal/sdk/models/operations/messages.go b/tests/mockserver/internal/sdk/models/operations/messages.go index c33c0888..f978753b 100644 --- a/tests/mockserver/internal/sdk/models/operations/messages.go +++ b/tests/mockserver/internal/sdk/models/operations/messages.go @@ -6,6 +6,27 @@ import ( "mockserver/internal/sdk/models/components" ) +type MessagesRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` + // Includes request params such as the id for channel/message and direction. + Body components.MessagesRequest `request:"mediaType=application/json"` +} + +func (o *MessagesRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + +func (o *MessagesRequest) GetBody() components.MessagesRequest { + if o == nil { + return components.MessagesRequest{} + } + return o.Body +} + type MessagesResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/tests/mockserver/internal/sdk/models/operations/people.go b/tests/mockserver/internal/sdk/models/operations/people.go index fe1bf61d..bfd1b518 100644 --- a/tests/mockserver/internal/sdk/models/operations/people.go +++ b/tests/mockserver/internal/sdk/models/operations/people.go @@ -6,6 +6,27 @@ import ( "mockserver/internal/sdk/models/components" ) +type PeopleRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` + // People request + Body components.PeopleRequest `request:"mediaType=application/json"` +} + +func (o *PeopleRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + +func (o *PeopleRequest) GetBody() components.PeopleRequest { + if o == nil { + return components.PeopleRequest{} + } + return o.Body +} + type PeopleResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/tests/mockserver/internal/sdk/models/operations/pin.go b/tests/mockserver/internal/sdk/models/operations/pin.go index ba2d47e1..d6f74b3f 100644 --- a/tests/mockserver/internal/sdk/models/operations/pin.go +++ b/tests/mockserver/internal/sdk/models/operations/pin.go @@ -6,6 +6,27 @@ import ( "mockserver/internal/sdk/models/components" ) +type PinRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` + // Details about the document and query for the pin. + Body components.PinRequest `request:"mediaType=application/json"` +} + +func (o *PinRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + +func (o *PinRequest) GetBody() components.PinRequest { + if o == nil { + return components.PinRequest{} + } + return o.Body +} + type PinResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/tests/mockserver/internal/sdk/models/operations/recommendations.go b/tests/mockserver/internal/sdk/models/operations/recommendations.go index 9c74d480..1a7d11cd 100644 --- a/tests/mockserver/internal/sdk/models/operations/recommendations.go +++ b/tests/mockserver/internal/sdk/models/operations/recommendations.go @@ -6,6 +6,27 @@ import ( "mockserver/internal/sdk/models/components" ) +type RecommendationsRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` + // Recommendations request + Body components.RecommendationsRequest `request:"mediaType=application/json"` +} + +func (o *RecommendationsRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + +func (o *RecommendationsRequest) GetBody() components.RecommendationsRequest { + if o == nil { + return components.RecommendationsRequest{} + } + return o.Body +} + type RecommendationsResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/tests/mockserver/internal/sdk/models/operations/search.go b/tests/mockserver/internal/sdk/models/operations/search.go index 6b1d9873..7467c541 100644 --- a/tests/mockserver/internal/sdk/models/operations/search.go +++ b/tests/mockserver/internal/sdk/models/operations/search.go @@ -6,6 +6,27 @@ import ( "mockserver/internal/sdk/models/components" ) +type SearchRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` + // Search request + Body components.SearchRequest `request:"mediaType=application/json"` +} + +func (o *SearchRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + +func (o *SearchRequest) GetBody() components.SearchRequest { + if o == nil { + return components.SearchRequest{} + } + return o.Body +} + type SearchResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/tests/mockserver/internal/sdk/models/operations/summarize.go b/tests/mockserver/internal/sdk/models/operations/summarize.go index 90cc598d..9bd6a38a 100644 --- a/tests/mockserver/internal/sdk/models/operations/summarize.go +++ b/tests/mockserver/internal/sdk/models/operations/summarize.go @@ -6,6 +6,27 @@ import ( "mockserver/internal/sdk/models/components" ) +type SummarizeRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` + // Includes request params such as the query and specs of the documents to summarize. + Body components.SummarizeRequest `request:"mediaType=application/json"` +} + +func (o *SummarizeRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + +func (o *SummarizeRequest) GetBody() components.SummarizeRequest { + if o == nil { + return components.SummarizeRequest{} + } + return o.Body +} + type SummarizeResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/tests/mockserver/internal/sdk/models/operations/unpin.go b/tests/mockserver/internal/sdk/models/operations/unpin.go index 4bff2a3c..f6aeca75 100644 --- a/tests/mockserver/internal/sdk/models/operations/unpin.go +++ b/tests/mockserver/internal/sdk/models/operations/unpin.go @@ -6,6 +6,27 @@ import ( "mockserver/internal/sdk/models/components" ) +type UnpinRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` + // Details about the pin being unpinned. + Body components.Unpin `request:"mediaType=application/json"` +} + +func (o *UnpinRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + +func (o *UnpinRequest) GetBody() components.Unpin { + if o == nil { + return components.Unpin{} + } + return o.Body +} + type UnpinResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` } diff --git a/tests/mockserver/internal/sdk/models/operations/updateannouncement.go b/tests/mockserver/internal/sdk/models/operations/updateannouncement.go index 927436ef..4cc872ff 100644 --- a/tests/mockserver/internal/sdk/models/operations/updateannouncement.go +++ b/tests/mockserver/internal/sdk/models/operations/updateannouncement.go @@ -6,6 +6,27 @@ import ( "mockserver/internal/sdk/models/components" ) +type UpdateannouncementRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` + // Announcement content. Id need to be specified for the announcement. + Body components.UpdateAnnouncementRequest `request:"mediaType=application/json"` +} + +func (o *UpdateannouncementRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + +func (o *UpdateannouncementRequest) GetBody() components.UpdateAnnouncementRequest { + if o == nil { + return components.UpdateAnnouncementRequest{} + } + return o.Body +} + type UpdateannouncementResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/tests/mockserver/internal/sdk/models/operations/updateshortcut.go b/tests/mockserver/internal/sdk/models/operations/updateshortcut.go index ebfd6f72..f16ddd5e 100644 --- a/tests/mockserver/internal/sdk/models/operations/updateshortcut.go +++ b/tests/mockserver/internal/sdk/models/operations/updateshortcut.go @@ -6,6 +6,27 @@ import ( "mockserver/internal/sdk/models/components" ) +type UpdateshortcutRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` + // Shortcut content. Id need to be specified for the shortcut. + Body components.UpdateShortcutRequest `request:"mediaType=application/json"` +} + +func (o *UpdateshortcutRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + +func (o *UpdateshortcutRequest) GetBody() components.UpdateShortcutRequest { + if o == nil { + return components.UpdateShortcutRequest{} + } + return o.Body +} + type UpdateshortcutResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/tests/mockserver/internal/sdk/models/operations/uploadchatfiles.go b/tests/mockserver/internal/sdk/models/operations/uploadchatfiles.go index ec14b549..24142696 100644 --- a/tests/mockserver/internal/sdk/models/operations/uploadchatfiles.go +++ b/tests/mockserver/internal/sdk/models/operations/uploadchatfiles.go @@ -7,11 +7,20 @@ import ( ) type UploadchatfilesRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` // The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. TimezoneOffset *int64 `queryParam:"style=form,explode=true,name=timezoneOffset"` Body components.UploadChatFilesRequest `request:"mediaType=multipart/form-data"` } +func (o *UploadchatfilesRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + func (o *UploadchatfilesRequest) GetTimezoneOffset() *int64 { if o == nil { return nil diff --git a/tests/mockserver/internal/sdk/models/operations/verify.go b/tests/mockserver/internal/sdk/models/operations/verify.go index 1f2fc93e..502b190f 100644 --- a/tests/mockserver/internal/sdk/models/operations/verify.go +++ b/tests/mockserver/internal/sdk/models/operations/verify.go @@ -6,6 +6,27 @@ import ( "mockserver/internal/sdk/models/components" ) +type VerifyRequest struct { + // The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + Locale *string `queryParam:"style=form,explode=true,name=locale"` + // Details about the verification request. + Body components.VerifyRequest `request:"mediaType=application/json"` +} + +func (o *VerifyRequest) GetLocale() *string { + if o == nil { + return nil + } + return o.Locale +} + +func (o *VerifyRequest) GetBody() components.VerifyRequest { + if o == nil { + return components.VerifyRequest{} + } + return o.Body +} + type VerifyResponse struct { HTTPMeta components.HTTPMetadata `json:"-"` // OK diff --git a/tests/mockserver/internal/sdk/models/sdkerrors/gleandataerror.go b/tests/mockserver/internal/sdk/models/sdkerrors/gleandataerror.go index 5870c8ac..05af2574 100644 --- a/tests/mockserver/internal/sdk/models/sdkerrors/gleandataerror.go +++ b/tests/mockserver/internal/sdk/models/sdkerrors/gleandataerror.go @@ -15,7 +15,9 @@ type GleanDataError struct { // Indicates results could not be fetched due to invalid operators in the query. InvalidOperators []components.InvalidOperatorValueError `json:"invalidOperators,omitempty"` ErrorMessages []components.ErrorMessage `json:"errorMessages,omitempty"` - HTTPMeta components.HTTPMetadata `json:"-"` + // Indicates the federated search results could not be fetched due to rate limiting. + FederatedSearchRateLimitError *bool `json:"federatedSearchRateLimitError,omitempty"` + HTTPMeta components.HTTPMetadata `json:"-"` } var _ error = &GleanDataError{} diff --git a/tests/mockserver/internal/sdk/utils/json.go b/tests/mockserver/internal/sdk/utils/json.go index f7ecd042..84d12928 100644 --- a/tests/mockserver/internal/sdk/utils/json.go +++ b/tests/mockserver/internal/sdk/utils/json.go @@ -426,6 +426,9 @@ func handleDefaultConstValue(tagValue string, val interface{}, tag reflect.Struc return []byte(fmt.Sprintf(`"%s"`, tagValue)) default: if typ.Kind() == reflect.String { + if strings.HasPrefix(tagValue, "\"") && strings.HasSuffix(tagValue, "\"") { + return []byte(tagValue) + } return []byte(fmt.Sprintf("%q", tagValue)) } } diff --git a/tests/test_client_documents.py b/tests/test_client_documents.py index da0882b2..96ebd8a4 100644 --- a/tests/test_client_documents.py +++ b/tests/test_client_documents.py @@ -45,7 +45,7 @@ def test_client_documents_getdocumentsbyfacets(): assert glean is not None res = glean.client.documents.retrieve_by_facets( - request={ + get_documents_by_facets_request={ "filter_sets": [ { "filters": [ diff --git a/tests/test_client_shortcuts.py b/tests/test_client_shortcuts.py index 6530e65f..1b3a5a00 100644 --- a/tests/test_client_shortcuts.py +++ b/tests/test_client_shortcuts.py @@ -30,7 +30,7 @@ def test_client_shortcuts_getshortcut(): assert glean is not None res = glean.client.shortcuts.retrieve( - request={ + get_shortcut_request={ "alias": "", } ) diff --git a/tests/test_pins.py b/tests/test_pins.py index 6f6cb1cf..fae672bb 100644 --- a/tests/test_pins.py +++ b/tests/test_pins.py @@ -59,7 +59,7 @@ def test_pins_listpins(): ) as glean: assert glean is not None - res = glean.client.pins.list(request={}) + res = glean.client.pins.list(request_body={}) assert res is not None diff --git a/tests/test_summarize.py b/tests/test_summarize.py index 63b4eb85..4752dda1 100644 --- a/tests/test_summarize.py +++ b/tests/test_summarize.py @@ -1,6 +1,6 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -from glean.api_client import Glean +from glean.api_client import Glean, models import os from tests.test_client import create_test_http_client @@ -18,7 +18,8 @@ def test_summarize_summarize(): res = glean.client.documents.summarize( document_specs=[ { - "url": "https://dim-glider.com/", + "ugc_type": models.DocumentSpecUgcType1.SHORTCUTS, + "content_id": 544883, }, { "id": "",