From 132b2b2d0bc1c0cc48553c44d3757f5af0a637f8 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 25 Aug 2026 05:41:56 +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.runStream()`: `error.authenticationSuggestions[].requestType.enum(sandboxEgress)` **Added** * `glean.client.agents.run()`: `error.authenticationSuggestions[].requestType.enum(sandboxEgress)` **Added** --- .speakeasy/gen.lock | 142 +++++++++--------- .speakeasy/gen.yaml | 2 +- .speakeasy/glean-merged-spec.yaml | 27 +++- .speakeasy/tests.arazzo.yaml | 12 +- .speakeasy/workflow.lock | 12 +- RELEASES.md | 12 +- docs/models/components/chatmessagefragment.md | 22 +-- .../platformagentruncreaterequest.md | 7 +- .../components/platformchatcreaterequest.md | 2 +- .../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/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 +- .../handler/pathpostrestapiv1getchat.go | 4 +- .../models/components/chatmessagefragment.go | 3 + .../models/components/servertoolrequest.go | 3 + .../models/components/servertoolresponse.go | 6 + src/__tests__/skills.test.ts | 6 +- src/__tests__/summarize.test.ts | 6 +- src/lib/config.ts | 4 +- src/models/components/chatmessagefragment.ts | 3 + src/models/components/servertoolrequest.ts | 4 + src/models/components/servertoolresponse.ts | 7 + 37 files changed, 248 insertions(+), 155 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index afaa7c6d7..e7624760c 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: 7e87ed5a374c0e4c90b16c9cca228ad5 docVersion: 0.9.0 - speakeasyVersion: 1.795.1 + speakeasyVersion: 1.795.3 generationVersion: 2.932.9 - releaseVersion: 0.19.0 - configChecksum: 3876461a99417effa3db61451f57122f + 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: f7bbbe6c-63e4-4971-9576-08607ca3f433 + pristine_commit_hash: 8f3118ac03d8fbd54dc4dc8ba3896ed9299d5ca5 + pristine_tree_hash: 8b972199b8d40d66a067f6c3db5e5adc406f92c1 features: typescript: acceptHeaders: 2.81.2 @@ -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 @@ -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 @@ -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,8 +3602,8 @@ 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 @@ -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 @@ -4354,8 +4354,8 @@ trackedFiles: pristine_git_object: 2e612d4143e02dd5e90750945b781302230969b3 src/__tests__/mockserver/internal/handler/pathpostrestapiv1getchat.go: id: 4a9c64bf3a68 - last_write_checksum: sha1:2766e6a943d9c18dc4d8a7f9e3bc7122a76bde0c - pristine_git_object: e2243868c4ccfbb9c80e49f9ca99c92735f4978f + last_write_checksum: sha1:bd92836a7e38740708f76f52b19704fda11d9ab7 + pristine_git_object: a7e16d16bf67e08174b9a7ec990934165ce72f6a src/__tests__/mockserver/internal/handler/pathpostrestapiv1getchatapplication.go: id: 069e6f3638f9 last_write_checksum: sha1:fe7b6e94356f030628f826fdaa494f1f87bcba8a @@ -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 @@ -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:1e95e1b90340a78c75fff0ad8c359e2bb6aa63a9 + pristine_git_object: 05ec6a88629b5f9b55c270e74c4158318d3a5334 src/__tests__/testclient.ts: id: f142c080bff8 last_write_checksum: sha1:3a38647391f52221c009a9273eebf90793b3d430 @@ -8362,8 +8362,8 @@ trackedFiles: pristine_git_object: 42d9739ab67c2fec0689f83777ffa5e1f875e5d5 src/lib/config.ts: id: 320761608fb3 - last_write_checksum: sha1:523b82c157c998a6fc7837d816c6f69f0be6c048 - pristine_git_object: a861dcf66edbeae34507526a6c4ddd79f06eccaa + last_write_checksum: sha1:5208fefd7f9d28450f1943dd07b7a7f1b6ce96a3 + pristine_git_object: e9a05b1ff7a10e607655b5943c7bf9120103885f src/lib/encodings.ts: id: 3bd8ead98afd last_write_checksum: sha1:a74725064d06b6994b95873c037975d2f2e63467 @@ -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 @@ -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 @@ -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.runStream()`: `error.authenticationSuggestions[].requestType.enum(sandboxEgress)` **Added**\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 ac133c05a..22e50dfa2 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 c95405616..2e9195063 100644 --- a/.speakeasy/glean-merged-spec.yaml +++ b/.speakeasy/glean-merged-spec.yaml @@ -2,8 +2,8 @@ openapi: 3.0.0 info: version: "0.9.0" title: Glean API - x-source-commit-sha: ae20e37cc1d6786192c975f846fbe57527d94d7e - x-open-api-commit-sha: 68a8939fe1b80a3a659ea78c778a5ddfdcb8e999 + x-source-commit-sha: 57c5ed97e505b6f223d7a45ad5a2a341e256c949 + x-open-api-commit-sha: 9ada039d29c22a526e3f2aedf1e2592fa53f9662 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. @@ -6747,6 +6747,8 @@ components: PlatformAgentsSearchRequest: type: object additionalProperties: false + example: + name: HR Policy Agent properties: name: type: string @@ -7070,6 +7072,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 +7194,8 @@ components: additionalProperties: false required: - input + example: + input: What is our parental leave policy? properties: input: description: | @@ -7586,6 +7596,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 +7691,8 @@ components: additionalProperties: false required: - source_url + example: + source_url: https://github.com/anthropics/skills properties: source_url: type: string @@ -7800,6 +7815,8 @@ components: additionalProperties: false required: - status + example: + status: ENABLED properties: status: $ref: "#/components/schemas/PlatformSkillUpdateStatus" @@ -12896,15 +12913,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 +13024,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 diff --git a/.speakeasy/tests.arazzo.yaml b/.speakeasy/tests.arazzo.yaml index 1f6aa2f31..69fbc16d7 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 2d68e9d74..2c491ad0e 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.795.1 +speakeasyVersion: 1.795.3 sources: Glean API: sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:90133ae2ed4bca7f388138e9d043405e381f920c07c8e54bdf3af2505b0a24ae - sourceBlobDigest: sha256:ffea0cebe421d06f6145114c557713c6b11600ae8dc1e06469304d89e720bf27 + sourceRevisionDigest: sha256:e01ddc11a28e6d9d70b5fbdca734adda6afd78d0f036fdacd1e45bc1018c71e3 + sourceBlobDigest: sha256:dfcec6e88b95c1857e5d16505ee38ec177a63a994df6b9f9658f360cc93b9ba6 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:e01ddc11a28e6d9d70b5fbdca734adda6afd78d0f036fdacd1e45bc1018c71e3 + sourceBlobDigest: sha256:dfcec6e88b95c1857e5d16505ee38ec177a63a994df6b9f9658f360cc93b9ba6 codeSamplesNamespace: glean-api-specs-typescript-code-samples - codeSamplesRevisionDigest: sha256:51424c3cd77373d24d2b3ca6e99292bdf03e6b400fdb6b5ca3ed7b5b772862b8 + codeSamplesRevisionDigest: sha256:db1f96aaf813aa5c71cbd054bbc443eadda36766197ce97a716d515d17d4bb72 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/RELEASES.md b/RELEASES.md index 49a476d36..d39cdb07f 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-08-25 05:33:43 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.795.3 (2.932.9) 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 5b8986ca7..78f1d87e3 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/platformagentruncreaterequest.md b/docs/models/components/platformagentruncreaterequest.md index 97f6f64cb..ee9107237 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 12abbb633..099a50a0a 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/platformskillimportrequest.md b/docs/models/components/platformskillimportrequest.md index fb5594cb4..ed9ecc4e2 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 005f74cb8..dda4c2d63 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 9d89f5e3a..c89c21f0f 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 fb8ab7e66..928eb4d6a 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 cf0c4444c..995a430b8 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 826a50f93..f7f111e99 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 42ab2a288..804b34b39 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 dde34ad67..c23c378b3 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 774077210..a05490d2a 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 0cee28a41..21e440ccd 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 aeb33e09b..9e1f17914 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/skills/README.md b/docs/sdks/skills/README.md index 4231043fb..bf28c8a8a 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 3e60ffb08..ceeb2e9ea 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 c1e678a6b..df343d1cc 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 ec6227d02..5911dced5 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 9fb584bc8..eee7a9078 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 d8d0af0f3..36eba32b1 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 b901ea017..4ddce4996 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/handler/pathpostrestapiv1getchat.go b/src/__tests__/mockserver/internal/handler/pathpostrestapiv1getchat.go index e2243868c..a7e16d16b 100644 --- a/src/__tests__/mockserver/internal/handler/pathpostrestapiv1getchat.go +++ b/src/__tests__/mockserver/internal/handler/pathpostrestapiv1getchat.go @@ -629,8 +629,8 @@ func testGetchatGetchat0(w http.ResponseWriter, req *http.Request) { Roles: []components.UserRoleSpecification{}, SourceDocumentSpec: types.Pointer(components.CreateDocumentSpecUnionDocumentSpec3( components.DocumentSpec3{ - UgcType: components.DocumentSpecUgcType1Shortcuts, - ContentID: 602763, + UgcType: components.DocumentSpecUgcType1Announcements, + ContentID: 848009, }, )), SourceType: components.AnswerSourceTypeAssistant.ToPointer(), diff --git a/src/__tests__/mockserver/internal/sdk/models/components/chatmessagefragment.go b/src/__tests__/mockserver/internal/sdk/models/components/chatmessagefragment.go index 19dbe6dd3..a0814c39f 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/servertoolrequest.go b/src/__tests__/mockserver/internal/sdk/models/components/servertoolrequest.go index 6d1307d14..1a9897e95 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 400f5e312..9869ed214 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 b5a61d741..80853fce6 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 bb5e2b02f..05ec6a886 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: "SHORTCUTS", + contentId: 602763, }, { - id: "", + ugcType: "SHORTCUTS", + contentId: 602763, }, ], }); diff --git a/src/lib/config.ts b/src/lib/config.ts index 692754890..c6d62ce68 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", + sdkVersion: "0.19.1", genVersion: "2.932.9", userAgent: - "speakeasy-sdk/typescript 0.19.0 2.932.9 0.9.0 @gleanwork/api-client", + "speakeasy-sdk/typescript 0.19.1 2.932.9 0.9.0 @gleanwork/api-client", } as const; diff --git a/src/models/components/chatmessagefragment.ts b/src/models/components/chatmessagefragment.ts index ca961cb41..f88403f82 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/servertoolrequest.ts b/src/models/components/servertoolrequest.ts index da86ece7a..e034149e1 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 7b4fbbef7..ed09f8839 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 = { /** From dfcc9a92d196465fa47cf070d1b83198b80c7e83 Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Tue, 25 Aug 2026 05:42:06 +0000 Subject: [PATCH 2/2] empty commit to trigger [run-tests] workflow