diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index aac2b353..2994b0d0 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,25 +1,25 @@ lockVersion: 2.0.0 id: 9d90eb9e-33f8-4170-8944-988f4000aad0 management: - docChecksum: 1d1c4c798b764226bfeeae4268f907c1 + docChecksum: 2252f031639eeffae028e5edc75f28dd docVersion: 0.9.0 - speakeasyVersion: 1.792.0 - generationVersion: 2.927.0 - releaseVersion: 0.13.5 - configChecksum: 009b543f108a1c88bc5f2c93ec966cfc + speakeasyVersion: 1.794.0 + generationVersion: 2.930.0 + releaseVersion: 0.13.6 + configChecksum: 33656fde32c1f57bc7910b7d88f2eb8d repoURL: https://github.com/gleanwork/api-client-go.git installationURL: https://github.com/gleanwork/api-client-go persistentEdits: - generation_id: 1076cd3e-e245-4c8d-ba4c-cebe3adc310c - pristine_commit_hash: a33bd9d4d695cbe390f953b8791b4bfeaa3ea4a5 - pristine_tree_hash: aaf556862da09703cdd0e8d843fd745cf3e54b8e + generation_id: e54b6ba4-0cf9-456d-9f58-6850813f2de6 + pristine_commit_hash: 371f0276246ea8c28629ddd9a434a8b0ce43625d + pristine_tree_hash: 106b8f8e4f0a0d38167e3e91a8ec67baf29919f8 features: go: acceptHeaders: 2.81.2 additionalDependencies: 0.1.0 additionalProperties: 0.1.3 constsAndDefaults: 0.1.14 - core: 3.13.47 + core: 3.13.48 defaultEnabledRetries: 0.2.0 deprecations: 2.81.3 devContainers: 2.90.0 @@ -41,7 +41,7 @@ features: retries: 2.84.3 sdkHooks: 0.3.0 tests: 0.16.8 - unions: 2.87.8 + unions: 2.87.9 uploadStreams: 0.1.0 trackedFiles: .devcontainer/README.md: @@ -1326,8 +1326,8 @@ trackedFiles: pristine_git_object: c8e4adbb9259788d825acac24b08c9cd9afca960 docs/models/components/feedrequestcategory.md: id: 801f1c3c64d4 - last_write_checksum: sha1:f97f8f6b17de2bba01ce4bdbd3d13aebfc16ea4f - pristine_git_object: 66caa43b8c288af71af88b673dbf1316240a80e3 + last_write_checksum: sha1:cd59f318944cac895b833bf17d98f26a3e52bfd3 + pristine_git_object: 56e58281cf9421c8e0a202ec57d41fd639bff101 docs/models/components/feedrequestoptions.md: id: 76c5e4412304 last_write_checksum: sha1:674915ceaa3b9eec9d9543dc9f0e6a85b394174e @@ -1338,12 +1338,12 @@ trackedFiles: pristine_git_object: c053a79c66be5570c7e8dfb13885f5c0c050a574 docs/models/components/feedresult.md: id: c3084f56c0cc - last_write_checksum: sha1:b5233d7c70106e8c18d14ff9e9afd99bc28f4b62 - pristine_git_object: a3d714f78ae220cd1f1ebda6e5c4ae2d51846208 + last_write_checksum: sha1:e9de20975cde711bb72d4eac60061539cbc63752 + pristine_git_object: 86a3734a33e235d580f920fc6402a48ecfaaf1b4 docs/models/components/feedresultcategory.md: id: 94c0249352b4 - last_write_checksum: sha1:3c05a30dd4cc0a14044287bd80687e61bbc44a1f - pristine_git_object: 08e487bf5a03d4b1ecff4d5c44405c15f46cd904 + last_write_checksum: sha1:967947937a67330872b7c9d66d6caedf0deeb13a + pristine_git_object: d549449ab3dd4cfc67c8006eb60c3764cdcdd7ca docs/models/components/fieldscope.md: id: 23caffb85bb7 last_write_checksum: sha1:65cdffa9b7bf28a760c906f49dc7417f37b9e56f @@ -1626,8 +1626,8 @@ trackedFiles: pristine_git_object: 7245436eb7626f13e41555443aaf1d77cb6a32a5 docs/models/components/input.md: id: ea03f2204b6f - last_write_checksum: sha1:705d56022c8ff0f21cae2674ebd1c32fa9f914b7 - pristine_git_object: 2a0ab5b6ad0955da1f7ec9c7aac785cdfa8201c1 + last_write_checksum: sha1:d111b4af4fa9367f70720694de0e61acc0d35dbe + pristine_git_object: 8756e294496916489959f8335346e4fcd838dc59 docs/models/components/inputoptions.md: id: 62e10ac3918a last_write_checksum: sha1:241bf9d7c639556b8f46d8cfbd5d021c5960014c @@ -1682,8 +1682,8 @@ trackedFiles: pristine_git_object: 229c8af1dcde17c3b4507889380258a7d2bb939d docs/models/components/justificationtype.md: id: 5a15880767a5 - last_write_checksum: sha1:3966d475972ebd14cc3610725134db18e9921a58 - pristine_git_object: 939bec1f87a71c57589f59f2d313f62c04cb4261 + last_write_checksum: sha1:e92b276ba5f4c13692906aa8bd5ed716405792ab + pristine_git_object: e9ca10aa982bac7caeff21c70d72d7f558ac2a7b docs/models/components/knowledgetype.md: id: cf27a7cefa69 last_write_checksum: sha1:f7294d6350e558a0a626ac41241ccbf0facacf10 @@ -1854,8 +1854,8 @@ trackedFiles: pristine_git_object: 83dbfe6a75dc23cdc053ae56998a0266d827c282 docs/models/components/object.md: id: 12d150071fde - last_write_checksum: sha1:50c3bc5d0640d93983362b48a61a98b2189767c4 - pristine_git_object: f53946adce43e231034b6511f229e37a30e8e085 + last_write_checksum: sha1:84563215d4ad478bc62d257f94794d48355d19b0 + pristine_git_object: 1066842b8b90a526a6e7a8017864b00125a7a6f4 docs/models/components/objectdefinition.md: id: 62ae4ce20229 last_write_checksum: sha1:b6252b452c62e9815f899fb3d92dabad987ddb76 @@ -1966,8 +1966,8 @@ trackedFiles: pristine_git_object: 9d48703e1b73640c405b8d69c59f392333053671 docs/models/components/placementreason.md: id: 4aca343a58b8 - last_write_checksum: sha1:53884c743cf61c80b110a1d4f32d33efc2b79d28 - pristine_git_object: 3a28581375dae69fbba45979f294764aa0b537a0 + last_write_checksum: sha1:c2156b5fa8fc7ea923df58268a5f7ba35a40b622 + pristine_git_object: 664d0151931637202c469d4bb49893d8c54e43b1 docs/models/components/platformactionsummary.md: id: 93ecbff93962 last_write_checksum: sha1:81cb0da4be5b2978c5f51302a3053b23665f6142 @@ -2022,8 +2022,8 @@ trackedFiles: pristine_git_object: 76652b740c6d10addf1634c8c5665018a5e1c198 docs/models/components/platformchatcitationannotationtype.md: id: a4ad1507c330 - last_write_checksum: sha1:ff20e8b2053c83aa863946a938fa21a96cd4a678 - pristine_git_object: d2e7cca93f732f85e6ecac5b8239b82b73c3ca7e + last_write_checksum: sha1:913738c274a287c18e556d48875fa1f253ffa086 + pristine_git_object: da218274e3e9fe86c183c343858f06b15e23d8ad docs/models/components/platformchatcitationsnippet.md: id: 2d053c4698b7 last_write_checksum: sha1:f0f0cb20f25c0115d3cfe99e53489792930ba95f @@ -2038,20 +2038,20 @@ trackedFiles: pristine_git_object: 4d31dcef7d3b9666f13606073998c5dca724ef81 docs/models/components/platformchatcompletedresponsestatus.md: id: c0af5424b1a3 - last_write_checksum: sha1:748d4a7519b982b5d430221ad7391f2d100bbd73 - pristine_git_object: 63e07cdad364020242cee20094cd871c7da7354a + last_write_checksum: sha1:8f18f8c3ed8a9f934d71ea16b05567229a89a7cb + pristine_git_object: e8a35f657c8621fd4dd507626428a0eda5cd8d23 docs/models/components/platformchatcreaterequest.md: id: af3d88254add - last_write_checksum: sha1:62842f122b1a9a3c5a858058b23bdc0645e1b397 - pristine_git_object: 62a4f19f4869831dac2d8c8422d211f3736a110b + last_write_checksum: sha1:99a1995b9eaf4e4ca87f9f3415c5be701b63b4e9 + pristine_git_object: e03390f12e8a6b2d66f8317fc93891e3ceef17f2 docs/models/components/platformchatcustomentitysource.md: id: c6cba9d9b3a1 last_write_checksum: sha1:d5fbbc20fed4b934abbb3b0f3131a8c9323bc5dd pristine_git_object: 6fc52ddbb3c8c17c3764177e59044a29993f4646 docs/models/components/platformchatcustomentitysourcetype.md: id: 1686e673d2ce - last_write_checksum: sha1:760df686f4d1025fca26fff1c30ea34131dbab49 - pristine_git_object: 2be8235a9d1debe8d9f9a0572ca5cb63ae93c6d6 + last_write_checksum: sha1:4dd3838d8ca163d9561005695b3a003f5c1f9878 + pristine_git_object: 93da64c4813e6e1d2ca243dd948ffc2dce6c9062 docs/models/components/platformchatdocumentsource.md: id: 617dca740a9f last_write_checksum: sha1:1d465a260bf02b3b114259ddb0fa9fb6310b2169 @@ -2066,56 +2066,56 @@ trackedFiles: pristine_git_object: 4ae777feee553b3ead1782f5bb28a8951b5b231a docs/models/components/platformchatdocumentsourcetype1.md: id: 8d72cb90f74a - last_write_checksum: sha1:e339ed38a7021280ae0a666809695d2559ff2986 - pristine_git_object: 98714fb9aae082f99eecb1a951d2cadd92c28803 + last_write_checksum: sha1:4787ea9d81b322644b5b3ac390a65094e486b416 + pristine_git_object: 5b0ec56861da13425b088a9e21a22862ec952090 docs/models/components/platformchatdocumentsourcetype2.md: id: 09b92f604a92 - last_write_checksum: sha1:35f5241f8172044699b84f68b7989b1a7373e766 - pristine_git_object: ae8b6c0e5f83841853b8d386844f3bcaab080af7 + last_write_checksum: sha1:2a18f6fa8ca18f936e850cf2a470e868e840f32c + pristine_git_object: 6de9d2edc473490b5763c37d647c3afc637daa64 docs/models/components/platformchatfilesource.md: id: 53441e77a478 last_write_checksum: sha1:1b94fa0f86ae7898ce4fe4dca532024d2bc07687 pristine_git_object: 83b010c5f3e222923d5e9b2d6001c520e05a600b docs/models/components/platformchatfilesourcetype.md: id: ac2f5e034fdd - last_write_checksum: sha1:9e4aea32d33641d55d76bc2f90b74ecfbc4edcaf - pristine_git_object: 703d042e0c2710511e8ca1aabc19114a7aec13fd + last_write_checksum: sha1:8aece90b8a7af1377d81b824c3887bf9f3efc5fb + pristine_git_object: f8d71d01cb62641585ab1d2792619b9ab4ffa09f docs/models/components/platformchatinputmessage.md: id: 482fd05bd77f last_write_checksum: sha1:fdfd28412fee17045c35d6307ff0b255ba164b98 pristine_git_object: 7b5561a086ba3ad11a99706d3d92124b44826f51 docs/models/components/platformchatinputmessagerole.md: id: d433e7bbef35 - last_write_checksum: sha1:3a7e251ba1e8f94d15d69d55d7becd6085690bdf - pristine_git_object: 07e684297c00b2ea82c19ce70e889c7a2757fa43 + last_write_checksum: sha1:96ba61d8e70c8bf65248cabc8e87da18f25e2443 + pristine_git_object: 96b25bc9714c603b63a073911e4993616a0c9623 docs/models/components/platformchatoutputmessage.md: id: 06f5e11e058a last_write_checksum: sha1:73ffe24339285866a2bb28a600c320c92ceaa70d pristine_git_object: c33fc257c958e14ed0833ed62cc3d6815b1bdcd9 docs/models/components/platformchatoutputmessagerole.md: id: cfd66f34b70b - last_write_checksum: sha1:5ad007c990e96fe445c66d3f7ab12e0cd7133368 - pristine_git_object: 3fa000446ed70a0a5c3b922d7144561dea268937 + last_write_checksum: sha1:c2081d7b4e57b334fe3f96f5adc1034d73a89ce3 + pristine_git_object: d3a78b142ccafa900cf01278ef448db5b43325be docs/models/components/platformchatoutputmessagetype.md: id: 488f9e7e5a1b - last_write_checksum: sha1:c342745be235201e93f2f5641e574336ab3f1e1a - pristine_git_object: 44e22b6dc524fc311678c2b29539531929c66bef + last_write_checksum: sha1:6c14f25dbf6bef70ad941450546dc99e2ac55151 + pristine_git_object: 33fa46bceab6eba07b946cda7b5f4558bb23c7c2 docs/models/components/platformchatoutputtextcontent.md: id: 41ecc87e478f last_write_checksum: sha1:ff82c2a42a0e4a9fcee99eac25ae1645e1324a62 pristine_git_object: 6c9f40393cb6c57b3b052c04842d7575a1db8372 docs/models/components/platformchatoutputtextcontenttype.md: id: 12dc2e11fdf6 - last_write_checksum: sha1:414f3649d62902b7b78b290984d8335b0df97f64 - pristine_git_object: 0ab1b9bf526a9a84803c4433c317a0d241566fc6 + last_write_checksum: sha1:c88f6b705823a0493f4b5946fd9e8a144f2afc98 + pristine_git_object: a8a44c8782fd973c240ca29641a48e82a0f7fdb0 docs/models/components/platformchatpersonsource.md: id: 853620498d42 last_write_checksum: sha1:9273f7cac63ee7c4cb9c1338f21f5fed52e80a13 pristine_git_object: 037b6b6b3f855bb8c6b9f16f89792ed921b9eeb7 docs/models/components/platformchatpersonsourcetype.md: id: 76448f09c0da - last_write_checksum: sha1:3712c74a195ebcdc6928aab70f8d30bd47b4a4fe - pristine_git_object: cf9c50bf4fe2470daf504b5c1df87375cb230656 + last_write_checksum: sha1:3200391be303c5899cd3cb9be7b0f92e7dca7fee + pristine_git_object: 66b4216eee2f4c39d98a20a3497c3a2833b8603b docs/models/components/platformcontenttype.md: id: f5a30f465d14 last_write_checksum: sha1:a7d4481fbe152426f0aad9faa59cb9b0a30a42fc @@ -4190,12 +4190,12 @@ trackedFiles: pristine_git_object: 15858805e5360381ad4da1bfdbac9e338dfd3b70 docs/sdks/skills/README.md: id: 3a14a5c90791 - last_write_checksum: sha1:7ee649cfe3f810f6b42f7b3d3740369b1591f427 - pristine_git_object: 80f048d5cbed50bd660bee376c8b326bd9f97cd0 + last_write_checksum: sha1:59daf47c9958bd48647727792825ab6335dd2c27 + pristine_git_object: 25e58ff3d2647bf54fc5a275f5f308c91a36e00a docs/sdks/tools/README.md: id: 044286549bac - last_write_checksum: sha1:09645f071599ed09e293b4e23cd2419868ccc1c1 - pristine_git_object: f8748ab1373eee3e7d0aee8180e68e7ad5b54fcd + last_write_checksum: sha1:a8e527fcecf1c5e4aa40492d811a7bcb3e955276 + pristine_git_object: cfce4a65de5be51f48da3c3934d2fb3db10e9cc7 docs/sdks/verification/README.md: id: 8148670b64d3 last_write_checksum: sha1:644e22c050d13ef496bc2551f2f3944e6f4864de @@ -4218,8 +4218,8 @@ trackedFiles: pristine_git_object: a3cb3e5448f3fdcfad77ed2a4ba47ae848d5cd5d glean.go: id: f5ed099b8e85 - last_write_checksum: sha1:dd0ec8b40cf15bc08d6835dbef376f36a0b7bea0 - pristine_git_object: abdbc27bc95681e8ed6ae7fcba37b0904e9d6b6c + last_write_checksum: sha1:2c4d57685c06edd6bdd4e3dcba0daaaacce2cfc5 + pristine_git_object: 4e4af868d30432f2c64ba20b066be1c08ae70019 go.mod: id: c47645c391ad last_write_checksum: sha1:cf65a2c96e303858d4cf70e07d4c44d3f1c1db38 @@ -5266,12 +5266,12 @@ trackedFiles: pristine_git_object: 220dbff76d0d3d12e6bdcb05787a6df030124ca5 models/components/feedentry.go: id: 2826af1aa01a - last_write_checksum: sha1:0ca83b3619c37a03602d27bf0146e65bee1b7c9e - pristine_git_object: de252b0ff8f071f9b2ab01f2bf371b14ad396782 + last_write_checksum: sha1:ab3501a9ee8bf06b98c9c3db978c3b9c04778eb1 + pristine_git_object: 3016c7f64a2526e9f1a0ebe8256bc471790d12c4 models/components/feedrequest.go: id: 9f0a682fc981 - last_write_checksum: sha1:bdcd950f3b30cacec8df265a5669c3a08f3a3b3a - pristine_git_object: 9e570b31eb51b22f73e043b7aa4316e11a83cf6a + last_write_checksum: sha1:a8e57020d73e09a8c1f8ea64c020401de8278623 + pristine_git_object: 283b42e058492f62bd999765d54ad4b11e2d11ec models/components/feedrequestoptions.go: id: a56c104c989d last_write_checksum: sha1:7f238a9abb079c78202b1a9f65c87b82420f63ec @@ -5282,8 +5282,8 @@ trackedFiles: pristine_git_object: 60cb4b19cbb9bd29e37128e3110b2bf0a8f80d30 models/components/feedresult.go: id: f017ac6e3ac3 - last_write_checksum: sha1:5b3d26aeb17d1344d2da336ea75c160472b13dd5 - pristine_git_object: f809c38f4e1d71b5a9fa326d5b68b4f72afa78fc + last_write_checksum: sha1:1abcc7b8195a71e4662a239d7cd3735173460a4e + pristine_git_object: 8bb88191035641cb4da60d873b3a7d07ab8f99a0 models/components/followupaction.go: id: aba266d23418 last_write_checksum: sha1:0a17407e6beba30680e5c38151e426a5ce7aab76 @@ -5794,8 +5794,8 @@ trackedFiles: pristine_git_object: c514d914cde6043b43188e78df27207d99ccd40a models/components/platformchatcitationannotation.go: id: af62f8b4d2cd - last_write_checksum: sha1:f978cc367732d234aa3b200f7be01bf5b5038dac - pristine_git_object: 684bad9726826ef503404e1057e11f855adcbd5a + last_write_checksum: sha1:e36119e7368d3748cd8b23ee42ba4eaeb3420c78 + pristine_git_object: 26698e4dc22fa87fcdce2024652c9d35e0cbc424 models/components/platformchatcitationsnippet.go: id: bb3930e9c61d last_write_checksum: sha1:25f5ceaabe32ea2756778875944d27485c9da3aa @@ -5806,40 +5806,40 @@ trackedFiles: pristine_git_object: 5143441357107b9d383073a65f66d15281cbcc51 models/components/platformchatcompletedresponse.go: id: 9e69fad32e15 - last_write_checksum: sha1:c3fa3bbf0c61cb98be70880e49732eb2e47733ad - pristine_git_object: b2b39b5bbf486ea2cf61ce8f6c5f4c293a5973c9 + last_write_checksum: sha1:1968f4847d64201428238469189c25a3cb73e7b3 + pristine_git_object: 6a3ae7740837de9ea423a448ca8215aab4f0bf91 models/components/platformchatcreaterequest.go: id: 403def909f16 - last_write_checksum: sha1:944a572893805246137ac2910bb7407f691ad4fc - pristine_git_object: 222653701e6315a8ca39d1591214652c35752051 + last_write_checksum: sha1:581a0f53c30903a4d9a7c632e6f1dcd56443097f + pristine_git_object: 108385f2c5fd19c22dadbb2008288f6fdf0fffe3 models/components/platformchatcustomentitysource.go: id: abc38257b700 - last_write_checksum: sha1:f4dce11fd569fb7acad13ff10d11ddabae55e24d - pristine_git_object: cc4cc754c842e89338dbce43c797c57c28bb4b9c + last_write_checksum: sha1:6fe0f94fa57ea5922bb4c7315f66138c5f113e9a + pristine_git_object: a66d9312cae0041e06fdf3a3b4cdcf17ea945da1 models/components/platformchatdocumentsource.go: id: afb0200c7212 - last_write_checksum: sha1:fd6977e6984de651c57a0766aafd479f7504747c - pristine_git_object: 3c56f4d672d6ace67d60e833f9adadd4b81b3873 + last_write_checksum: sha1:548ece3a19d70d45c54ddf01c2671034e4536837 + pristine_git_object: f87448db509eab101631589acf5f76a63ccad416 models/components/platformchatfilesource.go: id: 2d22b2015343 - last_write_checksum: sha1:d2343a100a92ad33e13e3c9f584e7cc1d1c17b34 - pristine_git_object: 0f523542303b4bc39b87af5fa179cc0f2843f922 + last_write_checksum: sha1:2184fae2538c919f008a1042d4e7325ddd147557 + pristine_git_object: ba46db41bf0ca0205c34316ae7410535dce42c90 models/components/platformchatinputmessage.go: id: 577974bd3a40 - last_write_checksum: sha1:ce19786ef4ae354dd4b27e97d914a6459f3fbdf0 - pristine_git_object: 04171d05f9dd11ebb8dbdbb6c74c75859b9f2eda + last_write_checksum: sha1:1c4e4ef333e9e507ebcce9318b02ff48941db332 + pristine_git_object: 18221040a6701124b81f121e36ac3b25d7d10b9a models/components/platformchatoutputmessage.go: id: c04115e996ec - last_write_checksum: sha1:a7ebd813ddd44c4b92b5e6c56f1ee622d1ae2470 - pristine_git_object: b606d34be2d6e95b78cfd942a404f773a38b9289 + last_write_checksum: sha1:ea846ac105f8d84917c3b4ed0bc7860ece682cb3 + pristine_git_object: 768adc89973de8a753e8f9a3e5cf96326959ffad models/components/platformchatoutputtextcontent.go: id: e6c4b8aa2653 - last_write_checksum: sha1:f466c461a38c922cc6f0131d5e435f388307c800 - pristine_git_object: 003b42bfa9335a2e378fd63ecfcbc61cd529dff1 + last_write_checksum: sha1:1e0b863623c2927be68a0908c6cfd4380c471e28 + pristine_git_object: beb7f496d6633975fb0fbfcc8dee04c1335546b7 models/components/platformchatpersonsource.go: id: 38616021af6a - last_write_checksum: sha1:4f867548caedb16307af814e6da51a32e2234c24 - pristine_git_object: ed46b5df8d05ee73b92b754d52125b625b10f42f + last_write_checksum: sha1:d7511cd57b585803f0797dd17917d7c3e7a219e7 + pristine_git_object: 665461e1bdfebd4a064df0cb8e681d51b5e573ea models/components/platformcontenttype.go: id: 30e828cf6d8c last_write_checksum: sha1:b552f26421544664b54a4423c8335c90b09480c6 @@ -7226,12 +7226,12 @@ trackedFiles: pristine_git_object: 767002c7898128324d8741ce9c534bd466492169 search.go: id: 4c057402d2bf - last_write_checksum: sha1:2866cd531b585bdfafc83e60f74e1bd51b5dcd65 - pristine_git_object: 48c0222eac4d361f6c2bf00df02067c9b2d15224 + last_write_checksum: sha1:a747715a66b9241da6366928f46bf2c966c999eb + pristine_git_object: a281aa1c42f70997fe9511ac685477d8b8b7e8d1 skills.go: id: 65ecddcd9ce6 - last_write_checksum: sha1:8b5c9c1b2e3537dd1a58e776d82d616212745c86 - pristine_git_object: 8ccde776fae3bebb40295b2e1ad50424d9762d5d + last_write_checksum: sha1:11f4e0a4477ac9e09a671f0180940b6c5390e5eb + pristine_git_object: 70998eacde146a1b7e6fcd7a3002a30b245237c8 tests/activities_test.go: id: 93b3ec0f226c last_write_checksum: sha1:d8e9f9a0d877a8e7d4277c174581d44633e1b8ec @@ -7722,8 +7722,8 @@ trackedFiles: pristine_git_object: ab9263d43404e8e6f07af222a3e785aca2fbf35f tests/mockserver/internal/handler/pathpostrestapiv1createcollection.go: id: 3fb93a419933 - last_write_checksum: sha1:09a57acc1d004a2fff76290b6c25e24471ad333e - pristine_git_object: 469bd6e6ee30bb11661f2a596a4504b75fa07da0 + last_write_checksum: sha1:7b2ffc9e36bbfc20c3bc1894f3727f96aa94ac74 + pristine_git_object: 75fb8eb70f6913c8f83c2895f5542bee631ffdaf tests/mockserver/internal/handler/pathpostrestapiv1createshortcut.go: id: 8d9d3abb0c34 last_write_checksum: sha1:2f9468a50936c4cb0fb2101d97c1425cb36ba2d4 @@ -8862,12 +8862,12 @@ trackedFiles: pristine_git_object: 04cc3a93272ac70933b0485bee31b335e05ab623 tests/mockserver/internal/sdk/models/components/feedentry.go: id: d25fd66fcf7a - last_write_checksum: sha1:7c8546042939c356feeb9846070c23a04edd1a13 - pristine_git_object: 75c2030f1bf29bd59360b09c62df32f9efee0517 + last_write_checksum: sha1:ca05066846a6d047343e46a4d545a1402e92b96c + pristine_git_object: 90b0237c9a4c54e1aceada9137ee3ff4409b9837 tests/mockserver/internal/sdk/models/components/feedrequest.go: id: b06bc4cef0cf - last_write_checksum: sha1:ca761301495e36eaf10fc4fa9086380498e6491a - pristine_git_object: 854c8390fa48c1647f0f3c04d19d89f6aae43d6f + last_write_checksum: sha1:a1293c6cdc3c294628e854614229c370a5218b71 + pristine_git_object: 97365efff1b005e6769bb2d5b561de68aadfc221 tests/mockserver/internal/sdk/models/components/feedrequestoptions.go: id: fd9245fe1bf2 last_write_checksum: sha1:fa30b7fd6ee3e45896d7bbe36e33e7c0cb9000ba @@ -8878,8 +8878,8 @@ trackedFiles: pristine_git_object: 54f9d1a8997983156c84e69f888c59a80d06c2b1 tests/mockserver/internal/sdk/models/components/feedresult.go: id: 47411573e67a - last_write_checksum: sha1:1980e5be5848c3aa1e732c680f7472899c9eb19c - pristine_git_object: 158c74284653d58bdffbab15a8f23188e092875d + last_write_checksum: sha1:973eec9b2d273d721f6310ebb20578c7d4f142d1 + pristine_git_object: cc69740a57fd002be69b2922812d7497a0778f51 tests/mockserver/internal/sdk/models/components/followupaction.go: id: 38179fec19b1 last_write_checksum: sha1:32a31f7af77a58ce6f3284e8550d01fcf0d3bddd @@ -9390,8 +9390,8 @@ trackedFiles: pristine_git_object: 58281ae6e982ccb6e585a3299a3893a5850cfb3d tests/mockserver/internal/sdk/models/components/platformchatcitationannotation.go: id: f4acfb6b571a - last_write_checksum: sha1:a07b63c29342dbc8760451a07748ecc5a795dd2a - pristine_git_object: eb920c4166fc2bc302a641531f1c92c946847124 + last_write_checksum: sha1:1f7f643895fdec20a70e5efebecdf9d8f636384e + pristine_git_object: 64b253ab16d8eea7f910fb7c32635756312c7866 tests/mockserver/internal/sdk/models/components/platformchatcitationsnippet.go: id: 19303510f847 last_write_checksum: sha1:521a16886f1f96d692e7dfc60c68ed16195f9db9 @@ -9402,40 +9402,40 @@ trackedFiles: pristine_git_object: c4c149d7a1856c60ae47b1f2e9b524d4d8458459 tests/mockserver/internal/sdk/models/components/platformchatcompletedresponse.go: id: dfc6d86d9ca2 - last_write_checksum: sha1:b6cfe25cea6372862c6cb89c31f0a27f32768b48 - pristine_git_object: 3626477733c9d6b8350ce69c4b0c114e6d12ecee + last_write_checksum: sha1:0a214ec8175734c89d968fbb3af56fc19e817264 + pristine_git_object: be4e37123971803d69d6581668ac6fa8e0f56347 tests/mockserver/internal/sdk/models/components/platformchatcreaterequest.go: id: b024a90db5cf - last_write_checksum: sha1:a5d728f3340cd89d08c5cb4c45ca2495bf063099 - pristine_git_object: ff12189e8a27b80e6ebd875b23d3ab15415afc9b + last_write_checksum: sha1:c7c3b67893cd7e42c4995e7e5b8f13bbb91090f1 + pristine_git_object: a5b50b89f856fa678f9bc26fa08818a8d91f183b tests/mockserver/internal/sdk/models/components/platformchatcustomentitysource.go: id: 19335eec1f0c - last_write_checksum: sha1:782fd0be48c718f3748c4f0a49dc82cface4d644 - pristine_git_object: a935970d4dccc9196d4c34855dc24db23f0f2a44 + last_write_checksum: sha1:52947945dd84893095dd04c7c1d0fed92eed9d03 + pristine_git_object: ccd6eac366414927d53ec579b691a1abf3f34867 tests/mockserver/internal/sdk/models/components/platformchatdocumentsource.go: id: 50d8ddf827c8 - last_write_checksum: sha1:c172280641caf057547c11ec1fa16e539a11fcdb - pristine_git_object: 9dd42aa5e0abcb1b41e68d833f349779f7fa90b1 + last_write_checksum: sha1:601d2c92039f18fcf03ea3abe7a8cb30d96862d2 + pristine_git_object: 63d8078fd2f1510238397be59455ef19090a3a3a tests/mockserver/internal/sdk/models/components/platformchatfilesource.go: id: f717724c0acb - last_write_checksum: sha1:572e86750f5f0a9d3a1d7bb4fe6507d47d9d11a1 - pristine_git_object: ad39a1dedf884498db229569f975d07cbfceda37 + last_write_checksum: sha1:9c1cf43539e36e553ea918fd22db2e9a6985f926 + pristine_git_object: 6714718990fc59806d1a8f15d9b24515397fa930 tests/mockserver/internal/sdk/models/components/platformchatinputmessage.go: id: 56818bc51e4c - last_write_checksum: sha1:70c4b032b5066633b8cd34d0c49c28df2387bf75 - pristine_git_object: 5989ab25d09e93f7dda37735c4756dd941e76b14 + last_write_checksum: sha1:42af3af208da28f93f0f2201e3daa8b46a7e1dba + pristine_git_object: 97c1e067fb5ecb6b2f97606419d967243488f520 tests/mockserver/internal/sdk/models/components/platformchatoutputmessage.go: id: 7ca1fc5cc683 - last_write_checksum: sha1:9da219f4f8004153d64d9ec89365dd92ba0b99f7 - pristine_git_object: c7ccd4be66bf0f4e6a931a470d244774d3ca256d + last_write_checksum: sha1:3db396040f3153e9079616c8618abeecc999e663 + pristine_git_object: 69218f0ebe38116259e1e0a7c021e605a79e88f6 tests/mockserver/internal/sdk/models/components/platformchatoutputtextcontent.go: id: b5d5f31f9886 - last_write_checksum: sha1:7b83b7cadf85b852949b765447c7c165acf49021 - pristine_git_object: fedd3f2853557a146f561b333d30dfe6799bf274 + last_write_checksum: sha1:65d94d8a5470bd836564c69e1476d29c7c8041b9 + pristine_git_object: d5020f5ca750f648d73d9153f3a332745d72304c tests/mockserver/internal/sdk/models/components/platformchatpersonsource.go: id: b44852860bd9 - last_write_checksum: sha1:baa4c11fc983d682b8f66d282ef55955bfd3bf99 - pristine_git_object: 1e969fb91bd34be3dcd9e2e2e242565eb97b15fd + last_write_checksum: sha1:ae83c0e9521f08d5818d9aa5cff33ca7233239a7 + pristine_git_object: 9576e8664747c8ca292816827aae56589aeab5c0 tests/mockserver/internal/sdk/models/components/platformcontenttype.go: id: d1a02baa3621 last_write_checksum: sha1:b552f26421544664b54a4423c8335c90b09480c6 @@ -10926,8 +10926,8 @@ trackedFiles: pristine_git_object: 34de629e636ff1ec4a5341bdf6b0ae06aa408ba4 tests/summarize_test.go: id: 1b63b0a16e69 - last_write_checksum: sha1:7b432655f0dba886ce6a8857b300eb3b0f43d5ea - pristine_git_object: 455b796edf1ac793ed4cb75eb326727716c0e3e3 + last_write_checksum: sha1:08fe04eb42308eee90a3adea04544b999027bcde + pristine_git_object: 1a12a62a22fc4824edb72faad01c2acdcfbe2e15 tests/testclient.go: id: 78d36c6e169c last_write_checksum: sha1:507c44e437934fbff8d295201c1327e18bd00df8 @@ -10946,8 +10946,8 @@ trackedFiles: pristine_git_object: c28b73ad8c1100262680cd4ce7841f2b277df05b tools.go: id: 3387d70491f4 - last_write_checksum: sha1:f4f0c4c89535477987b4f6395e7f898a8743aa56 - pristine_git_object: 39060a597e69fb18fd98881fe3d8a14b41e317aa + last_write_checksum: sha1:fdc28baf6072e05378c863163150fddba429483b + pristine_git_object: 3fb011b1743b2414a2a36f089b08911992f7b175 types/bigint.go: id: 6f911e1a03c3 last_write_checksum: sha1:49b004005d0461fb04b846eca062b070b0360b31 @@ -12121,7 +12121,7 @@ examples: application/json: {"input": "", "stream": false, "store": true} responses: "200": - application/json: {"id": "", "object": "response", "created_at": "2026-05-19T05:32:52.505Z", "status": "completed", "output": [{"type": "message", "role": "assistant", "content": [{"type": "output_text", "text": ""}]}], "store": false, "request_id": ""} + application/json: {"id": "", "object": "RESPONSE", "created_at": "2026-05-19T05:32:52.505Z", "status": "COMPLETED", "output": [{"type": "MESSAGE", "role": "ASSISTANT", "content": [{"type": "OUTPUT_TEXT", "text": ""}]}], "store": false, "request_id": ""} text/event-stream: "" "400": application/problem+json: {"type": "https://developers.glean.com/errors/invalid-cursor", "title": "Invalid Pagination Cursor", "status": 400, "detail": "The provided cursor has expired. Start a new search to get a fresh cursor.\n", "code": "invalid_cursor", "documentation_url": "https://developers.glean.com/errors/invalid-cursor", "request_id": "req_7f8a9b0c1d2e", "errors": [{"pointer": "/messages/0/role", "detail": "Must be one of: USER, GLEAN_AI.", "code": "invalid_cursor"}]} @@ -12406,6 +12406,7 @@ generatedTests: post_/api/index/v1/debug/{datasource}/documents: "2026-08-07T21:23:24Z" post_/api/index/v1/debug/{datasource}/document/events: "2026-08-07T21:23:24Z" post_/api/index/v1/debug/{datasource}/user: "2026-08-07T21:23:24Z" +releaseNotes: "## Go SDK Changes:\n* `Glean.Chat.Create()`: \n * `request.Request.Input.union(Array)[].Role` **Changed** (Breaking ⚠️)\n * `response` **Changed** (Breaking ⚠️)\n* `Glean.Client.Search.RetrieveFeed()`: \n * `request.FeedRequest.Categories[].Enum(knowledgeGap)` **Added**\n * `response.Results[]` **Changed**\n" generatedFiles: - .devcontainer/README.md - .devcontainer/devcontainer.json diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 1cf05a90..a1d4923e 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -32,7 +32,7 @@ generation: generateNewTests: true skipResponseBodyAssertions: true go: - version: 0.13.5 + version: 0.13.6 additionalDependencies: {} allowUnknownFieldsInWeakUnions: false baseErrorName: GleanError diff --git a/.speakeasy/glean-merged-spec.yaml b/.speakeasy/glean-merged-spec.yaml index 1906bd1f..f8e91724 100644 --- a/.speakeasy/glean-merged-spec.yaml +++ b/.speakeasy/glean-merged-spec.yaml @@ -2,8 +2,8 @@ openapi: 3.0.0 info: version: "0.9.0" title: Glean API - x-source-commit-sha: 7a82cb818d032eca9f42d56706dd9e0a65418d45 - x-open-api-commit-sha: 987c3f6458420f6a99420d808bdccea74ab84dad + x-source-commit-sha: 738bedca74325879034a2f7c498728774665e6f4 + x-open-api-commit-sha: 535fe7f4c11bb378401ace8b95881f44d9706ac5 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. @@ -205,7 +205,8 @@ paths: text/event-stream: schema: type: string - description: Server-sent events emitted by the running agent. + description: | + Server-sent events emitted by the running agent. Successful runs emit `message` events. A terminal failure after the stream has started emits exactly one `run.failed` event whose `data` is an `AgentRunFailedEventData` payload, then closes. example: | id: 1 event: message @@ -214,6 +215,10 @@ paths: id: 2 event: message data: {"messages":[{"role":"GLEAN_AI","content":[{"text":", I can help with HR policy questions.","type":"text"}]}]} + + id: 3 + event: run.failed + data: {"error":{"type":"https://developers.glean.com/errors/spend-limit-exceeded","title":"Spend Limit Exceeded","status":403,"detail":"You've reached the monthly limit set by your admin.","code":"spend_limit_exceeded","request_id":"req_123","documentation_url":"https://developers.glean.com/errors/spend-limit-exceeded"}} "400": $ref: "#/components/responses/PlatformBadRequest" "401": @@ -277,20 +282,24 @@ paths: Server-sent events for a streaming chat run. Event payloads are documented under ChatStream* schemas. example: | id: 1 - event: response.created - data: {"type":"response.created","response_id":"resp_e65a0a77-97a2-4c91-be60-eae7f6238015"} + event: RESPONSE_CREATED + data: {"type":"RESPONSE_CREATED","response_id":"resp_e65a0a77-97a2-4c91-be60-eae7f6238015"} id: 2 - event: response.output_text.delta - data: {"type":"response.output_text.delta","response_id":"resp_e65a0a77-97a2-4c91-be60-eae7f6238015","delta":"Hello"} + event: RESPONSE_PROGRESS + data: {"type":"RESPONSE_PROGRESS","response_id":"resp_e65a0a77-97a2-4c91-be60-eae7f6238015","text":"**Searching:** foo"} id: 3 - event: response.output_text.done - data: {"type":"response.output_text.done","response_id":"resp_e65a0a77-97a2-4c91-be60-eae7f6238015","text":"Hello"} + event: RESPONSE_OUTPUT_TEXT_DELTA + data: {"type":"RESPONSE_OUTPUT_TEXT_DELTA","response_id":"resp_e65a0a77-97a2-4c91-be60-eae7f6238015","delta":"Hello"} id: 4 - event: response.completed - data: {"type":"response.completed","response_id":"resp_e65a0a77-97a2-4c91-be60-eae7f6238015","response":{"id":"resp_e65a0a77-97a2-4c91-be60-eae7f6238015","object":"response","status":"completed","output":[{"type":"message","role":"assistant","content":[{"type":"output_text","text":"Hello"}]}],"store":true,"request_id":"req_123","created_at":"2026-07-14T20:00:00Z"}} + event: RESPONSE_OUTPUT_TEXT_DONE + data: {"type":"RESPONSE_OUTPUT_TEXT_DONE","response_id":"resp_e65a0a77-97a2-4c91-be60-eae7f6238015","text":"Hello"} + + id: 5 + event: RESPONSE_COMPLETED + data: {"type":"RESPONSE_COMPLETED","response_id":"resp_e65a0a77-97a2-4c91-be60-eae7f6238015","response":{"id":"resp_e65a0a77-97a2-4c91-be60-eae7f6238015","object":"RESPONSE","status":"COMPLETED","output":[{"type":"MESSAGE","role":"ASSISTANT","content":[{"type":"OUTPUT_TEXT","text":"Hello"}]}],"store":true,"request_id":"req_123","created_at":"2026-07-14T20:00:00Z"}} "400": $ref: "#/components/responses/PlatformBadRequest" "401": @@ -417,42 +426,42 @@ paths: x-speakeasy-name-override: list security: - APIToken: [] - /api/skills/validation: + /api/skills/import: post: tags: - Skills - summary: Validate skill bundle + summary: Import skills from GitHub description: | - Validate a skill bundle without persisting it. Accepts a SKILL.md, .zip, or .skill upload and returns parsed metadata plus the normalized file layout. - operationId: platform-skills-validate + Import one or more skills selected from a GitHub source preview. Each source URL is fetched and persisted as an independent skill with source provenance. This operation does not create a durable source resource. The import is atomic: if any source cannot be fetched, validated, or persisted, no skills are created. + operationId: platform-skills-import x-visibility: Public x-glean-experimental: - id: 0b086fa6-30f8-4279-8d11-10ab0059c14a - introduced: "2026-06-24" + id: 9162d790-e101-437d-a9a0-25e4687d150b + introduced: "2026-07-28" + x-codegen-request-body-name: request requestBody: required: true content: - multipart/form-data: + application/json: schema: - $ref: "#/components/schemas/PlatformSkillValidationRequest" - x-codegen-request-body-name: request + $ref: "#/components/schemas/PlatformSkillImportRequest" responses: "200": - description: Successful response. + description: Skills imported successfully. content: application/json: schema: - $ref: "#/components/schemas/PlatformSkillValidationResponse" + $ref: "#/components/schemas/PlatformSkillImportResponse" "400": $ref: "#/components/responses/PlatformBadRequest" "401": $ref: "#/components/responses/PlatformUnauthorized" "403": $ref: "#/components/responses/PlatformForbidden" - "404": - $ref: "#/components/responses/PlatformNotFound" "408": $ref: "#/components/responses/PlatformRequestTimeout" + "409": + $ref: "#/components/responses/PlatformConflict" "413": $ref: "#/components/responses/PlatformRequestTooLarge" "429": @@ -462,45 +471,45 @@ paths: "503": $ref: "#/components/responses/PlatformServiceUnavailable" x-speakeasy-group: skills - x-speakeasy-name-override: validate + x-speakeasy-name-override: import security: - APIToken: [] - /api/skills/import: + /api/skills/validation: post: tags: - Skills - summary: Import skills from GitHub + summary: Validate skill bundle description: | - Import one or more skills selected from a GitHub source preview. Each source URL is fetched and persisted as an independent skill with source provenance. This operation does not create a durable source resource. The import is atomic: if any source cannot be fetched, validated, or persisted, no skills are created. - operationId: platform-skills-import + Validate a skill bundle without persisting it. Accepts a SKILL.md, .zip, or .skill upload and returns parsed metadata plus the normalized file layout. + operationId: platform-skills-validate x-visibility: Public x-glean-experimental: - id: 9162d790-e101-437d-a9a0-25e4687d150b - introduced: "2026-07-28" - x-codegen-request-body-name: request + id: 0b086fa6-30f8-4279-8d11-10ab0059c14a + introduced: "2026-06-24" requestBody: required: true content: - application/json: + multipart/form-data: schema: - $ref: "#/components/schemas/PlatformSkillImportRequest" + $ref: "#/components/schemas/PlatformSkillValidationRequest" + x-codegen-request-body-name: request responses: "200": - description: Skills imported successfully. + description: Successful response. content: application/json: schema: - $ref: "#/components/schemas/PlatformSkillImportResponse" + $ref: "#/components/schemas/PlatformSkillValidationResponse" "400": $ref: "#/components/responses/PlatformBadRequest" "401": $ref: "#/components/responses/PlatformUnauthorized" "403": $ref: "#/components/responses/PlatformForbidden" + "404": + $ref: "#/components/responses/PlatformNotFound" "408": $ref: "#/components/responses/PlatformRequestTimeout" - "409": - $ref: "#/components/responses/PlatformConflict" "413": $ref: "#/components/responses/PlatformRequestTooLarge" "429": @@ -510,7 +519,7 @@ paths: "503": $ref: "#/components/responses/PlatformServiceUnavailable" x-speakeasy-group: skills - x-speakeasy-name-override: import + x-speakeasy-name-override: validate security: - APIToken: [] /api/skills/sources/preview: @@ -3999,14 +4008,15 @@ paths: summary: Get tool definitions from a tool server. description: | Returns the name, description and JSON input schema for the named tools on the - specified tool server. Works for both action packs and MCP servers. + specified tool server. Works for Glean's built-in tools, tool packs and MCP + servers. `toolNames` is required. Names that do not exist on the server are returned in `notFound` rather than failing the request, so a single bad name does not force callers into one-at-a-time retries. Matching is case-insensitive and treats `-` and `_` as equivalent. - Native tools are not served; `serverId=native` returns 404. + Use `serverId=native` for Glean's built-in tools. tags: - Tools security: @@ -6014,6 +6024,8 @@ paths: summary: Chat description: Have a conversation with Glean AI. operationId: chatStream + security: + - APIToken: [] x-visibility: Public x-codegen-request-body-name: payload parameters: @@ -6603,8 +6615,8 @@ components: role: type: string enum: - - user - - assistant + - USER + - ASSISTANT content: type: string minLength: 1 @@ -6616,7 +6628,7 @@ components: properties: input: description: | - Either a plain string (single user turn) or a chronological array of `user`/`assistant` messages. The final array message must be `user`. + Either a plain string (single user turn) or a chronological array of `USER`/`ASSISTANT` messages. The final array message must be `USER`. oneOf: - type: string minLength: 1 @@ -6654,7 +6666,7 @@ components: type: type: string enum: - - document + - DOCUMENT document_id: type: string minLength: 1 @@ -6680,7 +6692,7 @@ components: type: type: string enum: - - person + - PERSON person_id: type: string minLength: 1 @@ -6698,7 +6710,7 @@ components: type: type: string enum: - - file + - FILE file_id: type: string minLength: 1 @@ -6718,7 +6730,7 @@ components: type: type: string enum: - - custom_entity + - CUSTOM_ENTITY entity_id: type: string minLength: 1 @@ -6740,10 +6752,10 @@ components: discriminator: propertyName: type mapping: - document: "#/components/schemas/ChatDocumentSource" - person: "#/components/schemas/ChatPersonSource" - file: "#/components/schemas/ChatFileSource" - custom_entity: "#/components/schemas/ChatCustomEntitySource" + DOCUMENT: "#/components/schemas/ChatDocumentSource" + PERSON: "#/components/schemas/ChatPersonSource" + FILE: "#/components/schemas/ChatFileSource" + CUSTOM_ENTITY: "#/components/schemas/ChatCustomEntitySource" PlatformChatCitationSnippet: type: object additionalProperties: false @@ -6766,7 +6778,7 @@ components: type: type: string enum: - - citation + - CITATION sources: type: array minItems: 1 @@ -6795,7 +6807,7 @@ components: type: type: string enum: - - output_text + - OUTPUT_TEXT text: type: string annotations: @@ -6813,11 +6825,11 @@ components: type: type: string enum: - - message + - MESSAGE role: type: string enum: - - assistant + - ASSISTANT content: type: array minItems: 1 @@ -6841,7 +6853,7 @@ components: object: type: string enum: - - response + - RESPONSE created_at: type: string format: date-time @@ -6849,7 +6861,7 @@ components: status: type: string enum: - - completed + - COMPLETED output: type: array minItems: 1 @@ -7008,6 +7020,37 @@ components: request_id: type: string description: Platform-generated request ID for support correlation. + PlatformSkillImportRequest: + type: object + additionalProperties: false + required: + - source_urls + properties: + source_urls: + type: array + minItems: 1 + maxItems: 100 + uniqueItems: true + description: Resolved GitHub skill URLs selected from a source preview. + items: + type: string + minLength: 1 + maxLength: 2048 + PlatformSkillImportResponse: + type: object + required: + - skills + - request_id + properties: + skills: + type: array + minItems: 1 + description: Independently persisted skills in request order. + items: + $ref: "#/components/schemas/PlatformSkill" + request_id: + type: string + description: Platform-generated request ID for support correlation. PlatformSkillValidationRequest: type: object additionalProperties: false @@ -7069,37 +7112,6 @@ components: request_id: type: string description: Platform-generated request ID for support correlation. - PlatformSkillImportRequest: - type: object - additionalProperties: false - required: - - source_urls - properties: - source_urls: - type: array - minItems: 1 - maxItems: 100 - uniqueItems: true - description: Resolved GitHub skill URLs selected from a source preview. - items: - type: string - minLength: 1 - maxLength: 2048 - PlatformSkillImportResponse: - type: object - required: - - skills - - request_id - properties: - skills: - type: array - minItems: 1 - description: Independently persisted skills in request order. - items: - $ref: "#/components/schemas/PlatformSkill" - request_id: - type: string - description: Platform-generated request ID for support correlation. PlatformSkillSourcePreviewRequest: type: object additionalProperties: false @@ -14344,6 +14356,7 @@ components: - OOO_PLANNER - OOO_CATCH_UP - ADMIN_HEALTH_CENTER + - KNOWLEDGE_GAP description: Categories of content requested. An allowlist gives flexibility to request content separately or together. requestOptions: $ref: '#/components/schemas/FeedRequestOptions' @@ -14789,6 +14802,7 @@ components: - OOO_PLANNER - OOO_CATCH_UP - ADMIN_HEALTH_CENTER + - KNOWLEDGE_GAP description: Type of the justification. justification: type: string @@ -14880,6 +14894,7 @@ components: - OOO_PLANNER - OOO_CATCH_UP - ADMIN_HEALTH_CENTER + - KNOWLEDGE_GAP description: Category of the result, one of the requested categories in incoming request. primaryEntry: $ref: '#/components/schemas/FeedEntry' @@ -14896,7 +14911,8 @@ components: enum: - ORGANIC - PROMO - description: Placement source for ranked feed results. ORGANIC means the card was emitted by normal feed ranking. PROMO means the card was inserted by the homepage cards promo framework. + - PINNED + description: Placement source for ranked feed results. ORGANIC means the card was emitted by normal feed ranking. PROMO means the card was inserted by the homepage cards promo framework. PINNED means the card was moved to the head of the ranked stack (e.g. knowledge-gap pilot cards). required: - category - primaryEntry diff --git a/.speakeasy/tests.arazzo.yaml b/.speakeasy/tests.arazzo.yaml index c645cbda..fdba6cc1 100644 --- a/.speakeasy/tests.arazzo.yaml +++ b/.speakeasy/tests.arazzo.yaml @@ -164914,7 +164914,7 @@ workflows: - condition: $response.header.Content-Type == application/json - context: $response.body condition: | - {"id":"","object":"response","created_at":"2026-05-19T05:32:52.505Z","status":"completed","output":[{"type":"message","role":"assistant","content":[{"type":"output_text","text":""}]}],"store":false,"request_id":""} + {"id":"","object":"RESPONSE","created_at":"2026-05-19T05:32:52.505Z","status":"COMPLETED","output":[{"type":"MESSAGE","role":"ASSISTANT","content":[{"type":"OUTPUT_TEXT","text":""}]}],"store":false,"request_id":""} type: simple x-speakeasy-test-group: chat x-speakeasy-test-rebuild: true diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 59d062f5..acad1b02 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.792.0 +speakeasyVersion: 1.794.0 sources: Glean API: sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:ca77ef4550d695da210e8f0d32f3422d29e9d09f7aa66f7b13d248c6ec8c7941 - sourceBlobDigest: sha256:469de4cd2c8ab4928c3989656bf63cc265a8ceea5a8b3e3498734137b19723f8 + sourceRevisionDigest: sha256:f80bbddd9fa7ca5475b3b9d84338e0a16de2e47c3e6585e568af8bcb449301f2 + sourceBlobDigest: sha256:7adb7b36c3a5923084580a20334184a64a83265d805eea894e2259c4b505af0b tags: - latest petstore-oas: @@ -17,10 +17,10 @@ targets: glean: source: Glean API sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:ca77ef4550d695da210e8f0d32f3422d29e9d09f7aa66f7b13d248c6ec8c7941 - sourceBlobDigest: sha256:469de4cd2c8ab4928c3989656bf63cc265a8ceea5a8b3e3498734137b19723f8 + sourceRevisionDigest: sha256:f80bbddd9fa7ca5475b3b9d84338e0a16de2e47c3e6585e568af8bcb449301f2 + sourceBlobDigest: sha256:7adb7b36c3a5923084580a20334184a64a83265d805eea894e2259c4b505af0b codeSamplesNamespace: glean-api-specs-go-code-samples - codeSamplesRevisionDigest: sha256:df19d1292f8190bf57b907045c6e7529b7f5c500b6d01a0f8d909961d64ae7f5 + codeSamplesRevisionDigest: sha256:cd6b884a68a2e23cc0d8423c22d9573c2cb6eea7d2980a13b3943b16305a0ce7 petstore: source: petstore-oas sourceNamespace: petstore-oas diff --git a/README.md b/README.md index f45d5a85..39dd8f5a 100644 --- a/README.md +++ b/README.md @@ -474,8 +474,8 @@ For more information on obtaining the appropriate token type, please contact you * [Create](docs/sdks/skills/README.md#create) - Create skill * [List](docs/sdks/skills/README.md#list) - List skills -* [Validate](docs/sdks/skills/README.md#validate) - Validate skill bundle * [Import](docs/sdks/skills/README.md#import) - Import skills from GitHub +* [Validate](docs/sdks/skills/README.md#validate) - Validate skill bundle * [PreviewSource](docs/sdks/skills/README.md#previewsource) - Preview a GitHub skill source * [Update](docs/sdks/skills/README.md#update) - Update skill * [Delete](docs/sdks/skills/README.md#delete) - Delete skill diff --git a/RELEASES.md b/RELEASES.md index b9bb27e9..7a966fdf 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -818,4 +818,14 @@ Based on: ### Generated - [go v0.13.5] . ### Releases -- [Go v0.13.5] https://github.com/gleanwork/api-client-go/releases/tag/v0.13.5 - . \ No newline at end of file +- [Go v0.13.5] https://github.com/gleanwork/api-client-go/releases/tag/v0.13.5 - . + +## 2026-08-15 00:57:28 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.794.0 (2.930.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [go v0.13.6] . +### Releases +- [Go v0.13.6] https://github.com/gleanwork/api-client-go/releases/tag/v0.13.6 - . \ No newline at end of file diff --git a/docs/models/components/feedrequestcategory.md b/docs/models/components/feedrequestcategory.md index 66caa43b..56e58281 100644 --- a/docs/models/components/feedrequestcategory.md +++ b/docs/models/components/feedrequestcategory.md @@ -59,4 +59,5 @@ value := components.FeedRequestCategoryDocumentSuggestion | `FeedRequestCategoryDemoCard` | DEMO_CARD | | `FeedRequestCategoryOooPlanner` | OOO_PLANNER | | `FeedRequestCategoryOooCatchUp` | OOO_CATCH_UP | -| `FeedRequestCategoryAdminHealthCenter` | ADMIN_HEALTH_CENTER | \ No newline at end of file +| `FeedRequestCategoryAdminHealthCenter` | ADMIN_HEALTH_CENTER | +| `FeedRequestCategoryKnowledgeGap` | KNOWLEDGE_GAP | \ No newline at end of file diff --git a/docs/models/components/feedresult.md b/docs/models/components/feedresult.md index a3d714f7..86a3734a 100644 --- a/docs/models/components/feedresult.md +++ b/docs/models/components/feedresult.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Category` | [components.FeedResultCategory](../../models/components/feedresultcategory.md) | :heavy_check_mark: | Category of the result, one of the requested categories in incoming request. | -| `PrimaryEntry` | [components.FeedEntry](../../models/components/feedentry.md) | :heavy_check_mark: | N/A | -| `SecondaryEntries` | [][components.FeedEntry](../../models/components/feedentry.md) | :heavy_minus_sign: | Secondary entries for the result e.g. suggested docs for the calendar, carousel. | -| `Rank` | `*int64` | :heavy_minus_sign: | Rank of the result. Rank is suggested by server. Client side rank may differ. | -| `PlacementReason` | [*components.PlacementReason](../../models/components/placementreason.md) | :heavy_minus_sign: | Placement source for ranked feed results. ORGANIC means the card was emitted by normal feed ranking. PROMO means the card was inserted by the homepage cards promo framework. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Category` | [components.FeedResultCategory](../../models/components/feedresultcategory.md) | :heavy_check_mark: | Category of the result, one of the requested categories in incoming request. | +| `PrimaryEntry` | [components.FeedEntry](../../models/components/feedentry.md) | :heavy_check_mark: | N/A | +| `SecondaryEntries` | [][components.FeedEntry](../../models/components/feedentry.md) | :heavy_minus_sign: | Secondary entries for the result e.g. suggested docs for the calendar, carousel. | +| `Rank` | `*int64` | :heavy_minus_sign: | Rank of the result. Rank is suggested by server. Client side rank may differ. | +| `PlacementReason` | [*components.PlacementReason](../../models/components/placementreason.md) | :heavy_minus_sign: | Placement source for ranked feed results. ORGANIC means the card was emitted by normal feed ranking. PROMO means the card was inserted by the homepage cards promo framework. PINNED means the card was moved to the head of the ranked stack (e.g. knowledge-gap pilot cards). | \ No newline at end of file diff --git a/docs/models/components/feedresultcategory.md b/docs/models/components/feedresultcategory.md index 08e487bf..d549449a 100644 --- a/docs/models/components/feedresultcategory.md +++ b/docs/models/components/feedresultcategory.md @@ -64,4 +64,5 @@ custom := components.FeedResultCategory("custom_value") | `FeedResultCategoryDemoCard` | DEMO_CARD | | `FeedResultCategoryOooPlanner` | OOO_PLANNER | | `FeedResultCategoryOooCatchUp` | OOO_CATCH_UP | -| `FeedResultCategoryAdminHealthCenter` | ADMIN_HEALTH_CENTER | \ No newline at end of file +| `FeedResultCategoryAdminHealthCenter` | ADMIN_HEALTH_CENTER | +| `FeedResultCategoryKnowledgeGap` | KNOWLEDGE_GAP | \ No newline at end of file diff --git a/docs/models/components/input.md b/docs/models/components/input.md index 2a0ab5b6..8756e294 100644 --- a/docs/models/components/input.md +++ b/docs/models/components/input.md @@ -1,6 +1,6 @@ # Input -Either a plain string (single user turn) or a chronological array of `user`/`assistant` messages. The final array message must be `user`. +Either a plain string (single user turn) or a chronological array of `USER`/`ASSISTANT` messages. The final array message must be `USER`. diff --git a/docs/models/components/justificationtype.md b/docs/models/components/justificationtype.md index 939bec1f..e9ca10aa 100644 --- a/docs/models/components/justificationtype.md +++ b/docs/models/components/justificationtype.md @@ -77,4 +77,5 @@ custom := components.JustificationType("custom_value") | `JustificationTypeDemoCard` | DEMO_CARD | | `JustificationTypeOooPlanner` | OOO_PLANNER | | `JustificationTypeOooCatchUp` | OOO_CATCH_UP | -| `JustificationTypeAdminHealthCenter` | ADMIN_HEALTH_CENTER | \ No newline at end of file +| `JustificationTypeAdminHealthCenter` | ADMIN_HEALTH_CENTER | +| `JustificationTypeKnowledgeGap` | KNOWLEDGE_GAP | \ No newline at end of file diff --git a/docs/models/components/object.md b/docs/models/components/object.md index f53946ad..1066842b 100644 --- a/docs/models/components/object.md +++ b/docs/models/components/object.md @@ -15,4 +15,4 @@ value := components.ObjectResponse | Name | Value | | ---------------- | ---------------- | -| `ObjectResponse` | response | \ No newline at end of file +| `ObjectResponse` | RESPONSE | \ No newline at end of file diff --git a/docs/models/components/placementreason.md b/docs/models/components/placementreason.md index 3a285813..664d0151 100644 --- a/docs/models/components/placementreason.md +++ b/docs/models/components/placementreason.md @@ -1,6 +1,6 @@ # PlacementReason -Placement source for ranked feed results. ORGANIC means the card was emitted by normal feed ranking. PROMO means the card was inserted by the homepage cards promo framework. +Placement source for ranked feed results. ORGANIC means the card was emitted by normal feed ranking. PROMO means the card was inserted by the homepage cards promo framework. PINNED means the card was moved to the head of the ranked stack (e.g. knowledge-gap pilot cards). ## Example Usage @@ -21,4 +21,5 @@ custom := components.PlacementReason("custom_value") | Name | Value | | ------------------------ | ------------------------ | | `PlacementReasonOrganic` | ORGANIC | -| `PlacementReasonPromo` | PROMO | \ No newline at end of file +| `PlacementReasonPromo` | PROMO | +| `PlacementReasonPinned` | PINNED | \ No newline at end of file diff --git a/docs/models/components/platformchatcitationannotationtype.md b/docs/models/components/platformchatcitationannotationtype.md index d2e7cca9..da218274 100644 --- a/docs/models/components/platformchatcitationannotationtype.md +++ b/docs/models/components/platformchatcitationannotationtype.md @@ -15,4 +15,4 @@ value := components.PlatformChatCitationAnnotationTypeCitation | Name | Value | | -------------------------------------------- | -------------------------------------------- | -| `PlatformChatCitationAnnotationTypeCitation` | citation | \ No newline at end of file +| `PlatformChatCitationAnnotationTypeCitation` | CITATION | \ No newline at end of file diff --git a/docs/models/components/platformchatcompletedresponsestatus.md b/docs/models/components/platformchatcompletedresponsestatus.md index 63e07cda..e8a35f65 100644 --- a/docs/models/components/platformchatcompletedresponsestatus.md +++ b/docs/models/components/platformchatcompletedresponsestatus.md @@ -15,4 +15,4 @@ value := components.PlatformChatCompletedResponseStatusCompleted | Name | Value | | ---------------------------------------------- | ---------------------------------------------- | -| `PlatformChatCompletedResponseStatusCompleted` | completed | \ No newline at end of file +| `PlatformChatCompletedResponseStatusCompleted` | COMPLETED | \ No newline at end of file diff --git a/docs/models/components/platformchatcreaterequest.md b/docs/models/components/platformchatcreaterequest.md index 62a4f19f..e03390f1 100644 --- a/docs/models/components/platformchatcreaterequest.md +++ b/docs/models/components/platformchatcreaterequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | -| `Input` | [components.Input](../../models/components/input.md) | :heavy_check_mark: | Either a plain string (single user turn) or a chronological array of `user`/`assistant` messages. The final array message must be `user`.
| +| `Input` | [components.Input](../../models/components/input.md) | :heavy_check_mark: | Either a plain string (single user turn) or a chronological array of `USER`/`ASSISTANT` messages. The final array message must be `USER`.
| | `Stream` | `*bool` | :heavy_minus_sign: | When true, respond with `text/event-stream`. When false or omitted, respond with `application/json`.
| | `Store` | `*bool` | :heavy_minus_sign: | When true (default), persist the interaction and return a `conversation_id`. When false, run ephemerally with no persistence.
| | `ConversationID` | `*string` | :heavy_minus_sign: | Continue an existing stored conversation. Incompatible with message-array `input` and with `store: false`.
| \ No newline at end of file diff --git a/docs/models/components/platformchatcustomentitysourcetype.md b/docs/models/components/platformchatcustomentitysourcetype.md index 2be8235a..93da64c4 100644 --- a/docs/models/components/platformchatcustomentitysourcetype.md +++ b/docs/models/components/platformchatcustomentitysourcetype.md @@ -15,4 +15,4 @@ value := components.PlatformChatCustomEntitySourceTypeCustomEntity | Name | Value | | ------------------------------------------------ | ------------------------------------------------ | -| `PlatformChatCustomEntitySourceTypeCustomEntity` | custom_entity | \ No newline at end of file +| `PlatformChatCustomEntitySourceTypeCustomEntity` | CUSTOM_ENTITY | \ No newline at end of file diff --git a/docs/models/components/platformchatdocumentsourcetype1.md b/docs/models/components/platformchatdocumentsourcetype1.md index 98714fb9..5b0ec568 100644 --- a/docs/models/components/platformchatdocumentsourcetype1.md +++ b/docs/models/components/platformchatdocumentsourcetype1.md @@ -15,4 +15,4 @@ value := components.PlatformChatDocumentSourceType1Document | Name | Value | | ----------------------------------------- | ----------------------------------------- | -| `PlatformChatDocumentSourceType1Document` | document | \ No newline at end of file +| `PlatformChatDocumentSourceType1Document` | DOCUMENT | \ No newline at end of file diff --git a/docs/models/components/platformchatdocumentsourcetype2.md b/docs/models/components/platformchatdocumentsourcetype2.md index ae8b6c0e..6de9d2ed 100644 --- a/docs/models/components/platformchatdocumentsourcetype2.md +++ b/docs/models/components/platformchatdocumentsourcetype2.md @@ -15,4 +15,4 @@ value := components.PlatformChatDocumentSourceType2Document | Name | Value | | ----------------------------------------- | ----------------------------------------- | -| `PlatformChatDocumentSourceType2Document` | document | \ No newline at end of file +| `PlatformChatDocumentSourceType2Document` | DOCUMENT | \ No newline at end of file diff --git a/docs/models/components/platformchatfilesourcetype.md b/docs/models/components/platformchatfilesourcetype.md index 703d042e..f8d71d01 100644 --- a/docs/models/components/platformchatfilesourcetype.md +++ b/docs/models/components/platformchatfilesourcetype.md @@ -15,4 +15,4 @@ value := components.PlatformChatFileSourceTypeFile | Name | Value | | -------------------------------- | -------------------------------- | -| `PlatformChatFileSourceTypeFile` | file | \ No newline at end of file +| `PlatformChatFileSourceTypeFile` | FILE | \ No newline at end of file diff --git a/docs/models/components/platformchatinputmessagerole.md b/docs/models/components/platformchatinputmessagerole.md index 07e68429..96b25bc9 100644 --- a/docs/models/components/platformchatinputmessagerole.md +++ b/docs/models/components/platformchatinputmessagerole.md @@ -15,5 +15,5 @@ value := components.PlatformChatInputMessageRoleUser | Name | Value | | --------------------------------------- | --------------------------------------- | -| `PlatformChatInputMessageRoleUser` | user | -| `PlatformChatInputMessageRoleAssistant` | assistant | \ No newline at end of file +| `PlatformChatInputMessageRoleUser` | USER | +| `PlatformChatInputMessageRoleAssistant` | ASSISTANT | \ No newline at end of file diff --git a/docs/models/components/platformchatoutputmessagerole.md b/docs/models/components/platformchatoutputmessagerole.md index 3fa00044..d3a78b14 100644 --- a/docs/models/components/platformchatoutputmessagerole.md +++ b/docs/models/components/platformchatoutputmessagerole.md @@ -15,4 +15,4 @@ value := components.PlatformChatOutputMessageRoleAssistant | Name | Value | | ---------------------------------------- | ---------------------------------------- | -| `PlatformChatOutputMessageRoleAssistant` | assistant | \ No newline at end of file +| `PlatformChatOutputMessageRoleAssistant` | ASSISTANT | \ No newline at end of file diff --git a/docs/models/components/platformchatoutputmessagetype.md b/docs/models/components/platformchatoutputmessagetype.md index 44e22b6d..33fa46bc 100644 --- a/docs/models/components/platformchatoutputmessagetype.md +++ b/docs/models/components/platformchatoutputmessagetype.md @@ -15,4 +15,4 @@ value := components.PlatformChatOutputMessageTypeMessage | Name | Value | | -------------------------------------- | -------------------------------------- | -| `PlatformChatOutputMessageTypeMessage` | message | \ No newline at end of file +| `PlatformChatOutputMessageTypeMessage` | MESSAGE | \ No newline at end of file diff --git a/docs/models/components/platformchatoutputtextcontenttype.md b/docs/models/components/platformchatoutputtextcontenttype.md index 0ab1b9bf..a8a44c87 100644 --- a/docs/models/components/platformchatoutputtextcontenttype.md +++ b/docs/models/components/platformchatoutputtextcontenttype.md @@ -15,4 +15,4 @@ value := components.PlatformChatOutputTextContentTypeOutputText | Name | Value | | --------------------------------------------- | --------------------------------------------- | -| `PlatformChatOutputTextContentTypeOutputText` | output_text | \ No newline at end of file +| `PlatformChatOutputTextContentTypeOutputText` | OUTPUT_TEXT | \ No newline at end of file diff --git a/docs/models/components/platformchatpersonsourcetype.md b/docs/models/components/platformchatpersonsourcetype.md index cf9c50bf..66b4216e 100644 --- a/docs/models/components/platformchatpersonsourcetype.md +++ b/docs/models/components/platformchatpersonsourcetype.md @@ -15,4 +15,4 @@ value := components.PlatformChatPersonSourceTypePerson | Name | Value | | ------------------------------------ | ------------------------------------ | -| `PlatformChatPersonSourceTypePerson` | person | \ No newline at end of file +| `PlatformChatPersonSourceTypePerson` | PERSON | \ No newline at end of file diff --git a/docs/sdks/skills/README.md b/docs/sdks/skills/README.md index 80f048d5..25e58ff3 100644 --- a/docs/sdks/skills/README.md +++ b/docs/sdks/skills/README.md @@ -6,8 +6,8 @@ * [Create](#create) - Create skill * [List](#list) - List skills -* [Validate](#validate) - Validate skill bundle * [Import](#import) - Import skills from GitHub +* [Validate](#validate) - Validate skill bundle * [PreviewSource](#previewsource) - Preview a GitHub skill source * [Update](#update) - Update skill * [Delete](#delete) - Delete skill @@ -141,14 +141,14 @@ func main() { | apierrors.PlatformProblemDetailError | 500, 503 | application/problem+json | | apierrors.APIError | 4XX, 5XX | \*/\* | -## Validate +## Import -Validate a skill bundle without persisting it. Accepts a SKILL.md, .zip, or .skill upload and returns parsed metadata plus the normalized file layout. +Import one or more skills selected from a GitHub source preview. Each source URL is fetched and persisted as an independent skill with source provenance. This operation does not create a durable source resource. The import is atomic: if any source cannot be fetched, validated, or persisted, no skills are created. ### Example Usage - + ```go package main @@ -167,21 +167,15 @@ func main() { apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), ) - example, fileErr := os.Open("example.file") - if fileErr != nil { - panic(fileErr) - } - - res, err := s.Skills.Validate(ctx, components.PlatformSkillValidationRequest{ - File: components.PlatformSkillValidationRequestFile{ - FileName: "example.file", - Content: example, + res, err := s.Skills.Import(ctx, components.PlatformSkillImportRequest{ + SourceUrls: []string{ + "", }, }) if err != nil { log.Fatal(err) } - if res.PlatformSkillValidationResponse != nil { + if res.PlatformSkillImportResponse != nil { // handle response } } @@ -189,32 +183,32 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [components.PlatformSkillValidationRequest](../../models/components/platformskillvalidationrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [components.PlatformSkillImportRequest](../../models/components/platformskillimportrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.PlatformSkillsValidateResponse](../../models/operations/platformskillsvalidateresponse.md), error** +**[*operations.PlatformSkillsImportResponse](../../models/operations/platformskillsimportresponse.md), error** ### Errors | Error Type | Status Code | Content Type | | ------------------------------------ | ------------------------------------ | ------------------------------------ | -| apierrors.PlatformProblemDetailError | 400, 401, 403, 404, 408, 413, 429 | application/problem+json | +| apierrors.PlatformProblemDetailError | 400, 401, 403, 408, 409, 413, 429 | application/problem+json | | apierrors.PlatformProblemDetailError | 500, 503 | application/problem+json | | apierrors.APIError | 4XX, 5XX | \*/\* | -## Import +## Validate -Import one or more skills selected from a GitHub source preview. Each source URL is fetched and persisted as an independent skill with source provenance. This operation does not create a durable source resource. The import is atomic: if any source cannot be fetched, validated, or persisted, no skills are created. +Validate a skill bundle without persisting it. Accepts a SKILL.md, .zip, or .skill upload and returns parsed metadata plus the normalized file layout. ### Example Usage - + ```go package main @@ -233,15 +227,21 @@ func main() { apiclientgo.WithSecurity(os.Getenv("GLEAN_API_TOKEN")), ) - res, err := s.Skills.Import(ctx, components.PlatformSkillImportRequest{ - SourceUrls: []string{ - "", + example, fileErr := os.Open("example.file") + if fileErr != nil { + panic(fileErr) + } + + res, err := s.Skills.Validate(ctx, components.PlatformSkillValidationRequest{ + File: components.PlatformSkillValidationRequestFile{ + FileName: "example.file", + Content: example, }, }) if err != nil { log.Fatal(err) } - if res.PlatformSkillImportResponse != nil { + if res.PlatformSkillValidationResponse != nil { // handle response } } @@ -249,21 +249,21 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `request` | [components.PlatformSkillImportRequest](../../models/components/platformskillimportrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | +| `request` | [components.PlatformSkillValidationRequest](../../models/components/platformskillvalidationrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | ### Response -**[*operations.PlatformSkillsImportResponse](../../models/operations/platformskillsimportresponse.md), error** +**[*operations.PlatformSkillsValidateResponse](../../models/operations/platformskillsvalidateresponse.md), error** ### Errors | Error Type | Status Code | Content Type | | ------------------------------------ | ------------------------------------ | ------------------------------------ | -| apierrors.PlatformProblemDetailError | 400, 401, 403, 408, 409, 413, 429 | application/problem+json | +| apierrors.PlatformProblemDetailError | 400, 401, 403, 404, 408, 413, 429 | application/problem+json | | apierrors.PlatformProblemDetailError | 500, 503 | application/problem+json | | apierrors.APIError | 4XX, 5XX | \*/\* | diff --git a/docs/sdks/tools/README.md b/docs/sdks/tools/README.md index f8748ab1..cfce4a65 100644 --- a/docs/sdks/tools/README.md +++ b/docs/sdks/tools/README.md @@ -363,14 +363,15 @@ func main() { ## GetToolServerTools Returns the name, description and JSON input schema for the named tools on the -specified tool server. Works for both action packs and MCP servers. +specified tool server. Works for Glean's built-in tools, tool packs and MCP +servers. `toolNames` is required. Names that do not exist on the server are returned in `notFound` rather than failing the request, so a single bad name does not force callers into one-at-a-time retries. Matching is case-insensitive and treats `-` and `_` as equivalent. -Native tools are not served; `serverId=native` returns 404. +Use `serverId=native` for Glean's built-in tools. ### Example Usage diff --git a/glean.go b/glean.go index abdbc27b..4e4af868 100644 --- a/glean.go +++ b/glean.go @@ -2,7 +2,7 @@ package apiclientgo -// Generated from OpenAPI doc version 0.9.0 and generator version 2.927.0 +// Generated from OpenAPI doc version 0.9.0 and generator version 2.930.0 import ( "context" @@ -68,9 +68,12 @@ type Glean struct { Agents *Agents Chat *Chat Skills *Skills - Search *Search - Client *Client - Indexing *Indexing + // Search agents + // Search agents available to the authenticated user by agent name. + // + Search *Search + Client *Client + Indexing *Indexing sdkConfiguration config.SDKConfiguration hooks *hooks.Hooks @@ -160,9 +163,9 @@ func WithTimeout(timeout time.Duration) SDKOption { // New creates a new instance of the SDK with the provided options func New(opts ...SDKOption) *Glean { sdk := &Glean{ - SDKVersion: "0.13.5", + SDKVersion: "0.13.6", sdkConfiguration: config.SDKConfiguration{ - UserAgent: "speakeasy-sdk/go 0.13.5 2.927.0 0.9.0 github.com/gleanwork/api-client-go", + UserAgent: "speakeasy-sdk/go 0.13.6 2.930.0 0.9.0 github.com/gleanwork/api-client-go", ServerList: ServerList, ServerVariables: []map[string]string{ { diff --git a/models/components/feedentry.go b/models/components/feedentry.go index de252b0f..3016c7f6 100644 --- a/models/components/feedentry.go +++ b/models/components/feedentry.go @@ -114,6 +114,7 @@ const ( JustificationTypeOooPlanner JustificationType = "OOO_PLANNER" JustificationTypeOooCatchUp JustificationType = "OOO_CATCH_UP" JustificationTypeAdminHealthCenter JustificationType = "ADMIN_HEALTH_CENTER" + JustificationTypeKnowledgeGap JustificationType = "KNOWLEDGE_GAP" ) func (e JustificationType) ToPointer() *JustificationType { @@ -124,7 +125,7 @@ func (e JustificationType) ToPointer() *JustificationType { func (e *JustificationType) IsExact() bool { if e != nil { switch *e { - case "FREQUENTLY_ACCESSED", "RECENTLY_ACCESSED", "TRENDING_DOCUMENT", "VERIFICATION_REMINDER", "SUGGESTED_DOCUMENT", "EMPTY_STATE_SUGGESTION", "FRECENCY_SCORED", "SERVER_GENERATED", "USE_CASE", "UPDATE_SINCE_LAST_VIEW", "RECENTLY_STARTED", "EVENT", "USER_MENTION", "ANNOUNCEMENT", "EXTERNAL_ANNOUNCEMENT", "POPULARITY_BASED_TRENDING", "COMPANY_RESOURCE", "EVENT_DOCUMENT_FROM_CONTENT", "EVENT_DOCUMENT_FROM_SEARCH", "VISIT_AFFINITY_SCORED", "SUGGESTED_APP", "SUGGESTED_PERSON", "ACTIVITY_HIGHLIGHT", "SAVED_SEARCH", "SUGGESTED_CHANNEL", "PEOPLE_CELEBRATIONS", "SOCIAL_LINK", "ZERO_STATE_CHAT_SUGGESTION", "ZERO_STATE_CHAT_TOOL_SUGGESTION", "ZERO_STATE_PROMPT_TEMPLATE_SUGGESTION", "ZERO_STATE_STATIC_WORKFLOW_SUGGESTION", "ZERO_STATE_AGENT_SUGGESTION", "PERSONALIZED_CHAT_SUGGESTION", "DAILY_DIGEST", "PODCAST", "TASK", "PLAN_MY_DAY", "END_MY_DAY", "STARTER_KIT_EXTENSION", "STARTER_KIT_ORG_CHART", "STARTER_KIT_ADD_DOC", "MEETING_RECAP", "MEETING_PREP_AUTOMATION", "ACTIVE_DISCUSSION", "MID_DAY_CATCH_UP", "QUERY_SUGGESTION", "COWORK_CUJ_PROMO", "CARD_STACK_PROMO", "WEEKLY_MEETINGS", "FOLLOW_UP", "MILESTONE_TIMELINE_CHECK", "PROJECT_DISCUSSION_DIGEST", "PROJECT_FOCUS_BLOCK", "PROJECT_NEXT_STEP", "DEMO_CARD", "OOO_PLANNER", "OOO_CATCH_UP", "ADMIN_HEALTH_CENTER": + case "FREQUENTLY_ACCESSED", "RECENTLY_ACCESSED", "TRENDING_DOCUMENT", "VERIFICATION_REMINDER", "SUGGESTED_DOCUMENT", "EMPTY_STATE_SUGGESTION", "FRECENCY_SCORED", "SERVER_GENERATED", "USE_CASE", "UPDATE_SINCE_LAST_VIEW", "RECENTLY_STARTED", "EVENT", "USER_MENTION", "ANNOUNCEMENT", "EXTERNAL_ANNOUNCEMENT", "POPULARITY_BASED_TRENDING", "COMPANY_RESOURCE", "EVENT_DOCUMENT_FROM_CONTENT", "EVENT_DOCUMENT_FROM_SEARCH", "VISIT_AFFINITY_SCORED", "SUGGESTED_APP", "SUGGESTED_PERSON", "ACTIVITY_HIGHLIGHT", "SAVED_SEARCH", "SUGGESTED_CHANNEL", "PEOPLE_CELEBRATIONS", "SOCIAL_LINK", "ZERO_STATE_CHAT_SUGGESTION", "ZERO_STATE_CHAT_TOOL_SUGGESTION", "ZERO_STATE_PROMPT_TEMPLATE_SUGGESTION", "ZERO_STATE_STATIC_WORKFLOW_SUGGESTION", "ZERO_STATE_AGENT_SUGGESTION", "PERSONALIZED_CHAT_SUGGESTION", "DAILY_DIGEST", "PODCAST", "TASK", "PLAN_MY_DAY", "END_MY_DAY", "STARTER_KIT_EXTENSION", "STARTER_KIT_ORG_CHART", "STARTER_KIT_ADD_DOC", "MEETING_RECAP", "MEETING_PREP_AUTOMATION", "ACTIVE_DISCUSSION", "MID_DAY_CATCH_UP", "QUERY_SUGGESTION", "COWORK_CUJ_PROMO", "CARD_STACK_PROMO", "WEEKLY_MEETINGS", "FOLLOW_UP", "MILESTONE_TIMELINE_CHECK", "PROJECT_DISCUSSION_DIGEST", "PROJECT_FOCUS_BLOCK", "PROJECT_NEXT_STEP", "DEMO_CARD", "OOO_PLANNER", "OOO_CATCH_UP", "ADMIN_HEALTH_CENTER", "KNOWLEDGE_GAP": return true } } diff --git a/models/components/feedrequest.go b/models/components/feedrequest.go index 9e570b31..283b42e0 100644 --- a/models/components/feedrequest.go +++ b/models/components/feedrequest.go @@ -55,6 +55,7 @@ const ( FeedRequestCategoryOooPlanner FeedRequestCategory = "OOO_PLANNER" FeedRequestCategoryOooCatchUp FeedRequestCategory = "OOO_CATCH_UP" FeedRequestCategoryAdminHealthCenter FeedRequestCategory = "ADMIN_HEALTH_CENTER" + FeedRequestCategoryKnowledgeGap FeedRequestCategory = "KNOWLEDGE_GAP" ) func (e FeedRequestCategory) ToPointer() *FeedRequestCategory { @@ -155,6 +156,8 @@ func (e *FeedRequestCategory) UnmarshalJSON(data []byte) error { case "OOO_CATCH_UP": fallthrough case "ADMIN_HEALTH_CENTER": + fallthrough + case "KNOWLEDGE_GAP": *e = FeedRequestCategory(v) return nil default: diff --git a/models/components/feedresult.go b/models/components/feedresult.go index f809c38f..8bb88191 100644 --- a/models/components/feedresult.go +++ b/models/components/feedresult.go @@ -51,6 +51,7 @@ const ( FeedResultCategoryOooPlanner FeedResultCategory = "OOO_PLANNER" FeedResultCategoryOooCatchUp FeedResultCategory = "OOO_CATCH_UP" FeedResultCategoryAdminHealthCenter FeedResultCategory = "ADMIN_HEALTH_CENTER" + FeedResultCategoryKnowledgeGap FeedResultCategory = "KNOWLEDGE_GAP" ) func (e FeedResultCategory) ToPointer() *FeedResultCategory { @@ -61,19 +62,20 @@ func (e FeedResultCategory) ToPointer() *FeedResultCategory { func (e *FeedResultCategory) IsExact() bool { if e != nil { switch *e { - case "DOCUMENT_SUGGESTION", "DOCUMENT_SUGGESTION_SCENARIO", "TRENDING_DOCUMENT", "USE_CASE", "VERIFICATION_REMINDER", "EVENT", "ANNOUNCEMENT", "MENTION", "DATASOURCE_AFFINITY", "RECENT", "COMPANY_RESOURCE", "EXPERIMENTAL", "PEOPLE_CELEBRATIONS", "SOCIAL_LINK", "EXTERNAL_TASKS", "DISPLAYABLE_LIST", "ZERO_STATE_CHAT_SUGGESTION", "ZERO_STATE_CHAT_TOOL_SUGGESTION", "ZERO_STATE_WORKFLOW_CREATED_BY_ME", "ZERO_STATE_WORKFLOW_FAVORITES", "ZERO_STATE_WORKFLOW_POPULAR", "ZERO_STATE_WORKFLOW_RECENT", "ZERO_STATE_WORKFLOW_SUGGESTION", "PERSONALIZED_CHAT_SUGGESTION", "DAILY_DIGEST", "PODCAST", "TASK", "PLAN_MY_DAY", "END_MY_DAY", "STARTER_KIT", "MEETING_PREP_AUTOMATION", "MID_DAY_CATCH_UP", "QUERY_SUGGESTION", "COWORK_CUJ_PROMO", "CARD_STACK_PROMO", "WEEKLY_MEETINGS", "FOLLOW_UP", "MILESTONE_TIMELINE_CHECK", "PROJECT_DISCUSSION_DIGEST", "PROJECT_FOCUS_BLOCK", "PROJECT_NEXT_STEP", "DEMO_CARD", "OOO_PLANNER", "OOO_CATCH_UP", "ADMIN_HEALTH_CENTER": + case "DOCUMENT_SUGGESTION", "DOCUMENT_SUGGESTION_SCENARIO", "TRENDING_DOCUMENT", "USE_CASE", "VERIFICATION_REMINDER", "EVENT", "ANNOUNCEMENT", "MENTION", "DATASOURCE_AFFINITY", "RECENT", "COMPANY_RESOURCE", "EXPERIMENTAL", "PEOPLE_CELEBRATIONS", "SOCIAL_LINK", "EXTERNAL_TASKS", "DISPLAYABLE_LIST", "ZERO_STATE_CHAT_SUGGESTION", "ZERO_STATE_CHAT_TOOL_SUGGESTION", "ZERO_STATE_WORKFLOW_CREATED_BY_ME", "ZERO_STATE_WORKFLOW_FAVORITES", "ZERO_STATE_WORKFLOW_POPULAR", "ZERO_STATE_WORKFLOW_RECENT", "ZERO_STATE_WORKFLOW_SUGGESTION", "PERSONALIZED_CHAT_SUGGESTION", "DAILY_DIGEST", "PODCAST", "TASK", "PLAN_MY_DAY", "END_MY_DAY", "STARTER_KIT", "MEETING_PREP_AUTOMATION", "MID_DAY_CATCH_UP", "QUERY_SUGGESTION", "COWORK_CUJ_PROMO", "CARD_STACK_PROMO", "WEEKLY_MEETINGS", "FOLLOW_UP", "MILESTONE_TIMELINE_CHECK", "PROJECT_DISCUSSION_DIGEST", "PROJECT_FOCUS_BLOCK", "PROJECT_NEXT_STEP", "DEMO_CARD", "OOO_PLANNER", "OOO_CATCH_UP", "ADMIN_HEALTH_CENTER", "KNOWLEDGE_GAP": return true } } return false } -// PlacementReason - Placement source for ranked feed results. ORGANIC means the card was emitted by normal feed ranking. PROMO means the card was inserted by the homepage cards promo framework. +// PlacementReason - Placement source for ranked feed results. ORGANIC means the card was emitted by normal feed ranking. PROMO means the card was inserted by the homepage cards promo framework. PINNED means the card was moved to the head of the ranked stack (e.g. knowledge-gap pilot cards). type PlacementReason string const ( PlacementReasonOrganic PlacementReason = "ORGANIC" PlacementReasonPromo PlacementReason = "PROMO" + PlacementReasonPinned PlacementReason = "PINNED" ) func (e PlacementReason) ToPointer() *PlacementReason { @@ -84,7 +86,7 @@ func (e PlacementReason) ToPointer() *PlacementReason { func (e *PlacementReason) IsExact() bool { if e != nil { switch *e { - case "ORGANIC", "PROMO": + case "ORGANIC", "PROMO", "PINNED": return true } } @@ -99,7 +101,7 @@ type FeedResult struct { SecondaryEntries []FeedEntry `json:"secondaryEntries,omitempty"` // Rank of the result. Rank is suggested by server. Client side rank may differ. Rank *int64 `json:"rank,omitempty"` - // Placement source for ranked feed results. ORGANIC means the card was emitted by normal feed ranking. PROMO means the card was inserted by the homepage cards promo framework. + // Placement source for ranked feed results. ORGANIC means the card was emitted by normal feed ranking. PROMO means the card was inserted by the homepage cards promo framework. PINNED means the card was moved to the head of the ranked stack (e.g. knowledge-gap pilot cards). PlacementReason *PlacementReason `json:"placementReason,omitempty"` } diff --git a/models/components/platformchatcitationannotation.go b/models/components/platformchatcitationannotation.go index 684bad97..26698e4d 100644 --- a/models/components/platformchatcitationannotation.go +++ b/models/components/platformchatcitationannotation.go @@ -10,7 +10,7 @@ import ( type PlatformChatCitationAnnotationType string const ( - PlatformChatCitationAnnotationTypeCitation PlatformChatCitationAnnotationType = "citation" + PlatformChatCitationAnnotationTypeCitation PlatformChatCitationAnnotationType = "CITATION" ) func (e PlatformChatCitationAnnotationType) ToPointer() *PlatformChatCitationAnnotationType { @@ -22,7 +22,7 @@ func (e *PlatformChatCitationAnnotationType) UnmarshalJSON(data []byte) error { return err } switch v { - case "citation": + case "CITATION": *e = PlatformChatCitationAnnotationType(v) return nil default: diff --git a/models/components/platformchatcompletedresponse.go b/models/components/platformchatcompletedresponse.go index b2b39b5b..6a3ae774 100644 --- a/models/components/platformchatcompletedresponse.go +++ b/models/components/platformchatcompletedresponse.go @@ -12,7 +12,7 @@ import ( type Object string const ( - ObjectResponse Object = "response" + ObjectResponse Object = "RESPONSE" ) func (e Object) ToPointer() *Object { @@ -24,7 +24,7 @@ func (e *Object) UnmarshalJSON(data []byte) error { return err } switch v { - case "response": + case "RESPONSE": *e = Object(v) return nil default: @@ -35,7 +35,7 @@ func (e *Object) UnmarshalJSON(data []byte) error { type PlatformChatCompletedResponseStatus string const ( - PlatformChatCompletedResponseStatusCompleted PlatformChatCompletedResponseStatus = "completed" + PlatformChatCompletedResponseStatusCompleted PlatformChatCompletedResponseStatus = "COMPLETED" ) func (e PlatformChatCompletedResponseStatus) ToPointer() *PlatformChatCompletedResponseStatus { @@ -47,7 +47,7 @@ func (e *PlatformChatCompletedResponseStatus) UnmarshalJSON(data []byte) error { return err } switch v { - case "completed": + case "COMPLETED": *e = PlatformChatCompletedResponseStatus(v) return nil default: diff --git a/models/components/platformchatcreaterequest.go b/models/components/platformchatcreaterequest.go index 22265370..108385f2 100644 --- a/models/components/platformchatcreaterequest.go +++ b/models/components/platformchatcreaterequest.go @@ -15,7 +15,7 @@ const ( InputTypeArrayOfPlatformChatInputMessage InputType = "arrayOfPlatformChatInputMessage" ) -// Input - Either a plain string (single user turn) or a chronological array of `user`/`assistant` messages. The final array message must be `user`. +// Input - Either a plain string (single user turn) or a chronological array of `USER`/`ASSISTANT` messages. The final array message must be `USER`. type Input struct { Str *string `queryParam:"inline" union:"member"` ArrayOfPlatformChatInputMessage []PlatformChatInputMessage `queryParam:"inline" union:"member"` @@ -99,7 +99,7 @@ func (u Input) MarshalJSON() ([]byte, error) { } type PlatformChatCreateRequest struct { - // Either a plain string (single user turn) or a chronological array of `user`/`assistant` messages. The final array message must be `user`. + // Either a plain string (single user turn) or a chronological array of `USER`/`ASSISTANT` messages. The final array message must be `USER`. // Input Input `json:"input"` // When true, respond with `text/event-stream`. When false or omitted, respond with `application/json`. diff --git a/models/components/platformchatcustomentitysource.go b/models/components/platformchatcustomentitysource.go index cc4cc754..a66d9312 100644 --- a/models/components/platformchatcustomentitysource.go +++ b/models/components/platformchatcustomentitysource.go @@ -11,7 +11,7 @@ import ( type PlatformChatCustomEntitySourceType string const ( - PlatformChatCustomEntitySourceTypeCustomEntity PlatformChatCustomEntitySourceType = "custom_entity" + PlatformChatCustomEntitySourceTypeCustomEntity PlatformChatCustomEntitySourceType = "CUSTOM_ENTITY" ) func (e PlatformChatCustomEntitySourceType) ToPointer() *PlatformChatCustomEntitySourceType { @@ -23,7 +23,7 @@ func (e *PlatformChatCustomEntitySourceType) UnmarshalJSON(data []byte) error { return err } switch v { - case "custom_entity": + case "CUSTOM_ENTITY": *e = PlatformChatCustomEntitySourceType(v) return nil default: diff --git a/models/components/platformchatdocumentsource.go b/models/components/platformchatdocumentsource.go index 3c56f4d6..f87448db 100644 --- a/models/components/platformchatdocumentsource.go +++ b/models/components/platformchatdocumentsource.go @@ -12,7 +12,7 @@ import ( type PlatformChatDocumentSourceType2 string const ( - PlatformChatDocumentSourceType2Document PlatformChatDocumentSourceType2 = "document" + PlatformChatDocumentSourceType2Document PlatformChatDocumentSourceType2 = "DOCUMENT" ) func (e PlatformChatDocumentSourceType2) ToPointer() *PlatformChatDocumentSourceType2 { @@ -24,7 +24,7 @@ func (e *PlatformChatDocumentSourceType2) UnmarshalJSON(data []byte) error { return err } switch v { - case "document": + case "DOCUMENT": *e = PlatformChatDocumentSourceType2(v) return nil default: @@ -92,7 +92,7 @@ func (p *PlatformChatDocumentSourceDocument2) GetDatasource() *string { type PlatformChatDocumentSourceType1 string const ( - PlatformChatDocumentSourceType1Document PlatformChatDocumentSourceType1 = "document" + PlatformChatDocumentSourceType1Document PlatformChatDocumentSourceType1 = "DOCUMENT" ) func (e PlatformChatDocumentSourceType1) ToPointer() *PlatformChatDocumentSourceType1 { @@ -104,7 +104,7 @@ func (e *PlatformChatDocumentSourceType1) UnmarshalJSON(data []byte) error { return err } switch v { - case "document": + case "DOCUMENT": *e = PlatformChatDocumentSourceType1(v) return nil default: diff --git a/models/components/platformchatfilesource.go b/models/components/platformchatfilesource.go index 0f523542..ba46db41 100644 --- a/models/components/platformchatfilesource.go +++ b/models/components/platformchatfilesource.go @@ -11,7 +11,7 @@ import ( type PlatformChatFileSourceType string const ( - PlatformChatFileSourceTypeFile PlatformChatFileSourceType = "file" + PlatformChatFileSourceTypeFile PlatformChatFileSourceType = "FILE" ) func (e PlatformChatFileSourceType) ToPointer() *PlatformChatFileSourceType { @@ -23,7 +23,7 @@ func (e *PlatformChatFileSourceType) UnmarshalJSON(data []byte) error { return err } switch v { - case "file": + case "FILE": *e = PlatformChatFileSourceType(v) return nil default: diff --git a/models/components/platformchatinputmessage.go b/models/components/platformchatinputmessage.go index 04171d05..18221040 100644 --- a/models/components/platformchatinputmessage.go +++ b/models/components/platformchatinputmessage.go @@ -11,8 +11,8 @@ import ( type PlatformChatInputMessageRole string const ( - PlatformChatInputMessageRoleUser PlatformChatInputMessageRole = "user" - PlatformChatInputMessageRoleAssistant PlatformChatInputMessageRole = "assistant" + PlatformChatInputMessageRoleUser PlatformChatInputMessageRole = "USER" + PlatformChatInputMessageRoleAssistant PlatformChatInputMessageRole = "ASSISTANT" ) func (e PlatformChatInputMessageRole) ToPointer() *PlatformChatInputMessageRole { @@ -24,9 +24,9 @@ func (e *PlatformChatInputMessageRole) UnmarshalJSON(data []byte) error { return err } switch v { - case "user": + case "USER": fallthrough - case "assistant": + case "ASSISTANT": *e = PlatformChatInputMessageRole(v) return nil default: diff --git a/models/components/platformchatoutputmessage.go b/models/components/platformchatoutputmessage.go index b606d34b..768adc89 100644 --- a/models/components/platformchatoutputmessage.go +++ b/models/components/platformchatoutputmessage.go @@ -10,7 +10,7 @@ import ( type PlatformChatOutputMessageType string const ( - PlatformChatOutputMessageTypeMessage PlatformChatOutputMessageType = "message" + PlatformChatOutputMessageTypeMessage PlatformChatOutputMessageType = "MESSAGE" ) func (e PlatformChatOutputMessageType) ToPointer() *PlatformChatOutputMessageType { @@ -22,7 +22,7 @@ func (e *PlatformChatOutputMessageType) UnmarshalJSON(data []byte) error { return err } switch v { - case "message": + case "MESSAGE": *e = PlatformChatOutputMessageType(v) return nil default: @@ -33,7 +33,7 @@ func (e *PlatformChatOutputMessageType) UnmarshalJSON(data []byte) error { type PlatformChatOutputMessageRole string const ( - PlatformChatOutputMessageRoleAssistant PlatformChatOutputMessageRole = "assistant" + PlatformChatOutputMessageRoleAssistant PlatformChatOutputMessageRole = "ASSISTANT" ) func (e PlatformChatOutputMessageRole) ToPointer() *PlatformChatOutputMessageRole { @@ -45,7 +45,7 @@ func (e *PlatformChatOutputMessageRole) UnmarshalJSON(data []byte) error { return err } switch v { - case "assistant": + case "ASSISTANT": *e = PlatformChatOutputMessageRole(v) return nil default: diff --git a/models/components/platformchatoutputtextcontent.go b/models/components/platformchatoutputtextcontent.go index 003b42bf..beb7f496 100644 --- a/models/components/platformchatoutputtextcontent.go +++ b/models/components/platformchatoutputtextcontent.go @@ -10,7 +10,7 @@ import ( type PlatformChatOutputTextContentType string const ( - PlatformChatOutputTextContentTypeOutputText PlatformChatOutputTextContentType = "output_text" + PlatformChatOutputTextContentTypeOutputText PlatformChatOutputTextContentType = "OUTPUT_TEXT" ) func (e PlatformChatOutputTextContentType) ToPointer() *PlatformChatOutputTextContentType { @@ -22,7 +22,7 @@ func (e *PlatformChatOutputTextContentType) UnmarshalJSON(data []byte) error { return err } switch v { - case "output_text": + case "OUTPUT_TEXT": *e = PlatformChatOutputTextContentType(v) return nil default: diff --git a/models/components/platformchatpersonsource.go b/models/components/platformchatpersonsource.go index ed46b5df..665461e1 100644 --- a/models/components/platformchatpersonsource.go +++ b/models/components/platformchatpersonsource.go @@ -11,7 +11,7 @@ import ( type PlatformChatPersonSourceType string const ( - PlatformChatPersonSourceTypePerson PlatformChatPersonSourceType = "person" + PlatformChatPersonSourceTypePerson PlatformChatPersonSourceType = "PERSON" ) func (e PlatformChatPersonSourceType) ToPointer() *PlatformChatPersonSourceType { @@ -23,7 +23,7 @@ func (e *PlatformChatPersonSourceType) UnmarshalJSON(data []byte) error { return err } switch v { - case "person": + case "PERSON": *e = PlatformChatPersonSourceType(v) return nil default: diff --git a/search.go b/search.go index 48c0222e..a281aa1c 100644 --- a/search.go +++ b/search.go @@ -17,8 +17,6 @@ import ( "net/url" ) -// Search agents -// Search agents available to the authenticated user by agent name. type Search struct { rootSDK *Glean sdkConfiguration config.SDKConfiguration diff --git a/skills.go b/skills.go index 8ccde776..70998eac 100644 --- a/skills.go +++ b/skills.go @@ -585,9 +585,9 @@ func (s *Skills) List(ctx context.Context, pageSize *int64, cursor *string, opts } -// Validate skill bundle -// Validate a skill bundle without persisting it. Accepts a SKILL.md, .zip, or .skill upload and returns parsed metadata plus the normalized file layout. -func (s *Skills) Validate(ctx context.Context, request components.PlatformSkillValidationRequest, opts ...operations.Option) (*operations.PlatformSkillsValidateResponse, error) { +// Import skills from GitHub +// Import one or more skills selected from a GitHub source preview. Each source URL is fetched and persisted as an independent skill with source provenance. This operation does not create a durable source resource. The import is atomic: if any source cannot be fetched, validated, or persisted, no skills are created. +func (s *Skills) Import(ctx context.Context, request components.PlatformSkillImportRequest, opts ...operations.Option) (*operations.PlatformSkillsImportResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -606,7 +606,7 @@ func (s *Skills) Validate(ctx context.Context, request components.PlatformSkillV } else { baseURL = *o.ServerURL } - opURL, err := url.JoinPath(baseURL, "/api/skills/validation") + opURL, err := url.JoinPath(baseURL, "/api/skills/import") if err != nil { return nil, fmt.Errorf("error generating URL: %w", err) } @@ -616,11 +616,11 @@ func (s *Skills) Validate(ctx context.Context, request components.PlatformSkillV SDKConfiguration: s.sdkConfiguration, BaseURL: baseURL, Context: ctx, - OperationID: "platform-skills-validate", + OperationID: "platform-skills-import", OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "Request", "multipart", `request:"mediaType=multipart/form-data"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "Request", "json", `request:"mediaType=application/json"`) if err != nil { return nil, err } @@ -745,7 +745,7 @@ func (s *Skills) Validate(ctx context.Context, request components.PlatformSkillV } } - res := &operations.PlatformSkillsValidateResponse{ + res := &operations.PlatformSkillsImportResponse{ HTTPMeta: components.HTTPMetadata{ Request: req, Response: httpRes, @@ -761,12 +761,12 @@ func (s *Skills) Validate(ctx context.Context, request components.PlatformSkillV return nil, err } - var out components.PlatformSkillValidationResponse + var out components.PlatformSkillImportResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - res.PlatformSkillValidationResponse = &out + res.PlatformSkillImportResponse = &out default: rawBody, err := utils.ConsumeRawBody(httpRes) if err != nil { @@ -780,10 +780,10 @@ func (s *Skills) Validate(ctx context.Context, request components.PlatformSkillV fallthrough case httpRes.StatusCode == 403: fallthrough - case httpRes.StatusCode == 404: - fallthrough case httpRes.StatusCode == 408: fallthrough + case httpRes.StatusCode == 409: + fallthrough case httpRes.StatusCode == 413: fallthrough case httpRes.StatusCode == 429: @@ -862,9 +862,9 @@ func (s *Skills) Validate(ctx context.Context, request components.PlatformSkillV } -// Import skills from GitHub -// Import one or more skills selected from a GitHub source preview. Each source URL is fetched and persisted as an independent skill with source provenance. This operation does not create a durable source resource. The import is atomic: if any source cannot be fetched, validated, or persisted, no skills are created. -func (s *Skills) Import(ctx context.Context, request components.PlatformSkillImportRequest, opts ...operations.Option) (*operations.PlatformSkillsImportResponse, error) { +// Validate skill bundle +// Validate a skill bundle without persisting it. Accepts a SKILL.md, .zip, or .skill upload and returns parsed metadata plus the normalized file layout. +func (s *Skills) Validate(ctx context.Context, request components.PlatformSkillValidationRequest, opts ...operations.Option) (*operations.PlatformSkillsValidateResponse, error) { o := operations.Options{} supportedOptions := []string{ operations.SupportedOptionRetries, @@ -883,7 +883,7 @@ func (s *Skills) Import(ctx context.Context, request components.PlatformSkillImp } else { baseURL = *o.ServerURL } - opURL, err := url.JoinPath(baseURL, "/api/skills/import") + opURL, err := url.JoinPath(baseURL, "/api/skills/validation") if err != nil { return nil, fmt.Errorf("error generating URL: %w", err) } @@ -893,11 +893,11 @@ func (s *Skills) Import(ctx context.Context, request components.PlatformSkillImp SDKConfiguration: s.sdkConfiguration, BaseURL: baseURL, Context: ctx, - OperationID: "platform-skills-import", + OperationID: "platform-skills-validate", OAuth2Scopes: nil, SecuritySource: s.sdkConfiguration.Security, } - bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "Request", "json", `request:"mediaType=application/json"`) + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "Request", "multipart", `request:"mediaType=multipart/form-data"`) if err != nil { return nil, err } @@ -1022,7 +1022,7 @@ func (s *Skills) Import(ctx context.Context, request components.PlatformSkillImp } } - res := &operations.PlatformSkillsImportResponse{ + res := &operations.PlatformSkillsValidateResponse{ HTTPMeta: components.HTTPMetadata{ Request: req, Response: httpRes, @@ -1038,12 +1038,12 @@ func (s *Skills) Import(ctx context.Context, request components.PlatformSkillImp return nil, err } - var out components.PlatformSkillImportResponse + var out components.PlatformSkillValidationResponse if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil { return nil, err } - res.PlatformSkillImportResponse = &out + res.PlatformSkillValidationResponse = &out default: rawBody, err := utils.ConsumeRawBody(httpRes) if err != nil { @@ -1057,9 +1057,9 @@ func (s *Skills) Import(ctx context.Context, request components.PlatformSkillImp fallthrough case httpRes.StatusCode == 403: fallthrough - case httpRes.StatusCode == 408: + case httpRes.StatusCode == 404: fallthrough - case httpRes.StatusCode == 409: + case httpRes.StatusCode == 408: fallthrough case httpRes.StatusCode == 413: fallthrough diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1createcollection.go b/tests/mockserver/internal/handler/pathpostrestapiv1createcollection.go index 469bd6e6..75fb8eb7 100644 --- a/tests/mockserver/internal/handler/pathpostrestapiv1createcollection.go +++ b/tests/mockserver/internal/handler/pathpostrestapiv1createcollection.go @@ -56,14 +56,14 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ operations.ResponseBody2{ Collection: &components.Collection{ Name: "", - Description: "whole busily jive hawk gee basic minus hence", + Description: "motionless whenever paintwork import over cuckoo", AddedRoles: []components.UserRoleSpecification{ components.UserRoleSpecification{ Person: &components.Person{ Name: "George Clooney", ObfuscatedID: "abc123", }, - Role: components.UserRoleAnswerModerator, + Role: components.UserRoleOwner, }, }, RemovedRoles: []components.UserRoleSpecification{ @@ -90,7 +90,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ }, }, }, - ID: 158969, + ID: 363711, Creator: &components.Person{ Name: "George Clooney", ObfuscatedID: "abc123", @@ -101,7 +101,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ }, Items: []components.CollectionItem{ components.CollectionItem{ - CollectionID: 110375, + CollectionID: 570197, CreatedBy: &components.Person{ Name: "George Clooney", ObfuscatedID: "abc123", @@ -278,13 +278,13 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ Name: "George Clooney", ObfuscatedID: "abc123", }, - Role: components.UserRoleEditor, + Role: components.UserRoleAnswerModerator, }, }, }, Collection: &components.Collection{ Name: "", - Description: "wedge colorfully orientate rally", + Description: "athwart skateboard newsstand farm bourgeoisie ah how elliptical aha well-to-do", AudienceFilters: []components.FacetFilter{ components.FacetFilter{ FieldName: types.String("type"), @@ -300,7 +300,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ }, }, }, - ID: 131797, + ID: 643990, Creator: &components.Person{ Name: "George Clooney", ObfuscatedID: "abc123", @@ -312,7 +312,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ Children: []components.Collection{ components.Collection{ Name: "", - Description: "outside yippee sidetrack mature regularly mouser inject worth", + Description: "woot purse salty even as advanced", AudienceFilters: []components.FacetFilter{ components.FacetFilter{ FieldName: types.String("type"), @@ -328,7 +328,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ }, }, }, - ID: 149448, + ID: 359978, Creator: &components.Person{ Name: "George Clooney", ObfuscatedID: "abc123", @@ -340,7 +340,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ }, }, }, - ItemType: components.CollectionItemItemTypeCollection, + ItemType: components.CollectionItemItemTypeURL, }, }, }, diff --git a/tests/mockserver/internal/sdk/models/components/feedentry.go b/tests/mockserver/internal/sdk/models/components/feedentry.go index 75c2030f..90b0237c 100644 --- a/tests/mockserver/internal/sdk/models/components/feedentry.go +++ b/tests/mockserver/internal/sdk/models/components/feedentry.go @@ -114,6 +114,7 @@ const ( JustificationTypeOooPlanner JustificationType = "OOO_PLANNER" JustificationTypeOooCatchUp JustificationType = "OOO_CATCH_UP" JustificationTypeAdminHealthCenter JustificationType = "ADMIN_HEALTH_CENTER" + JustificationTypeKnowledgeGap JustificationType = "KNOWLEDGE_GAP" ) func (e JustificationType) ToPointer() *JustificationType { @@ -240,6 +241,8 @@ func (e *JustificationType) UnmarshalJSON(data []byte) error { case "OOO_CATCH_UP": fallthrough case "ADMIN_HEALTH_CENTER": + fallthrough + case "KNOWLEDGE_GAP": *e = JustificationType(v) return nil default: diff --git a/tests/mockserver/internal/sdk/models/components/feedrequest.go b/tests/mockserver/internal/sdk/models/components/feedrequest.go index 854c8390..97365eff 100644 --- a/tests/mockserver/internal/sdk/models/components/feedrequest.go +++ b/tests/mockserver/internal/sdk/models/components/feedrequest.go @@ -55,6 +55,7 @@ const ( FeedRequestCategoryOooPlanner FeedRequestCategory = "OOO_PLANNER" FeedRequestCategoryOooCatchUp FeedRequestCategory = "OOO_CATCH_UP" FeedRequestCategoryAdminHealthCenter FeedRequestCategory = "ADMIN_HEALTH_CENTER" + FeedRequestCategoryKnowledgeGap FeedRequestCategory = "KNOWLEDGE_GAP" ) func (e FeedRequestCategory) ToPointer() *FeedRequestCategory { @@ -155,6 +156,8 @@ func (e *FeedRequestCategory) UnmarshalJSON(data []byte) error { case "OOO_CATCH_UP": fallthrough case "ADMIN_HEALTH_CENTER": + fallthrough + case "KNOWLEDGE_GAP": *e = FeedRequestCategory(v) return nil default: diff --git a/tests/mockserver/internal/sdk/models/components/feedresult.go b/tests/mockserver/internal/sdk/models/components/feedresult.go index 158c7428..cc69740a 100644 --- a/tests/mockserver/internal/sdk/models/components/feedresult.go +++ b/tests/mockserver/internal/sdk/models/components/feedresult.go @@ -56,6 +56,7 @@ const ( FeedResultCategoryOooPlanner FeedResultCategory = "OOO_PLANNER" FeedResultCategoryOooCatchUp FeedResultCategory = "OOO_CATCH_UP" FeedResultCategoryAdminHealthCenter FeedResultCategory = "ADMIN_HEALTH_CENTER" + FeedResultCategoryKnowledgeGap FeedResultCategory = "KNOWLEDGE_GAP" ) func (e FeedResultCategory) ToPointer() *FeedResultCategory { @@ -156,6 +157,8 @@ func (e *FeedResultCategory) UnmarshalJSON(data []byte) error { case "OOO_CATCH_UP": fallthrough case "ADMIN_HEALTH_CENTER": + fallthrough + case "KNOWLEDGE_GAP": *e = FeedResultCategory(v) return nil default: @@ -163,12 +166,13 @@ func (e *FeedResultCategory) UnmarshalJSON(data []byte) error { } } -// PlacementReason - Placement source for ranked feed results. ORGANIC means the card was emitted by normal feed ranking. PROMO means the card was inserted by the homepage cards promo framework. +// PlacementReason - Placement source for ranked feed results. ORGANIC means the card was emitted by normal feed ranking. PROMO means the card was inserted by the homepage cards promo framework. PINNED means the card was moved to the head of the ranked stack (e.g. knowledge-gap pilot cards). type PlacementReason string const ( PlacementReasonOrganic PlacementReason = "ORGANIC" PlacementReasonPromo PlacementReason = "PROMO" + PlacementReasonPinned PlacementReason = "PINNED" ) func (e PlacementReason) ToPointer() *PlacementReason { @@ -183,6 +187,8 @@ func (e *PlacementReason) UnmarshalJSON(data []byte) error { case "ORGANIC": fallthrough case "PROMO": + fallthrough + case "PINNED": *e = PlacementReason(v) return nil default: @@ -198,7 +204,7 @@ type FeedResult struct { SecondaryEntries []FeedEntry `json:"secondaryEntries,omitempty"` // Rank of the result. Rank is suggested by server. Client side rank may differ. Rank *int64 `json:"rank,omitempty"` - // Placement source for ranked feed results. ORGANIC means the card was emitted by normal feed ranking. PROMO means the card was inserted by the homepage cards promo framework. + // Placement source for ranked feed results. ORGANIC means the card was emitted by normal feed ranking. PROMO means the card was inserted by the homepage cards promo framework. PINNED means the card was moved to the head of the ranked stack (e.g. knowledge-gap pilot cards). PlacementReason *PlacementReason `json:"placementReason,omitempty"` } diff --git a/tests/mockserver/internal/sdk/models/components/platformchatcitationannotation.go b/tests/mockserver/internal/sdk/models/components/platformchatcitationannotation.go index eb920c41..64b253ab 100644 --- a/tests/mockserver/internal/sdk/models/components/platformchatcitationannotation.go +++ b/tests/mockserver/internal/sdk/models/components/platformchatcitationannotation.go @@ -11,7 +11,7 @@ import ( type PlatformChatCitationAnnotationType string const ( - PlatformChatCitationAnnotationTypeCitation PlatformChatCitationAnnotationType = "citation" + PlatformChatCitationAnnotationTypeCitation PlatformChatCitationAnnotationType = "CITATION" ) func (e PlatformChatCitationAnnotationType) ToPointer() *PlatformChatCitationAnnotationType { @@ -23,7 +23,7 @@ func (e *PlatformChatCitationAnnotationType) UnmarshalJSON(data []byte) error { return err } switch v { - case "citation": + case "CITATION": *e = PlatformChatCitationAnnotationType(v) return nil default: diff --git a/tests/mockserver/internal/sdk/models/components/platformchatcompletedresponse.go b/tests/mockserver/internal/sdk/models/components/platformchatcompletedresponse.go index 36264777..be4e3712 100644 --- a/tests/mockserver/internal/sdk/models/components/platformchatcompletedresponse.go +++ b/tests/mockserver/internal/sdk/models/components/platformchatcompletedresponse.go @@ -13,7 +13,7 @@ import ( type Object string const ( - ObjectResponse Object = "response" + ObjectResponse Object = "RESPONSE" ) func (e Object) ToPointer() *Object { @@ -25,7 +25,7 @@ func (e *Object) UnmarshalJSON(data []byte) error { return err } switch v { - case "response": + case "RESPONSE": *e = Object(v) return nil default: @@ -36,7 +36,7 @@ func (e *Object) UnmarshalJSON(data []byte) error { type PlatformChatCompletedResponseStatus string const ( - PlatformChatCompletedResponseStatusCompleted PlatformChatCompletedResponseStatus = "completed" + PlatformChatCompletedResponseStatusCompleted PlatformChatCompletedResponseStatus = "COMPLETED" ) func (e PlatformChatCompletedResponseStatus) ToPointer() *PlatformChatCompletedResponseStatus { @@ -48,7 +48,7 @@ func (e *PlatformChatCompletedResponseStatus) UnmarshalJSON(data []byte) error { return err } switch v { - case "completed": + case "COMPLETED": *e = PlatformChatCompletedResponseStatus(v) return nil default: diff --git a/tests/mockserver/internal/sdk/models/components/platformchatcreaterequest.go b/tests/mockserver/internal/sdk/models/components/platformchatcreaterequest.go index ff12189e..a5b50b89 100644 --- a/tests/mockserver/internal/sdk/models/components/platformchatcreaterequest.go +++ b/tests/mockserver/internal/sdk/models/components/platformchatcreaterequest.go @@ -15,7 +15,7 @@ const ( InputTypeArrayOfPlatformChatInputMessage InputType = "arrayOfPlatformChatInputMessage" ) -// Input - Either a plain string (single user turn) or a chronological array of `user`/`assistant` messages. The final array message must be `user`. +// Input - Either a plain string (single user turn) or a chronological array of `USER`/`ASSISTANT` messages. The final array message must be `USER`. type Input struct { Str *string `queryParam:"inline"` ArrayOfPlatformChatInputMessage []PlatformChatInputMessage `queryParam:"inline"` @@ -73,7 +73,7 @@ func (u Input) MarshalJSON() ([]byte, error) { } type PlatformChatCreateRequest struct { - // Either a plain string (single user turn) or a chronological array of `user`/`assistant` messages. The final array message must be `user`. + // Either a plain string (single user turn) or a chronological array of `USER`/`ASSISTANT` messages. The final array message must be `USER`. // Input Input `json:"input"` // When true, respond with `text/event-stream`. When false or omitted, respond with `application/json`. diff --git a/tests/mockserver/internal/sdk/models/components/platformchatcustomentitysource.go b/tests/mockserver/internal/sdk/models/components/platformchatcustomentitysource.go index a935970d..ccd6eac3 100644 --- a/tests/mockserver/internal/sdk/models/components/platformchatcustomentitysource.go +++ b/tests/mockserver/internal/sdk/models/components/platformchatcustomentitysource.go @@ -11,7 +11,7 @@ import ( type PlatformChatCustomEntitySourceType string const ( - PlatformChatCustomEntitySourceTypeCustomEntity PlatformChatCustomEntitySourceType = "custom_entity" + PlatformChatCustomEntitySourceTypeCustomEntity PlatformChatCustomEntitySourceType = "CUSTOM_ENTITY" ) func (e PlatformChatCustomEntitySourceType) ToPointer() *PlatformChatCustomEntitySourceType { @@ -23,7 +23,7 @@ func (e *PlatformChatCustomEntitySourceType) UnmarshalJSON(data []byte) error { return err } switch v { - case "custom_entity": + case "CUSTOM_ENTITY": *e = PlatformChatCustomEntitySourceType(v) return nil default: diff --git a/tests/mockserver/internal/sdk/models/components/platformchatdocumentsource.go b/tests/mockserver/internal/sdk/models/components/platformchatdocumentsource.go index 9dd42aa5..63d8078f 100644 --- a/tests/mockserver/internal/sdk/models/components/platformchatdocumentsource.go +++ b/tests/mockserver/internal/sdk/models/components/platformchatdocumentsource.go @@ -12,7 +12,7 @@ import ( type PlatformChatDocumentSourceType2 string const ( - PlatformChatDocumentSourceType2Document PlatformChatDocumentSourceType2 = "document" + PlatformChatDocumentSourceType2Document PlatformChatDocumentSourceType2 = "DOCUMENT" ) func (e PlatformChatDocumentSourceType2) ToPointer() *PlatformChatDocumentSourceType2 { @@ -24,7 +24,7 @@ func (e *PlatformChatDocumentSourceType2) UnmarshalJSON(data []byte) error { return err } switch v { - case "document": + case "DOCUMENT": *e = PlatformChatDocumentSourceType2(v) return nil default: @@ -89,7 +89,7 @@ func (o *PlatformChatDocumentSourceDocument2) GetDatasource() *string { type PlatformChatDocumentSourceType1 string const ( - PlatformChatDocumentSourceType1Document PlatformChatDocumentSourceType1 = "document" + PlatformChatDocumentSourceType1Document PlatformChatDocumentSourceType1 = "DOCUMENT" ) func (e PlatformChatDocumentSourceType1) ToPointer() *PlatformChatDocumentSourceType1 { @@ -101,7 +101,7 @@ func (e *PlatformChatDocumentSourceType1) UnmarshalJSON(data []byte) error { return err } switch v { - case "document": + case "DOCUMENT": *e = PlatformChatDocumentSourceType1(v) return nil default: diff --git a/tests/mockserver/internal/sdk/models/components/platformchatfilesource.go b/tests/mockserver/internal/sdk/models/components/platformchatfilesource.go index ad39a1de..67147189 100644 --- a/tests/mockserver/internal/sdk/models/components/platformchatfilesource.go +++ b/tests/mockserver/internal/sdk/models/components/platformchatfilesource.go @@ -11,7 +11,7 @@ import ( type PlatformChatFileSourceType string const ( - PlatformChatFileSourceTypeFile PlatformChatFileSourceType = "file" + PlatformChatFileSourceTypeFile PlatformChatFileSourceType = "FILE" ) func (e PlatformChatFileSourceType) ToPointer() *PlatformChatFileSourceType { @@ -23,7 +23,7 @@ func (e *PlatformChatFileSourceType) UnmarshalJSON(data []byte) error { return err } switch v { - case "file": + case "FILE": *e = PlatformChatFileSourceType(v) return nil default: diff --git a/tests/mockserver/internal/sdk/models/components/platformchatinputmessage.go b/tests/mockserver/internal/sdk/models/components/platformchatinputmessage.go index 5989ab25..97c1e067 100644 --- a/tests/mockserver/internal/sdk/models/components/platformchatinputmessage.go +++ b/tests/mockserver/internal/sdk/models/components/platformchatinputmessage.go @@ -11,8 +11,8 @@ import ( type PlatformChatInputMessageRole string const ( - PlatformChatInputMessageRoleUser PlatformChatInputMessageRole = "user" - PlatformChatInputMessageRoleAssistant PlatformChatInputMessageRole = "assistant" + PlatformChatInputMessageRoleUser PlatformChatInputMessageRole = "USER" + PlatformChatInputMessageRoleAssistant PlatformChatInputMessageRole = "ASSISTANT" ) func (e PlatformChatInputMessageRole) ToPointer() *PlatformChatInputMessageRole { @@ -24,9 +24,9 @@ func (e *PlatformChatInputMessageRole) UnmarshalJSON(data []byte) error { return err } switch v { - case "user": + case "USER": fallthrough - case "assistant": + case "ASSISTANT": *e = PlatformChatInputMessageRole(v) return nil default: diff --git a/tests/mockserver/internal/sdk/models/components/platformchatoutputmessage.go b/tests/mockserver/internal/sdk/models/components/platformchatoutputmessage.go index c7ccd4be..69218f0e 100644 --- a/tests/mockserver/internal/sdk/models/components/platformchatoutputmessage.go +++ b/tests/mockserver/internal/sdk/models/components/platformchatoutputmessage.go @@ -10,7 +10,7 @@ import ( type PlatformChatOutputMessageType string const ( - PlatformChatOutputMessageTypeMessage PlatformChatOutputMessageType = "message" + PlatformChatOutputMessageTypeMessage PlatformChatOutputMessageType = "MESSAGE" ) func (e PlatformChatOutputMessageType) ToPointer() *PlatformChatOutputMessageType { @@ -22,7 +22,7 @@ func (e *PlatformChatOutputMessageType) UnmarshalJSON(data []byte) error { return err } switch v { - case "message": + case "MESSAGE": *e = PlatformChatOutputMessageType(v) return nil default: @@ -33,7 +33,7 @@ func (e *PlatformChatOutputMessageType) UnmarshalJSON(data []byte) error { type PlatformChatOutputMessageRole string const ( - PlatformChatOutputMessageRoleAssistant PlatformChatOutputMessageRole = "assistant" + PlatformChatOutputMessageRoleAssistant PlatformChatOutputMessageRole = "ASSISTANT" ) func (e PlatformChatOutputMessageRole) ToPointer() *PlatformChatOutputMessageRole { @@ -45,7 +45,7 @@ func (e *PlatformChatOutputMessageRole) UnmarshalJSON(data []byte) error { return err } switch v { - case "assistant": + case "ASSISTANT": *e = PlatformChatOutputMessageRole(v) return nil default: diff --git a/tests/mockserver/internal/sdk/models/components/platformchatoutputtextcontent.go b/tests/mockserver/internal/sdk/models/components/platformchatoutputtextcontent.go index fedd3f28..d5020f5c 100644 --- a/tests/mockserver/internal/sdk/models/components/platformchatoutputtextcontent.go +++ b/tests/mockserver/internal/sdk/models/components/platformchatoutputtextcontent.go @@ -10,7 +10,7 @@ import ( type PlatformChatOutputTextContentType string const ( - PlatformChatOutputTextContentTypeOutputText PlatformChatOutputTextContentType = "output_text" + PlatformChatOutputTextContentTypeOutputText PlatformChatOutputTextContentType = "OUTPUT_TEXT" ) func (e PlatformChatOutputTextContentType) ToPointer() *PlatformChatOutputTextContentType { @@ -22,7 +22,7 @@ func (e *PlatformChatOutputTextContentType) UnmarshalJSON(data []byte) error { return err } switch v { - case "output_text": + case "OUTPUT_TEXT": *e = PlatformChatOutputTextContentType(v) return nil default: diff --git a/tests/mockserver/internal/sdk/models/components/platformchatpersonsource.go b/tests/mockserver/internal/sdk/models/components/platformchatpersonsource.go index 1e969fb9..9576e866 100644 --- a/tests/mockserver/internal/sdk/models/components/platformchatpersonsource.go +++ b/tests/mockserver/internal/sdk/models/components/platformchatpersonsource.go @@ -11,7 +11,7 @@ import ( type PlatformChatPersonSourceType string const ( - PlatformChatPersonSourceTypePerson PlatformChatPersonSourceType = "person" + PlatformChatPersonSourceTypePerson PlatformChatPersonSourceType = "PERSON" ) func (e PlatformChatPersonSourceType) ToPointer() *PlatformChatPersonSourceType { @@ -23,7 +23,7 @@ func (e *PlatformChatPersonSourceType) UnmarshalJSON(data []byte) error { return err } switch v { - case "person": + case "PERSON": *e = PlatformChatPersonSourceType(v) return nil default: diff --git a/tests/summarize_test.go b/tests/summarize_test.go index 455b796e..1a12a62a 100644 --- a/tests/summarize_test.go +++ b/tests/summarize_test.go @@ -27,13 +27,12 @@ func TestSummarize_Summarize(t *testing.T) { DocumentSpecs: []components.DocumentSpecUnion{ components.CreateDocumentSpecUnionDocumentSpec1( components.DocumentSpec1{ - URL: "https://deficient-majority.net", + URL: "https://coarse-surface.net", }, ), - components.CreateDocumentSpecUnionDocumentSpec4( - components.DocumentSpec4{ - UgcType: components.DocumentSpecUgcType2Shortcuts, - UgcID: "", + components.CreateDocumentSpecUnionDocumentSpec1( + components.DocumentSpec1{ + URL: "https://coarse-surface.net", }, ), }, diff --git a/tools.go b/tools.go index 39060a59..3fb011b1 100644 --- a/tools.go +++ b/tools.go @@ -1383,14 +1383,15 @@ func (s *Tools) AuthorizeToolServer(ctx context.Context, serverID string, author // GetToolServerTools - Get tool definitions from a tool server. // Returns the name, description and JSON input schema for the named tools on the -// specified tool server. Works for both action packs and MCP servers. +// specified tool server. Works for Glean's built-in tools, tool packs and MCP +// servers. // // `toolNames` is required. Names that do not exist on the server are returned in // `notFound` rather than failing the request, so a single bad name does not force // callers into one-at-a-time retries. Matching is case-insensitive and treats `-` // and `_` as equivalent. // -// Native tools are not served; `serverId=native` returns 404. +// Use `serverId=native` for Glean's built-in tools. func (s *Tools) GetToolServerTools(ctx context.Context, serverID string, toolNames []string, opts ...operations.Option) (*operations.GetToolServerToolsResponse, error) { request := operations.GetToolServerToolsRequest{ ServerID: serverID,