From 9c85f962935a9bcc0caad8f6df908bd053faaa19 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 1 Sep 2026 09:16:05 +0000 Subject: [PATCH 1/2] ## Typescript SDK Changes: * `glean.client.chat.create()`: * `request.chatRequest.messages[].fragments[]` **Changed** * `response.messages[].fragments[]` **Changed** * `glean.client.chat.retrieve()`: `response.chatResult.chat.messages[].fragments[]` **Changed** * `glean.client.chat.createStream()`: * `request.chatRequest.messages[].fragments[]` **Changed** * `glean.client.agents.retrieve()`: **Deprecated** * `glean.client.agents.retrieveSchemas()`: **Deprecated** * `glean.client.agents.list()`: **Deprecated** * `glean.client.agents.runStream()`: **Deprecated** * `glean.client.agents.runStream()`: `error.authenticationSuggestions[].requestType.enum(sandboxEgress)` **Added** * `glean.client.agents.run()`: **Deprecated** * `glean.client.agents.run()`: `error.authenticationSuggestions[].requestType.enum(sandboxEgress)` **Added** --- .speakeasy/gen.lock | 210 +++++++++--------- .speakeasy/gen.yaml | 2 +- .speakeasy/glean-merged-spec.yaml | 143 +++++++++--- .speakeasy/tests.arazzo.yaml | 12 +- .speakeasy/workflow.lock | 12 +- README.md | 30 +-- RELEASES.md | 12 +- docs/models/components/chatmessagefragment.md | 22 +- docs/models/components/importagentrequest.md | 2 +- .../platformagentruncreaterequest.md | 7 +- .../components/platformchatcreaterequest.md | 2 +- .../components/platformsearchrequest.md | 16 +- .../components/platformskillimportrequest.md | 4 +- .../platformskillsourcepreviewrequest.md | 2 +- .../components/platformskillupdaterequest.md | 2 +- docs/models/components/servertoolrequest.md | 2 +- .../servertoolrequestrequesttype.md | 4 +- docs/models/components/servertoolresponse.md | 3 + .../servertoolresponserequesttype.md | 2 +- .../platformagentscreaterunrequest.md | 15 +- .../operations/platformskillsupdaterequest.md | 8 +- docs/sdks/agents/README.md | 28 ++- docs/sdks/chat/README.md | 4 +- docs/sdks/clientagents/README.md | 30 ++- docs/sdks/skills/README.md | 26 +-- examples/package-lock.json | 2 +- jsr.json | 2 +- package-lock.json | 4 +- package.json | 2 +- src/__tests__/agents.test.ts | 7 +- src/__tests__/chat.test.ts | 2 +- .../models/components/chatmessagefragment.go | 3 + .../models/components/importagentrequest.go | 2 +- .../models/components/servertoolrequest.go | 3 + .../models/components/servertoolresponse.go | 6 + src/__tests__/skills.test.ts | 6 +- src/__tests__/summarize.test.ts | 6 +- src/funcs/clientAgentsList.ts | 2 + src/funcs/clientAgentsRetrieve.ts | 2 + src/funcs/clientAgentsRetrieveSchemas.ts | 2 + src/funcs/clientAgentsRun.ts | 2 + src/funcs/clientAgentsRunStream.ts | 2 + src/lib/config.ts | 6 +- src/lib/encodings.ts | 81 +++++-- src/models/components/chatmessagefragment.ts | 3 + src/models/components/importagentrequest.ts | 2 +- src/models/components/servertoolrequest.ts | 4 + src/models/components/servertoolresponse.ts | 7 + src/react-query/clientAgentsList.ts | 2 + src/react-query/clientAgentsRetrieve.ts | 4 + .../clientAgentsRetrieveSchemas.ts | 4 + src/react-query/clientAgentsRun.ts | 2 + src/react-query/clientAgentsRunStream.ts | 2 + src/sdk/clientagents.ts | 10 + 54 files changed, 504 insertions(+), 278 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index afaa7c6d..57f1520f 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,19 +1,19 @@ lockVersion: 2.0.0 id: 664aaca5-a41f-4434-8f2a-642dba92fe68 management: - docChecksum: 89c2eac364945e9c2e201f80cb8a2d72 + docChecksum: 8dc95bfc7e332908fbcd5de1c6c86785 docVersion: 0.9.0 - speakeasyVersion: 1.795.1 - generationVersion: 2.932.9 - releaseVersion: 0.19.0 - configChecksum: 3876461a99417effa3db61451f57122f + speakeasyVersion: 1.796.2 + generationVersion: 2.933.0 + releaseVersion: 0.19.1 + configChecksum: b72b7943b8ed10928f271547d79a4705 repoURL: https://github.com/gleanwork/api-client-typescript.git installationURL: https://github.com/gleanwork/api-client-typescript published: true persistentEdits: - generation_id: 91c307c4-4c9a-40c2-add6-7c8f73937ed3 - pristine_commit_hash: afc8bd213982cc1ccbedce600cb69baaf8e9357a - pristine_tree_hash: 9e14ed05048c07c291629214f49b3b09deb54be9 + generation_id: c7cf0486-2997-41a1-baea-98825d4677ec + pristine_commit_hash: cfa4f2f40a4768989e123766ac954600b49377db + pristine_tree_hash: 7c3f00ff2dbc10df426d1978cb31717ec07db604 features: typescript: acceptHeaders: 2.81.2 @@ -21,7 +21,7 @@ features: additionalProperties: 0.1.4 callbacks: 1.0.1 constsAndDefaults: 0.1.14 - core: 3.31.5 + core: 3.31.6 defaultEnabledRetries: 0.1.0 deprecations: 2.81.1 devContainers: 2.90.1 @@ -474,8 +474,8 @@ trackedFiles: pristine_git_object: f4701c28f5249f995da4d701db07320527a82d9d docs/models/components/chatmessagefragment.md: id: 3a80e2474b95 - last_write_checksum: sha1:f7c2660eef91386e497ad0dbb1f00c9a48e4eed2 - pristine_git_object: 5b8986ca790bc8d42c5cc8ccbe3f0df764de6b04 + last_write_checksum: sha1:52ec87fe8171c91e96a5bae0898fe8ef20e2c731 + pristine_git_object: 78f1d87e309a5925be228b20ffb2cfc183b02e9f docs/models/components/chatmetadata.md: id: a42b157a4213 last_write_checksum: sha1:bb2b6ce7a0c20bde3e53f5363da113f82a750846 @@ -1502,8 +1502,8 @@ trackedFiles: pristine_git_object: 7f9084081847efe1a99100a7f9c104426d89e6b1 docs/models/components/importagentrequest.md: id: 1ee3f8dcd8a0 - last_write_checksum: sha1:b06d4de31552eb69ebe07c2a1e006208163824e7 - pristine_git_object: 5ccf2f4fa756799d96207990783add7cb1787b4d + last_write_checksum: sha1:4f66130e53e9216ce0776eeb2a7e527a11fbec9d + pristine_git_object: 1a345c5fc1d18f5fc299e0c51cb1c0616ca84041 docs/models/components/importagentresponse.md: id: edf01278294b last_write_checksum: sha1:b73d7750ef0b3daa4475c38193cc0a8173129154 @@ -1926,8 +1926,8 @@ trackedFiles: pristine_git_object: bd3f84687067c5539f9af71fff8f1896bb444cd9 docs/models/components/platformagentruncreaterequest.md: id: ad098fb679da - last_write_checksum: sha1:7b864cafc28a97e3ebc440e455b65c70d8425f85 - pristine_git_object: 97f6f64cb18e41690ac30a43124f74b0d9bbd66b + last_write_checksum: sha1:55242433b5d8011ba847a78aab9990d7b9b4f4d3 + pristine_git_object: ee9107237d2a564237cea6b0ce945524a8bf22bb docs/models/components/platformagentrunwaitresponse.md: id: 5a1e78680e6a last_write_checksum: sha1:1e06fbea33a12fa4c471d42869c6d3d14c83caad @@ -1974,8 +1974,8 @@ trackedFiles: pristine_git_object: 515cc88fa1c6f8ac6add2f20b51e155b85fc973e docs/models/components/platformchatcreaterequest.md: id: af3d88254add - last_write_checksum: sha1:e72d820c7a33012381b203eb3f4754245568bbd3 - pristine_git_object: 12abbb633d931554dfaf20d720dd4bb09934afa0 + last_write_checksum: sha1:385e87d6f684f94e0fff24800dc8c3e05d5d1316 + pristine_git_object: 099a50a0a72abec1e05e4fcd8b62a469f7fdb633 docs/models/components/platformchatcustomentitysource.md: id: c6cba9d9b3a1 last_write_checksum: sha1:37d54922b533c2b8d472dc889cf8e811a078ae39 @@ -2098,8 +2098,8 @@ trackedFiles: pristine_git_object: cc6c059e7c04f64bfe696ecfdd5dfb1f17ab7b7b docs/models/components/platformsearchrequest.md: id: 8636ff30ae76 - last_write_checksum: sha1:f48e2fc29b4ed1022d167ba1fb6a7ba7cb40d41d - pristine_git_object: a3b6b594cd6e0571e4e8c6c05d141315ef6c02fe + last_write_checksum: sha1:5f8e079b9766c7d42b923f7c268c1eaa9250a78a + pristine_git_object: 0f34f62e55253f65b82e67618d555a61d1a7e27d docs/models/components/platformsearchresponse.md: id: d398b8139176 last_write_checksum: sha1:4de3236979e371dbd60fb0bd495f86dad84d76ed @@ -2126,8 +2126,8 @@ trackedFiles: pristine_git_object: 01ba7d7a8885a08f4df2ea211b0ee8c9c10cab2c docs/models/components/platformskillimportrequest.md: id: 42dab4b2b069 - last_write_checksum: sha1:ef023acfa12136d7f6f3e2b686c968b7422822a4 - pristine_git_object: fb5594cb4d1c48f34c3ad74da4408a212e869c7a + last_write_checksum: sha1:2abc0d6dfe62913f30685ff6b1ca46bb4289cd7a + pristine_git_object: ed9ecc4e2a0a62bf07e69ff3c02231fa7088729c docs/models/components/platformskillimportresponse.md: id: e074ca989028 last_write_checksum: sha1:d332f56a39b8ccd393691bf5a74e74e4e6883dcd @@ -2158,8 +2158,8 @@ trackedFiles: pristine_git_object: 7a0ec949d69951dfc2bd73fce235bb3e36ca16f1 docs/models/components/platformskillsourcepreviewrequest.md: id: 4c73cb5f6bf5 - last_write_checksum: sha1:bcc158fc607b8993dd991748aa99872909e173ba - pristine_git_object: 005f74cb8666b4052aa5883ebe8f4568996c7252 + last_write_checksum: sha1:df12f515b138d7b5c043b8fae6dd387dac5288d3 + pristine_git_object: dda4c2d63d9cf9d2ad70d52bda66b55805f9d498 docs/models/components/platformskillsourcepreviewresponse.md: id: c042e21aa523 last_write_checksum: sha1:1dce6fdf671bf993f9409706587f3ee4cb520ea3 @@ -2186,8 +2186,8 @@ trackedFiles: pristine_git_object: 52ad9e9017bf515f7efb7ecd0a9485571c4feaf1 docs/models/components/platformskillupdaterequest.md: id: 7c7b69c95f16 - last_write_checksum: sha1:f684cbd3df9fd254b409c1a6a353ab9afc7f457a - pristine_git_object: 9d89f5e3a2b02220cbeba91cf9101a7245234220 + last_write_checksum: sha1:9c66c65908ee2ad9e66fc3b5b25e311d59d88271 + pristine_git_object: c89c21f0f46b2f4ac36527c04f09a246cdf4d45d docs/models/components/platformskillupdateresponse.md: id: 2c9b32e3f96a last_write_checksum: sha1:73d0ffe7c0bd128030a50e03cfb4793ca32dbc72 @@ -2610,20 +2610,20 @@ trackedFiles: pristine_git_object: 640b7cbccea6dd192982d768a3b37d9a6c2329c6 docs/models/components/servertoolrequest.md: id: 95bee62b6f75 - last_write_checksum: sha1:b2c91607018c4c8c402607e4b104af2bf7d5b24f - pristine_git_object: fb8ab7e66bed62390294c530abedd1be9a99adea + last_write_checksum: sha1:66f2a3e82f920858d896fb276c334ec6e33121ce + pristine_git_object: 928eb4d6a08180eee6ff8ab7dcab9db68563a77d docs/models/components/servertoolrequestrequesttype.md: id: bcc968a16a2d - last_write_checksum: sha1:e142bacf26820a792d73f5fe48b659da3f06a388 - pristine_git_object: cf0c4444c8c14a260e3cd12674ca8b7e85ffe6a0 + last_write_checksum: sha1:bc9a235acafd826f0a1d70b2d7280ee539cf7a71 + pristine_git_object: 995a430b8e7319cca3f0c9e42e176aea11324c7d docs/models/components/servertoolresponse.md: id: b6819298a903 - last_write_checksum: sha1:f607434c86bd96b16106d167bd866837dffc70c9 - pristine_git_object: 826a50f93feabe4aab4123a3dc1922eb14e44fee + last_write_checksum: sha1:cd99d277b76565b676137f81fc896a980ae31661 + pristine_git_object: f7f111e997a5276d64779cfac145ad1e33998329 docs/models/components/servertoolresponserequesttype.md: id: 6321435ecc96 - last_write_checksum: sha1:5282b38a73a08cf2e930dfc287a8cea5ade8409f - pristine_git_object: 42ab2a2881a5bd1bfa94165fd3b0ecea7a483ea4 + last_write_checksum: sha1:75a031e533cabd9571d8ddfdfc3d4d2d149797fd + pristine_git_object: 804b34b397c2aff8ceb2f41d1347c47fab9e8beb docs/models/components/sessioninfo.md: id: e292498adc48 last_write_checksum: sha1:70bc18aec0c470f4413256b399e6a6850c1a5210 @@ -3382,8 +3382,8 @@ trackedFiles: pristine_git_object: b9b5b9cefc7b634682286de2c11e7b7f375add80 docs/models/operations/platformagentscreaterunrequest.md: id: "388574933310" - last_write_checksum: sha1:76e09df932d8c2605beb88cff30d40aa93abfcf6 - pristine_git_object: dde34ad677f78c10b11e1941b8b1b1e18d19c02e + last_write_checksum: sha1:971cb9578bf2dcade57eec105051cf69ace1c29d + pristine_git_object: c23c378b321089d1da62c96b732cc184efa30d40 docs/models/operations/platformagentscreaterunresponse.md: id: aa686cb7fdf0 last_write_checksum: sha1:4c8a256e177c89489099936f7a7f1e8768f93eb3 @@ -3458,8 +3458,8 @@ trackedFiles: pristine_git_object: 5bc097e4fa7b6f0f737f86c55a4211e9ee4ddbf7 docs/models/operations/platformskillsupdaterequest.md: id: 0ecd8af8f701 - last_write_checksum: sha1:8b58b56477bd6f5fb4eab11b2ba3eb48d92c6978 - pristine_git_object: 7740772104f89ae3b723fadb59fad3ece476c0e0 + last_write_checksum: sha1:5bf37d81d9ed14716b52aadfe3d866e71b6541d9 + pristine_git_object: a05490d2a3cae794c3bbd0239bf63fbc884c65c9 docs/models/operations/platformtriggerpresetseventssearchrequest.md: id: e7975eb729f5 last_write_checksum: sha1:d288c2d1aa9cff9b673fb63624ebf3b5de1cc4ae @@ -3590,8 +3590,8 @@ trackedFiles: pristine_git_object: d660077d81220a7f0b093725c504fc9ed2db65ac docs/sdks/agents/README.md: id: 5965d8232fd8 - last_write_checksum: sha1:750d70d0410447e510e108c5bb0712732bd3199d - pristine_git_object: 0cee28a41cb969a4a367daf183a68e7baa75b55c + last_write_checksum: sha1:71582fbe56bc90f2e6e2fe6600e2a4394a5cfefc + pristine_git_object: 21e440ccd085b12b96c717c6863a5cb390dbeb4a docs/sdks/announcements/README.md: id: 3d2e130a217c last_write_checksum: sha1:9955e9b871a2deaa2c17cd1c92fb4d34f7e05138 @@ -3602,12 +3602,12 @@ trackedFiles: pristine_git_object: dbb0cc043da9d3b3fe0387ec06cad2212a5eda07 docs/sdks/chat/README.md: id: 393193527c2c - last_write_checksum: sha1:04c8b757c6657aa3d377ae9de07a0fa1cb9490a5 - pristine_git_object: aeb33e09ba70234f7ad92f14c7897a731cca1f24 + last_write_checksum: sha1:63481a766491091fd538eb1eec814408683d841b + pristine_git_object: 9e1f1791449f2a4620f690ecd80d7586d8ffac82 docs/sdks/clientagents/README.md: id: 8e00e6d6b64e - last_write_checksum: sha1:4b28c16dc7001a8e29e0128e1f336d7733c304c5 - pristine_git_object: 9d7df5f1fe267ae6b6ecee7e3bc8b4529ea97b2a + last_write_checksum: sha1:abbda5fa02447e90a47f933b543666bf94f3ed97 + pristine_git_object: 32b719ba42abc2f330d489ac44e74a82df952cb8 docs/sdks/clientauthentication/README.md: id: 463bffe80b61 last_write_checksum: sha1:0b8c84b99e08b362c6b1e3480aaf440e57312f91 @@ -3702,8 +3702,8 @@ trackedFiles: pristine_git_object: 2c29a709d3d1b54d4abef32fe9f29f6364bfee38 docs/sdks/skills/README.md: id: 3a14a5c90791 - last_write_checksum: sha1:ebc027c5eb4a9403ae43f51aa265913f87ae22e6 - pristine_git_object: 4231043fb363657a0098fca957fbd6e9316b028d + last_write_checksum: sha1:6029a46cdbe5069db3645e882102498354dd4a49 + pristine_git_object: bf28c8a8a030c0a43d6fc7eeac4f334fff2003a9 docs/sdks/tools/README.md: id: 044286549bac last_write_checksum: sha1:23fcbbfc0e1b9d89c8466b6313b5125e05cd5aa7 @@ -3746,20 +3746,20 @@ trackedFiles: pristine_git_object: 5a2797590d4be351d62915017d5b2a0f853537c8 jsr.json: id: 7f6ab7767282 - last_write_checksum: sha1:c9a44e99f3f94e80f0c4af0c835b7f2d94dcd700 - pristine_git_object: c1e678a6b35ff3ebd027d43c0cc257395bbdd528 + last_write_checksum: sha1:bef54fc1ffea253400e3cae175d6c1057f50bb2a + pristine_git_object: df343d1cc7e02126c9476e3b00d1591553cceabe package.json: id: 7030d0b2f71b - last_write_checksum: sha1:34878b705f494208a9fdc5f08791aa2d55396a74 - pristine_git_object: 9fb584bc8531716b2b3d07b9a869f12b06289581 + last_write_checksum: sha1:f88f55a77ddbb3bd34502dfef42ea1e90af2cf28 + pristine_git_object: eee7a9078dc566465479108f4f3b281dbca435a7 src/__tests__/activities.test.ts: id: 65fa859b8f59 last_write_checksum: sha1:756bc40095f4495bbf62739b8218bb4a559a24f2 pristine_git_object: b35dd997cba626160e8f3d19dde1b1a151e6ad85 src/__tests__/agents.test.ts: id: 3cec9af43334 - last_write_checksum: sha1:e6fbcfad2ef857eb873023b47a0f4aa0aaa069a4 - pristine_git_object: d8d0af0f398ecd6e6715e2fac2df561eb70507e4 + last_write_checksum: sha1:d4ac1946c581b57cec49a4aa26a7ef9e4b019ba7 + pristine_git_object: 36eba32b1aa82e1f302222c10a7064dc7f649343 src/__tests__/announcements.test.ts: id: 1fbbe739ff78 last_write_checksum: sha1:775233d320d0d015e40c78c7b6634e45c634d033 @@ -3778,8 +3778,8 @@ trackedFiles: pristine_git_object: fa4dad795dadc97500b9b2c5971bfc00b040b7e4 src/__tests__/chat.test.ts: id: bf83434eb7e7 - last_write_checksum: sha1:968a533943325314e4dab66a651fa46d5be0bbe4 - pristine_git_object: b901ea017dd34056fcac154bec1e5adddb77840d + last_write_checksum: sha1:8c3df1fe4fe7d023ed1b1418d3446edd950e9f46 + pristine_git_object: 4ddce49969c4a145890706e50ef440063bb5304b src/__tests__/clientactivity.test.ts: id: 763dd50c7493 last_write_checksum: sha1:ba2524258d92b2768d107c5f3492552e317ff471 @@ -4798,8 +4798,8 @@ trackedFiles: pristine_git_object: c16158a1c322aac37f3988f5eb53db95142baf87 src/__tests__/mockserver/internal/sdk/models/components/chatmessagefragment.go: id: 806280f88a1d - last_write_checksum: sha1:e511c8914162e172656e608a149ec42ef1faa16e - pristine_git_object: 19dbe6dd37be3d0f11a078e7d997597802c63814 + last_write_checksum: sha1:d3ed639ef19e3922c6162fed4f828ef58dd60d57 + pristine_git_object: a0814c39fb46506b52fb65279213ff18457606d3 src/__tests__/mockserver/internal/sdk/models/components/chatmetadata.go: id: d4ad2a2e0991 last_write_checksum: sha1:59e183df004b266c17828490a69c65ad678a61f0 @@ -5630,8 +5630,8 @@ trackedFiles: pristine_git_object: 2504638cc26a3510b0aeceb9ac8b174e21f83ba6 src/__tests__/mockserver/internal/sdk/models/components/importagentrequest.go: id: 280c7bb28d48 - last_write_checksum: sha1:0a4f3420c15ad7c2e76c53edd1bdb5b56c9b48ff - pristine_git_object: c9337d80c6a845bd0627b1e29be4a43cce2a77d6 + last_write_checksum: sha1:c004341a6d9627622f2445383e29cdcfb6f9eb04 + pristine_git_object: 9eb263e3ca2511b241148c8ced55b75bd0b29c5a src/__tests__/mockserver/internal/sdk/models/components/importagentresponse.go: id: 4ac1fabd7ccc last_write_checksum: sha1:df44c37210e5ab55702cb29fafa10e3f39173f21 @@ -6506,12 +6506,12 @@ trackedFiles: pristine_git_object: 490a00bac171c37c8f1a55635ad9f870d4656109 src/__tests__/mockserver/internal/sdk/models/components/servertoolrequest.go: id: 62ce1621a216 - last_write_checksum: sha1:6a9d6e987a86b6f288c89d180d5d64c53819925a - pristine_git_object: 6d1307d14dd202d2b6691926ea509f3d67c1529d + last_write_checksum: sha1:5c0814e6e9eeaf1f194ea8c1ce3b8f068057da77 + pristine_git_object: 1a9897e951ba96daa1a81d80afd3ff0a70214978 src/__tests__/mockserver/internal/sdk/models/components/servertoolresponse.go: id: cf8b2fc0477f - last_write_checksum: sha1:8cc20e92b203f0bd35c177f79006aa996942bc69 - pristine_git_object: 400f5e312960ad812eee5b597cc92bfcc5ba558b + last_write_checksum: sha1:2321fb9482a769bd6d45f040a10c398778ea6a11 + pristine_git_object: 9869ed21491d45bb3951b40a3cba0457a4be1a4f src/__tests__/mockserver/internal/sdk/models/components/sessioninfo.go: id: 0387d65bb59f last_write_checksum: sha1:86812f4e3027370093530009de4d7abbe457cffa @@ -7646,12 +7646,12 @@ trackedFiles: pristine_git_object: 7e6a25ad28e03b2bc7e9b9ec272d1b8424e81ae6 src/__tests__/skills.test.ts: id: 3fa6e540c659 - last_write_checksum: sha1:c7f95a262300a3e583901b25c90a4acd9b70b549 - pristine_git_object: b5a61d7417c6131b4dddc24bb19fcdd0f73f07d3 + last_write_checksum: sha1:84f9b02b6376707d515a2598c9a09f84db5f8d03 + pristine_git_object: 80853fce6d86d20766336fb2fd27c8669cd12ca8 src/__tests__/summarize.test.ts: id: 3105d6ebc7eb - last_write_checksum: sha1:bb2dba46f1d4304d8236c52e0355a53081ab6119 - pristine_git_object: bb5e2b02fd92c4bc218d0a791e8786a14448f109 + last_write_checksum: sha1:1c09a8b1c6b63d7438662477c6d40acaae2c6e9c + pristine_git_object: 4f1dff5dba79375e2f4ae404791c6e9094006af1 src/__tests__/testclient.ts: id: f142c080bff8 last_write_checksum: sha1:3a38647391f52221c009a9273eebf90793b3d430 @@ -7714,24 +7714,24 @@ trackedFiles: pristine_git_object: 31cb9f55e0695abcf8eee35d5ab102aac07a8500 src/funcs/clientAgentsList.ts: id: cdce1c4a05ef - last_write_checksum: sha1:67035cb3bfbdecd00497c452aa3dcd8ec5f03ed9 - pristine_git_object: e6e767a0ba007d0da08ede39b4afc03d85b236a9 + last_write_checksum: sha1:0017deca68b4e46978f5f2597f4e70ef9e47d9c3 + pristine_git_object: c91d8bb476e1c9dc3f1f0306b265bd06e8a25d58 src/funcs/clientAgentsRetrieve.ts: id: 5e4255c3b5de - last_write_checksum: sha1:98cd322e62ec5eed0f358f0728c64273e42a86d2 - pristine_git_object: 36efec1a866f694165aff57a23002114127aaa2d + last_write_checksum: sha1:94b5659268abfc0af107214b34cd8fe6153e6634 + pristine_git_object: 6e6cb660ae0ff1594d99cdee8a734d4c5b0d9821 src/funcs/clientAgentsRetrieveSchemas.ts: id: e1b3039050d8 - last_write_checksum: sha1:cf210b8447a44e631ef48d82894600fbc4abc3b4 - pristine_git_object: 360a292afd1ebaf530ce1856f897333a5efbf97a + last_write_checksum: sha1:856b28654d6ec65f225e4e7d7ec863872ee394df + pristine_git_object: 838c3dab3e4d41002b40cf888692b73ffda2393f src/funcs/clientAgentsRun.ts: id: "35597425e048" - last_write_checksum: sha1:3312ef37a9ef653a7b3dd0e71d4e6aebf80ea5cc - pristine_git_object: a84efdc66f4839135a210e24e674a1b76460519c + last_write_checksum: sha1:3382c76ddeb7165441746c195d7d6e020bba5e0f + pristine_git_object: 6e0d3a31df5d85f00c826003a406ca8913a5817a src/funcs/clientAgentsRunStream.ts: id: b94893e7a2f1 - last_write_checksum: sha1:f1643a4677013c2e8b23bfbc8e8fcbafde7aee3f - pristine_git_object: 712314203793103fec33cdd4511b3ce9baa76962 + last_write_checksum: sha1:aae1b887333d29f161eff210d13c709b81279e8b + pristine_git_object: c1a523810dd780153c61695d88d0253054e51ca8 src/funcs/clientAgentsUpdate.ts: id: 5143be254b1d last_write_checksum: sha1:2a50053ac63dde647c4a9ffcd0aa9fbe87a3cffe @@ -8362,12 +8362,12 @@ trackedFiles: pristine_git_object: 42d9739ab67c2fec0689f83777ffa5e1f875e5d5 src/lib/config.ts: id: 320761608fb3 - last_write_checksum: sha1:523b82c157c998a6fc7837d816c6f69f0be6c048 - pristine_git_object: a861dcf66edbeae34507526a6c4ddd79f06eccaa + last_write_checksum: sha1:667f5c3376b9363c74661489de9b2a7a49f69eb4 + pristine_git_object: b441535e64a3fd10efde9ef72366ec2dcbcd51ad src/lib/encodings.ts: id: 3bd8ead98afd - last_write_checksum: sha1:a74725064d06b6994b95873c037975d2f2e63467 - pristine_git_object: 49f15904923362434dfcdd02476c0487210d2f1a + last_write_checksum: sha1:d1917169abb226ccb0d2e93fd211a1d2987822b4 + pristine_git_object: fed425b4dfcc4e2cb0604570d4142c8d2fba2840 src/lib/env.ts: id: c52972a3b198 last_write_checksum: sha1:02e4ab0da51816bc062d2a91440dc0fe6c3f5f5b @@ -8702,8 +8702,8 @@ trackedFiles: pristine_git_object: e7abf8e424fcf187e328b98320a743cb7243adcb src/models/components/chatmessagefragment.ts: id: 6fea816fa63c - last_write_checksum: sha1:34e539d96bd8b8dc1743e941f1012312bd328dba - pristine_git_object: ca961cb4182f03758620e08279bfc0ee791b6023 + last_write_checksum: sha1:5563504ffcd40f5d4d5540c3f7026cf13c633fef + pristine_git_object: f88403f825a36799a2f0a93b3f964e9b2b91e922 src/models/components/chatmetadata.ts: id: 3b87493ed5f6 last_write_checksum: sha1:6e65ae6c02eb293080716cf0794241bd6a08253c @@ -9530,8 +9530,8 @@ trackedFiles: pristine_git_object: c1b51fb164e5fddc23f344a60899933a91902f4c src/models/components/importagentrequest.ts: id: 85de0a4396af - last_write_checksum: sha1:69066ea003dfc1a5537ed0b1fa1e601831144eec - pristine_git_object: 18f184cc5ca525092913f8221ec8facb057796ef + last_write_checksum: sha1:7f810a23e64131bc97d314dd126a994a2da4a001 + pristine_git_object: 096fbabf55c264bfbe0d1ca367bf3df792d60f15 src/models/components/importagentresponse.ts: id: d131f4a57b51 last_write_checksum: sha1:4180f4f0e81c606919b648d31aca1ecda62976b1 @@ -10410,12 +10410,12 @@ trackedFiles: pristine_git_object: e2d34ec114d85f4a20a1290d1ebaad3e83a0aaa1 src/models/components/servertoolrequest.ts: id: cac47cd90cd3 - last_write_checksum: sha1:6a5d90be2811239bb09f38a55b9ddbbc9fae54e9 - pristine_git_object: da86ece7aaa9c29780d241ea9132731861768e3b + last_write_checksum: sha1:86cba7da643600bcff44816d43fe58302451527c + pristine_git_object: e034149e17ce4285bc17f1aef12011f6c1d2eddd src/models/components/servertoolresponse.ts: id: 9d3c25ee1ce8 - last_write_checksum: sha1:af497e9cf5d2f39fb9dfe3dbfbe0a21eb6ed0d2f - pristine_git_object: 7b4fbbef71f4d809c56af7afa54a7d712e8906c0 + last_write_checksum: sha1:92fb97b29c1b4c628973e2a738381ad55a15433c + pristine_git_object: ed09f8839f0978638b7d3ea9a7710cc432ba410b src/models/components/sessioninfo.ts: id: cd59afe310c0 last_write_checksum: sha1:2d2346ffca4b94848678be33dd9896b223caeba9 @@ -11322,32 +11322,32 @@ trackedFiles: pristine_git_object: e018cd186f18f563fab7223dbff0445ea5c7eff0 src/react-query/clientAgentsList.ts: id: d74a1fba9fcc - last_write_checksum: sha1:f2a8b7e095098c2fe4029bdb4f16250b7d1c940a - pristine_git_object: 3fadc6aeb54a0de7b9e6a84e6f4c5d3782d2aebf + last_write_checksum: sha1:fc2a162cd795e381d78650f371537e694adf3935 + pristine_git_object: 3ee5f3fd98299eac351c7f1242d54ca07588c430 src/react-query/clientAgentsRetrieve.core.ts: id: 57f9447a6e37 last_write_checksum: sha1:2946e8033525a060d612f0350405f676f7788c90 pristine_git_object: 68c0994a98b041bbf3cf6de5181d12d655b672a0 src/react-query/clientAgentsRetrieve.ts: id: 9cc81e180e8c - last_write_checksum: sha1:5edfc6940c1d4c462f019c432a8772e9c88d7762 - pristine_git_object: dea37b9848e1303cd55b54239e41ca703007e12d + last_write_checksum: sha1:c51ef4c67e24cc96b890c236c2f82c93c3710b42 + pristine_git_object: 971a73e8ebe0709419a1db241bd35d33c8f6ec82 src/react-query/clientAgentsRetrieveSchemas.core.ts: id: 0ffe96a02cfd last_write_checksum: sha1:0134767192043ffc934b43920c4f609930ac9178 pristine_git_object: 608e78f7f94146439aceb5e6f44b83ae0d5aa42b src/react-query/clientAgentsRetrieveSchemas.ts: id: 376306e5c5c8 - last_write_checksum: sha1:ad68f19dfd8cec05a4fe62dfc88ddca750f117b4 - pristine_git_object: 6e7fc52d8fcf90e96de751235d4040b0e704c4c5 + last_write_checksum: sha1:4ed8da70448c30a327020cbff663797b92724771 + pristine_git_object: e5bd2ac0c2ae4bbcc743e908c1fc53b13555cedc src/react-query/clientAgentsRun.ts: id: 245b866b6e88 - last_write_checksum: sha1:e37c152747ce32608e4bf0937d68acb345d3c05c - pristine_git_object: 1b2bcf1082a835545b62541be69272eb70bc186e + last_write_checksum: sha1:0cf6b30a5b34f95663a53d2ee6f417f7de345c3a + pristine_git_object: cb731cde28329c39900b36fc4603872fe41b2774 src/react-query/clientAgentsRunStream.ts: id: e248dfd3c2d1 - last_write_checksum: sha1:e922dc216334c3ce4f5250f85befbf8cf1f73a6f - pristine_git_object: 210125990227f5c9cc253426a7de8e3a94a12598 + last_write_checksum: sha1:fdc40a8ef2332a3b411fb4f5800da98b04d2dce4 + pristine_git_object: 7edf8cc3d6b98c12416fd85b16cd29397b63be28 src/react-query/clientAgentsUpdate.ts: id: 27d1d80c31c0 last_write_checksum: sha1:89072451e3163b8bf1b0cedec7cde436e32b2d18 @@ -12102,8 +12102,8 @@ trackedFiles: pristine_git_object: 5d3cd77b5b32ac225ed6abc2737c427b93549ea1 src/sdk/clientagents.ts: id: 7864a10ac52c - last_write_checksum: sha1:ff4604c46da6642f484d72ceae03d37e6d423f51 - pristine_git_object: 73011605b9c6a14ec978897c53064f04a54adccb + last_write_checksum: sha1:eb4ea2672b38617d272cc71ae0804c1f6b4b9c8d + pristine_git_object: 01212b2a6fac79b68a73f59dce9fb02fcb51848f src/sdk/clientauthentication.ts: id: dd653d48dc6a last_write_checksum: sha1:f574533d9bd24fb46fb1b328ad95d2077ae5d0d9 @@ -13265,7 +13265,7 @@ examples: path: agent_id: "" requestBody: - application/json: {"messages": [{"role": "USER", "content": []}], "stream": false} + application/json: {"messages": [{"role": "USER", "content": [{"text": "What is our parental leave policy?", "type": "text"}]}], "stream": false} responses: "200": application/json: {"run": {"agent_id": "", "messages": [{"role": "USER", "content": []}], "status": "error"}, "messages": [{"role": "USER", "content": []}], "request_id": ""} @@ -13430,7 +13430,7 @@ examples: platform-chat-create: speakeasy-default-platform-chat-create: requestBody: - application/json: {"input": "", "stream": false, "store": true} + application/json: {"input": "What is our parental leave policy?", "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": ""} @@ -13442,7 +13442,7 @@ examples: platform-skills-import: speakeasy-default-platform-skills-import: requestBody: - application/json: {"source_urls": [""]} + application/json: {"source_urls": ["https://github.com/anthropics/skills/tree/main/skills/skill-creator"]} responses: "200": application/json: {"skills": [], "request_id": ""} @@ -13453,7 +13453,7 @@ examples: platform-skills-preview-source: speakeasy-default-platform-skills-preview-source: requestBody: - application/json: {"source_url": "https://ugly-information.name/", "stream": false} + application/json: {"source_url": "https://github.com/anthropics/skills", "stream": false} responses: "200": application/json: {"skills": [], "failures": [{"source_url": "https://slimy-availability.org", "code": "SKILL_FETCH_FAILED", "detail": ""}], "request_id": ""} @@ -13468,7 +13468,7 @@ examples: path: skill_id: "" requestBody: - application/json: {"status": "DISABLED"} + application/json: {"status": "ENABLED"} responses: "200": application/json: {"skill": {"id": "", "display_name": "Afton14", "description": "taut netsuke duh sonata boastfully elegantly management come", "latest_version": 425795, "latest_minor_version": 741364, "status": "DISABLED", "origin": "CUSTOM", "owner": {"name": ""}, "created_at": "2024-12-20T01:31:39.364Z", "updated_at": "2025-12-04T02:59:37.124Z"}, "request_id": ""} @@ -13850,7 +13850,7 @@ generatedTests: platform-trigger-presets-get: "2026-08-21T02:36:10Z" platform-trigger-presets-input-values-list: "2026-08-21T02:36:10Z" platform-trigger-presets-events-search: "2026-08-21T02:36:10Z" -releaseNotes: "## Typescript SDK Changes:\n* `glean.chat.create()`: \n * `request.input.union(Array)[].role` **Changed** (Breaking ⚠️)\n * `response` **Changed** (Breaking ⚠️)\n* `glean.triggers.listPresets()`: **Added**\n* `glean.triggers.listPresetInputValues()`: **Added**\n* `glean.triggers.update()`: **Added**\n* `glean.triggers.delete()`: **Added**\n* `glean.triggers.searchEvents()`: **Added**\n* `glean.triggers.create()`: **Added**\n* `glean.triggers.getPreset()`: **Added**\n* `glean.triggers.get()`: **Added**\n* `glean.triggers.searchPresetEvents()`: **Added**\n* `glean.triggers.list()`: **Added**\n* `glean.client.chat.create()`: \n * `request.chatRequest.messages[].citations[].sourceSkill` **Added**\n * `response.messages[].citations[].sourceSkill` **Added**\n* `glean.client.chat.retrieve()`: `response.chatResult.chat.messages[].citations[].sourceSkill` **Added**\n* `glean.client.chat.createStream()`: \n * `request.chatRequest.messages[].citations[].sourceSkill` **Added**\n* `glean.client.search.retrieveFeed()`: \n * `request.feedRequest.categories[]` **Changed**\n * `response.results[]` **Changed**\n" +releaseNotes: "## Typescript SDK Changes:\n* `glean.client.chat.create()`: \n * `request.chatRequest.messages[].fragments[]` **Changed**\n * `response.messages[].fragments[]` **Changed**\n* `glean.client.chat.retrieve()`: `response.chatResult.chat.messages[].fragments[]` **Changed**\n* `glean.client.chat.createStream()`: \n * `request.chatRequest.messages[].fragments[]` **Changed**\n* `glean.client.agents.retrieve()`: **Deprecated**\n* `glean.client.agents.retrieveSchemas()`: **Deprecated**\n* `glean.client.agents.list()`: **Deprecated**\n* `glean.client.agents.runStream()`: **Deprecated**\n* `glean.client.agents.runStream()`: `error.authenticationSuggestions[].requestType.enum(sandboxEgress)` **Added**\n* `glean.client.agents.run()`: **Deprecated**\n* `glean.client.agents.run()`: `error.authenticationSuggestions[].requestType.enum(sandboxEgress)` **Added**\n" generatedFiles: - .devcontainer/README.md - .devcontainer/devcontainer.json diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index ac133c05..22e50dfa 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -35,7 +35,7 @@ generation: generateNewTests: true skipResponseBodyAssertions: true typescript: - version: 0.19.0 + version: 0.19.1 acceptHeaderEnum: true additionalDependencies: dependencies: {} diff --git a/.speakeasy/glean-merged-spec.yaml b/.speakeasy/glean-merged-spec.yaml index c9540561..a39ee411 100644 --- a/.speakeasy/glean-merged-spec.yaml +++ b/.speakeasy/glean-merged-spec.yaml @@ -1,9 +1,9 @@ -openapi: 3.0.0 +openapi: 3.1.0 info: version: "0.9.0" title: Glean API - x-source-commit-sha: ae20e37cc1d6786192c975f846fbe57527d94d7e - x-open-api-commit-sha: 68a8939fe1b80a3a659ea78c778a5ddfdcb8e999 + x-source-commit-sha: 607c4a4291218dcc0edb79494bf20e6ac3362cf9 + x-open-api-commit-sha: efc6383f39292ed5941021d5bd19afeca4e04a38 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. @@ -2709,7 +2709,15 @@ paths: $ref: '#/components/schemas/ErrorResponse' "500": description: Internal server error + deprecated: true x-visibility: Preview + x-glean-deprecated: + docs: https://developers.glean.com/api/platform-api/agents-overview + id: e01a59ea-5de0-481f-97b6-d28dd65379e6 + introduced: "2026-08-25" + message: Use GET /api/agents/{agent_id} instead. + removal: "2027-04-15" + x-speakeasy-deprecation-message: "Deprecated on 2026-08-25, removal scheduled for 2027-04-15: Use GET /api/agents/{agent_id} instead." x-speakeasy-group: client.agents x-speakeasy-name-override: retrieve post: @@ -2802,7 +2810,15 @@ paths: $ref: '#/components/schemas/ErrorResponse' "500": description: Internal server error + deprecated: true x-visibility: Preview + x-glean-deprecated: + docs: https://developers.glean.com/api/platform-api/agents-overview + id: 9ca398ba-cf22-4523-9d9c-86e5f82d6ec7 + introduced: "2026-08-25" + message: Use GET /api/agents/{agent_id}/schemas instead. + removal: "2027-04-15" + x-speakeasy-deprecation-message: "Deprecated on 2026-08-25, removal scheduled for 2027-04-15: Use GET /api/agents/{agent_id}/schemas instead." x-speakeasy-group: client.agents x-speakeasy-name-override: retrieveSchemas /rest/api/v1/agents/{agent_id}/import: @@ -2895,7 +2911,15 @@ paths: $ref: '#/components/schemas/ErrorResponse' "500": description: Internal server error + deprecated: true x-visibility: Preview + x-glean-deprecated: + docs: https://developers.glean.com/api/platform-api/agents-overview + id: 3ab6f4c0-0b97-4a0b-b5da-e888e4bb7706 + introduced: "2026-08-25" + message: Use POST /api/agents/search instead. + removal: "2027-04-15" + x-speakeasy-deprecation-message: "Deprecated on 2026-08-25, removal scheduled for 2027-04-15: Use POST /api/agents/search instead." x-speakeasy-group: client.agents x-speakeasy-name-override: list /rest/api/v1/agents/runs/stream: @@ -2961,7 +2985,15 @@ paths: $ref: '#/components/schemas/UnauthorizedAgentToolsError' "500": description: Internal server error + deprecated: true x-visibility: Preview + x-glean-deprecated: + docs: https://developers.glean.com/api/platform-api/agents-overview + id: db3f42a5-8820-451e-b57a-14bf6ca3915c + introduced: "2026-08-25" + message: Use POST /api/agents/{agent_id}/runs with stream=true instead. + removal: "2027-04-15" + x-speakeasy-deprecation-message: "Deprecated on 2026-08-25, removal scheduled for 2027-04-15: Use POST /api/agents/{agent_id}/runs with stream=true instead." x-speakeasy-group: client.agents x-speakeasy-name-override: runStream /rest/api/v1/agents/runs/wait: @@ -3002,7 +3034,15 @@ paths: $ref: '#/components/schemas/UnauthorizedAgentToolsError' "500": description: Internal server error + deprecated: true x-visibility: Preview + x-glean-deprecated: + docs: https://developers.glean.com/api/platform-api/agents-overview + id: 683b90e1-48d3-4d7a-a32d-b48eb194fcf0 + introduced: "2026-08-25" + message: Use POST /api/agents/{agent_id}/runs instead. + removal: "2027-04-15" + x-speakeasy-deprecation-message: "Deprecated on 2026-08-25, removal scheduled for 2027-04-15: Use POST /api/agents/{agent_id}/runs instead." x-speakeasy-group: client.agents x-speakeasy-name-override: run /rest/api/v1/addcollectionitems: @@ -6747,6 +6787,8 @@ components: PlatformAgentsSearchRequest: type: object additionalProperties: false + example: + name: HR Policy Agent properties: name: type: string @@ -7070,6 +7112,12 @@ components: additionalProperties: false description: | Request to run an agent. A request MUST supply either `messages` (a non-empty conversation) or `input` (for input-form triggered agents). + example: + messages: + - role: USER + content: + - text: What is our parental leave policy? + type: text properties: input: type: object @@ -7186,6 +7234,8 @@ components: additionalProperties: false required: - input + example: + input: What is our parental leave policy? properties: input: description: | @@ -7327,8 +7377,9 @@ components: type: string minLength: 1 page_number: - type: integer - nullable: true + type: + - integer + - "null" PlatformChatCitationAnnotation: type: object additionalProperties: false @@ -7346,16 +7397,19 @@ components: items: $ref: "#/components/schemas/PlatformChatCitationSource" start_index: - type: integer + type: + - integer + - "null" minimum: 0 - nullable: true end_index: - type: integer + type: + - integer + - "null" minimum: 0 - nullable: true snippets: - type: array - nullable: true + type: + - array + - "null" items: $ref: "#/components/schemas/PlatformChatCitationSnippet" PlatformChatOutputTextContent: @@ -7432,9 +7486,10 @@ components: store: type: boolean conversation_id: - type: string + type: + - string + - "null" minLength: 1 - nullable: true description: Present when the interaction was persisted. request_id: type: string @@ -7554,8 +7609,9 @@ components: type: boolean description: Whether additional results are available. next_cursor: - type: string - nullable: true + type: + - string + - "null" description: Cursor for the next page, or null when no more results are available. request_id: type: string @@ -7586,6 +7642,9 @@ components: additionalProperties: false required: - source_urls + example: + source_urls: + - https://github.com/anthropics/skills/tree/main/skills/skill-creator properties: source_urls: type: array @@ -7678,6 +7737,8 @@ components: additionalProperties: false required: - source_url + example: + source_url: https://github.com/anthropics/skills properties: source_url: type: string @@ -7800,6 +7861,8 @@ components: additionalProperties: false required: - status + example: + status: ENABLED properties: status: $ref: "#/components/schemas/PlatformSkillUpdateStatus" @@ -7891,8 +7954,9 @@ components: type: boolean description: Whether additional results are available. next_cursor: - type: string - nullable: true + type: + - string + - "null" description: Cursor for the next page, or null when no more results are available. request_id: type: string @@ -8011,11 +8075,11 @@ components: default: 10 description: Number of results to return per page. cursor: - type: string - nullable: true + type: + - string + - "null" description: | Opaque pagination token from a previous response's `next_cursor` field. Omit on the first request. - example: "" datasources: type: array minItems: 1 @@ -8066,8 +8130,9 @@ components: description: The datasource this result originates from. example: confluence document_type: - type: string - nullable: true + type: + - string + - "null" minLength: 1 description: The document type within the datasource. example: page @@ -8076,14 +8141,16 @@ components: owner: $ref: "#/components/schemas/PlatformPersonReference" updated_at: - type: string + type: + - string + - "null" format: date-time - nullable: true description: When the result was last modified. created_at: - type: string + type: + - string + - "null" format: date-time - nullable: true description: When the result was created. PlatformSearchResponse: type: object @@ -8105,8 +8172,9 @@ components: type: boolean description: Indicates whether additional pages of results are available. next_cursor: - type: string - nullable: true + type: + - string + - "null" description: Opaque token to pass as `cursor` in the next request. request_id: type: string @@ -8283,8 +8351,9 @@ components: type: boolean description: Whether additional results are available. next_cursor: - type: string - nullable: true + type: + - string + - "null" description: Cursor for the next page, or null when no more results are available. request_id: type: string @@ -8644,8 +8713,9 @@ components: type: boolean description: Whether additional results are available. next_cursor: - type: string - nullable: true + type: + - string + - "null" description: Cursor for the next page, or null when no more results are available. request_id: type: string @@ -12896,15 +12966,18 @@ components: - EXECUTION - AUTHENTICATION_SUGGESTION - VOTE_SUGGESTION + - SANDBOX_EGRESS description: The type of request made to the user. x-enumDescriptions: EXECUTION: Request for approving execution of the tool. AUTHENTICATION_SUGGESTION: Request for authenticating to a tool, provided as a (tool) suggestion. VOTE_SUGGESTION: Suggestion to vote for enabling an available-but-not-enabled tool. + SANDBOX_EGRESS: Request to approve an outbound/egress call from the sandbox. x-speakeasy-enum-descriptions: EXECUTION: Request for approving execution of the tool. AUTHENTICATION_SUGGESTION: Request for authenticating to a tool, provided as a (tool) suggestion. VOTE_SUGGESTION: Suggestion to vote for enabling an available-but-not-enabled tool. + SANDBOX_EGRESS: Request to approve an outbound/egress call from the sandbox. requestId: type: string description: Unique identifier for this request. @@ -13004,6 +13077,9 @@ components: For VOTE_SUGGESTION requests: - voted: whether the user voted for this tool + + For SANDBOX_EGRESS requests: + - isGranted: whether the sandbox egress call is approved x-visibility: Preview x-glean-experimental: id: 3eae3ee7-2c06-4027-be14-98260a3ce608 @@ -13590,7 +13666,7 @@ components: isDraft: type: boolean description: | - When true, validates and stores a draft preview without publishing (used for PR preview links). Takes precedence over `syncMode`: when `isDraft` is true, `syncMode` is ignored. + Deprecated. Draft mutation semantics are not supported for transient previews. Use transient and parentWorkflowId instead. required: - bundle ImportAgentStatus: @@ -18075,6 +18151,7 @@ components: type: array items: $ref: '#/components/schemas/DebugDocumentRequest' + maxItems: 100 description: Documents to fetch debug information for required: - debugDocuments diff --git a/.speakeasy/tests.arazzo.yaml b/.speakeasy/tests.arazzo.yaml index 1f6aa2f3..69fbc16d 100644 --- a/.speakeasy/tests.arazzo.yaml +++ b/.speakeasy/tests.arazzo.yaml @@ -164671,7 +164671,9 @@ workflows: contentType: application/json payload: messages: - - content: [] + - content: + - text: What is our parental leave policy? + type: text role: USER stream: false successCriteria: @@ -164939,7 +164941,7 @@ workflows: requestBody: contentType: application/json payload: - input: + input: What is our parental leave policy? store: true stream: false successCriteria: @@ -164959,7 +164961,7 @@ workflows: contentType: application/json payload: source_urls: - - + - https://github.com/anthropics/skills/tree/main/skills/skill-creator successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -164976,7 +164978,7 @@ workflows: requestBody: contentType: application/json payload: - source_url: https://ugly-information.name/ + source_url: https://github.com/anthropics/skills stream: false successCriteria: - condition: $statusCode == 200 @@ -164998,7 +165000,7 @@ workflows: requestBody: contentType: application/json payload: - status: DISABLED + status: ENABLED successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 2d68e9d7..ce259b6f 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.795.1 +speakeasyVersion: 1.796.2 sources: Glean API: sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:90133ae2ed4bca7f388138e9d043405e381f920c07c8e54bdf3af2505b0a24ae - sourceBlobDigest: sha256:ffea0cebe421d06f6145114c557713c6b11600ae8dc1e06469304d89e720bf27 + sourceRevisionDigest: sha256:f3a6935819a2bf2e272a785879abcaa920ea4947f5daa04a960e8b6ae06c0e82 + sourceBlobDigest: sha256:622d79294b037df20876ceefda11f2d617b13abdf49b02c046e1a2c0c8a08f45 tags: - latest Glean Client API: @@ -17,10 +17,10 @@ targets: glean: source: Glean API sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:90133ae2ed4bca7f388138e9d043405e381f920c07c8e54bdf3af2505b0a24ae - sourceBlobDigest: sha256:ffea0cebe421d06f6145114c557713c6b11600ae8dc1e06469304d89e720bf27 + sourceRevisionDigest: sha256:f3a6935819a2bf2e272a785879abcaa920ea4947f5daa04a960e8b6ae06c0e82 + sourceBlobDigest: sha256:622d79294b037df20876ceefda11f2d617b13abdf49b02c046e1a2c0c8a08f45 codeSamplesNamespace: glean-api-specs-typescript-code-samples - codeSamplesRevisionDigest: sha256:51424c3cd77373d24d2b3ca6e99292bdf03e6b400fdb6b5ca3ed7b5b772862b8 + codeSamplesRevisionDigest: sha256:f9a6c46d1f398b207d7d2d3261645908419c4a606955bdf8391febea50380f3e workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index a8c16d6c..c2f86309 100644 --- a/README.md +++ b/README.md @@ -278,13 +278,13 @@ For more information on obtaining the appropriate token type, please contact you ### [Client.Agents](docs/sdks/clientagents/README.md) * [create](docs/sdks/clientagents/README.md#create) - Create an agent -* [retrieve](docs/sdks/clientagents/README.md#retrieve) - Retrieve an agent +* [~~retrieve~~](docs/sdks/clientagents/README.md#retrieve) - Retrieve an agent :warning: **Deprecated** * [update](docs/sdks/clientagents/README.md#update) - Edit an agent -* [retrieveSchemas](docs/sdks/clientagents/README.md#retrieveschemas) - List an agent's schemas +* [~~retrieveSchemas~~](docs/sdks/clientagents/README.md#retrieveschemas) - List an agent's schemas :warning: **Deprecated** * [import](docs/sdks/clientagents/README.md#import) - Import an agent -* [list](docs/sdks/clientagents/README.md#list) - Search agents -* [runStream](docs/sdks/clientagents/README.md#runstream) - Create an agent run and stream the response -* [run](docs/sdks/clientagents/README.md#run) - Create an agent run and wait for the response +* [~~list~~](docs/sdks/clientagents/README.md#list) - Search agents :warning: **Deprecated** +* [~~runStream~~](docs/sdks/clientagents/README.md#runstream) - Create an agent run and stream the response :warning: **Deprecated** +* [~~run~~](docs/sdks/clientagents/README.md#run) - Create an agent run and wait for the response :warning: **Deprecated** ### [Client.Announcements](docs/sdks/announcements/README.md) @@ -559,11 +559,6 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md). - [`clientActivityReport`](docs/sdks/activity/README.md#report) - Report document activity - [`clientAgentsCreate`](docs/sdks/clientagents/README.md#create) - Create an agent - [`clientAgentsImport`](docs/sdks/clientagents/README.md#import) - Import an agent -- [`clientAgentsList`](docs/sdks/clientagents/README.md#list) - Search agents -- [`clientAgentsRetrieve`](docs/sdks/clientagents/README.md#retrieve) - Retrieve an agent -- [`clientAgentsRetrieveSchemas`](docs/sdks/clientagents/README.md#retrieveschemas) - List an agent's schemas -- [`clientAgentsRun`](docs/sdks/clientagents/README.md#run) - Create an agent run and wait for the response -- [`clientAgentsRunStream`](docs/sdks/clientagents/README.md#runstream) - Create an agent run and stream the response - [`clientAgentsUpdate`](docs/sdks/clientagents/README.md#update) - Edit an agent - [`clientAnnouncementsCreate`](docs/sdks/announcements/README.md#create) - Create Announcement - [`clientAnnouncementsDelete`](docs/sdks/announcements/README.md#delete) - Delete Announcement @@ -716,6 +711,11 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md). - [`triggersSearchEvents`](docs/sdks/triggers/README.md#searchevents) - Search events for a trigger - [`triggersSearchPresetEvents`](docs/sdks/triggers/README.md#searchpresetevents) - Search events for a trigger preset - [`triggersUpdate`](docs/sdks/triggers/README.md#update) - Update trigger +- ~~[`clientAgentsList`](docs/sdks/clientagents/README.md#list)~~ - Search agents :warning: **Deprecated** +- ~~[`clientAgentsRetrieve`](docs/sdks/clientagents/README.md#retrieve)~~ - Retrieve an agent :warning: **Deprecated** +- ~~[`clientAgentsRetrieveSchemas`](docs/sdks/clientagents/README.md#retrieveschemas)~~ - List an agent's schemas :warning: **Deprecated** +- ~~[`clientAgentsRun`](docs/sdks/clientagents/README.md#run)~~ - Create an agent run and wait for the response :warning: **Deprecated** +- ~~[`clientAgentsRunStream`](docs/sdks/clientagents/README.md#runstream)~~ - Create an agent run and stream the response :warning: **Deprecated** - ~~[`clientAnswersList`](docs/sdks/answers/README.md#list)~~ - List Answers :warning: **Deprecated** - ~~[`indexingDocumentsCount`](docs/sdks/indexingdocuments/README.md#count)~~ - Get document count :warning: **Deprecated** - ~~[`indexingDocumentsStatus`](docs/sdks/indexingdocuments/README.md#status)~~ - Get document upload and indexing status :warning: **Deprecated** @@ -756,11 +756,6 @@ To learn about this feature and how to get started, check - [`useClientActivityReportMutation`](docs/sdks/activity/README.md#report) - Report document activity - [`useClientAgentsCreateMutation`](docs/sdks/clientagents/README.md#create) - Create an agent - [`useClientAgentsImportMutation`](docs/sdks/clientagents/README.md#import) - Import an agent -- [`useClientAgentsListMutation`](docs/sdks/clientagents/README.md#list) - Search agents -- [`useClientAgentsRetrieve`](docs/sdks/clientagents/README.md#retrieve) - Retrieve an agent -- [`useClientAgentsRetrieveSchemas`](docs/sdks/clientagents/README.md#retrieveschemas) - List an agent's schemas -- [`useClientAgentsRunMutation`](docs/sdks/clientagents/README.md#run) - Create an agent run and wait for the response -- [`useClientAgentsRunStreamMutation`](docs/sdks/clientagents/README.md#runstream) - Create an agent run and stream the response - [`useClientAgentsUpdateMutation`](docs/sdks/clientagents/README.md#update) - Edit an agent - [`useClientAnnouncementsCreateMutation`](docs/sdks/announcements/README.md#create) - Create Announcement - [`useClientAnnouncementsDeleteMutation`](docs/sdks/announcements/README.md#delete) - Delete Announcement @@ -913,6 +908,11 @@ To learn about this feature and how to get started, check - [`useTriggersSearchEventsMutation`](docs/sdks/triggers/README.md#searchevents) - Search events for a trigger - [`useTriggersSearchPresetEventsMutation`](docs/sdks/triggers/README.md#searchpresetevents) - Search events for a trigger preset - [`useTriggersUpdateMutation`](docs/sdks/triggers/README.md#update) - Update trigger +- ~~[`useClientAgentsListMutation`](docs/sdks/clientagents/README.md#list)~~ - Search agents :warning: **Deprecated** +- ~~[`useClientAgentsRetrieve`](docs/sdks/clientagents/README.md#retrieve)~~ - Retrieve an agent :warning: **Deprecated** +- ~~[`useClientAgentsRetrieveSchemas`](docs/sdks/clientagents/README.md#retrieveschemas)~~ - List an agent's schemas :warning: **Deprecated** +- ~~[`useClientAgentsRunMutation`](docs/sdks/clientagents/README.md#run)~~ - Create an agent run and wait for the response :warning: **Deprecated** +- ~~[`useClientAgentsRunStreamMutation`](docs/sdks/clientagents/README.md#runstream)~~ - Create an agent run and stream the response :warning: **Deprecated** - ~~[`useClientAnswersListMutation`](docs/sdks/answers/README.md#list)~~ - List Answers :warning: **Deprecated** - ~~[`useIndexingDocumentsCountMutation`](docs/sdks/indexingdocuments/README.md#count)~~ - Get document count :warning: **Deprecated** - ~~[`useIndexingDocumentsStatusMutation`](docs/sdks/indexingdocuments/README.md#status)~~ - Get document upload and indexing status :warning: **Deprecated** diff --git a/RELEASES.md b/RELEASES.md index 49a476d3..39bafa76 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -858,4 +858,14 @@ Based on: ### Generated - [typescript v0.19.0] . ### Releases -- [NPM v0.19.0] https://www.npmjs.com/package/@gleanwork/api-client/v/0.19.0 - . \ No newline at end of file +- [NPM v0.19.0] https://www.npmjs.com/package/@gleanwork/api-client/v/0.19.0 - . + +## 2026-09-01 09:07:52 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.796.2 (2.933.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v0.19.1] . +### Releases +- [NPM v0.19.1] https://www.npmjs.com/package/@gleanwork/api-client/v/0.19.1 - . \ No newline at end of file diff --git a/docs/models/components/chatmessagefragment.md b/docs/models/components/chatmessagefragment.md index 5b8986ca..78f1d87e 100644 --- a/docs/models/components/chatmessagefragment.md +++ b/docs/models/components/chatmessagefragment.md @@ -2044,14 +2044,14 @@ let value: ChatMessageFragment = { ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `structuredResults` | [components.StructuredResult](../../models/components/structuredresult.md)[] | :heavy_minus_sign: | An array of entities in the work graph retrieved via a data request. | | -| `trackingToken` | *string* | :heavy_minus_sign: | An opaque token that represents this particular result in this particular query. To be used for /feedback reporting. | | -| `text` | *string* | :heavy_minus_sign: | N/A | | -| `querySuggestion` | [components.QuerySuggestion](../../models/components/querysuggestion.md) | :heavy_minus_sign: | N/A | {
"query": "app:github type:pull author:mortimer",
"label": "Mortimer's PRs",
"datasource": "github"
} | -| `file` | [components.ChatFile](../../models/components/chatfile.md) | :heavy_minus_sign: | Structure for file uploaded by a user for Chat. | | -| `action` | [components.ToolInfo](../../models/components/toolinfo.md) | :heavy_minus_sign: | N/A | | -| `citation` | [components.ChatMessageCitation](../../models/components/chatmessagecitation.md) | :heavy_minus_sign: | Information about the source for a ChatMessage. | | -| `serverToolRequest` | [components.ServerToolRequest](../../models/components/servertoolrequest.md) | :heavy_minus_sign: | N/A | | -| `serverToolResponse` | [components.ServerToolResponse](../../models/components/servertoolresponse.md) | :heavy_minus_sign: | Response to a server tool request. The applicable fields depend on requestType:

