From 6fe04d4736391a3af2f56586875c238dc7372ae9 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 27 Aug 2026 07:04:18 +0000 Subject: [PATCH 1/2] ## Go 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 | 134 +++++++++--------- .speakeasy/gen.yaml | 2 +- .speakeasy/glean-merged-spec.yaml | 102 ++++++++----- .speakeasy/tests.arazzo.yaml | 12 +- .speakeasy/workflow.lock | 12 +- RELEASES.md | 12 +- docs/models/components/chatmessagefragment.md | 22 +-- docs/models/components/importagentrequest.md | 16 +-- .../components/platformsearchrequest.md | 16 +-- .../servertoolrequestrequesttype.md | 3 +- docs/models/components/servertoolresponse.md | 3 + .../servertoolresponserequesttype.md | 3 +- .../platformagentscreaterunrequest.md | 8 +- .../operations/platformskillsupdaterequest.md | 8 +- docs/sdks/agents/README.md | 19 ++- docs/sdks/chat/README.md | 2 +- docs/sdks/skills/README.md | 18 +-- glean.go | 6 +- models/components/chatmessagefragment.go | 3 + models/components/importagentrequest.go | 2 +- models/components/servertoolrequest.go | 4 +- models/components/servertoolresponse.go | 7 +- tests/agents_test.go | 9 +- tests/chat_test.go | 2 +- tests/messages_test.go | 2 +- .../pathpostrestapiv1createcollection.go | 20 +-- .../models/components/chatmessagefragment.go | 3 + .../models/components/importagentrequest.go | 2 +- .../models/components/servertoolrequest.go | 3 + .../models/components/servertoolresponse.go | 6 + tests/skills_test.go | 6 +- tests/summarize_test.go | 13 +- 32 files changed, 283 insertions(+), 197 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 4a34ac82..27b5b90e 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,18 +1,18 @@ lockVersion: 2.0.0 id: 9d90eb9e-33f8-4170-8944-988f4000aad0 management: - docChecksum: 89c2eac364945e9c2e201f80cb8a2d72 + docChecksum: 1eb5a91b41755099a3ddc9fac9c24584 docVersion: 0.9.0 - speakeasyVersion: 1.795.1 - generationVersion: 2.932.9 - releaseVersion: 0.14.0 - configChecksum: bd647861196c882cd8f159366b16f550 + speakeasyVersion: 1.796.0 + generationVersion: 2.932.15 + releaseVersion: 0.14.1 + configChecksum: 8c89c283820d9faac4e45a791dc0cb8c repoURL: https://github.com/gleanwork/api-client-go.git installationURL: https://github.com/gleanwork/api-client-go persistentEdits: - generation_id: 2ae4ab0e-6e84-4e18-a277-7936cb7aa759 - pristine_commit_hash: 96943951f61442dcecedbbfa802c42af121a5424 - pristine_tree_hash: e5d2c96ac1526322ad148a1b0a155dfcf9f2a5c6 + generation_id: 5e206870-dee3-480f-8435-bf3429f67d07 + pristine_commit_hash: a7e8a0bc4987959e22a6f070d9cf1feee2d49bec + pristine_tree_hash: da5ea190786d70a2b7f0d1b311706a50b8e5b244 features: go: acceptHeaders: 2.81.2 @@ -20,7 +20,7 @@ features: additionalProperties: 0.1.3 callbacks: 1.0.0 constsAndDefaults: 0.1.14 - core: 3.13.48 + core: 3.13.50 defaultEnabledRetries: 0.2.0 deprecations: 2.81.3 devContainers: 2.90.0 @@ -556,8 +556,8 @@ trackedFiles: pristine_git_object: c29ceba4987fd7eaa17da562cd91ec9581939c26 docs/models/components/chatmessagefragment.md: id: 3a80e2474b95 - last_write_checksum: sha1:8859974562717e36c74e7a8aacf96c318bc0906f - pristine_git_object: 628af271a2e8812683f1223eecf12ff517a1c9f6 + last_write_checksum: sha1:87315ef8bc9b3e594b9ace1897332f8e06bfc827 + pristine_git_object: ae414d5dd16623bfe911c6bf6581f80821fa1cd6 docs/models/components/chatmetadata.md: id: a42b157a4213 last_write_checksum: sha1:d2c1df032c03fc56c206fc869b2660eef6426fc8 @@ -1588,8 +1588,8 @@ trackedFiles: pristine_git_object: 421e7bcbf791882890006493fc396af77d935aa8 docs/models/components/importagentrequest.md: id: 1ee3f8dcd8a0 - last_write_checksum: sha1:195ead1e5cb0b91b5614eff54399b75d94bcddb1 - pristine_git_object: 9bbeb6e065e4505be79a91feb10bb5b5f11bb39f + last_write_checksum: sha1:0d5ed7aec38b890e16579def874549faa34ccf85 + pristine_git_object: a500e58002ca301f6733cbb93074bfc89b206fac docs/models/components/importagentresponse.md: id: edf01278294b last_write_checksum: sha1:e6c0aaeb02571ebd5ea47c7fe055005e23a38a0c @@ -2196,8 +2196,8 @@ trackedFiles: pristine_git_object: bda9a3c0cf2daba3b28ab5d20ee51fdd9c4d00c5 docs/models/components/platformsearchrequest.md: id: 8636ff30ae76 - last_write_checksum: sha1:d7bff4478709bcebc1f9c27c6ea7ea31aceaf3b6 - pristine_git_object: c2adcb530ec2229b2c356fec057bdae07add38ff + last_write_checksum: sha1:f9086fe91a6943c3074ef9d8ee6bf641c302c2ef + pristine_git_object: 9c4745f437adeed84709a5074bb6a4a3b249c950 docs/models/components/platformsearchresponse.md: id: d398b8139176 last_write_checksum: sha1:c17551cbe6f7d1b1fe52da94e859bdf73c0c35e6 @@ -2712,16 +2712,16 @@ trackedFiles: pristine_git_object: db175e32a5e845918aacbe065dc4f10438625760 docs/models/components/servertoolrequestrequesttype.md: id: bcc968a16a2d - last_write_checksum: sha1:5cf37e2350cb10776abf3d245e05d2a689e2a385 - pristine_git_object: e353ba843d3ba5e0874eb29f1e6461204a02b0b8 + last_write_checksum: sha1:1b2af1c97f305a4383c15eda3826b5b0c3277576 + pristine_git_object: 950c78016f0d37aa7bdb10cc437b278f9020a90c docs/models/components/servertoolresponse.md: id: b6819298a903 - last_write_checksum: sha1:1ef3acf09cd286995e905a754cf40cc53dfad145 - pristine_git_object: c6c5a75d92b419c9225214f1f9f990a8bc1a9627 + last_write_checksum: sha1:5e5d13a2f67f10dbaaf81f6397d5a5e69cc84975 + pristine_git_object: 11f85b745291ab99eb60ba584d903abede891e69 docs/models/components/servertoolresponserequesttype.md: id: 6321435ecc96 - last_write_checksum: sha1:41fc3e77085d8467d8f3ab3354cd32df0d78273b - pristine_git_object: 051ad2a55864cef3c6e95959b446364d74f5b807 + last_write_checksum: sha1:286f8cfb9c3a9a83fc7d464f2bb41df92285bc6b + pristine_git_object: 5901c85e4736c48f40ee4db2e94ebb47a2ee05f2 docs/models/components/sessioninfo.md: id: e292498adc48 last_write_checksum: sha1:3e35a26fa026e554c6adc825a626cf2d1c2d86a0 @@ -3764,8 +3764,8 @@ trackedFiles: pristine_git_object: 6077b6e72612d535b72ae2fafe6875eb6e701884 docs/models/operations/platformagentscreaterunrequest.md: id: "388574933310" - last_write_checksum: sha1:3d2e96f7a0b491c09e43c0cb0fb650bbb9dd33ca - pristine_git_object: e65f1f729dafecfaccdb1849a559f69e0ed3d902 + last_write_checksum: sha1:922a3668a8fee2a05e068fafff060454f0f6087f + pristine_git_object: f07c50d65fe1cc014fe1529a022b81979a327e28 docs/models/operations/platformagentscreaterunresponse.md: id: aa686cb7fdf0 last_write_checksum: sha1:605b43f6e9ed9c6d439248e64737cd7bf4c30e48 @@ -3892,8 +3892,8 @@ trackedFiles: pristine_git_object: dec2d00a439ea10c09ed1aaef88ee4ba49c1bb9b docs/models/operations/platformskillsupdaterequest.md: id: 0ecd8af8f701 - last_write_checksum: sha1:c83db8d45ba99eb53c8e302dadc41b5650518c58 - pristine_git_object: b36ca2045f060a22b3aa179f9bf55a6928dd92c7 + last_write_checksum: sha1:b8ab87aedb11aa4cab7beb89d168fd89bbbc4509 + pristine_git_object: 1eed3c045948ecd01ed25cbb113f3f6438c68039 docs/models/operations/platformskillsupdateresponse.md: id: 4d5eff94e86b last_write_checksum: sha1:b7eab08d7d94756c2ec86e283ea444513021dadd @@ -4292,8 +4292,8 @@ trackedFiles: pristine_git_object: 018ef72bf766f3a72131d0539b29ae19162b8c75 docs/sdks/agents/README.md: id: 5965d8232fd8 - last_write_checksum: sha1:e1234d2b815480c404d1ca2fcd0e310b7530d87b - pristine_git_object: cecb776156de78e1099c8c65ce4243468926f29a + last_write_checksum: sha1:4e07fbc8d39ade48a9210770f4c8e764d922b901 + pristine_git_object: e6dc3f88ad86511e4c95934e6e5bbc3ce5722461 docs/sdks/announcements/README.md: id: 3d2e130a217c last_write_checksum: sha1:97d528dc357f375132308cb8343e29e151f0ffa1 @@ -4304,8 +4304,8 @@ trackedFiles: pristine_git_object: eb3586c19afd9dfda47ca746441495da0473be29 docs/sdks/chat/README.md: id: 393193527c2c - last_write_checksum: sha1:8fb50f478695f8097a7b2fc9db8acc364445ffa0 - pristine_git_object: a04a4e0aaab04ed689d017a3477a74b80dfd999c + last_write_checksum: sha1:6e47f2bdd2910f34deaab9cdf2e75ce86c89a2f2 + pristine_git_object: 3d02a9fdf6a5fee561bfe756626d20278a24a723 docs/sdks/clientagents/README.md: id: 8e00e6d6b64e last_write_checksum: sha1:da8bec05374f2003790dd0245cf032463e720f6e @@ -4404,8 +4404,8 @@ trackedFiles: pristine_git_object: 15858805e5360381ad4da1bfdbac9e338dfd3b70 docs/sdks/skills/README.md: id: 3a14a5c90791 - last_write_checksum: sha1:59daf47c9958bd48647727792825ab6335dd2c27 - pristine_git_object: 25e58ff3d2647bf54fc5a275f5f308c91a36e00a + last_write_checksum: sha1:ab94abda298cb8d2e316eab190ad9dc5394a4fe0 + pristine_git_object: 5215fe65a3a129553787aecda880c539efb3b4f9 docs/sdks/tools/README.md: id: 044286549bac last_write_checksum: sha1:a8e527fcecf1c5e4aa40492d811a7bcb3e955276 @@ -4436,8 +4436,8 @@ trackedFiles: pristine_git_object: a3cb3e5448f3fdcfad77ed2a4ba47ae848d5cd5d glean.go: id: f5ed099b8e85 - last_write_checksum: sha1:ca20130d951922fa74e84c8b98eed60d4b60e9c7 - pristine_git_object: f30bbdf75301d3f4f00a37a1114305eb92709fe1 + last_write_checksum: sha1:26f9c0a7f3d2bbb3c8cf7721928310b561223c42 + pristine_git_object: 5e534434e8e4228ebf97c1365841394c7afab6d3 go.mod: id: c47645c391ad last_write_checksum: sha1:cf65a2c96e303858d4cf70e07d4c44d3f1c1db38 @@ -4860,8 +4860,8 @@ trackedFiles: pristine_git_object: b266f0a6bc32c1e660bbc1851a6d7abf64098bd8 models/components/chatmessagefragment.go: id: 8b451ad53a7d - last_write_checksum: sha1:0f5cde5f3d94ee71a89daeecbe9428a01f6122ce - pristine_git_object: 70992ba96a93361e90247155469f75626542605d + last_write_checksum: sha1:0560570f8794cdfba4963d02dfbd5f1e9d78155a + pristine_git_object: 51a98d0f06e1b8cde8e8dba490b54b6be9541dd8 models/components/chatmetadata.go: id: 6dc153d433ee last_write_checksum: sha1:4e113342074df7215023e788297815eca2e9f48e @@ -5692,8 +5692,8 @@ trackedFiles: pristine_git_object: 399ed2fc9b63bda95a256ff1c8e5859cf84c4f95 models/components/importagentrequest.go: id: 63d1b07035cb - last_write_checksum: sha1:d774cbd18528060a319d654bfcace94b7ff4c34c - pristine_git_object: db7060e25a217621a287ec8e9f5e6e31fa52c378 + last_write_checksum: sha1:2335ef00ca0d18deb31173c870c8d348d77a509a + pristine_git_object: 2e321c09785cb71bc79195f1aa65de9634c1c9a1 models/components/importagentresponse.go: id: 1bd083f19e0c last_write_checksum: sha1:9c0e81640e0c5e9dffee91c71b3f848057c7a345 @@ -6568,12 +6568,12 @@ trackedFiles: pristine_git_object: c88a2fb6e23612ad4444374fc18bc48d88d427d5 models/components/servertoolrequest.go: id: e4801d9923ae - last_write_checksum: sha1:b01b836cef197200a8fa9dcbdd98370ba9b7b566 - pristine_git_object: c1015ac9fcd139f35ddb1f0a1c3522750d127303 + last_write_checksum: sha1:09a0c9f4b513876934d667f40ffb7ebee3e89e9e + pristine_git_object: 093b43baa08a2b90ce47724f65ba9536a1017ab0 models/components/servertoolresponse.go: id: 87a5b4b61cc5 - last_write_checksum: sha1:e95269a590220f58111ebfa09a547619e2b113c1 - pristine_git_object: 50f633612e733a0f1dfe29691752effe23feee5a + last_write_checksum: sha1:59a4218143ccff73615b59b826a8ea3d0472771d + pristine_git_object: 049dcd2000dc1b9d2c772320b77ad16b149df1b9 models/components/sessioninfo.go: id: eceeb71ccb8f last_write_checksum: sha1:8aa12e13cbfc1e5685c46295b22f59156388dc32 @@ -7620,8 +7620,8 @@ trackedFiles: pristine_git_object: e01e64d74275c548227d1230509ec9bc80bcc4ee tests/agents_test.go: id: 8512a40a0375 - last_write_checksum: sha1:39886e4e4e2e820471747aff816a702011cbf7fb - pristine_git_object: b59811ba0371eb65072c84206e1595c66b931664 + last_write_checksum: sha1:ecb384a0d407190c4cb8210a28dd54f15f9497bf + pristine_git_object: 2445dd56919d728db53aa60fb35107c3eb24f41e tests/announcements_test.go: id: 983abc2e09c3 last_write_checksum: sha1:cb5b57a0d61b67a848b2e21a1e4435b8f995a72e @@ -7636,8 +7636,8 @@ trackedFiles: pristine_git_object: 294a7750becac3a4f3871f1d5860701efb00fe90 tests/chat_test.go: id: 7bb6349174a9 - last_write_checksum: sha1:a9ca4fd8a74daf66acaa40676ddec533b9b9e4b1 - pristine_git_object: 77bcd57f067a05e07a4aa2c58e015bd8eb547ec8 + last_write_checksum: sha1:9694104347b72825b9c969185b5ba7d71e0536be + pristine_git_object: 432e4add40c6c409f54298dffdba9e792276aee7 tests/clientactivity_test.go: id: a9737434a9ce last_write_checksum: sha1:02ee2359e784247291c5bec183d5c724f335c0d2 @@ -7724,8 +7724,8 @@ trackedFiles: pristine_git_object: 6d9cbca42012c2760de3ecaf4f569c53d32197da tests/messages_test.go: id: 3433c956b7a3 - last_write_checksum: sha1:0e70d5a95dcfffb2d01931c47eae827d7c95129a - pristine_git_object: bc499ec73cc495c1502d01361347ce76a0fe5f18 + last_write_checksum: sha1:48e3131585272d616898306eee7e28c886bb6fe2 + pristine_git_object: 0e847b6f42cc2ac96b67b69fa6ade86ae35542d5 tests/mockserver/.gitignore: id: 7705eb663274 last_write_checksum: sha1:228e1b05712a973948fd771323a2140a3b355ff4 @@ -8140,8 +8140,8 @@ trackedFiles: pristine_git_object: ab9263d43404e8e6f07af222a3e785aca2fbf35f tests/mockserver/internal/handler/pathpostrestapiv1createcollection.go: id: 3fb93a419933 - last_write_checksum: sha1:09a57acc1d004a2fff76290b6c25e24471ad333e - pristine_git_object: 469bd6e6ee30bb11661f2a596a4504b75fa07da0 + last_write_checksum: sha1:7b2ffc9e36bbfc20c3bc1894f3727f96aa94ac74 + pristine_git_object: 75fb8eb70f6913c8f83c2895f5542bee631ffdaf tests/mockserver/internal/handler/pathpostrestapiv1createshortcut.go: id: 8d9d3abb0c34 last_write_checksum: sha1:2f9468a50936c4cb0fb2101d97c1425cb36ba2d4 @@ -8656,8 +8656,8 @@ trackedFiles: pristine_git_object: f06157bccfa3a63727745952da0cfa5d323c3d23 tests/mockserver/internal/sdk/models/components/chatmessagefragment.go: id: 8d14e05d6934 - last_write_checksum: sha1:d41f5568b67d2f41291d7fc880ef28fad6d59a72 - pristine_git_object: 632727b0852cefdc9b6ce1267faeddd4b164a1d0 + last_write_checksum: sha1:76403862fa202942fb3aece99946850c0d1f6f21 + pristine_git_object: 99f8ed7d37dc7334d81d332a7c25098d41b14906 tests/mockserver/internal/sdk/models/components/chatmetadata.go: id: 53881e1500d3 last_write_checksum: sha1:2069155b9191362259f87a10f5eb7426b3bad1b8 @@ -9488,8 +9488,8 @@ trackedFiles: pristine_git_object: 537d53a4d6235b3f67a08a6b3c08f88a6782f8ec tests/mockserver/internal/sdk/models/components/importagentrequest.go: id: e32c8cfe1620 - last_write_checksum: sha1:75b76342950aac00545d4ea1d5b276b44441d765 - pristine_git_object: f4d77d24a94bc7b21ea6f064c917c24b2a7c7af7 + last_write_checksum: sha1:c9c53dcc1d4a41358ceaaa5af0cb024b4c5088f2 + pristine_git_object: 1dd4383e619f5890ee3038c5aca40d12e79c538d tests/mockserver/internal/sdk/models/components/importagentresponse.go: id: f99e9c9fe605 last_write_checksum: sha1:bf26c40925bea852b8a302a4c3c585707a1b1622 @@ -10364,12 +10364,12 @@ trackedFiles: pristine_git_object: 207653771e5bb2ae5982853962b6318d8c83229f tests/mockserver/internal/sdk/models/components/servertoolrequest.go: id: 574fa6f36078 - last_write_checksum: sha1:6690ff38d976f82a1c585d4c9ab3cebfd1ad2828 - pristine_git_object: 3bf8c6b39892210207a22b82d84673f88b5659c1 + last_write_checksum: sha1:5797ecad57b0bd287b321202bb3c8c6c7cb84c5f + pristine_git_object: c4437ec5a8d0e2853f75f41a25e9d9536c120c8e tests/mockserver/internal/sdk/models/components/servertoolresponse.go: id: 621e6633f5d6 - last_write_checksum: sha1:4b508f1f965688a2066e0c4f61c03a9d736516e6 - pristine_git_object: f4b84c3b0ec23c99703c36f92065a4071d389743 + last_write_checksum: sha1:692af6a4cbc61ff2f03245685fc6202e4f253f5b + pristine_git_object: a518da25fe1c2a61640f0b1c2e9de510f4a705d5 tests/mockserver/internal/sdk/models/components/sessioninfo.go: id: 23183e4b8fb8 last_write_checksum: sha1:d0a7c3cb679745701743e6ec68c15cf72b3e0a2f @@ -11504,12 +11504,12 @@ trackedFiles: pristine_git_object: 8cb22a4f9f5c92c58011777b8e05cb11d7db5eca tests/skills_test.go: id: 67834dec1608 - last_write_checksum: sha1:4ac1c7f7a418e0828ee0decb31351f3f0b084570 - pristine_git_object: 34de629e636ff1ec4a5341bdf6b0ae06aa408ba4 + last_write_checksum: sha1:5a39e8c236db7c1ffb5b816be0e905fe364f0803 + pristine_git_object: f6ef683531884725f5107c32848516513f87e494 tests/summarize_test.go: id: 1b63b0a16e69 - last_write_checksum: sha1:ca6dc11ab46aab547f96cfa948c7d75dc3ef9cbc - pristine_git_object: 82e7014fe632efda0d2f05376b17812f945a5f1a + last_write_checksum: sha1:bc69738af59c73ce2c879c5e10a457eb451f8f72 + pristine_git_object: d470e2e3dc7390a884e96fba9f1ed59011856725 tests/testclient.go: id: 78d36c6e169c last_write_checksum: sha1:507c44e437934fbff8d295201c1327e18bd00df8 @@ -12543,7 +12543,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": ""} @@ -12708,7 +12708,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": ""} @@ -12720,7 +12720,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": ""} @@ -12731,7 +12731,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": ""} @@ -12746,7 +12746,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": ""} @@ -13128,7 +13128,7 @@ generatedTests: platform-trigger-presets-get: "2026-08-21T02:35:39Z" platform-trigger-presets-input-values-list: "2026-08-21T02:35:39Z" platform-trigger-presets-events-search: "2026-08-21T02:35:39Z" -releaseNotes: "## Go SDK Changes:\n* `Glean.Chat.Create()`: \n * `request.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: "## Go 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 1d34e1dc..bec6aa94 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -32,7 +32,7 @@ generation: generateNewTests: true skipResponseBodyAssertions: true go: - version: 0.14.0 + version: 0.14.1 additionalDependencies: {} allowUnknownFieldsInWeakUnions: false baseErrorName: GleanError diff --git a/.speakeasy/glean-merged-spec.yaml b/.speakeasy/glean-merged-spec.yaml index c9540561..33aff3f8 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: f03f70a76680cbbd18de3675ec933dcb6bd5e62d + x-open-api-commit-sha: f03222e4d501006b829e6768bfd4bd3e9938943c 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: | @@ -7327,8 +7337,9 @@ components: type: string minLength: 1 page_number: - type: integer - nullable: true + type: + - integer + - "null" PlatformChatCitationAnnotation: type: object additionalProperties: false @@ -7346,16 +7357,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 +7446,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 +7569,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 +7602,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 +7697,8 @@ components: additionalProperties: false required: - source_url + example: + source_url: https://github.com/anthropics/skills properties: source_url: type: string @@ -7800,6 +7821,8 @@ components: additionalProperties: false required: - status + example: + status: ENABLED properties: status: $ref: "#/components/schemas/PlatformSkillUpdateStatus" @@ -7891,8 +7914,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 +8035,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 +8090,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 +8101,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 +8132,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 +8311,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 +8673,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 +12926,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 +13037,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 +13626,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: diff --git a/.speakeasy/tests.arazzo.yaml b/.speakeasy/tests.arazzo.yaml index aa636156..82846818 100644 --- a/.speakeasy/tests.arazzo.yaml +++ b/.speakeasy/tests.arazzo.yaml @@ -164638,7 +164638,9 @@ workflows: contentType: application/json payload: messages: - - content: [] + - content: + - text: What is our parental leave policy? + type: text role: USER stream: false successCriteria: @@ -164906,7 +164908,7 @@ workflows: requestBody: contentType: application/json payload: - input: + input: What is our parental leave policy? store: true stream: false successCriteria: @@ -164926,7 +164928,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 @@ -164943,7 +164945,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 @@ -164965,7 +164967,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 6f81d16b..ca44a730 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.795.1 +speakeasyVersion: 1.796.0 sources: Glean API: sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:90133ae2ed4bca7f388138e9d043405e381f920c07c8e54bdf3af2505b0a24ae - sourceBlobDigest: sha256:ffea0cebe421d06f6145114c557713c6b11600ae8dc1e06469304d89e720bf27 + sourceRevisionDigest: sha256:ce83ddd7b2957ee9ef22a9f1ec057ceadd80ea0795a38156f2427803add9c759 + sourceBlobDigest: sha256:b372d68a25224b37d12bf9456cc186b20bf345cd5b2f59c6e43c455326d675da tags: - latest petstore-oas: @@ -17,10 +17,10 @@ targets: glean: source: Glean API sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:90133ae2ed4bca7f388138e9d043405e381f920c07c8e54bdf3af2505b0a24ae - sourceBlobDigest: sha256:ffea0cebe421d06f6145114c557713c6b11600ae8dc1e06469304d89e720bf27 + sourceRevisionDigest: sha256:ce83ddd7b2957ee9ef22a9f1ec057ceadd80ea0795a38156f2427803add9c759 + sourceBlobDigest: sha256:b372d68a25224b37d12bf9456cc186b20bf345cd5b2f59c6e43c455326d675da codeSamplesNamespace: glean-api-specs-go-code-samples - codeSamplesRevisionDigest: sha256:fc2042aa1a0f6694b8de1bc4283acdce56b3b2dd128d95896e35c1b0492663cd + codeSamplesRevisionDigest: sha256:71f7033329d1327a45956005c8575d16d63f8e771b7ec5923389a018f4e2f706 petstore: source: petstore-oas sourceNamespace: petstore-oas diff --git a/RELEASES.md b/RELEASES.md index 2fa643b2..4b13bd3b 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -828,4 +828,14 @@ Based on: ### Generated - [go v0.14.0] . ### Releases -- [Go v0.14.0] https://github.com/gleanwork/api-client-go/releases/tag/v0.14.0 - . \ No newline at end of file +- [Go v0.14.0] https://github.com/gleanwork/api-client-go/releases/tag/v0.14.0 - . + +## 2026-08-27 06:54:34 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.796.0 (2.932.15) https://github.com/speakeasy-api/speakeasy +### Generated +- [go v0.14.1] . +### Releases +- [Go v0.14.1] https://github.com/gleanwork/api-client-go/releases/tag/v0.14.1 - . \ No newline at end of file diff --git a/docs/models/components/chatmessagefragment.md b/docs/models/components/chatmessagefragment.md index 628af271..ae414d5d 100644 --- a/docs/models/components/chatmessagefragment.md +++ b/docs/models/components/chatmessagefragment.md @@ -5,14 +5,14 @@ Represents a part of a ChatMessage that originates from a single action/tool. It ## 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 9bbeb6e0..a500e580 100644 --- a/docs/models/components/importagentrequest.md +++ b/docs/models/components/importagentrequest.md @@ -3,11 +3,11 @@ ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Bundle` | [components.Bundle](../../models/components/bundle.md) | :heavy_check_mark: | Zip of the agent folder (spec.yaml, instructions.md, skills/, subagents/) with symlinks dereferenced.
| -| `GitCommitSha` | `*string` | :heavy_minus_sign: | Optional Git commit SHA to associate with this import. | -| `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` | `*bool` | :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 +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | +| `Bundle` | [components.Bundle](../../models/components/bundle.md) | :heavy_check_mark: | Zip of the agent folder (spec.yaml, instructions.md, skills/, subagents/) with symlinks dereferenced.
| +| `GitCommitSha` | `*string` | :heavy_minus_sign: | Optional Git commit SHA to associate with this import. | +| `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` | `*bool` | :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/platformsearchrequest.md b/docs/models/components/platformsearchrequest.md index c2adcb53..9c4745f4 100644 --- a/docs/models/components/platformsearchrequest.md +++ b/docs/models/components/platformsearchrequest.md @@ -3,11 +3,11 @@ ## 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` | `*int64` | :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` | `*int64` | :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/servertoolrequestrequesttype.md b/docs/models/components/servertoolrequestrequesttype.md index e353ba84..950c7801 100644 --- a/docs/models/components/servertoolrequestrequesttype.md +++ b/docs/models/components/servertoolrequestrequesttype.md @@ -22,4 +22,5 @@ custom := components.ServerToolRequestRequestType("custom_value") | ------------------------------------------------------ | ------------------------------------------------------ | | `ServerToolRequestRequestTypeExecution` | EXECUTION | | `ServerToolRequestRequestTypeAuthenticationSuggestion` | AUTHENTICATION_SUGGESTION | -| `ServerToolRequestRequestTypeVoteSuggestion` | VOTE_SUGGESTION | \ No newline at end of file +| `ServerToolRequestRequestTypeVoteSuggestion` | VOTE_SUGGESTION | +| `ServerToolRequestRequestTypeSandboxEgress` | SANDBOX_EGRESS | \ No newline at end of file diff --git a/docs/models/components/servertoolresponse.md b/docs/models/components/servertoolresponse.md index c6c5a75d..11f85b74 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 + ## Fields diff --git a/docs/models/components/servertoolresponserequesttype.md b/docs/models/components/servertoolresponserequesttype.md index 051ad2a5..5901c85e 100644 --- a/docs/models/components/servertoolresponserequesttype.md +++ b/docs/models/components/servertoolresponserequesttype.md @@ -22,4 +22,5 @@ custom := components.ServerToolResponseRequestType("custom_value") | ------------------------------------------------------- | ------------------------------------------------------- | | `ServerToolResponseRequestTypeExecution` | EXECUTION | | `ServerToolResponseRequestTypeAuthenticationSuggestion` | AUTHENTICATION_SUGGESTION | -| `ServerToolResponseRequestTypeVoteSuggestion` | VOTE_SUGGESTION | \ No newline at end of file +| `ServerToolResponseRequestTypeVoteSuggestion` | VOTE_SUGGESTION | +| `ServerToolResponseRequestTypeSandboxEgress` | SANDBOX_EGRESS | \ No newline at end of file diff --git a/docs/models/operations/platformagentscreaterunrequest.md b/docs/models/operations/platformagentscreaterunrequest.md index e65f1f72..f07c50d6 100644 --- a/docs/models/operations/platformagentscreaterunrequest.md +++ b/docs/models/operations/platformagentscreaterunrequest.md @@ -3,7 +3,7 @@ ## 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 b36ca204..1eed3c04 100644 --- a/docs/models/operations/platformskillsupdaterequest.md +++ b/docs/models/operations/platformskillsupdaterequest.md @@ -3,7 +3,7 @@ ## 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 cecb7761..e6dc3f88 100644 --- a/docs/sdks/agents/README.md +++ b/docs/sdks/agents/README.md @@ -208,7 +208,12 @@ func main() { Messages: []components.PlatformMessage{ components.PlatformMessage{ Role: components.PlatformMessageRoleUser, - Content: []components.PlatformMessageTextBlock{}, + Content: []components.PlatformMessageTextBlock{ + components.PlatformMessageTextBlock{ + Text: "What is our parental leave policy?", + Type: components.PlatformContentTypeText, + }, + }, }, }, }) @@ -223,12 +228,12 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `agentID` | `string` | :heavy_check_mark: | ID of the agent to run. | -| `platformAgentRunCreateRequest` | [components.PlatformAgentRunCreateRequest](../../models/components/platformagentruncreaterequest.md) | :heavy_check_mark: | N/A | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | | +| `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"
}
]
}
]
} | +| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | | ### Response diff --git a/docs/sdks/chat/README.md b/docs/sdks/chat/README.md index a04a4e0a..3d02a9fd 100644 --- a/docs/sdks/chat/README.md +++ b/docs/sdks/chat/README.md @@ -34,7 +34,7 @@ func main() { res, err := s.Chat.Create(ctx, components.PlatformChatCreateRequest{ Input: components.CreateInputStr( - "", + "What is our parental leave policy?", ), }) if err != nil { diff --git a/docs/sdks/skills/README.md b/docs/sdks/skills/README.md index 25e58ff3..5215fe65 100644 --- a/docs/sdks/skills/README.md +++ b/docs/sdks/skills/README.md @@ -169,7 +169,7 @@ func main() { res, err := s.Skills.Import(ctx, components.PlatformSkillImportRequest{ SourceUrls: []string{ - "", + "https://github.com/anthropics/skills/tree/main/skills/skill-creator", }, }) if err != nil { @@ -294,7 +294,7 @@ func main() { ) res, err := s.Skills.PreviewSource(ctx, components.PlatformSkillSourcePreviewRequest{ - SourceURL: "https://ugly-information.name/", + SourceURL: "https://github.com/anthropics/skills", }) if err != nil { log.Fatal(err) @@ -352,7 +352,7 @@ func main() { ) res, err := s.Skills.Update(ctx, "", components.PlatformSkillUpdateRequest{ - Status: components.PlatformSkillUpdateStatusDisabled, + Status: components.PlatformSkillUpdateStatusEnabled, }) if err != nil { log.Fatal(err) @@ -365,12 +365,12 @@ func main() { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | -| `skillID` | `string` | :heavy_check_mark: | Glean skill ID. | -| `platformSkillUpdateRequest` | [components.PlatformSkillUpdateRequest](../../models/components/platformskillupdaterequest.md) | :heavy_check_mark: | N/A | -| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | +| Parameter | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. | | +| `skillID` | `string` | :heavy_check_mark: | Glean skill ID. | | +| `platformSkillUpdateRequest` | [components.PlatformSkillUpdateRequest](../../models/components/platformskillupdaterequest.md) | :heavy_check_mark: | N/A | {
"status": "ENABLED"
} | +| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. | | ### Response diff --git a/glean.go b/glean.go index f30bbdf7..5e534434 100644 --- a/glean.go +++ b/glean.go @@ -2,7 +2,7 @@ package apiclientgo -// Generated from OpenAPI doc version 0.9.0 and generator version 2.932.9 +// Generated from OpenAPI doc version 0.9.0 and generator version 2.932.15 import ( "context" @@ -161,9 +161,9 @@ func WithTimeout(timeout time.Duration) SDKOption { // New creates a new instance of the SDK with the provided options func New(opts ...SDKOption) *Glean { sdk := &Glean{ - SDKVersion: "0.14.0", + SDKVersion: "0.14.1", sdkConfiguration: config.SDKConfiguration{ - UserAgent: "speakeasy-sdk/go 0.14.0 2.932.9 0.9.0 github.com/gleanwork/api-client-go", + UserAgent: "speakeasy-sdk/go 0.14.1 2.932.15 0.9.0 github.com/gleanwork/api-client-go", ServerList: ServerList, ServerVariables: []map[string]string{ { diff --git a/models/components/chatmessagefragment.go b/models/components/chatmessagefragment.go index 70992ba9..51a98d0f 100644 --- a/models/components/chatmessagefragment.go +++ b/models/components/chatmessagefragment.go @@ -30,6 +30,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/models/components/importagentrequest.go b/models/components/importagentrequest.go index db7060e2..2e321c09 100644 --- a/models/components/importagentrequest.go +++ b/models/components/importagentrequest.go @@ -35,7 +35,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/models/components/servertoolrequest.go b/models/components/servertoolrequest.go index c1015ac9..093b43ba 100644 --- a/models/components/servertoolrequest.go +++ b/models/components/servertoolrequest.go @@ -12,6 +12,8 @@ const ( ServerToolRequestRequestTypeAuthenticationSuggestion ServerToolRequestRequestType = "AUTHENTICATION_SUGGESTION" // ServerToolRequestRequestTypeVoteSuggestion Suggestion to vote for enabling an available-but-not-enabled tool. ServerToolRequestRequestTypeVoteSuggestion ServerToolRequestRequestType = "VOTE_SUGGESTION" + // ServerToolRequestRequestTypeSandboxEgress Request to approve an outbound/egress call from the sandbox. + ServerToolRequestRequestTypeSandboxEgress ServerToolRequestRequestType = "SANDBOX_EGRESS" ) func (e ServerToolRequestRequestType) ToPointer() *ServerToolRequestRequestType { @@ -22,7 +24,7 @@ func (e ServerToolRequestRequestType) ToPointer() *ServerToolRequestRequestType func (e *ServerToolRequestRequestType) IsExact() bool { if e != nil { switch *e { - case "EXECUTION", "AUTHENTICATION_SUGGESTION", "VOTE_SUGGESTION": + case "EXECUTION", "AUTHENTICATION_SUGGESTION", "VOTE_SUGGESTION", "SANDBOX_EGRESS": return true } } diff --git a/models/components/servertoolresponse.go b/models/components/servertoolresponse.go index 50f63361..049dcd20 100644 --- a/models/components/servertoolresponse.go +++ b/models/components/servertoolresponse.go @@ -16,6 +16,8 @@ const ( ServerToolResponseRequestTypeAuthenticationSuggestion ServerToolResponseRequestType = "AUTHENTICATION_SUGGESTION" // ServerToolResponseRequestTypeVoteSuggestion Suggestion to vote for enabling an available-but-not-enabled tool. ServerToolResponseRequestTypeVoteSuggestion ServerToolResponseRequestType = "VOTE_SUGGESTION" + // ServerToolResponseRequestTypeSandboxEgress Request to approve an outbound/egress call from the sandbox. + ServerToolResponseRequestTypeSandboxEgress ServerToolResponseRequestType = "SANDBOX_EGRESS" ) func (e ServerToolResponseRequestType) ToPointer() *ServerToolResponseRequestType { @@ -26,7 +28,7 @@ func (e ServerToolResponseRequestType) ToPointer() *ServerToolResponseRequestTyp func (e *ServerToolResponseRequestType) IsExact() bool { if e != nil { switch *e { - case "EXECUTION", "AUTHENTICATION_SUGGESTION", "VOTE_SUGGESTION": + case "EXECUTION", "AUTHENTICATION_SUGGESTION", "VOTE_SUGGESTION", "SANDBOX_EGRESS": return true } } @@ -73,6 +75,9 @@ func (e *GrantScope) IsExact() bool { // // 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/tests/agents_test.go b/tests/agents_test.go index b59811ba..2445dd56 100644 --- a/tests/agents_test.go +++ b/tests/agents_test.go @@ -137,8 +137,13 @@ func TestAgents_PlatformAgentsCreateRun(t *testing.T) { res, err := s.Agents.CreateRun(ctx, "", components.PlatformAgentRunCreateRequest{ Messages: []components.PlatformMessage{ components.PlatformMessage{ - Role: components.PlatformMessageRoleUser, - Content: []components.PlatformMessageTextBlock{}, + Role: components.PlatformMessageRoleUser, + Content: []components.PlatformMessageTextBlock{ + components.PlatformMessageTextBlock{ + Text: "What is our parental leave policy?", + Type: components.PlatformContentTypeText, + }, + }, }, }, }) diff --git a/tests/chat_test.go b/tests/chat_test.go index 77bcd57f..432e4add 100644 --- a/tests/chat_test.go +++ b/tests/chat_test.go @@ -25,7 +25,7 @@ func TestChat_PlatformChatCreate(t *testing.T) { res, err := s.Chat.Create(ctx, components.PlatformChatCreateRequest{ Input: components.CreateInputStr( - "", + "What is our parental leave policy?", ), }) require.NoError(t, err) diff --git a/tests/messages_test.go b/tests/messages_test.go index bc499ec7..0e847b6f 100644 --- a/tests/messages_test.go +++ b/tests/messages_test.go @@ -27,7 +27,7 @@ func TestMessages_Messages(t *testing.T) { IDType: components.IDTypeConversationID, ID: "", TimestampMillis: apiclientgo.Pointer[int64](558834), - Datasource: components.DatasourceMicrosoftteams, + Datasource: components.DatasourceSlackentgrid, }, nil) require.NoError(t, err) assert.Equal(t, 200, res.HTTPMeta.Response.StatusCode) diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1createcollection.go b/tests/mockserver/internal/handler/pathpostrestapiv1createcollection.go index 469bd6e6..75fb8eb7 100644 --- a/tests/mockserver/internal/handler/pathpostrestapiv1createcollection.go +++ b/tests/mockserver/internal/handler/pathpostrestapiv1createcollection.go @@ -56,14 +56,14 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ operations.ResponseBody2{ Collection: &components.Collection{ Name: "", - Description: "whole busily jive hawk gee basic minus hence", + Description: "motionless whenever paintwork import over cuckoo", AddedRoles: []components.UserRoleSpecification{ components.UserRoleSpecification{ Person: &components.Person{ Name: "George Clooney", ObfuscatedID: "abc123", }, - Role: components.UserRoleAnswerModerator, + Role: components.UserRoleOwner, }, }, RemovedRoles: []components.UserRoleSpecification{ @@ -90,7 +90,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ }, }, }, - ID: 158969, + ID: 363711, Creator: &components.Person{ Name: "George Clooney", ObfuscatedID: "abc123", @@ -101,7 +101,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ }, Items: []components.CollectionItem{ components.CollectionItem{ - CollectionID: 110375, + CollectionID: 570197, CreatedBy: &components.Person{ Name: "George Clooney", ObfuscatedID: "abc123", @@ -278,13 +278,13 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ Name: "George Clooney", ObfuscatedID: "abc123", }, - Role: components.UserRoleEditor, + Role: components.UserRoleAnswerModerator, }, }, }, Collection: &components.Collection{ Name: "", - Description: "wedge colorfully orientate rally", + Description: "athwart skateboard newsstand farm bourgeoisie ah how elliptical aha well-to-do", AudienceFilters: []components.FacetFilter{ components.FacetFilter{ FieldName: types.String("type"), @@ -300,7 +300,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ }, }, }, - ID: 131797, + ID: 643990, Creator: &components.Person{ Name: "George Clooney", ObfuscatedID: "abc123", @@ -312,7 +312,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ Children: []components.Collection{ components.Collection{ Name: "", - Description: "outside yippee sidetrack mature regularly mouser inject worth", + Description: "woot purse salty even as advanced", AudienceFilters: []components.FacetFilter{ components.FacetFilter{ FieldName: types.String("type"), @@ -328,7 +328,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ }, }, }, - ID: 149448, + ID: 359978, Creator: &components.Person{ Name: "George Clooney", ObfuscatedID: "abc123", @@ -340,7 +340,7 @@ func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Requ }, }, }, - ItemType: components.CollectionItemItemTypeCollection, + ItemType: components.CollectionItemItemTypeURL, }, }, }, diff --git a/tests/mockserver/internal/sdk/models/components/chatmessagefragment.go b/tests/mockserver/internal/sdk/models/components/chatmessagefragment.go index 632727b0..99f8ed7d 100644 --- a/tests/mockserver/internal/sdk/models/components/chatmessagefragment.go +++ b/tests/mockserver/internal/sdk/models/components/chatmessagefragment.go @@ -30,6 +30,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/tests/mockserver/internal/sdk/models/components/importagentrequest.go b/tests/mockserver/internal/sdk/models/components/importagentrequest.go index f4d77d24..1dd4383e 100644 --- a/tests/mockserver/internal/sdk/models/components/importagentrequest.go +++ b/tests/mockserver/internal/sdk/models/components/importagentrequest.go @@ -38,7 +38,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/tests/mockserver/internal/sdk/models/components/servertoolrequest.go b/tests/mockserver/internal/sdk/models/components/servertoolrequest.go index 3bf8c6b3..c4437ec5 100644 --- a/tests/mockserver/internal/sdk/models/components/servertoolrequest.go +++ b/tests/mockserver/internal/sdk/models/components/servertoolrequest.go @@ -14,6 +14,7 @@ const ( ServerToolRequestRequestTypeExecution ServerToolRequestRequestType = "EXECUTION" ServerToolRequestRequestTypeAuthenticationSuggestion ServerToolRequestRequestType = "AUTHENTICATION_SUGGESTION" ServerToolRequestRequestTypeVoteSuggestion ServerToolRequestRequestType = "VOTE_SUGGESTION" + ServerToolRequestRequestTypeSandboxEgress ServerToolRequestRequestType = "SANDBOX_EGRESS" ) func (e ServerToolRequestRequestType) ToPointer() *ServerToolRequestRequestType { @@ -30,6 +31,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/tests/mockserver/internal/sdk/models/components/servertoolresponse.go b/tests/mockserver/internal/sdk/models/components/servertoolresponse.go index f4b84c3b..a518da25 100644 --- a/tests/mockserver/internal/sdk/models/components/servertoolresponse.go +++ b/tests/mockserver/internal/sdk/models/components/servertoolresponse.go @@ -15,6 +15,7 @@ const ( ServerToolResponseRequestTypeExecution ServerToolResponseRequestType = "EXECUTION" ServerToolResponseRequestTypeAuthenticationSuggestion ServerToolResponseRequestType = "AUTHENTICATION_SUGGESTION" ServerToolResponseRequestTypeVoteSuggestion ServerToolResponseRequestType = "VOTE_SUGGESTION" + ServerToolResponseRequestTypeSandboxEgress ServerToolResponseRequestType = "SANDBOX_EGRESS" ) func (e ServerToolResponseRequestType) ToPointer() *ServerToolResponseRequestType { @@ -31,6 +32,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: @@ -81,6 +84,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/tests/skills_test.go b/tests/skills_test.go index 34de629e..f6ef6835 100644 --- a/tests/skills_test.go +++ b/tests/skills_test.go @@ -203,7 +203,7 @@ func TestSkills_PlatformSkillsImport(t *testing.T) { res, err := s.Skills.Import(ctx, components.PlatformSkillImportRequest{ SourceUrls: []string{ - "", + "https://github.com/anthropics/skills/tree/main/skills/skill-creator", }, }) require.NoError(t, err) @@ -223,7 +223,7 @@ func TestSkills_PlatformSkillsPreviewSource(t *testing.T) { ) res, err := s.Skills.PreviewSource(ctx, components.PlatformSkillSourcePreviewRequest{ - SourceURL: "https://ugly-information.name/", + SourceURL: "https://github.com/anthropics/skills", }) require.NoError(t, err) assert.Equal(t, 200, res.HTTPMeta.Response.StatusCode) @@ -242,7 +242,7 @@ func TestSkills_PlatformSkillsUpdate(t *testing.T) { ) res, err := s.Skills.Update(ctx, "", components.PlatformSkillUpdateRequest{ - Status: components.PlatformSkillUpdateStatusDisabled, + Status: components.PlatformSkillUpdateStatusEnabled, }) require.NoError(t, err) assert.Equal(t, 200, res.HTTPMeta.Response.StatusCode) diff --git a/tests/summarize_test.go b/tests/summarize_test.go index 82e7014f..d470e2e3 100644 --- a/tests/summarize_test.go +++ b/tests/summarize_test.go @@ -25,14 +25,15 @@ func TestSummarize_Summarize(t *testing.T) { res, err := s.Client.Documents.Summarize(ctx, components.SummarizeRequest{ DocumentSpecs: []components.DocumentSpecUnion{ - components.CreateDocumentSpecUnionDocumentSpec2( - components.DocumentSpec2{ - ID: "", + components.CreateDocumentSpecUnionDocumentSpec4( + components.DocumentSpec4{ + UgcType: components.DocumentSpecUgcType2Answers, + UgcID: "", }, ), - components.CreateDocumentSpecUnionDocumentSpec2( - components.DocumentSpec2{ - ID: "", + components.CreateDocumentSpecUnionDocumentSpec1( + components.DocumentSpec1{ + URL: "https://potable-pine.org", }, ), }, From b26ca7e6d33a5bf454d72a6518fbb8f305d674c0 Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Thu, 27 Aug 2026 07:04:27 +0000 Subject: [PATCH 2/2] empty commit to trigger [run-tests] workflow