From 067b6792d4545ebdc82e3241d267ceb1d15c986e Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 1 Sep 2026 03:23:45 +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.Retrieve()`: **Deprecated** * `Glean.Client.Agents.RetrieveSchemas()`: **Deprecated** * `Glean.Client.Agents.List()`: **Deprecated** * `Glean.Client.Agents.RunStream()`: **Deprecated** * `Glean.Client.Agents.RunStream()`: `error.AuthenticationSuggestions[].RequestType.Enum(sandboxEgress)` **Added** * `Glean.Client.Agents.Run()`: **Deprecated** * `Glean.Client.Agents.Run()`: `error.AuthenticationSuggestions[].RequestType.Enum(sandboxEgress)` **Added** --- .speakeasy/gen.lock | 134 ++++++++--------- .speakeasy/gen.yaml | 2 +- .speakeasy/glean-merged-spec.yaml | 142 ++++++++++++++---- .speakeasy/tests.arazzo.yaml | 12 +- .speakeasy/workflow.lock | 12 +- README.md | 10 +- RELEASES.md | 12 +- clientagents.go | 10 ++ 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/clientagents/README.md | 30 ++-- 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 +- .../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 | 7 +- 33 files changed, 344 insertions(+), 198 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 4a34ac82..3c390b71 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: e72cfa8d41afedeeb4e2127bc6645658 docVersion: 0.9.0 - speakeasyVersion: 1.795.1 - generationVersion: 2.932.9 - releaseVersion: 0.14.0 - configChecksum: bd647861196c882cd8f159366b16f550 + speakeasyVersion: 1.796.2 + generationVersion: 2.933.0 + 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: ced57b06-1c05-4291-b697-7fb0fcc705e5 + pristine_commit_hash: 687229bae18eac58c15018681ec25de857a186e9 + pristine_tree_hash: 7b144e2def28d9fb06cc5e693033441572f4df57 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.51 defaultEnabledRetries: 0.2.0 deprecations: 2.81.3 devContainers: 2.90.0 @@ -92,8 +92,8 @@ trackedFiles: pristine_git_object: ac0aef7df4df0713253d8ddc1f2f4cb49c98a4dd clientagents.go: id: 79ea0ac21b88 - last_write_checksum: sha1:e70c5c84546b0c1804603df7802d61c495677f50 - pristine_git_object: 7962b0576ec1605f670a274175a9d59c20206df8 + last_write_checksum: sha1:d52f92dc7286e70f5050f327c595ab482920ab87 + pristine_git_object: 3b7a2ec81a6b9bcaebbc834dd9177fee1b5f89a6 clientauthentication.go: id: 366fdcad5033 last_write_checksum: sha1:c9dc5c89ac6b609b5f8937bb7e6dc9ba1d3dfe05 @@ -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,12 +4304,12 @@ 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 - pristine_git_object: d1d4db5b35c884e2ec0034cabf43022b08193455 + last_write_checksum: sha1:951b2c3d8a4e1432b1bd2dddd6de9923829532f9 + pristine_git_object: 7e2d6fc84a71869d69d0299ec279b76fedddbdb1 docs/sdks/clientauthentication/README.md: id: 463bffe80b61 last_write_checksum: sha1:b33aa1c8734fa719249e1d2d037395e32b2cb50e @@ -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:f40ebe3bde4f55ee4a32edefba969539316cf612 + pristine_git_object: 5e1b19689ba49507a46e49cedecc48f061aa3812 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 @@ -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:a5f1af022ac2b76a2ed98e4685f882a0ff55cfbb + pristine_git_object: 681b2d71ae6f08432c41b5135758ffe62a5c4fc9 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.Retrieve()`: **Deprecated**\n* `Glean.Client.Agents.RetrieveSchemas()`: **Deprecated**\n* `Glean.Client.Agents.List()`: **Deprecated**\n* `Glean.Client.Agents.RunStream()`: **Deprecated**\n* `Glean.Client.Agents.RunStream()`: `error.AuthenticationSuggestions[].RequestType.Enum(sandboxEgress)` **Added**\n* `Glean.Client.Agents.Run()`: **Deprecated**\n* `Glean.Client.Agents.Run()`: `error.AuthenticationSuggestions[].RequestType.Enum(sandboxEgress)` **Added**\n" generatedFiles: - .devcontainer/README.md - .devcontainer/devcontainer.json diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 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..a335c778 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: 3c7ee4d1dbf9522eb610611e2db34f366fbd48c7 + x-open-api-commit-sha: c25d7e000b679982c203642cf45de4b7ad53bf7e description: | # Introduction In addition to the data sources that Glean has built-in support for, Glean also provides a REST API that enables customers to put arbitrary content in the search index. This is useful, for example, for doing permissions-aware search over content in internal tools that reside on-prem as well as for searching over applications that Glean does not currently support first class. In addition these APIs allow the customer to push organization data (people info, organization structure etc) into Glean. @@ -2709,7 +2709,15 @@ paths: $ref: '#/components/schemas/ErrorResponse' "500": description: Internal server error + deprecated: true x-visibility: Preview + x-glean-deprecated: + docs: https://developers.glean.com/api/platform-api/agents-overview + id: e01a59ea-5de0-481f-97b6-d28dd65379e6 + introduced: "2026-08-25" + message: Use GET /api/agents/{agent_id} instead. + removal: "2027-04-15" + x-speakeasy-deprecation-message: "Deprecated on 2026-08-25, removal scheduled for 2027-04-15: Use GET /api/agents/{agent_id} instead." x-speakeasy-group: client.agents x-speakeasy-name-override: retrieve post: @@ -2802,7 +2810,15 @@ paths: $ref: '#/components/schemas/ErrorResponse' "500": description: Internal server error + deprecated: true x-visibility: Preview + x-glean-deprecated: + docs: https://developers.glean.com/api/platform-api/agents-overview + id: 9ca398ba-cf22-4523-9d9c-86e5f82d6ec7 + introduced: "2026-08-25" + message: Use GET /api/agents/{agent_id}/schemas instead. + removal: "2027-04-15" + x-speakeasy-deprecation-message: "Deprecated on 2026-08-25, removal scheduled for 2027-04-15: Use GET /api/agents/{agent_id}/schemas instead." x-speakeasy-group: client.agents x-speakeasy-name-override: retrieveSchemas /rest/api/v1/agents/{agent_id}/import: @@ -2895,7 +2911,15 @@ paths: $ref: '#/components/schemas/ErrorResponse' "500": description: Internal server error + deprecated: true x-visibility: Preview + x-glean-deprecated: + docs: https://developers.glean.com/api/platform-api/agents-overview + id: 3ab6f4c0-0b97-4a0b-b5da-e888e4bb7706 + introduced: "2026-08-25" + message: Use POST /api/agents/search instead. + removal: "2027-04-15" + x-speakeasy-deprecation-message: "Deprecated on 2026-08-25, removal scheduled for 2027-04-15: Use POST /api/agents/search instead." x-speakeasy-group: client.agents x-speakeasy-name-override: list /rest/api/v1/agents/runs/stream: @@ -2961,7 +2985,15 @@ paths: $ref: '#/components/schemas/UnauthorizedAgentToolsError' "500": description: Internal server error + deprecated: true x-visibility: Preview + x-glean-deprecated: + docs: https://developers.glean.com/api/platform-api/agents-overview + id: db3f42a5-8820-451e-b57a-14bf6ca3915c + introduced: "2026-08-25" + message: Use POST /api/agents/{agent_id}/runs with stream=true instead. + removal: "2027-04-15" + x-speakeasy-deprecation-message: "Deprecated on 2026-08-25, removal scheduled for 2027-04-15: Use POST /api/agents/{agent_id}/runs with stream=true instead." x-speakeasy-group: client.agents x-speakeasy-name-override: runStream /rest/api/v1/agents/runs/wait: @@ -3002,7 +3034,15 @@ paths: $ref: '#/components/schemas/UnauthorizedAgentToolsError' "500": description: Internal server error + deprecated: true x-visibility: Preview + x-glean-deprecated: + docs: https://developers.glean.com/api/platform-api/agents-overview + id: 683b90e1-48d3-4d7a-a32d-b48eb194fcf0 + introduced: "2026-08-25" + message: Use POST /api/agents/{agent_id}/runs instead. + removal: "2027-04-15" + x-speakeasy-deprecation-message: "Deprecated on 2026-08-25, removal scheduled for 2027-04-15: Use POST /api/agents/{agent_id}/runs instead." x-speakeasy-group: client.agents x-speakeasy-name-override: run /rest/api/v1/addcollectionitems: @@ -6747,6 +6787,8 @@ components: PlatformAgentsSearchRequest: type: object additionalProperties: false + example: + name: HR Policy Agent properties: name: type: string @@ -7070,6 +7112,12 @@ components: additionalProperties: false description: | Request to run an agent. A request MUST supply either `messages` (a non-empty conversation) or `input` (for input-form triggered agents). + example: + messages: + - role: USER + content: + - text: What is our parental leave policy? + type: text properties: input: type: object @@ -7186,6 +7234,8 @@ components: additionalProperties: false required: - input + example: + input: What is our parental leave policy? properties: input: description: | @@ -7327,8 +7377,9 @@ components: type: string minLength: 1 page_number: - type: integer - nullable: true + type: + - integer + - "null" PlatformChatCitationAnnotation: type: object additionalProperties: false @@ -7346,16 +7397,19 @@ components: items: $ref: "#/components/schemas/PlatformChatCitationSource" start_index: - type: integer + type: + - integer + - "null" minimum: 0 - nullable: true end_index: - type: integer + type: + - integer + - "null" minimum: 0 - nullable: true snippets: - type: array - nullable: true + type: + - array + - "null" items: $ref: "#/components/schemas/PlatformChatCitationSnippet" PlatformChatOutputTextContent: @@ -7432,9 +7486,10 @@ components: store: type: boolean conversation_id: - type: string + type: + - string + - "null" minLength: 1 - nullable: true description: Present when the interaction was persisted. request_id: type: string @@ -7554,8 +7609,9 @@ components: type: boolean description: Whether additional results are available. next_cursor: - type: string - nullable: true + type: + - string + - "null" description: Cursor for the next page, or null when no more results are available. request_id: type: string @@ -7586,6 +7642,9 @@ components: additionalProperties: false required: - source_urls + example: + source_urls: + - https://github.com/anthropics/skills/tree/main/skills/skill-creator properties: source_urls: type: array @@ -7678,6 +7737,8 @@ components: additionalProperties: false required: - source_url + example: + source_url: https://github.com/anthropics/skills properties: source_url: type: string @@ -7800,6 +7861,8 @@ components: additionalProperties: false required: - status + example: + status: ENABLED properties: status: $ref: "#/components/schemas/PlatformSkillUpdateStatus" @@ -7891,8 +7954,9 @@ components: type: boolean description: Whether additional results are available. next_cursor: - type: string - nullable: true + type: + - string + - "null" description: Cursor for the next page, or null when no more results are available. request_id: type: string @@ -8011,11 +8075,11 @@ components: default: 10 description: Number of results to return per page. cursor: - type: string - nullable: true + type: + - string + - "null" description: | Opaque pagination token from a previous response's `next_cursor` field. Omit on the first request. - example: "" datasources: type: array minItems: 1 @@ -8066,8 +8130,9 @@ components: description: The datasource this result originates from. example: confluence document_type: - type: string - nullable: true + type: + - string + - "null" minLength: 1 description: The document type within the datasource. example: page @@ -8076,14 +8141,16 @@ components: owner: $ref: "#/components/schemas/PlatformPersonReference" updated_at: - type: string + type: + - string + - "null" format: date-time - nullable: true description: When the result was last modified. created_at: - type: string + type: + - string + - "null" format: date-time - nullable: true description: When the result was created. PlatformSearchResponse: type: object @@ -8105,8 +8172,9 @@ components: type: boolean description: Indicates whether additional pages of results are available. next_cursor: - type: string - nullable: true + type: + - string + - "null" description: Opaque token to pass as `cursor` in the next request. request_id: type: string @@ -8283,8 +8351,9 @@ components: type: boolean description: Whether additional results are available. next_cursor: - type: string - nullable: true + type: + - string + - "null" description: Cursor for the next page, or null when no more results are available. request_id: type: string @@ -8644,8 +8713,9 @@ components: type: boolean description: Whether additional results are available. next_cursor: - type: string - nullable: true + type: + - string + - "null" description: Cursor for the next page, or null when no more results are available. request_id: type: string @@ -12896,15 +12966,18 @@ components: - EXECUTION - AUTHENTICATION_SUGGESTION - VOTE_SUGGESTION + - SANDBOX_EGRESS description: The type of request made to the user. x-enumDescriptions: EXECUTION: Request for approving execution of the tool. AUTHENTICATION_SUGGESTION: Request for authenticating to a tool, provided as a (tool) suggestion. VOTE_SUGGESTION: Suggestion to vote for enabling an available-but-not-enabled tool. + SANDBOX_EGRESS: Request to approve an outbound/egress call from the sandbox. x-speakeasy-enum-descriptions: EXECUTION: Request for approving execution of the tool. AUTHENTICATION_SUGGESTION: Request for authenticating to a tool, provided as a (tool) suggestion. VOTE_SUGGESTION: Suggestion to vote for enabling an available-but-not-enabled tool. + SANDBOX_EGRESS: Request to approve an outbound/egress call from the sandbox. requestId: type: string description: Unique identifier for this request. @@ -13004,6 +13077,9 @@ components: For VOTE_SUGGESTION requests: - voted: whether the user voted for this tool + + For SANDBOX_EGRESS requests: + - isGranted: whether the sandbox egress call is approved x-visibility: Preview x-glean-experimental: id: 3eae3ee7-2c06-4027-be14-98260a3ce608 @@ -13590,7 +13666,7 @@ components: isDraft: type: boolean description: | - When true, validates and stores a draft preview without publishing (used for PR preview links). Takes precedence over `syncMode`: when `isDraft` is true, `syncMode` is ignored. + Deprecated. Draft mutation semantics are not supported for transient previews. Use transient and parentWorkflowId instead. required: - bundle ImportAgentStatus: 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..c31b8f81 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.795.1 +speakeasyVersion: 1.796.2 sources: Glean API: sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:90133ae2ed4bca7f388138e9d043405e381f920c07c8e54bdf3af2505b0a24ae - sourceBlobDigest: sha256:ffea0cebe421d06f6145114c557713c6b11600ae8dc1e06469304d89e720bf27 + sourceRevisionDigest: sha256:759c06917ca7954458e38f23d0c9c4e5984891d8e230807786f23a3e4d664159 + sourceBlobDigest: sha256:f8f659c60dc47a230fbed75f2cfdbee12b74673201e6f1df169c681077d63eda 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:759c06917ca7954458e38f23d0c9c4e5984891d8e230807786f23a3e4d664159 + sourceBlobDigest: sha256:f8f659c60dc47a230fbed75f2cfdbee12b74673201e6f1df169c681077d63eda codeSamplesNamespace: glean-api-specs-go-code-samples - codeSamplesRevisionDigest: sha256:fc2042aa1a0f6694b8de1bc4283acdce56b3b2dd128d95896e35c1b0492663cd + codeSamplesRevisionDigest: sha256:43a7b7b8be17464cdc5ff4365b8792a65b795f8065b455e1a468cf17a2814141 petstore: source: petstore-oas sourceNamespace: petstore-oas diff --git a/README.md b/README.md index 8dd3e7b5..4601314a 100644 --- a/README.md +++ b/README.md @@ -246,13 +246,13 @@ For more information on obtaining the appropriate token type, please contact you ### [Client.Agents](docs/sdks/clientagents/README.md) * [Create](docs/sdks/clientagents/README.md#create) - Create an agent -* [Retrieve](docs/sdks/clientagents/README.md#retrieve) - Retrieve an agent +* [~~Retrieve~~](docs/sdks/clientagents/README.md#retrieve) - Retrieve an agent :warning: **Deprecated** * [Update](docs/sdks/clientagents/README.md#update) - Edit an agent -* [RetrieveSchemas](docs/sdks/clientagents/README.md#retrieveschemas) - List an agent's schemas +* [~~RetrieveSchemas~~](docs/sdks/clientagents/README.md#retrieveschemas) - List an agent's schemas :warning: **Deprecated** * [Import](docs/sdks/clientagents/README.md#import) - Import an agent -* [List](docs/sdks/clientagents/README.md#list) - Search agents -* [RunStream](docs/sdks/clientagents/README.md#runstream) - Create an agent run and stream the response -* [Run](docs/sdks/clientagents/README.md#run) - Create an agent run and wait for the response +* [~~List~~](docs/sdks/clientagents/README.md#list) - Search agents :warning: **Deprecated** +* [~~RunStream~~](docs/sdks/clientagents/README.md#runstream) - Create an agent run and stream the response :warning: **Deprecated** +* [~~Run~~](docs/sdks/clientagents/README.md#run) - Create an agent run and wait for the response :warning: **Deprecated** ### [Client.Announcements](docs/sdks/announcements/README.md) diff --git a/RELEASES.md b/RELEASES.md index 2fa643b2..a9151700 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-09-01 03:14:10 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.796.2 (2.933.0) 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/clientagents.go b/clientagents.go index 7962b057..3b7a2ec8 100644 --- a/clientagents.go +++ b/clientagents.go @@ -264,6 +264,8 @@ func (s *ClientAgents) Create(ctx context.Context, createWorkflowRequest compone // Retrieve an agent // Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent Builder. +// +// Deprecated: Deprecated on 2026-08-25, removal scheduled for 2027-04-15: Use GET /api/agents/{agent_id} instead.. func (s *ClientAgents) Retrieve(ctx context.Context, agentID string, locale *string, timezoneOffset *int64, opts ...operations.Option) (*operations.GetAgentResponse, error) { request := operations.GetAgentRequest{ Locale: locale, @@ -749,6 +751,8 @@ func (s *ClientAgents) Update(ctx context.Context, agentID string, editWorkflowR // RetrieveSchemas - List an agent's schemas // Return [agent](https://developers.glean.com/agents/agents-api)'s input and output schemas. You can use these schemas to detect changes to an agent's input or output structure. +// +// Deprecated: Deprecated on 2026-08-25, removal scheduled for 2027-04-15: Use GET /api/agents/{agent_id}/schemas instead.. func (s *ClientAgents) RetrieveSchemas(ctx context.Context, agentID string, locale *string, timezoneOffset *int64, opts ...operations.Option) (*operations.GetAgentSchemasResponse, error) { request := operations.GetAgentSchemasRequest{ Locale: locale, @@ -1255,6 +1259,8 @@ func (s *ClientAgents) Import(ctx context.Context, agentID string, importAgentRe // List - Search agents // Search for [agents](https://developers.glean.com/agents/agents-api) by agent name. +// +// Deprecated: Deprecated on 2026-08-25, removal scheduled for 2027-04-15: Use POST /api/agents/search instead.. func (s *ClientAgents) List(ctx context.Context, request components.SearchAgentsRequest, opts ...operations.Option) (*operations.SearchAgentsResponse, error) { o := operations.Options{} supportedOptions := []string{ @@ -1501,6 +1507,8 @@ func (s *ClientAgents) List(ctx context.Context, request components.SearchAgents // RunStream - Create an agent run and stream the response // Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the result as a stream of server-sent events (SSE). **Note**: If the agent uses an input form trigger, all form fields (including optional fields) must be included in the `input` object. +// +// Deprecated: Deprecated on 2026-08-25, removal scheduled for 2027-04-15: Use POST /api/agents/{agent_id}/runs with stream=true instead.. func (s *ClientAgents) RunStream(ctx context.Context, request components.AgentRunCreate, opts ...operations.Option) (*operations.CreateAndStreamRunResponse, error) { o := operations.Options{} supportedOptions := []string{ @@ -1768,6 +1776,8 @@ func (s *ClientAgents) RunStream(ctx context.Context, request components.AgentRu // Run - Create an agent run and wait for the response // Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the final response. **Note**: If the agent uses an input form trigger, all form fields (including optional fields) must be included in the `input` object. +// +// Deprecated: Deprecated on 2026-08-25, removal scheduled for 2027-04-15: Use POST /api/agents/{agent_id}/runs instead.. func (s *ClientAgents) Run(ctx context.Context, request components.AgentRunCreate, opts ...operations.Option) (*operations.CreateAndWaitRunResponse, error) { o := operations.Options{} supportedOptions := []string{ 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/clientagents/README.md b/docs/sdks/clientagents/README.md index d1d4db5b..7e2d6fc8 100644 --- a/docs/sdks/clientagents/README.md +++ b/docs/sdks/clientagents/README.md @@ -5,13 +5,13 @@ ### Available Operations * [Create](#create) - Create an agent -* [Retrieve](#retrieve) - Retrieve an agent +* [~~Retrieve~~](#retrieve) - Retrieve an agent :warning: **Deprecated** * [Update](#update) - Edit an agent -* [RetrieveSchemas](#retrieveschemas) - List an agent's schemas +* [~~RetrieveSchemas~~](#retrieveschemas) - List an agent's schemas :warning: **Deprecated** * [Import](#import) - Import an agent -* [List](#list) - Search agents -* [RunStream](#runstream) - Create an agent run and stream the response -* [Run](#run) - Create an agent run and wait for the response +* [~~List~~](#list) - Search agents :warning: **Deprecated** +* [~~RunStream~~](#runstream) - Create an agent run and stream the response :warning: **Deprecated** +* [~~Run~~](#run) - Create an agent run and wait for the response :warning: **Deprecated** ## Create @@ -68,10 +68,12 @@ func main() { | ------------------ | ------------------ | ------------------ | | apierrors.APIError | 4XX, 5XX | \*/\* | -## Retrieve +## ~~Retrieve~~ Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent Builder. +> :warning: **DEPRECATED**: Deprecated on 2026-08-25, removal scheduled for 2027-04-15: Use GET /api/agents/{agent_id} instead.. + ### Example Usage @@ -180,10 +182,12 @@ func main() { | apierrors.ErrorResponse | 404 | application/json | | apierrors.APIError | 4XX, 5XX | \*/\* | -## RetrieveSchemas +## ~~RetrieveSchemas~~ Return [agent](https://developers.glean.com/agents/agents-api)'s input and output schemas. You can use these schemas to detect changes to an agent's input or output structure. +> :warning: **DEPRECATED**: Deprecated on 2026-08-25, removal scheduled for 2027-04-15: Use GET /api/agents/{agent_id}/schemas instead.. + ### Example Usage @@ -302,10 +306,12 @@ func main() { | apierrors.ErrorResponse | 404 | application/json | | apierrors.APIError | 4XX, 5XX | \*/\* | -## List +## ~~List~~ Search for [agents](https://developers.glean.com/agents/agents-api) by agent name. +> :warning: **DEPRECATED**: Deprecated on 2026-08-25, removal scheduled for 2027-04-15: Use POST /api/agents/search instead.. + ### Example Usage @@ -358,10 +364,12 @@ func main() { | apierrors.ErrorResponse | 404, 422 | application/json | | apierrors.APIError | 4XX, 5XX | \*/\* | -## RunStream +## ~~RunStream~~ Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the result as a stream of server-sent events (SSE). **Note**: If the agent uses an input form trigger, all form fields (including optional fields) must be included in the `input` object. +> :warning: **DEPRECATED**: Deprecated on 2026-08-25, removal scheduled for 2027-04-15: Use POST /api/agents/{agent_id}/runs with stream=true instead.. + ### Example Usage @@ -420,10 +428,12 @@ func main() { | apierrors.UnauthorizedAgentToolsError | 422 | application/json | | apierrors.APIError | 4XX, 5XX | \*/\* | -## Run +## ~~Run~~ Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the final response. **Note**: If the agent uses an input form trigger, all form fields (including optional fields) must be included in the `input` object. +> :warning: **DEPRECATED**: Deprecated on 2026-08-25, removal scheduled for 2027-04-15: Use POST /api/agents/{agent_id}/runs instead.. + ### Example Usage diff --git a/docs/sdks/skills/README.md b/docs/sdks/skills/README.md index 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..5e1b1968 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.933.0 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.933.0 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/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..681b2d71 100644 --- a/tests/summarize_test.go +++ b/tests/summarize_test.go @@ -30,9 +30,10 @@ func TestSummarize_Summarize(t *testing.T) { ID: "", }, ), - components.CreateDocumentSpecUnionDocumentSpec2( - components.DocumentSpec2{ - ID: "", + components.CreateDocumentSpecUnionDocumentSpec3( + components.DocumentSpec3{ + UgcType: components.DocumentSpecUgcType1Chats, + ContentID: 593816, }, ), }, From 96a51f9a88f9139033200851d9b1e9e04e2c19b7 Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Tue, 1 Sep 2026 03:23:53 +0000 Subject: [PATCH 2/2] empty commit to trigger [run-tests] workflow