diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 1b4f5481..ea88ebe7 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,26 +1,26 @@ lockVersion: 2.0.0 id: 3e3290ca-0ee8-4981-b1bc-14536048fa63 management: - docChecksum: 91d38b9d4b28ef9b1b98e10a0b5a7371 + docChecksum: ff92a330e7d904337377df34896b8348 docVersion: 0.9.0 - speakeasyVersion: 1.686.0 - generationVersion: 2.796.1 - releaseVersion: 0.11.27 - configChecksum: 37e1926f5925719f705610da6ba7d40e + speakeasyVersion: 1.704.0 + generationVersion: 2.806.4 + releaseVersion: 0.12.0 + configChecksum: f454677646cf29807a0eaa8b5523295a 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: 75788064-eb96-4023-8850-7e640931cb3d + pristine_commit_hash: bf1cc3faef576da211a2d8a1d20efff808a41037 + pristine_tree_hash: 47bde492478fd4cd4de14c19385ddaa5206b5806 features: python: additionalDependencies: 1.0.0 additionalProperties: 1.0.1 configurableModuleName: 0.2.0 - constsAndDefaults: 1.0.5 - core: 5.23.18 + constsAndDefaults: 1.0.6 + core: 6.0.2 defaultEnabledRetries: 0.2.0 deprecations: 3.0.2 devContainers: 3.0.0 @@ -38,10 +38,10 @@ features: mockServer: 0.1.1 multipartFileContentType: 1.0.0 nameOverrides: 3.0.1 - responseFormat: 1.0.1 + responseFormat: 1.1.0 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 @@ -131,8 +143,8 @@ trackedFiles: pristine_git_object: a1664d98b1a9d02c1b2aa5fc8ec85a9bcdfc89e8 docs/models/agentenum.md: id: 1209c0033b50 - last_write_checksum: sha1:3d1664930fb4babe2f691e13a7219ad4da573406 - pristine_git_object: b80a0fea061b82c998068e104db8348ad3ffaf13 + last_write_checksum: sha1:dee6147d8dec8665c584e1043096a012617d4917 + pristine_git_object: 2d52ff0296c170a67efa9e459d84ccbadfebc14c docs/models/agentexecutionstatus.md: id: 4087123e1461 last_write_checksum: sha1:bf35b6315cf3654117a529a944215bc366d133cd @@ -173,18 +185,6 @@ trackedFiles: id: d175e9ef2267 last_write_checksum: sha1:13186b89e562d1930304e5f822f47de768855397 pristine_git_object: 69acef4de938067397980887e41d16ff3df23529 - docs/models/aiappactioncounts.md: - id: ae019ddd2731 - last_write_checksum: sha1:c35ae442a452843b6eb87d743944a815d4a579b8 - pristine_git_object: cb0b5e37b7b1b640641cdbe598ed7ea65348a8fe - docs/models/aiappsinsightsresponse.md: - id: e6d964f0f919 - last_write_checksum: sha1:d043a59b04db3ebde22000f4677a30155709e240 - pristine_git_object: 81de92098753e0c2cc2b0f5d8ca76d9a1cf3b37e - docs/models/aiinsightsresponse.md: - id: a656569eb097 - last_write_checksum: sha1:f9b035035d79889e3c19e6d45d3623ecce5b2580 - pristine_git_object: 670dbf43f248ee2df1d42bdc42c127525f25c85f docs/models/allowlistoptions.md: id: ba4d408f7c0f last_write_checksum: sha1:552aedb8f14b744735e387cac111e935991b6330 @@ -245,10 +245,6 @@ trackedFiles: id: 333a2b7c460c last_write_checksum: sha1:f9779ac516afac0d0cab5f0a9e4993b5e305f413 pristine_git_object: b1d37dea76990544293f38221b2314739c22ffaa - docs/models/assistantactivitytype.md: - id: 2692e8ee163c - last_write_checksum: sha1:902006322e01297d66c98716a3c4de189bef8329 - pristine_git_object: 9502cc831072bffebc21349b523359d317cfed9a docs/models/assistantinsightsresponse.md: id: 4da438a09c8e last_write_checksum: sha1:d7e8d307918c8e317320b03306fd64f15da02e34 @@ -281,6 +277,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 +415,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 @@ -541,10 +541,6 @@ trackedFiles: id: 938260420b2c last_write_checksum: sha1:a2b0d83bf5bba8acdcf91da6af61471fe96a46b0 pristine_git_object: a8dfd5117cccf8959dc6688b829b36c480680e45 - docs/models/contentinsightsresponse.md: - id: 80e7bcc54c54 - last_write_checksum: sha1:374305c995ece5eefb57ae9858c26ed123fd6ff0 - pristine_git_object: 54d206aca749dac4c16d4f286fb9c29f62b00732 docs/models/contenttype.md: id: 78e9266f4216 last_write_checksum: sha1:aa88820dcb37e4eb55531b8f049d00990d8cc344 @@ -565,10 +561,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 +581,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 +601,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 +767,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 +817,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 +845,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 @@ -905,10 +937,6 @@ trackedFiles: id: 3177ff20ce95 last_write_checksum: sha1:592bd655c232463ee0c9acb924a29a1fddd5ba12 pristine_git_object: 497f8be3d27c23d6065e3bb5488de7ec5c2655b3 - docs/models/documentinsight.md: - id: 782f4693530b - last_write_checksum: sha1:7fefb020d3aae3c0cf39d91a87c0e359a3782b80 - pristine_git_object: 278e30dfc594096a84175aeed49a37d03f2c8768 docs/models/documentinteractions.md: id: 40929f336351 last_write_checksum: sha1:0767f87c7e460960b1ee5d1c3f0a08f447a28d17 @@ -1009,6 +1037,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 +1049,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 +1061,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 +1077,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 +1217,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 +1267,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 +1285,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 +1299,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 +1311,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 +1323,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 +1333,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 +1353,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 +1373,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 +1389,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 +1417,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 +1439,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 +1467,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 +1559,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 @@ -1493,14 +1569,6 @@ trackedFiles: id: 5efea712238f last_write_checksum: sha1:05d1c3d1aa27fe96584c28bdb93110e7f38ce2ed pristine_git_object: 6c2fc6ab04a050a3586ef8014d4ee48c343abf92 - docs/models/insightsagentsrequestoptions.md: - id: 161686250a84 - last_write_checksum: sha1:4c84d6e81f7948b9c5fde724395a7e0f98f22f2a - pristine_git_object: 98c92da5fd54313d987f009b24a38efb7f67a922 - docs/models/insightsaiapprequestoptions.md: - id: 6d74e2ab3241 - last_write_checksum: sha1:f7bd47a21ad388398e68c5a3ae92bac4eeed1946 - pristine_git_object: 596378b6f93390428704615b9a5e6113f21088b7 docs/models/insightsassistantrequest.md: id: 37f76b1045f1 last_write_checksum: sha1:2f65f9adb8d203ca6f9e8c07fe27bac58d082916 @@ -1519,16 +1587,16 @@ trackedFiles: pristine_git_object: 76c9c9a8334d732dd6fb8e01a5aeeeb448b93547 docs/models/insightsrequest.md: id: 13eaa34edff4 - last_write_checksum: sha1:3c7a299a7dc4c0e615ce11aaa18d6a3318330ab7 - pristine_git_object: b9c2ea45ca8069cd8f4091a619dac1e8d121ac56 - docs/models/insightsrequestcategory.md: - id: bd63b65986c1 - last_write_checksum: sha1:4cd9746405c6425111d5c2f35d0b6a59e50205b2 - pristine_git_object: f5831a04a99a98e2adcd70de67befae69e73a531 + last_write_checksum: sha1:4e221930c7d01a4a6756554a7af5fb4025821778 + pristine_git_object: 40dfc4f3abc7f9749038aa742d0ee32567a17ed5 + 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 - pristine_git_object: dcb429dce36747679239f31844f4385f8557aeb0 + last_write_checksum: sha1:67bfd34b44c0c217a9028d72d2a660976d6e05d2 + pristine_git_object: 978393b0b1f3ef770fac269779f20a0b368ac5ef docs/models/insightssearchsummary.md: id: 9bf0ac766bf9 last_write_checksum: sha1:f9a5b729b8c6ac37fc3669d134ea8f133aee3905 @@ -1565,14 +1633,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 +1653,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 +1681,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 +1717,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 +1761,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 +1817,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 +1893,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 @@ -1861,14 +1961,6 @@ trackedFiles: id: cedb2a98f8e3 last_write_checksum: sha1:55402a9d8dd1717bc142e73fdd2d61df4bce1edc pristine_git_object: d83acab17ddb85f85f4c56807ae1ed61394c33b2 - docs/models/queryinsight.md: - id: d09436ba953a - last_write_checksum: sha1:194f76df850fe4d6d1f1c673acef3749b13787e8 - pristine_git_object: 6e9a3cc023e41e831c21dd4ab7c0e8123be3f815 - docs/models/queryinsightsresponse.md: - id: 0b15cb064636 - last_write_checksum: sha1:09d0880acdb50c386eaad774b07662d75e92226c - pristine_git_object: 2780966ecfcf11580cd64f47afce379912d59575 docs/models/querysuggestion.md: id: d204ce67c5d4 last_write_checksum: sha1:a0ff5b4d9d199993c2951c54b57e975487116470 @@ -1897,6 +1989,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 +2125,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 @@ -2105,14 +2205,6 @@ trackedFiles: id: e1bc39b68a8a last_write_checksum: sha1:b575a3e05d41c294daf87ae995b425f59dab2dcd pristine_git_object: a253b5366e2a7b610237a51be51015f755da88ff - docs/models/shortcutinsight.md: - id: 3846b57a7fdb - last_write_checksum: sha1:b816b1c03ae33b3b117f196acf429d93613a5f2f - pristine_git_object: 6ad321154650970fd9f9cdbed4a3324434c63a48 - docs/models/shortcutinsightsresponse.md: - id: b4383ee24550 - last_write_checksum: sha1:4c31253bca68656e8a16059d1e65013d26e9b5cd - pristine_git_object: 72d1b064ab05900c0fd90351b129b08238be4d65 docs/models/shortcutmutableproperties.md: id: 78d6ffe3cf2c last_write_checksum: sha1:84ae6b4acd2e66edb0f0b641949a001abeccdef1 @@ -2173,6 +2265,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 +2379,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 +2393,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 +2409,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 +2449,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 +2467,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 @@ -2393,10 +2501,6 @@ trackedFiles: id: c8ca129d5d94 last_write_checksum: sha1:596d2ebfb99e4136fc44e44a1510defa64306b29 pristine_git_object: fb295e4d7b0a1aeb5bb38a9c62e184b5fe646f57 - docs/models/userinsightsresponse.md: - id: f074bc1c8337 - last_write_checksum: sha1:5b0a96c487f2e9439574be8bfcf345ec0dfb49a6 - pristine_git_object: 55e1feea55df6fa721c785fb7e9280c0540ef9b1 docs/models/userreferencedefinition.md: id: d3a3e2ecb24c last_write_checksum: sha1:e7dc7b5f647061d00077ab48e5988068a2033b86 @@ -2445,6 +2549,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 +2595,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 +2615,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 +2667,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:5b1bf1e8254a299da7c5fb3dc7bac0737a37ed9b + pristine_git_object: a11b3322738353b2f14b2f440fb7a8da07c87ac5 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 +2691,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 @@ -2603,12 +2711,12 @@ trackedFiles: pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544 pylintrc: id: 7ce8b9f946e6 - last_write_checksum: sha1:b65d1bdd77e5e2691ec8d17b02fb6f3675ab9f50 - pristine_git_object: 8e34b78a71b8bb97bad6dea99d0f791beb134e5b + last_write_checksum: sha1:a6bceac7d3da09ebdfe86a1d0c8d477a93177d50 + pristine_git_object: 33c17ec92e441b6c363a28a5b7319df5a2ad94dd pyproject.toml: id: 5d07e7d72637 - last_write_checksum: sha1:e74ee3184e376810b0ad328b5c651c9c3cc31cd0 - pristine_git_object: a92333900a6aabd7e86b21f5b1cc0e4c5a232b11 + last_write_checksum: sha1:d97a10d69c08ee3de1c7e13b15c602a5406e1b9b + pristine_git_object: 6a525cbe1ff46afaa986095d88fe894d67e3a8c4 scripts/prepare_readme.py: id: e0c5957a6035 last_write_checksum: sha1:c2c83f71dea61eb50c9e05da83b16d18b4da8794 @@ -2635,20 +2743,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:41722c38ebdc94eaf7260bd58cf6ec9a3236aabb + pristine_git_object: c3594d3fd8d262424b3882bb98e4896020bb8d42 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 +2775,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 +2807,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 +2823,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 +2875,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:3b4e64f47612d7d2766447b998a7e7ab4bbf857b + pristine_git_object: 91c67697d5c9f456f80cb159fdd1656029131d1a 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:1d2f9c6dc8f5fa44b657eeafcf15bc311e910885 + pristine_git_object: cdeddd4ac3b49617aa09d5d1c828407d8bd8e3ee src/glean/api_client/models/activity.py: id: 6ea27628a0fd last_write_checksum: sha1:27f676cc8276973c98176252bf06e2b4b965935e @@ -2793,6 +2901,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,14 +2917,22 @@ 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 pristine_git_object: cca8a2418bf71d6d46a078a651b8baa74162e2cf src/glean/api_client/models/agentconfig.py: id: 6bc960f78847 - last_write_checksum: sha1:a8e996df14a88632ce86d45287256dd30ab6391c - pristine_git_object: b82d01a4dc30995fb67085f388ba64389faeb79a + last_write_checksum: sha1:89e23b03fbbf6cb9d605b751245469cda3368f3f + pristine_git_object: c8001d8ee03b350c48cf6d122e6fd6f2039cbddb src/glean/api_client/models/agentexecutionstatus.py: id: ab4f2c2f8eed last_write_checksum: sha1:b7333d24342b551d95d36dd4ce1021db65fbfdc6 @@ -2849,18 +2969,6 @@ trackedFiles: id: f40366a65563 last_write_checksum: sha1:315820b44e219c3e237b2dcc6aa9fd027f1d1d22 pristine_git_object: dee71aa626f331467b701f0727dce307d19deaa7 - src/glean/api_client/models/aiappactioncounts.py: - id: ff74ad18ffd9 - last_write_checksum: sha1:f6fbe1edcf4b35363360f6e799207dde15291648 - pristine_git_object: 5e2a0cdf67c34293c072d4936c9cfda81b5ea5c2 - src/glean/api_client/models/aiappsinsightsresponse.py: - id: 9e9efda5fb6c - last_write_checksum: sha1:9f4230c52bfba75496ab8ba7105232bbd11baddb - pristine_git_object: 538609cc2ddab73a57221276b874fc132a455391 - src/glean/api_client/models/aiinsightsresponse.py: - id: eb1ba084b23a - last_write_checksum: sha1:6f8b963a740849a334711ab2d2d9266adeceb195 - pristine_git_object: 320406b99db7f3011d95e0f64c2acee25c0a6d02 src/glean/api_client/models/allowlistoptions.py: id: 956eeade455c last_write_checksum: sha1:aabccb5a61e95ec52fb70108eef34fd120868402 @@ -2909,6 +3017,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 +3135,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 @@ -3137,10 +3249,6 @@ trackedFiles: id: be5d817e66bb last_write_checksum: sha1:f880cc0a22092f6e81c64e8bf3da7c7bd97bca8c pristine_git_object: 95031ace9690a8d881210bb6b28cc4c34756ae33 - src/glean/api_client/models/contentinsightsresponse.py: - id: 1a0aad7030f9 - last_write_checksum: sha1:396e0b54089e646965458c294e410af213472666 - pristine_git_object: b96b7701835fc2d2ed9466b70bb71a32d030c378 src/glean/api_client/models/contenttype.py: id: 7a299752fd19 last_write_checksum: sha1:d9e2eaed594a998478317ec74724140c7df3c184 @@ -3149,10 +3257,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 +3279,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 +3293,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 +3431,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 +3477,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 +3505,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 @@ -3453,10 +3593,6 @@ trackedFiles: id: a1d959d6d441 last_write_checksum: sha1:1c5848ee6293c3bd6576b59e9b50d37362d08b43 pristine_git_object: f81d6f4596c961bc80f58a6afae55af4b30229d6 - src/glean/api_client/models/documentinsight.py: - id: 685c828b4895 - last_write_checksum: sha1:fcd79ad09b86c86914d45bcf710676948eaac0b4 - pristine_git_object: ae5980b5654aaaba7b619b9ae9d6d9579c0192a7 src/glean/api_client/models/documentinteractions.py: id: 1cbd7f0ca8c2 last_write_checksum: sha1:cecb1e6fdad496d9a266d0d6d7be8ce51c1d9340 @@ -3513,10 +3649,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 +3669,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 +3681,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 +3789,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 +3831,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 +3855,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 +3867,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 +3879,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 +3889,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 +3909,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 +3929,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 +3941,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 +3969,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 +3989,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 +4015,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,16 +4083,8 @@ trackedFiles: pristine_git_object: 21e0654e94d799c3f1841da75c14ba31501a6cd0 src/glean/api_client/models/inputoptions.py: id: 29608097f74b - last_write_checksum: sha1:126cd6e87de31f54d52c0b1951d1f91ddda96946 - pristine_git_object: 4b14eb02ac24a4557a08f30a26635787bd4ca5b3 - src/glean/api_client/models/insightsagentsrequestoptions.py: - id: e10172e8323e - last_write_checksum: sha1:b966938195ee3c703471d0b0c05bfd8fcd93710f - pristine_git_object: 9df6e9f767b54c63b3f66df8f1480fd0d0ea9447 - src/glean/api_client/models/insightsaiapprequestoptions.py: - id: 941990ffd60f - last_write_checksum: sha1:beda821a1067a96d6b563e78c929d41f038ba454 - pristine_git_object: e1bdb0b2bece1c34fdece6ec26d66f1164e59c55 + last_write_checksum: sha1:bf745b378cd90614ceb8cd0afbe172f2b7fef045 + pristine_git_object: b1c67be37eae3c9578fb3e18d02eeca382f53708 src/glean/api_client/models/insightsassistantrequest.py: id: ff69cec68e31 last_write_checksum: sha1:93719b0271af9a52e032756a2f80337ada631e7a @@ -3917,6 +4093,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 @@ -3927,12 +4107,12 @@ trackedFiles: pristine_git_object: dea1bde5a31896864988b8122db4bf874f852077 src/glean/api_client/models/insightsrequest.py: id: 72fbc9d1c47b - last_write_checksum: sha1:9301114217b1c50300ca3092fb163555e17c4705 - pristine_git_object: 6b0d940cc35b17ae0b9622649b7da531ae6486af + last_write_checksum: sha1:0b3bf39ee315aa8bf84db52a2220fcdb43cdbe3b + pristine_git_object: a231397185a5b51c06f07111b8af251d9cf11ee7 src/glean/api_client/models/insightsresponse.py: id: 8d5ce8feb796 - last_write_checksum: sha1:42fb2d6ce16fec95586da3fbdd9b7e981bea2139 - pristine_git_object: fe2ea34b3fb63a1ea876ff6fe4f5898cc22d63b2 + last_write_checksum: sha1:65a85c66daf808d2beddf8373a62acb7a91a51b9 + pristine_git_object: f58d98d7e57aad7c4301f17dc88abbd2ce3b44ce src/glean/api_client/models/insightssearchsummary.py: id: 876b12a69ab5 last_write_checksum: sha1:8f8d51a0458548cdeb811ef7e9f5870154d21faf @@ -3949,6 +4129,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 +4143,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 +4169,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 +4183,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 +4193,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 +4207,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 +4225,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 +4253,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 +4317,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 @@ -4165,14 +4373,6 @@ trackedFiles: id: f592edab23dd last_write_checksum: sha1:ee9126829cc3acd7e8af7c118d04d26ac12d5573 pristine_git_object: 8feac9642ee2bca2fed413755f141c6dc385459f - src/glean/api_client/models/queryinsight.py: - id: 6d820a6a97eb - last_write_checksum: sha1:583fccf26b241bbd1155ab7d0ed8fa04f08b2856 - pristine_git_object: 9f3f0adc894d602d5d95db9748ea42f9bc6dc615 - src/glean/api_client/models/queryinsightsresponse.py: - id: 3b974bed9a92 - last_write_checksum: sha1:e3e2a417626c7cecf151ee72ab46ea59213e0075 - pristine_git_object: 42d2d68cfa573ec02ff347cbdc5ecd811686652b src/glean/api_client/models/querysuggestion.py: id: d999a3a9d983 last_write_checksum: sha1:da0418895211c2e828e53471708c5c51b72e01b0 @@ -4193,6 +4393,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 +4469,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 @@ -4349,14 +4557,6 @@ trackedFiles: id: 2f86c1d02a49 last_write_checksum: sha1:5e30ab33349c52da1993f56ad901d15936734c18 pristine_git_object: d7bb10baa2dbe8953603ee35629f22f958889505 - src/glean/api_client/models/shortcutinsight.py: - id: 19ab98d2f825 - last_write_checksum: sha1:1bbd63fb1d383af862902c2134807011fccc9a05 - pristine_git_object: c22aee3c26ad6bfd3c91ee87f51d79bfc2d66fca - src/glean/api_client/models/shortcutinsightsresponse.py: - id: 0c48ea372058 - last_write_checksum: sha1:e0147ea76f97ca3cd13ee355d25cfcfd4cf16be8 - pristine_git_object: 6371ed3f70a1c56d651d2f8d15a0b00acd3dc494 src/glean/api_client/models/shortcutmutableproperties.py: id: 16671c35b7ba last_write_checksum: sha1:6754a78cdc08b00288aa246c8a109dc099ce7e2e @@ -4405,6 +4605,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 +4699,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 +4749,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 +4767,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 @@ -4585,10 +4801,6 @@ trackedFiles: id: e51bf3d3e0b3 last_write_checksum: sha1:59eca6f26e30abfb8589fd5d3edb6e1231b2be65 pristine_git_object: 04553f56c25dbe69a3d7c321915b1bba87069920 - src/glean/api_client/models/userinsightsresponse.py: - id: 6d224adc1c1f - last_write_checksum: sha1:60d41b044481f5f121343fe9c26516897b1a8dac - pristine_git_object: 835b21b3375cbcd054f8a94002266860e5529b26 src/glean/api_client/models/userreferencedefinition.py: id: b094f30ebd7e last_write_checksum: sha1:749be73905605b1aabf389a9c93b77cd4a2da85c @@ -4621,6 +4833,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 +4871,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 +4895,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 @@ -4695,8 +4911,8 @@ trackedFiles: pristine_git_object: a9a640a1a7048736383f96c67c6290c86bf536ee src/glean/api_client/utils/__init__.py: id: d681dc4f06b3 - last_write_checksum: sha1:ffaf69e6877a274b08066215f5a31a1b344f5402 - pristine_git_object: f4525b2057c3d54fb3b9eff6248fd172478ce94c + last_write_checksum: sha1:141be7a6debce43d0acfb482e4b3dab85a894c4a + pristine_git_object: 23ac44834d842f128e6b5625ebc19d2b79f87cea src/glean/api_client/utils/annotations.py: id: 8431a3a9fc4f last_write_checksum: sha1:a4824ad65f730303e4e1e3ec1febf87b4eb46dbc @@ -4916,7 +5132,7 @@ trackedFiles: tests/mockserver/internal/handler/pathpostrestapiv1getanswer.go: last_write_checksum: sha1:3bec6f7cd190f9394bebac2407f9d7f1e606e479 tests/mockserver/internal/handler/pathpostrestapiv1getchat.go: - last_write_checksum: sha1:089475adb3686c656bd0eb52940285a7e037ab83 + last_write_checksum: sha1:2c2b7acb22e422a721a21801cccfa30fedfd3169 tests/mockserver/internal/handler/pathpostrestapiv1getchatapplication.go: last_write_checksum: sha1:7b81898137fdb3a89b4dcfa318b9b5b92e8860c0 tests/mockserver/internal/handler/pathpostrestapiv1getchatfiles.go: @@ -4934,7 +5150,7 @@ trackedFiles: tests/mockserver/internal/handler/pathpostrestapiv1getshortcut.go: last_write_checksum: sha1:327c7d7c4e53607f8912156c8997b1713d7590d2 tests/mockserver/internal/handler/pathpostrestapiv1insights.go: - last_write_checksum: sha1:e30a0312a80b6060a6aa60f4c2668412422d7a7c + last_write_checksum: sha1:4648f4b752507c33020b12f301dd5a48aa95e839 tests/mockserver/internal/handler/pathpostrestapiv1listanswers.go: last_write_checksum: sha1:e77c9140ef08683b112e16a0cb45370c1f912564 tests/mockserver/internal/handler/pathpostrestapiv1listchats.go: @@ -5006,7 +5222,7 @@ trackedFiles: tests/mockserver/internal/sdk/models/components/agent.go: last_write_checksum: sha1:a2976ece5b814f553cd7d724369dbdf054b10d70 tests/mockserver/internal/sdk/models/components/agentconfig.go: - last_write_checksum: sha1:00ad949208a1d61b2840c79051993be30b158163 + last_write_checksum: sha1:cd839d5368cb6f41495a5fc8ef333ab5d4f102cb tests/mockserver/internal/sdk/models/components/agentexecutionstatus.go: last_write_checksum: sha1:ef904e3fd25fd902d355e88115d0721dfecab4f8 tests/mockserver/internal/sdk/models/components/agentrun.go: @@ -5025,12 +5241,6 @@ trackedFiles: last_write_checksum: sha1:21c46d3f5363b157c2e4ee70451c7d0b3e8d77df tests/mockserver/internal/sdk/models/components/agentusersinsight.go: last_write_checksum: sha1:2f737cbf66693fdffffc4d9f30a3f26b09d35eb6 - tests/mockserver/internal/sdk/models/components/aiappactioncounts.go: - last_write_checksum: sha1:21c32418aab053e83bc126e0933c3ad2126b50eb - tests/mockserver/internal/sdk/models/components/aiappsinsightsresponse.go: - last_write_checksum: sha1:661f0e1a18ec1e9fdcf10a81a5c73cf08f80a8a2 - tests/mockserver/internal/sdk/models/components/aiinsightsresponse.go: - last_write_checksum: sha1:93094917d1468f25f3e20dded184a00a3afbbab7 tests/mockserver/internal/sdk/models/components/allowlistoptions.go: last_write_checksum: sha1:db278a11846646ca8794392f2846087d1fba114f tests/mockserver/internal/sdk/models/components/announcement.go: @@ -5165,8 +5375,6 @@ trackedFiles: last_write_checksum: sha1:0e2f6006ffa974b582362f1d259dd55fdb02a00e tests/mockserver/internal/sdk/models/components/contentdefinition.go: last_write_checksum: sha1:b4cf0765dff149db135c123778042f2822932378 - tests/mockserver/internal/sdk/models/components/contentinsightsresponse.go: - last_write_checksum: sha1:61ae0d3b9d574af4864d36df2ade801d2be55230 tests/mockserver/internal/sdk/models/components/contenttype.go: last_write_checksum: sha1:5fd634f52b3a914081b6b39d49c5709929478756 tests/mockserver/internal/sdk/models/components/countinfo.go: @@ -5313,8 +5521,6 @@ trackedFiles: last_write_checksum: sha1:17906e5b05e5396940805846f250c7c4b91a1bb9 tests/mockserver/internal/sdk/models/components/documentdefinition.go: last_write_checksum: sha1:04dc959087a57790f99f0b47e6fe2359603b48ff - tests/mockserver/internal/sdk/models/components/documentinsight.go: - last_write_checksum: sha1:38454ab2dc47418adfba9ba6294fbb8e78ea1069 tests/mockserver/internal/sdk/models/components/documentinteractions.go: last_write_checksum: sha1:16f1d08ae52ecf4b5f8110bb1f3ba88810dd9a50 tests/mockserver/internal/sdk/models/components/documentinteractionsdefinition.go: @@ -5476,7 +5682,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,11 +5718,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 - tests/mockserver/internal/sdk/models/components/insightsagentsrequestoptions.go: - last_write_checksum: sha1:00e65e5e7f98d1b0b0d3253a15baad2c11c7dec2 - tests/mockserver/internal/sdk/models/components/insightsaiapprequestoptions.go: - last_write_checksum: sha1:a21e9cc2808cb91513ddfe6069d53dfecf52f4e6 + last_write_checksum: sha1:a8e076c7b78ab09d12da6b5a05b97714306953bd tests/mockserver/internal/sdk/models/components/insightsassistantrequest.go: last_write_checksum: sha1:eac843a444bc1a4407ac673f756bb9684564aef7 tests/mockserver/internal/sdk/models/components/insightschatsummary.go: @@ -5526,9 +5728,9 @@ trackedFiles: tests/mockserver/internal/sdk/models/components/insightsoverviewresponse.go: last_write_checksum: sha1:6b78d9baa749aa3e03c2e20964a9a5ddcaab97ad tests/mockserver/internal/sdk/models/components/insightsrequest.go: - last_write_checksum: sha1:eb012d78051f22fd42f8b58a31f1de61b6ee970a + last_write_checksum: sha1:f8bb4f19bca0be78fec51bf4d8e90d29ad25b940 tests/mockserver/internal/sdk/models/components/insightsresponse.go: - last_write_checksum: sha1:7b1af679f58bb536f24c3d2185bf8250886eef07 + last_write_checksum: sha1:f691027ad483a3268a91961f6313983b385abb51 tests/mockserver/internal/sdk/models/components/insightssearchsummary.go: last_write_checksum: sha1:7640f939a1f08bb1d3ed16361412801cad2c9d48 tests/mockserver/internal/sdk/models/components/invalidoperatorvalueerror.go: @@ -5629,10 +5831,6 @@ trackedFiles: last_write_checksum: sha1:c4abcee5c9f4127b3913aa3af278af0f2ef72bc2 tests/mockserver/internal/sdk/models/components/propertygroup.go: last_write_checksum: sha1:68058f9a81607adc088834a548fa26aa8e71a2b6 - tests/mockserver/internal/sdk/models/components/queryinsight.go: - last_write_checksum: sha1:df50afff895f3f827ca5885d1d4814eb5e4467a8 - tests/mockserver/internal/sdk/models/components/queryinsightsresponse.go: - last_write_checksum: sha1:8d3c4323826907204828795f60572549e3b05c08 tests/mockserver/internal/sdk/models/components/querysuggestion.go: last_write_checksum: sha1:333e772c98b3b0c488a4b0dad9c477475778bd65 tests/mockserver/internal/sdk/models/components/querysuggestionlist.go: @@ -5721,10 +5919,6 @@ trackedFiles: last_write_checksum: sha1:89fc93286c3a87e26d3c93179ff289d25c4abb5a tests/mockserver/internal/sdk/models/components/shortcuterror.go: last_write_checksum: sha1:c2c12b0e5d2a4488c59ca8f9ba95fa50f031b8fb - tests/mockserver/internal/sdk/models/components/shortcutinsight.go: - last_write_checksum: sha1:077f1ca0915fe19dafe5f690de46447dea3dc4f5 - tests/mockserver/internal/sdk/models/components/shortcutinsightsresponse.go: - last_write_checksum: sha1:4f85fbc58033e27a9b80ba97063852905286f23a tests/mockserver/internal/sdk/models/components/shortcutmutableproperties.go: last_write_checksum: sha1:b68137186eb03f324e4a7d83bf44f01ef9499712 tests/mockserver/internal/sdk/models/components/shortcutspaginationmetadata.go: @@ -5794,7 +5988,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: @@ -5835,8 +6029,6 @@ trackedFiles: last_write_checksum: sha1:e59f8c217005ea01e8a8d4271f5ab6502185cf74 tests/mockserver/internal/sdk/models/components/usergeneratedcontentid.go: last_write_checksum: sha1:2f2c56c39abc65c6ff52326baeca86444f64cae2 - tests/mockserver/internal/sdk/models/components/userinsightsresponse.go: - last_write_checksum: sha1:e5ccbbe41c498ccb57f50bcaaba90cf228f82dd1 tests/mockserver/internal/sdk/models/components/userreferencedefinition.go: last_write_checksum: sha1:149db1930e323d413f07a581e381cc61e1dd1ff2 tests/mockserver/internal/sdk/models/components/userrole.go: @@ -5870,15 +6062,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 +6078,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 +6092,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 +6118,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 +6160,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 +6264,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 +6302,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 +6365,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 @@ -6221,8 +6413,8 @@ trackedFiles: pristine_git_object: 51a750d7b6f1e75837dcd81c25a42bdfecc80fd0 tests/test_insights.py: id: 7669cd72a629 - last_write_checksum: sha1:ff12a7c40426796bd9ebc193153c5b3b2f546cc9 - pristine_git_object: 301907d8b173301d252e800b1e16f9978108a5ef + last_write_checksum: sha1:1f1a50da621d48b4acd55f8350d6778e9b1f2393 + pristine_git_object: 6cc8aeec3c52329d389081db0a27f10f53f214b9 tests/test_messages.py: id: be23089b1f8b last_write_checksum: sha1:bef200db8e7fff0aa33ef17846f5054a2d035a88 @@ -6233,8 +6425,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 +6441,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:6383d6969c6f1bf1832e5ace511e5c2ffaa6d86f + pristine_git_object: cac8e9788f25fda1ff78bd2e3e36917319145e82 tests/test_tools.py: id: 70889bdf7321 last_write_checksum: sha1:3c0c220f8975b050c322f6475e95f7af4e65b995 @@ -6560,7 +6752,7 @@ examples: application/json: {} responses: "200": - application/json: {"users": {"activityInsights": [{"user": {"name": "George Clooney", "obfuscatedId": "abc123"}, "activity": "SEARCH"}], "inactiveInsights": [{"user": {"name": "George Clooney", "obfuscatedId": "abc123"}, "activity": "ALL"}]}, "content": {"documentInsights": [{"document": {"containerDocument": {"metadata": {"datasource": "datasource", "objectType": "Feature Request", "container": "container", "parentId": "JIRA_EN-1337", "mimeType": "mimeType", "documentId": "documentId", "createTime": "2000-01-23T04:56:07.000Z", "updateTime": "2000-01-23T04:56:07.000Z", "author": {"name": "name", "obfuscatedId": ""}, "components": ["Backend", "Networking"], "status": "[\"Done\"]", "customData": {"someCustomField": {}}}}, "parentDocument": {"metadata": {"datasource": "datasource", "objectType": "Feature Request", "container": "container", "parentId": "JIRA_EN-1337", "mimeType": "mimeType", "documentId": "documentId", "createTime": "2000-01-23T04:56:07.000Z", "updateTime": "2000-01-23T04:56:07.000Z", "author": {"name": "name", "obfuscatedId": ""}, "components": ["Backend", "Networking"], "status": "[\"Done\"]", "customData": {"someCustomField": {}}}}, "metadata": {"datasource": "datasource", "objectType": "Feature Request", "container": "container", "parentId": "JIRA_EN-1337", "mimeType": "mimeType", "documentId": "documentId", "createTime": "2000-01-23T04:56:07.000Z", "updateTime": "2000-01-23T04:56:07.000Z", "author": {"name": "name", "obfuscatedId": ""}, "components": ["Backend", "Networking"], "status": "[\"Done\"]", "customData": {"someCustomField": {}}}}}]}, "collections": {"documentInsights": [{"document": {"containerDocument": {"metadata": {"datasource": "datasource", "objectType": "Feature Request", "container": "container", "parentId": "JIRA_EN-1337", "mimeType": "mimeType", "documentId": "documentId", "createTime": "2000-01-23T04:56:07.000Z", "updateTime": "2000-01-23T04:56:07.000Z", "author": {"name": "name", "obfuscatedId": ""}, "components": ["Backend", "Networking"], "status": "[\"Done\"]", "customData": {"someCustomField": {}}}}, "parentDocument": {"metadata": {"datasource": "datasource", "objectType": "Feature Request", "container": "container", "parentId": "JIRA_EN-1337", "mimeType": "mimeType", "documentId": "documentId", "createTime": "2000-01-23T04:56:07.000Z", "updateTime": "2000-01-23T04:56:07.000Z", "author": {"name": "name", "obfuscatedId": ""}, "components": ["Backend", "Networking"], "status": "[\"Done\"]", "customData": {"someCustomField": {}}}}, "metadata": {"datasource": "datasource", "objectType": "Feature Request", "container": "container", "parentId": "JIRA_EN-1337", "mimeType": "mimeType", "documentId": "documentId", "createTime": "2000-01-23T04:56:07.000Z", "updateTime": "2000-01-23T04:56:07.000Z", "author": {"name": "name", "obfuscatedId": ""}, "components": ["Backend", "Networking"], "status": "[\"Done\"]", "customData": {"someCustomField": {}}}}}]}, "collectionsV2": {"documentInsights": [{"document": {"containerDocument": {"metadata": {"datasource": "datasource", "objectType": "Feature Request", "container": "container", "parentId": "JIRA_EN-1337", "mimeType": "mimeType", "documentId": "documentId", "createTime": "2000-01-23T04:56:07.000Z", "updateTime": "2000-01-23T04:56:07.000Z", "author": {"name": "name", "obfuscatedId": ""}, "components": ["Backend", "Networking"], "status": "[\"Done\"]", "customData": {"someCustomField": {}}}}, "parentDocument": {"metadata": {"datasource": "datasource", "objectType": "Feature Request", "container": "container", "parentId": "JIRA_EN-1337", "mimeType": "mimeType", "documentId": "documentId", "createTime": "2000-01-23T04:56:07.000Z", "updateTime": "2000-01-23T04:56:07.000Z", "author": {"name": "name", "obfuscatedId": ""}, "components": ["Backend", "Networking"], "status": "[\"Done\"]", "customData": {"someCustomField": {}}}}, "metadata": {"datasource": "datasource", "objectType": "Feature Request", "container": "container", "parentId": "JIRA_EN-1337", "mimeType": "mimeType", "documentId": "documentId", "createTime": "2000-01-23T04:56:07.000Z", "updateTime": "2000-01-23T04:56:07.000Z", "author": {"name": "name", "obfuscatedId": ""}, "components": ["Backend", "Networking"], "status": "[\"Done\"]", "customData": {"someCustomField": {}}}}}]}, "shortcuts": {"shortcutInsights": [{"shortcut": {"inputAlias": "", "addedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123"}, "role": "VIEWER"}], "removedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123"}, "role": "ANSWER_MODERATOR"}], "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123"}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123"}, "destinationDocument": {"containerDocument": {"metadata": {"datasource": "datasource", "objectType": "Feature Request", "container": "container", "parentId": "JIRA_EN-1337", "mimeType": "mimeType", "documentId": "documentId", "createTime": "2000-01-23T04:56:07.000Z", "updateTime": "2000-01-23T04:56:07.000Z", "author": {"name": "name", "obfuscatedId": ""}, "components": ["Backend", "Networking"], "status": "[\"Done\"]", "customData": {"someCustomField": {}}}}, "parentDocument": {"metadata": {"datasource": "datasource", "objectType": "Feature Request", "container": "container", "parentId": "JIRA_EN-1337", "mimeType": "mimeType", "documentId": "documentId", "createTime": "2000-01-23T04:56:07.000Z", "updateTime": "2000-01-23T04:56:07.000Z", "author": {"name": "name", "obfuscatedId": ""}, "components": ["Backend", "Networking"], "status": "[\"Done\"]", "customData": {"someCustomField": {}}}}, "metadata": {"datasource": "datasource", "objectType": "Feature Request", "container": "container", "parentId": "JIRA_EN-1337", "mimeType": "mimeType", "documentId": "documentId", "createTime": "2000-01-23T04:56:07.000Z", "updateTime": "2000-01-23T04:56:07.000Z", "author": {"name": "name", "obfuscatedId": ""}, "components": ["Backend", "Networking"], "status": "[\"Done\"]", "customData": {"someCustomField": {}}}}, "roles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123"}, "role": "EDITOR"}]}}]}, "announcements": {"documentInsights": [{"document": {"containerDocument": {"metadata": {"datasource": "datasource", "objectType": "Feature Request", "container": "container", "parentId": "JIRA_EN-1337", "mimeType": "mimeType", "documentId": "documentId", "createTime": "2000-01-23T04:56:07.000Z", "updateTime": "2000-01-23T04:56:07.000Z", "author": {"name": "name", "obfuscatedId": ""}, "components": ["Backend", "Networking"], "status": "[\"Done\"]", "customData": {"someCustomField": {}}}}, "parentDocument": {"metadata": {"datasource": "datasource", "objectType": "Feature Request", "container": "container", "parentId": "JIRA_EN-1337", "mimeType": "mimeType", "documentId": "documentId", "createTime": "2000-01-23T04:56:07.000Z", "updateTime": "2000-01-23T04:56:07.000Z", "author": {"name": "name", "obfuscatedId": ""}, "components": ["Backend", "Networking"], "status": "[\"Done\"]", "customData": {"someCustomField": {}}}}, "metadata": {"datasource": "datasource", "objectType": "Feature Request", "container": "container", "parentId": "JIRA_EN-1337", "mimeType": "mimeType", "documentId": "documentId", "createTime": "2000-01-23T04:56:07.000Z", "updateTime": "2000-01-23T04:56:07.000Z", "author": {"name": "name", "obfuscatedId": ""}, "components": ["Backend", "Networking"], "status": "[\"Done\"]", "customData": {"someCustomField": {}}}}}]}, "answers": {"documentInsights": [{"document": {"containerDocument": {"metadata": {"datasource": "datasource", "objectType": "Feature Request", "container": "container", "parentId": "JIRA_EN-1337", "mimeType": "mimeType", "documentId": "documentId", "createTime": "2000-01-23T04:56:07.000Z", "updateTime": "2000-01-23T04:56:07.000Z", "author": {"name": "name", "obfuscatedId": ""}, "components": ["Backend", "Networking"], "status": "[\"Done\"]", "customData": {"someCustomField": {}}}}, "parentDocument": {"metadata": {"datasource": "datasource", "objectType": "Feature Request", "container": "container", "parentId": "JIRA_EN-1337", "mimeType": "mimeType", "documentId": "documentId", "createTime": "2000-01-23T04:56:07.000Z", "updateTime": "2000-01-23T04:56:07.000Z", "author": {"name": "name", "obfuscatedId": ""}, "components": ["Backend", "Networking"], "status": "[\"Done\"]", "customData": {"someCustomField": {}}}}, "metadata": {"datasource": "datasource", "objectType": "Feature Request", "container": "container", "parentId": "JIRA_EN-1337", "mimeType": "mimeType", "documentId": "documentId", "createTime": "2000-01-23T04:56:07.000Z", "updateTime": "2000-01-23T04:56:07.000Z", "author": {"name": "name", "obfuscatedId": ""}, "components": ["Backend", "Networking"], "status": "[\"Done\"]", "customData": {"someCustomField": {}}}}}]}, "ai": {"assistantInsights": [{"user": {"name": "George Clooney", "obfuscatedId": "abc123"}, "activity": "SEARCH"}]}, "aiApps": {"aiAppInsights": [{"user": {"name": "George Clooney", "obfuscatedId": "abc123"}, "activity": "ALL"}]}, "gleanAssist": {"activityInsights": [{"user": {"name": "George Clooney", "obfuscatedId": "abc123"}, "activity": "SEARCH"}]}, "overviewResponse": {"perUserInsights": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123"}}]}, "assistantResponse": {"perUserInsights": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123"}}]}, "agentsResponse": {"topAgentsInsights": [{"icon": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}], "agentsUsageByDepartmentInsights": [{"icon": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}], "agentUsersInsights": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123"}}]}} + application/json: {"gleanAssist": {"activityInsights": [{"user": {"name": "George Clooney", "obfuscatedId": "abc123"}, "activity": "SEARCH"}]}, "overviewResponse": {"perUserInsights": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123"}}]}, "assistantResponse": {"perUserInsights": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123"}}]}, "agentsResponse": {"topAgentsInsights": [{"icon": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}], "agentsUsageByDepartmentInsights": [{"icon": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}], "agentUsersInsights": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123"}}]}} messages: speakeasy-default-messages: requestBody: @@ -7138,6 +7330,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.chat.create()`: \n * `request` **Changed**\n * `response.messages[].agent_config.agent.enum(auto)` **Added** (Breaking ⚠️)\n* `glean.client.shortcuts.retrieve()`: `request` **Changed** (Breaking ⚠️)\n* `glean.client.search.retrieve_feed()`: \n * `request.locale` **Added**\n * `response.results[].primary_entry.prompt_template.favorite_info.ugc_type.enum(prism_views_type)` **Added** (Breaking ⚠️)\n* `glean.client.pins.list()`: `request` **Changed** (Breaking ⚠️)\n* `glean.client.insights.retrieve()`: \n * `request` **Changed** (Breaking ⚠️)\n * `response` **Changed** (Breaking ⚠️)\n* `glean.client.documents.retrieve_by_facets()`: `request` **Changed** (Breaking ⚠️)\n* `glean.client.documents.retrieve()`: `request` **Changed** (Breaking ⚠️)\n* `glean.client.chat.retrieve()`: \n * `request.locale` **Added**\n * `response.chat_result.chat.messages[].agent_config.agent.enum(auto)` **Added** (Breaking ⚠️)\n* `glean.client.collections.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.chat.delete()`: `request.locale` **Added**\n* `glean.client.answers.list()`: `request.locale` **Added**\n* `glean.client.chat.list()`: `request.locale` **Added**\n* `glean.client.chat.retrieve_application()`: `request.locale` **Added**\n* `glean.client.chat.upload_files()`: `request.locale` **Added**\n* `glean.client.chat.retrieve_files()`: `request.locale` **Added**\n* `glean.client.chat.delete_files()`: `request.locale` **Added**\n* `glean.client.chat.create_stream()`: \n * `request.messages[].agent_config.agent.enum(auto)` **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.announcements.create()`: `request.locale` **Added**\n* `glean.client.documents.retrieve_permissions()`: `request.locale` **Added**\n* `glean.client.answers.retrieve()`: `request.locale` **Added**\n* `glean.client.answers.update()`: `request.locale` **Added**\n* `glean.client.documents.summarize()`: `request.locale` **Added**\n* `glean.client.answers.delete()`: `request.locale` **Added**\n* `glean.client.chat.delete_all()`: `request.locale` **Added**\n* `glean.client.pins.update()`: `request.locale` **Added**\n* `glean.client.pins.retrieve()`: `request.locale` **Added**\n* `glean.client.answers.create()`: `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.announcements.update()`: `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.verification.verify()`: `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..0bdef92d 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -24,6 +24,7 @@ generation: schemas: allOfMergeStrategy: shallowMerge requestBodyFieldName: "" + versioningStrategy: automatic mockServer: disabled: false persistentEdits: {} @@ -32,7 +33,7 @@ generation: generateNewTests: true skipResponseBodyAssertions: true python: - version: 0.11.27 + version: 0.12.0 additionalDependencies: dev: {} main: {} diff --git a/.speakeasy/glean-merged-spec.yaml b/.speakeasy/glean-merged-spec.yaml index f8520c95..4ca94f39 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: e9d79a2b78690b4f39de6c7160b23871dc74ca44 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: 3059642aa7ad5465cf3e9a0bd9a2081e8aa2ac02 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,24 +7299,36 @@ 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. + AUTO: Uses an agent powered by the agentic engine that routes between reasoning efforts based on the question and context. enum: - DEFAULT - GPT - UNIVERSAL - FAST - ADVANCED + - AUTO x-speakeasy-enum-descriptions: 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. + AUTO: Uses an agent powered by the agentic engine that routes between reasoning efforts based on the question and context. toolSets: $ref: "#/components/schemas/ToolSets" 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 +7698,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 @@ -8253,22 +8407,6 @@ components: dayRange: $ref: "#/components/schemas/Period" description: Time period for which Insights are requested. - InsightsAiAppRequestOptions: - type: object - properties: - aiAppIds: - type: array - items: - type: string - description: IDs of the AI Apps for which Insights should be returned. An empty array signifies all. - InsightsAgentsRequestOptions: - type: object - properties: - agentIds: - type: array - items: - type: string - description: IDs of the Agents for which Insights should be returned. An empty array signifies all. InsightsRequest: properties: overviewRequest: @@ -8286,65 +8424,6 @@ components: disablePerUserInsights: type: boolean description: If true, suppresses the generation of per-user Insights in the response. Default is false. - categories: - deprecated: true - type: array - items: - type: string - enum: - - AGENTS - - AGENT_USERS - - TOP_AGENTS - - AGENTS_USAGE_BY_DEPARTMENT - - AI - - AI_APPS - - ANNOUNCEMENTS - - ANSWERS - - COLLECTIONS - - CONTENT - - GLEAN_ASSIST - - QUERIES - - SHORTCUTS - - USERS - description: Categories of data requested. Request can include single or multiple types. - departments: - deprecated: true - type: array - items: - type: string - description: Departments that the data is requested for. If this is empty, corresponds to whole company. - dayRange: - deprecated: true - $ref: "#/components/schemas/Period" - aiAppRequestOptions: - deprecated: true - $ref: "#/components/schemas/InsightsAiAppRequestOptions" - agentsRequestOptions: - deprecated: true - $ref: "#/components/schemas/InsightsAgentsRequestOptions" - assistantActivityTypes: - deprecated: true - type: array - items: - type: string - enum: - - GLEAN_CHAT - - AI_SUMMARY - - AI_ANSWER - - GLEANBOT_RESPONSE - description: Types of activity that should count in the definition of an Assistant Active User. Affects only insights for AI category. - LabeledCountInfo: - required: - - label - properties: - label: - type: string - description: Label for the included count information. - countInfo: - type: array - items: - $ref: "#/components/schemas/CountInfo" - description: List of data points for counts for a given date period. UserActivityInsight: required: - user @@ -8365,218 +8444,6 @@ components: $ref: "#/components/schemas/CountInfo" activeDayCount: $ref: "#/components/schemas/CountInfo" - UserInsightsResponse: - properties: - lastLogTimestamp: - type: integer - description: Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - activityInsights: - type: array - items: - $ref: "#/components/schemas/UserActivityInsight" - description: Insights for all active users with respect to set of actions. - inactiveInsights: - type: array - items: - $ref: "#/components/schemas/UserActivityInsight" - description: Insights for all in inactive users with respect to set of actions and time period. Activity count will be set to 0. - totalTeammates: - type: integer - description: Total number of teammates that have logged in to the product, that are still valid teammates. - totalActiveUsers: - type: integer - description: Total number of active users in the requested period. - departments: - type: array - items: - type: string - description: list of departments applicable for users tab. - DocumentInsight: - required: - - document - properties: - document: - $ref: "#/components/schemas/Document" - viewCount: - $ref: "#/components/schemas/CountInfo" - visitorCount: - $ref: "#/components/schemas/CountInfo" - ContentInsightsResponse: - properties: - lastLogTimestamp: - type: integer - description: Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - documentInsights: - type: array - items: - $ref: "#/components/schemas/DocumentInsight" - description: Insights for documents. - departments: - type: array - items: - type: string - description: list of departments applicable for contents tab. - minDepartmentSizeThreshold: - type: integer - description: Min threshold in size of departments while populating results, otherwise 0. - minVisitorThreshold: - type: integer - description: Minimum number of visitors to a document required to be included in insights. - QueryInsight: - required: - - query - properties: - query: - type: string - description: The query string the information is about. - searchCount: - $ref: "#/components/schemas/CountInfo" - searchorCount: - $ref: "#/components/schemas/CountInfo" - searchWithClickCount: - $ref: "#/components/schemas/CountInfo" - clickCount: - $ref: "#/components/schemas/CountInfo" - similarQueries: - type: array - items: - $ref: "#/components/schemas/QueryInsight" - description: list of similar queries to current one. - QueryInsightsResponse: - properties: - lastLogTimestamp: - type: integer - description: Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - queryInsights: - type: array - items: - $ref: "#/components/schemas/QueryInsight" - description: Insights for queries. - lowPerformingQueryInsights: - type: array - items: - $ref: "#/components/schemas/QueryInsight" - description: Insights for low performing queries without good results. - departments: - type: array - items: - type: string - description: list of departments applicable for queries tab. - minVisitorThreshold: - type: integer - description: Min threshold in number of visitors while populating results, otherwise 0. - ShortcutInsight: - required: - - shortcut - properties: - shortcut: - $ref: "#/components/schemas/Shortcut" - visitCount: - $ref: "#/components/schemas/CountInfo" - visitorCount: - $ref: "#/components/schemas/CountInfo" - ShortcutInsightsResponse: - properties: - lastLogTimestamp: - type: integer - description: Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - shortcutInsights: - type: array - items: - $ref: "#/components/schemas/ShortcutInsight" - description: Insights for shortcuts. - departments: - type: array - items: - type: string - description: list of departments applicable for shortcuts tab. - minVisitorThreshold: - type: integer - description: Min threshold in number of visitors while populating results, otherwise 0. - AiInsightsResponse: - properties: - lastLogTimestamp: - type: integer - description: Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - assistantInsights: - type: array - items: - $ref: "#/components/schemas/UserActivityInsight" - totalActiveAssistantUsers: - type: integer - description: Total number of Active Assistant users (chat, summary, AIA) in requested period. - totalChatMessages: - type: integer - description: Total number of Chat messages sent in requested period. - totalAiSummarizations: - type: integer - description: Total number of AI Document Summarizations invoked in the requested period. - totalAiAnswers: - type: integer - description: Total number of AI Answers generated in the requested period. - totalUpvotes: - type: integer - description: Total number of Chat messages which received upvotes by the user. - totalDownvotes: - type: integer - description: Total number of Chat messages which received downvotes by the user. - totalGleanbotResponses: - type: integer - description: Total number of Gleanbot responses, both proactive and reactive. - totalGleanbotResponsesShared: - type: integer - description: Total number of Gleanbot responses shared publicly (upvoted). - totalGleanbotResponsesNotHelpful: - type: integer - description: Total number of Glean responses rejected as not helpful (downvoted). - departments: - type: array - items: - type: string - description: list of departments applicable for users tab. - AiAppActionCounts: - type: object - additionalProperties: - type: integer - description: Map from action to frequency. - properties: - totalSlackbotResponses: - type: integer - description: Total number of Slackbot responses, both proactive and reactive. - totalSlackbotResponsesShared: - type: integer - description: Total number of Slackbot responses shared publicly (upvoted). - totalSlackbotResponsesNotHelpful: - type: integer - description: Total number of Slackbot responses rejected as not helpful (downvoted). - totalChatMessages: - type: integer - description: Total number of Chat messages sent in requested period. - totalUpvotes: - type: integer - description: Total number of Chat messages which received upvotes by the user. - totalDownvotes: - type: integer - description: Total number of Chat messages which received downvotes by the user. - AiAppsInsightsResponse: - properties: - lastLogTimestamp: - type: integer - description: Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - aiAppInsights: - type: array - items: - $ref: "#/components/schemas/UserActivityInsight" - totalActiveUsers: - type: integer - description: Total number of active users on the Ai App in the requested period. - actionCounts: - $ref: "#/components/schemas/AiAppActionCounts" - departments: - type: array - items: - type: string - description: list of departments applicable for users tab. GleanAssistInsightsResponse: properties: lastLogTimestamp: @@ -8654,6 +8521,18 @@ components: $ref: "#/components/schemas/CurrentActiveUsers" ugcSummary: $ref: "#/components/schemas/CurrentActiveUsers" + LabeledCountInfo: + required: + - label + properties: + label: + type: string + description: Label for the included count information. + countInfo: + type: array + items: + $ref: "#/components/schemas/CountInfo" + description: List of data points for counts for a given date period. PerUserInsight: properties: person: @@ -8898,51 +8777,9 @@ components: $ref: "#/components/schemas/LabeledCountInfo" InsightsResponse: properties: - timeseries: - deprecated: true - type: array - items: - $ref: "#/components/schemas/LabeledCountInfo" - description: List of timeseries to make charts (if applicable). - users: - deprecated: true - $ref: "#/components/schemas/UserInsightsResponse" - content: - deprecated: true - $ref: "#/components/schemas/ContentInsightsResponse" - queries: - deprecated: true - $ref: "#/components/schemas/QueryInsightsResponse" - collections: - deprecated: true - $ref: "#/components/schemas/ContentInsightsResponse" - collectionsV2: - deprecated: true - $ref: "#/components/schemas/ContentInsightsResponse" - shortcuts: - deprecated: true - $ref: "#/components/schemas/ShortcutInsightsResponse" - announcements: - deprecated: true - $ref: "#/components/schemas/ContentInsightsResponse" - answers: - deprecated: true - $ref: "#/components/schemas/ContentInsightsResponse" - ai: - deprecated: true - $ref: "#/components/schemas/AiInsightsResponse" - aiApps: - deprecated: true - $ref: "#/components/schemas/AiAppsInsightsResponse" gleanAssist: deprecated: true $ref: "#/components/schemas/GleanAssistInsightsResponse" - departments: - deprecated: true - type: array - items: - type: string - description: list of all departments. overviewResponse: $ref: "#/components/schemas/InsightsOverviewResponse" assistantResponse: @@ -9025,6 +8862,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 +9713,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 +9728,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 +9880,7 @@ components: - SHORTCUTS_TYPE - WORKFLOWS_TYPE - PROMPT_TEMPLATES_TYPE + - PRISM_VIEWS_TYPE FavoriteInfo: type: object properties: @@ -10399,6 +10247,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 +10339,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 +10681,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 +10702,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 +10726,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 +10764,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 +10782,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 +10798,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 +10880,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 +10892,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 +10933,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 +10944,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 +10977,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 +10989,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 +11014,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 +11025,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 +11046,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 +11074,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 +11126,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 +11143,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 +11160,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 +11220,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 +11240,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 +11258,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 +11289,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 +11307,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 +11318,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 +11361,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 +11382,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 +11432,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 +11467,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 +11495,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 +11507,6 @@ components: description: URL for the hypertext field. EmployeeInfoDefinition: type: object - description: Describes employee info properties: email: type: string @@ -11681,8 +11534,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 +11551,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 +11575,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 +11599,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 +11641,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 +11651,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 +11672,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 +11702,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 +11837,6 @@ components: example: 15 BulkUploadHistoryEvent: type: object - description: Information about a successful bulk upload properties: uploadId: type: string @@ -11999,14 +11852,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 +11866,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 +11888,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 +11920,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 +11956,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 +11975,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 +11984,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 +11999,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 +12057,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 +12086,7 @@ components: description: Additional details about the error required: - error + description: Error response for custom metadata operations PropertyDefinition: properties: name: @@ -12274,7 +12128,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 +12135,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 +12169,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 +12187,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 +12218,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 +12240,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 +12255,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 +12320,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 +12355,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 +12379,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 +12392,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 +12411,6 @@ components: SensitiveInfoType: properties: likelihoodThreshold: - deprecated: true type: string enum: - LIKELY @@ -12564,98 +12418,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 +12527,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 +12563,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 +12610,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 +12618,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 +12736,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 +12772,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 +12823,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 +12904,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 +12933,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 +12951,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 +13021,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 +13040,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..06c8389e 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,12 +1,12 @@ -speakeasyVersion: 1.686.0 +speakeasyVersion: 1.704.0 sources: Glean API: sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:fcb56a3a1b355cdff7e63a0b76385f81472ce01a748f25a409b13b70d89436cc - sourceBlobDigest: sha256:01a8dbd2649712ab871b1799b6c76f92f4edb070c675738cac74685c81879a37 + sourceRevisionDigest: sha256:da507d11771bbbe13a9d4181ca10615f2a50d8ae6815afe6ef8c26895eb9f4dc + sourceBlobDigest: sha256:873d4d929c0aad705f509b4919d45704a5678330455836af99760654874fc593 tags: - latest - - speakeasy-sdk-regen-1768441819 + - speakeasy-sdk-regen-1770164832 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:da507d11771bbbe13a9d4181ca10615f2a50d8ae6815afe6ef8c26895eb9f4dc + sourceBlobDigest: sha256:873d4d929c0aad705f509b4919d45704a5678330455836af99760654874fc593 codeSamplesNamespace: glean-api-specs-python-code-samples - codeSamplesRevisionDigest: sha256:77edd92d12a6f8e9e87bc2578f8369e25dba1060192ba455304996c267701c6a + codeSamplesRevisionDigest: sha256:63149e84cbe4b93d8b304a32eb7bb1d67c2228b9478c68aa3df0fbef5bbdcc30 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/RELEASES.md b/RELEASES.md index 96a2a717..bf49b9bf 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-02-05 02:09:47 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.704.0 (2.806.4) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v0.12.0] . +### Releases +- [PyPI v0.12.0] https://pypi.org/project/glean-api-client/0.12.0 - . \ 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/agentenum.md b/docs/models/agentenum.md index b80a0fea..2d52ff02 100644 --- a/docs/models/agentenum.md +++ b/docs/models/agentenum.md @@ -11,4 +11,5 @@ Name of the agent. | `GPT` | GPT | | `UNIVERSAL` | UNIVERSAL | | `FAST` | FAST | -| `ADVANCED` | ADVANCED | \ No newline at end of file +| `ADVANCED` | ADVANCED | +| `AUTO` | AUTO | \ No newline at end of file diff --git a/docs/models/aiappactioncounts.md b/docs/models/aiappactioncounts.md deleted file mode 100644 index cb0b5e37..00000000 --- a/docs/models/aiappactioncounts.md +++ /dev/null @@ -1,16 +0,0 @@ -# AiAppActionCounts - -Map from action to frequency. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | -| `total_slackbot_responses` | *Optional[int]* | :heavy_minus_sign: | Total number of Slackbot responses, both proactive and reactive. | -| `total_slackbot_responses_shared` | *Optional[int]* | :heavy_minus_sign: | Total number of Slackbot responses shared publicly (upvoted). | -| `total_slackbot_responses_not_helpful` | *Optional[int]* | :heavy_minus_sign: | Total number of Slackbot responses rejected as not helpful (downvoted). | -| `total_chat_messages` | *Optional[int]* | :heavy_minus_sign: | Total number of Chat messages sent in requested period. | -| `total_upvotes` | *Optional[int]* | :heavy_minus_sign: | Total number of Chat messages which received upvotes by the user. | -| `total_downvotes` | *Optional[int]* | :heavy_minus_sign: | Total number of Chat messages which received downvotes by the user. | -| `__pydantic_extra__` | Dict[str, *int*] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/aiappsinsightsresponse.md b/docs/models/aiappsinsightsresponse.md deleted file mode 100644 index 81de9209..00000000 --- a/docs/models/aiappsinsightsresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# AiAppsInsightsResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `last_log_timestamp` | *Optional[int]* | :heavy_minus_sign: | Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). | -| `ai_app_insights` | List[[models.UserActivityInsight](../models/useractivityinsight.md)] | :heavy_minus_sign: | N/A | -| `total_active_users` | *Optional[int]* | :heavy_minus_sign: | Total number of active users on the Ai App in the requested period. | -| `action_counts` | [Optional[models.AiAppActionCounts]](../models/aiappactioncounts.md) | :heavy_minus_sign: | Map from action to frequency. | -| `departments` | List[*str*] | :heavy_minus_sign: | list of departments applicable for users tab. | \ No newline at end of file diff --git a/docs/models/aiinsightsresponse.md b/docs/models/aiinsightsresponse.md deleted file mode 100644 index 670dbf43..00000000 --- a/docs/models/aiinsightsresponse.md +++ /dev/null @@ -1,19 +0,0 @@ -# AiInsightsResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `last_log_timestamp` | *Optional[int]* | :heavy_minus_sign: | Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). | -| `assistant_insights` | List[[models.UserActivityInsight](../models/useractivityinsight.md)] | :heavy_minus_sign: | N/A | -| `total_active_assistant_users` | *Optional[int]* | :heavy_minus_sign: | Total number of Active Assistant users (chat, summary, AIA) in requested period. | -| `total_chat_messages` | *Optional[int]* | :heavy_minus_sign: | Total number of Chat messages sent in requested period. | -| `total_ai_summarizations` | *Optional[int]* | :heavy_minus_sign: | Total number of AI Document Summarizations invoked in the requested period. | -| `total_ai_answers` | *Optional[int]* | :heavy_minus_sign: | Total number of AI Answers generated in the requested period. | -| `total_upvotes` | *Optional[int]* | :heavy_minus_sign: | Total number of Chat messages which received upvotes by the user. | -| `total_downvotes` | *Optional[int]* | :heavy_minus_sign: | Total number of Chat messages which received downvotes by the user. | -| `total_gleanbot_responses` | *Optional[int]* | :heavy_minus_sign: | Total number of Gleanbot responses, both proactive and reactive. | -| `total_gleanbot_responses_shared` | *Optional[int]* | :heavy_minus_sign: | Total number of Gleanbot responses shared publicly (upvoted). | -| `total_gleanbot_responses_not_helpful` | *Optional[int]* | :heavy_minus_sign: | Total number of Glean responses rejected as not helpful (downvoted). | -| `departments` | List[*str*] | :heavy_minus_sign: | list of departments applicable for users tab. | \ No newline at end of file diff --git a/docs/models/assistantactivitytype.md b/docs/models/assistantactivitytype.md deleted file mode 100644 index 9502cc83..00000000 --- a/docs/models/assistantactivitytype.md +++ /dev/null @@ -1,11 +0,0 @@ -# AssistantActivityType - - -## Values - -| Name | Value | -| ------------------- | ------------------- | -| `GLEAN_CHAT` | GLEAN_CHAT | -| `AI_SUMMARY` | AI_SUMMARY | -| `AI_ANSWER` | AI_ANSWER | -| `GLEANBOT_RESPONSE` | GLEANBOT_RESPONSE | \ 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/contentinsightsresponse.md b/docs/models/contentinsightsresponse.md deleted file mode 100644 index 54d206ac..00000000 --- a/docs/models/contentinsightsresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# ContentInsightsResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `last_log_timestamp` | *Optional[int]* | :heavy_minus_sign: | Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). | -| `document_insights` | List[[models.DocumentInsight](../models/documentinsight.md)] | :heavy_minus_sign: | Insights for documents. | -| `departments` | List[*str*] | :heavy_minus_sign: | list of departments applicable for contents tab. | -| `min_department_size_threshold` | *Optional[int]* | :heavy_minus_sign: | Min threshold in size of departments while populating results, otherwise 0. | -| `min_visitor_threshold` | *Optional[int]* | :heavy_minus_sign: | Minimum number of visitors to a document required to be included in insights. | \ 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/documentinsight.md b/docs/models/documentinsight.md deleted file mode 100644 index 278e30df..00000000 --- a/docs/models/documentinsight.md +++ /dev/null @@ -1,10 +0,0 @@ -# DocumentInsight - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | -| `document` | [models.Document](../models/document.md) | :heavy_check_mark: | N/A | -| `view_count` | [Optional[models.CountInfo]](../models/countinfo.md) | :heavy_minus_sign: | N/A | -| `visitor_count` | [Optional[models.CountInfo]](../models/countinfo.md) | :heavy_minus_sign: | N/A | \ 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/insightsagentsrequestoptions.md b/docs/models/insightsagentsrequestoptions.md deleted file mode 100644 index 98c92da5..00000000 --- a/docs/models/insightsagentsrequestoptions.md +++ /dev/null @@ -1,8 +0,0 @@ -# InsightsAgentsRequestOptions - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `agent_ids` | List[*str*] | :heavy_minus_sign: | IDs of the Agents for which Insights should be returned. An empty array signifies all. | \ No newline at end of file diff --git a/docs/models/insightsaiapprequestoptions.md b/docs/models/insightsaiapprequestoptions.md deleted file mode 100644 index 596378b6..00000000 --- a/docs/models/insightsaiapprequestoptions.md +++ /dev/null @@ -1,8 +0,0 @@ -# InsightsAiAppRequestOptions - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | -| `ai_app_ids` | List[*str*] | :heavy_minus_sign: | IDs of the AI Apps for which Insights should be returned. An empty array signifies all. | \ No newline at end of file diff --git a/docs/models/insightsrequest.md b/docs/models/insightsrequest.md index b9c2ea45..40dfc4f3 100644 --- a/docs/models/insightsrequest.md +++ b/docs/models/insightsrequest.md @@ -3,15 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `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 | -| `disable_per_user_insights` | *Optional[bool]* | :heavy_minus_sign: | If true, suppresses the generation of per-user Insights in the response. Default is false. | -| ~~`categories`~~ | List[[models.InsightsRequestCategory](../models/insightsrequestcategory.md)] | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Categories of data requested. Request can include single or multiple types. | -| ~~`departments`~~ | List[*str*] | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Departments that the data is requested for. If this is empty, corresponds to whole company. | -| `day_range` | [Optional[models.Period]](../models/period.md) | :heavy_minus_sign: | N/A | -| `ai_app_request_options` | [Optional[models.InsightsAiAppRequestOptions]](../models/insightsaiapprequestoptions.md) | :heavy_minus_sign: | N/A | -| `agents_request_options` | [Optional[models.InsightsAgentsRequestOptions]](../models/insightsagentsrequestoptions.md) | :heavy_minus_sign: | N/A | -| ~~`assistant_activity_types`~~ | List[[models.AssistantActivityType](../models/assistantactivitytype.md)] | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Types of activity that should count in the definition of an Assistant Active User. Affects only insights for AI category. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `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 | +| `disable_per_user_insights` | *Optional[bool]* | :heavy_minus_sign: | If true, suppresses the generation of per-user Insights in the response. Default is false. | \ No newline at end of file diff --git a/docs/models/insightsrequestcategory.md b/docs/models/insightsrequestcategory.md deleted file mode 100644 index f5831a04..00000000 --- a/docs/models/insightsrequestcategory.md +++ /dev/null @@ -1,21 +0,0 @@ -# InsightsRequestCategory - - -## Values - -| Name | Value | -| ---------------------------- | ---------------------------- | -| `AGENTS` | AGENTS | -| `AGENT_USERS` | AGENT_USERS | -| `TOP_AGENTS` | TOP_AGENTS | -| `AGENTS_USAGE_BY_DEPARTMENT` | AGENTS_USAGE_BY_DEPARTMENT | -| `AI` | AI | -| `AI_APPS` | AI_APPS | -| `ANNOUNCEMENTS` | ANNOUNCEMENTS | -| `ANSWERS` | ANSWERS | -| `COLLECTIONS` | COLLECTIONS | -| `CONTENT` | CONTENT | -| `GLEAN_ASSIST` | GLEAN_ASSIST | -| `QUERIES` | QUERIES | -| `SHORTCUTS` | SHORTCUTS | -| `USERS` | USERS | \ 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/insightsresponse.md b/docs/models/insightsresponse.md index dcb429dc..978393b0 100644 --- a/docs/models/insightsresponse.md +++ b/docs/models/insightsresponse.md @@ -3,21 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| ~~`timeseries`~~ | List[[models.LabeledCountInfo](../models/labeledcountinfo.md)] | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

List of timeseries to make charts (if applicable). | -| `users` | [Optional[models.UserInsightsResponse]](../models/userinsightsresponse.md) | :heavy_minus_sign: | N/A | -| `content` | [Optional[models.ContentInsightsResponse]](../models/contentinsightsresponse.md) | :heavy_minus_sign: | N/A | -| `queries` | [Optional[models.QueryInsightsResponse]](../models/queryinsightsresponse.md) | :heavy_minus_sign: | N/A | -| `collections` | [Optional[models.ContentInsightsResponse]](../models/contentinsightsresponse.md) | :heavy_minus_sign: | N/A | -| `collections_v2` | [Optional[models.ContentInsightsResponse]](../models/contentinsightsresponse.md) | :heavy_minus_sign: | N/A | -| `shortcuts` | [Optional[models.ShortcutInsightsResponse]](../models/shortcutinsightsresponse.md) | :heavy_minus_sign: | N/A | -| `announcements` | [Optional[models.ContentInsightsResponse]](../models/contentinsightsresponse.md) | :heavy_minus_sign: | N/A | -| `answers` | [Optional[models.ContentInsightsResponse]](../models/contentinsightsresponse.md) | :heavy_minus_sign: | N/A | -| `ai` | [Optional[models.AiInsightsResponse]](../models/aiinsightsresponse.md) | :heavy_minus_sign: | N/A | -| `ai_apps` | [Optional[models.AiAppsInsightsResponse]](../models/aiappsinsightsresponse.md) | :heavy_minus_sign: | N/A | -| `glean_assist` | [Optional[models.GleanAssistInsightsResponse]](../models/gleanassistinsightsresponse.md) | :heavy_minus_sign: | N/A | -| ~~`departments`~~ | 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 all departments. | -| `overview_response` | [Optional[models.InsightsOverviewResponse]](../models/insightsoverviewresponse.md) | :heavy_minus_sign: | N/A | -| `assistant_response` | [Optional[models.AssistantInsightsResponse]](../models/assistantinsightsresponse.md) | :heavy_minus_sign: | N/A | -| `agents_response` | [Optional[models.AgentsInsightsV2Response]](../models/agentsinsightsv2response.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `glean_assist` | [Optional[models.GleanAssistInsightsResponse]](../models/gleanassistinsightsresponse.md) | :heavy_minus_sign: | N/A | +| `overview_response` | [Optional[models.InsightsOverviewResponse]](../models/insightsoverviewresponse.md) | :heavy_minus_sign: | N/A | +| `assistant_response` | [Optional[models.AssistantInsightsResponse]](../models/assistantinsightsresponse.md) | :heavy_minus_sign: | N/A | +| `agents_response` | [Optional[models.AgentsInsightsV2Response]](../models/agentsinsightsv2response.md) | :heavy_minus_sign: | N/A | \ 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/queryinsight.md b/docs/models/queryinsight.md deleted file mode 100644 index 6e9a3cc0..00000000 --- a/docs/models/queryinsight.md +++ /dev/null @@ -1,13 +0,0 @@ -# QueryInsight - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | -| `query` | *str* | :heavy_check_mark: | The query string the information is about. | -| `search_count` | [Optional[models.CountInfo]](../models/countinfo.md) | :heavy_minus_sign: | N/A | -| `searchor_count` | [Optional[models.CountInfo]](../models/countinfo.md) | :heavy_minus_sign: | N/A | -| `search_with_click_count` | [Optional[models.CountInfo]](../models/countinfo.md) | :heavy_minus_sign: | N/A | -| `click_count` | [Optional[models.CountInfo]](../models/countinfo.md) | :heavy_minus_sign: | N/A | -| `similar_queries` | List[[models.QueryInsight](../models/queryinsight.md)] | :heavy_minus_sign: | list of similar queries to current one. | \ No newline at end of file diff --git a/docs/models/queryinsightsresponse.md b/docs/models/queryinsightsresponse.md deleted file mode 100644 index 2780966e..00000000 --- a/docs/models/queryinsightsresponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# QueryInsightsResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `last_log_timestamp` | *Optional[int]* | :heavy_minus_sign: | Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). | -| `query_insights` | List[[models.QueryInsight](../models/queryinsight.md)] | :heavy_minus_sign: | Insights for queries. | -| `low_performing_query_insights` | List[[models.QueryInsight](../models/queryinsight.md)] | :heavy_minus_sign: | Insights for low performing queries without good results. | -| `departments` | List[*str*] | :heavy_minus_sign: | list of departments applicable for queries tab. | -| `min_visitor_threshold` | *Optional[int]* | :heavy_minus_sign: | Min threshold in number of visitors while populating results, otherwise 0. | \ 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/shortcutinsight.md b/docs/models/shortcutinsight.md deleted file mode 100644 index 6ad32115..00000000 --- a/docs/models/shortcutinsight.md +++ /dev/null @@ -1,10 +0,0 @@ -# ShortcutInsight - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | -| `shortcut` | [models.Shortcut](../models/shortcut.md) | :heavy_check_mark: | N/A | -| `visit_count` | [Optional[models.CountInfo]](../models/countinfo.md) | :heavy_minus_sign: | N/A | -| `visitor_count` | [Optional[models.CountInfo]](../models/countinfo.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shortcutinsightsresponse.md b/docs/models/shortcutinsightsresponse.md deleted file mode 100644 index 72d1b064..00000000 --- a/docs/models/shortcutinsightsresponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# ShortcutInsightsResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `last_log_timestamp` | *Optional[int]* | :heavy_minus_sign: | Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). | -| `shortcut_insights` | List[[models.ShortcutInsight](../models/shortcutinsight.md)] | :heavy_minus_sign: | Insights for shortcuts. | -| `departments` | List[*str*] | :heavy_minus_sign: | list of departments applicable for shortcuts tab. | -| `min_visitor_threshold` | *Optional[int]* | :heavy_minus_sign: | Min threshold in number of visitors while populating results, otherwise 0. | \ 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/userinsightsresponse.md b/docs/models/userinsightsresponse.md deleted file mode 100644 index 55e1feea..00000000 --- a/docs/models/userinsightsresponse.md +++ /dev/null @@ -1,13 +0,0 @@ -# UserInsightsResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | -| `last_log_timestamp` | *Optional[int]* | :heavy_minus_sign: | Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). | -| `activity_insights` | List[[models.UserActivityInsight](../models/useractivityinsight.md)] | :heavy_minus_sign: | Insights for all active users with respect to set of actions. | -| `inactive_insights` | List[[models.UserActivityInsight](../models/useractivityinsight.md)] | :heavy_minus_sign: | Insights for all in inactive users with respect to set of actions and time period. Activity count will be set to 0. | -| `total_teammates` | *Optional[int]* | :heavy_minus_sign: | Total number of teammates that have logged in to the product, that are still valid teammates. | -| `total_active_users` | *Optional[int]* | :heavy_minus_sign: | Total number of active users in the requested period. | -| `departments` | List[*str*] | :heavy_minus_sign: | list of departments applicable for users tab. | \ 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..a11b3322 100644 --- a/docs/sdks/insights/README.md +++ b/docs/sdks/insights/README.md @@ -31,19 +31,14 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `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 | -| `disable_per_user_insights` | *Optional[bool]* | :heavy_minus_sign: | If true, suppresses the generation of per-user Insights in the response. Default is false. | -| `categories` | List[[models.InsightsRequestCategory](../../models/insightsrequestcategory.md)] | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Categories of data requested. Request can include single or multiple types. | -| `departments` | List[*str*] | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Departments that the data is requested for. If this is empty, corresponds to whole company. | -| `day_range` | [Optional[models.Period]](../../models/period.md) | :heavy_minus_sign: | N/A | -| `ai_app_request_options` | [Optional[models.InsightsAiAppRequestOptions]](../../models/insightsaiapprequestoptions.md) | :heavy_minus_sign: | N/A | -| `agents_request_options` | [Optional[models.InsightsAgentsRequestOptions]](../../models/insightsagentsrequestoptions.md) | :heavy_minus_sign: | N/A | -| `assistant_activity_types` | List[[models.AssistantActivityType](../../models/assistantactivitytype.md)] | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Types of activity that should count in the definition of an Assistant Active User. Affects only insights for AI category. | -| `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`. | +| `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 | +| `disable_per_user_insights` | *Optional[bool]* | :heavy_minus_sign: | If true, suppresses the generation of per-user Insights in the response. Default is false. | +| `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/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/mise.toml b/mise.toml index 14a5c081..c0b7d26c 100644 --- a/mise.toml +++ b/mise.toml @@ -2,7 +2,7 @@ poetry = "latest" # matches version in .python-version -python = "3.9" +python = "3.10" # needed by speakeasy mockserver go = "1.22" diff --git a/poetry.lock b/poetry.lock index 0b8f586a..4a68e0e6 100644 --- a/poetry.lock +++ b/poetry.lock @@ -57,7 +57,7 @@ description = "Backport of asyncio.Runner, a context manager that controls event optional = false python-versions = "<3.11,>=3.8" groups = ["dev"] -markers = "python_version < \"3.11\"" +markers = "python_version == \"3.10\"" files = [ {file = "backports_asyncio_runner-1.2.0-py3-none-any.whl", hash = "sha256:0da0a936a8aeb554eccb426dc55af3ba63bcdc69fa1a600b5bb305413a4477b5"}, {file = "backports_asyncio_runner-1.2.0.tar.gz", hash = "sha256:a5aa7b2b7d8f8bfcaa2b57313f70792df84e32a2a746f585213373f900b42162"}, @@ -111,7 +111,7 @@ description = "Backport of PEP 654 (exception groups)" optional = false python-versions = ">=3.7" groups = ["main", "dev"] -markers = "python_version < \"3.11\"" +markers = "python_version == \"3.10\"" files = [ {file = "exceptiongroup-1.2.2-py3-none-any.whl", hash = "sha256:3111b9d131c238bec2f8f516e123e14ba243563fb135d3fe885990585aa7795b"}, {file = "exceptiongroup-1.2.2.tar.gz", hash = "sha256:47c2edf7c6738fafb49fd34290706d1a1a2f4d1c6df275526b62cbb4aa5393cc"}, @@ -545,7 +545,6 @@ mccabe = ">=0.6,<0.8" platformdirs = ">=2.2.0" tomli = {version = ">=1.1.0", markers = "python_version < \"3.11\""} tomlkit = ">=0.10.1" -typing-extensions = {version = ">=3.10.0", markers = "python_version < \"3.10\""} [package.extras] spelling = ["pyenchant (>=3.2,<4.0)"] @@ -598,19 +597,19 @@ dev = ["argcomplete", "attrs (>=19.2)", "hypothesis (>=3.56)", "mock", "requests [[package]] name = "pytest-asyncio" -version = "1.2.0" +version = "1.3.0" description = "Pytest support for asyncio" optional = false -python-versions = ">=3.9" +python-versions = ">=3.10" groups = ["dev"] files = [ - {file = "pytest_asyncio-1.2.0-py3-none-any.whl", hash = "sha256:8e17ae5e46d8e7efe51ab6494dd2010f4ca8dae51652aa3c8d55acf50bfb2e99"}, - {file = "pytest_asyncio-1.2.0.tar.gz", hash = "sha256:c609a64a2a8768462d0c99811ddb8bd2583c33fd33cf7f21af1c142e824ffb57"}, + {file = "pytest_asyncio-1.3.0-py3-none-any.whl", hash = "sha256:611e26147c7f77640e6d0a92a38ed17c3e9848063698d5c93d5aa7aa11cebff5"}, + {file = "pytest_asyncio-1.3.0.tar.gz", hash = "sha256:d7f52f36d231b80ee124cd216ffb19369aa168fc10095013c6b014a34d3ee9e5"}, ] [package.dependencies] backports-asyncio-runner = {version = ">=1.1,<2", markers = "python_version < \"3.11\""} -pytest = ">=8.2,<9" +pytest = ">=8.2,<10" typing-extensions = {version = ">=4.12", markers = "python_version < \"3.13\""} [package.extras] @@ -657,7 +656,7 @@ description = "A lil' TOML parser" optional = false python-versions = ">=3.8" groups = ["dev"] -markers = "python_version < \"3.11\"" +markers = "python_version == \"3.10\"" files = [ {file = "tomli-2.2.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:678e4fa69e4575eb77d103de3df8a895e1591b48e740211bd1067378c69e8249"}, {file = "tomli-2.2.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:023aa114dd824ade0100497eb2318602af309e5a55595f76b626d6d9f3b7b0a6"}, @@ -734,5 +733,5 @@ typing-extensions = ">=4.12.0" [metadata] lock-version = "2.1" -python-versions = ">=3.9.2" -content-hash = "c533f768dc3ca36d4b6b5cf3de1fb97329f5b9479c269cfdf3ab3f16bd657e9b" +python-versions = ">=3.10" +content-hash = "57ed5a9ea3e3be454cd27a35140011ae4c60c9c494f6d4f7f4fdfed5500b1352" diff --git a/pylintrc b/pylintrc index 8e34b78a..33c17ec9 100644 --- a/pylintrc +++ b/pylintrc @@ -89,7 +89,7 @@ persistent=yes # Minimum Python version to use for version dependent checks. Will default to # the version used to run pylint. -py-version=3.9 +py-version=3.10 # Discover python modules and packages in the file system subtree. recursive=no @@ -188,7 +188,6 @@ good-names=i, Run, _, e, - ai, id, ts diff --git a/pyproject.toml b/pyproject.toml index a9233390..6a525cbe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,11 +1,11 @@ [project] name = "glean-api-client" -version = "0.11.27" +version = "0.12.0" description = "Python Client SDK Generated by Speakeasy." authors = [{ name = "Glean Technologies, Inc." },] readme = "README-PYPI.md" -requires-python = ">=3.9.2" +requires-python = ">=3.10" dependencies = [ "httpcore >=1.0.9", "httpx >=0.28.1", @@ -30,7 +30,7 @@ mypy = "==1.15.0" pylint = "==3.2.3" pyright = "==1.1.398" pytest = "^8.4.1" -pytest-asyncio = "==1.2.0" +pytest-asyncio = ">=1.3.0" pytest-xdist = "^3.8.0" [build-system] diff --git a/speakeasyusagegen/.speakeasy/logs/naming.log b/speakeasyusagegen/.speakeasy/logs/naming.log index bfb880d4..61c56acf 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" @@ -84,13 +84,10 @@ DEBUG discriminated: Renamed to "activity_enum" registrationID: "scope:shared refType:Schemas refName:UserActivityInsight originalName:activity" DEBUG ---- Renaming 4 types with name "category" --- +--- Renaming 3 types with name "category" --- DEBUG discriminated: Renamed to "Feedback_category" labels: "original_name:category scope:shared data_type:enum refName:Feedback" registrationID: "scope:shared refType:Schemas refName:Feedback originalName:category" -DEBUG discriminated: Renamed to "InsightsRequest_category" - labels: "original_name:category scope:shared data_type:enum refName:InsightsRequest" - registrationID: "scope:shared refType:Schemas refName:InsightsRequest originalName:category" DEBUG discriminated: Renamed to "FeedRequest_category" labels: "original_name:category scope:shared data_type:enum refName:FeedRequest" registrationID: "scope:shared refType:Schemas refName:FeedRequest originalName:category" @@ -406,8 +403,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 +441,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 +651,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 +708,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,71 +725,68 @@ 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) InsightsResponse (HttpMeta: HTTPMetadata, InsightsResponse: InsightsResponse) - InsightsResponse (timeseries: array, users: UserInsightsResponse, content: ContentInsightsResponse ...) - LabeledCountInfo (label: string, countInfo: array) - UserInsightsResponse (lastLogTimestamp: integer, activityInsights: array, inactiveInsights: array ...) + InsightsResponse (gleanAssist: GleanAssistInsightsResponse, overviewResponse: InsightsOverviewResponse, assistantResponse: AssistantInsightsResponse ...) + GleanAssistInsightsResponse (lastLogTimestamp: integer, activityInsights: array, totalActiveUsers: integer ...) UserActivityInsight (user: Person, activity: enum, lastActivityTimestamp: integer ...) ActivityEnum (enum: ALL, SEARCH) - ContentInsightsResponse (lastLogTimestamp: integer, documentInsights: array, departments: array ...) - DocumentInsight (document: Document, viewCount: CountInfo, visitorCount: CountInfo) - QueryInsightsResponse (lastLogTimestamp: integer, queryInsights: array, lowPerformingQueryInsights: array ...) - QueryInsight (query: string, searchCount: CountInfo, searchorCount: CountInfo ...) - ShortcutInsightsResponse (lastLogTimestamp: integer, shortcutInsights: array, departments: array ...) - ShortcutInsight (shortcut: Shortcut, visitCount: CountInfo, visitorCount: CountInfo) - AiInsightsResponse (lastLogTimestamp: integer, assistantInsights: array, totalActiveAssistantUsers: integer ...) - AiAppsInsightsResponse (lastLogTimestamp: integer, aiAppInsights: array, totalActiveUsers: integer ...) - AiAppActionCounts (totalSlackbotResponses: integer, totalSlackbotResponsesShared: integer, totalSlackbotResponsesNotHelpful: integer ...) - GleanAssistInsightsResponse (lastLogTimestamp: integer, activityInsights: array, totalActiveUsers: integer ...) InsightsOverviewResponse (monthlyActiveUsers: integer, weeklyActiveUsers: integer, departments: array ...) InsightsSearchSummary (monthlyActiveUsers: integer, weeklyActiveUsers: integer, numSearches: integer ...) InsightsChatSummary (monthlyActiveUsers: integer, weeklyActiveUsers: integer, numChats: integer ...) CurrentActiveUsers (monthlyActiveUsers: integer, weeklyActiveUsers: integer) + LabeledCountInfo (label: string, countInfo: array) PerUserInsight (person: Person, numSearches: integer, numChats: integer ...) AssistantInsightsResponse (monthlyActiveUsers: integer, weeklyActiveUsers: integer, lastUpdatedTs: integer ...) PerUserAssistantInsight (person: Person, numChatMessages: integer, numSummarizations: integer ...) @@ -791,10 +795,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 +814,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 +849,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 +889,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..c3594d3f 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.12.0" __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.806.4" +__user_agent__: str = "speakeasy-sdk/python 0.12.0 2.806.4 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..91c67697 100644 --- a/src/glean/api_client/insights.py +++ b/src/glean/api_client/insights.py @@ -6,13 +6,14 @@ 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 +from typing import Mapping, Optional, Union class Insights(BaseSDK): def retrieve( self, *, + locale: Optional[str] = None, overview_request: Optional[ Union[ models.InsightsOverviewRequest, models.InsightsOverviewRequestTypedDict @@ -30,22 +31,6 @@ def retrieve( ] ] = None, disable_per_user_insights: Optional[bool] = None, - categories: Optional[List[models.InsightsRequestCategory]] = None, - departments: Optional[List[str]] = None, - day_range: Optional[Union[models.Period, models.PeriodTypedDict]] = None, - ai_app_request_options: Optional[ - Union[ - models.InsightsAiAppRequestOptions, - models.InsightsAiAppRequestOptionsTypedDict, - ] - ] = None, - agents_request_options: Optional[ - Union[ - models.InsightsAgentsRequestOptions, - models.InsightsAgentsRequestOptionsTypedDict, - ] - ] = None, - assistant_activity_types: Optional[List[models.AssistantActivityType]] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -55,16 +40,11 @@ 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: :param disable_per_user_insights: If true, suppresses the generation of per-user Insights in the response. Default is false. - :param categories: Categories of data requested. Request can include single or multiple types. - :param departments: Departments that the data is requested for. If this is empty, corresponds to whole company. - :param day_range: - :param ai_app_request_options: - :param agents_request_options: - :param assistant_activity_types: Types of activity that should count in the definition of an Assistant Active User. Affects only insights for AI category. :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 @@ -80,27 +60,20 @@ 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, ), - assistant_activity_types=assistant_activity_types, ) req = self._build_request( @@ -117,7 +90,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 +133,7 @@ def retrieve( async def retrieve_async( self, *, + locale: Optional[str] = None, overview_request: Optional[ Union[ models.InsightsOverviewRequest, models.InsightsOverviewRequestTypedDict @@ -177,22 +151,6 @@ async def retrieve_async( ] ] = None, disable_per_user_insights: Optional[bool] = None, - categories: Optional[List[models.InsightsRequestCategory]] = None, - departments: Optional[List[str]] = None, - day_range: Optional[Union[models.Period, models.PeriodTypedDict]] = None, - ai_app_request_options: Optional[ - Union[ - models.InsightsAiAppRequestOptions, - models.InsightsAiAppRequestOptionsTypedDict, - ] - ] = None, - agents_request_options: Optional[ - Union[ - models.InsightsAgentsRequestOptions, - models.InsightsAgentsRequestOptionsTypedDict, - ] - ] = None, - assistant_activity_types: Optional[List[models.AssistantActivityType]] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -202,16 +160,11 @@ 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: :param disable_per_user_insights: If true, suppresses the generation of per-user Insights in the response. Default is false. - :param categories: Categories of data requested. Request can include single or multiple types. - :param departments: Departments that the data is requested for. If this is empty, corresponds to whole company. - :param day_range: - :param ai_app_request_options: - :param agents_request_options: - :param assistant_activity_types: Types of activity that should count in the definition of an Assistant Active User. Affects only insights for AI category. :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 @@ -227,27 +180,20 @@ 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, ), - assistant_activity_types=assistant_activity_types, ) req = self._build_request_async( @@ -264,7 +210,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..cdeddd4a 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, @@ -135,12 +144,6 @@ AgentsUsageByDepartmentInsightTypedDict, ) from .agentusersinsight import AgentUsersInsight, AgentUsersInsightTypedDict - from .aiappactioncounts import AiAppActionCounts, AiAppActionCountsTypedDict - from .aiappsinsightsresponse import ( - AiAppsInsightsResponse, - AiAppsInsightsResponseTypedDict, - ) - from .aiinsightsresponse import AiInsightsResponse, AiInsightsResponseTypedDict from .allowlistoptions import AllowlistOptions, AllowlistOptionsTypedDict from .announcement import ( Announcement, @@ -174,6 +177,10 @@ GrantType, ) from .authtoken import AuthToken, AuthTokenTypedDict + from .autocompleteop import ( + AutocompleteRequestRequest, + AutocompleteRequestRequestTypedDict, + ) from .autocompleterequest import ( AutocompleteRequest, AutocompleteRequestResultType, @@ -300,24 +307,30 @@ ) from .connectortype import ConnectorType from .contentdefinition import ContentDefinition, ContentDefinitionTypedDict - from .contentinsightsresponse import ( - ContentInsightsResponse, - ContentInsightsResponseTypedDict, - ) 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 +350,10 @@ CreateDlpReportResponse, CreateDlpReportResponseTypedDict, ) + from .createshortcutop import ( + CreateshortcutRequestRequest, + CreateshortcutRequestRequestTypedDict, + ) from .createshortcutrequest import ( CreateShortcutRequest, CreateShortcutRequestTypedDict, @@ -436,10 +453,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 +479,10 @@ DeletechatsRequestRequestTypedDict, ) from .deletechatsrequest import DeleteChatsRequest, DeleteChatsRequestTypedDict + from .deletecollectionitemop import ( + DeletecollectionitemRequestRequest, + DeletecollectionitemRequestRequestTypedDict, + ) from .deletecollectionitemrequest import ( DeleteCollectionItemRequest, DeleteCollectionItemRequestTypedDict, @@ -462,6 +491,10 @@ DeleteCollectionItemResponse, DeleteCollectionItemResponseTypedDict, ) + from .deletecollectionop import ( + DeletecollectionRequestRequest, + DeletecollectionRequestRequestTypedDict, + ) from .deletecollectionrequest import ( DeleteCollectionRequest, DeleteCollectionRequestTypedDict, @@ -483,6 +516,10 @@ DeleteMembershipRequest, DeleteMembershipRequestTypedDict, ) + from .deleteshortcutop import ( + DeleteshortcutRequestRequest, + DeleteshortcutRequestRequestTypedDict, + ) from .deleteshortcutrequest import ( DeleteShortcutRequest, DeleteShortcutRequestTypedDict, @@ -514,7 +551,6 @@ from .dlpsimpleresult import DlpSimpleResult from .documentcontent import DocumentContent, DocumentContentTypedDict from .documentdefinition import DocumentDefinition, DocumentDefinitionTypedDict - from .documentinsight import DocumentInsight, DocumentInsightTypedDict from .documentinteractionsdefinition import ( DocumentInteractionsDefinition, DocumentInteractionsDefinitionTypedDict, @@ -571,11 +607,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 +628,10 @@ EditCollectionItemResponse, EditCollectionItemResponseTypedDict, ) + from .editcollectionop import ( + EditcollectionRequestRequest, + EditcollectionRequestRequestTypedDict, + ) from .editcollectionrequest import ( EditCollectionRequest, EditCollectionRequestTypedDict, @@ -593,6 +641,7 @@ EditCollectionResponseErrorCode, EditCollectionResponseTypedDict, ) + from .editpinop import EditpinRequestRequest, EditpinRequestRequestTypedDict from .editpinrequest import EditPinRequest, EditPinRequestTypedDict from .employeeinfodefinition import ( EmployeeInfoDefinition, @@ -646,6 +695,7 @@ UIConfig, UIConfigTypedDict, ) + from .feedop import FeedRequestRequest, FeedRequestRequestTypedDict from .feedrequest import FeedRequest, FeedRequestCategory, FeedRequestTypedDict from .feedrequestoptions import ( CategoryToResultSize, @@ -675,6 +725,7 @@ GetAnswerErrorErrorType, GetAnswerErrorTypedDict, ) + from .getanswerop import GetanswerRequestRequest, GetanswerRequestRequestTypedDict from .getanswerrequest import GetAnswerRequest, GetAnswerRequestTypedDict from .getanswerresponse import GetAnswerResponse, GetAnswerResponseTypedDict from .getchatapplicationop import ( @@ -701,6 +752,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 +772,10 @@ GetDlpReportResponse, GetDlpReportResponseTypedDict, ) + from .getdocpermissionsop import ( + GetdocpermissionsRequestRequest, + GetdocpermissionsRequestRequestTypedDict, + ) from .getdocpermissionsrequest import ( GetDocPermissionsRequest, GetDocPermissionsRequestTypedDict, @@ -733,6 +792,10 @@ GetDocumentCountResponse, GetDocumentCountResponseTypedDict, ) + from .getdocumentsbyfacetsop import ( + GetdocumentsbyfacetsRequestRequest, + GetdocumentsbyfacetsRequestRequestTypedDict, + ) from .getdocumentsbyfacetsrequest import ( GetDocumentsByFacetsRequest, GetDocumentsByFacetsRequestTypedDict, @@ -741,6 +804,10 @@ GetDocumentsByFacetsResponse, GetDocumentsByFacetsResponseTypedDict, ) + from .getdocumentsop import ( + GetdocumentsRequestRequest, + GetdocumentsRequestRequestTypedDict, + ) from .getdocumentsrequest import ( GetDocumentsRequest, GetDocumentsRequestIncludeField, @@ -766,6 +833,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 +841,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 @@ -827,19 +899,12 @@ InputOptionsTimePeriodType, InputOptionsTypedDict, ) - from .insightsagentsrequestoptions import ( - InsightsAgentsRequestOptions, - InsightsAgentsRequestOptionsTypedDict, - ) - from .insightsaiapprequestoptions import ( - InsightsAiAppRequestOptions, - InsightsAiAppRequestOptionsTypedDict, - ) from .insightsassistantrequest import ( InsightsAssistantRequest, InsightsAssistantRequestTypedDict, ) from .insightschatsummary import InsightsChatSummary, InsightsChatSummaryTypedDict + from .insightsop import InsightsRequestRequest, InsightsRequestRequestTypedDict from .insightsoverviewrequest import ( InsightsOverviewRequest, InsightsOverviewRequestTypedDict, @@ -848,12 +913,7 @@ InsightsOverviewResponse, InsightsOverviewResponseTypedDict, ) - from .insightsrequest import ( - AssistantActivityType, - InsightsRequest, - InsightsRequestCategory, - InsightsRequestTypedDict, - ) + from .insightsrequest import InsightsRequest, InsightsRequestTypedDict from .insightsresponse import InsightsResponse, InsightsResponseTypedDict from .insightssearchsummary import ( InsightsSearchSummary, @@ -864,10 +924,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 +952,10 @@ ListDlpReportsResponse, ListDlpReportsResponseTypedDict, ) + from .listentitiesop import ( + ListentitiesRequestRequest, + ListentitiesRequestRequestTypedDict, + ) from .listentitiesrequest import ( ListEntitiesRequest, ListEntitiesRequestEntityType, @@ -895,9 +967,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 +1008,7 @@ MessageTextBlockTypedDict, MessageTypedDict, ) + from .messagesop import MessagesRequestRequest, MessagesRequestRequestTypedDict from .messagesrequest import ( Datasource, Direction, @@ -950,6 +1029,7 @@ OperatorType, ) from .operatorscope import OperatorScope, OperatorScopeTypedDict + from .peopleop import PeopleRequestRequest, PeopleRequestRequestTypedDict from .peoplerequest import ( IncludeType, PeopleRequest, @@ -972,6 +1052,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 ( @@ -1014,13 +1095,12 @@ UIOptions, ) from .propertygroup import PropertyGroup, PropertyGroupTypedDict - from .queryinsight import QueryInsight, QueryInsightTypedDict - from .queryinsightsresponse import ( - QueryInsightsResponse, - QueryInsightsResponseTypedDict, - ) from .quicklink import Quicklink, QuicklinkTypedDict, Scope from .readpermission import ReadPermission, ReadPermissionTypedDict + from .recommendationsop import ( + RecommendationsRequestRequest, + RecommendationsRequestRequestTypedDict, + ) from .recommendationsrequest import ( RecommendationsRequest, RecommendationsRequestTypedDict, @@ -1054,6 +1134,7 @@ SearchAgentsResponse, SearchAgentsResponseTypedDict, ) + from .searchop import SearchRequestRequest, SearchRequestRequestTypedDict from .searchproviderinfo import SearchProviderInfo, SearchProviderInfoTypedDict from .searchrequest import SearchRequest, SearchRequestTypedDict from .searchrequestinputdetails import ( @@ -1092,11 +1173,6 @@ ShortcutErrorErrorType, ShortcutErrorTypedDict, ) - from .shortcutinsight import ShortcutInsight, ShortcutInsightTypedDict - from .shortcutinsightsresponse import ( - ShortcutInsightsResponse, - ShortcutInsightsResponseTypedDict, - ) from .shortcutmutableproperties import ( ShortcutMutableProperties, ShortcutMutablePropertiesTypedDict, @@ -1123,6 +1199,7 @@ StructuredTextMutableProperties, StructuredTextMutablePropertiesTypedDict, ) + from .summarizeop import SummarizeRequestRequest, SummarizeRequestRequestTypedDict from .summarizerequest import SummarizeRequest, SummarizeRequestTypedDict from .summarizeresponse import ( Error, @@ -1161,6 +1238,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 +1278,10 @@ UpdatePermissionsRequestTypedDict, ) from .updatepolicyop import UpdatepolicyRequest, UpdatepolicyRequestTypedDict + from .updateshortcutop import ( + UpdateshortcutRequestRequest, + UpdateshortcutRequestRequestTypedDict, + ) from .updateshortcutrequest import ( UpdateShortcutRequest, UpdateShortcutRequestTypedDict, @@ -1235,10 +1321,6 @@ UserGeneratedContentID, UserGeneratedContentIDTypedDict, ) - from .userinsightsresponse import ( - UserInsightsResponse, - UserInsightsResponseTypedDict, - ) from .userreferencedefinition import ( UserReferenceDefinition, UserReferenceDefinitionTypedDict, @@ -1247,6 +1329,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 +1415,14 @@ "AddCollectionItemsRequestTypedDict", "AddCollectionItemsResponse", "AddCollectionItemsResponseTypedDict", + "AddcollectionitemsRequestRequest", + "AddcollectionitemsRequestRequestTypedDict", "AdditionalFieldDefinition", "AdditionalFieldDefinitionTypedDict", + "AddverificationreminderRequest", + "AddverificationreminderRequestTypedDict", + "AdminsearchRequest", + "AdminsearchRequestTypedDict", "Agent", "AgentCapabilities", "AgentCapabilitiesTypedDict", @@ -1360,12 +1449,6 @@ "AgentsInsightsV2ResponseTypedDict", "AgentsUsageByDepartmentInsight", "AgentsUsageByDepartmentInsightTypedDict", - "AiAppActionCounts", - "AiAppActionCountsTypedDict", - "AiAppsInsightsResponse", - "AiAppsInsightsResponseTypedDict", - "AiInsightsResponse", - "AiInsightsResponseTypedDict", "AllowlistOptions", "AllowlistOptionsTypedDict", "Announcement", @@ -1391,7 +1474,6 @@ "AnswerTypedDict", "AppResult", "AppResultTypedDict", - "AssistantActivityType", "AssistantInsightsResponse", "AssistantInsightsResponseTypedDict", "AuthConfig", @@ -1403,6 +1485,8 @@ "AuthType", "Author", "AutocompleteRequest", + "AutocompleteRequestRequest", + "AutocompleteRequestRequestTypedDict", "AutocompleteRequestResultType", "AutocompleteRequestTypedDict", "AutocompleteResponse", @@ -1519,8 +1603,6 @@ "ConnectorType", "ContentDefinition", "ContentDefinitionTypedDict", - "ContentInsightsResponse", - "ContentInsightsResponseTypedDict", "ContentType", "CountInfo", "CountInfoTypedDict", @@ -1542,8 +1624,16 @@ "CreateShortcutRequestTypedDict", "CreateShortcutResponse", "CreateShortcutResponseTypedDict", + "CreateannouncementRequestRequest", + "CreateannouncementRequestRequestTypedDict", + "CreateanswerRequestRequest", + "CreateanswerRequestRequestTypedDict", + "CreatecollectionRequestRequest", + "CreatecollectionRequestRequestTypedDict", "CreatecollectionResponse", "CreatecollectionResponseTypedDict", + "CreateshortcutRequestRequest", + "CreateshortcutRequestRequestTypedDict", "CurrentActiveUsers", "CurrentActiveUsersTypedDict", "CustomDataValue", @@ -1645,12 +1735,22 @@ "DeleteUserRequestTypedDict", "DeleteallchatsRequest", "DeleteallchatsRequestTypedDict", + "DeleteannouncementRequestRequest", + "DeleteannouncementRequestRequestTypedDict", + "DeleteanswerRequestRequest", + "DeleteanswerRequestRequestTypedDict", "DeletechatfilesRequestRequest", "DeletechatfilesRequestRequestTypedDict", "DeletechatsRequestRequest", "DeletechatsRequestRequestTypedDict", + "DeletecollectionRequestRequest", + "DeletecollectionRequestRequestTypedDict", + "DeletecollectionitemRequestRequest", + "DeletecollectionitemRequestRequestTypedDict", "DeletefindingsexportRequest", "DeletefindingsexportRequestTypedDict", + "DeleteshortcutRequestRequest", + "DeleteshortcutRequestRequestTypedDict", "Digest", "DigestSection", "DigestSectionTypedDict", @@ -1684,8 +1784,6 @@ "DocumentContentTypedDict", "DocumentDefinition", "DocumentDefinitionTypedDict", - "DocumentInsight", - "DocumentInsightTypedDict", "DocumentInteractions", "DocumentInteractionsDefinition", "DocumentInteractionsDefinitionTypedDict", @@ -1744,6 +1842,14 @@ "EditCollectionResponseTypedDict", "EditPinRequest", "EditPinRequestTypedDict", + "EditanswerRequestRequest", + "EditanswerRequestRequestTypedDict", + "EditcollectionRequestRequest", + "EditcollectionRequestRequestTypedDict", + "EditcollectionitemRequestRequest", + "EditcollectionitemRequestRequestTypedDict", + "EditpinRequestRequest", + "EditpinRequestRequestTypedDict", "EmployeeInfoDefinition", "EmployeeInfoDefinitionTypedDict", "EmployeeTeamInfo", @@ -1793,6 +1899,8 @@ "FeedRequestCategory", "FeedRequestOptions", "FeedRequestOptionsTypedDict", + "FeedRequestRequest", + "FeedRequestRequestTypedDict", "FeedRequestTypedDict", "FeedResponse", "FeedResponseTypedDict", @@ -1881,27 +1989,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", @@ -1949,10 +2071,6 @@ "InputOptionsTypedDict", "InputSchema", "InputSchemaTypedDict", - "InsightsAgentsRequestOptions", - "InsightsAgentsRequestOptionsTypedDict", - "InsightsAiAppRequestOptions", - "InsightsAiAppRequestOptionsTypedDict", "InsightsAssistantRequest", "InsightsAssistantRequestTypedDict", "InsightsChatSummary", @@ -1962,7 +2080,8 @@ "InsightsOverviewResponse", "InsightsOverviewResponseTypedDict", "InsightsRequest", - "InsightsRequestCategory", + "InsightsRequestRequest", + "InsightsRequestRequestTypedDict", "InsightsRequestTypedDict", "InsightsResponse", "InsightsResponseTypedDict", @@ -2005,12 +2124,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 +2158,8 @@ "MessageType", "MessageTypedDict", "MessagesRequest", + "MessagesRequestRequest", + "MessagesRequestRequestTypedDict", "MessagesRequestTypedDict", "MessagesResponse", "MessagesResponseTypedDict", @@ -2047,6 +2178,8 @@ "OutputSchemaTypedDict", "PeopleRequest", "PeopleRequestIncludeField", + "PeopleRequestRequest", + "PeopleRequestRequestTypedDict", "PeopleRequestTypedDict", "PeopleResponse", "PeopleResponseTypedDict", @@ -2080,6 +2213,8 @@ "PinDocument", "PinDocumentTypedDict", "PinRequest", + "PinRequestRequest", + "PinRequestRequestTypedDict", "PinRequestTypedDict", "PossibleValue", "PossibleValueTypedDict", @@ -2109,10 +2244,6 @@ "PropertyGroupTypedDict", "PropertyType", "Provider", - "QueryInsight", - "QueryInsightTypedDict", - "QueryInsightsResponse", - "QueryInsightsResponseTypedDict", "QuerySuggestion", "QuerySuggestionList", "QuerySuggestionListTypedDict", @@ -2126,6 +2257,8 @@ "RecommendationsRequest", "RecommendationsRequestOptions", "RecommendationsRequestOptionsTypedDict", + "RecommendationsRequestRequest", + "RecommendationsRequestRequestTypedDict", "RecommendationsRequestTypedDict", "ReferenceRange", "ReferenceRangeTypedDict", @@ -2183,6 +2316,8 @@ "SearchRequestInputDetailsTypedDict", "SearchRequestOptions", "SearchRequestOptionsTypedDict", + "SearchRequestRequest", + "SearchRequestRequestTypedDict", "SearchRequestTypedDict", "SearchResponse", "SearchResponseMetadata", @@ -2217,10 +2352,6 @@ "ShortcutError", "ShortcutErrorErrorType", "ShortcutErrorTypedDict", - "ShortcutInsight", - "ShortcutInsightTypedDict", - "ShortcutInsightsResponse", - "ShortcutInsightsResponseTypedDict", "ShortcutMutableProperties", "ShortcutMutablePropertiesTypedDict", "ShortcutTypedDict", @@ -2249,6 +2380,8 @@ "StructuredTextMutablePropertiesTypedDict", "StructuredTextTypedDict", "SummarizeRequest", + "SummarizeRequestRequest", + "SummarizeRequestRequestTypedDict", "SummarizeRequestTypedDict", "SummarizeResponse", "SummarizeResponseTypedDict", @@ -2303,6 +2436,8 @@ "UIOptions", "UgcType", "Unpin", + "UnpinRequest", + "UnpinRequestTypedDict", "UnpinTypedDict", "UpdateAnnouncementRequest", "UpdateAnnouncementRequestChannel", @@ -2327,8 +2462,12 @@ "UpdateShortcutResponse", "UpdateShortcutResponseTypedDict", "UpdateType", + "UpdateannouncementRequestRequest", + "UpdateannouncementRequestRequestTypedDict", "UpdatepolicyRequest", "UpdatepolicyRequestTypedDict", + "UpdateshortcutRequestRequest", + "UpdateshortcutRequestRequestTypedDict", "UploadChatFilesRequest", "UploadChatFilesRequestTypedDict", "UploadChatFilesResponse", @@ -2346,8 +2485,6 @@ "UserActivityTypedDict", "UserGeneratedContentID", "UserGeneratedContentIDTypedDict", - "UserInsightsResponse", - "UserInsightsResponseTypedDict", "UserReferenceDefinition", "UserReferenceDefinitionTypedDict", "UserRole", @@ -2368,6 +2505,8 @@ "VerificationTypedDict", "VerifyRequest", "VerifyRequestAction", + "VerifyRequestRequest", + "VerifyRequestRequestTypedDict", "VerifyRequestTypedDict", "ViewerInfo", "ViewerInfoTypedDict", @@ -2398,6 +2537,8 @@ "AddCollectionItemsError": ".addcollectionitemserror", "AddCollectionItemsErrorErrorType": ".addcollectionitemserror", "AddCollectionItemsErrorTypedDict": ".addcollectionitemserror", + "AddcollectionitemsRequestRequest": ".addcollectionitemsop", + "AddcollectionitemsRequestRequestTypedDict": ".addcollectionitemsop", "AddCollectionItemsRequest": ".addcollectionitemsrequest", "AddCollectionItemsRequestTypedDict": ".addcollectionitemsrequest", "AddCollectionItemsResponse": ".addcollectionitemsresponse", @@ -2406,6 +2547,10 @@ "AdditionalFieldDefinitionTypedDict": ".additionalfielddefinition", "Value": ".additionalfielddefinition", "ValueTypedDict": ".additionalfielddefinition", + "AddverificationreminderRequest": ".addverificationreminderop", + "AddverificationreminderRequestTypedDict": ".addverificationreminderop", + "AdminsearchRequest": ".adminsearchop", + "AdminsearchRequestTypedDict": ".adminsearchop", "Agent": ".agent", "AgentCapabilities": ".agent", "AgentCapabilitiesTypedDict": ".agent", @@ -2437,12 +2582,6 @@ "AgentsUsageByDepartmentInsightTypedDict": ".agentsusagebydepartmentinsight", "AgentUsersInsight": ".agentusersinsight", "AgentUsersInsightTypedDict": ".agentusersinsight", - "AiAppActionCounts": ".aiappactioncounts", - "AiAppActionCountsTypedDict": ".aiappactioncounts", - "AiAppsInsightsResponse": ".aiappsinsightsresponse", - "AiAppsInsightsResponseTypedDict": ".aiappsinsightsresponse", - "AiInsightsResponse": ".aiinsightsresponse", - "AiInsightsResponseTypedDict": ".aiinsightsresponse", "AllowlistOptions": ".allowlistoptions", "AllowlistOptionsTypedDict": ".allowlistoptions", "Announcement": ".announcement", @@ -2470,6 +2609,8 @@ "GrantType": ".authconfig", "AuthToken": ".authtoken", "AuthTokenTypedDict": ".authtoken", + "AutocompleteRequestRequest": ".autocompleteop", + "AutocompleteRequestRequestTypedDict": ".autocompleteop", "AutocompleteRequest": ".autocompleterequest", "AutocompleteRequestResultType": ".autocompleterequest", "AutocompleteRequestTypedDict": ".autocompleterequest", @@ -2570,19 +2711,23 @@ "ConnectorType": ".connectortype", "ContentDefinition": ".contentdefinition", "ContentDefinitionTypedDict": ".contentdefinition", - "ContentInsightsResponse": ".contentinsightsresponse", - "ContentInsightsResponseTypedDict": ".contentinsightsresponse", "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 +2740,8 @@ "CreateDlpReportRequestTypedDict": ".createdlpreportrequest", "CreateDlpReportResponse": ".createdlpreportresponse", "CreateDlpReportResponseTypedDict": ".createdlpreportresponse", + "CreateshortcutRequestRequest": ".createshortcutop", + "CreateshortcutRequestRequestTypedDict": ".createshortcutop", "CreateShortcutRequest": ".createshortcutrequest", "CreateShortcutRequestTypedDict": ".createshortcutrequest", "CreateShortcutResponse": ".createshortcutresponse", @@ -2665,8 +2812,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 +2828,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 +2848,8 @@ "DeleteGroupRequestTypedDict": ".deletegrouprequest", "DeleteMembershipRequest": ".deletemembershiprequest", "DeleteMembershipRequestTypedDict": ".deletemembershiprequest", + "DeleteshortcutRequestRequest": ".deleteshortcutop", + "DeleteshortcutRequestRequestTypedDict": ".deleteshortcutop", "DeleteShortcutRequest": ".deleteshortcutrequest", "DeleteShortcutRequestTypedDict": ".deleteshortcutrequest", "DeleteTeamRequest": ".deleteteamrequest", @@ -2732,8 +2889,6 @@ "DocumentContentTypedDict": ".documentcontent", "DocumentDefinition": ".documentdefinition", "DocumentDefinitionTypedDict": ".documentdefinition", - "DocumentInsight": ".documentinsight", - "DocumentInsightTypedDict": ".documentinsight", "DocumentInteractionsDefinition": ".documentinteractionsdefinition", "DocumentInteractionsDefinitionTypedDict": ".documentinteractionsdefinition", "DocumentOrError": ".documentorerror_union", @@ -2771,18 +2926,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 +3003,8 @@ "JustificationType": ".feedentry", "UIConfig": ".feedentry", "UIConfigTypedDict": ".feedentry", + "FeedRequestRequest": ".feedop", + "FeedRequestRequestTypedDict": ".feedop", "FeedRequest": ".feedrequest", "FeedRequestCategory": ".feedrequest", "FeedRequestTypedDict": ".feedrequest", @@ -2867,6 +3032,8 @@ "GetAnswerError": ".getanswererror", "GetAnswerErrorErrorType": ".getanswererror", "GetAnswerErrorTypedDict": ".getanswererror", + "GetanswerRequestRequest": ".getanswerop", + "GetanswerRequestRequestTypedDict": ".getanswerop", "GetAnswerRequest": ".getanswerrequest", "GetAnswerRequestTypedDict": ".getanswerrequest", "GetAnswerResponse": ".getanswerresponse", @@ -2889,6 +3056,8 @@ "GetChatRequestTypedDict": ".getchatrequest", "GetChatResponse": ".getchatresponse", "GetChatResponseTypedDict": ".getchatresponse", + "GetcollectionRequestRequest": ".getcollectionop", + "GetcollectionRequestRequestTypedDict": ".getcollectionop", "GetCollectionRequest": ".getcollectionrequest", "GetCollectionRequestTypedDict": ".getcollectionrequest", "GetCollectionResponse": ".getcollectionresponse", @@ -2897,6 +3066,8 @@ "GetDatasourceConfigRequestTypedDict": ".getdatasourceconfigrequest", "GetDlpReportResponse": ".getdlpreportresponse", "GetDlpReportResponseTypedDict": ".getdlpreportresponse", + "GetdocpermissionsRequestRequest": ".getdocpermissionsop", + "GetdocpermissionsRequestRequestTypedDict": ".getdocpermissionsop", "GetDocPermissionsRequest": ".getdocpermissionsrequest", "GetDocPermissionsRequestTypedDict": ".getdocpermissionsrequest", "GetDocPermissionsResponse": ".getdocpermissionsresponse", @@ -2905,10 +3076,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 +3097,8 @@ "GetDocumentVisibilityOverridesResponseTypedDict": ".getdocumentvisibilityoverridesresponse", "GetdocvisibilityRequest": ".getdocvisibilityop", "GetdocvisibilityRequestTypedDict": ".getdocvisibilityop", + "GetpinRequestRequest": ".getpinop", + "GetpinRequestRequestTypedDict": ".getpinop", "GetPinRequest": ".getpinrequest", "GetPinRequestTypedDict": ".getpinrequest", "GetPinResponse": ".getpinresponse", @@ -2930,10 +3107,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", @@ -2980,21 +3159,17 @@ "InputOptions": ".inputoptions", "InputOptionsTimePeriodType": ".inputoptions", "InputOptionsTypedDict": ".inputoptions", - "InsightsAgentsRequestOptions": ".insightsagentsrequestoptions", - "InsightsAgentsRequestOptionsTypedDict": ".insightsagentsrequestoptions", - "InsightsAiAppRequestOptions": ".insightsaiapprequestoptions", - "InsightsAiAppRequestOptionsTypedDict": ".insightsaiapprequestoptions", "InsightsAssistantRequest": ".insightsassistantrequest", "InsightsAssistantRequestTypedDict": ".insightsassistantrequest", "InsightsChatSummary": ".insightschatsummary", "InsightsChatSummaryTypedDict": ".insightschatsummary", + "InsightsRequestRequest": ".insightsop", + "InsightsRequestRequestTypedDict": ".insightsop", "InsightsOverviewRequest": ".insightsoverviewrequest", "InsightsOverviewRequestTypedDict": ".insightsoverviewrequest", "InsightsOverviewResponse": ".insightsoverviewresponse", "InsightsOverviewResponseTypedDict": ".insightsoverviewresponse", - "AssistantActivityType": ".insightsrequest", "InsightsRequest": ".insightsrequest", - "InsightsRequestCategory": ".insightsrequest", "InsightsRequestTypedDict": ".insightsrequest", "InsightsResponse": ".insightsresponse", "InsightsResponseTypedDict": ".insightsresponse", @@ -3004,6 +3179,8 @@ "InvalidOperatorValueErrorTypedDict": ".invalidoperatorvalueerror", "LabeledCountInfo": ".labeledcountinfo", "LabeledCountInfoTypedDict": ".labeledcountinfo", + "ListanswersRequestRequest": ".listanswersop", + "ListanswersRequestRequestTypedDict": ".listanswersop", "ListAnswersRequest": ".listanswersrequest", "ListAnswersRequestTypedDict": ".listanswersrequest", "ListAnswersResponse": ".listanswersresponse", @@ -3012,6 +3189,8 @@ "ListchatsRequestTypedDict": ".listchatsop", "ListChatsResponse": ".listchatsresponse", "ListChatsResponseTypedDict": ".listchatsresponse", + "ListcollectionsRequestRequest": ".listcollectionsop", + "ListcollectionsRequestRequestTypedDict": ".listcollectionsop", "ListCollectionsRequest": ".listcollectionsrequest", "ListCollectionsRequestTypedDict": ".listcollectionsrequest", "ListCollectionsResponse": ".listcollectionsresponse", @@ -3020,6 +3199,8 @@ "ListDlpFindingsExportsResponseTypedDict": ".listdlpfindingsexportsresponse", "ListDlpReportsResponse": ".listdlpreportsresponse", "ListDlpReportsResponseTypedDict": ".listdlpreportsresponse", + "ListentitiesRequestRequest": ".listentitiesop", + "ListentitiesRequestRequestTypedDict": ".listentitiesop", "ListEntitiesRequest": ".listentitiesrequest", "ListEntitiesRequestEntityType": ".listentitiesrequest", "ListEntitiesRequestIncludeField": ".listentitiesrequest", @@ -3028,11 +3209,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 +3238,8 @@ "MessageTextBlock": ".message", "MessageTextBlockTypedDict": ".message", "MessageTypedDict": ".message", + "MessagesRequestRequest": ".messagesop", + "MessagesRequestRequestTypedDict": ".messagesop", "Datasource": ".messagesrequest", "Direction": ".messagesrequest", "IDType": ".messagesrequest", @@ -3070,6 +3257,8 @@ "OperatorType": ".operatormetadata", "OperatorScope": ".operatorscope", "OperatorScopeTypedDict": ".operatorscope", + "PeopleRequestRequest": ".peopleop", + "PeopleRequestRequestTypedDict": ".peopleop", "IncludeType": ".peoplerequest", "PeopleRequest": ".peoplerequest", "PeopleRequestIncludeField": ".peoplerequest", @@ -3095,6 +3284,8 @@ "PerUserAssistantInsightTypedDict": ".peruserassistantinsight", "PerUserInsight": ".peruserinsight", "PerUserInsightTypedDict": ".peruserinsight", + "PinRequestRequest": ".pinop", + "PinRequestRequestTypedDict": ".pinop", "PinRequest": ".pinrequest", "PinRequestTypedDict": ".pinrequest", "PossibleValue": ".possiblevalue", @@ -3123,15 +3314,13 @@ "UIOptions": ".propertydefinition", "PropertyGroup": ".propertygroup", "PropertyGroupTypedDict": ".propertygroup", - "QueryInsight": ".queryinsight", - "QueryInsightTypedDict": ".queryinsight", - "QueryInsightsResponse": ".queryinsightsresponse", - "QueryInsightsResponseTypedDict": ".queryinsightsresponse", "Quicklink": ".quicklink", "QuicklinkTypedDict": ".quicklink", "Scope": ".quicklink", "ReadPermission": ".readpermission", "ReadPermissionTypedDict": ".readpermission", + "RecommendationsRequestRequest": ".recommendationsop", + "RecommendationsRequestRequestTypedDict": ".recommendationsop", "RecommendationsRequest": ".recommendationsrequest", "RecommendationsRequestTypedDict": ".recommendationsrequest", "RecommendationsRequestOptions": ".recommendationsrequestoptions", @@ -3164,6 +3353,8 @@ "SearchAgentsRequestTypedDict": ".searchagentsrequest", "SearchAgentsResponse": ".searchagentsresponse", "SearchAgentsResponseTypedDict": ".searchagentsresponse", + "SearchRequestRequest": ".searchop", + "SearchRequestRequestTypedDict": ".searchop", "SearchProviderInfo": ".searchproviderinfo", "SearchProviderInfoTypedDict": ".searchproviderinfo", "SearchRequest": ".searchrequest", @@ -3200,10 +3391,6 @@ "ShortcutError": ".shortcuterror", "ShortcutErrorErrorType": ".shortcuterror", "ShortcutErrorTypedDict": ".shortcuterror", - "ShortcutInsight": ".shortcutinsight", - "ShortcutInsightTypedDict": ".shortcutinsight", - "ShortcutInsightsResponse": ".shortcutinsightsresponse", - "ShortcutInsightsResponseTypedDict": ".shortcutinsightsresponse", "ShortcutMutableProperties": ".shortcutmutableproperties", "ShortcutMutablePropertiesTypedDict": ".shortcutmutableproperties", "ShortcutsPaginationMetadata": ".shortcutspaginationmetadata", @@ -3225,6 +3412,8 @@ "StructuredLocationTypedDict": ".structuredlocation", "StructuredTextMutableProperties": ".structuredtextmutableproperties", "StructuredTextMutablePropertiesTypedDict": ".structuredtextmutableproperties", + "SummarizeRequestRequest": ".summarizeop", + "SummarizeRequestRequestTypedDict": ".summarizeop", "SummarizeRequest": ".summarizerequest", "SummarizeRequestTypedDict": ".summarizerequest", "Error": ".summarizeresponse", @@ -3277,6 +3466,10 @@ "UgcType": ".ugctype", "Unpin": ".unpin", "UnpinTypedDict": ".unpin", + "UnpinRequest": ".unpinop", + "UnpinRequestTypedDict": ".unpinop", + "UpdateannouncementRequestRequest": ".updateannouncementop", + "UpdateannouncementRequestRequestTypedDict": ".updateannouncementop", "UpdateAnnouncementRequest": ".updateannouncementrequest", "UpdateAnnouncementRequestChannel": ".updateannouncementrequest", "UpdateAnnouncementRequestPostType": ".updateannouncementrequest", @@ -3297,6 +3490,8 @@ "UpdatePermissionsRequestTypedDict": ".updatepermissionsrequest", "UpdatepolicyRequest": ".updatepolicyop", "UpdatepolicyRequestTypedDict": ".updatepolicyop", + "UpdateshortcutRequestRequest": ".updateshortcutop", + "UpdateshortcutRequestRequestTypedDict": ".updateshortcutop", "UpdateShortcutRequest": ".updateshortcutrequest", "UpdateShortcutRequestTypedDict": ".updateshortcutrequest", "UpdateShortcutResponse": ".updateshortcutresponse", @@ -3323,8 +3518,6 @@ "UserActivityInsightTypedDict": ".useractivityinsight", "UserGeneratedContentID": ".usergeneratedcontentid", "UserGeneratedContentIDTypedDict": ".usergeneratedcontentid", - "UserInsightsResponse": ".userinsightsresponse", - "UserInsightsResponseTypedDict": ".userinsightsresponse", "UserReferenceDefinition": ".userreferencedefinition", "UserReferenceDefinitionTypedDict": ".userreferencedefinition", "UserRole": ".userrole", @@ -3334,6 +3527,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/agentconfig.py b/src/glean/api_client/models/agentconfig.py index b82d01a4..c8001d8e 100644 --- a/src/glean/api_client/models/agentconfig.py +++ b/src/glean/api_client/models/agentconfig.py @@ -23,6 +23,8 @@ class AgentEnum(str, Enum): FAST = "FAST" # 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. ADVANCED = "ADVANCED" + # Uses an agent powered by the agentic engine that routes between reasoning efforts based on the question and context. + AUTO = "AUTO" class Mode(str, Enum): diff --git a/src/glean/api_client/models/aiappactioncounts.py b/src/glean/api_client/models/aiappactioncounts.py deleted file mode 100644 index 5e2a0cdf..00000000 --- a/src/glean/api_client/models/aiappactioncounts.py +++ /dev/null @@ -1,98 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" - -from __future__ import annotations -from glean.api_client.types import BaseModel, UNSET_SENTINEL -import pydantic -from pydantic import ConfigDict, model_serializer -from typing import Dict, Optional -from typing_extensions import Annotated, NotRequired, TypedDict - - -class AiAppActionCountsTypedDict(TypedDict): - r"""Map from action to frequency.""" - - total_slackbot_responses: NotRequired[int] - r"""Total number of Slackbot responses, both proactive and reactive.""" - total_slackbot_responses_shared: NotRequired[int] - r"""Total number of Slackbot responses shared publicly (upvoted).""" - total_slackbot_responses_not_helpful: NotRequired[int] - r"""Total number of Slackbot responses rejected as not helpful (downvoted).""" - total_chat_messages: NotRequired[int] - r"""Total number of Chat messages sent in requested period.""" - total_upvotes: NotRequired[int] - r"""Total number of Chat messages which received upvotes by the user.""" - total_downvotes: NotRequired[int] - r"""Total number of Chat messages which received downvotes by the user.""" - - -class AiAppActionCounts(BaseModel): - r"""Map from action to frequency.""" - - model_config = ConfigDict( - populate_by_name=True, arbitrary_types_allowed=True, extra="allow" - ) - __pydantic_extra__: Dict[str, int] = pydantic.Field(init=False) - - total_slackbot_responses: Annotated[ - Optional[int], pydantic.Field(alias="totalSlackbotResponses") - ] = None - r"""Total number of Slackbot responses, both proactive and reactive.""" - - total_slackbot_responses_shared: Annotated[ - Optional[int], pydantic.Field(alias="totalSlackbotResponsesShared") - ] = None - r"""Total number of Slackbot responses shared publicly (upvoted).""" - - total_slackbot_responses_not_helpful: Annotated[ - Optional[int], pydantic.Field(alias="totalSlackbotResponsesNotHelpful") - ] = None - r"""Total number of Slackbot responses rejected as not helpful (downvoted).""" - - total_chat_messages: Annotated[ - Optional[int], pydantic.Field(alias="totalChatMessages") - ] = None - r"""Total number of Chat messages sent in requested period.""" - - total_upvotes: Annotated[Optional[int], pydantic.Field(alias="totalUpvotes")] = None - r"""Total number of Chat messages which received upvotes by the user.""" - - total_downvotes: Annotated[ - Optional[int], pydantic.Field(alias="totalDownvotes") - ] = None - r"""Total number of Chat messages which received downvotes by the user.""" - - @property - def additional_properties(self): - return self.__pydantic_extra__ - - @additional_properties.setter - def additional_properties(self, value): - self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride] - - @model_serializer(mode="wrap") - def serialize_model(self, handler): - optional_fields = set( - [ - "totalSlackbotResponses", - "totalSlackbotResponsesShared", - "totalSlackbotResponsesNotHelpful", - "totalChatMessages", - "totalUpvotes", - "totalDownvotes", - ] - ) - serialized = handler(self) - m = {} - - for n, f in type(self).model_fields.items(): - k = f.alias or n - val = serialized.get(k) - serialized.pop(k, None) - - if val != UNSET_SENTINEL: - if val is not None or k not in optional_fields: - m[k] = val - for k, v in serialized.items(): - m[k] = v - - return m diff --git a/src/glean/api_client/models/aiappsinsightsresponse.py b/src/glean/api_client/models/aiappsinsightsresponse.py deleted file mode 100644 index 538609cc..00000000 --- a/src/glean/api_client/models/aiappsinsightsresponse.py +++ /dev/null @@ -1,70 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" - -from __future__ import annotations -from .aiappactioncounts import AiAppActionCounts, AiAppActionCountsTypedDict -from .useractivityinsight import UserActivityInsight, UserActivityInsightTypedDict -from glean.api_client.types import BaseModel, UNSET_SENTINEL -import pydantic -from pydantic import model_serializer -from typing import List, Optional -from typing_extensions import Annotated, NotRequired, TypedDict - - -class AiAppsInsightsResponseTypedDict(TypedDict): - last_log_timestamp: NotRequired[int] - r"""Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC).""" - ai_app_insights: NotRequired[List[UserActivityInsightTypedDict]] - total_active_users: NotRequired[int] - r"""Total number of active users on the Ai App in the requested period.""" - action_counts: NotRequired[AiAppActionCountsTypedDict] - r"""Map from action to frequency.""" - departments: NotRequired[List[str]] - r"""list of departments applicable for users tab.""" - - -class AiAppsInsightsResponse(BaseModel): - last_log_timestamp: Annotated[ - Optional[int], pydantic.Field(alias="lastLogTimestamp") - ] = None - r"""Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC).""" - - ai_app_insights: Annotated[ - Optional[List[UserActivityInsight]], pydantic.Field(alias="aiAppInsights") - ] = None - - total_active_users: Annotated[ - Optional[int], pydantic.Field(alias="totalActiveUsers") - ] = None - r"""Total number of active users on the Ai App in the requested period.""" - - action_counts: Annotated[ - Optional[AiAppActionCounts], pydantic.Field(alias="actionCounts") - ] = None - r"""Map from action to frequency.""" - - departments: Optional[List[str]] = None - r"""list of departments applicable for users tab.""" - - @model_serializer(mode="wrap") - def serialize_model(self, handler): - optional_fields = set( - [ - "lastLogTimestamp", - "aiAppInsights", - "totalActiveUsers", - "actionCounts", - "departments", - ] - ) - 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/aiinsightsresponse.py b/src/glean/api_client/models/aiinsightsresponse.py deleted file mode 100644 index 320406b9..00000000 --- a/src/glean/api_client/models/aiinsightsresponse.py +++ /dev/null @@ -1,123 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" - -from __future__ import annotations -from .useractivityinsight import UserActivityInsight, UserActivityInsightTypedDict -from glean.api_client.types import BaseModel, UNSET_SENTINEL -import pydantic -from pydantic import model_serializer -from typing import List, Optional -from typing_extensions import Annotated, NotRequired, TypedDict - - -class AiInsightsResponseTypedDict(TypedDict): - last_log_timestamp: NotRequired[int] - r"""Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC).""" - assistant_insights: NotRequired[List[UserActivityInsightTypedDict]] - total_active_assistant_users: NotRequired[int] - r"""Total number of Active Assistant users (chat, summary, AIA) in requested period.""" - total_chat_messages: NotRequired[int] - r"""Total number of Chat messages sent in requested period.""" - total_ai_summarizations: NotRequired[int] - r"""Total number of AI Document Summarizations invoked in the requested period.""" - total_ai_answers: NotRequired[int] - r"""Total number of AI Answers generated in the requested period.""" - total_upvotes: NotRequired[int] - r"""Total number of Chat messages which received upvotes by the user.""" - total_downvotes: NotRequired[int] - r"""Total number of Chat messages which received downvotes by the user.""" - total_gleanbot_responses: NotRequired[int] - r"""Total number of Gleanbot responses, both proactive and reactive.""" - total_gleanbot_responses_shared: NotRequired[int] - r"""Total number of Gleanbot responses shared publicly (upvoted).""" - total_gleanbot_responses_not_helpful: NotRequired[int] - r"""Total number of Glean responses rejected as not helpful (downvoted).""" - departments: NotRequired[List[str]] - r"""list of departments applicable for users tab.""" - - -class AiInsightsResponse(BaseModel): - last_log_timestamp: Annotated[ - Optional[int], pydantic.Field(alias="lastLogTimestamp") - ] = None - r"""Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC).""" - - assistant_insights: Annotated[ - Optional[List[UserActivityInsight]], pydantic.Field(alias="assistantInsights") - ] = None - - total_active_assistant_users: Annotated[ - Optional[int], pydantic.Field(alias="totalActiveAssistantUsers") - ] = None - r"""Total number of Active Assistant users (chat, summary, AIA) in requested period.""" - - total_chat_messages: Annotated[ - Optional[int], pydantic.Field(alias="totalChatMessages") - ] = None - r"""Total number of Chat messages sent in requested period.""" - - total_ai_summarizations: Annotated[ - Optional[int], pydantic.Field(alias="totalAiSummarizations") - ] = None - r"""Total number of AI Document Summarizations invoked in the requested period.""" - - total_ai_answers: Annotated[ - Optional[int], pydantic.Field(alias="totalAiAnswers") - ] = None - r"""Total number of AI Answers generated in the requested period.""" - - total_upvotes: Annotated[Optional[int], pydantic.Field(alias="totalUpvotes")] = None - r"""Total number of Chat messages which received upvotes by the user.""" - - total_downvotes: Annotated[ - Optional[int], pydantic.Field(alias="totalDownvotes") - ] = None - r"""Total number of Chat messages which received downvotes by the user.""" - - total_gleanbot_responses: Annotated[ - Optional[int], pydantic.Field(alias="totalGleanbotResponses") - ] = None - r"""Total number of Gleanbot responses, both proactive and reactive.""" - - total_gleanbot_responses_shared: Annotated[ - Optional[int], pydantic.Field(alias="totalGleanbotResponsesShared") - ] = None - r"""Total number of Gleanbot responses shared publicly (upvoted).""" - - total_gleanbot_responses_not_helpful: Annotated[ - Optional[int], pydantic.Field(alias="totalGleanbotResponsesNotHelpful") - ] = None - r"""Total number of Glean responses rejected as not helpful (downvoted).""" - - departments: Optional[List[str]] = None - r"""list of departments applicable for users tab.""" - - @model_serializer(mode="wrap") - def serialize_model(self, handler): - optional_fields = set( - [ - "lastLogTimestamp", - "assistantInsights", - "totalActiveAssistantUsers", - "totalChatMessages", - "totalAiSummarizations", - "totalAiAnswers", - "totalUpvotes", - "totalDownvotes", - "totalGleanbotResponses", - "totalGleanbotResponsesShared", - "totalGleanbotResponsesNotHelpful", - "departments", - ] - ) - 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/contentinsightsresponse.py b/src/glean/api_client/models/contentinsightsresponse.py deleted file mode 100644 index b96b7701..00000000 --- a/src/glean/api_client/models/contentinsightsresponse.py +++ /dev/null @@ -1,71 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" - -from __future__ import annotations -from .documentinsight import DocumentInsight, DocumentInsightTypedDict -from glean.api_client.types import BaseModel, UNSET_SENTINEL -import pydantic -from pydantic import model_serializer -from typing import List, Optional -from typing_extensions import Annotated, NotRequired, TypedDict - - -class ContentInsightsResponseTypedDict(TypedDict): - last_log_timestamp: NotRequired[int] - r"""Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC).""" - document_insights: NotRequired[List[DocumentInsightTypedDict]] - r"""Insights for documents.""" - departments: NotRequired[List[str]] - r"""list of departments applicable for contents tab.""" - min_department_size_threshold: NotRequired[int] - r"""Min threshold in size of departments while populating results, otherwise 0.""" - min_visitor_threshold: NotRequired[int] - r"""Minimum number of visitors to a document required to be included in insights.""" - - -class ContentInsightsResponse(BaseModel): - last_log_timestamp: Annotated[ - Optional[int], pydantic.Field(alias="lastLogTimestamp") - ] = None - r"""Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC).""" - - document_insights: Annotated[ - Optional[List[DocumentInsight]], pydantic.Field(alias="documentInsights") - ] = None - r"""Insights for documents.""" - - departments: Optional[List[str]] = None - r"""list of departments applicable for contents tab.""" - - min_department_size_threshold: Annotated[ - Optional[int], pydantic.Field(alias="minDepartmentSizeThreshold") - ] = None - r"""Min threshold in size of departments while populating results, otherwise 0.""" - - min_visitor_threshold: Annotated[ - Optional[int], pydantic.Field(alias="minVisitorThreshold") - ] = None - r"""Minimum number of visitors to a document required to be included in insights.""" - - @model_serializer(mode="wrap") - def serialize_model(self, handler): - optional_fields = set( - [ - "lastLogTimestamp", - "documentInsights", - "departments", - "minDepartmentSizeThreshold", - "minVisitorThreshold", - ] - ) - 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/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/documentinsight.py b/src/glean/api_client/models/documentinsight.py deleted file mode 100644 index ae5980b5..00000000 --- a/src/glean/api_client/models/documentinsight.py +++ /dev/null @@ -1,42 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" - -from __future__ import annotations -from .countinfo import CountInfo, CountInfoTypedDict -from .document import Document, DocumentTypedDict -from glean.api_client.types import BaseModel, UNSET_SENTINEL -import pydantic -from pydantic import model_serializer -from typing import Optional -from typing_extensions import Annotated, NotRequired, TypedDict - - -class DocumentInsightTypedDict(TypedDict): - document: DocumentTypedDict - view_count: NotRequired[CountInfoTypedDict] - visitor_count: NotRequired[CountInfoTypedDict] - - -class DocumentInsight(BaseModel): - document: Document - - view_count: Annotated[Optional[CountInfo], pydantic.Field(alias="viewCount")] = None - - visitor_count: Annotated[ - Optional[CountInfo], pydantic.Field(alias="visitorCount") - ] = None - - @model_serializer(mode="wrap") - def serialize_model(self, handler): - optional_fields = set(["viewCount", "visitorCount"]) - 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/insightsagentsrequestoptions.py b/src/glean/api_client/models/insightsagentsrequestoptions.py deleted file mode 100644 index 9df6e9f7..00000000 --- a/src/glean/api_client/models/insightsagentsrequestoptions.py +++ /dev/null @@ -1,34 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" - -from __future__ import annotations -from glean.api_client.types import BaseModel, UNSET_SENTINEL -import pydantic -from pydantic import model_serializer -from typing import List, Optional -from typing_extensions import Annotated, NotRequired, TypedDict - - -class InsightsAgentsRequestOptionsTypedDict(TypedDict): - agent_ids: NotRequired[List[str]] - r"""IDs of the Agents for which Insights should be returned. An empty array signifies all.""" - - -class InsightsAgentsRequestOptions(BaseModel): - agent_ids: Annotated[Optional[List[str]], pydantic.Field(alias="agentIds")] = None - r"""IDs of the Agents for which Insights should be returned. An empty array signifies all.""" - - @model_serializer(mode="wrap") - def serialize_model(self, handler): - optional_fields = set(["agentIds"]) - 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/insightsaiapprequestoptions.py b/src/glean/api_client/models/insightsaiapprequestoptions.py deleted file mode 100644 index e1bdb0b2..00000000 --- a/src/glean/api_client/models/insightsaiapprequestoptions.py +++ /dev/null @@ -1,34 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" - -from __future__ import annotations -from glean.api_client.types import BaseModel, UNSET_SENTINEL -import pydantic -from pydantic import model_serializer -from typing import List, Optional -from typing_extensions import Annotated, NotRequired, TypedDict - - -class InsightsAiAppRequestOptionsTypedDict(TypedDict): - ai_app_ids: NotRequired[List[str]] - r"""IDs of the AI Apps for which Insights should be returned. An empty array signifies all.""" - - -class InsightsAiAppRequestOptions(BaseModel): - ai_app_ids: Annotated[Optional[List[str]], pydantic.Field(alias="aiAppIds")] = None - r"""IDs of the AI Apps for which Insights should be returned. An empty array signifies all.""" - - @model_serializer(mode="wrap") - def serialize_model(self, handler): - optional_fields = set(["aiAppIds"]) - 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/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/insightsrequest.py b/src/glean/api_client/models/insightsrequest.py index 6b0d940c..a2313971 100644 --- a/src/glean/api_client/models/insightsrequest.py +++ b/src/glean/api_client/models/insightsrequest.py @@ -5,14 +5,6 @@ AgentsInsightsV2Request, AgentsInsightsV2RequestTypedDict, ) -from .insightsagentsrequestoptions import ( - InsightsAgentsRequestOptions, - InsightsAgentsRequestOptionsTypedDict, -) -from .insightsaiapprequestoptions import ( - InsightsAiAppRequestOptions, - InsightsAiAppRequestOptionsTypedDict, -) from .insightsassistantrequest import ( InsightsAssistantRequest, InsightsAssistantRequestTypedDict, @@ -21,54 +13,19 @@ InsightsOverviewRequest, InsightsOverviewRequestTypedDict, ) -from .period import Period, PeriodTypedDict -from enum import Enum from glean.api_client.types import BaseModel, UNSET_SENTINEL import pydantic from pydantic import model_serializer -from typing import List, Optional +from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict -class InsightsRequestCategory(str, Enum): - AGENTS = "AGENTS" - AGENT_USERS = "AGENT_USERS" - TOP_AGENTS = "TOP_AGENTS" - AGENTS_USAGE_BY_DEPARTMENT = "AGENTS_USAGE_BY_DEPARTMENT" - AI = "AI" - AI_APPS = "AI_APPS" - ANNOUNCEMENTS = "ANNOUNCEMENTS" - ANSWERS = "ANSWERS" - COLLECTIONS = "COLLECTIONS" - CONTENT = "CONTENT" - GLEAN_ASSIST = "GLEAN_ASSIST" - QUERIES = "QUERIES" - SHORTCUTS = "SHORTCUTS" - USERS = "USERS" - - -class AssistantActivityType(str, Enum): - GLEAN_CHAT = "GLEAN_CHAT" - AI_SUMMARY = "AI_SUMMARY" - AI_ANSWER = "AI_ANSWER" - GLEANBOT_RESPONSE = "GLEANBOT_RESPONSE" - - class InsightsRequestTypedDict(TypedDict): overview_request: NotRequired[InsightsOverviewRequestTypedDict] assistant_request: NotRequired[InsightsAssistantRequestTypedDict] agents_request: NotRequired[AgentsInsightsV2RequestTypedDict] disable_per_user_insights: NotRequired[bool] r"""If true, suppresses the generation of per-user Insights in the response. Default is false.""" - categories: NotRequired[List[InsightsRequestCategory]] - r"""Categories of data requested. Request can include single or multiple types.""" - departments: NotRequired[List[str]] - r"""Departments that the data is requested for. If this is empty, corresponds to whole company.""" - day_range: NotRequired[PeriodTypedDict] - ai_app_request_options: NotRequired[InsightsAiAppRequestOptionsTypedDict] - agents_request_options: NotRequired[InsightsAgentsRequestOptionsTypedDict] - assistant_activity_types: NotRequired[List[AssistantActivityType]] - r"""Types of activity that should count in the definition of an Assistant Active User. Affects only insights for AI category.""" class InsightsRequest(BaseModel): @@ -89,43 +46,6 @@ class InsightsRequest(BaseModel): ] = None r"""If true, suppresses the generation of per-user Insights in the response. Default is false.""" - categories: Annotated[ - Optional[List[InsightsRequestCategory]], - pydantic.Field( - deprecated="warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible." - ), - ] = None - r"""Categories of data requested. Request can include single or multiple types.""" - - departments: Annotated[ - Optional[List[str]], - pydantic.Field( - deprecated="warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible." - ), - ] = None - r"""Departments that the data is requested for. If this is empty, corresponds to whole company.""" - - day_range: Annotated[Optional[Period], pydantic.Field(alias="dayRange")] = None - - ai_app_request_options: Annotated[ - Optional[InsightsAiAppRequestOptions], - pydantic.Field(alias="aiAppRequestOptions"), - ] = None - - agents_request_options: Annotated[ - Optional[InsightsAgentsRequestOptions], - pydantic.Field(alias="agentsRequestOptions"), - ] = None - - assistant_activity_types: Annotated[ - Optional[List[AssistantActivityType]], - pydantic.Field( - deprecated="warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible.", - alias="assistantActivityTypes", - ), - ] = None - r"""Types of activity that should count in the definition of an Assistant Active User. Affects only insights for AI category.""" - @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = set( @@ -134,12 +54,6 @@ def serialize_model(self, handler): "assistantRequest", "agentsRequest", "disablePerUserInsights", - "categories", - "departments", - "dayRange", - "aiAppRequestOptions", - "agentsRequestOptions", - "assistantActivityTypes", ] ) serialized = handler(self) diff --git a/src/glean/api_client/models/insightsresponse.py b/src/glean/api_client/models/insightsresponse.py index fe2ea34b..f58d98d7 100644 --- a/src/glean/api_client/models/insightsresponse.py +++ b/src/glean/api_client/models/insightsresponse.py @@ -5,19 +5,10 @@ AgentsInsightsV2Response, AgentsInsightsV2ResponseTypedDict, ) -from .aiappsinsightsresponse import ( - AiAppsInsightsResponse, - AiAppsInsightsResponseTypedDict, -) -from .aiinsightsresponse import AiInsightsResponse, AiInsightsResponseTypedDict from .assistantinsightsresponse import ( AssistantInsightsResponse, AssistantInsightsResponseTypedDict, ) -from .contentinsightsresponse import ( - ContentInsightsResponse, - ContentInsightsResponseTypedDict, -) from .gleanassistinsightsresponse import ( GleanAssistInsightsResponse, GleanAssistInsightsResponseTypedDict, @@ -26,86 +17,25 @@ InsightsOverviewResponse, InsightsOverviewResponseTypedDict, ) -from .labeledcountinfo import LabeledCountInfo, LabeledCountInfoTypedDict -from .queryinsightsresponse import QueryInsightsResponse, QueryInsightsResponseTypedDict -from .shortcutinsightsresponse import ( - ShortcutInsightsResponse, - ShortcutInsightsResponseTypedDict, -) -from .userinsightsresponse import UserInsightsResponse, UserInsightsResponseTypedDict from glean.api_client.types import BaseModel, UNSET_SENTINEL import pydantic from pydantic import model_serializer -from typing import List, Optional +from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict class InsightsResponseTypedDict(TypedDict): - timeseries: NotRequired[List[LabeledCountInfoTypedDict]] - r"""List of timeseries to make charts (if applicable).""" - users: NotRequired[UserInsightsResponseTypedDict] - content: NotRequired[ContentInsightsResponseTypedDict] - queries: NotRequired[QueryInsightsResponseTypedDict] - collections: NotRequired[ContentInsightsResponseTypedDict] - collections_v2: NotRequired[ContentInsightsResponseTypedDict] - shortcuts: NotRequired[ShortcutInsightsResponseTypedDict] - announcements: NotRequired[ContentInsightsResponseTypedDict] - answers: NotRequired[ContentInsightsResponseTypedDict] - ai: NotRequired[AiInsightsResponseTypedDict] - ai_apps: NotRequired[AiAppsInsightsResponseTypedDict] glean_assist: NotRequired[GleanAssistInsightsResponseTypedDict] - departments: NotRequired[List[str]] - r"""list of all departments.""" overview_response: NotRequired[InsightsOverviewResponseTypedDict] assistant_response: NotRequired[AssistantInsightsResponseTypedDict] agents_response: NotRequired[AgentsInsightsV2ResponseTypedDict] class InsightsResponse(BaseModel): - timeseries: Annotated[ - Optional[List[LabeledCountInfo]], - pydantic.Field( - deprecated="warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible." - ), - ] = None - r"""List of timeseries to make charts (if applicable).""" - - users: Optional[UserInsightsResponse] = None - - content: Optional[ContentInsightsResponse] = None - - queries: Optional[QueryInsightsResponse] = None - - collections: Optional[ContentInsightsResponse] = None - - collections_v2: Annotated[ - Optional[ContentInsightsResponse], pydantic.Field(alias="collectionsV2") - ] = None - - shortcuts: Optional[ShortcutInsightsResponse] = None - - announcements: Optional[ContentInsightsResponse] = None - - answers: Optional[ContentInsightsResponse] = None - - ai: Optional[AiInsightsResponse] = None - - ai_apps: Annotated[ - Optional[AiAppsInsightsResponse], pydantic.Field(alias="aiApps") - ] = None - glean_assist: Annotated[ Optional[GleanAssistInsightsResponse], pydantic.Field(alias="gleanAssist") ] = None - departments: Annotated[ - Optional[List[str]], - pydantic.Field( - deprecated="warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible." - ), - ] = None - r"""list of all departments.""" - overview_response: Annotated[ Optional[InsightsOverviewResponse], pydantic.Field(alias="overviewResponse") ] = None @@ -121,24 +51,7 @@ class InsightsResponse(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = set( - [ - "timeseries", - "users", - "content", - "queries", - "collections", - "collectionsV2", - "shortcuts", - "announcements", - "answers", - "ai", - "aiApps", - "gleanAssist", - "departments", - "overviewResponse", - "assistantResponse", - "agentsResponse", - ] + ["gleanAssist", "overviewResponse", "assistantResponse", "agentsResponse"] ) serialized = handler(self) 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/queryinsight.py b/src/glean/api_client/models/queryinsight.py deleted file mode 100644 index 9f3f0adc..00000000 --- a/src/glean/api_client/models/queryinsight.py +++ /dev/null @@ -1,70 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" - -from __future__ import annotations -from .countinfo import CountInfo, CountInfoTypedDict -from glean.api_client.types import BaseModel, UNSET_SENTINEL -import pydantic -from pydantic import model_serializer -from typing import List, Optional -from typing_extensions import Annotated, NotRequired, TypedDict - - -class QueryInsightTypedDict(TypedDict): - query: str - r"""The query string the information is about.""" - search_count: NotRequired[CountInfoTypedDict] - searchor_count: NotRequired[CountInfoTypedDict] - search_with_click_count: NotRequired[CountInfoTypedDict] - click_count: NotRequired[CountInfoTypedDict] - similar_queries: NotRequired[List[QueryInsightTypedDict]] - r"""list of similar queries to current one.""" - - -class QueryInsight(BaseModel): - query: str - r"""The query string the information is about.""" - - search_count: Annotated[ - Optional[CountInfo], pydantic.Field(alias="searchCount") - ] = None - - searchor_count: Annotated[ - Optional[CountInfo], pydantic.Field(alias="searchorCount") - ] = None - - search_with_click_count: Annotated[ - Optional[CountInfo], pydantic.Field(alias="searchWithClickCount") - ] = None - - click_count: Annotated[Optional[CountInfo], pydantic.Field(alias="clickCount")] = ( - None - ) - - similar_queries: Annotated[ - Optional[List[QueryInsight]], pydantic.Field(alias="similarQueries") - ] = None - r"""list of similar queries to current one.""" - - @model_serializer(mode="wrap") - def serialize_model(self, handler): - optional_fields = set( - [ - "searchCount", - "searchorCount", - "searchWithClickCount", - "clickCount", - "similarQueries", - ] - ) - 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/queryinsightsresponse.py b/src/glean/api_client/models/queryinsightsresponse.py deleted file mode 100644 index 42d2d68c..00000000 --- a/src/glean/api_client/models/queryinsightsresponse.py +++ /dev/null @@ -1,71 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" - -from __future__ import annotations -from .queryinsight import QueryInsight, QueryInsightTypedDict -from glean.api_client.types import BaseModel, UNSET_SENTINEL -import pydantic -from pydantic import model_serializer -from typing import List, Optional -from typing_extensions import Annotated, NotRequired, TypedDict - - -class QueryInsightsResponseTypedDict(TypedDict): - last_log_timestamp: NotRequired[int] - r"""Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC).""" - query_insights: NotRequired[List[QueryInsightTypedDict]] - r"""Insights for queries.""" - low_performing_query_insights: NotRequired[List[QueryInsightTypedDict]] - r"""Insights for low performing queries without good results.""" - departments: NotRequired[List[str]] - r"""list of departments applicable for queries tab.""" - min_visitor_threshold: NotRequired[int] - r"""Min threshold in number of visitors while populating results, otherwise 0.""" - - -class QueryInsightsResponse(BaseModel): - last_log_timestamp: Annotated[ - Optional[int], pydantic.Field(alias="lastLogTimestamp") - ] = None - r"""Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC).""" - - query_insights: Annotated[ - Optional[List[QueryInsight]], pydantic.Field(alias="queryInsights") - ] = None - r"""Insights for queries.""" - - low_performing_query_insights: Annotated[ - Optional[List[QueryInsight]], pydantic.Field(alias="lowPerformingQueryInsights") - ] = None - r"""Insights for low performing queries without good results.""" - - departments: Optional[List[str]] = None - r"""list of departments applicable for queries tab.""" - - min_visitor_threshold: Annotated[ - Optional[int], pydantic.Field(alias="minVisitorThreshold") - ] = None - r"""Min threshold in number of visitors while populating results, otherwise 0.""" - - @model_serializer(mode="wrap") - def serialize_model(self, handler): - optional_fields = set( - [ - "lastLogTimestamp", - "queryInsights", - "lowPerformingQueryInsights", - "departments", - "minVisitorThreshold", - ] - ) - 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/shortcutinsight.py b/src/glean/api_client/models/shortcutinsight.py deleted file mode 100644 index c22aee3c..00000000 --- a/src/glean/api_client/models/shortcutinsight.py +++ /dev/null @@ -1,44 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" - -from __future__ import annotations -from .countinfo import CountInfo, CountInfoTypedDict -from .shortcut import Shortcut, ShortcutTypedDict -from glean.api_client.types import BaseModel, UNSET_SENTINEL -import pydantic -from pydantic import model_serializer -from typing import Optional -from typing_extensions import Annotated, NotRequired, TypedDict - - -class ShortcutInsightTypedDict(TypedDict): - shortcut: ShortcutTypedDict - visit_count: NotRequired[CountInfoTypedDict] - visitor_count: NotRequired[CountInfoTypedDict] - - -class ShortcutInsight(BaseModel): - shortcut: Shortcut - - visit_count: Annotated[Optional[CountInfo], pydantic.Field(alias="visitCount")] = ( - None - ) - - visitor_count: Annotated[ - Optional[CountInfo], pydantic.Field(alias="visitorCount") - ] = None - - @model_serializer(mode="wrap") - def serialize_model(self, handler): - optional_fields = set(["visitCount", "visitorCount"]) - 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/shortcutinsightsresponse.py b/src/glean/api_client/models/shortcutinsightsresponse.py deleted file mode 100644 index 6371ed3f..00000000 --- a/src/glean/api_client/models/shortcutinsightsresponse.py +++ /dev/null @@ -1,63 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" - -from __future__ import annotations -from .shortcutinsight import ShortcutInsight, ShortcutInsightTypedDict -from glean.api_client.types import BaseModel, UNSET_SENTINEL -import pydantic -from pydantic import model_serializer -from typing import List, Optional -from typing_extensions import Annotated, NotRequired, TypedDict - - -class ShortcutInsightsResponseTypedDict(TypedDict): - last_log_timestamp: NotRequired[int] - r"""Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC).""" - shortcut_insights: NotRequired[List[ShortcutInsightTypedDict]] - r"""Insights for shortcuts.""" - departments: NotRequired[List[str]] - r"""list of departments applicable for shortcuts tab.""" - min_visitor_threshold: NotRequired[int] - r"""Min threshold in number of visitors while populating results, otherwise 0.""" - - -class ShortcutInsightsResponse(BaseModel): - last_log_timestamp: Annotated[ - Optional[int], pydantic.Field(alias="lastLogTimestamp") - ] = None - r"""Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC).""" - - shortcut_insights: Annotated[ - Optional[List[ShortcutInsight]], pydantic.Field(alias="shortcutInsights") - ] = None - r"""Insights for shortcuts.""" - - departments: Optional[List[str]] = None - r"""list of departments applicable for shortcuts tab.""" - - min_visitor_threshold: Annotated[ - Optional[int], pydantic.Field(alias="minVisitorThreshold") - ] = None - r"""Min threshold in number of visitors while populating results, otherwise 0.""" - - @model_serializer(mode="wrap") - def serialize_model(self, handler): - optional_fields = set( - [ - "lastLogTimestamp", - "shortcutInsights", - "departments", - "minVisitorThreshold", - ] - ) - 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/userinsightsresponse.py b/src/glean/api_client/models/userinsightsresponse.py deleted file mode 100644 index 835b21b3..00000000 --- a/src/glean/api_client/models/userinsightsresponse.py +++ /dev/null @@ -1,79 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" - -from __future__ import annotations -from .useractivityinsight import UserActivityInsight, UserActivityInsightTypedDict -from glean.api_client.types import BaseModel, UNSET_SENTINEL -import pydantic -from pydantic import model_serializer -from typing import List, Optional -from typing_extensions import Annotated, NotRequired, TypedDict - - -class UserInsightsResponseTypedDict(TypedDict): - last_log_timestamp: NotRequired[int] - r"""Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC).""" - activity_insights: NotRequired[List[UserActivityInsightTypedDict]] - r"""Insights for all active users with respect to set of actions.""" - inactive_insights: NotRequired[List[UserActivityInsightTypedDict]] - r"""Insights for all in inactive users with respect to set of actions and time period. Activity count will be set to 0.""" - total_teammates: NotRequired[int] - r"""Total number of teammates that have logged in to the product, that are still valid teammates.""" - total_active_users: NotRequired[int] - r"""Total number of active users in the requested period.""" - departments: NotRequired[List[str]] - r"""list of departments applicable for users tab.""" - - -class UserInsightsResponse(BaseModel): - last_log_timestamp: Annotated[ - Optional[int], pydantic.Field(alias="lastLogTimestamp") - ] = None - r"""Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC).""" - - activity_insights: Annotated[ - Optional[List[UserActivityInsight]], pydantic.Field(alias="activityInsights") - ] = None - r"""Insights for all active users with respect to set of actions.""" - - inactive_insights: Annotated[ - Optional[List[UserActivityInsight]], pydantic.Field(alias="inactiveInsights") - ] = None - r"""Insights for all in inactive users with respect to set of actions and time period. Activity count will be set to 0.""" - - total_teammates: Annotated[ - Optional[int], pydantic.Field(alias="totalTeammates") - ] = None - r"""Total number of teammates that have logged in to the product, that are still valid teammates.""" - - total_active_users: Annotated[ - Optional[int], pydantic.Field(alias="totalActiveUsers") - ] = None - r"""Total number of active users in the requested period.""" - - departments: Optional[List[str]] = None - r"""list of departments applicable for users tab.""" - - @model_serializer(mode="wrap") - def serialize_model(self, handler): - optional_fields = set( - [ - "lastLogTimestamp", - "activityInsights", - "inactiveInsights", - "totalTeammates", - "totalActiveUsers", - "departments", - ] - ) - 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/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/sdk.py b/src/glean/api_client/sdk.py index 6435cf78..0055ec5d 100644 --- a/src/glean/api_client/sdk.py +++ b/src/glean/api_client/sdk.py @@ -61,8 +61,6 @@ def __init__( retry_config: OptionalNullable[RetryConfig] = UNSET, timeout_ms: Optional[int] = None, debug_logger: Optional[Logger] = None, - exclude_deprecated_after: Optional[str] = None, - include_experimental: Optional[bool] = None, ) -> None: r"""Instantiates the SDK configuring it with the provided parameters. @@ -75,8 +73,6 @@ def __init__( :param async_client: The Async HTTP client to use for all asynchronous methods :param retry_config: The retry configuration to use for all supported methods :param timeout_ms: Optional request timeout applied to each operation in milliseconds - :param exclude_deprecated_after: Exclude API endpoints deprecated after this date (YYYY-MM-DD) - :param include_experimental: When True, enables experimental API features """ client_supplied = True if client is None: @@ -129,8 +125,6 @@ def __init__( retry_config=retry_config, timeout_ms=timeout_ms, debug_logger=debug_logger, - exclude_deprecated_after=exclude_deprecated_after, - include_experimental=include_experimental, ), parent_ref=self, ) diff --git a/src/glean/api_client/sdkconfiguration.py b/src/glean/api_client/sdkconfiguration.py index 824e2983..22e0a4ea 100644 --- a/src/glean/api_client/sdkconfiguration.py +++ b/src/glean/api_client/sdkconfiguration.py @@ -39,19 +39,6 @@ class SDKConfiguration: user_agent: str = __user_agent__ retry_config: OptionalNullable[RetryConfig] = Field(default_factory=lambda: UNSET) timeout_ms: Optional[int] = None - exclude_deprecated_after: Optional[str] = None - """ - Exclude API endpoints that will be deprecated after this date. - Use this to test your integration against upcoming deprecations. - Format: YYYY-MM-DD (e.g., '2026-10-15') - - More information: https://developers.glean.com/deprecations/overview - """ - include_experimental: Optional[bool] = None - """ - When True, enables experimental API features that are not yet generally available. - Use this to preview and test new functionality. - """ def get_server_details(self) -> Tuple[str, Dict[str, str]]: if self.server_url is not None and self.server_url: 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/src/glean/api_client/utils/__init__.py b/src/glean/api_client/utils/__init__.py index f4525b20..23ac4483 100644 --- a/src/glean/api_client/utils/__init__.py +++ b/src/glean/api_client/utils/__init__.py @@ -11,10 +11,7 @@ async def run_sync_in_thread(func: Callable[..., _T], *args) -> _T: """Run a synchronous function in a thread pool to avoid blocking the event loop.""" - if sys.version_info >= (3, 9): - return await asyncio.to_thread(func, *args) - loop = asyncio.get_event_loop() - return await loop.run_in_executor(None, func, *args) + return await asyncio.to_thread(func, *args) if TYPE_CHECKING: diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1getchat.go b/tests/mockserver/internal/handler/pathpostrestapiv1getchat.go index 020eb777..023af9c7 100644 --- a/tests/mockserver/internal/handler/pathpostrestapiv1getchat.go +++ b/tests/mockserver/internal/handler/pathpostrestapiv1getchat.go @@ -628,8 +628,8 @@ func testGetchatGetchat0(w http.ResponseWriter, req *http.Request) { Roles: []components.UserRoleSpecification{}, SourceDocumentSpec: types.Pointer(components.CreateDocumentSpecUnionDocumentSpec3( components.DocumentSpec3{ - UgcType: components.DocumentSpecUgcType1Shortcuts, - ContentID: 602763, + UgcType: components.DocumentSpecUgcType1Announcements, + ContentID: 848009, }, )), SourceType: components.AnswerSourceTypeAssistant.ToPointer(), diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1insights.go b/tests/mockserver/internal/handler/pathpostrestapiv1insights.go index 02d5ac19..6e9737ca 100644 --- a/tests/mockserver/internal/handler/pathpostrestapiv1insights.go +++ b/tests/mockserver/internal/handler/pathpostrestapiv1insights.go @@ -52,5158 +52,6 @@ func testInsightsInsights0(w http.ResponseWriter, req *http.Request) { return } var respBody *components.InsightsResponse = &components.InsightsResponse{ - Users: &components.UserInsightsResponse{ - ActivityInsights: []components.UserActivityInsight{ - components.UserActivityInsight{ - User: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 450824, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 213457, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - Pins: []components.PinDocument{ - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - }, - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - }, - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "yahoo disapprove glum ugh roundabout middle ha rise readily", - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Role: components.UserRoleVerifier, - }, - components.UserRoleSpecification{ - Role: components.UserRoleOwner, - }, - components.UserRoleSpecification{ - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Role: components.UserRoleViewer, - }, - components.UserRoleSpecification{ - Role: components.UserRoleVerifier, - }, - components.UserRoleSpecification{ - Role: components.UserRoleViewer, - }, - }, - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 237994, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 256758, - ItemType: components.CollectionItemItemTypeCollection, - }, - components.CollectionItem{ - CollectionID: 783459, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 188420, - ItemType: components.CollectionItemItemTypeText, - }, - }, - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Role: components.UserRoleVerifier, - }, - components.UserRoleSpecification{ - Role: components.UserRoleViewer, - }, - }, - }, - components.Collection{ - Name: "", - Description: "bell unabashedly unwilling disk", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 698722, - }, - }, - Interactions: &components.DocumentInteractions{ - Reacts: []components.Reaction{ - components.Reaction{}, - components.Reaction{}, - }, - Shares: []components.Share{ - components.Share{ - NumDaysAgo: 365275, - }, - components.Share{ - NumDaysAgo: 790898, - }, - }, - }, - Verification: &components.Verification{ - State: components.StateUnverified, - Metadata: &components.VerificationMetadata{ - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 856562, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 328633, - }, - }, - LastReminder: &components.Reminder{ - RemindAt: 287673, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: types.String("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: types.String("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: types.String("mimeType"), - Snippet: "snippet", - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 140875, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 210313, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - }, - }, - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - }, - }, - }, - InviteInfo: &components.InviteInfo{ - Invites: []components.ChannelInviteInfo{ - components.ChannelInviteInfo{}, - components.ChannelInviteInfo{}, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - Displayable: types.Bool(true), - }, - }, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Activity: components.ActivityEnumSearch, - }, - components.UserActivityInsight{ - User: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Activity: components.ActivityEnumAll, - }, - }, - InactiveInsights: []components.UserActivityInsight{ - components.UserActivityInsight{ - User: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Activity: components.ActivityEnumSearch, - }, - components.UserActivityInsight{ - User: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Activity: components.ActivityEnumSearch, - }, - components.UserActivityInsight{ - User: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Activity: components.ActivityEnumAll, - }, - }, - }, - Content: &components.ContentInsightsResponse{ - DocumentInsights: []components.DocumentInsight{ - components.DocumentInsight{ - Document: components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateDeprecated, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 783566, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - components.DocumentInsight{ - Document: components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateDeprecated, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 519998, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - components.DocumentInsight{ - Document: components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 500839, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - Collections: &components.ContentInsightsResponse{ - DocumentInsights: []components.DocumentInsight{ - components.DocumentInsight{ - Document: components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateDeprecated, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 609810, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - components.DocumentInsight{ - Document: components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 413854, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - components.DocumentInsight{ - Document: components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateUnverified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 150399, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - CollectionsV2: &components.ContentInsightsResponse{ - DocumentInsights: []components.DocumentInsight{ - components.DocumentInsight{ - Document: components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateUnverified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 148964, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - components.DocumentInsight{ - Document: components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateUnverified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 541220, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - components.DocumentInsight{ - Document: components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateUnverified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 222075, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - Announcements: &components.ContentInsightsResponse{ - DocumentInsights: []components.DocumentInsight{ - components.DocumentInsight{ - Document: components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateUnverified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 15843, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - Answers: &components.ContentInsightsResponse{ - DocumentInsights: []components.DocumentInsight{ - components.DocumentInsight{ - Document: components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateDeprecated, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 39567, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - components.DocumentInsight{ - Document: components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateDeprecated, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 892341, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - components.DocumentInsight{ - Document: components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateUnverified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 486092, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - Ai: &components.AiInsightsResponse{ - AssistantInsights: []components.UserActivityInsight{ - components.UserActivityInsight{ - User: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Activity: components.ActivityEnumSearch, - }, - }, - }, - AiApps: &components.AiAppsInsightsResponse{ - AiAppInsights: []components.UserActivityInsight{ - components.UserActivityInsight{ - User: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Activity: components.ActivityEnumSearch, - }, - components.UserActivityInsight{ - User: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Activity: components.ActivityEnumAll, - }, - }, - }, GleanAssist: &components.GleanAssistInsightsResponse{ ActivityInsights: []components.UserActivityInsight{ components.UserActivityInsight{ diff --git a/tests/mockserver/internal/sdk/models/components/agentconfig.go b/tests/mockserver/internal/sdk/models/components/agentconfig.go index be2e03e8..679f7f32 100644 --- a/tests/mockserver/internal/sdk/models/components/agentconfig.go +++ b/tests/mockserver/internal/sdk/models/components/agentconfig.go @@ -16,6 +16,7 @@ const ( AgentEnumUniversal AgentEnum = "UNIVERSAL" AgentEnumFast AgentEnum = "FAST" AgentEnumAdvanced AgentEnum = "ADVANCED" + AgentEnumAuto AgentEnum = "AUTO" ) func (e AgentEnum) ToPointer() *AgentEnum { @@ -36,6 +37,8 @@ func (e *AgentEnum) UnmarshalJSON(data []byte) error { case "FAST": fallthrough case "ADVANCED": + fallthrough + case "AUTO": *e = AgentEnum(v) return nil default: diff --git a/tests/mockserver/internal/sdk/models/components/aiappactioncounts.go b/tests/mockserver/internal/sdk/models/components/aiappactioncounts.go deleted file mode 100644 index f8307b79..00000000 --- a/tests/mockserver/internal/sdk/models/components/aiappactioncounts.go +++ /dev/null @@ -1,84 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -// AiAppActionCounts - Map from action to frequency. -type AiAppActionCounts struct { - // Total number of Slackbot responses, both proactive and reactive. - TotalSlackbotResponses *int64 `json:"totalSlackbotResponses,omitempty"` - // Total number of Slackbot responses shared publicly (upvoted). - TotalSlackbotResponsesShared *int64 `json:"totalSlackbotResponsesShared,omitempty"` - // Total number of Slackbot responses rejected as not helpful (downvoted). - TotalSlackbotResponsesNotHelpful *int64 `json:"totalSlackbotResponsesNotHelpful,omitempty"` - // Total number of Chat messages sent in requested period. - TotalChatMessages *int64 `json:"totalChatMessages,omitempty"` - // Total number of Chat messages which received upvotes by the user. - TotalUpvotes *int64 `json:"totalUpvotes,omitempty"` - // Total number of Chat messages which received downvotes by the user. - TotalDownvotes *int64 `json:"totalDownvotes,omitempty"` - AdditionalProperties map[string]int64 `additionalProperties:"true" json:"-"` -} - -func (a AiAppActionCounts) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(a, "", false) -} - -func (a *AiAppActionCounts) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *AiAppActionCounts) GetTotalSlackbotResponses() *int64 { - if o == nil { - return nil - } - return o.TotalSlackbotResponses -} - -func (o *AiAppActionCounts) GetTotalSlackbotResponsesShared() *int64 { - if o == nil { - return nil - } - return o.TotalSlackbotResponsesShared -} - -func (o *AiAppActionCounts) GetTotalSlackbotResponsesNotHelpful() *int64 { - if o == nil { - return nil - } - return o.TotalSlackbotResponsesNotHelpful -} - -func (o *AiAppActionCounts) GetTotalChatMessages() *int64 { - if o == nil { - return nil - } - return o.TotalChatMessages -} - -func (o *AiAppActionCounts) GetTotalUpvotes() *int64 { - if o == nil { - return nil - } - return o.TotalUpvotes -} - -func (o *AiAppActionCounts) GetTotalDownvotes() *int64 { - if o == nil { - return nil - } - return o.TotalDownvotes -} - -func (o *AiAppActionCounts) GetAdditionalProperties() map[string]int64 { - if o == nil { - return nil - } - return o.AdditionalProperties -} diff --git a/tests/mockserver/internal/sdk/models/components/aiappsinsightsresponse.go b/tests/mockserver/internal/sdk/models/components/aiappsinsightsresponse.go deleted file mode 100644 index 8de39cd4..00000000 --- a/tests/mockserver/internal/sdk/models/components/aiappsinsightsresponse.go +++ /dev/null @@ -1,50 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type AiAppsInsightsResponse struct { - // Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - LastLogTimestamp *int64 `json:"lastLogTimestamp,omitempty"` - AiAppInsights []UserActivityInsight `json:"aiAppInsights,omitempty"` - // Total number of active users on the Ai App in the requested period. - TotalActiveUsers *int64 `json:"totalActiveUsers,omitempty"` - // Map from action to frequency. - ActionCounts *AiAppActionCounts `json:"actionCounts,omitempty"` - // list of departments applicable for users tab. - Departments []string `json:"departments,omitempty"` -} - -func (o *AiAppsInsightsResponse) GetLastLogTimestamp() *int64 { - if o == nil { - return nil - } - return o.LastLogTimestamp -} - -func (o *AiAppsInsightsResponse) GetAiAppInsights() []UserActivityInsight { - if o == nil { - return nil - } - return o.AiAppInsights -} - -func (o *AiAppsInsightsResponse) GetTotalActiveUsers() *int64 { - if o == nil { - return nil - } - return o.TotalActiveUsers -} - -func (o *AiAppsInsightsResponse) GetActionCounts() *AiAppActionCounts { - if o == nil { - return nil - } - return o.ActionCounts -} - -func (o *AiAppsInsightsResponse) GetDepartments() []string { - if o == nil { - return nil - } - return o.Departments -} diff --git a/tests/mockserver/internal/sdk/models/components/aiinsightsresponse.go b/tests/mockserver/internal/sdk/models/components/aiinsightsresponse.go deleted file mode 100644 index 478529db..00000000 --- a/tests/mockserver/internal/sdk/models/components/aiinsightsresponse.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type AiInsightsResponse struct { - // Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - LastLogTimestamp *int64 `json:"lastLogTimestamp,omitempty"` - AssistantInsights []UserActivityInsight `json:"assistantInsights,omitempty"` - // Total number of Active Assistant users (chat, summary, AIA) in requested period. - TotalActiveAssistantUsers *int64 `json:"totalActiveAssistantUsers,omitempty"` - // Total number of Chat messages sent in requested period. - TotalChatMessages *int64 `json:"totalChatMessages,omitempty"` - // Total number of AI Document Summarizations invoked in the requested period. - TotalAiSummarizations *int64 `json:"totalAiSummarizations,omitempty"` - // Total number of AI Answers generated in the requested period. - TotalAiAnswers *int64 `json:"totalAiAnswers,omitempty"` - // Total number of Chat messages which received upvotes by the user. - TotalUpvotes *int64 `json:"totalUpvotes,omitempty"` - // Total number of Chat messages which received downvotes by the user. - TotalDownvotes *int64 `json:"totalDownvotes,omitempty"` - // Total number of Gleanbot responses, both proactive and reactive. - TotalGleanbotResponses *int64 `json:"totalGleanbotResponses,omitempty"` - // Total number of Gleanbot responses shared publicly (upvoted). - TotalGleanbotResponsesShared *int64 `json:"totalGleanbotResponsesShared,omitempty"` - // Total number of Glean responses rejected as not helpful (downvoted). - TotalGleanbotResponsesNotHelpful *int64 `json:"totalGleanbotResponsesNotHelpful,omitempty"` - // list of departments applicable for users tab. - Departments []string `json:"departments,omitempty"` -} - -func (o *AiInsightsResponse) GetLastLogTimestamp() *int64 { - if o == nil { - return nil - } - return o.LastLogTimestamp -} - -func (o *AiInsightsResponse) GetAssistantInsights() []UserActivityInsight { - if o == nil { - return nil - } - return o.AssistantInsights -} - -func (o *AiInsightsResponse) GetTotalActiveAssistantUsers() *int64 { - if o == nil { - return nil - } - return o.TotalActiveAssistantUsers -} - -func (o *AiInsightsResponse) GetTotalChatMessages() *int64 { - if o == nil { - return nil - } - return o.TotalChatMessages -} - -func (o *AiInsightsResponse) GetTotalAiSummarizations() *int64 { - if o == nil { - return nil - } - return o.TotalAiSummarizations -} - -func (o *AiInsightsResponse) GetTotalAiAnswers() *int64 { - if o == nil { - return nil - } - return o.TotalAiAnswers -} - -func (o *AiInsightsResponse) GetTotalUpvotes() *int64 { - if o == nil { - return nil - } - return o.TotalUpvotes -} - -func (o *AiInsightsResponse) GetTotalDownvotes() *int64 { - if o == nil { - return nil - } - return o.TotalDownvotes -} - -func (o *AiInsightsResponse) GetTotalGleanbotResponses() *int64 { - if o == nil { - return nil - } - return o.TotalGleanbotResponses -} - -func (o *AiInsightsResponse) GetTotalGleanbotResponsesShared() *int64 { - if o == nil { - return nil - } - return o.TotalGleanbotResponsesShared -} - -func (o *AiInsightsResponse) GetTotalGleanbotResponsesNotHelpful() *int64 { - if o == nil { - return nil - } - return o.TotalGleanbotResponsesNotHelpful -} - -func (o *AiInsightsResponse) GetDepartments() []string { - if o == nil { - return nil - } - return o.Departments -} diff --git a/tests/mockserver/internal/sdk/models/components/contentinsightsresponse.go b/tests/mockserver/internal/sdk/models/components/contentinsightsresponse.go deleted file mode 100644 index e417efa7..00000000 --- a/tests/mockserver/internal/sdk/models/components/contentinsightsresponse.go +++ /dev/null @@ -1,51 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type ContentInsightsResponse struct { - // Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - LastLogTimestamp *int64 `json:"lastLogTimestamp,omitempty"` - // Insights for documents. - DocumentInsights []DocumentInsight `json:"documentInsights,omitempty"` - // list of departments applicable for contents tab. - Departments []string `json:"departments,omitempty"` - // Min threshold in size of departments while populating results, otherwise 0. - MinDepartmentSizeThreshold *int64 `json:"minDepartmentSizeThreshold,omitempty"` - // Minimum number of visitors to a document required to be included in insights. - MinVisitorThreshold *int64 `json:"minVisitorThreshold,omitempty"` -} - -func (o *ContentInsightsResponse) GetLastLogTimestamp() *int64 { - if o == nil { - return nil - } - return o.LastLogTimestamp -} - -func (o *ContentInsightsResponse) GetDocumentInsights() []DocumentInsight { - if o == nil { - return nil - } - return o.DocumentInsights -} - -func (o *ContentInsightsResponse) GetDepartments() []string { - if o == nil { - return nil - } - return o.Departments -} - -func (o *ContentInsightsResponse) GetMinDepartmentSizeThreshold() *int64 { - if o == nil { - return nil - } - return o.MinDepartmentSizeThreshold -} - -func (o *ContentInsightsResponse) GetMinVisitorThreshold() *int64 { - if o == nil { - return nil - } - return o.MinVisitorThreshold -} diff --git a/tests/mockserver/internal/sdk/models/components/documentinsight.go b/tests/mockserver/internal/sdk/models/components/documentinsight.go deleted file mode 100644 index 3b304aee..00000000 --- a/tests/mockserver/internal/sdk/models/components/documentinsight.go +++ /dev/null @@ -1,30 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type DocumentInsight struct { - Document Document `json:"document"` - ViewCount *CountInfo `json:"viewCount,omitempty"` - VisitorCount *CountInfo `json:"visitorCount,omitempty"` -} - -func (o *DocumentInsight) GetDocument() Document { - if o == nil { - return Document{} - } - return o.Document -} - -func (o *DocumentInsight) GetViewCount() *CountInfo { - if o == nil { - return nil - } - return o.ViewCount -} - -func (o *DocumentInsight) GetVisitorCount() *CountInfo { - if o == nil { - return nil - } - return o.VisitorCount -} 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/insightsagentsrequestoptions.go b/tests/mockserver/internal/sdk/models/components/insightsagentsrequestoptions.go deleted file mode 100644 index 6b825aec..00000000 --- a/tests/mockserver/internal/sdk/models/components/insightsagentsrequestoptions.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type InsightsAgentsRequestOptions struct { - // IDs of the Agents for which Insights should be returned. An empty array signifies all. - AgentIds []string `json:"agentIds,omitempty"` -} - -func (o *InsightsAgentsRequestOptions) GetAgentIds() []string { - if o == nil { - return nil - } - return o.AgentIds -} diff --git a/tests/mockserver/internal/sdk/models/components/insightsaiapprequestoptions.go b/tests/mockserver/internal/sdk/models/components/insightsaiapprequestoptions.go deleted file mode 100644 index 7275316c..00000000 --- a/tests/mockserver/internal/sdk/models/components/insightsaiapprequestoptions.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type InsightsAiAppRequestOptions struct { - // IDs of the AI Apps for which Insights should be returned. An empty array signifies all. - AiAppIds []string `json:"aiAppIds,omitempty"` -} - -func (o *InsightsAiAppRequestOptions) GetAiAppIds() []string { - if o == nil { - return nil - } - return o.AiAppIds -} diff --git a/tests/mockserver/internal/sdk/models/components/insightsrequest.go b/tests/mockserver/internal/sdk/models/components/insightsrequest.go index 4129c48e..ae74e0f9 100644 --- a/tests/mockserver/internal/sdk/models/components/insightsrequest.go +++ b/tests/mockserver/internal/sdk/models/components/insightsrequest.go @@ -2,126 +2,12 @@ package components -import ( - "encoding/json" - "fmt" -) - -type InsightsRequestCategory string - -const ( - InsightsRequestCategoryAgents InsightsRequestCategory = "AGENTS" - InsightsRequestCategoryAgentUsers InsightsRequestCategory = "AGENT_USERS" - InsightsRequestCategoryTopAgents InsightsRequestCategory = "TOP_AGENTS" - InsightsRequestCategoryAgentsUsageByDepartment InsightsRequestCategory = "AGENTS_USAGE_BY_DEPARTMENT" - InsightsRequestCategoryAi InsightsRequestCategory = "AI" - InsightsRequestCategoryAiApps InsightsRequestCategory = "AI_APPS" - InsightsRequestCategoryAnnouncements InsightsRequestCategory = "ANNOUNCEMENTS" - InsightsRequestCategoryAnswers InsightsRequestCategory = "ANSWERS" - InsightsRequestCategoryCollections InsightsRequestCategory = "COLLECTIONS" - InsightsRequestCategoryContent InsightsRequestCategory = "CONTENT" - InsightsRequestCategoryGleanAssist InsightsRequestCategory = "GLEAN_ASSIST" - InsightsRequestCategoryQueries InsightsRequestCategory = "QUERIES" - InsightsRequestCategoryShortcuts InsightsRequestCategory = "SHORTCUTS" - InsightsRequestCategoryUsers InsightsRequestCategory = "USERS" -) - -func (e InsightsRequestCategory) ToPointer() *InsightsRequestCategory { - return &e -} -func (e *InsightsRequestCategory) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "AGENTS": - fallthrough - case "AGENT_USERS": - fallthrough - case "TOP_AGENTS": - fallthrough - case "AGENTS_USAGE_BY_DEPARTMENT": - fallthrough - case "AI": - fallthrough - case "AI_APPS": - fallthrough - case "ANNOUNCEMENTS": - fallthrough - case "ANSWERS": - fallthrough - case "COLLECTIONS": - fallthrough - case "CONTENT": - fallthrough - case "GLEAN_ASSIST": - fallthrough - case "QUERIES": - fallthrough - case "SHORTCUTS": - fallthrough - case "USERS": - *e = InsightsRequestCategory(v) - return nil - default: - return fmt.Errorf("invalid value for InsightsRequestCategory: %v", v) - } -} - -type AssistantActivityType string - -const ( - AssistantActivityTypeGleanChat AssistantActivityType = "GLEAN_CHAT" - AssistantActivityTypeAiSummary AssistantActivityType = "AI_SUMMARY" - AssistantActivityTypeAiAnswer AssistantActivityType = "AI_ANSWER" - AssistantActivityTypeGleanbotResponse AssistantActivityType = "GLEANBOT_RESPONSE" -) - -func (e AssistantActivityType) ToPointer() *AssistantActivityType { - return &e -} -func (e *AssistantActivityType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "GLEAN_CHAT": - fallthrough - case "AI_SUMMARY": - fallthrough - case "AI_ANSWER": - fallthrough - case "GLEANBOT_RESPONSE": - *e = AssistantActivityType(v) - return nil - default: - return fmt.Errorf("invalid value for AssistantActivityType: %v", v) - } -} - type InsightsRequest struct { OverviewRequest *InsightsOverviewRequest `json:"overviewRequest,omitempty"` AssistantRequest *InsightsAssistantRequest `json:"assistantRequest,omitempty"` AgentsRequest *AgentsInsightsV2Request `json:"agentsRequest,omitempty"` // If true, suppresses the generation of per-user Insights in the response. Default is false. DisablePerUserInsights *bool `json:"disablePerUserInsights,omitempty"` - // Categories of data requested. Request can include single or multiple types. - // - // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. - Categories []InsightsRequestCategory `json:"categories,omitempty"` - // Departments that the data is requested for. If this is empty, corresponds to whole company. - // - // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. - Departments []string `json:"departments,omitempty"` - DayRange *Period `json:"dayRange,omitempty"` - AiAppRequestOptions *InsightsAiAppRequestOptions `json:"aiAppRequestOptions,omitempty"` - AgentsRequestOptions *InsightsAgentsRequestOptions `json:"agentsRequestOptions,omitempty"` - // Types of activity that should count in the definition of an Assistant Active User. Affects only insights for AI category. - // - // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. - AssistantActivityTypes []AssistantActivityType `json:"assistantActivityTypes,omitempty"` } func (o *InsightsRequest) GetOverviewRequest() *InsightsOverviewRequest { @@ -151,45 +37,3 @@ func (o *InsightsRequest) GetDisablePerUserInsights() *bool { } return o.DisablePerUserInsights } - -func (o *InsightsRequest) GetCategories() []InsightsRequestCategory { - if o == nil { - return nil - } - return o.Categories -} - -func (o *InsightsRequest) GetDepartments() []string { - if o == nil { - return nil - } - return o.Departments -} - -func (o *InsightsRequest) GetDayRange() *Period { - if o == nil { - return nil - } - return o.DayRange -} - -func (o *InsightsRequest) GetAiAppRequestOptions() *InsightsAiAppRequestOptions { - if o == nil { - return nil - } - return o.AiAppRequestOptions -} - -func (o *InsightsRequest) GetAgentsRequestOptions() *InsightsAgentsRequestOptions { - if o == nil { - return nil - } - return o.AgentsRequestOptions -} - -func (o *InsightsRequest) GetAssistantActivityTypes() []AssistantActivityType { - if o == nil { - return nil - } - return o.AssistantActivityTypes -} diff --git a/tests/mockserver/internal/sdk/models/components/insightsresponse.go b/tests/mockserver/internal/sdk/models/components/insightsresponse.go index e526a92d..0f601c58 100644 --- a/tests/mockserver/internal/sdk/models/components/insightsresponse.go +++ b/tests/mockserver/internal/sdk/models/components/insightsresponse.go @@ -3,105 +3,10 @@ package components type InsightsResponse struct { - // List of timeseries to make charts (if applicable). - // - // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. - Timeseries []LabeledCountInfo `json:"timeseries,omitempty"` - Users *UserInsightsResponse `json:"users,omitempty"` - Content *ContentInsightsResponse `json:"content,omitempty"` - Queries *QueryInsightsResponse `json:"queries,omitempty"` - Collections *ContentInsightsResponse `json:"collections,omitempty"` - CollectionsV2 *ContentInsightsResponse `json:"collectionsV2,omitempty"` - Shortcuts *ShortcutInsightsResponse `json:"shortcuts,omitempty"` - Announcements *ContentInsightsResponse `json:"announcements,omitempty"` - Answers *ContentInsightsResponse `json:"answers,omitempty"` - Ai *AiInsightsResponse `json:"ai,omitempty"` - AiApps *AiAppsInsightsResponse `json:"aiApps,omitempty"` - GleanAssist *GleanAssistInsightsResponse `json:"gleanAssist,omitempty"` - // list of all departments. - // - // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. - Departments []string `json:"departments,omitempty"` - OverviewResponse *InsightsOverviewResponse `json:"overviewResponse,omitempty"` - AssistantResponse *AssistantInsightsResponse `json:"assistantResponse,omitempty"` - AgentsResponse *AgentsInsightsV2Response `json:"agentsResponse,omitempty"` -} - -func (o *InsightsResponse) GetTimeseries() []LabeledCountInfo { - if o == nil { - return nil - } - return o.Timeseries -} - -func (o *InsightsResponse) GetUsers() *UserInsightsResponse { - if o == nil { - return nil - } - return o.Users -} - -func (o *InsightsResponse) GetContent() *ContentInsightsResponse { - if o == nil { - return nil - } - return o.Content -} - -func (o *InsightsResponse) GetQueries() *QueryInsightsResponse { - if o == nil { - return nil - } - return o.Queries -} - -func (o *InsightsResponse) GetCollections() *ContentInsightsResponse { - if o == nil { - return nil - } - return o.Collections -} - -func (o *InsightsResponse) GetCollectionsV2() *ContentInsightsResponse { - if o == nil { - return nil - } - return o.CollectionsV2 -} - -func (o *InsightsResponse) GetShortcuts() *ShortcutInsightsResponse { - if o == nil { - return nil - } - return o.Shortcuts -} - -func (o *InsightsResponse) GetAnnouncements() *ContentInsightsResponse { - if o == nil { - return nil - } - return o.Announcements -} - -func (o *InsightsResponse) GetAnswers() *ContentInsightsResponse { - if o == nil { - return nil - } - return o.Answers -} - -func (o *InsightsResponse) GetAi() *AiInsightsResponse { - if o == nil { - return nil - } - return o.Ai -} - -func (o *InsightsResponse) GetAiApps() *AiAppsInsightsResponse { - if o == nil { - return nil - } - return o.AiApps + GleanAssist *GleanAssistInsightsResponse `json:"gleanAssist,omitempty"` + OverviewResponse *InsightsOverviewResponse `json:"overviewResponse,omitempty"` + AssistantResponse *AssistantInsightsResponse `json:"assistantResponse,omitempty"` + AgentsResponse *AgentsInsightsV2Response `json:"agentsResponse,omitempty"` } func (o *InsightsResponse) GetGleanAssist() *GleanAssistInsightsResponse { @@ -111,13 +16,6 @@ func (o *InsightsResponse) GetGleanAssist() *GleanAssistInsightsResponse { return o.GleanAssist } -func (o *InsightsResponse) GetDepartments() []string { - if o == nil { - return nil - } - return o.Departments -} - func (o *InsightsResponse) GetOverviewResponse() *InsightsOverviewResponse { if o == nil { return nil diff --git a/tests/mockserver/internal/sdk/models/components/queryinsight.go b/tests/mockserver/internal/sdk/models/components/queryinsight.go deleted file mode 100644 index faaa01fb..00000000 --- a/tests/mockserver/internal/sdk/models/components/queryinsight.go +++ /dev/null @@ -1,56 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type QueryInsight struct { - // The query string the information is about. - Query string `json:"query"` - SearchCount *CountInfo `json:"searchCount,omitempty"` - SearchorCount *CountInfo `json:"searchorCount,omitempty"` - SearchWithClickCount *CountInfo `json:"searchWithClickCount,omitempty"` - ClickCount *CountInfo `json:"clickCount,omitempty"` - // list of similar queries to current one. - SimilarQueries []QueryInsight `json:"similarQueries,omitempty"` -} - -func (o *QueryInsight) GetQuery() string { - if o == nil { - return "" - } - return o.Query -} - -func (o *QueryInsight) GetSearchCount() *CountInfo { - if o == nil { - return nil - } - return o.SearchCount -} - -func (o *QueryInsight) GetSearchorCount() *CountInfo { - if o == nil { - return nil - } - return o.SearchorCount -} - -func (o *QueryInsight) GetSearchWithClickCount() *CountInfo { - if o == nil { - return nil - } - return o.SearchWithClickCount -} - -func (o *QueryInsight) GetClickCount() *CountInfo { - if o == nil { - return nil - } - return o.ClickCount -} - -func (o *QueryInsight) GetSimilarQueries() []QueryInsight { - if o == nil { - return nil - } - return o.SimilarQueries -} diff --git a/tests/mockserver/internal/sdk/models/components/queryinsightsresponse.go b/tests/mockserver/internal/sdk/models/components/queryinsightsresponse.go deleted file mode 100644 index 6f6c8ef2..00000000 --- a/tests/mockserver/internal/sdk/models/components/queryinsightsresponse.go +++ /dev/null @@ -1,51 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type QueryInsightsResponse struct { - // Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - LastLogTimestamp *int64 `json:"lastLogTimestamp,omitempty"` - // Insights for queries. - QueryInsights []QueryInsight `json:"queryInsights,omitempty"` - // Insights for low performing queries without good results. - LowPerformingQueryInsights []QueryInsight `json:"lowPerformingQueryInsights,omitempty"` - // list of departments applicable for queries tab. - Departments []string `json:"departments,omitempty"` - // Min threshold in number of visitors while populating results, otherwise 0. - MinVisitorThreshold *int64 `json:"minVisitorThreshold,omitempty"` -} - -func (o *QueryInsightsResponse) GetLastLogTimestamp() *int64 { - if o == nil { - return nil - } - return o.LastLogTimestamp -} - -func (o *QueryInsightsResponse) GetQueryInsights() []QueryInsight { - if o == nil { - return nil - } - return o.QueryInsights -} - -func (o *QueryInsightsResponse) GetLowPerformingQueryInsights() []QueryInsight { - if o == nil { - return nil - } - return o.LowPerformingQueryInsights -} - -func (o *QueryInsightsResponse) GetDepartments() []string { - if o == nil { - return nil - } - return o.Departments -} - -func (o *QueryInsightsResponse) GetMinVisitorThreshold() *int64 { - if o == nil { - return nil - } - return o.MinVisitorThreshold -} diff --git a/tests/mockserver/internal/sdk/models/components/shortcutinsight.go b/tests/mockserver/internal/sdk/models/components/shortcutinsight.go deleted file mode 100644 index e4a60038..00000000 --- a/tests/mockserver/internal/sdk/models/components/shortcutinsight.go +++ /dev/null @@ -1,30 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type ShortcutInsight struct { - Shortcut Shortcut `json:"shortcut"` - VisitCount *CountInfo `json:"visitCount,omitempty"` - VisitorCount *CountInfo `json:"visitorCount,omitempty"` -} - -func (o *ShortcutInsight) GetShortcut() Shortcut { - if o == nil { - return Shortcut{} - } - return o.Shortcut -} - -func (o *ShortcutInsight) GetVisitCount() *CountInfo { - if o == nil { - return nil - } - return o.VisitCount -} - -func (o *ShortcutInsight) GetVisitorCount() *CountInfo { - if o == nil { - return nil - } - return o.VisitorCount -} diff --git a/tests/mockserver/internal/sdk/models/components/shortcutinsightsresponse.go b/tests/mockserver/internal/sdk/models/components/shortcutinsightsresponse.go deleted file mode 100644 index b2edf8e3..00000000 --- a/tests/mockserver/internal/sdk/models/components/shortcutinsightsresponse.go +++ /dev/null @@ -1,42 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type ShortcutInsightsResponse struct { - // Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - LastLogTimestamp *int64 `json:"lastLogTimestamp,omitempty"` - // Insights for shortcuts. - ShortcutInsights []ShortcutInsight `json:"shortcutInsights,omitempty"` - // list of departments applicable for shortcuts tab. - Departments []string `json:"departments,omitempty"` - // Min threshold in number of visitors while populating results, otherwise 0. - MinVisitorThreshold *int64 `json:"minVisitorThreshold,omitempty"` -} - -func (o *ShortcutInsightsResponse) GetLastLogTimestamp() *int64 { - if o == nil { - return nil - } - return o.LastLogTimestamp -} - -func (o *ShortcutInsightsResponse) GetShortcutInsights() []ShortcutInsight { - if o == nil { - return nil - } - return o.ShortcutInsights -} - -func (o *ShortcutInsightsResponse) GetDepartments() []string { - if o == nil { - return nil - } - return o.Departments -} - -func (o *ShortcutInsightsResponse) GetMinVisitorThreshold() *int64 { - if o == nil { - return nil - } - return o.MinVisitorThreshold -} 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/components/userinsightsresponse.go b/tests/mockserver/internal/sdk/models/components/userinsightsresponse.go deleted file mode 100644 index 2fb26d2f..00000000 --- a/tests/mockserver/internal/sdk/models/components/userinsightsresponse.go +++ /dev/null @@ -1,60 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type UserInsightsResponse struct { - // Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - LastLogTimestamp *int64 `json:"lastLogTimestamp,omitempty"` - // Insights for all active users with respect to set of actions. - ActivityInsights []UserActivityInsight `json:"activityInsights,omitempty"` - // Insights for all in inactive users with respect to set of actions and time period. Activity count will be set to 0. - InactiveInsights []UserActivityInsight `json:"inactiveInsights,omitempty"` - // Total number of teammates that have logged in to the product, that are still valid teammates. - TotalTeammates *int64 `json:"totalTeammates,omitempty"` - // Total number of active users in the requested period. - TotalActiveUsers *int64 `json:"totalActiveUsers,omitempty"` - // list of departments applicable for users tab. - Departments []string `json:"departments,omitempty"` -} - -func (o *UserInsightsResponse) GetLastLogTimestamp() *int64 { - if o == nil { - return nil - } - return o.LastLogTimestamp -} - -func (o *UserInsightsResponse) GetActivityInsights() []UserActivityInsight { - if o == nil { - return nil - } - return o.ActivityInsights -} - -func (o *UserInsightsResponse) GetInactiveInsights() []UserActivityInsight { - if o == nil { - return nil - } - return o.InactiveInsights -} - -func (o *UserInsightsResponse) GetTotalTeammates() *int64 { - if o == nil { - return nil - } - return o.TotalTeammates -} - -func (o *UserInsightsResponse) GetTotalActiveUsers() *int64 { - if o == nil { - return nil - } - return o.TotalActiveUsers -} - -func (o *UserInsightsResponse) GetDepartments() []string { - if o == nil { - return nil - } - return o.Departments -} 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_insights.py b/tests/test_insights.py index 301907d8..6cc8aeec 100644 --- a/tests/test_insights.py +++ b/tests/test_insights.py @@ -1,6 +1,6 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -from glean.api_client import Glean, models +from glean.api_client import Glean import os from tests.test_client import create_test_http_client @@ -15,10 +15,5 @@ def test_insights_insights(): ) as glean: assert glean is not None - res = glean.client.insights.retrieve( - categories=[ - models.InsightsRequestCategory.CONTENT, - models.InsightsRequestCategory.CONTENT, - ] - ) + res = glean.client.insights.retrieve() assert res is not None 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..cac8e978 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,10 +18,12 @@ def test_summarize_summarize(): res = glean.client.documents.summarize( document_specs=[ { - "url": "https://dim-glider.com/", + "ugc_type": models.DocumentSpecUgcType1.SHORTCUTS, + "content_id": 602763, }, { - "id": "", + "ugc_type": models.DocumentSpecUgcType1.SHORTCUTS, + "content_id": 602763, }, ] )