From 4f0ae6ffa75a999337f9861cf6dc0f7bf8a89201 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 15 Aug 2026 01:07:39 +0000 Subject: [PATCH 1/2] =?UTF-8?q?##=20Typescript=20SDK=20Changes:=20*=20`gle?= =?UTF-8?q?an.chat.create()`:=20=20=20*=20=20`request.input.union(Array)[].role`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`response`=20**Changed**=20(?= =?UTF-8?q?Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`glean.client.search.retri?= =?UTF-8?q?eveFeed()`:=20=20=20*=20=20`request.feedRequest.categories[].en?= =?UTF-8?q?um(knowledgeGap)`=20**Added**=20=20=20*=20=20`response.results[?= =?UTF-8?q?]`=20**Changed**?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .speakeasy/gen.lock | 307 +++++++++--------- .speakeasy/gen.yaml | 2 +- .speakeasy/glean-merged-spec.yaml | 196 ++++++----- .speakeasy/tests.arazzo.yaml | 2 +- .speakeasy/workflow.lock | 12 +- README.md | 2 +- RELEASES.md | 12 +- docs/models/components/feedrequestcategory.md | 2 +- docs/models/components/feedresponse.md | 2 +- docs/models/components/feedresult.md | 16 +- docs/models/components/feedresultcategory.md | 2 +- docs/models/components/input.md | 4 +- docs/models/components/justificationtype.md | 4 +- docs/models/components/objectt.md | 4 +- docs/models/components/placementreason.md | 6 +- .../platformchatcitationannotation.md | 2 +- .../platformchatcitationannotationtype.md | 4 +- .../components/platformchatcitationsource.md | 8 +- .../platformchatcompletedresponse.md | 8 +- .../platformchatcompletedresponsestatus.md | 4 +- .../components/platformchatcreaterequest.md | 2 +- .../platformchatcustomentitysource.md | 2 +- .../platformchatcustomentitysourcetype.md | 4 +- .../components/platformchatdocumentsource.md | 4 +- .../platformchatdocumentsourcedocument1.md | 2 +- .../platformchatdocumentsourcedocument2.md | 2 +- .../platformchatdocumentsourcetype1.md | 4 +- .../platformchatdocumentsourcetype2.md | 4 +- .../components/platformchatfilesource.md | 2 +- .../components/platformchatfilesourcetype.md | 4 +- .../components/platformchatinputmessage.md | 2 +- .../platformchatinputmessagerole.md | 4 +- .../components/platformchatoutputmessage.md | 4 +- .../platformchatoutputmessagerole.md | 4 +- .../platformchatoutputmessagetype.md | 4 +- .../platformchatoutputtextcontent.md | 2 +- .../platformchatoutputtextcontenttype.md | 4 +- .../components/platformchatpersonsource.md | 2 +- .../platformchatpersonsourcetype.md | 4 +- .../operations/platformchatcreateresponse.md | 8 +- docs/sdks/skills/README.md | 70 ++-- docs/sdks/tools/README.md | 5 +- examples/package-lock.json | 2 +- jsr.json | 2 +- package-lock.json | 4 +- package.json | 2 +- src/__tests__/messages.test.ts | 2 +- .../handler/pathpostrestapiv1getchat.go | 4 +- .../sdk/models/components/feedentry.go | 3 + .../sdk/models/components/feedrequest.go | 3 + .../sdk/models/components/feedresult.go | 10 +- .../platformchatcitationannotation.go | 4 +- .../platformchatcompletedresponse.go | 8 +- .../components/platformchatcreaterequest.go | 4 +- .../platformchatcustomentitysource.go | 4 +- .../components/platformchatdocumentsource.go | 8 +- .../components/platformchatfilesource.go | 4 +- .../components/platformchatinputmessage.go | 8 +- .../components/platformchatoutputmessage.go | 8 +- .../platformchatoutputtextcontent.go | 4 +- .../components/platformchatpersonsource.go | 4 +- src/__tests__/summarize.test.ts | 5 +- src/funcs/clientToolsGetToolServerTools.ts | 5 +- src/lib/config.ts | 6 +- src/models/components/feedentry.ts | 1 + src/models/components/feedrequest.ts | 1 + src/models/components/feedresult.ts | 8 +- .../platformchatcitationannotation.ts | 2 +- .../platformchatcompletedresponse.ts | 4 +- .../components/platformchatcreaterequest.ts | 4 +- .../platformchatcustomentitysource.ts | 2 +- .../components/platformchatdocumentsource.ts | 4 +- .../components/platformchatfilesource.ts | 2 +- .../components/platformchatinputmessage.ts | 4 +- .../components/platformchatoutputmessage.ts | 4 +- .../platformchatoutputtextcontent.ts | 2 +- .../components/platformchatpersonsource.ts | 2 +- .../clientToolsGetToolServerTools.ts | 10 +- src/sdk/skills.ts | 24 +- src/sdk/tools.ts | 5 +- 80 files changed, 486 insertions(+), 439 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 30063bce7..faab590d3 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,26 +1,26 @@ lockVersion: 2.0.0 id: 664aaca5-a41f-4434-8f2a-642dba92fe68 management: - docChecksum: 1d1c4c798b764226bfeeae4268f907c1 + docChecksum: 2252f031639eeffae028e5edc75f28dd docVersion: 0.9.0 - speakeasyVersion: 1.792.0 - generationVersion: 2.927.0 - releaseVersion: 0.18.1 - configChecksum: b41e1af1adbc70d0bc4b01c65b187d4e + speakeasyVersion: 1.794.0 + generationVersion: 2.930.0 + releaseVersion: 0.18.2 + configChecksum: 5bf49531f6f7d27e96e8d2882bf7c937 repoURL: https://github.com/gleanwork/api-client-typescript.git installationURL: https://github.com/gleanwork/api-client-typescript published: true persistentEdits: - generation_id: 316e19b7-3050-46ef-914c-73e5f77cf0cf - pristine_commit_hash: d4067214f61489816e561e4223172fb6fce61a6d - pristine_tree_hash: f35cd2723c9cdde29badb55dd110c00620f4f332 + generation_id: 94b1fbe9-8f71-4468-a7f5-a6beef8d56a0 + pristine_commit_hash: c300a3281480f7c043e6ee41dd43d0af03b1f026 + pristine_tree_hash: c7d58fdd1d88a1b88fc5124e3b9aa0f4bd39d10a features: typescript: acceptHeaders: 2.81.2 additionalDependencies: 0.1.0 additionalProperties: 0.1.4 constsAndDefaults: 0.1.14 - core: 3.31.4 + core: 3.31.5 defaultEnabledRetries: 0.1.0 deprecations: 2.81.1 devContainers: 2.90.1 @@ -43,7 +43,7 @@ features: retries: 2.83.1 sdkHooks: 0.4.0 tests: 0.17.7 - unions: 2.86.4 + unions: 2.86.5 uploadStreams: 0.1.1 trackedFiles: .devcontainer/README.md: @@ -1248,24 +1248,24 @@ trackedFiles: pristine_git_object: 2d773c43730426ba979a2509498cc8367493d9e6 docs/models/components/feedrequestcategory.md: id: 801f1c3c64d4 - last_write_checksum: sha1:829d662641d467beed3330e4d537278c37f39545 - pristine_git_object: e5751cfd305108cba99864eb42478c256c57fe2e + last_write_checksum: sha1:08a3a91a851e5c7ac1c4885f0f0f5af40cce7382 + pristine_git_object: bdc9f84671370ef05d4da0ec9e5a02717cb69556 docs/models/components/feedrequestoptions.md: id: 76c5e4412304 last_write_checksum: sha1:9d026d140bef548159ac576066007ccc73ab5cee pristine_git_object: d36f4c0ede1e69c9b152b812a2aa33da8ec6c08a docs/models/components/feedresponse.md: id: a781b46b0647 - last_write_checksum: sha1:5b4cbe745428ba4b3596365f775d668f416cb235 - pristine_git_object: 4dca9eb879911b70ba3c11a23aa8bb3ed0dcb60b + last_write_checksum: sha1:da222a4b97b497b5386ab018ca0c6e0dd24272f6 + pristine_git_object: e0d78966cfc548106d853e46efd75b329ca6f816 docs/models/components/feedresult.md: id: c3084f56c0cc - last_write_checksum: sha1:74a6712c89de2a5b720a08fcd90d96d2b8614cc1 - pristine_git_object: 887a43f4d699b3ea3cb2cbc4af56bb639295b4a3 + last_write_checksum: sha1:1c868e892b347bcff76d4973e567f9dd6892a4ca + pristine_git_object: e205a401a4b10a28c6eb9d37be40834d7e61a181 docs/models/components/feedresultcategory.md: id: 94c0249352b4 - last_write_checksum: sha1:77ea9d22736cbf9818b4fa4167fbd10fb3f6fa23 - pristine_git_object: e9d2d9253302b7afabf2cec5f7baba521eb33107 + last_write_checksum: sha1:93ed115bad5c4a6431bd5cd5fb18e933363ac4ff + pristine_git_object: 36186d89c885b0f301fe45f525504e0f4f0b9c20 docs/models/components/fieldscope.md: id: 23caffb85bb7 last_write_checksum: sha1:b90b2a0fba0f78b414366202e56a1637a8a8793f @@ -1544,8 +1544,8 @@ trackedFiles: pristine_git_object: 7e5d5893d25765e9f9ea059729f7b555c4d01729 docs/models/components/input.md: id: ea03f2204b6f - last_write_checksum: sha1:eb8ac82864d54262c378a9d4ebf0ef0712fbbcd9 - pristine_git_object: 96badd3b78b581c0a67bc2f97c719f3845e15a14 + last_write_checksum: sha1:bad70b6a7129bc6648d25d48433a238f2f99605e + pristine_git_object: b45515ae444d9f22efd0cb129c06a4519f632e1a docs/models/components/inputoptions.md: id: 62e10ac3918a last_write_checksum: sha1:5fa0d9e69f800b6b886a9c7b70f9dba0636fc407 @@ -1600,8 +1600,8 @@ trackedFiles: pristine_git_object: 796fa0574cd02b5ca3a7046196a7cc4a214eeda0 docs/models/components/justificationtype.md: id: 5a15880767a5 - last_write_checksum: sha1:5b9822a5f44f433893ef8e41131b11eba33fb7c4 - pristine_git_object: a2597f9373525a93cc58d61537511c5594c42e5e + last_write_checksum: sha1:884236c05f545100d02dd9b961e8db432c4164fb + pristine_git_object: f84ca2f73d4e63c623a2dc7f25ef6fa59463bb4c docs/models/components/knowledgetype.md: id: cf27a7cefa69 last_write_checksum: sha1:6e94f203bb1d3a0d12f0bdb0119bf36301536e8d @@ -1780,8 +1780,8 @@ trackedFiles: pristine_git_object: 8c115d56e434547047e4d750d962204a910fd24c docs/models/components/objectt.md: id: d897e3e8edba - last_write_checksum: sha1:e7b573e2ee1253cf3a30e967a018767f7f3747ee - pristine_git_object: a05893b2705baf3da442cf2cd8f3c9f78499d066 + last_write_checksum: sha1:73368290716c5828b865762dc045cf0387a8a7e4 + pristine_git_object: 127074910bcad44f8187e1c9dae0b05592be80ba docs/models/components/operatormetadata.md: id: 6893433a0808 last_write_checksum: sha1:995e619f59c75a9ec611873174cd0e8420b7005d @@ -1884,8 +1884,8 @@ trackedFiles: pristine_git_object: ae27eac7dfd55251b07c82582cf66f4e3674d7ad docs/models/components/placementreason.md: id: 4aca343a58b8 - last_write_checksum: sha1:31cfe4cb23b1ad813abe043e5f8d9d8d15740ba7 - pristine_git_object: 041fac880aca7c8fd71516bc473c54f43302f6a8 + last_write_checksum: sha1:509885082eab5876a9026362ba78812311b3f56c + pristine_git_object: adf60a35e9ab75dafb72e48e9bf892bac321f43f docs/models/components/platformactionsummary.md: id: 93ecbff93962 last_write_checksum: sha1:f0856d617e3918f6769d90cfecd01cce600a3889 @@ -1936,104 +1936,104 @@ trackedFiles: pristine_git_object: 78cf9e720ba360b732b4967138d4bd2495224239 docs/models/components/platformchatcitationannotation.md: id: 467352b9d75c - last_write_checksum: sha1:5d9c48d79832e75503ec99352f5fac9cffaa2fc1 - pristine_git_object: ca81ae7d7ae7fad5b5fee6c862b32a9d80ad0af5 + last_write_checksum: sha1:b3c0a3d5a776c050c434c4e9490f48f5b81f82d0 + pristine_git_object: 78057674857c1ef92f4a3795bdca94ed8ff3f927 docs/models/components/platformchatcitationannotationtype.md: id: a4ad1507c330 - last_write_checksum: sha1:33948fa2ae191f707278392987e069c478fd8e2e - pristine_git_object: 431d1e87da2ccebe4ca25e1ba7e09afe90b963c4 + last_write_checksum: sha1:26fdb41c145f5c85cef7ea36aac3ee1b1b90330a + pristine_git_object: 9e95ef86a0c14f3fcb18fbef061482f1d391d6cb docs/models/components/platformchatcitationsnippet.md: id: 2d053c4698b7 last_write_checksum: sha1:25d3a8c09a004c8f0b5e2a129fd494e0703f321f pristine_git_object: ceef765233c3603553570aa4981eafbceb11cdcb docs/models/components/platformchatcitationsource.md: id: 86a98410d676 - last_write_checksum: sha1:216d08ec75d65814e68097066dd4e23426d0918c - pristine_git_object: 9a241d45d7234371e2d1ef975dbf6b8badcebc92 + last_write_checksum: sha1:0f520acac2249c77c4adda5391a5237dc538ee2f + pristine_git_object: 5935ba186b4c812246426dbc58f74aea02012223 docs/models/components/platformchatcompletedresponse.md: id: f6dd2c9cf877 - last_write_checksum: sha1:3f50d26741626729c4dd4611f3168436183f0ca8 - pristine_git_object: 4112c465bc5d64c7df9c907f93259c3fa53d21bf + last_write_checksum: sha1:0f3e231e0ea1b6c9ee6a5d5e6b46e311e5fde64b + pristine_git_object: 532606ea16f0c5c6fbe31d1f09043fd68c6f24b7 docs/models/components/platformchatcompletedresponsestatus.md: id: c0af5424b1a3 - last_write_checksum: sha1:9b6328a51bff8e7e9f3302646efa3432592b7aea - pristine_git_object: 2ccfe44a3d445b6e6161fa4d2544b201c9cb4f35 + last_write_checksum: sha1:02ad186fc241ecb21ea4d042979b9dd6c446fb99 + pristine_git_object: 515cc88fa1c6f8ac6add2f20b51e155b85fc973e docs/models/components/platformchatcreaterequest.md: id: af3d88254add - last_write_checksum: sha1:9a8cbbdc33cc0fb2e0eafe1890b58c719811ea28 - pristine_git_object: 867b1327aeec094cb8230c5db07347df55fa7b55 + last_write_checksum: sha1:e72d820c7a33012381b203eb3f4754245568bbd3 + pristine_git_object: 12abbb633d931554dfaf20d720dd4bb09934afa0 docs/models/components/platformchatcustomentitysource.md: id: c6cba9d9b3a1 - last_write_checksum: sha1:6892fa8ce03f09b47ff1005d28730733101213db - pristine_git_object: b47aaca7994e651ff19215a51c53f9836952457b + last_write_checksum: sha1:40989b45d95f690b907de2546e56fde825562081 + pristine_git_object: fcf4eebafdae2ff110f77798ca0a2d1913fe8215 docs/models/components/platformchatcustomentitysourcetype.md: id: 1686e673d2ce - last_write_checksum: sha1:ef89a85baed3e6b9ebf97bc1eaf319c89ab56a5e - pristine_git_object: 3d4c97aa170488baa5245b6fc0ee659d0557a252 + last_write_checksum: sha1:49cbebae6e08377c2744959a9622b9f9c2943106 + pristine_git_object: 8f4d9728e74d80849830a4c028497a8820b1315b docs/models/components/platformchatdocumentsource.md: id: 617dca740a9f - last_write_checksum: sha1:d2190425cc6b1553ec0927811f91d3a0dd62a3fc - pristine_git_object: 5eb3a135bc30d961fb769eec324bbde0174167de + last_write_checksum: sha1:e62e04bbda1703983a8f2c7f4cd90709da2c87de + pristine_git_object: 8edc0e21541307e4c191fb71f8b024e04975b47c docs/models/components/platformchatdocumentsourcedocument1.md: id: ff1663e8f163 - last_write_checksum: sha1:cd425a8ef5eed18b90e66899a382bff7ab70aaf1 - pristine_git_object: 1fc3303b7060ae2a2d716b78d25ad2a5cb259dec + last_write_checksum: sha1:6c986de47abda93e00162103ec2e2354c726bbe5 + pristine_git_object: 19719d431dd304d39a1a6ecabf0e9a92c9336b1b docs/models/components/platformchatdocumentsourcedocument2.md: id: c0337e866e89 - last_write_checksum: sha1:538c0a8feeb2d41c40479b1a6a5936fec4835583 - pristine_git_object: 6a2e15b1081b66561ca4107696004b8f7816e35b + last_write_checksum: sha1:19b1e5ab2c6c464e68bd72eb583f1dc8da778de1 + pristine_git_object: f15d0ca3f3e9351d87d14992a87663ddd1fee894 docs/models/components/platformchatdocumentsourcetype1.md: id: 8d72cb90f74a - last_write_checksum: sha1:984152abc9d58e7f25d5af1514fb356454494a98 - pristine_git_object: eeb86693bb310523540192e87cdc855073bbfa67 + last_write_checksum: sha1:9b6c6d4206903c1beead8376c9b9433f7ba90cbd + pristine_git_object: 5ee11e078f6b2cffdc499e12ae1dbae65d1c2172 docs/models/components/platformchatdocumentsourcetype2.md: id: 09b92f604a92 - last_write_checksum: sha1:c889901ae0546003a9a660b38c092e4a2b6957a9 - pristine_git_object: 7dfc5ae264b37bf921abac683a0ea3aa13484704 + last_write_checksum: sha1:63f5d3b4a924b18eaeedb52b79fd66c674079494 + pristine_git_object: e09115c451711d3d557c830373b0e4b3505819f0 docs/models/components/platformchatfilesource.md: id: 53441e77a478 - last_write_checksum: sha1:0786ad462fcf15c225f22e4724785de150945f20 - pristine_git_object: fabd2c2c050d3630e21c7e9a35f393a6a9ab11d9 + last_write_checksum: sha1:6c382310bb76b3e183184c0d5a578f767ec891d3 + pristine_git_object: f2b29054cd25fbbedcca675ae2910c5e39ae56e9 docs/models/components/platformchatfilesourcetype.md: id: ac2f5e034fdd - last_write_checksum: sha1:bc0ab4d89c861d73389148ef6250aff189558217 - pristine_git_object: 5b838dd93d1b094279e3c1ce786d19fe5943e262 + last_write_checksum: sha1:d0332f021465c06fa79e37c9d9c0d1a7dc40af16 + pristine_git_object: 94501dd9ec6442ab625936528b17156311b9b5b1 docs/models/components/platformchatinputmessage.md: id: 482fd05bd77f - last_write_checksum: sha1:4a034d6d3163ea355267499053fd90ad38074fe2 - pristine_git_object: 0f2877e479acb04a4c542ebff7c53f00122aa8af + last_write_checksum: sha1:5d406a8f04c8f12f495e5e473a9025bad9f7baf6 + pristine_git_object: 09e5bde5260efa53409de9a6fe59222686970bc5 docs/models/components/platformchatinputmessagerole.md: id: d433e7bbef35 - last_write_checksum: sha1:2804779b4d95e111ef46a31a74037a98c2242019 - pristine_git_object: ec35150fda39656dade25d507cc4e53988ceb1f3 + last_write_checksum: sha1:0b361bb9d55596a0022878ef1aa91c9e782c5870 + pristine_git_object: 137d0c8608eb32b8672c234a91b6f18739ed2d21 docs/models/components/platformchatoutputmessage.md: id: 06f5e11e058a - last_write_checksum: sha1:181f598f2296f5f191a56af3d9c3aae422aa5c36 - pristine_git_object: 5d489223e7ef8f7344d12be33535b5e5aae8284b + last_write_checksum: sha1:1be8e49ede9b8bc5cd2e0c6147a7a39384a61dda + pristine_git_object: 2e54ec787d22939c0a77cdbd374df7ac2b64ffce docs/models/components/platformchatoutputmessagerole.md: id: cfd66f34b70b - last_write_checksum: sha1:19633ad69c890724989f2df78c978b010b24b3ce - pristine_git_object: 117fb3c6cbce5aa7846ed4b4d72d63040c970080 + last_write_checksum: sha1:7d5d0e66bb3b12d23ba9b184d57c489d6f2a1858 + pristine_git_object: 9a34c0b72b98652d13b39951084384bfd5da953c docs/models/components/platformchatoutputmessagetype.md: id: 488f9e7e5a1b - last_write_checksum: sha1:c15b1438615d7254e47f19cfd98ece8b0887f483 - pristine_git_object: d5a2d1b69c9220e8099404ce8b11a476b545650d + last_write_checksum: sha1:a6bd1bf40f785a11b7b207ae1ec3f763b0096abf + pristine_git_object: c8d864be2b9327f48625725498c435ca5d7c69f6 docs/models/components/platformchatoutputtextcontent.md: id: 41ecc87e478f - last_write_checksum: sha1:b601d8dda927d82a39fb063f95a08bc2a4782841 - pristine_git_object: a1dcabf4a58317a939bc0f8e42134539b13085b1 + last_write_checksum: sha1:0cf363611390743f1e05a653e3a1f8a0e12705f8 + pristine_git_object: 9f1c7036acde7a2301713719d83e7240e677a73c docs/models/components/platformchatoutputtextcontenttype.md: id: 12dc2e11fdf6 - last_write_checksum: sha1:94b3d2951ffdff69fe7fe47ecee32d9397049c91 - pristine_git_object: 7e0207d7ceb7e39d23d8d420644bca0a16e67d75 + last_write_checksum: sha1:e7a572736c4dd5b42dbb316dd1760f90cd779f7f + pristine_git_object: a99d06bd804f416c8560a2be2b3d5f3f1b9611d6 docs/models/components/platformchatpersonsource.md: id: 853620498d42 - last_write_checksum: sha1:9a2b65f4da06c1434dfb782cde48c768d51aeab4 - pristine_git_object: 24526a8a22ea517d656e7f9ace8a0d125f6a5cbd + last_write_checksum: sha1:cb88541daeaac62a5f11029ad27ad1dfc8b5f237 + pristine_git_object: e1689b9c8659babde802b7d4eb096c1f23e2e25d docs/models/components/platformchatpersonsourcetype.md: id: 76448f09c0da - last_write_checksum: sha1:da601bb01291c01aa38082f075f8d0ae464c710f - pristine_git_object: 79762d5251f92c5e8139579777486846b3d017d4 + last_write_checksum: sha1:735c6d77289937a589ece1d17c9050bc672149e7 + pristine_git_object: 0a80c33b4d577b2c53e2513505ed428e3ef46830 docs/models/components/platformcontenttype.md: id: f5a30f465d14 last_write_checksum: sha1:d225b587d2a1d67643445aef678a99ded30fb27a @@ -3276,8 +3276,8 @@ trackedFiles: pristine_git_object: 86d0551865da2973d4bc49c26a9ae3fab6829f85 docs/models/operations/platformchatcreateresponse.md: id: 44dd0bebd3e0 - last_write_checksum: sha1:1f3c420fdaf977cf73b06ce01a6be36d5b05cc92 - pristine_git_object: 2772585cc21493ed1803ac626389de65cb7c6a73 + last_write_checksum: sha1:d375d440423bb5f63826a7732421c436d4c7e4e7 + pristine_git_object: d5d70fb1bc3dee0a7748fe2af942b9ac10ed2c10 docs/models/operations/platformsearchfiltersrequest.md: id: fb15f593735d last_write_checksum: sha1:f2d1bd989b9012c481f0131bb912764e6ac1b702 @@ -3544,12 +3544,12 @@ trackedFiles: pristine_git_object: 2c29a709d3d1b54d4abef32fe9f29f6364bfee38 docs/sdks/skills/README.md: id: 3a14a5c90791 - last_write_checksum: sha1:9a6b26965cd30eef9cce0579c4f1ecae5b3dec57 - pristine_git_object: 2634c0a6b41b2fd050aa7d16cd76a44bf08cb5df + last_write_checksum: sha1:ebc027c5eb4a9403ae43f51aa265913f87ae22e6 + pristine_git_object: 4231043fb363657a0098fca957fbd6e9316b028d docs/sdks/tools/README.md: id: 044286549bac - last_write_checksum: sha1:3f76f759a2a96e7e736f4c470d2937ef217d92da - pristine_git_object: ebf0e4ed488f82018b8f475e667b1659e5a83d0e + last_write_checksum: sha1:23fcbbfc0e1b9d89c8466b6313b5125e05cd5aa7 + pristine_git_object: bed0af9a44427e3eb7c2d8509454f1b77a7e4075 docs/sdks/verification/README.md: id: 8148670b64d3 last_write_checksum: sha1:5dae6116a97c546dd5d203beddd266ded05cdeec @@ -3584,12 +3584,12 @@ trackedFiles: pristine_git_object: 5a2797590d4be351d62915017d5b2a0f853537c8 jsr.json: id: 7f6ab7767282 - last_write_checksum: sha1:4d1be527ed9db32b91078dd54c04f39fe72ed642 - pristine_git_object: 6252229ac6decc07bb05e2d5b1da9186bd8f789c + last_write_checksum: sha1:f7dc1ab02ed0e2e390873db3bd783aeeaf5277c4 + pristine_git_object: da338064d531a7fdeec237fbe9e54e38be955807 package.json: id: 7030d0b2f71b - last_write_checksum: sha1:4f731e1df17b33991b0c2f542f9f95fd28c35a50 - pristine_git_object: 1aa7344f7cf0340c13677ac09efde9c5b6181fc2 + last_write_checksum: sha1:1e96b98002ec7c665bc49c7eab5bc68a70c54086 + pristine_git_object: aaed989914763059385612f76ae5a25b25fb29e9 src/__tests__/activities.test.ts: id: 65fa859b8f59 last_write_checksum: sha1:756bc40095f4495bbf62739b8218bb4a559a24f2 @@ -3704,8 +3704,8 @@ trackedFiles: pristine_git_object: d252821b825c62856886e3ab9287181d7ef7f9de src/__tests__/messages.test.ts: id: 39e293f09219 - last_write_checksum: sha1:17d923a23384341a26ce4774612e47a9bcfc8dc6 - pristine_git_object: 41c0b3c93454418989eac9a34b10c888541e3e2e + last_write_checksum: sha1:614ea7fd801e89ad1a53d01b4b5129e9501e54b2 + pristine_git_object: 12904134bbdc280929babb05d7977adda65fc58c src/__tests__/mockserver/.gitignore: id: 4a7fc421b6b6 last_write_checksum: sha1:228e1b05712a973948fd771323a2140a3b355ff4 @@ -4156,8 +4156,8 @@ trackedFiles: pristine_git_object: 2e612d4143e02dd5e90750945b781302230969b3 src/__tests__/mockserver/internal/handler/pathpostrestapiv1getchat.go: id: 4a9c64bf3a68 - last_write_checksum: sha1:bd92836a7e38740708f76f52b19704fda11d9ab7 - pristine_git_object: a7e16d16bf67e08174b9a7ec990934165ce72f6a + last_write_checksum: sha1:2766e6a943d9c18dc4d8a7f9e3bc7122a76bde0c + pristine_git_object: e2243868c4ccfbb9c80e49f9ca99c92735f4978f src/__tests__/mockserver/internal/handler/pathpostrestapiv1getchatapplication.go: id: 069e6f3638f9 last_write_checksum: sha1:fe7b6e94356f030628f826fdaa494f1f87bcba8a @@ -5224,12 +5224,12 @@ trackedFiles: pristine_git_object: eaa87413391e44f74a2647a75d861904a051a1af src/__tests__/mockserver/internal/sdk/models/components/feedentry.go: id: 809547cb5c68 - last_write_checksum: sha1:c8a35dce583e56a382f37d33b263066f489fc6c1 - pristine_git_object: c10cf6160b33b8dba52632d14c542b5596afcbe3 + last_write_checksum: sha1:f9133dc33cfd6aab976f87747526ca34a52fbac2 + pristine_git_object: 5a52495bd65cc469a6bc1e3c69ad8a6934d19d7d src/__tests__/mockserver/internal/sdk/models/components/feedrequest.go: id: f7bd2c505cff - last_write_checksum: sha1:570996d04749d147d75ec36caa21524209376a1e - pristine_git_object: 0a92f10622f9d3bd77b3aad8660e3d5efe0222e8 + last_write_checksum: sha1:cfc56433977be2c80d8fab232f492792fbc73c92 + pristine_git_object: a5f8b3a90bb5f38fb85c844272f39e368fb71225 src/__tests__/mockserver/internal/sdk/models/components/feedrequestoptions.go: id: d6a1872334df last_write_checksum: sha1:1ab14ce889dc4f6a8cd018f5ef731ee05e3c4f3a @@ -5240,8 +5240,8 @@ trackedFiles: pristine_git_object: c92a344643e978700da31b2f24afaf9d14fd8d69 src/__tests__/mockserver/internal/sdk/models/components/feedresult.go: id: 90772ce61c8a - last_write_checksum: sha1:0b9177ec69b138ff564f27de7a1c0f9a3b697363 - pristine_git_object: a3066261f9a430485a2d225a835251fd7681c336 + last_write_checksum: sha1:4dbd1a71f92818054220204f3d6e454fd766a875 + pristine_git_object: 7d221ae18bef2201c7db781fdc696594e81dcea5 src/__tests__/mockserver/internal/sdk/models/components/followupaction.go: id: b87db474fc6a last_write_checksum: sha1:94c11e6ccb0d238213354241dff0baa101808b64 @@ -5752,8 +5752,8 @@ trackedFiles: pristine_git_object: 64931aae7e6a17c399ed405fb398a14b86702e7b src/__tests__/mockserver/internal/sdk/models/components/platformchatcitationannotation.go: id: 466159faf700 - last_write_checksum: sha1:d3c9dbc073c57f0c8a2f0728296cd489d8e7b6b2 - pristine_git_object: b0b9de0e97debdae9574ae01731804400e813516 + last_write_checksum: sha1:8335bc27d5b0a2b3b98808ffa519213a1720ec8c + pristine_git_object: 792b812532e77f43008f823c28b8146aa779d1e0 src/__tests__/mockserver/internal/sdk/models/components/platformchatcitationsnippet.go: id: 76edcacaf93e last_write_checksum: sha1:4296a29677db370c9cfc3b28218b01435b4bcad8 @@ -5764,40 +5764,40 @@ trackedFiles: pristine_git_object: 39ab410cfb929cad72dd967aead0cfab65926a96 src/__tests__/mockserver/internal/sdk/models/components/platformchatcompletedresponse.go: id: 8f56121059d0 - last_write_checksum: sha1:8a9ff937256b6185b2d52572c8c305b8a5ee9b6e - pristine_git_object: 9e0cdb0a5c2d6e4f39a710c9613a9eb6583fb193 + last_write_checksum: sha1:fd2e0585b44227d99bb44d01661719c24a3b7b28 + pristine_git_object: ccc1ffa7eacc635780dcc91a8f8e7fc3dd06e2d9 src/__tests__/mockserver/internal/sdk/models/components/platformchatcreaterequest.go: id: d7b9bdfe9b8f - last_write_checksum: sha1:552b2c08522df687649c1de74a22c922fd8c4de8 - pristine_git_object: 06561e4b8fe0c578342ac044c9218cd2181ab836 + last_write_checksum: sha1:e06a0eba90ebb7412bfb22ed1013265f40f055f5 + pristine_git_object: 204108288aa9ca3ee76f7df55b45ed80610a3277 src/__tests__/mockserver/internal/sdk/models/components/platformchatcustomentitysource.go: id: b77f94af96a8 - last_write_checksum: sha1:82b70c87fb580862f8b4bedb8683f90843f91835 - pristine_git_object: 1d41c6b64ca1a20d6c59b6081c090c63ec9df252 + last_write_checksum: sha1:55727c996824a4fdb61b9334a7c6db7bc2e1b80c + pristine_git_object: def886172fc39e8fa7236c2a9332e56571e60900 src/__tests__/mockserver/internal/sdk/models/components/platformchatdocumentsource.go: id: f232d703d68c - last_write_checksum: sha1:947242208f71fe3517a4bfb659aed9ffa1fb89bf - pristine_git_object: 707be168d9d8be5599693d7112c382334ca17fe4 + last_write_checksum: sha1:610f9656675342c75d6209a4aac1be0d9c8916be + pristine_git_object: 3086e8358d592339e5e59b41679029784a1c700f src/__tests__/mockserver/internal/sdk/models/components/platformchatfilesource.go: id: 40e6ccf2fdae - last_write_checksum: sha1:38d71223861b787768eb7ab24c994b002c75f63f - pristine_git_object: 69991a9a5893f634387b854c0964665aff4580f2 + last_write_checksum: sha1:0a394842bf2569f2053b6d1669a9194208ed85aa + pristine_git_object: f1e39d6950f3cd342403dd0747105a6b29191b40 src/__tests__/mockserver/internal/sdk/models/components/platformchatinputmessage.go: id: 3073b8cf092d - last_write_checksum: sha1:14c2e9d83b70aefc12438fb7d10b84ff41f81ca7 - pristine_git_object: df2c424a9367e111b265b337a69b6273969571bb + last_write_checksum: sha1:6340f73e5bffac9a724f8eb9f6a73082273cf080 + pristine_git_object: 27fa64cbf8a93a7d9825b49f1637ae119e78315e src/__tests__/mockserver/internal/sdk/models/components/platformchatoutputmessage.go: id: b4782e0cffe9 - last_write_checksum: sha1:5692711fd8c035df5dfd9deb83377780f03bca2d - pristine_git_object: f02e9b2d266915b4962d952eddbc7d4cf3068370 + last_write_checksum: sha1:0c5708d631196c2c4cdf0e64a2ba23939acecbd2 + pristine_git_object: a8a58d2ede6d01bc4c7b626b6830d17bda3444a7 src/__tests__/mockserver/internal/sdk/models/components/platformchatoutputtextcontent.go: id: 3bd4856d4753 - last_write_checksum: sha1:0d96861b7abc1ecccad547f8ddb0f6ad12cd20bb - pristine_git_object: dc6e6121b338abb037224b80e972e27583da90b8 + last_write_checksum: sha1:859d1b5f0063a12f31d2a544aaa78d01e57a445f + pristine_git_object: 0cecacad8c07e17a57ae9d2a0dabef1a074931ad src/__tests__/mockserver/internal/sdk/models/components/platformchatpersonsource.go: id: 3b8c301f9600 - last_write_checksum: sha1:190002a9bcc4e5180fa28c8463f4b2b6a1c655ec - pristine_git_object: f27dcb8149822078336c7a925cdcce9722cfda7c + last_write_checksum: sha1:9e5f72c1a5d130516f17326db5ea40100385e413 + pristine_git_object: a17cf3988ef8e44af1a5dc6331f88efb766ce2c5 src/__tests__/mockserver/internal/sdk/models/components/platformcontenttype.go: id: 35fc64c34a6d last_write_checksum: sha1:ccf4b0720954621f96c5f58cd961c0c9d2cf6e7b @@ -7288,8 +7288,8 @@ trackedFiles: pristine_git_object: b5a61d7417c6131b4dddc24bb19fcdd0f73f07d3 src/__tests__/summarize.test.ts: id: 3105d6ebc7eb - last_write_checksum: sha1:fa4dfb1046b992363984b7c95dfe6a9c0f74fe2d - pristine_git_object: 31b3a9b32f8bfccb2ab5c8556f9fbed21fb4b1c4 + last_write_checksum: sha1:1b519d8e27e81ad47f67d63bc9e6bad24b7eadf7 + pristine_git_object: 86678bfb9e08e6c01b90d4547f9ce70fbb2c6a31 src/__tests__/testclient.ts: id: f142c080bff8 last_write_checksum: sha1:3a38647391f52221c009a9273eebf90793b3d430 @@ -7664,8 +7664,8 @@ trackedFiles: pristine_git_object: 3dfa08db301f59467cfa5484c44cb77b93ff2ddf src/funcs/clientToolsGetToolServerTools.ts: id: 0cafc7bf1212 - last_write_checksum: sha1:63414e02dec6e8751d6b2c96b1dfe4803ecc5523 - pristine_git_object: fbe2237837ea88e91c33c0cece3853285e19522f + last_write_checksum: sha1:58c2ffc99f085232becee0528084abe289de6d79 + pristine_git_object: b8b1e15336c32394e86cffbb72e8a902323ae38f src/funcs/clientToolsList.ts: id: 6d9c352c5a56 last_write_checksum: sha1:fa945ca1b2d8b118e4e481b889d4afd6fc5b1189 @@ -7956,8 +7956,8 @@ trackedFiles: pristine_git_object: 42d9739ab67c2fec0689f83777ffa5e1f875e5d5 src/lib/config.ts: id: 320761608fb3 - last_write_checksum: sha1:a28b1a6dce0da94072bb6f3d05b32dc34f97df49 - pristine_git_object: aca67314831cf1656dd79def8be0dc719c8da2ee + last_write_checksum: sha1:a4b4a15408f2659a751e3a71e19b67bd4325e0f5 + pristine_git_object: 5c3acfa39322b106a4af0e3555e5b2a0b55ebd3c src/lib/encodings.ts: id: 3bd8ead98afd last_write_checksum: sha1:a74725064d06b6994b95873c037975d2f2e63467 @@ -8916,12 +8916,12 @@ trackedFiles: pristine_git_object: 3fb6f14548eb0f546d0fdfcbac4ea9af834b9687 src/models/components/feedentry.ts: id: 47faae0fec45 - last_write_checksum: sha1:e1a5a6b1756792779ed68f901b91232e5bdfb3a1 - pristine_git_object: 3ca806ebee2e92cc8d8f7b20ee78fcaa08800102 + last_write_checksum: sha1:2fe54bd66873007ba03d021798affb187280a249 + pristine_git_object: 155b1275baf0e2e1e4c79b3e1d1270b4cbc2f0fe src/models/components/feedrequest.ts: id: e18410d4ffd4 - last_write_checksum: sha1:362d6e85324f74570391eb9e8986a8b2da43c607 - pristine_git_object: a271ecf6a975e906df8e2244a851cb209eb3d049 + last_write_checksum: sha1:78dbb2b566b9af8e17401776684bb73dfdf17db2 + pristine_git_object: 187318ec69b346f44b2c61ce6e5683d11b6b97e3 src/models/components/feedrequestoptions.ts: id: 684c93eb4ff3 last_write_checksum: sha1:339180c553629e9c992c1f5819612effd7d692e7 @@ -8932,8 +8932,8 @@ trackedFiles: pristine_git_object: ec512af99670430c927b57b2fcb360c620f56cf7 src/models/components/feedresult.ts: id: 94d90ce484f6 - last_write_checksum: sha1:cc351a59236a19dd66dc508d047f67dbd24680c0 - pristine_git_object: 7733310af10f4f4c25b1511d14eb0a53faf7f32a + last_write_checksum: sha1:8faa02972f837f191c5aa77084bc40978d99b8d5 + pristine_git_object: f1ee4d4e7bfe46ddcb981b9047b138ad6c2b6fb9 src/models/components/followupaction.ts: id: 0b8a71fb6ea2 last_write_checksum: sha1:ea9d1e5a53384164dc8d63d3ff831a332a5f2fed @@ -9444,8 +9444,8 @@ trackedFiles: pristine_git_object: 59537dc66a6384e8dde15a3fdc62ee156ef16243 src/models/components/platformchatcitationannotation.ts: id: 3a01c4a809ce - last_write_checksum: sha1:bcdf88aacdb5ec3177a22ba86390df295cca7e07 - pristine_git_object: b8211fba2a1fb20aa80369d1335c32bbee567817 + last_write_checksum: sha1:5ff0a65ae65e1f6514e603dd78cae2bc19668d31 + pristine_git_object: a9f2614a6792aa20093d97b8ced7edfae941c74a src/models/components/platformchatcitationsnippet.ts: id: 128244b7a174 last_write_checksum: sha1:ac66f237a48f159bb95d8045b084262cd222d88a @@ -9456,40 +9456,40 @@ trackedFiles: pristine_git_object: 7678a772da01b99c6543d0744c06286a72d088b7 src/models/components/platformchatcompletedresponse.ts: id: dd026ef73bb1 - last_write_checksum: sha1:16810d2f5bbc43f31e42fdc2e1134b7db31e1a64 - pristine_git_object: 5dd8d12762b2398f3b43e91ae5803504587e32ea + last_write_checksum: sha1:d8c7130a8b7bbdba9aad931e34c052476fae33ad + pristine_git_object: 4bed5c1c3562defef129bce0fa07227744354b5d src/models/components/platformchatcreaterequest.ts: id: a0537d504f7f - last_write_checksum: sha1:0bef58e2ce889b1c935b7117893771a0575c66b8 - pristine_git_object: fbf81ebd47cf69269c0d216b2e822c1b65dcbb89 + last_write_checksum: sha1:74cf82e4c8afdbd650b4dc205a226c6e67b57e69 + pristine_git_object: 05d89c055cd25cd2576ae02875a35a480b4dc70a src/models/components/platformchatcustomentitysource.ts: id: 30d921035e09 - last_write_checksum: sha1:e8830a460925a26503c179a59974210c100b3f99 - pristine_git_object: f06bfe9600d7bbfc1d11b20aaa5241e8391d8970 + last_write_checksum: sha1:f1384b713d4591178397a3d7aa51be7bb2680827 + pristine_git_object: ae0d393f4abec346104b0d4099f76c8cb49324d3 src/models/components/platformchatdocumentsource.ts: id: d8ca12507aee - last_write_checksum: sha1:b199a5acbd8441fa3012f55b576474d665a73ade - pristine_git_object: 747b11f9745eb77ded0226c718b0b8fe4d819fb7 + last_write_checksum: sha1:33318c0435e71f66ff9d5f8807abd704a56b9f59 + pristine_git_object: 7de88e0ab5f4d1ecaad6b5752d99e484ff97d259 src/models/components/platformchatfilesource.ts: id: 25059e755130 - last_write_checksum: sha1:d6b4fc3c3de87097da19078d4b26247d9ddb6e03 - pristine_git_object: c38b0f47184096674340d9fdbc6b728e8813ef69 + last_write_checksum: sha1:ef97353e6aecaa40e6925cab034736f328be3aa0 + pristine_git_object: 1a6e885868020366e2c35fed8ec30e12e72caedd src/models/components/platformchatinputmessage.ts: id: 3cfc29b0d268 - last_write_checksum: sha1:ba47789eb4bbfeb9dc0feff4260356055f0a7f34 - pristine_git_object: da49aa3156b037cd030ffe66e790eb5a7fe889b5 + last_write_checksum: sha1:469269643f005fe9038eb96ce7122acc34a9795e + pristine_git_object: 1705d965980a233631e8aa0cfadc750cbf2bc92f src/models/components/platformchatoutputmessage.ts: id: 99912ae2c54e - last_write_checksum: sha1:8f30a5f45d3058526c60b7270ab444c69e11b442 - pristine_git_object: e41dd6cc287fe81c1d608d3d1374f91e6d6f4e7b + last_write_checksum: sha1:a318403ec231b9664f318bcbd1f9d9238f303cfc + pristine_git_object: ee68330ac7c2f750966d893ff0c78b60a2557191 src/models/components/platformchatoutputtextcontent.ts: id: aef245149405 - last_write_checksum: sha1:025d2b63a1f0b2a5929a7fd816099dd1293fd29b - pristine_git_object: bb581df8fa4b17ab5105d1ea93de48c46d0ec3de + last_write_checksum: sha1:a5dbe41374fc347e2fb7d79844128425c5c098d6 + pristine_git_object: fef0736f1c1e63f44de0703246d5c2aca6967850 src/models/components/platformchatpersonsource.ts: id: 9e78924ff10b - last_write_checksum: sha1:881a05d0af5fc4770c2b417f1cb725401887b1b6 - pristine_git_object: e66acd0b65bf28058c804ae1564ad88f197d79e7 + last_write_checksum: sha1:f608b07ee19e0664c38522eec26e1a2d9bb710b4 + pristine_git_object: c511516f18e18546246bed2515cfc79a33fabeb3 src/models/components/platformcontenttype.ts: id: 982868bad9f7 last_write_checksum: sha1:6c16562e35fae21b7912e35a923dffeeb85b3dc6 @@ -11128,8 +11128,8 @@ trackedFiles: pristine_git_object: 92389e58e4f328f45c10f8392ef9153534388b2b src/react-query/clientToolsGetToolServerTools.ts: id: 59c54074fd52 - last_write_checksum: sha1:9c5b7885dcc726415f40fe82b3adf6817d46f641 - pristine_git_object: 11ba5bb3b6878ff4d703866a809871c2cea6aa1d + last_write_checksum: sha1:ef50f55ab8300a415feb27483f690cb97ddc9334 + pristine_git_object: 773690b4a0c54a061c1ef65e6ebca378b1cb2489 src/react-query/clientToolsList.core.ts: id: 7370fc27f545 last_write_checksum: sha1:52921614fcb461fa356c5f9b2875f6943ff704c5 @@ -11592,12 +11592,12 @@ trackedFiles: pristine_git_object: a4ecf2ede22740e3ccd9b84253b0e065d934c916 src/sdk/skills.ts: id: 847667a72f83 - last_write_checksum: sha1:59c51e7e653207a3377940fc7b3b925381831595 - pristine_git_object: f6c835465ccc4e3af93185336aaccfad52ecff59 + last_write_checksum: sha1:3434ad19db266a076c9a63e24cc6d47c1c28d640 + pristine_git_object: fbf9360e159b3074695b85b443ddfee2d4c4fa63 src/sdk/tools.ts: id: f997ccdd9dd9 - last_write_checksum: sha1:6946d59c6ed6e6796ccad26cbe49fcde7ce5e8e2 - pristine_git_object: 8129bb1f350280b56270663737060f19048d0dce + last_write_checksum: sha1:009507b1db7f689bb70c99edfd79183f2bc6f9da + pristine_git_object: 806e62fd48e5f205be412051e12cab724271a6d2 src/sdk/verification.ts: id: 414a84063545 last_write_checksum: sha1:6b40cb828921b4db77d058738f5040885e6acf15 @@ -12799,7 +12799,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"}]} @@ -13084,6 +13084,7 @@ generatedTests: post_/api/index/v1/debug/{datasource}/documents: "2026-08-07T21:23:48Z" post_/api/index/v1/debug/{datasource}/document/events: "2026-08-07T21:23:48Z" post_/api/index/v1/debug/{datasource}/user: "2026-08-07T21:23:48Z" +releaseNotes: "## Typescript SDK Changes:\n* `glean.chat.create()`: \n * `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 473a7a5e1..4ad5a362e 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -35,7 +35,7 @@ generation: generateNewTests: true skipResponseBodyAssertions: true typescript: - version: 0.18.1 + version: 0.18.2 acceptHeaderEnum: true additionalDependencies: dependencies: {} diff --git a/.speakeasy/glean-merged-spec.yaml b/.speakeasy/glean-merged-spec.yaml index 1906bd1fe..f8e917246 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 97595ec6c..a50f4389b 100644 --- a/.speakeasy/tests.arazzo.yaml +++ b/.speakeasy/tests.arazzo.yaml @@ -164947,7 +164947,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 2e375b22e..90b7fa209 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 Glean Client API: @@ -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-typescript-code-samples - codeSamplesRevisionDigest: sha256:2a5a5baffaf2d176ab8a34a66631e4780357e2999769595146e8400d7dd87e06 + codeSamplesRevisionDigest: sha256:09ecf2b5d1417f76a411a8c6122eaa451dac50eff51923802e72958601a20a42 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index 461cb8c09..b9228b1b2 100644 --- a/README.md +++ b/README.md @@ -506,8 +506,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 43b84d973..2b898b648 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -848,4 +848,14 @@ Based on: ### Generated - [typescript v0.18.1] . ### Releases -- [NPM v0.18.1] https://www.npmjs.com/package/@gleanwork/api-client/v/0.18.1 - . \ No newline at end of file +- [NPM v0.18.1] https://www.npmjs.com/package/@gleanwork/api-client/v/0.18.1 - . + +## 2026-08-15 00:59:33 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.794.0 (2.930.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v0.18.2] . +### Releases +- [NPM v0.18.2] https://www.npmjs.com/package/@gleanwork/api-client/v/0.18.2 - . \ No newline at end of file diff --git a/docs/models/components/feedrequestcategory.md b/docs/models/components/feedrequestcategory.md index e5751cfd3..bdc9f8467 100644 --- a/docs/models/components/feedrequestcategory.md +++ b/docs/models/components/feedrequestcategory.md @@ -11,5 +11,5 @@ let value: FeedRequestCategory = "PLAN_MY_DAY"; ## Values ```typescript -"DOCUMENT_SUGGESTION" | "DOCUMENT_SUGGESTION_SCENARIO" | "TRENDING_DOCUMENT" | "VERIFICATION_REMINDER" | "EVENT" | "ANNOUNCEMENT" | "MENTION" | "DATASOURCE_AFFINITY" | "RECENT" | "COMPANY_RESOURCE" | "EXPERIMENTAL" | "PEOPLE_CELEBRATIONS" | "DISPLAYABLE_LIST" | "SOCIAL_LINK" | "EXTERNAL_TASKS" | "WORKFLOW_COLLECTIONS" | "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" +"DOCUMENT_SUGGESTION" | "DOCUMENT_SUGGESTION_SCENARIO" | "TRENDING_DOCUMENT" | "VERIFICATION_REMINDER" | "EVENT" | "ANNOUNCEMENT" | "MENTION" | "DATASOURCE_AFFINITY" | "RECENT" | "COMPANY_RESOURCE" | "EXPERIMENTAL" | "PEOPLE_CELEBRATIONS" | "DISPLAYABLE_LIST" | "SOCIAL_LINK" | "EXTERNAL_TASKS" | "WORKFLOW_COLLECTIONS" | "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" ``` \ No newline at end of file diff --git a/docs/models/components/feedresponse.md b/docs/models/components/feedresponse.md index 4dca9eb87..e0d78966c 100644 --- a/docs/models/components/feedresponse.md +++ b/docs/models/components/feedresponse.md @@ -9,7 +9,7 @@ let value: FeedResponse = { serverTimestamp: 603266, results: [ { - category: "EVENT", + category: "ANNOUNCEMENT", primaryEntry: { title: "", createdBy: { diff --git a/docs/models/components/feedresult.md b/docs/models/components/feedresult.md index 887a43f4d..e205a401a 100644 --- a/docs/models/components/feedresult.md +++ b/docs/models/components/feedresult.md @@ -6,7 +6,7 @@ import { FeedResult } from "@gleanwork/api-client/models/components"; let value: FeedResult = { - category: "CARD_STACK_PROMO", + category: "WEEKLY_MEETINGS", primaryEntry: { title: "", createdBy: { @@ -1228,10 +1228,10 @@ let value: FeedResult = { ## 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` | *number* | :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` | *number* | :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 e9d2d9253..36186d89c 100644 --- a/docs/models/components/feedresultcategory.md +++ b/docs/models/components/feedresultcategory.md @@ -15,5 +15,5 @@ let value: FeedResultCategory = "MEETING_PREP_AUTOMATION"; ## Values ```typescript -"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" | Unrecognized +"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" | Unrecognized ``` \ No newline at end of file diff --git a/docs/models/components/input.md b/docs/models/components/input.md index 96badd3b7..b45515ae4 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`. @@ -17,7 +17,7 @@ const value: string = ""; ```typescript const value: components.PlatformChatInputMessage[] = [ { - role: "user", + role: "USER", content: "", }, ]; diff --git a/docs/models/components/justificationtype.md b/docs/models/components/justificationtype.md index a2597f937..f84ca2f73 100644 --- a/docs/models/components/justificationtype.md +++ b/docs/models/components/justificationtype.md @@ -7,7 +7,7 @@ Type of the justification. ```typescript import { JustificationType } from "@gleanwork/api-client/models/components"; -let value: JustificationType = "ZERO_STATE_STATIC_WORKFLOW_SUGGESTION"; +let value: JustificationType = "ZERO_STATE_AGENT_SUGGESTION"; // Open enum: unrecognized values are captured as Unrecognized ``` @@ -15,5 +15,5 @@ let value: JustificationType = "ZERO_STATE_STATIC_WORKFLOW_SUGGESTION"; ## Values ```typescript -"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" | Unrecognized +"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" | Unrecognized ``` \ No newline at end of file diff --git a/docs/models/components/objectt.md b/docs/models/components/objectt.md index a05893b27..127074910 100644 --- a/docs/models/components/objectt.md +++ b/docs/models/components/objectt.md @@ -5,11 +5,11 @@ ```typescript import { ObjectT } from "@gleanwork/api-client/models/components"; -let value: ObjectT = "response"; +let value: ObjectT = "RESPONSE"; ``` ## Values ```typescript -"response" +"RESPONSE" ``` \ No newline at end of file diff --git a/docs/models/components/placementreason.md b/docs/models/components/placementreason.md index 041fac880..adf60a35e 100644 --- a/docs/models/components/placementreason.md +++ b/docs/models/components/placementreason.md @@ -1,13 +1,13 @@ # 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 ```typescript import { PlacementReason } from "@gleanwork/api-client/models/components"; -let value: PlacementReason = "PROMO"; +let value: PlacementReason = "PINNED"; // Open enum: unrecognized values are captured as Unrecognized ``` @@ -15,5 +15,5 @@ let value: PlacementReason = "PROMO"; ## Values ```typescript -"ORGANIC" | "PROMO" | Unrecognized +"ORGANIC" | "PROMO" | "PINNED" | Unrecognized ``` \ No newline at end of file diff --git a/docs/models/components/platformchatcitationannotation.md b/docs/models/components/platformchatcitationannotation.md index ca81ae7d7..780576748 100644 --- a/docs/models/components/platformchatcitationannotation.md +++ b/docs/models/components/platformchatcitationannotation.md @@ -6,7 +6,7 @@ import { PlatformChatCitationAnnotation } from "@gleanwork/api-client/models/components"; let value: PlatformChatCitationAnnotation = { - type: "citation", + type: "CITATION", sources: [], }; ``` diff --git a/docs/models/components/platformchatcitationannotationtype.md b/docs/models/components/platformchatcitationannotationtype.md index 431d1e87d..9e95ef86a 100644 --- a/docs/models/components/platformchatcitationannotationtype.md +++ b/docs/models/components/platformchatcitationannotationtype.md @@ -5,11 +5,11 @@ ```typescript import { PlatformChatCitationAnnotationType } from "@gleanwork/api-client/models/components"; -let value: PlatformChatCitationAnnotationType = "citation"; +let value: PlatformChatCitationAnnotationType = "CITATION"; ``` ## Values ```typescript -"citation" +"CITATION" ``` \ No newline at end of file diff --git a/docs/models/components/platformchatcitationsource.md b/docs/models/components/platformchatcitationsource.md index 9a241d45d..5935ba186 100644 --- a/docs/models/components/platformchatcitationsource.md +++ b/docs/models/components/platformchatcitationsource.md @@ -9,7 +9,7 @@ Four-variant citation source union. ```typescript const value: components.PlatformChatDocumentSource = { - type: "document", + type: "DOCUMENT", document_id: "", }; ``` @@ -18,7 +18,7 @@ const value: components.PlatformChatDocumentSource = { ```typescript const value: components.PlatformChatPersonSource = { - type: "person", + type: "PERSON", person_id: "", }; ``` @@ -27,7 +27,7 @@ const value: components.PlatformChatPersonSource = { ```typescript const value: components.PlatformChatFileSource = { - type: "file", + type: "FILE", file_id: "", }; ``` @@ -36,7 +36,7 @@ const value: components.PlatformChatFileSource = { ```typescript const value: components.PlatformChatCustomEntitySource = { - type: "custom_entity", + type: "CUSTOM_ENTITY", entity_id: "", }; ``` diff --git a/docs/models/components/platformchatcompletedresponse.md b/docs/models/components/platformchatcompletedresponse.md index 4112c465b..532606ea1 100644 --- a/docs/models/components/platformchatcompletedresponse.md +++ b/docs/models/components/platformchatcompletedresponse.md @@ -7,13 +7,13 @@ import { PlatformChatCompletedResponse } from "@gleanwork/api-client/models/comp let value: PlatformChatCompletedResponse = { id: "", - object: "response", + object: "RESPONSE", created_at: new Date("2024-01-21T06:04:05.713Z"), - status: "completed", + status: "COMPLETED", output: [ { - type: "message", - role: "assistant", + type: "MESSAGE", + role: "ASSISTANT", content: [], }, ], diff --git a/docs/models/components/platformchatcompletedresponsestatus.md b/docs/models/components/platformchatcompletedresponsestatus.md index 2ccfe44a3..515cc88fa 100644 --- a/docs/models/components/platformchatcompletedresponsestatus.md +++ b/docs/models/components/platformchatcompletedresponsestatus.md @@ -5,11 +5,11 @@ ```typescript import { PlatformChatCompletedResponseStatus } from "@gleanwork/api-client/models/components"; -let value: PlatformChatCompletedResponseStatus = "completed"; +let value: PlatformChatCompletedResponseStatus = "COMPLETED"; ``` ## Values ```typescript -"completed" +"COMPLETED" ``` \ No newline at end of file diff --git a/docs/models/components/platformchatcreaterequest.md b/docs/models/components/platformchatcreaterequest.md index 867b1327a..12abbb633 100644 --- a/docs/models/components/platformchatcreaterequest.md +++ b/docs/models/components/platformchatcreaterequest.md @@ -14,7 +14,7 @@ let value: PlatformChatCreateRequest = { | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | -| `input` | *components.Input* | :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* | :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` | *boolean* | :heavy_minus_sign: | When true, respond with `text/event-stream`. When false or omitted, respond with `application/json`.
| | `store` | *boolean* | :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/platformchatcustomentitysource.md b/docs/models/components/platformchatcustomentitysource.md index b47aaca79..fcf4eebaf 100644 --- a/docs/models/components/platformchatcustomentitysource.md +++ b/docs/models/components/platformchatcustomentitysource.md @@ -6,7 +6,7 @@ import { PlatformChatCustomEntitySource } from "@gleanwork/api-client/models/components"; let value: PlatformChatCustomEntitySource = { - type: "custom_entity", + type: "CUSTOM_ENTITY", entity_id: "", }; ``` diff --git a/docs/models/components/platformchatcustomentitysourcetype.md b/docs/models/components/platformchatcustomentitysourcetype.md index 3d4c97aa1..8f4d9728e 100644 --- a/docs/models/components/platformchatcustomentitysourcetype.md +++ b/docs/models/components/platformchatcustomentitysourcetype.md @@ -5,11 +5,11 @@ ```typescript import { PlatformChatCustomEntitySourceType } from "@gleanwork/api-client/models/components"; -let value: PlatformChatCustomEntitySourceType = "custom_entity"; +let value: PlatformChatCustomEntitySourceType = "CUSTOM_ENTITY"; ``` ## Values ```typescript -"custom_entity" +"CUSTOM_ENTITY" ``` \ No newline at end of file diff --git a/docs/models/components/platformchatdocumentsource.md b/docs/models/components/platformchatdocumentsource.md index 5eb3a135b..8edc0e215 100644 --- a/docs/models/components/platformchatdocumentsource.md +++ b/docs/models/components/platformchatdocumentsource.md @@ -7,7 +7,7 @@ ```typescript const value: components.PlatformChatDocumentSourceDocument1 = { - type: "document", + type: "DOCUMENT", document_id: "", }; ``` @@ -16,7 +16,7 @@ const value: components.PlatformChatDocumentSourceDocument1 = { ```typescript const value: components.PlatformChatDocumentSourceDocument2 = { - type: "document", + type: "DOCUMENT", url: "https://webbed-cross-contamination.info", }; ``` diff --git a/docs/models/components/platformchatdocumentsourcedocument1.md b/docs/models/components/platformchatdocumentsourcedocument1.md index 1fc3303b7..19719d431 100644 --- a/docs/models/components/platformchatdocumentsourcedocument1.md +++ b/docs/models/components/platformchatdocumentsourcedocument1.md @@ -6,7 +6,7 @@ import { PlatformChatDocumentSourceDocument1 } from "@gleanwork/api-client/models/components"; let value: PlatformChatDocumentSourceDocument1 = { - type: "document", + type: "DOCUMENT", document_id: "", }; ``` diff --git a/docs/models/components/platformchatdocumentsourcedocument2.md b/docs/models/components/platformchatdocumentsourcedocument2.md index 6a2e15b10..f15d0ca3f 100644 --- a/docs/models/components/platformchatdocumentsourcedocument2.md +++ b/docs/models/components/platformchatdocumentsourcedocument2.md @@ -6,7 +6,7 @@ import { PlatformChatDocumentSourceDocument2 } from "@gleanwork/api-client/models/components"; let value: PlatformChatDocumentSourceDocument2 = { - type: "document", + type: "DOCUMENT", url: "https://webbed-cross-contamination.info", }; ``` diff --git a/docs/models/components/platformchatdocumentsourcetype1.md b/docs/models/components/platformchatdocumentsourcetype1.md index eeb86693b..5ee11e078 100644 --- a/docs/models/components/platformchatdocumentsourcetype1.md +++ b/docs/models/components/platformchatdocumentsourcetype1.md @@ -5,11 +5,11 @@ ```typescript import { PlatformChatDocumentSourceType1 } from "@gleanwork/api-client/models/components"; -let value: PlatformChatDocumentSourceType1 = "document"; +let value: PlatformChatDocumentSourceType1 = "DOCUMENT"; ``` ## Values ```typescript -"document" +"DOCUMENT" ``` \ No newline at end of file diff --git a/docs/models/components/platformchatdocumentsourcetype2.md b/docs/models/components/platformchatdocumentsourcetype2.md index 7dfc5ae26..e09115c45 100644 --- a/docs/models/components/platformchatdocumentsourcetype2.md +++ b/docs/models/components/platformchatdocumentsourcetype2.md @@ -5,11 +5,11 @@ ```typescript import { PlatformChatDocumentSourceType2 } from "@gleanwork/api-client/models/components"; -let value: PlatformChatDocumentSourceType2 = "document"; +let value: PlatformChatDocumentSourceType2 = "DOCUMENT"; ``` ## Values ```typescript -"document" +"DOCUMENT" ``` \ No newline at end of file diff --git a/docs/models/components/platformchatfilesource.md b/docs/models/components/platformchatfilesource.md index fabd2c2c0..f2b29054c 100644 --- a/docs/models/components/platformchatfilesource.md +++ b/docs/models/components/platformchatfilesource.md @@ -6,7 +6,7 @@ import { PlatformChatFileSource } from "@gleanwork/api-client/models/components"; let value: PlatformChatFileSource = { - type: "file", + type: "FILE", file_id: "", }; ``` diff --git a/docs/models/components/platformchatfilesourcetype.md b/docs/models/components/platformchatfilesourcetype.md index 5b838dd93..94501dd9e 100644 --- a/docs/models/components/platformchatfilesourcetype.md +++ b/docs/models/components/platformchatfilesourcetype.md @@ -5,11 +5,11 @@ ```typescript import { PlatformChatFileSourceType } from "@gleanwork/api-client/models/components"; -let value: PlatformChatFileSourceType = "file"; +let value: PlatformChatFileSourceType = "FILE"; ``` ## Values ```typescript -"file" +"FILE" ``` \ No newline at end of file diff --git a/docs/models/components/platformchatinputmessage.md b/docs/models/components/platformchatinputmessage.md index 0f2877e47..09e5bde52 100644 --- a/docs/models/components/platformchatinputmessage.md +++ b/docs/models/components/platformchatinputmessage.md @@ -6,7 +6,7 @@ import { PlatformChatInputMessage } from "@gleanwork/api-client/models/components"; let value: PlatformChatInputMessage = { - role: "user", + role: "USER", content: "", }; ``` diff --git a/docs/models/components/platformchatinputmessagerole.md b/docs/models/components/platformchatinputmessagerole.md index ec35150fd..137d0c860 100644 --- a/docs/models/components/platformchatinputmessagerole.md +++ b/docs/models/components/platformchatinputmessagerole.md @@ -5,11 +5,11 @@ ```typescript import { PlatformChatInputMessageRole } from "@gleanwork/api-client/models/components"; -let value: PlatformChatInputMessageRole = "user"; +let value: PlatformChatInputMessageRole = "USER"; ``` ## Values ```typescript -"user" | "assistant" +"USER" | "ASSISTANT" ``` \ No newline at end of file diff --git a/docs/models/components/platformchatoutputmessage.md b/docs/models/components/platformchatoutputmessage.md index 5d489223e..2e54ec787 100644 --- a/docs/models/components/platformchatoutputmessage.md +++ b/docs/models/components/platformchatoutputmessage.md @@ -6,8 +6,8 @@ import { PlatformChatOutputMessage } from "@gleanwork/api-client/models/components"; let value: PlatformChatOutputMessage = { - type: "message", - role: "assistant", + type: "MESSAGE", + role: "ASSISTANT", content: [], }; ``` diff --git a/docs/models/components/platformchatoutputmessagerole.md b/docs/models/components/platformchatoutputmessagerole.md index 117fb3c6c..9a34c0b72 100644 --- a/docs/models/components/platformchatoutputmessagerole.md +++ b/docs/models/components/platformchatoutputmessagerole.md @@ -5,11 +5,11 @@ ```typescript import { PlatformChatOutputMessageRole } from "@gleanwork/api-client/models/components"; -let value: PlatformChatOutputMessageRole = "assistant"; +let value: PlatformChatOutputMessageRole = "ASSISTANT"; ``` ## Values ```typescript -"assistant" +"ASSISTANT" ``` \ No newline at end of file diff --git a/docs/models/components/platformchatoutputmessagetype.md b/docs/models/components/platformchatoutputmessagetype.md index d5a2d1b69..c8d864be2 100644 --- a/docs/models/components/platformchatoutputmessagetype.md +++ b/docs/models/components/platformchatoutputmessagetype.md @@ -5,11 +5,11 @@ ```typescript import { PlatformChatOutputMessageType } from "@gleanwork/api-client/models/components"; -let value: PlatformChatOutputMessageType = "message"; +let value: PlatformChatOutputMessageType = "MESSAGE"; ``` ## Values ```typescript -"message" +"MESSAGE" ``` \ No newline at end of file diff --git a/docs/models/components/platformchatoutputtextcontent.md b/docs/models/components/platformchatoutputtextcontent.md index a1dcabf4a..9f1c7036a 100644 --- a/docs/models/components/platformchatoutputtextcontent.md +++ b/docs/models/components/platformchatoutputtextcontent.md @@ -6,7 +6,7 @@ import { PlatformChatOutputTextContent } from "@gleanwork/api-client/models/components"; let value: PlatformChatOutputTextContent = { - type: "output_text", + type: "OUTPUT_TEXT", text: "", }; ``` diff --git a/docs/models/components/platformchatoutputtextcontenttype.md b/docs/models/components/platformchatoutputtextcontenttype.md index 7e0207d7c..a99d06bd8 100644 --- a/docs/models/components/platformchatoutputtextcontenttype.md +++ b/docs/models/components/platformchatoutputtextcontenttype.md @@ -5,11 +5,11 @@ ```typescript import { PlatformChatOutputTextContentType } from "@gleanwork/api-client/models/components"; -let value: PlatformChatOutputTextContentType = "output_text"; +let value: PlatformChatOutputTextContentType = "OUTPUT_TEXT"; ``` ## Values ```typescript -"output_text" +"OUTPUT_TEXT" ``` \ No newline at end of file diff --git a/docs/models/components/platformchatpersonsource.md b/docs/models/components/platformchatpersonsource.md index 24526a8a2..e1689b9c8 100644 --- a/docs/models/components/platformchatpersonsource.md +++ b/docs/models/components/platformchatpersonsource.md @@ -6,7 +6,7 @@ import { PlatformChatPersonSource } from "@gleanwork/api-client/models/components"; let value: PlatformChatPersonSource = { - type: "person", + type: "PERSON", person_id: "", }; ``` diff --git a/docs/models/components/platformchatpersonsourcetype.md b/docs/models/components/platformchatpersonsourcetype.md index 79762d525..0a80c33b4 100644 --- a/docs/models/components/platformchatpersonsourcetype.md +++ b/docs/models/components/platformchatpersonsourcetype.md @@ -5,11 +5,11 @@ ```typescript import { PlatformChatPersonSourceType } from "@gleanwork/api-client/models/components"; -let value: PlatformChatPersonSourceType = "person"; +let value: PlatformChatPersonSourceType = "PERSON"; ``` ## Values ```typescript -"person" +"PERSON" ``` \ No newline at end of file diff --git a/docs/models/operations/platformchatcreateresponse.md b/docs/models/operations/platformchatcreateresponse.md index 2772585cc..d5d70fb1b 100644 --- a/docs/models/operations/platformchatcreateresponse.md +++ b/docs/models/operations/platformchatcreateresponse.md @@ -8,13 +8,13 @@ ```typescript const value: components.PlatformChatCompletedResponse = { id: "", - object: "response", + object: "RESPONSE", created_at: new Date("2024-01-21T06:04:05.713Z"), - status: "completed", + status: "COMPLETED", output: [ { - type: "message", - role: "assistant", + type: "MESSAGE", + role: "ASSISTANT", content: [], }, ], diff --git a/docs/sdks/skills/README.md b/docs/sdks/skills/README.md index 2634c0a6b..4231043fb 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 @@ -215,25 +215,26 @@ import { | errors.PlatformProblemDetailError | 500, 503 | application/problem+json | | errors.GleanError | 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 - + ```typescript import { Glean } from "@gleanwork/api-client"; -import { openAsBlob } from "node:fs"; const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", }); async function run() { - const result = await glean.skills.validate({ - file: await openAsBlob("example.file"), + const result = await glean.skills.import({ + source_urls: [ + "", + ], }); console.log(result); @@ -248,8 +249,7 @@ The standalone function version of this method: ```typescript import { GleanCore } from "@gleanwork/api-client/core.js"; -import { skillsValidate } from "@gleanwork/api-client/funcs/skillsValidate.js"; -import { openAsBlob } from "node:fs"; +import { skillsImport } from "@gleanwork/api-client/funcs/skillsImport.js"; // Use `GleanCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -258,14 +258,16 @@ const glean = new GleanCore({ }); async function run() { - const res = await skillsValidate(glean, { - file: await openAsBlob("example.file"), + const res = await skillsImport(glean, { + source_urls: [ + "", + ], }); if (res.ok) { const { value: result } = res; console.log(result); } else { - console.log("skillsValidate failed:", res.error); + console.log("skillsImport failed:", res.error); } } @@ -285,51 +287,50 @@ associated utilities. ```tsx import { // Mutation hook for triggering the API call. - useSkillsValidateMutation -} from "@gleanwork/api-client/react-query/skillsValidate.js"; + useSkillsImportMutation +} from "@gleanwork/api-client/react-query/skillsImport.js"; ``` ### Parameters | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [components.PlatformSkillValidationRequest](../../models/components/platformskillvalidationrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [components.PlatformSkillImportRequest](../../models/components/platformskillimportrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[components.PlatformSkillValidationResponse](../../models/components/platformskillvalidationresponse.md)\>** +**Promise\<[components.PlatformSkillImportResponse](../../models/components/platformskillimportresponse.md)\>** ### Errors | Error Type | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | -| errors.PlatformProblemDetailError | 400, 401, 403, 404, 408, 413, 429 | application/problem+json | +| errors.PlatformProblemDetailError | 400, 401, 403, 408, 409, 413, 429 | application/problem+json | | errors.PlatformProblemDetailError | 500, 503 | application/problem+json | | errors.GleanError | 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 - + ```typescript import { Glean } from "@gleanwork/api-client"; +import { openAsBlob } from "node:fs"; const glean = new Glean({ apiToken: process.env["GLEAN_API_TOKEN"] ?? "", }); async function run() { - const result = await glean.skills.import({ - source_urls: [ - "", - ], + const result = await glean.skills.validate({ + file: await openAsBlob("example.file"), }); console.log(result); @@ -344,7 +345,8 @@ The standalone function version of this method: ```typescript import { GleanCore } from "@gleanwork/api-client/core.js"; -import { skillsImport } from "@gleanwork/api-client/funcs/skillsImport.js"; +import { skillsValidate } from "@gleanwork/api-client/funcs/skillsValidate.js"; +import { openAsBlob } from "node:fs"; // Use `GleanCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -353,16 +355,14 @@ const glean = new GleanCore({ }); async function run() { - const res = await skillsImport(glean, { - source_urls: [ - "", - ], + const res = await skillsValidate(glean, { + file: await openAsBlob("example.file"), }); if (res.ok) { const { value: result } = res; console.log(result); } else { - console.log("skillsImport failed:", res.error); + console.log("skillsValidate failed:", res.error); } } @@ -382,28 +382,28 @@ associated utilities. ```tsx import { // Mutation hook for triggering the API call. - useSkillsImportMutation -} from "@gleanwork/api-client/react-query/skillsImport.js"; + useSkillsValidateMutation +} from "@gleanwork/api-client/react-query/skillsValidate.js"; ``` ### Parameters | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [components.PlatformSkillImportRequest](../../models/components/platformskillimportrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [components.PlatformSkillValidationRequest](../../models/components/platformskillvalidationrequest.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[components.PlatformSkillImportResponse](../../models/components/platformskillimportresponse.md)\>** +**Promise\<[components.PlatformSkillValidationResponse](../../models/components/platformskillvalidationresponse.md)\>** ### Errors | Error Type | Status Code | Content Type | | --------------------------------- | --------------------------------- | --------------------------------- | -| errors.PlatformProblemDetailError | 400, 401, 403, 408, 409, 413, 429 | application/problem+json | +| errors.PlatformProblemDetailError | 400, 401, 403, 404, 408, 413, 429 | application/problem+json | | errors.PlatformProblemDetailError | 500, 503 | application/problem+json | | errors.GleanError | 4XX, 5XX | \*/\* | diff --git a/docs/sdks/tools/README.md b/docs/sdks/tools/README.md index ebf0e4ed4..bed0af9a4 100644 --- a/docs/sdks/tools/README.md +++ b/docs/sdks/tools/README.md @@ -609,14 +609,15 @@ import { ## 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/examples/package-lock.json b/examples/package-lock.json index 401e001e3..f84096c04 100644 --- a/examples/package-lock.json +++ b/examples/package-lock.json @@ -18,7 +18,7 @@ }, "..": { "name": "@gleanwork/api-client", - "version": "0.18.1", + "version": "0.18.2", "dependencies": { "zod": "^3.25.0 || ^4.0.0" }, diff --git a/jsr.json b/jsr.json index 6252229ac..da338064d 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@gleanwork/api-client", - "version": "0.18.1", + "version": "0.18.2", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index 8854c02ff..8069bf45c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@gleanwork/api-client", - "version": "0.18.1", + "version": "0.18.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@gleanwork/api-client", - "version": "0.18.1", + "version": "0.18.2", "dependencies": { "zod": "^3.25.0 || ^4.0.0" }, diff --git a/package.json b/package.json index 1aa7344f7..aaed98991 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@gleanwork/api-client", - "version": "0.18.1", + "version": "0.18.2", "author": "Speakeasy", "tshy": { "sourceDialects": [ diff --git a/src/__tests__/messages.test.ts b/src/__tests__/messages.test.ts index 41c0b3c93..12904134b 100644 --- a/src/__tests__/messages.test.ts +++ b/src/__tests__/messages.test.ts @@ -20,7 +20,7 @@ test("Messages Messages", async () => { idType: "CONVERSATION_ID", id: "", timestampMillis: 558834, - datasource: "GCHAT", + datasource: "MICROSOFTTEAMS", }); expect(result).toBeDefined(); }); diff --git a/src/__tests__/mockserver/internal/handler/pathpostrestapiv1getchat.go b/src/__tests__/mockserver/internal/handler/pathpostrestapiv1getchat.go index a7e16d16b..e2243868c 100644 --- a/src/__tests__/mockserver/internal/handler/pathpostrestapiv1getchat.go +++ b/src/__tests__/mockserver/internal/handler/pathpostrestapiv1getchat.go @@ -629,8 +629,8 @@ func testGetchatGetchat0(w http.ResponseWriter, req *http.Request) { Roles: []components.UserRoleSpecification{}, SourceDocumentSpec: types.Pointer(components.CreateDocumentSpecUnionDocumentSpec3( components.DocumentSpec3{ - UgcType: components.DocumentSpecUgcType1Announcements, - ContentID: 848009, + UgcType: components.DocumentSpecUgcType1Shortcuts, + ContentID: 602763, }, )), SourceType: components.AnswerSourceTypeAssistant.ToPointer(), diff --git a/src/__tests__/mockserver/internal/sdk/models/components/feedentry.go b/src/__tests__/mockserver/internal/sdk/models/components/feedentry.go index c10cf6160..5a52495bd 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/feedentry.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/feedentry.go @@ -115,6 +115,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 { @@ -241,6 +242,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/src/__tests__/mockserver/internal/sdk/models/components/feedrequest.go b/src/__tests__/mockserver/internal/sdk/models/components/feedrequest.go index 0a92f1062..a5f8b3a90 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/feedrequest.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/feedrequest.go @@ -56,6 +56,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 { @@ -156,6 +157,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/src/__tests__/mockserver/internal/sdk/models/components/feedresult.go b/src/__tests__/mockserver/internal/sdk/models/components/feedresult.go index a3066261f..7d221ae18 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/feedresult.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/feedresult.go @@ -57,6 +57,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 { @@ -157,6 +158,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: @@ -164,12 +167,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 { @@ -184,6 +188,8 @@ func (e *PlacementReason) UnmarshalJSON(data []byte) error { case "ORGANIC": fallthrough case "PROMO": + fallthrough + case "PINNED": *e = PlacementReason(v) return nil default: @@ -199,7 +205,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/src/__tests__/mockserver/internal/sdk/models/components/platformchatcitationannotation.go b/src/__tests__/mockserver/internal/sdk/models/components/platformchatcitationannotation.go index b0b9de0e9..792b81253 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/platformchatcitationannotation.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/platformchatcitationannotation.go @@ -12,7 +12,7 @@ import ( type PlatformChatCitationAnnotationType string const ( - PlatformChatCitationAnnotationTypeCitation PlatformChatCitationAnnotationType = "citation" + PlatformChatCitationAnnotationTypeCitation PlatformChatCitationAnnotationType = "CITATION" ) func (e PlatformChatCitationAnnotationType) ToPointer() *PlatformChatCitationAnnotationType { @@ -24,7 +24,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/src/__tests__/mockserver/internal/sdk/models/components/platformchatcompletedresponse.go b/src/__tests__/mockserver/internal/sdk/models/components/platformchatcompletedresponse.go index 9e0cdb0a5..ccc1ffa7e 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/platformchatcompletedresponse.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/platformchatcompletedresponse.go @@ -14,7 +14,7 @@ import ( type Object string const ( - ObjectResponse Object = "response" + ObjectResponse Object = "RESPONSE" ) func (e Object) ToPointer() *Object { @@ -26,7 +26,7 @@ func (e *Object) UnmarshalJSON(data []byte) error { return err } switch v { - case "response": + case "RESPONSE": *e = Object(v) return nil default: @@ -37,7 +37,7 @@ func (e *Object) UnmarshalJSON(data []byte) error { type PlatformChatCompletedResponseStatus string const ( - PlatformChatCompletedResponseStatusCompleted PlatformChatCompletedResponseStatus = "completed" + PlatformChatCompletedResponseStatusCompleted PlatformChatCompletedResponseStatus = "COMPLETED" ) func (e PlatformChatCompletedResponseStatus) ToPointer() *PlatformChatCompletedResponseStatus { @@ -49,7 +49,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/src/__tests__/mockserver/internal/sdk/models/components/platformchatcreaterequest.go b/src/__tests__/mockserver/internal/sdk/models/components/platformchatcreaterequest.go index 06561e4b8..204108288 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/platformchatcreaterequest.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/platformchatcreaterequest.go @@ -16,7 +16,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"` @@ -74,7 +74,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/src/__tests__/mockserver/internal/sdk/models/components/platformchatcustomentitysource.go b/src/__tests__/mockserver/internal/sdk/models/components/platformchatcustomentitysource.go index 1d41c6b64..def886172 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/platformchatcustomentitysource.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/platformchatcustomentitysource.go @@ -12,7 +12,7 @@ import ( type PlatformChatCustomEntitySourceType string const ( - PlatformChatCustomEntitySourceTypeCustomEntity PlatformChatCustomEntitySourceType = "custom_entity" + PlatformChatCustomEntitySourceTypeCustomEntity PlatformChatCustomEntitySourceType = "CUSTOM_ENTITY" ) func (e PlatformChatCustomEntitySourceType) ToPointer() *PlatformChatCustomEntitySourceType { @@ -24,7 +24,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/src/__tests__/mockserver/internal/sdk/models/components/platformchatdocumentsource.go b/src/__tests__/mockserver/internal/sdk/models/components/platformchatdocumentsource.go index 707be168d..3086e8358 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/platformchatdocumentsource.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/platformchatdocumentsource.go @@ -13,7 +13,7 @@ import ( type PlatformChatDocumentSourceType2 string const ( - PlatformChatDocumentSourceType2Document PlatformChatDocumentSourceType2 = "document" + PlatformChatDocumentSourceType2Document PlatformChatDocumentSourceType2 = "DOCUMENT" ) func (e PlatformChatDocumentSourceType2) ToPointer() *PlatformChatDocumentSourceType2 { @@ -25,7 +25,7 @@ func (e *PlatformChatDocumentSourceType2) UnmarshalJSON(data []byte) error { return err } switch v { - case "document": + case "DOCUMENT": *e = PlatformChatDocumentSourceType2(v) return nil default: @@ -90,7 +90,7 @@ func (o *PlatformChatDocumentSourceDocument2) GetDatasource() *string { type PlatformChatDocumentSourceType1 string const ( - PlatformChatDocumentSourceType1Document PlatformChatDocumentSourceType1 = "document" + PlatformChatDocumentSourceType1Document PlatformChatDocumentSourceType1 = "DOCUMENT" ) func (e PlatformChatDocumentSourceType1) ToPointer() *PlatformChatDocumentSourceType1 { @@ -102,7 +102,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/src/__tests__/mockserver/internal/sdk/models/components/platformchatfilesource.go b/src/__tests__/mockserver/internal/sdk/models/components/platformchatfilesource.go index 69991a9a5..f1e39d695 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/platformchatfilesource.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/platformchatfilesource.go @@ -12,7 +12,7 @@ import ( type PlatformChatFileSourceType string const ( - PlatformChatFileSourceTypeFile PlatformChatFileSourceType = "file" + PlatformChatFileSourceTypeFile PlatformChatFileSourceType = "FILE" ) func (e PlatformChatFileSourceType) ToPointer() *PlatformChatFileSourceType { @@ -24,7 +24,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/src/__tests__/mockserver/internal/sdk/models/components/platformchatinputmessage.go b/src/__tests__/mockserver/internal/sdk/models/components/platformchatinputmessage.go index df2c424a9..27fa64cbf 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/platformchatinputmessage.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/platformchatinputmessage.go @@ -12,8 +12,8 @@ import ( type PlatformChatInputMessageRole string const ( - PlatformChatInputMessageRoleUser PlatformChatInputMessageRole = "user" - PlatformChatInputMessageRoleAssistant PlatformChatInputMessageRole = "assistant" + PlatformChatInputMessageRoleUser PlatformChatInputMessageRole = "USER" + PlatformChatInputMessageRoleAssistant PlatformChatInputMessageRole = "ASSISTANT" ) func (e PlatformChatInputMessageRole) ToPointer() *PlatformChatInputMessageRole { @@ -25,9 +25,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/src/__tests__/mockserver/internal/sdk/models/components/platformchatoutputmessage.go b/src/__tests__/mockserver/internal/sdk/models/components/platformchatoutputmessage.go index f02e9b2d2..a8a58d2ed 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/platformchatoutputmessage.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/platformchatoutputmessage.go @@ -11,7 +11,7 @@ import ( type PlatformChatOutputMessageType string const ( - PlatformChatOutputMessageTypeMessage PlatformChatOutputMessageType = "message" + PlatformChatOutputMessageTypeMessage PlatformChatOutputMessageType = "MESSAGE" ) func (e PlatformChatOutputMessageType) ToPointer() *PlatformChatOutputMessageType { @@ -23,7 +23,7 @@ func (e *PlatformChatOutputMessageType) UnmarshalJSON(data []byte) error { return err } switch v { - case "message": + case "MESSAGE": *e = PlatformChatOutputMessageType(v) return nil default: @@ -34,7 +34,7 @@ func (e *PlatformChatOutputMessageType) UnmarshalJSON(data []byte) error { type PlatformChatOutputMessageRole string const ( - PlatformChatOutputMessageRoleAssistant PlatformChatOutputMessageRole = "assistant" + PlatformChatOutputMessageRoleAssistant PlatformChatOutputMessageRole = "ASSISTANT" ) func (e PlatformChatOutputMessageRole) ToPointer() *PlatformChatOutputMessageRole { @@ -46,7 +46,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/src/__tests__/mockserver/internal/sdk/models/components/platformchatoutputtextcontent.go b/src/__tests__/mockserver/internal/sdk/models/components/platformchatoutputtextcontent.go index dc6e6121b..0cecacad8 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/platformchatoutputtextcontent.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/platformchatoutputtextcontent.go @@ -11,7 +11,7 @@ import ( type PlatformChatOutputTextContentType string const ( - PlatformChatOutputTextContentTypeOutputText PlatformChatOutputTextContentType = "output_text" + PlatformChatOutputTextContentTypeOutputText PlatformChatOutputTextContentType = "OUTPUT_TEXT" ) func (e PlatformChatOutputTextContentType) ToPointer() *PlatformChatOutputTextContentType { @@ -23,7 +23,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/src/__tests__/mockserver/internal/sdk/models/components/platformchatpersonsource.go b/src/__tests__/mockserver/internal/sdk/models/components/platformchatpersonsource.go index f27dcb814..a17cf3988 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/platformchatpersonsource.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/platformchatpersonsource.go @@ -12,7 +12,7 @@ import ( type PlatformChatPersonSourceType string const ( - PlatformChatPersonSourceTypePerson PlatformChatPersonSourceType = "person" + PlatformChatPersonSourceTypePerson PlatformChatPersonSourceType = "PERSON" ) func (e PlatformChatPersonSourceType) ToPointer() *PlatformChatPersonSourceType { @@ -24,7 +24,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/src/__tests__/summarize.test.ts b/src/__tests__/summarize.test.ts index 31b3a9b32..86678bfb9 100644 --- a/src/__tests__/summarize.test.ts +++ b/src/__tests__/summarize.test.ts @@ -19,12 +19,11 @@ test("Summarize Summarize", async () => { const result = await glean.client.documents.summarize({ documentSpecs: [ { - ugcType: "ANNOUNCEMENTS", + ugcType: "CHATS", ugcId: "", }, { - ugcType: "COLLECTIONS", - contentId: 885812, + url: "https://super-stay.net/", }, ], }); diff --git a/src/funcs/clientToolsGetToolServerTools.ts b/src/funcs/clientToolsGetToolServerTools.ts index fbe223783..b8b1e1533 100644 --- a/src/funcs/clientToolsGetToolServerTools.ts +++ b/src/funcs/clientToolsGetToolServerTools.ts @@ -32,14 +32,15 @@ import { Result } from "../types/fp.js"; * * @remarks * 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. */ export function clientToolsGetToolServerTools( client: GleanCore, diff --git a/src/lib/config.ts b/src/lib/config.ts index ff7af2e69..891c8cb60 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -73,8 +73,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "0.9.0", - sdkVersion: "0.18.1", - genVersion: "2.927.0", + sdkVersion: "0.18.2", + genVersion: "2.930.0", userAgent: - "speakeasy-sdk/typescript 0.18.1 2.927.0 0.9.0 @gleanwork/api-client", + "speakeasy-sdk/typescript 0.18.2 2.930.0 0.9.0 @gleanwork/api-client", } as const; diff --git a/src/models/components/feedentry.ts b/src/models/components/feedentry.ts index 3ca806ebe..155b1275b 100644 --- a/src/models/components/feedentry.ts +++ b/src/models/components/feedentry.ts @@ -124,6 +124,7 @@ export const JustificationType = { OooPlanner: "OOO_PLANNER", OooCatchUp: "OOO_CATCH_UP", AdminHealthCenter: "ADMIN_HEALTH_CENTER", + KnowledgeGap: "KNOWLEDGE_GAP", } as const; /** * Type of the justification. diff --git a/src/models/components/feedrequest.ts b/src/models/components/feedrequest.ts index a271ecf6a..187318ec6 100644 --- a/src/models/components/feedrequest.ts +++ b/src/models/components/feedrequest.ts @@ -62,6 +62,7 @@ export const FeedRequestCategory = { OooPlanner: "OOO_PLANNER", OooCatchUp: "OOO_CATCH_UP", AdminHealthCenter: "ADMIN_HEALTH_CENTER", + KnowledgeGap: "KNOWLEDGE_GAP", } as const; export type FeedRequestCategory = ClosedEnum; diff --git a/src/models/components/feedresult.ts b/src/models/components/feedresult.ts index 7733310af..f1ee4d4e7 100644 --- a/src/models/components/feedresult.ts +++ b/src/models/components/feedresult.ts @@ -60,6 +60,7 @@ export const FeedResultCategory = { OooPlanner: "OOO_PLANNER", OooCatchUp: "OOO_CATCH_UP", AdminHealthCenter: "ADMIN_HEALTH_CENTER", + KnowledgeGap: "KNOWLEDGE_GAP", } as const; /** * Category of the result, one of the requested categories in incoming request. @@ -67,14 +68,15 @@ export const FeedResultCategory = { export type FeedResultCategory = OpenEnum; /** - * 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). */ export const PlacementReason = { Organic: "ORGANIC", Promo: "PROMO", + Pinned: "PINNED", } as const; /** - * 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). */ export type PlacementReason = OpenEnum; @@ -93,7 +95,7 @@ export type FeedResult = { */ rank?: number | undefined; /** - * 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 | undefined; }; diff --git a/src/models/components/platformchatcitationannotation.ts b/src/models/components/platformchatcitationannotation.ts index b8211fba2..a9f2614a6 100644 --- a/src/models/components/platformchatcitationannotation.ts +++ b/src/models/components/platformchatcitationannotation.ts @@ -18,7 +18,7 @@ import { } from "./platformchatcitationsource.js"; export const PlatformChatCitationAnnotationType = { - Citation: "citation", + Citation: "CITATION", } as const; export type PlatformChatCitationAnnotationType = ClosedEnum< typeof PlatformChatCitationAnnotationType diff --git a/src/models/components/platformchatcompletedresponse.ts b/src/models/components/platformchatcompletedresponse.ts index 5dd8d1276..4bed5c1c3 100644 --- a/src/models/components/platformchatcompletedresponse.ts +++ b/src/models/components/platformchatcompletedresponse.ts @@ -14,12 +14,12 @@ import { } from "./platformchatoutputmessage.js"; export const ObjectT = { - Response: "response", + Response: "RESPONSE", } as const; export type ObjectT = ClosedEnum; export const PlatformChatCompletedResponseStatus = { - Completed: "completed", + Completed: "COMPLETED", } as const; export type PlatformChatCompletedResponseStatus = ClosedEnum< typeof PlatformChatCompletedResponseStatus diff --git a/src/models/components/platformchatcreaterequest.ts b/src/models/components/platformchatcreaterequest.ts index fbf81ebd4..05d89c055 100644 --- a/src/models/components/platformchatcreaterequest.ts +++ b/src/models/components/platformchatcreaterequest.ts @@ -11,7 +11,7 @@ import { } from "./platformchatinputmessage.js"; /** - * 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`. * * @remarks */ @@ -19,7 +19,7 @@ export type Input = string | Array; export type PlatformChatCreateRequest = { /** - * 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`. * * @remarks */ diff --git a/src/models/components/platformchatcustomentitysource.ts b/src/models/components/platformchatcustomentitysource.ts index f06bfe960..ae0d393f4 100644 --- a/src/models/components/platformchatcustomentitysource.ts +++ b/src/models/components/platformchatcustomentitysource.ts @@ -10,7 +10,7 @@ import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const PlatformChatCustomEntitySourceType = { - CustomEntity: "custom_entity", + CustomEntity: "CUSTOM_ENTITY", } as const; export type PlatformChatCustomEntitySourceType = ClosedEnum< typeof PlatformChatCustomEntitySourceType diff --git a/src/models/components/platformchatdocumentsource.ts b/src/models/components/platformchatdocumentsource.ts index 747b11f97..7de88e0ab 100644 --- a/src/models/components/platformchatdocumentsource.ts +++ b/src/models/components/platformchatdocumentsource.ts @@ -10,7 +10,7 @@ import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const PlatformChatDocumentSourceType2 = { - Document: "document", + Document: "DOCUMENT", } as const; export type PlatformChatDocumentSourceType2 = ClosedEnum< typeof PlatformChatDocumentSourceType2 @@ -25,7 +25,7 @@ export type PlatformChatDocumentSourceDocument2 = { }; export const PlatformChatDocumentSourceType1 = { - Document: "document", + Document: "DOCUMENT", } as const; export type PlatformChatDocumentSourceType1 = ClosedEnum< typeof PlatformChatDocumentSourceType1 diff --git a/src/models/components/platformchatfilesource.ts b/src/models/components/platformchatfilesource.ts index c38b0f471..1a6e88586 100644 --- a/src/models/components/platformchatfilesource.ts +++ b/src/models/components/platformchatfilesource.ts @@ -10,7 +10,7 @@ import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const PlatformChatFileSourceType = { - File: "file", + File: "FILE", } as const; export type PlatformChatFileSourceType = ClosedEnum< typeof PlatformChatFileSourceType diff --git a/src/models/components/platformchatinputmessage.ts b/src/models/components/platformchatinputmessage.ts index da49aa315..1705d9659 100644 --- a/src/models/components/platformchatinputmessage.ts +++ b/src/models/components/platformchatinputmessage.ts @@ -7,8 +7,8 @@ import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; export const PlatformChatInputMessageRole = { - User: "user", - Assistant: "assistant", + User: "USER", + Assistant: "ASSISTANT", } as const; export type PlatformChatInputMessageRole = ClosedEnum< typeof PlatformChatInputMessageRole diff --git a/src/models/components/platformchatoutputmessage.ts b/src/models/components/platformchatoutputmessage.ts index e41dd6cc2..ee68330ac 100644 --- a/src/models/components/platformchatoutputmessage.ts +++ b/src/models/components/platformchatoutputmessage.ts @@ -14,14 +14,14 @@ import { } from "./platformchatoutputtextcontent.js"; export const PlatformChatOutputMessageType = { - Message: "message", + Message: "MESSAGE", } as const; export type PlatformChatOutputMessageType = ClosedEnum< typeof PlatformChatOutputMessageType >; export const PlatformChatOutputMessageRole = { - Assistant: "assistant", + Assistant: "ASSISTANT", } as const; export type PlatformChatOutputMessageRole = ClosedEnum< typeof PlatformChatOutputMessageRole diff --git a/src/models/components/platformchatoutputtextcontent.ts b/src/models/components/platformchatoutputtextcontent.ts index bb581df8f..fef0736f1 100644 --- a/src/models/components/platformchatoutputtextcontent.ts +++ b/src/models/components/platformchatoutputtextcontent.ts @@ -14,7 +14,7 @@ import { } from "./platformchatcitationannotation.js"; export const PlatformChatOutputTextContentType = { - OutputText: "output_text", + OutputText: "OUTPUT_TEXT", } as const; export type PlatformChatOutputTextContentType = ClosedEnum< typeof PlatformChatOutputTextContentType diff --git a/src/models/components/platformchatpersonsource.ts b/src/models/components/platformchatpersonsource.ts index e66acd0b6..c511516f1 100644 --- a/src/models/components/platformchatpersonsource.ts +++ b/src/models/components/platformchatpersonsource.ts @@ -10,7 +10,7 @@ import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export const PlatformChatPersonSourceType = { - Person: "person", + Person: "PERSON", } as const; export type PlatformChatPersonSourceType = ClosedEnum< typeof PlatformChatPersonSourceType diff --git a/src/react-query/clientToolsGetToolServerTools.ts b/src/react-query/clientToolsGetToolServerTools.ts index 11ba5bb3b..773690b4a 100644 --- a/src/react-query/clientToolsGetToolServerTools.ts +++ b/src/react-query/clientToolsGetToolServerTools.ts @@ -55,14 +55,15 @@ export type ClientToolsGetToolServerToolsQueryError = * * @remarks * 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. */ export function useClientToolsGetToolServerTools( serverId: string, @@ -92,14 +93,15 @@ export function useClientToolsGetToolServerTools( * * @remarks * 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. */ export function useClientToolsGetToolServerToolsSuspense( serverId: string, diff --git a/src/sdk/skills.ts b/src/sdk/skills.ts index f6c835465..fbf9360e1 100644 --- a/src/sdk/skills.ts +++ b/src/sdk/skills.ts @@ -65,16 +65,16 @@ export class Skills extends ClientSDK { } /** - * Validate skill bundle + * Import skills from GitHub * * @remarks - * 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. */ - async validate( - request: components.PlatformSkillValidationRequest, + async import( + request: components.PlatformSkillImportRequest, options?: RequestOptions, - ): Promise { - return unwrapAsync(skillsValidate( + ): Promise { + return unwrapAsync(skillsImport( this, request, options, @@ -82,16 +82,16 @@ export class Skills extends ClientSDK { } /** - * Import skills from GitHub + * Validate skill bundle * * @remarks - * 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. */ - async import( - request: components.PlatformSkillImportRequest, + async validate( + request: components.PlatformSkillValidationRequest, options?: RequestOptions, - ): Promise { - return unwrapAsync(skillsImport( + ): Promise { + return unwrapAsync(skillsValidate( this, request, options, diff --git a/src/sdk/tools.ts b/src/sdk/tools.ts index 8129bb1f3..806e62fd4 100644 --- a/src/sdk/tools.ts +++ b/src/sdk/tools.ts @@ -141,14 +141,15 @@ export class Tools extends ClientSDK { * * @remarks * 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. */ async getToolServerTools( serverId: string, From 0a70ba86200488b1445b2a4c4a76f332875260e4 Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Sat, 15 Aug 2026 01:07:49 +0000 Subject: [PATCH 2/2] empty commit to trigger [run-tests] workflow