For EXECUTION requests:
- isGranted: whether tool execution is approved
- reason: optional explanation

For AUTHENTICATION_SUGGESTION requests:
- isGranted: whether auth completed successfully (true=connected, false=skipped)
- authContext: contains serverId or actionPackId for identifying the authenticated entity
- reason: optional explanation for skip

For VOTE_SUGGESTION requests:
- voted: whether the user voted for this tool
| | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `structuredResults` | [components.StructuredResult](../../models/components/structuredresult.md)[] | :heavy_minus_sign: | An array of entities in the work graph retrieved via a data request. | | +| `trackingToken` | *string* | :heavy_minus_sign: | An opaque token that represents this particular result in this particular query. To be used for /feedback reporting. | | +| `text` | *string* | :heavy_minus_sign: | N/A | | +| `querySuggestion` | [components.QuerySuggestion](../../models/components/querysuggestion.md) | :heavy_minus_sign: | N/A | {
"query": "app:github type:pull author:mortimer",
"label": "Mortimer's PRs",
"datasource": "github"
} | +| `file` | [components.ChatFile](../../models/components/chatfile.md) | :heavy_minus_sign: | Structure for file uploaded by a user for Chat. | | +| `action` | [components.ToolInfo](../../models/components/toolinfo.md) | :heavy_minus_sign: | N/A | | +| `citation` | [components.ChatMessageCitation](../../models/components/chatmessagecitation.md) | :heavy_minus_sign: | Information about the source for a ChatMessage. | | +| `serverToolRequest` | [components.ServerToolRequest](../../models/components/servertoolrequest.md) | :heavy_minus_sign: | N/A | | +| `serverToolResponse` | [components.ServerToolResponse](../../models/components/servertoolresponse.md) | :heavy_minus_sign: | Response to a server tool request. The applicable fields depend on requestType:

For EXECUTION requests:
- isGranted: whether tool execution is approved
- reason: optional explanation

For AUTHENTICATION_SUGGESTION requests:
- isGranted: whether auth completed successfully (true=connected, false=skipped)
- authContext: contains serverId or actionPackId for identifying the authenticated entity
- reason: optional explanation for skip

For VOTE_SUGGESTION requests:
- voted: whether the user voted for this tool

For SANDBOX_EGRESS requests:
- isGranted: whether the sandbox egress call is approved
| | \ No newline at end of file diff --git a/docs/models/components/importagentrequest.md b/docs/models/components/importagentrequest.md index 5ccf2f4f..1a345c5f 100644 --- a/docs/models/components/importagentrequest.md +++ b/docs/models/components/importagentrequest.md @@ -17,4 +17,4 @@ import { ImportAgentRequest } from "@gleanwork/api-client/models/components"; | `gitAuthorId` | *string* | :heavy_minus_sign: | Optional VCS commit author ID to associate with this import. | | `commitMessage` | *string* | :heavy_minus_sign: | Optional commit message for the imported version. | | `syncMode` | [components.ImportAgentSyncMode](../../models/components/importagentsyncmode.md) | :heavy_minus_sign: | Whether the imported version is staged (saved without updating the live version) or published directly to the live version.
| -| `isDraft` | *boolean* | :heavy_minus_sign: | When true, validates and stores a draft preview without publishing (used for PR preview links). Takes precedence over `syncMode`: when `isDraft` is true, `syncMode` is ignored.
| \ No newline at end of file +| `isDraft` | *boolean* | :heavy_minus_sign: | Deprecated. Draft mutation semantics are not supported for transient previews. Use transient and parentWorkflowId instead.
| \ No newline at end of file diff --git a/docs/models/components/platformagentruncreaterequest.md b/docs/models/components/platformagentruncreaterequest.md index 97f6f64c..ee910723 100644 --- a/docs/models/components/platformagentruncreaterequest.md +++ b/docs/models/components/platformagentruncreaterequest.md @@ -12,7 +12,12 @@ let value: PlatformAgentRunCreateRequest = { messages: [ { role: "USER", - content: [], + content: [ + { + text: "What is our parental leave policy?", + type: "text", + }, + ], }, ], }; diff --git a/docs/models/components/platformchatcreaterequest.md b/docs/models/components/platformchatcreaterequest.md index 12abbb63..099a50a0 100644 --- a/docs/models/components/platformchatcreaterequest.md +++ b/docs/models/components/platformchatcreaterequest.md @@ -6,7 +6,7 @@ import { PlatformChatCreateRequest } from "@gleanwork/api-client/models/components"; let value: PlatformChatCreateRequest = { - input: "", + input: "What is our parental leave policy?", }; ``` diff --git a/docs/models/components/platformsearchrequest.md b/docs/models/components/platformsearchrequest.md index a3b6b594..0f34f62e 100644 --- a/docs/models/components/platformsearchrequest.md +++ b/docs/models/components/platformsearchrequest.md @@ -25,11 +25,11 @@ let value: PlatformSearchRequest = { ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `query` | *string* | :heavy_check_mark: | The search query string. Supports inline operators such as `from:jane type:document app:confluence`. Inline operators are AND'd with structured `filters`.
| | -| `pageSize` | *number* | :heavy_minus_sign: | Number of results to return per page. | | -| `cursor` | *string* | :heavy_minus_sign: | Opaque pagination token from a previous response's `next_cursor` field. Omit on the first request.
| | -| `datasources` | *string*[] | :heavy_minus_sign: | Restrict results to specific datasource identifiers returned by `GET /api/search/filters`. Scopes by datasource type and may include results from multiple instances of that type.
| | -| `filters` | [components.PlatformFilter](../../models/components/platformfilter.md)[] | :heavy_minus_sign: | Structured filters applied to search results. Multiple values within a filter with `EQUALS` are OR'd; separate filters are AND'd. Conflicting constraints on the same field (for example, `type:document` in `query` and `type:spreadsheet` in a filter) return an empty result set. See `Filter.field` for built-in field names and operators. Other nonblank field names are accepted as custom filters without validation; behavior depends on your connected sources.
| | -| `timeRange` | [components.PlatformTimeRange](../../models/components/platformtimerange.md) | :heavy_minus_sign: | Filter results to those last updated within this range. | | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `query` | *string* | :heavy_check_mark: | The search query string. Supports inline operators such as `from:jane type:document app:confluence`. Inline operators are AND'd with structured `filters`.
| +| `pageSize` | *number* | :heavy_minus_sign: | Number of results to return per page. | +| `cursor` | *string* | :heavy_minus_sign: | Opaque pagination token from a previous response's `next_cursor` field. Omit on the first request.
| +| `datasources` | *string*[] | :heavy_minus_sign: | Restrict results to specific datasource identifiers returned by `GET /api/search/filters`. Scopes by datasource type and may include results from multiple instances of that type.
| +| `filters` | [components.PlatformFilter](../../models/components/platformfilter.md)[] | :heavy_minus_sign: | Structured filters applied to search results. Multiple values within a filter with `EQUALS` are OR'd; separate filters are AND'd. Conflicting constraints on the same field (for example, `type:document` in `query` and `type:spreadsheet` in a filter) return an empty result set. See `Filter.field` for built-in field names and operators. Other nonblank field names are accepted as custom filters without validation; behavior depends on your connected sources.
| +| `timeRange` | [components.PlatformTimeRange](../../models/components/platformtimerange.md) | :heavy_minus_sign: | Filter results to those last updated within this range. | \ No newline at end of file diff --git a/docs/models/components/platformskillimportrequest.md b/docs/models/components/platformskillimportrequest.md index fb5594cb..ed9ecc4e 100644 --- a/docs/models/components/platformskillimportrequest.md +++ b/docs/models/components/platformskillimportrequest.md @@ -6,7 +6,9 @@ import { PlatformSkillImportRequest } from "@gleanwork/api-client/models/components"; let value: PlatformSkillImportRequest = { - source_urls: [], + source_urls: [ + "https://github.com/anthropics/skills/tree/main/skills/skill-creator", + ], }; ``` diff --git a/docs/models/components/platformskillsourcepreviewrequest.md b/docs/models/components/platformskillsourcepreviewrequest.md index 005f74cb..dda4c2d6 100644 --- a/docs/models/components/platformskillsourcepreviewrequest.md +++ b/docs/models/components/platformskillsourcepreviewrequest.md @@ -6,7 +6,7 @@ import { PlatformSkillSourcePreviewRequest } from "@gleanwork/api-client/models/components"; let value: PlatformSkillSourcePreviewRequest = { - source_url: "https://clean-shoulder.net/", + source_url: "https://github.com/anthropics/skills", }; ``` diff --git a/docs/models/components/platformskillupdaterequest.md b/docs/models/components/platformskillupdaterequest.md index 9d89f5e3..c89c21f0 100644 --- a/docs/models/components/platformskillupdaterequest.md +++ b/docs/models/components/platformskillupdaterequest.md @@ -6,7 +6,7 @@ import { PlatformSkillUpdateRequest } from "@gleanwork/api-client/models/components"; let value: PlatformSkillUpdateRequest = { - status: "DISABLED", + status: "ENABLED", }; ``` diff --git a/docs/models/components/servertoolrequest.md b/docs/models/components/servertoolrequest.md index fb8ab7e6..928eb4d6 100644 --- a/docs/models/components/servertoolrequest.md +++ b/docs/models/components/servertoolrequest.md @@ -6,7 +6,7 @@ import { ServerToolRequest } from "@gleanwork/api-client/models/components"; let value: ServerToolRequest = { - requestType: "AUTHENTICATION_SUGGESTION", + requestType: "VOTE_SUGGESTION", requestId: "", }; ``` diff --git a/docs/models/components/servertoolrequestrequesttype.md b/docs/models/components/servertoolrequestrequesttype.md index cf0c4444..995a430b 100644 --- a/docs/models/components/servertoolrequestrequesttype.md +++ b/docs/models/components/servertoolrequestrequesttype.md @@ -7,7 +7,7 @@ The type of request made to the user. ```typescript import { ServerToolRequestRequestType } from "@gleanwork/api-client/models/components"; -let value: ServerToolRequestRequestType = "AUTHENTICATION_SUGGESTION"; +let value: ServerToolRequestRequestType = "VOTE_SUGGESTION"; // Open enum: unrecognized values are captured as Unrecognized ``` @@ -15,5 +15,5 @@ let value: ServerToolRequestRequestType = "AUTHENTICATION_SUGGESTION"; ## Values ```typescript -"EXECUTION" | "AUTHENTICATION_SUGGESTION" | "VOTE_SUGGESTION" | Unrecognized +"EXECUTION" | "AUTHENTICATION_SUGGESTION" | "VOTE_SUGGESTION" | "SANDBOX_EGRESS" | Unrecognized ``` \ No newline at end of file diff --git a/docs/models/components/servertoolresponse.md b/docs/models/components/servertoolresponse.md index 826a50f9..f7f111e9 100644 --- a/docs/models/components/servertoolresponse.md +++ b/docs/models/components/servertoolresponse.md @@ -14,6 +14,9 @@ For AUTHENTICATION_SUGGESTION requests: For VOTE_SUGGESTION requests: - voted: whether the user voted for this tool +For SANDBOX_EGRESS requests: +- isGranted: whether the sandbox egress call is approved + ## Example Usage diff --git a/docs/models/components/servertoolresponserequesttype.md b/docs/models/components/servertoolresponserequesttype.md index 42ab2a28..804b34b3 100644 --- a/docs/models/components/servertoolresponserequesttype.md +++ b/docs/models/components/servertoolresponserequesttype.md @@ -15,5 +15,5 @@ let value: ServerToolResponseRequestType = "EXECUTION"; ## Values ```typescript -"EXECUTION" | "AUTHENTICATION_SUGGESTION" | "VOTE_SUGGESTION" | Unrecognized +"EXECUTION" | "AUTHENTICATION_SUGGESTION" | "VOTE_SUGGESTION" | "SANDBOX_EGRESS" | Unrecognized ``` \ No newline at end of file diff --git a/docs/models/operations/platformagentscreaterunrequest.md b/docs/models/operations/platformagentscreaterunrequest.md index dde34ad6..c23c378b 100644 --- a/docs/models/operations/platformagentscreaterunrequest.md +++ b/docs/models/operations/platformagentscreaterunrequest.md @@ -11,7 +11,12 @@ let value: PlatformAgentsCreateRunRequest = { messages: [ { role: "USER", - content: [], + content: [ + { + text: "What is our parental leave policy?", + type: "text", + }, + ], }, ], }, @@ -20,7 +25,7 @@ let value: PlatformAgentsCreateRunRequest = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `agentId` | *string* | :heavy_check_mark: | ID of the agent to run. | -| `platformAgentRunCreateRequest` | [components.PlatformAgentRunCreateRequest](../../models/components/platformagentruncreaterequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | +| `agentId` | *string* | :heavy_check_mark: | ID of the agent to run. | | +| `platformAgentRunCreateRequest` | [components.PlatformAgentRunCreateRequest](../../models/components/platformagentruncreaterequest.md) | :heavy_check_mark: | N/A | {
"messages": [
{
"role": "USER",
"content": [
{
"text": "What is our parental leave policy?",
"type": "text"
}
]
}
]
} | \ No newline at end of file diff --git a/docs/models/operations/platformskillsupdaterequest.md b/docs/models/operations/platformskillsupdaterequest.md index 77407721..a05490d2 100644 --- a/docs/models/operations/platformskillsupdaterequest.md +++ b/docs/models/operations/platformskillsupdaterequest.md @@ -15,7 +15,7 @@ let value: PlatformSkillsUpdateRequest = { ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `skillId` | *string* | :heavy_check_mark: | Glean skill ID. | -| `platformSkillUpdateRequest` | [components.PlatformSkillUpdateRequest](../../models/components/platformskillupdaterequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `skillId` | *string* | :heavy_check_mark: | Glean skill ID. | | +| `platformSkillUpdateRequest` | [components.PlatformSkillUpdateRequest](../../models/components/platformskillupdaterequest.md) | :heavy_check_mark: | N/A | {
"status": "ENABLED"
} | \ No newline at end of file diff --git a/docs/sdks/agents/README.md b/docs/sdks/agents/README.md index 0cee28a4..21e440cc 100644 --- a/docs/sdks/agents/README.md +++ b/docs/sdks/agents/README.md @@ -323,7 +323,12 @@ async function run() { messages: [ { role: "USER", - content: [], + content: [ + { + text: "What is our parental leave policy?", + type: "text", + }, + ], }, ], }, ""); @@ -353,7 +358,12 @@ async function run() { messages: [ { role: "USER", - content: [], + content: [ + { + text: "What is our parental leave policy?", + type: "text", + }, + ], }, ], }, ""); @@ -387,13 +397,13 @@ import { ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `agentId` | *string* | :heavy_check_mark: | ID of the agent to run. | -| `platformAgentRunCreateRequest` | [components.PlatformAgentRunCreateRequest](../../models/components/platformagentruncreaterequest.md) | :heavy_check_mark: | N/A | -| `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. | +| Parameter | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `agentId` | *string* | :heavy_check_mark: | ID of the agent to run. | | +| `platformAgentRunCreateRequest` | [components.PlatformAgentRunCreateRequest](../../models/components/platformagentruncreaterequest.md) | :heavy_check_mark: | N/A | {
"messages": [
{
"role": "USER",
"content": [
{
"text": "What is our parental leave policy?",
"type": "text"
}
]
}
]
} | +| `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 diff --git a/docs/sdks/chat/README.md b/docs/sdks/chat/README.md index aeb33e09..9e1f1791 100644 --- a/docs/sdks/chat/README.md +++ b/docs/sdks/chat/README.md @@ -23,7 +23,7 @@ const glean = new Glean({ async function run() { const result = await glean.chat.create({ - input: "", + input: "What is our parental leave policy?", }); console.log(result); @@ -48,7 +48,7 @@ const glean = new GleanCore({ async function run() { const res = await chatCreate(glean, { - input: "", + input: "What is our parental leave policy?", }); if (res.ok) { const { value: result } = res; diff --git a/docs/sdks/clientagents/README.md b/docs/sdks/clientagents/README.md index 9d7df5f1..32b719ba 100644 --- a/docs/sdks/clientagents/README.md +++ b/docs/sdks/clientagents/README.md @@ -5,13 +5,13 @@ ### Available Operations * [create](#create) - Create an agent -* [retrieve](#retrieve) - Retrieve an agent +* [~~retrieve~~](#retrieve) - Retrieve an agent :warning: **Deprecated** * [update](#update) - Edit an agent -* [retrieveSchemas](#retrieveschemas) - List an agent's schemas +* [~~retrieveSchemas~~](#retrieveschemas) - List an agent's schemas :warning: **Deprecated** * [import](#import) - Import an agent -* [list](#list) - Search agents -* [runStream](#runstream) - Create an agent run and stream the response -* [run](#run) - Create an agent run and wait for the response +* [~~list~~](#list) - Search agents :warning: **Deprecated** +* [~~runStream~~](#runstream) - Create an agent run and stream the response :warning: **Deprecated** +* [~~run~~](#run) - Create an agent run and wait for the response :warning: **Deprecated** ## create @@ -101,10 +101,12 @@ import { | ----------------- | ----------------- | ----------------- | | errors.GleanError | 4XX, 5XX | \*/\* | -## retrieve +## ~~retrieve~~ Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent Builder. +> :warning: **DEPRECATED**: Deprecated on 2026-08-25, removal scheduled for 2027-04-15: Use GET /api/agents/{agent_id} instead.. + ### Example Usage @@ -291,10 +293,12 @@ import { | errors.ErrorResponse | 404 | application/json | | errors.GleanError | 4XX, 5XX | \*/\* | -## retrieveSchemas +## ~~retrieveSchemas~~ Return [agent](https://developers.glean.com/agents/agents-api)'s input and output schemas. You can use these schemas to detect changes to an agent's input or output structure. +> :warning: **DEPRECATED**: Deprecated on 2026-08-25, removal scheduled for 2027-04-15: Use GET /api/agents/{agent_id}/schemas instead.. + ### Example Usage @@ -487,10 +491,12 @@ import { | errors.ErrorResponse | 404 | application/json | | errors.GleanError | 4XX, 5XX | \*/\* | -## list +## ~~list~~ Search for [agents](https://developers.glean.com/agents/agents-api) by agent name. +> :warning: **DEPRECATED**: Deprecated on 2026-08-25, removal scheduled for 2027-04-15: Use POST /api/agents/search instead.. + ### Example Usage @@ -578,10 +584,12 @@ import { | errors.ErrorResponse | 404, 422 | application/json | | errors.GleanError | 4XX, 5XX | \*/\* | -## runStream +## ~~runStream~~ Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the result as a stream of server-sent events (SSE). **Note**: If the agent uses an input form trigger, all form fields (including optional fields) must be included in the `input` object. +> :warning: **DEPRECATED**: Deprecated on 2026-08-25, removal scheduled for 2027-04-15: Use POST /api/agents/{agent_id}/runs with stream=true instead.. + ### Example Usage @@ -680,10 +688,12 @@ import { | errors.UnauthorizedAgentToolsError | 422 | application/json | | errors.GleanError | 4XX, 5XX | \*/\* | -## run +## ~~run~~ Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the final response. **Note**: If the agent uses an input form trigger, all form fields (including optional fields) must be included in the `input` object. +> :warning: **DEPRECATED**: Deprecated on 2026-08-25, removal scheduled for 2027-04-15: Use POST /api/agents/{agent_id}/runs instead.. + ### Example Usage diff --git a/docs/sdks/skills/README.md b/docs/sdks/skills/README.md index 4231043f..bf28c8a8 100644 --- a/docs/sdks/skills/README.md +++ b/docs/sdks/skills/README.md @@ -233,7 +233,7 @@ const glean = new Glean({ async function run() { const result = await glean.skills.import({ source_urls: [ - "", + "https://github.com/anthropics/skills/tree/main/skills/skill-creator", ], }); @@ -260,7 +260,7 @@ const glean = new GleanCore({ async function run() { const res = await skillsImport(glean, { source_urls: [ - "", + "https://github.com/anthropics/skills/tree/main/skills/skill-creator", ], }); if (res.ok) { @@ -424,7 +424,7 @@ const glean = new Glean({ async function run() { const result = await glean.skills.previewSource({ - source_url: "https://ugly-information.name/", + source_url: "https://github.com/anthropics/skills", }); console.log(result); @@ -449,7 +449,7 @@ const glean = new GleanCore({ async function run() { const res = await skillsPreviewSource(glean, { - source_url: "https://ugly-information.name/", + source_url: "https://github.com/anthropics/skills", }); if (res.ok) { const { value: result } = res; @@ -517,7 +517,7 @@ const glean = new Glean({ async function run() { const result = await glean.skills.update({ - status: "DISABLED", + status: "ENABLED", }, ""); console.log(result); @@ -542,7 +542,7 @@ const glean = new GleanCore({ async function run() { const res = await skillsUpdate(glean, { - status: "DISABLED", + status: "ENABLED", }, ""); if (res.ok) { const { value: result } = res; @@ -574,13 +574,13 @@ import { ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `skillId` | *string* | :heavy_check_mark: | Glean skill ID. | -| `platformSkillUpdateRequest` | [components.PlatformSkillUpdateRequest](../../models/components/platformskillupdaterequest.md) | :heavy_check_mark: | N/A | -| `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. | +| Parameter | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `skillId` | *string* | :heavy_check_mark: | Glean skill ID. | | +| `platformSkillUpdateRequest` | [components.PlatformSkillUpdateRequest](../../models/components/platformskillupdaterequest.md) | :heavy_check_mark: | N/A | {
"status": "ENABLED"
} | +| `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 diff --git a/examples/package-lock.json b/examples/package-lock.json index 3e60ffb0..ceeb2e9e 100644 --- a/examples/package-lock.json +++ b/examples/package-lock.json @@ -18,7 +18,7 @@ }, "..": { "name": "@gleanwork/api-client", - "version": "0.19.0", + "version": "0.19.1", "dependencies": { "zod": "^3.25.0 || ^4.0.0" }, diff --git a/jsr.json b/jsr.json index c1e678a6..df343d1c 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@gleanwork/api-client", - "version": "0.19.0", + "version": "0.19.1", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index ec6227d0..5911dced 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@gleanwork/api-client", - "version": "0.19.0", + "version": "0.19.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@gleanwork/api-client", - "version": "0.19.0", + "version": "0.19.1", "dependencies": { "zod": "^3.25.0 || ^4.0.0" }, diff --git a/package.json b/package.json index 9fb584bc..eee7a907 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@gleanwork/api-client", - "version": "0.19.0", + "version": "0.19.1", "author": "Speakeasy", "tshy": { "sourceDialects": [ diff --git a/src/__tests__/agents.test.ts b/src/__tests__/agents.test.ts index d8d0af0f..36eba32b 100644 --- a/src/__tests__/agents.test.ts +++ b/src/__tests__/agents.test.ts @@ -123,7 +123,12 @@ test("Agents Platform Agents Create Run", async () => { messages: [ { role: "USER", - content: [], + content: [ + { + text: "What is our parental leave policy?", + type: "text", + }, + ], }, ], }, ""); diff --git a/src/__tests__/chat.test.ts b/src/__tests__/chat.test.ts index b901ea01..4ddce499 100644 --- a/src/__tests__/chat.test.ts +++ b/src/__tests__/chat.test.ts @@ -17,7 +17,7 @@ test("Chat Platform Chat Create", async () => { }); const result = await glean.chat.create({ - input: "", + input: "What is our parental leave policy?", }); expect(result).toBeDefined(); }); diff --git a/src/__tests__/mockserver/internal/sdk/models/components/chatmessagefragment.go b/src/__tests__/mockserver/internal/sdk/models/components/chatmessagefragment.go index 19dbe6dd..a0814c39 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/chatmessagefragment.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/chatmessagefragment.go @@ -31,6 +31,9 @@ type ChatMessageFragment struct { // For VOTE_SUGGESTION requests: // - voted: whether the user voted for this tool // + // For SANDBOX_EGRESS requests: + // - isGranted: whether the sandbox egress call is approved + // ServerToolResponse *ServerToolResponse `json:"serverToolResponse,omitempty"` } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/importagentrequest.go b/src/__tests__/mockserver/internal/sdk/models/components/importagentrequest.go index c9337d80..9eb263e3 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/importagentrequest.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/importagentrequest.go @@ -39,7 +39,7 @@ type ImportAgentRequest struct { // Whether the imported version is staged (saved without updating the live version) or published directly to the live version. // SyncMode *ImportAgentSyncMode `multipartForm:"name=syncMode"` - // When true, validates and stores a draft preview without publishing (used for PR preview links). Takes precedence over `syncMode`: when `isDraft` is true, `syncMode` is ignored. + // Deprecated. Draft mutation semantics are not supported for transient previews. Use transient and parentWorkflowId instead. // IsDraft *bool `multipartForm:"name=isDraft"` } diff --git a/src/__tests__/mockserver/internal/sdk/models/components/servertoolrequest.go b/src/__tests__/mockserver/internal/sdk/models/components/servertoolrequest.go index 6d1307d1..1a9897e9 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/servertoolrequest.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/servertoolrequest.go @@ -15,6 +15,7 @@ const ( ServerToolRequestRequestTypeExecution ServerToolRequestRequestType = "EXECUTION" ServerToolRequestRequestTypeAuthenticationSuggestion ServerToolRequestRequestType = "AUTHENTICATION_SUGGESTION" ServerToolRequestRequestTypeVoteSuggestion ServerToolRequestRequestType = "VOTE_SUGGESTION" + ServerToolRequestRequestTypeSandboxEgress ServerToolRequestRequestType = "SANDBOX_EGRESS" ) func (e ServerToolRequestRequestType) ToPointer() *ServerToolRequestRequestType { @@ -31,6 +32,8 @@ func (e *ServerToolRequestRequestType) UnmarshalJSON(data []byte) error { case "AUTHENTICATION_SUGGESTION": fallthrough case "VOTE_SUGGESTION": + fallthrough + case "SANDBOX_EGRESS": *e = ServerToolRequestRequestType(v) return nil default: diff --git a/src/__tests__/mockserver/internal/sdk/models/components/servertoolresponse.go b/src/__tests__/mockserver/internal/sdk/models/components/servertoolresponse.go index 400f5e31..9869ed21 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/servertoolresponse.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/servertoolresponse.go @@ -16,6 +16,7 @@ const ( ServerToolResponseRequestTypeExecution ServerToolResponseRequestType = "EXECUTION" ServerToolResponseRequestTypeAuthenticationSuggestion ServerToolResponseRequestType = "AUTHENTICATION_SUGGESTION" ServerToolResponseRequestTypeVoteSuggestion ServerToolResponseRequestType = "VOTE_SUGGESTION" + ServerToolResponseRequestTypeSandboxEgress ServerToolResponseRequestType = "SANDBOX_EGRESS" ) func (e ServerToolResponseRequestType) ToPointer() *ServerToolResponseRequestType { @@ -32,6 +33,8 @@ func (e *ServerToolResponseRequestType) UnmarshalJSON(data []byte) error { case "AUTHENTICATION_SUGGESTION": fallthrough case "VOTE_SUGGESTION": + fallthrough + case "SANDBOX_EGRESS": *e = ServerToolResponseRequestType(v) return nil default: @@ -82,6 +85,9 @@ func (e *GrantScope) UnmarshalJSON(data []byte) error { // // For VOTE_SUGGESTION requests: // - voted: whether the user voted for this tool +// +// For SANDBOX_EGRESS requests: +// - isGranted: whether the sandbox egress call is approved type ServerToolResponse struct { // The type of request made to the user. RequestType ServerToolResponseRequestType `json:"requestType"` diff --git a/src/__tests__/skills.test.ts b/src/__tests__/skills.test.ts index b5a61d74..80853fce 100644 --- a/src/__tests__/skills.test.ts +++ b/src/__tests__/skills.test.ts @@ -153,7 +153,7 @@ test("Skills Platform Skills Import", async () => { const result = await glean.skills.import({ source_urls: [ - "", + "https://github.com/anthropics/skills/tree/main/skills/skill-creator", ], }); expect(result).toBeDefined(); @@ -169,7 +169,7 @@ test("Skills Platform Skills Preview Source", async () => { }); const result = await glean.skills.previewSource({ - source_url: "https://ugly-information.name/", + source_url: "https://github.com/anthropics/skills", }); expect(result).toBeDefined(); }); @@ -184,7 +184,7 @@ test("Skills Platform Skills Update", async () => { }); const result = await glean.skills.update({ - status: "DISABLED", + status: "ENABLED", }, ""); expect(result).toBeDefined(); }); diff --git a/src/__tests__/summarize.test.ts b/src/__tests__/summarize.test.ts index bb5e2b02..4f1dff5d 100644 --- a/src/__tests__/summarize.test.ts +++ b/src/__tests__/summarize.test.ts @@ -19,10 +19,12 @@ test("Summarize Summarize", async () => { const result = await glean.client.documents.summarize({ documentSpecs: [ { - url: "https://dim-glider.com/", + ugcType: "CHATS", + ugcId: "", }, { - id: "", + ugcType: "ANSWERS", + contentId: 206423, }, ], }); diff --git a/src/funcs/clientAgentsList.ts b/src/funcs/clientAgentsList.ts index e6e767a0..c91d8bb4 100644 --- a/src/funcs/clientAgentsList.ts +++ b/src/funcs/clientAgentsList.ts @@ -32,6 +32,8 @@ import { Result } from "../types/fp.js"; * * @remarks * Search for [agents](https://developers.glean.com/agents/agents-api) by agent name. + * + * @deprecated method: Deprecated on 2026-08-25, removal scheduled for 2027-04-15: Use POST /api/agents/search instead.. */ export function clientAgentsList( client: GleanCore, diff --git a/src/funcs/clientAgentsRetrieve.ts b/src/funcs/clientAgentsRetrieve.ts index 36efec1a..6e6cb660 100644 --- a/src/funcs/clientAgentsRetrieve.ts +++ b/src/funcs/clientAgentsRetrieve.ts @@ -33,6 +33,8 @@ import { Result } from "../types/fp.js"; * * @remarks * Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent Builder. + * + * @deprecated method: Deprecated on 2026-08-25, removal scheduled for 2027-04-15: Use GET /api/agents/{agent_id} instead.. */ export function clientAgentsRetrieve( client: GleanCore, diff --git a/src/funcs/clientAgentsRetrieveSchemas.ts b/src/funcs/clientAgentsRetrieveSchemas.ts index 360a292a..838c3dab 100644 --- a/src/funcs/clientAgentsRetrieveSchemas.ts +++ b/src/funcs/clientAgentsRetrieveSchemas.ts @@ -33,6 +33,8 @@ import { Result } from "../types/fp.js"; * * @remarks * Return [agent](https://developers.glean.com/agents/agents-api)'s input and output schemas. You can use these schemas to detect changes to an agent's input or output structure. + * + * @deprecated method: Deprecated on 2026-08-25, removal scheduled for 2027-04-15: Use GET /api/agents/{agent_id}/schemas instead.. */ export function clientAgentsRetrieveSchemas( client: GleanCore, diff --git a/src/funcs/clientAgentsRun.ts b/src/funcs/clientAgentsRun.ts index a84efdc6..6e0d3a31 100644 --- a/src/funcs/clientAgentsRun.ts +++ b/src/funcs/clientAgentsRun.ts @@ -32,6 +32,8 @@ import { Result } from "../types/fp.js"; * * @remarks * Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the final response. **Note**: If the agent uses an input form trigger, all form fields (including optional fields) must be included in the `input` object. + * + * @deprecated method: Deprecated on 2026-08-25, removal scheduled for 2027-04-15: Use POST /api/agents/{agent_id}/runs instead.. */ export function clientAgentsRun( client: GleanCore, diff --git a/src/funcs/clientAgentsRunStream.ts b/src/funcs/clientAgentsRunStream.ts index 71231420..c1a52381 100644 --- a/src/funcs/clientAgentsRunStream.ts +++ b/src/funcs/clientAgentsRunStream.ts @@ -33,6 +33,8 @@ import { Result } from "../types/fp.js"; * * @remarks * Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the result as a stream of server-sent events (SSE). **Note**: If the agent uses an input form trigger, all form fields (including optional fields) must be included in the `input` object. + * + * @deprecated method: Deprecated on 2026-08-25, removal scheduled for 2027-04-15: Use POST /api/agents/{agent_id}/runs with stream=true instead.. */ export function clientAgentsRunStream( client: GleanCore, diff --git a/src/lib/config.ts b/src/lib/config.ts index 69275489..6a76dff7 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.19.0", - genVersion: "2.932.9", + sdkVersion: "0.19.1", + genVersion: "2.933.0", userAgent: - "speakeasy-sdk/typescript 0.19.0 2.932.9 0.9.0 @gleanwork/api-client", + "speakeasy-sdk/typescript 0.19.1 2.933.0 0.9.0 @gleanwork/api-client", } as const; diff --git a/src/lib/encodings.ts b/src/lib/encodings.ts index 49f15904..fed425b4 100644 --- a/src/lib/encodings.ts +++ b/src/lib/encodings.ts @@ -13,10 +13,41 @@ export class EncodingError extends Error { } } +export type CharEncoding = "percent" | "percentExceptReserved" | "none"; + +const reservedEscapes = /%(2[346bcf]|3[abdf]|40|5[bd])/gi; + +function encodeKeyChars( + v: string, + charEncoding: CharEncoding | undefined, +): string { + return encodeChars( + v, + charEncoding === "percentExceptReserved" ? "percent" : charEncoding, + ); +} + +function encodeChars( + v: string, + charEncoding: CharEncoding | undefined, +): string { + switch (charEncoding) { + case "percent": + return encodeURIComponent(v); + case "percentExceptReserved": + return encodeURIComponent(v).replace( + reservedEscapes, + (m) => decodeURIComponent(m), + ); + default: + return v; + } +} + export function encodeMatrix( key: string, value: unknown, - options?: { explode?: boolean; charEncoding?: "percent" | "none" }, + options?: { explode?: boolean; charEncoding?: CharEncoding }, ): string | undefined { let out = ""; const pairs: [string, unknown][] = options?.explode @@ -28,7 +59,7 @@ export function encodeMatrix( } const encodeString = (v: string) => { - return options?.charEncoding === "percent" ? encodeURIComponent(v) : v; + return encodeChars(v, options?.charEncoding); }; const encodeValue = (v: unknown) => encodeString(serializeValue(v)); @@ -53,7 +84,7 @@ export function encodeMatrix( return; } - const keyPrefix = encodeString(pk); + const keyPrefix = encodeKeyChars(pk, options?.charEncoding); tmp = `${keyPrefix}=${encValue}`; // trim trailing '=' if value was empty if (tmp === `${keyPrefix}=`) { @@ -74,7 +105,7 @@ export function encodeMatrix( export function encodeLabel( key: string, value: unknown, - options?: { explode?: boolean; charEncoding?: "percent" | "none" }, + options?: { explode?: boolean; charEncoding?: CharEncoding }, ): string | undefined { let out = ""; const pairs: [string, unknown][] = options?.explode @@ -86,7 +117,7 @@ export function encodeLabel( } const encodeString = (v: string) => { - return options?.charEncoding === "percent" ? encodeURIComponent(v) : v; + return encodeChars(v, options?.charEncoding); }; const encodeValue = (v: unknown) => encodeString(serializeValue(v)); @@ -104,7 +135,7 @@ export function encodeLabel( encValue = mapped?.join("").slice(1); } else { const k = options?.explode && isPlainObject(value) - ? `${encodeString(pk)}=` + ? `${encodeKeyChars(pk, options?.charEncoding)}=` : ""; encValue = `${k}${encodeValue(pv)}`; } @@ -118,14 +149,14 @@ export function encodeLabel( type FormEncoder = ( key: string, value: unknown, - options?: { explode?: boolean; charEncoding?: "percent" | "none" }, + options?: { explode?: boolean; charEncoding?: CharEncoding }, ) => string | undefined; function formEncoder(sep: string): FormEncoder { return ( key: string, value: unknown, - options?: { explode?: boolean; charEncoding?: "percent" | "none" }, + options?: { explode?: boolean; charEncoding?: CharEncoding }, ) => { let out = ""; const pairs: [string, unknown][] = options?.explode @@ -137,7 +168,7 @@ function formEncoder(sep: string): FormEncoder { } const encodeString = (v: string) => { - return options?.charEncoding === "percent" ? encodeURIComponent(v) : v; + return encodeChars(v, options?.charEncoding); }; const encodeValue = (v: unknown) => encodeString(serializeValue(v)); @@ -164,7 +195,7 @@ function formEncoder(sep: string): FormEncoder { return; } - tmp = `${encodeString(pk)}=${encValue}`; + tmp = `${encodeKeyChars(pk, options?.charEncoding)}=${encValue}`; // If we end up with the nothing then skip forward if (!tmp || tmp === "=") { @@ -185,7 +216,7 @@ export const encodePipeDelimited = formEncoder("|"); export function encodeBodyForm( key: string, value: unknown, - options?: { explode?: boolean; charEncoding?: "percent" | "none" }, + options?: { explode?: boolean; charEncoding?: CharEncoding }, ): string { let out = ""; const pairs: [string, unknown][] = options?.explode @@ -193,7 +224,7 @@ export function encodeBodyForm( : [[key, value]]; const encodeString = (v: string) => { - return options?.charEncoding === "percent" ? encodeURIComponent(v) : v; + return encodeChars(v, options?.charEncoding); }; const encodeValue = (v: unknown) => encodeString(serializeValue(v)); @@ -212,7 +243,7 @@ export function encodeBodyForm( encValue = `${encodeValue(pv)}`; } - tmp = `${encodeString(pk)}=${encValue}`; + tmp = `${encodeKeyChars(pk, options?.charEncoding)}=${encValue}`; // If we end up with the nothing then skip forward if (!tmp || tmp === "=") { @@ -228,7 +259,7 @@ export function encodeBodyForm( export function encodeDeepObject( key: string, value: unknown, - options?: { charEncoding?: "percent" | "none" }, + options?: { charEncoding?: CharEncoding }, ): string | undefined { if (value == null) { return; @@ -246,7 +277,7 @@ export function encodeDeepObject( export function encodeDeepObjectObject( key: string, value: unknown, - options?: { charEncoding?: "percent" | "none" }, + options?: { charEncoding?: CharEncoding }, ): string | undefined { if (value == null) { return; @@ -255,7 +286,7 @@ export function encodeDeepObjectObject( let out = ""; const encodeString = (v: string) => { - return options?.charEncoding === "percent" ? encodeURIComponent(v) : v; + return encodeChars(v, options?.charEncoding); }; if (!isPlainObject(value)) { @@ -279,7 +310,9 @@ export function encodeDeepObjectObject( const pairs: unknown[] = Array.isArray(cv) ? cv : [cv]; const encoded = mapDefined(pairs, (v) => { - return `${encodeString(pk)}=${encodeString(serializeValue(v))}`; + return `${encodeKeyChars(pk, options?.charEncoding)}=${ + encodeString(serializeValue(v)) + }`; })?.join("&"); out += encoded == null ? "" : `&${encoded}`; @@ -291,25 +324,27 @@ export function encodeDeepObjectObject( export function encodeJSON( key: string, value: unknown, - options?: { explode?: boolean; charEncoding?: "percent" | "none" }, + options?: { explode?: boolean; charEncoding?: CharEncoding }, ): string | undefined { if (typeof value === "undefined") { return; } const encodeString = (v: string) => { - return options?.charEncoding === "percent" ? encodeURIComponent(v) : v; + return encodeChars(v, options?.charEncoding); }; const encVal = encodeString(JSON.stringify(value, jsonReplacer)); - return options?.explode ? encVal : `${encodeString(key)}=${encVal}`; + return options?.explode + ? encVal + : `${encodeKeyChars(key, options?.charEncoding)}=${encVal}`; } export const encodeSimple = ( key: string, value: unknown, - options?: { explode?: boolean; charEncoding?: "percent" | "none" }, + options?: { explode?: boolean; charEncoding?: CharEncoding }, ): string | undefined => { let out = ""; const pairs: [string, unknown][] = options?.explode @@ -321,7 +356,7 @@ export const encodeSimple = ( } const encodeString = (v: string) => { - return options?.charEncoding === "percent" ? encodeURIComponent(v) : v; + return encodeChars(v, options?.charEncoding); }; const encodeValue = (v: unknown) => encodeString(serializeValue(v)); @@ -427,7 +462,7 @@ export function queryJoin(...args: (string | undefined)[]): string { type QueryEncoderOptions = { explode?: boolean; - charEncoding?: "percent" | "none"; + charEncoding?: CharEncoding; allowEmptyValue?: string[]; }; diff --git a/src/models/components/chatmessagefragment.ts b/src/models/components/chatmessagefragment.ts index ca961cb4..f88403f8 100644 --- a/src/models/components/chatmessagefragment.ts +++ b/src/models/components/chatmessagefragment.ts @@ -90,6 +90,9 @@ export type ChatMessageFragment = { * * For VOTE_SUGGESTION requests: * - voted: whether the user voted for this tool + * + * For SANDBOX_EGRESS requests: + * - isGranted: whether the sandbox egress call is approved */ serverToolResponse?: ServerToolResponse | undefined; }; diff --git a/src/models/components/importagentrequest.ts b/src/models/components/importagentrequest.ts index 18f184cc..096fbabf 100644 --- a/src/models/components/importagentrequest.ts +++ b/src/models/components/importagentrequest.ts @@ -41,7 +41,7 @@ export type ImportAgentRequest = { */ syncMode?: ImportAgentSyncMode | undefined; /** - * When true, validates and stores a draft preview without publishing (used for PR preview links). Takes precedence over `syncMode`: when `isDraft` is true, `syncMode` is ignored. + * Deprecated. Draft mutation semantics are not supported for transient previews. Use transient and parentWorkflowId instead. * * @remarks */ diff --git a/src/models/components/servertoolrequest.ts b/src/models/components/servertoolrequest.ts index da86ece7..e034149e 100644 --- a/src/models/components/servertoolrequest.ts +++ b/src/models/components/servertoolrequest.ts @@ -32,6 +32,10 @@ export const ServerToolRequestRequestType = { * Suggestion to vote for enabling an available-but-not-enabled tool. */ VoteSuggestion: "VOTE_SUGGESTION", + /** + * Request to approve an outbound/egress call from the sandbox. + */ + SandboxEgress: "SANDBOX_EGRESS", } as const; /** * The type of request made to the user. diff --git a/src/models/components/servertoolresponse.ts b/src/models/components/servertoolresponse.ts index 7b4fbbef..ed09f883 100644 --- a/src/models/components/servertoolresponse.ts +++ b/src/models/components/servertoolresponse.ts @@ -32,6 +32,10 @@ export const ServerToolResponseRequestType = { * Suggestion to vote for enabling an available-but-not-enabled tool. */ VoteSuggestion: "VOTE_SUGGESTION", + /** + * Request to approve an outbound/egress call from the sandbox. + */ + SandboxEgress: "SANDBOX_EGRESS", } as const; /** * The type of request made to the user. @@ -82,6 +86,9 @@ export type GrantScope = OpenEnum; * * For VOTE_SUGGESTION requests: * - voted: whether the user voted for this tool + * + * For SANDBOX_EGRESS requests: + * - isGranted: whether the sandbox egress call is approved */ export type ServerToolResponse = { /** diff --git a/src/react-query/clientAgentsList.ts b/src/react-query/clientAgentsList.ts index 3fadc6ae..3ee5f3fd 100644 --- a/src/react-query/clientAgentsList.ts +++ b/src/react-query/clientAgentsList.ts @@ -51,6 +51,8 @@ export type ClientAgentsListMutationError = * * @remarks * Search for [agents](https://developers.glean.com/agents/agents-api) by agent name. + * + * @deprecated method: Deprecated on 2026-08-25, removal scheduled for 2027-04-15: Use POST /api/agents/search instead.. */ export function useClientAgentsListMutation( options?: MutationHookOptions< diff --git a/src/react-query/clientAgentsRetrieve.ts b/src/react-query/clientAgentsRetrieve.ts index dea37b98..971a73e8 100644 --- a/src/react-query/clientAgentsRetrieve.ts +++ b/src/react-query/clientAgentsRetrieve.ts @@ -57,6 +57,8 @@ export type ClientAgentsRetrieveQueryError = * * @remarks * Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent Builder. + * + * @deprecated method: Deprecated on 2026-08-25, removal scheduled for 2027-04-15: Use GET /api/agents/{agent_id} instead.. */ export function useClientAgentsRetrieve( agentId: string, @@ -88,6 +90,8 @@ export function useClientAgentsRetrieve( * * @remarks * Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent Builder. + * + * @deprecated method: Deprecated on 2026-08-25, removal scheduled for 2027-04-15: Use GET /api/agents/{agent_id} instead.. */ export function useClientAgentsRetrieveSuspense( agentId: string, diff --git a/src/react-query/clientAgentsRetrieveSchemas.ts b/src/react-query/clientAgentsRetrieveSchemas.ts index 6e7fc52d..e5bd2ac0 100644 --- a/src/react-query/clientAgentsRetrieveSchemas.ts +++ b/src/react-query/clientAgentsRetrieveSchemas.ts @@ -57,6 +57,8 @@ export type ClientAgentsRetrieveSchemasQueryError = * * @remarks * Return [agent](https://developers.glean.com/agents/agents-api)'s input and output schemas. You can use these schemas to detect changes to an agent's input or output structure. + * + * @deprecated method: Deprecated on 2026-08-25, removal scheduled for 2027-04-15: Use GET /api/agents/{agent_id}/schemas instead.. */ export function useClientAgentsRetrieveSchemas( agentId: string, @@ -88,6 +90,8 @@ export function useClientAgentsRetrieveSchemas( * * @remarks * Return [agent](https://developers.glean.com/agents/agents-api)'s input and output schemas. You can use these schemas to detect changes to an agent's input or output structure. + * + * @deprecated method: Deprecated on 2026-08-25, removal scheduled for 2027-04-15: Use GET /api/agents/{agent_id}/schemas instead.. */ export function useClientAgentsRetrieveSchemasSuspense( agentId: string, diff --git a/src/react-query/clientAgentsRun.ts b/src/react-query/clientAgentsRun.ts index 1b2bcf10..cb731cde 100644 --- a/src/react-query/clientAgentsRun.ts +++ b/src/react-query/clientAgentsRun.ts @@ -51,6 +51,8 @@ export type ClientAgentsRunMutationError = * * @remarks * Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the final response. **Note**: If the agent uses an input form trigger, all form fields (including optional fields) must be included in the `input` object. + * + * @deprecated method: Deprecated on 2026-08-25, removal scheduled for 2027-04-15: Use POST /api/agents/{agent_id}/runs instead.. */ export function useClientAgentsRunMutation( options?: MutationHookOptions< diff --git a/src/react-query/clientAgentsRunStream.ts b/src/react-query/clientAgentsRunStream.ts index 21012599..7edf8cc3 100644 --- a/src/react-query/clientAgentsRunStream.ts +++ b/src/react-query/clientAgentsRunStream.ts @@ -52,6 +52,8 @@ export type ClientAgentsRunStreamMutationError = * * @remarks * Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the result as a stream of server-sent events (SSE). **Note**: If the agent uses an input form trigger, all form fields (including optional fields) must be included in the `input` object. + * + * @deprecated method: Deprecated on 2026-08-25, removal scheduled for 2027-04-15: Use POST /api/agents/{agent_id}/runs with stream=true instead.. */ export function useClientAgentsRunStreamMutation( options?: MutationHookOptions< diff --git a/src/sdk/clientagents.ts b/src/sdk/clientagents.ts index 73011605..01212b2a 100644 --- a/src/sdk/clientagents.ts +++ b/src/sdk/clientagents.ts @@ -42,6 +42,8 @@ export class ClientAgents extends ClientSDK { * * @remarks * Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent Builder. + * + * @deprecated method: Deprecated on 2026-08-25, removal scheduled for 2027-04-15: Use GET /api/agents/{agent_id} instead.. */ async retrieve( agentId: string, @@ -86,6 +88,8 @@ export class ClientAgents extends ClientSDK { * * @remarks * Return [agent](https://developers.glean.com/agents/agents-api)'s input and output schemas. You can use these schemas to detect changes to an agent's input or output structure. + * + * @deprecated method: Deprecated on 2026-08-25, removal scheduled for 2027-04-15: Use GET /api/agents/{agent_id}/schemas instead.. */ async retrieveSchemas( agentId: string, @@ -130,6 +134,8 @@ export class ClientAgents extends ClientSDK { * * @remarks * Search for [agents](https://developers.glean.com/agents/agents-api) by agent name. + * + * @deprecated method: Deprecated on 2026-08-25, removal scheduled for 2027-04-15: Use POST /api/agents/search instead.. */ async list( request: components.SearchAgentsRequest, @@ -147,6 +153,8 @@ export class ClientAgents extends ClientSDK { * * @remarks * Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the result as a stream of server-sent events (SSE). **Note**: If the agent uses an input form trigger, all form fields (including optional fields) must be included in the `input` object. + * + * @deprecated method: Deprecated on 2026-08-25, removal scheduled for 2027-04-15: Use POST /api/agents/{agent_id}/runs with stream=true instead.. */ async runStream( request: components.AgentRunCreate, @@ -164,6 +172,8 @@ export class ClientAgents extends ClientSDK { * * @remarks * Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the final response. **Note**: If the agent uses an input form trigger, all form fields (including optional fields) must be included in the `input` object. + * + * @deprecated method: Deprecated on 2026-08-25, removal scheduled for 2027-04-15: Use POST /api/agents/{agent_id}/runs instead.. */ async run( request: components.AgentRunCreate, From 8e1874a491142985705b8dd7327f1511166f620c Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Tue, 1 Sep 2026 09:16:17 +0000 Subject: [PATCH 2/2] empty commit to trigger [run-tests] workflow