From 8f164024de74e4153fe991ba3028a2e417f094e5 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 2 Sep 2026 19:46:34 +0000 Subject: [PATCH 1/2] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.796.3 --- .speakeasy/gen.lock | 147 +++++++++--------- .speakeasy/gen.yaml | 2 +- .speakeasy/glean-merged-spec.yaml | 57 +++++-- .speakeasy/tests.arazzo.yaml | 31 ++-- .speakeasy/workflow.lock | 10 +- RELEASES.md | 12 +- docs/models/platformagentscreaterunrequest.md | 2 +- docs/models/platformagentsgetrequest.md | 6 +- .../models/platformagentsgetschemasrequest.md | 8 +- .../platformskillscreateversionrequest.md | 8 +- docs/models/platformskillsdeleterequest.md | 6 +- .../models/platformskillsgetcontentrequest.md | 6 +- docs/models/platformskillsgetrequest.md | 6 +- .../platformskillsgetversioncontentrequest.md | 8 +- .../models/platformskillsgetversionrequest.md | 8 +- .../platformskillslistversionsrequest.md | 10 +- docs/models/platformskillssyncrequest.md | 6 +- docs/models/platformskillsupdaterequest.md | 2 +- ...atformtriggerpresetseventssearchrequest.md | 8 +- .../platformtriggerpresetsgetrequest.md | 6 +- ...ormtriggerpresetsinputvalueslistrequest.md | 10 +- docs/models/platformtriggersdeleterequest.md | 6 +- .../platformtriggerseventssearchrequest.md | 8 +- docs/models/platformtriggersgetrequest.md | 6 +- docs/models/platformtriggersupdaterequest.md | 8 +- docs/sdks/agents/README.md | 40 ++--- docs/sdks/chatsdk/README.md | 4 +- docs/sdks/search/README.md | 5 +- docs/sdks/skills/README.md | 102 ++++++------ docs/sdks/triggers/README.md | 84 +++++----- pyproject.toml | 2 +- src/glean/api_client/_version.py | 4 +- src/glean/api_client/chat_sdk.py | 8 +- tests/test_messages.py | 2 +- tests/test_search.py | 4 - tests/test_summarize.py | 8 +- tests/test_triggers.py | 18 +-- 37 files changed, 336 insertions(+), 332 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index a232a62f..13ca23d8 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,19 +1,19 @@ lockVersion: 2.0.0 id: 3e3290ca-0ee8-4981-b1bc-14536048fa63 management: - docChecksum: edc1d70ac465e8b7ce71bf4303a05851 + docChecksum: 68720f65cbf714217871381245ae8dc9 docVersion: 0.9.0 speakeasyVersion: 1.796.3 generationVersion: 2.934.1 - releaseVersion: 0.17.0 - configChecksum: 2b488c3f1a8165fd1c1b6dfd98d4812a + releaseVersion: 0.17.1 + configChecksum: 90deb9852463a2d33051170909e38115 repoURL: https://github.com/gleanwork/api-client-python.git installationURL: https://github.com/gleanwork/api-client-python.git published: true persistentEdits: - generation_id: da250175-706d-4e63-95cb-0a9f3cabd64c - pristine_commit_hash: e524d4d817d59b7d5cc77013e68501f6619ce348 - pristine_tree_hash: 79d3fe928589de9e55d20815b3b190f5cff0230f + generation_id: 6b5dc78d-b487-4ea5-aa9d-92ec81f0a7f3 + pristine_commit_hash: 66dde951b461075c33fa93046ef24d2cc0bbb1dc + pristine_tree_hash: 2e8abebd209eeca1675863d3785fa321954e32e4 features: python: acceptHeaders: 3.0.0 @@ -2246,20 +2246,20 @@ trackedFiles: pristine_git_object: 6ba12306df49a4d5a78a1c53269fc78d2672b7b7 docs/models/platformagentscreaterunrequest.md: id: c9a4aa1f28b2 - last_write_checksum: sha1:98d453933f6d93d158222fedb82b67180880266c - pristine_git_object: 1e66f04a2f7c8e8d71c1cc063d9c441171fe92af + last_write_checksum: sha1:75b103b3932f994b579b3b4afc7c8b6c2fb52f60 + pristine_git_object: 7914d693da7f33298da11e98695dcdd15689a680 docs/models/platformagentscreaterunresponse.md: id: 24710130cfb1 last_write_checksum: sha1:7060b94ca4737945356ac99814fe4cebec042bfe pristine_git_object: 8282996d41c67596131337d85e86d52c65cd642e docs/models/platformagentsgetrequest.md: id: a51f3665418a - last_write_checksum: sha1:2d3c227d75b3719fdb592cfd1498e9d2fcf53956 - pristine_git_object: 5cdd73d2b039205f28b4953ce4ed6ab45d886ffb + last_write_checksum: sha1:34c8865c924c12194975f0a8cf1f98addb134b9d + pristine_git_object: 615a5fc0c2249da985738ffb23bb598730e464d0 docs/models/platformagentsgetschemasrequest.md: id: 3591800143f3 - last_write_checksum: sha1:de1890eab4e530405f87e999f680afc39d362d72 - pristine_git_object: dfb7f4df8370052ab9b90252a509eee0e9c1b725 + last_write_checksum: sha1:27a8e74a3fc50f378ed596e5c1a8bd3adb6fe0ea + pristine_git_object: 6d512b5719eac34760fff50cac1eb50cfac0df3a docs/models/platformagentssearchrequest.md: id: 863c7f027d45 last_write_checksum: sha1:7e2501648e5c73a9615222c88d00f5d83ac42a61 @@ -2590,36 +2590,36 @@ trackedFiles: pristine_git_object: ca7bf36f2c931c0dce0bb529f8c2d86f4a06c326 docs/models/platformskillscreateversionrequest.md: id: bfcd223dbc04 - last_write_checksum: sha1:702b312a8f7629707857bf8e95676ac6293b2e2c - pristine_git_object: 00bd2fb2ce7bf79f2fba7db21510f31bbaf8c228 + last_write_checksum: sha1:5296d14b096632ffb2425da1f0db1fd6de40d18e + pristine_git_object: b44f133abebe1aeaad0d8514d536ff731e54d423 docs/models/platformskillsdeleterequest.md: id: 2f77c32cf1d3 - last_write_checksum: sha1:e3b5301934ecfe50b1c465cc8830a422f46a71b7 - pristine_git_object: f05b2a77d5cbd192de0b159736cb8fd568aba820 + last_write_checksum: sha1:df7e7aa28ff79ab95ef364cb5dbb6666af65181d + pristine_git_object: ed0d823f8b01e90073d62f9b1748dc0b98f8d692 docs/models/platformskillsgetcontentrequest.md: id: d336cbaa3194 - last_write_checksum: sha1:2e43ac49a416bd67b397a586b7a0edf4868aabce - pristine_git_object: 0a2180e1c03e3b204ced2dbfc9868a88c43ebe82 + last_write_checksum: sha1:2604ee529934e3e24e44810d82d8fa3a0f0c3ea0 + pristine_git_object: 9fdfcc5b397000e5d78367e1a354958999bb7b92 docs/models/platformskillsgetcontentresponse.md: id: 8ce5fea0a148 last_write_checksum: sha1:51ff2250d8165c7b874b6060ae06a6d0b6afbc0d pristine_git_object: f1099c31b1cf1c29d9faf6a89b0a9e1538057f52 docs/models/platformskillsgetrequest.md: id: a9e7922c0a6b - last_write_checksum: sha1:e8d2aee805f122808b22b7b9967cf01e5dd97e30 - pristine_git_object: 19aeb1fe62fa39cadaa3f70da72f807b6c1b3fd0 + last_write_checksum: sha1:879716d107a452830ce6a9bd8ef8e0f1332cc8c0 + pristine_git_object: ef0d2f94da054bbdce6a2891dff517f5ea143253 docs/models/platformskillsgetversioncontentrequest.md: id: bd28da4f4aae - last_write_checksum: sha1:c803f093f5a8eb14555f0a7d25fcd67b63696b8e - pristine_git_object: ed179d36cea1157993943658b010acdb47225cf1 + last_write_checksum: sha1:36a43db7f5e75f46cbbec7b8cc06f4e83d815004 + pristine_git_object: 4e90ae2a47f7883d39ae1e94f0f151f9bc8cb0c0 docs/models/platformskillsgetversioncontentresponse.md: id: 1e055ba78da9 last_write_checksum: sha1:660312fedaef400c4d8f755c76f31a7067226ad5 pristine_git_object: ca9d7b0299cec97d061bc6080a6c199047f3fd2b docs/models/platformskillsgetversionrequest.md: id: e2ff56de0fdf - last_write_checksum: sha1:e341e2153921ec608cf3dfd4feb47f6726163502 - pristine_git_object: 9256349d3de55ebbea5c8fae21e621b60e2d84c0 + last_write_checksum: sha1:7e163efbbaedbea5f4d15429d19fbd8e9e2809f5 + pristine_git_object: f9a2d64ae818b2da0d46bbec7f78eaae964678f0 docs/models/platformskillslistrequest.md: id: 475ac6fb76a7 last_write_checksum: sha1:4bac5ec35ddeb35d13d8494aebd5e8237a1d6239 @@ -2630,8 +2630,8 @@ trackedFiles: pristine_git_object: 1adcf3fef9224325ffd1a40f5a37e26aaddc3d7a docs/models/platformskillslistversionsrequest.md: id: 47bd785d0b34 - last_write_checksum: sha1:efd9f5c6044944bff237d1cc11d6e6756dd4840c - pristine_git_object: d97b7012a65b644ccdcfaa8cdc64a6258a0f0fae + last_write_checksum: sha1:c632c4018fd96fbca40e07d7dc3bf318ff65726f + pristine_git_object: a3fa36c955ce74ae0fac7bc821fe969fc407a67c docs/models/platformskillsourcepreview.md: id: a20f898498fd last_write_checksum: sha1:989f9420ee121202fec25562c5fc30ccdf14d953 @@ -2666,16 +2666,16 @@ trackedFiles: pristine_git_object: 2eabd1c452141c977bdd9e331b859694a4fc2ee6 docs/models/platformskillssyncrequest.md: id: d3c24d4f20d7 - last_write_checksum: sha1:1d44a8bd6552213daf05630e21d5c2c5f79d0219 - pristine_git_object: 2d54f2d566498c73e3fa98072a133fea0e95df40 + last_write_checksum: sha1:16c8019fe366f4e5e91a17a18bcba02a937a608f + pristine_git_object: 58111860295d2bcff39bf2efbe38d9e2780419d1 docs/models/platformskillstatus.md: id: 33c93e7414d6 last_write_checksum: sha1:7012661e93710994b8dc2a827b82bdb7da8bbb5f pristine_git_object: 566f1092589cad8787c57dd7042e2f2c71ea49b4 docs/models/platformskillsupdaterequest.md: id: f8592c4371a6 - last_write_checksum: sha1:fd941f884d06bbe3011eb8e6289bdcb55e54e4b2 - pristine_git_object: 7bf2215d7b76b6de9649f86008d3a47360868e95 + last_write_checksum: sha1:b9e9e33e0c952581b1087225608c9902fc4219ea + pristine_git_object: c26ebd332bc1edbbd349c0de8c2ee6217da11c0f docs/models/platformskillsyncresponse.md: id: b449d9f6b2c6 last_write_checksum: sha1:f8f1d23d37aac8ede523cdb7fa744e9c9dc55cbc @@ -2842,16 +2842,16 @@ trackedFiles: pristine_git_object: 7d87f18317503d689665ebb8b63a87d8a09d0c11 docs/models/platformtriggerpresetseventssearchrequest.md: id: 232ded4889d9 - last_write_checksum: sha1:d9a9ee0f13732e71d3b3992e77b33e4a1b3733cd - pristine_git_object: 5b9b8544bf4d062ecd84bf2a3b88434de8992bc1 + last_write_checksum: sha1:c5e58765b5eeef4f7237a0a770358e8aafcd0e09 + pristine_git_object: 2ddd7e0b677a6e117c62814a1eb8410a9c7fe2b0 docs/models/platformtriggerpresetsgetrequest.md: id: 661f8ca0e756 - last_write_checksum: sha1:929b48e2e062df8129c84b9ec32073f9c518580c - pristine_git_object: 3649388d7de32d0dc06b74fa874db4059e0daae0 + last_write_checksum: sha1:fbdfc0d4b351ead7070b492e4be3cceab7e9396e + pristine_git_object: a5ff664c8f10c731de07a4c2f500ece6b4e2536e docs/models/platformtriggerpresetsinputvalueslistrequest.md: id: 9cbbb9eaa9c2 - last_write_checksum: sha1:8ee9facdf533164c5b41ee488662311797ef4b25 - pristine_git_object: cb4a01b8fc67367a86e2e3d1e605ac63eb0c3f33 + last_write_checksum: sha1:74601c3d826f482bc4d3a2ac60cd3930287431a3 + pristine_git_object: 125422c337d7c100ecbda9fd4b6cb513ad364086 docs/models/platformtriggerpresetslistrequest.md: id: 9e0579bc5584 last_write_checksum: sha1:8da57825e3ef677c1f4432a7dbf99b76966606e1 @@ -2866,16 +2866,16 @@ trackedFiles: pristine_git_object: 9a28c2e881fa9f5cc97c2f97a6a4192f7800beb9 docs/models/platformtriggersdeleterequest.md: id: ef6711cefab2 - last_write_checksum: sha1:f08630c117e01c5a37f6379503545d0946e73b13 - pristine_git_object: b31a34f21a3e6bdc081e4370925cde7cbc07698b + last_write_checksum: sha1:2f1f1549560053d308563aa41da57575a689ba3d + pristine_git_object: d17ae02b5f9bf322a4cbb24cb2f0630a4bd3e333 docs/models/platformtriggerseventssearchrequest.md: id: 5c71525b6edd - last_write_checksum: sha1:f4781a66d1c1f4afd3a179a152fdae5357fed40d - pristine_git_object: 940d83b992170c738553280443a44da3e9d57c50 + last_write_checksum: sha1:f97e7f228f29bf097f37d72c399744826b4bbbca + pristine_git_object: 89a1557431e710d1560d040e5c7049c377eff654 docs/models/platformtriggersgetrequest.md: id: 7a4d34377937 - last_write_checksum: sha1:a1d8d6ee1b8e6deb15bad88b45d8020dd8e7e862 - pristine_git_object: e0823c5833042f711f0f90eec4bea9fc38ea9373 + last_write_checksum: sha1:59bf4b049709cd941e80dade73a3096b826e5a27 + pristine_git_object: 943506d818ff9b36664b99251717732a471f3567 docs/models/platformtriggerslistrequest.md: id: 67c0b855996f last_write_checksum: sha1:e20f86ad16ceeb59341302bbc0bebaf3ae8e8536 @@ -2886,8 +2886,8 @@ trackedFiles: pristine_git_object: 652a23718a22cce3498feef53e0f06dd1c196088 docs/models/platformtriggersupdaterequest.md: id: 35ee38f0c9c1 - last_write_checksum: sha1:6060a8f654f62b05919fc5b72d68d350fec9a517 - pristine_git_object: 8e9c286d9962b7c0b4e5be59a588081d06610175 + last_write_checksum: sha1:345ce4121ab4dc30fdae9ab2db5c16ac43ff82eb + pristine_git_object: 181b6ea91aa116be317ebf5f5bfc9fc686b451cc docs/models/platformtriggerupdaterequest.md: id: 9df406d86a64 last_write_checksum: sha1:e7f1120c91320965dd299da24583d92c107ead58 @@ -3686,8 +3686,8 @@ trackedFiles: pristine_git_object: 61dd41f0319201cc105e29174ab1cc0018cecbce docs/sdks/agents/README.md: id: 5965d8232fd8 - last_write_checksum: sha1:5b7b93667d435959548d8de1e845783f047e12af - pristine_git_object: f7fb5a042c4484456d1b0065c874b95d06909fb7 + last_write_checksum: sha1:9a51fee19dc6fd4b71d8c2e04f9672fc9a0aadf8 + pristine_git_object: 08a9bf1711c5040bed18570dc6ba82fe2b6e1ee4 docs/sdks/announcements/README.md: id: 3d2e130a217c last_write_checksum: sha1:ecfa655bb27dee6890656542cfafda0aa6ed1ab9 @@ -3698,8 +3698,8 @@ trackedFiles: pristine_git_object: 85153af7ec594c2dbd1e4a8c2eba5ce713796265 docs/sdks/chatsdk/README.md: id: 83b4ee321663 - last_write_checksum: sha1:4a17fc3112d643a6d8a3a7146a79c90838056f25 - pristine_git_object: 58f9aea37b2f7cd7f439156e0548927515c0bde8 + last_write_checksum: sha1:8794de4bc1d0731aaaae858b7b31b35057e9c457 + pristine_git_object: b805ae94a656fb4d0690b17e0af72ba01388dbd3 docs/sdks/clientactivity/README.md: id: a309613986a5 last_write_checksum: sha1:d9737458d891593ba2fb3372ab6e60ea728fe9a5 @@ -3802,20 +3802,20 @@ trackedFiles: pristine_git_object: 5dd26e03b79389a3e71e90f9a3ce29b7fa384dd9 docs/sdks/search/README.md: id: 5c534716244c - last_write_checksum: sha1:4e2148cb7fce20b3afd277cd417a1711eb4299c9 - pristine_git_object: e8db7383c463ca50b1521dbe4ce637697dba67de + last_write_checksum: sha1:8822120d8629c5e901e7980fc73fcfdb18b71234 + pristine_git_object: 43e735ef788378a15ac4a6e52aa4843ea4c5d4c8 docs/sdks/skills/README.md: id: 3a14a5c90791 - last_write_checksum: sha1:714358973925fabec1cdce11f90d590b401a0312 - pristine_git_object: b89e44039e28c1812c19444a36c32f902463cac9 + last_write_checksum: sha1:7c5b6dde477b907a0accac6ca019eb5d84aa5d03 + pristine_git_object: 7a11b9bcd4372fcefc3e59e66dc179ee8727bcee docs/sdks/tools/README.md: id: 044286549bac last_write_checksum: sha1:9b9a8e80c1d16018bd66150ba482b83825d6cf67 pristine_git_object: 8a3368140d93e032981bd19a4cff0ad9c35e8f1e docs/sdks/triggers/README.md: id: 6706220e8a9c - last_write_checksum: sha1:5ccf393241166fe268abc6b5f56c0239856a1659 - pristine_git_object: 762c1d86c47f284ad8d7e237bfe4bba0a1b96bf7 + last_write_checksum: sha1:2bf6136aaee1c615729b74a54110abaa364988f8 + pristine_git_object: 6b9d92d27e03823947907a1ed59fa53cf3fb9190 docs/sdks/visibilityoverrides/README.md: id: c7d003d6a68f last_write_checksum: sha1:738c52c3b0964cfb441542710e10c51ca226f177 @@ -3834,8 +3834,8 @@ trackedFiles: pristine_git_object: 79e388be87446ab6a4064b372bad0e8376d0cb5e pyproject.toml: id: 5d07e7d72637 - last_write_checksum: sha1:b0e2d2d1b9a92a51a543b372332b65b622e4c57e - pristine_git_object: c4dcc6eb4e09a522910fd98b210ce29a0d3fbc58 + last_write_checksum: sha1:79dba443d9e2a9797dada86dcfbf8ebaab8c180d + pristine_git_object: d4e7511e76fcb18bbb8b6c2664327f2b6d8f5014 scripts/prepare_readme.py: id: e0c5957a6035 last_write_checksum: sha1:c2c83f71dea61eb50c9e05da83b16d18b4da8794 @@ -3862,8 +3862,8 @@ trackedFiles: pristine_git_object: 55f23c1feabfedeb7e8cd5bea8b910f0ae0b77d9 src/glean/api_client/_version.py: id: 0ce22b26136b - last_write_checksum: sha1:f6cf7c9a092fdf68e6e16da658736cf69b73cb34 - pristine_git_object: 6ac9bc6e4facc092536961ad16968ecde196a024 + last_write_checksum: sha1:0745e24320cc049ea03d135ffbccf979ebc46066 + pristine_git_object: 7b440e02689bcbc32926d66155f26363b206569d src/glean/api_client/agents.py: id: b925701a9217 last_write_checksum: sha1:1d4b152d9d9260d1c97d4983f521f30b5cfa1085 @@ -3882,8 +3882,8 @@ trackedFiles: pristine_git_object: bf7b1b3b25ce6530403b0dd9f60599d236c780ce src/glean/api_client/chat_sdk.py: id: f2f30e13ca42 - last_write_checksum: sha1:0fd8e9638b78c28f1504967c62f471cd38108864 - pristine_git_object: 80bd36d3f99bafbc262cb5d3383ae9a4034a222c + last_write_checksum: sha1:7c5d02b5349629dc53bae44265ddca42944fdd7e + pristine_git_object: 2dd3d981f85c6365c6d15882225908ce6804918d src/glean/api_client/client.py: id: c0c188098f10 last_write_checksum: sha1:bfadba5dfdc64280fd9c7bdbf96a0651e5db429f @@ -10966,8 +10966,8 @@ trackedFiles: pristine_git_object: 6cc8aeec3c52329d389081db0a27f10f53f214b9 tests/test_messages.py: id: be23089b1f8b - last_write_checksum: sha1:2404e23964ef6a1f5ddc900402b34e597d2d9617 - pristine_git_object: 132005ec7d1e35f805b6a8c28e07e043bce22f0a + last_write_checksum: sha1:b7415512608102fa07b1990a350a7da66946fe46 + pristine_git_object: 636f01d348f30db3ee81985044634511b615af16 tests/test_people.py: id: 37c243940039 last_write_checksum: sha1:2b78b1c5ea17f267895188b1b48ff9fe2bc19f17 @@ -10986,24 +10986,24 @@ trackedFiles: pristine_git_object: 3fa82f944c8693f534f71d96c489225c3f65cb5d tests/test_search.py: id: dd86606b335f - last_write_checksum: sha1:a92637edcfdef5c493a5ceb2ba468b8d75a6f05a - pristine_git_object: 015f97b862bc14fabb30c23d2c1eecbad3a532f6 + last_write_checksum: sha1:6917a63c00528086e8db15fd48e573fbf09e37ae + pristine_git_object: d0a8bd281e331739b23473d92b80408666d63066 tests/test_skills.py: id: ac5db26bd6b1 last_write_checksum: sha1:51a01a7104693f6ddde3496296f520a0f1c6243d pristine_git_object: 63587d5a9e7b7e506ce9daf00d51ce92afb56035 tests/test_summarize.py: id: a255d8a6f627 - last_write_checksum: sha1:37185416149f9acbd3383f6c279692aa31e2344a - pristine_git_object: 449a89669c90568cbef8fb81ea72eb5e5034bd39 + last_write_checksum: sha1:d0245ffca1533446942ac2b0f1109d4f6e9888b4 + pristine_git_object: f9c494d59cc7d73c8b3ea1c965b544c79625198a tests/test_tools.py: id: 70889bdf7321 last_write_checksum: sha1:e9e37efd6a65d805c02d70d548df9c87dd062b0e pristine_git_object: 626f9c2c92cff302bac5dd4340d7b962551b5c8f tests/test_triggers.py: id: 99ebb55d09b2 - last_write_checksum: sha1:663b063eb9d7b716af9949c73f61abedb078310f - pristine_git_object: 35ec4a2bd7923d0aea72d213f691f3627003abcf + last_write_checksum: sha1:d4e62d277869b3dbf27112933ec9eacc5eded261 + pristine_git_object: 937d759df39b1d07387aabc9129f853711aa18b1 tests/test_troubleshooting.py: id: 784c409f631e last_write_checksum: sha1:5af30befb8fffd54210e313bf98c24a64a685c50 @@ -11999,7 +11999,7 @@ examples: platform-search: speakeasy-default-platform-search: requestBody: - application/json: {"query": "quarterly planning 2026", "page_size": 10, "datasources": ["confluence", "google_drive"], "filters": [{"field": "type", "values": ["spreadsheet", "presentation"]}]} + application/json: {"query": "quarterly planning 2026", "page_size": 10} responses: "200": application/json: {"results": [], "has_more": false, "next_cursor": "", "request_id": "", "warnings": []} @@ -12252,7 +12252,7 @@ examples: platform-triggers-create: speakeasy-default-platform-triggers-create: requestBody: - application/json: {"preset_id": "GITHUB_1", "description": "Reviews I am tagged on, sent to my team's review channel", "inputs": {"repository": "acme/payments-api"}, "delivery": {"webhook_url": "https://customer.app/webhook", "auth": {"type": "BEARER", "secret": "secret_test_123"}}} + application/json: {"preset_id": "GITHUB_1", "inputs": {"repository": "{repository}"}, "delivery": {"webhook_url": "https://example.com/webhook"}} responses: "201": application/json: {"trigger": {"trigger_id": "trigger_test_123", "preset_id": "GITHUB_1", "description": "Reviews I am tagged on, sent to my team's review channel", "status": "ENABLED", "inputs": {"repository": "acme/payments-api"}, "delivery": {"webhook_url": "https://customer.app/webhook"}, "created_at": "2025-08-17T18:19:46.877Z", "updated_at": "2024-09-14T03:27:40.201Z", "signing_secret": "whsec_xxx"}, "request_id": ""} @@ -12290,7 +12290,7 @@ examples: path: trigger_id: "" requestBody: - application/json: {"status": "ENABLED", "description": "Reviews I am tagged on, sent to my team's review channel", "inputs": {"repository": "acme/payments-api"}, "delivery": {"webhook_url": "https://customer.app/webhook", "auth": {"type": "BEARER", "secret": "secret_test_123"}}} + application/json: {"inputs": {"repository": "{repository}"}, "delivery": {"webhook_url": "https://example.com/webhook"}} responses: "200": application/json: {"trigger": {"trigger_id": "trigger_test_123", "preset_id": "GITHUB_1", "description": "Reviews I am tagged on, sent to my team's review channel", "status": "ENABLED", "inputs": {"repository": "acme/payments-api"}, "delivery": {"webhook_url": "https://customer.app/webhook"}, "created_at": "2026-09-03T11:57:47.699Z", "updated_at": "2026-01-25T02:15:09.513Z"}, "request_id": ""} @@ -12313,6 +12313,8 @@ examples: parameters: path: trigger_id: "" + requestBody: + application/json: {"page_size": 10} responses: "200": application/json: {"results": [{"event_type": "DOCUMENT_CHANGE", "datasource": "GITHUB", "reason": "REVIEW_REQUESTED", "doc_type": "pull", "doc_id": "", "view_url": "https://silent-omelet.biz", "title": "", "event_time": "2024-06-12T22:23:25.274Z"}], "has_more": false, "request_id": ""} @@ -12364,7 +12366,7 @@ examples: path: preset_id: "" requestBody: - application/json: {"inputs": {"repository": "acme/payments-api"}, "page_size": 10} + application/json: {"inputs": {"repository": "{repository}"}, "page_size": 10} responses: "200": application/json: {"results": [{"event_type": "DOCUMENT_CHANGE", "datasource": "GITHUB", "reason": "REVIEW_REQUESTED", "doc_type": "pull", "doc_id": "", "view_url": "https://prickly-cutover.info/", "title": "", "event_time": "2025-04-15T15:45:31.544Z"}], "has_more": false, "request_id": ""} @@ -12581,7 +12583,6 @@ generatedTests: platform-trigger-presets-get: "2026-08-21T02:33:03Z" platform-trigger-presets-input-values-list: "2026-08-21T02:33:03Z" platform-trigger-presets-events-search: "2026-08-21T02:33:03Z" -releaseNotes: "## Python SDK Changes:\n* `glean.chat.create()`: \n * `request.stream` **Removed** (Breaking ⚠️)\n * `response.status[200].content[text/event-stream` **Removed** (Breaking ⚠️)\n" generatedFiles: - .devcontainer/README.md - .devcontainer/devcontainer.json diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 0cd91706..d175020b 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -34,7 +34,7 @@ generation: generateNewTests: true skipResponseBodyAssertions: true python: - version: 0.17.0 + version: 0.17.1 additionalDependencies: dev: {} main: {} diff --git a/.speakeasy/glean-merged-spec.yaml b/.speakeasy/glean-merged-spec.yaml index 89d80e75..b4ceba82 100644 --- a/.speakeasy/glean-merged-spec.yaml +++ b/.speakeasy/glean-merged-spec.yaml @@ -2,8 +2,8 @@ openapi: 3.1.0 info: version: "0.9.0" title: Glean API - x-source-commit-sha: 5466f502134b80b23f38908bc64369113503fdea - x-open-api-commit-sha: deb9f3c416b47e6ae3ae9af44a4b6a8ba8f61089 + x-source-commit-sha: 6c454c6b185ebe58e74e781a36041222f47897e0 + x-open-api-commit-sha: 0df5939226dc378b392825655b036df1e08909a7 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. @@ -90,6 +90,7 @@ paths: name: agent_id description: ID of the agent to retrieve. required: true + example: "{agent_id}" schema: type: string minLength: 1 @@ -134,6 +135,7 @@ paths: name: agent_id description: ID of the agent whose schemas should be retrieved. required: true + example: "{agent_id}" schema: type: string minLength: 1 @@ -186,6 +188,7 @@ paths: name: agent_id description: ID of the agent to run. required: true + example: "{agent_id}" schema: type: string minLength: 1 @@ -255,7 +258,7 @@ paths: - Chat summary: Create a chat response description: | - Run an assistant turn. Set `stream` to true to receive server-sent events; otherwise the response is a typed JSON response object. + Run an assistant turn. The default response is JSON. HTTP clients request server-sent events by setting `stream` to true in the JSON body. An `Accept: text/event-stream` header does not replace `stream`. operationId: platform-chat-create x-visibility: Public x-glean-experimental: @@ -586,6 +589,7 @@ paths: in: path required: true description: Glean skill ID. + example: "{skill_id}" schema: type: string minLength: 1 @@ -643,6 +647,7 @@ paths: in: path required: true description: Glean skill ID. + example: "{skill_id}" schema: type: string minLength: 1 @@ -685,6 +690,7 @@ paths: in: path required: true description: Glean skill ID. + example: "{skill_id}" schema: type: string minLength: 1 @@ -732,6 +738,7 @@ paths: in: path required: true description: Glean skill ID. + example: "{skill_id}" schema: type: string minLength: 1 @@ -785,6 +792,7 @@ paths: in: path required: true description: ID of the GitHub-imported skill to sync. + example: "{skill_id}" schema: type: string minLength: 1 @@ -836,6 +844,7 @@ paths: in: path required: true description: Glean skill ID. + example: "{skill_id}" schema: type: string minLength: 1 @@ -893,6 +902,7 @@ paths: in: path required: true description: Glean skill ID. + example: "{skill_id}" schema: type: string minLength: 1 @@ -955,6 +965,7 @@ paths: in: path required: true description: Glean skill ID. + example: "{skill_id}" schema: type: string minLength: 1 @@ -962,6 +973,7 @@ paths: in: path required: true description: Major version number. + example: 1 schema: type: integer minimum: 1 @@ -1009,6 +1021,7 @@ paths: in: path required: true description: Glean skill ID. + example: "{skill_id}" schema: type: string minLength: 1 @@ -1016,6 +1029,7 @@ paths: in: path required: true description: Major version number. + example: 1 schema: type: integer minimum: 1 @@ -1325,6 +1339,7 @@ paths: name: trigger_id description: ID of the trigger to retrieve. required: true + example: "{trigger_id}" schema: type: string minLength: 1 @@ -1372,6 +1387,7 @@ paths: name: trigger_id description: ID of the trigger to update. required: true + example: "{trigger_id}" schema: type: string minLength: 1 @@ -1426,6 +1442,7 @@ paths: name: trigger_id description: ID of the trigger to delete. required: true + example: "{trigger_id}" schema: type: string minLength: 1 @@ -1469,6 +1486,7 @@ paths: name: trigger_id description: ID of the trigger whose events to search. required: true + example: "{trigger_id}" schema: type: string minLength: 1 @@ -1585,6 +1603,7 @@ paths: name: preset_id description: ID of the preset to retrieve. required: true + example: "{preset_id}" schema: type: string minLength: 1 @@ -1632,6 +1651,7 @@ paths: name: preset_id description: ID of the preset the input belongs to. required: true + example: "{preset_id}" schema: type: string minLength: 1 @@ -1639,6 +1659,7 @@ paths: name: field description: Field identifier of the input whose values to list. required: true + example: "{field}" schema: type: string minLength: 1 @@ -1693,6 +1714,7 @@ paths: name: preset_id description: ID of the preset to preview. required: true + example: "{preset_id}" schema: type: string minLength: 1 @@ -1737,7 +1759,7 @@ paths: - Chat summary: SDK-only logical operation. HTTP clients must call the base path; the URL fragment is not sent. Create a chat response description: | - SDK-only logical operation. HTTP clients must call the base path; the URL fragment is not sent. Run an assistant turn. Set `stream` to true to receive server-sent events; otherwise the response is a typed JSON response object. + SDK-only logical operation. HTTP clients must call the base path; the URL fragment is not sent. Run an assistant turn. The default response is JSON. HTTP clients request server-sent events by setting `stream` to true in the JSON body. An `Accept: text/event-stream` header does not replace `stream`. operationId: platform-chat-create-stream x-visibility: Public x-glean-experimental: @@ -7293,7 +7315,7 @@ components: stream: type: boolean description: | - When true, respond with `text/event-stream`. When false or omitted, respond with `application/json`. + When true, the HTTP response is `text/event-stream`. When false or omitted, the HTTP response is `application/json`. default: false store: type: boolean @@ -8279,14 +8301,6 @@ components: - query example: query: quarterly planning 2026 - datasources: - - confluence - - google_drive - filters: - - field: type - values: - - spreadsheet - - presentation properties: query: type: string @@ -8589,6 +8603,12 @@ components: required: - preset_id - delivery + example: + preset_id: GITHUB_1 + inputs: + repository: "{repository}" + delivery: + webhook_url: https://example.com/webhook properties: preset_id: type: string @@ -8760,6 +8780,11 @@ components: type: object additionalProperties: false description: Partial update. Only the supplied fields are changed. + example: + inputs: + repository: "{repository}" + delivery: + webhook_url: https://example.com/webhook properties: status: $ref: "#/components/schemas/PlatformTriggerStatus" @@ -8778,6 +8803,8 @@ components: PlatformTriggerEventSearchRequest: type: object additionalProperties: false + example: + page_size: 10 properties: page_size: type: integer @@ -9044,6 +9071,10 @@ components: PlatformTriggerPresetEventSearchRequest: type: object additionalProperties: false + example: + inputs: + repository: "{repository}" + page_size: 10 properties: inputs: type: object diff --git a/.speakeasy/tests.arazzo.yaml b/.speakeasy/tests.arazzo.yaml index fc6744c3..ca09331b 100644 --- a/.speakeasy/tests.arazzo.yaml +++ b/.speakeasy/tests.arazzo.yaml @@ -158808,14 +158808,6 @@ workflows: requestBody: contentType: application/json payload: - datasources: - - confluence - - google_drive - filters: - - field: type - values: - - spreadsheet - - presentation page_size: 10 query: quarterly planning 2026 successCriteria: @@ -159296,13 +159288,9 @@ workflows: contentType: application/json payload: delivery: - auth: - secret: secret_test_123 - type: BEARER - webhook_url: https://customer.app/webhook - description: Reviews I am tagged on, sent to my team's review channel + webhook_url: https://example.com/webhook inputs: - repository: acme/payments-api + repository: '{repository}' preset_id: GITHUB_1 successCriteria: - condition: $statusCode == 201 @@ -159359,14 +159347,9 @@ workflows: contentType: application/json payload: delivery: - auth: - secret: secret_test_123 - type: BEARER - webhook_url: https://customer.app/webhook - description: Reviews I am tagged on, sent to my team's review channel + webhook_url: https://example.com/webhook inputs: - repository: acme/payments-api - status: ENABLED + repository: '{repository}' successCriteria: - condition: $statusCode == 200 - condition: $response.header.Content-Type == application/json @@ -159391,6 +159374,10 @@ workflows: condition: | {"results":[{"event_type":"DOCUMENT_CHANGE","datasource":"GITHUB","reason":"REVIEW_REQUESTED","doc_type":"pull","doc_id":"","view_url":"https://silent-omelet.biz","title":"","event_time":"2024-06-12T22:23:25.274Z"}],"has_more":false,"request_id":""} type: simple + requestBody: + contentType: application/json + payload: + page_size: 10 x-speakeasy-test-group: triggers x-speakeasy-test-rebuild: true - workflowId: platform-trigger-presets-list @@ -159459,7 +159446,7 @@ workflows: contentType: application/json payload: inputs: - repository: acme/payments-api + repository: '{repository}' page_size: 10 successCriteria: - condition: $statusCode == 200 diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 8805bd03..88144e64 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,8 +2,8 @@ speakeasyVersion: 1.796.3 sources: Glean API: sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:c3b4f0e688c6d223d13c83e67e70dc820492ca5fcd414813d666f6fd0f7476f0 - sourceBlobDigest: sha256:bded81b38b07e32713883fe38eb46f3f2f1052ed0d3d8f8e3668f14d950eacd3 + sourceRevisionDigest: sha256:e247e871123d34059c563050f008462386b91706ae3dff64ae6d76ba1db41c47 + sourceBlobDigest: sha256:492a86ef598c2a97eeabd40c94fcbbdfe57c36e0381cf8bb18d91b8f6f8f135f tags: - latest Glean Client API: @@ -16,10 +16,10 @@ targets: glean: source: Glean API sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:c3b4f0e688c6d223d13c83e67e70dc820492ca5fcd414813d666f6fd0f7476f0 - sourceBlobDigest: sha256:bded81b38b07e32713883fe38eb46f3f2f1052ed0d3d8f8e3668f14d950eacd3 + sourceRevisionDigest: sha256:e247e871123d34059c563050f008462386b91706ae3dff64ae6d76ba1db41c47 + sourceBlobDigest: sha256:492a86ef598c2a97eeabd40c94fcbbdfe57c36e0381cf8bb18d91b8f6f8f135f codeSamplesNamespace: glean-api-specs-python-code-samples - codeSamplesRevisionDigest: sha256:c631f899a17bf6ae9a7d7762deee068886d03e83282729e1858cd955c45171b0 + codeSamplesRevisionDigest: sha256:c6b6b63f8baba5135c3cb416427836a357e7a8506460c0c310e8fd0fe3c39f48 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/RELEASES.md b/RELEASES.md index 7c4e0ed2..72e05776 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -858,4 +858,14 @@ Based on: ### Generated - [python v0.17.0] . ### Releases -- [PyPI v0.17.0] https://pypi.org/project/glean-api-client/0.17.0 - . \ No newline at end of file +- [PyPI v0.17.0] https://pypi.org/project/glean-api-client/0.17.0 - . + +## 2026-09-02 19:43:03 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.796.3 (2.934.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v0.17.1] . +### Releases +- [PyPI v0.17.1] https://pypi.org/project/glean-api-client/0.17.1 - . \ No newline at end of file diff --git a/docs/models/platformagentscreaterunrequest.md b/docs/models/platformagentscreaterunrequest.md index 1e66f04a..7914d693 100644 --- a/docs/models/platformagentscreaterunrequest.md +++ b/docs/models/platformagentscreaterunrequest.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | -| `agent_id` | *str* | :heavy_check_mark: | ID of the agent to run. | | +| `agent_id` | *str* | :heavy_check_mark: | ID of the agent to run. | {agent_id} | | `platform_agent_run_create_request` | [models.PlatformAgentRunCreateRequest](../models/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/platformagentsgetrequest.md b/docs/models/platformagentsgetrequest.md index 5cdd73d2..615a5fc0 100644 --- a/docs/models/platformagentsgetrequest.md +++ b/docs/models/platformagentsgetrequest.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `agent_id` | *str* | :heavy_check_mark: | ID of the agent to retrieve. | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `agent_id` | *str* | :heavy_check_mark: | ID of the agent to retrieve. | {agent_id} | \ No newline at end of file diff --git a/docs/models/platformagentsgetschemasrequest.md b/docs/models/platformagentsgetschemasrequest.md index dfb7f4df..6d512b57 100644 --- a/docs/models/platformagentsgetschemasrequest.md +++ b/docs/models/platformagentsgetschemasrequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -| `agent_id` | *str* | :heavy_check_mark: | ID of the agent whose schemas should be retrieved. | -| `include_tools` | *Optional[bool]* | :heavy_minus_sign: | Whether to include tool metadata in the response. | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | +| `agent_id` | *str* | :heavy_check_mark: | ID of the agent whose schemas should be retrieved. | {agent_id} | +| `include_tools` | *Optional[bool]* | :heavy_minus_sign: | Whether to include tool metadata in the response. | | \ No newline at end of file diff --git a/docs/models/platformskillscreateversionrequest.md b/docs/models/platformskillscreateversionrequest.md index 00bd2fb2..b44f133a 100644 --- a/docs/models/platformskillscreateversionrequest.md +++ b/docs/models/platformskillscreateversionrequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `skill_id` | *str* | :heavy_check_mark: | Glean skill ID. | -| `platform_skill_version_create_request` | [models.PlatformSkillVersionCreateRequest](../models/platformskillversioncreaterequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `skill_id` | *str* | :heavy_check_mark: | Glean skill ID. | {skill_id} | +| `platform_skill_version_create_request` | [models.PlatformSkillVersionCreateRequest](../models/platformskillversioncreaterequest.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/platformskillsdeleterequest.md b/docs/models/platformskillsdeleterequest.md index f05b2a77..ed0d823f 100644 --- a/docs/models/platformskillsdeleterequest.md +++ b/docs/models/platformskillsdeleterequest.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `skill_id` | *str* | :heavy_check_mark: | Glean skill ID. | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `skill_id` | *str* | :heavy_check_mark: | Glean skill ID. | {skill_id} | \ No newline at end of file diff --git a/docs/models/platformskillsgetcontentrequest.md b/docs/models/platformskillsgetcontentrequest.md index 0a2180e1..9fdfcc5b 100644 --- a/docs/models/platformskillsgetcontentrequest.md +++ b/docs/models/platformskillsgetcontentrequest.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `skill_id` | *str* | :heavy_check_mark: | Glean skill ID. | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `skill_id` | *str* | :heavy_check_mark: | Glean skill ID. | {skill_id} | \ No newline at end of file diff --git a/docs/models/platformskillsgetrequest.md b/docs/models/platformskillsgetrequest.md index 19aeb1fe..ef0d2f94 100644 --- a/docs/models/platformskillsgetrequest.md +++ b/docs/models/platformskillsgetrequest.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `skill_id` | *str* | :heavy_check_mark: | Glean skill ID. | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `skill_id` | *str* | :heavy_check_mark: | Glean skill ID. | {skill_id} | \ No newline at end of file diff --git a/docs/models/platformskillsgetversioncontentrequest.md b/docs/models/platformskillsgetversioncontentrequest.md index ed179d36..4e90ae2a 100644 --- a/docs/models/platformskillsgetversioncontentrequest.md +++ b/docs/models/platformskillsgetversioncontentrequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| --------------------- | --------------------- | --------------------- | --------------------- | -| `skill_id` | *str* | :heavy_check_mark: | Glean skill ID. | -| `version` | *int* | :heavy_check_mark: | Major version number. | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------- | --------------------- | --------------------- | --------------------- | --------------------- | +| `skill_id` | *str* | :heavy_check_mark: | Glean skill ID. | {skill_id} | +| `version` | *int* | :heavy_check_mark: | Major version number. | 1 | \ No newline at end of file diff --git a/docs/models/platformskillsgetversionrequest.md b/docs/models/platformskillsgetversionrequest.md index 9256349d..f9a2d64a 100644 --- a/docs/models/platformskillsgetversionrequest.md +++ b/docs/models/platformskillsgetversionrequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| --------------------- | --------------------- | --------------------- | --------------------- | -| `skill_id` | *str* | :heavy_check_mark: | Glean skill ID. | -| `version` | *int* | :heavy_check_mark: | Major version number. | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------- | --------------------- | --------------------- | --------------------- | --------------------- | +| `skill_id` | *str* | :heavy_check_mark: | Glean skill ID. | {skill_id} | +| `version` | *int* | :heavy_check_mark: | Major version number. | 1 | \ No newline at end of file diff --git a/docs/models/platformskillslistversionsrequest.md b/docs/models/platformskillslistversionsrequest.md index d97b7012..a3fa36c9 100644 --- a/docs/models/platformskillslistversionsrequest.md +++ b/docs/models/platformskillslistversionsrequest.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -| `skill_id` | *str* | :heavy_check_mark: | Glean skill ID. | -| `page_size` | *Optional[int]* | :heavy_minus_sign: | Maximum number of versions to return. | -| `cursor` | *Optional[str]* | :heavy_minus_sign: | Opaque pagination cursor from a previous response. | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | +| `skill_id` | *str* | :heavy_check_mark: | Glean skill ID. | {skill_id} | +| `page_size` | *Optional[int]* | :heavy_minus_sign: | Maximum number of versions to return. | | +| `cursor` | *Optional[str]* | :heavy_minus_sign: | Opaque pagination cursor from a previous response. | | \ No newline at end of file diff --git a/docs/models/platformskillssyncrequest.md b/docs/models/platformskillssyncrequest.md index 2d54f2d5..58111860 100644 --- a/docs/models/platformskillssyncrequest.md +++ b/docs/models/platformskillssyncrequest.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| `skill_id` | *str* | :heavy_check_mark: | ID of the GitHub-imported skill to sync. | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| `skill_id` | *str* | :heavy_check_mark: | ID of the GitHub-imported skill to sync. | {skill_id} | \ No newline at end of file diff --git a/docs/models/platformskillsupdaterequest.md b/docs/models/platformskillsupdaterequest.md index 7bf2215d..c26ebd33 100644 --- a/docs/models/platformskillsupdaterequest.md +++ b/docs/models/platformskillsupdaterequest.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| `skill_id` | *str* | :heavy_check_mark: | Glean skill ID. | | +| `skill_id` | *str* | :heavy_check_mark: | Glean skill ID. | {skill_id} | | `platform_skill_update_request` | [models.PlatformSkillUpdateRequest](../models/platformskillupdaterequest.md) | :heavy_check_mark: | N/A | {
"status": "ENABLED"
} | \ No newline at end of file diff --git a/docs/models/platformtriggerpresetseventssearchrequest.md b/docs/models/platformtriggerpresetseventssearchrequest.md index 5b9b8544..2ddd7e0b 100644 --- a/docs/models/platformtriggerpresetseventssearchrequest.md +++ b/docs/models/platformtriggerpresetseventssearchrequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | -| `preset_id` | *str* | :heavy_check_mark: | ID of the preset to preview. | -| `platform_trigger_preset_event_search_request` | [Optional[models.PlatformTriggerPresetEventSearchRequest]](../models/platformtriggerpreseteventsearchrequest.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `preset_id` | *str* | :heavy_check_mark: | ID of the preset to preview. | {preset_id} | +| `platform_trigger_preset_event_search_request` | [Optional[models.PlatformTriggerPresetEventSearchRequest]](../models/platformtriggerpreseteventsearchrequest.md) | :heavy_minus_sign: | N/A | {
"inputs": {
"repository": "{repository}"
},
"page_size": 10
} | \ No newline at end of file diff --git a/docs/models/platformtriggerpresetsgetrequest.md b/docs/models/platformtriggerpresetsgetrequest.md index 3649388d..a5ff664c 100644 --- a/docs/models/platformtriggerpresetsgetrequest.md +++ b/docs/models/platformtriggerpresetsgetrequest.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | -| `preset_id` | *str* | :heavy_check_mark: | ID of the preset to retrieve. | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | +| `preset_id` | *str* | :heavy_check_mark: | ID of the preset to retrieve. | {preset_id} | \ No newline at end of file diff --git a/docs/models/platformtriggerpresetsinputvalueslistrequest.md b/docs/models/platformtriggerpresetsinputvalueslistrequest.md index cb4a01b8..125422c3 100644 --- a/docs/models/platformtriggerpresetsinputvalueslistrequest.md +++ b/docs/models/platformtriggerpresetsinputvalueslistrequest.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -| `preset_id` | *str* | :heavy_check_mark: | ID of the preset the input belongs to. | -| `field` | *str* | :heavy_check_mark: | Field identifier of the input whose values to list. | -| `query` | *Optional[str]* | :heavy_minus_sign: | Prefix filter over the input's option values, for typeahead. Matching is on the option value, not its display name.
| \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `preset_id` | *str* | :heavy_check_mark: | ID of the preset the input belongs to. | {preset_id} | +| `field` | *str* | :heavy_check_mark: | Field identifier of the input whose values to list. | {field} | +| `query` | *Optional[str]* | :heavy_minus_sign: | Prefix filter over the input's option values, for typeahead. Matching is on the option value, not its display name.
| | \ No newline at end of file diff --git a/docs/models/platformtriggersdeleterequest.md b/docs/models/platformtriggersdeleterequest.md index b31a34f2..d17ae02b 100644 --- a/docs/models/platformtriggersdeleterequest.md +++ b/docs/models/platformtriggersdeleterequest.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `trigger_id` | *str* | :heavy_check_mark: | ID of the trigger to delete. | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `trigger_id` | *str* | :heavy_check_mark: | ID of the trigger to delete. | {trigger_id} | \ No newline at end of file diff --git a/docs/models/platformtriggerseventssearchrequest.md b/docs/models/platformtriggerseventssearchrequest.md index 940d83b9..89a15574 100644 --- a/docs/models/platformtriggerseventssearchrequest.md +++ b/docs/models/platformtriggerseventssearchrequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `trigger_id` | *str* | :heavy_check_mark: | ID of the trigger whose events to search. | -| `platform_trigger_event_search_request` | [Optional[models.PlatformTriggerEventSearchRequest]](../models/platformtriggereventsearchrequest.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `trigger_id` | *str* | :heavy_check_mark: | ID of the trigger whose events to search. | {trigger_id} | +| `platform_trigger_event_search_request` | [Optional[models.PlatformTriggerEventSearchRequest]](../models/platformtriggereventsearchrequest.md) | :heavy_minus_sign: | N/A | {
"page_size": 10
} | \ No newline at end of file diff --git a/docs/models/platformtriggersgetrequest.md b/docs/models/platformtriggersgetrequest.md index e0823c58..943506d8 100644 --- a/docs/models/platformtriggersgetrequest.md +++ b/docs/models/platformtriggersgetrequest.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | -| `trigger_id` | *str* | :heavy_check_mark: | ID of the trigger to retrieve. | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `trigger_id` | *str* | :heavy_check_mark: | ID of the trigger to retrieve. | {trigger_id} | \ No newline at end of file diff --git a/docs/models/platformtriggersupdaterequest.md b/docs/models/platformtriggersupdaterequest.md index 8e9c286d..181b6ea9 100644 --- a/docs/models/platformtriggersupdaterequest.md +++ b/docs/models/platformtriggersupdaterequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -| `trigger_id` | *str* | :heavy_check_mark: | ID of the trigger to update. | -| `platform_trigger_update_request` | [models.PlatformTriggerUpdateRequest](../models/platformtriggerupdaterequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `trigger_id` | *str* | :heavy_check_mark: | ID of the trigger to update. | {trigger_id} | +| `platform_trigger_update_request` | [models.PlatformTriggerUpdateRequest](../models/platformtriggerupdaterequest.md) | :heavy_check_mark: | N/A | {
"inputs": {
"repository": "{repository}"
},
"delivery": {
"webhook_url": "https://example.com/webhook"
}
} | \ No newline at end of file diff --git a/docs/sdks/agents/README.md b/docs/sdks/agents/README.md index f7fb5a04..08a9bf17 100644 --- a/docs/sdks/agents/README.md +++ b/docs/sdks/agents/README.md @@ -69,7 +69,7 @@ with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), ) as glean: - res = glean.agents.get(agent_id="") + res = glean.agents.get(agent_id="{agent_id}") # Handle response print(res) @@ -78,10 +78,10 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `agent_id` | *str* | :heavy_check_mark: | ID of the agent to retrieve. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | Example | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `agent_id` | *str* | :heavy_check_mark: | ID of the agent to retrieve. | {agent_id} | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | ### Response @@ -112,7 +112,7 @@ with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), ) as glean: - res = glean.agents.get_schemas(agent_id="", include_tools=False) + res = glean.agents.get_schemas(agent_id="{agent_id}", include_tools=False) # Handle response print(res) @@ -121,11 +121,11 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `agent_id` | *str* | :heavy_check_mark: | ID of the agent whose schemas should be retrieved. | -| `include_tools` | *Optional[bool]* | :heavy_minus_sign: | Whether to include tool metadata in the response. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | Example | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `agent_id` | *str* | :heavy_check_mark: | ID of the agent whose schemas should be retrieved. | {agent_id} | +| `include_tools` | *Optional[bool]* | :heavy_minus_sign: | Whether to include tool metadata in the response. | | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | ### Response @@ -156,7 +156,7 @@ with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), ) as glean: - res = glean.agents.create_run(agent_id="", messages=[ + res = glean.agents.create_run(agent_id="{agent_id}", messages=[ { "role": models.PlatformMessageRole.USER, "content": [ @@ -175,14 +175,14 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `agent_id` | *str* | :heavy_check_mark: | ID of the agent to run. | -| `input` | Dict[str, *Any*] | :heavy_minus_sign: | Input fields for an input-form triggered agent. | -| `messages` | List[[models.PlatformMessage](../../models/platformmessage.md)] | :heavy_minus_sign: | Messages to pass to the agent. When provided, the array MUST contain at least one message and each message MUST specify a valid `role` and non-empty `content`.
| -| `metadata` | Dict[str, *Any*] | :heavy_minus_sign: | Metadata to pass to the agent. | -| `stream` | *Optional[bool]* | :heavy_minus_sign: | Whether to stream the run response as server-sent events. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `agent_id` | *str* | :heavy_check_mark: | ID of the agent to run. | {agent_id} | +| `input` | Dict[str, *Any*] | :heavy_minus_sign: | Input fields for an input-form triggered agent. | | +| `messages` | List[[models.PlatformMessage](../../models/platformmessage.md)] | :heavy_minus_sign: | Messages to pass to the agent. When provided, the array MUST contain at least one message and each message MUST specify a valid `role` and non-empty `content`.
| | +| `metadata` | Dict[str, *Any*] | :heavy_minus_sign: | Metadata to pass to the agent. | | +| `stream` | *Optional[bool]* | :heavy_minus_sign: | Whether to stream the run response as server-sent events. | | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | ### Response diff --git a/docs/sdks/chatsdk/README.md b/docs/sdks/chatsdk/README.md index 58f9aea3..b805ae94 100644 --- a/docs/sdks/chatsdk/README.md +++ b/docs/sdks/chatsdk/README.md @@ -9,7 +9,7 @@ ## create -Run an assistant turn. Set `stream` to true to receive server-sent events; otherwise the response is a typed JSON response object. +Run an assistant turn. The default response is JSON. HTTP clients request server-sent events by setting `stream` to true in the JSON body. An `Accept: text/event-stream` header does not replace `stream`. ### Example Usage @@ -54,7 +54,7 @@ with Glean( ## create_stream -SDK-only logical operation. HTTP clients must call the base path; the URL fragment is not sent. Run an assistant turn. Set `stream` to true to receive server-sent events; otherwise the response is a typed JSON response object. +SDK-only logical operation. HTTP clients must call the base path; the URL fragment is not sent. Run an assistant turn. The default response is JSON. HTTP clients request server-sent events by setting `stream` to true in the JSON body. An `Accept: text/event-stream` header does not replace `stream`. ### Example Usage diff --git a/docs/sdks/search/README.md b/docs/sdks/search/README.md index e8db7383..43e735ef 100644 --- a/docs/sdks/search/README.md +++ b/docs/sdks/search/README.md @@ -25,10 +25,7 @@ with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), ) as glean: - res = glean.search.query(query="quarterly planning 2026", page_size=10, datasources=[ - "confluence", - "google_drive", - ], filters=[ + res = glean.search.query(query="quarterly planning 2026", page_size=10, filters=[ { "field": "type", "values": [ diff --git a/docs/sdks/skills/README.md b/docs/sdks/skills/README.md index b89e4403..7a11b9bc 100644 --- a/docs/sdks/skills/README.md +++ b/docs/sdks/skills/README.md @@ -261,7 +261,7 @@ with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), ) as glean: - res = glean.skills.update(skill_id="", status=models.PlatformSkillUpdateStatus.ENABLED) + res = glean.skills.update(skill_id="{skill_id}", status=models.PlatformSkillUpdateStatus.ENABLED) # Handle response print(res) @@ -270,11 +270,11 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | -| `skill_id` | *str* | :heavy_check_mark: | Glean skill ID. | -| `status` | [models.PlatformSkillUpdateStatus](../../models/platformskillupdatestatus.md) | :heavy_check_mark: | New status for the skill. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | Example | +| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | +| `skill_id` | *str* | :heavy_check_mark: | Glean skill ID. | {skill_id} | +| `status` | [models.PlatformSkillUpdateStatus](../../models/platformskillupdatestatus.md) | :heavy_check_mark: | New status for the skill. | | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | ### Response @@ -305,7 +305,7 @@ with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), ) as glean: - glean.skills.delete(skill_id="") + glean.skills.delete(skill_id="{skill_id}") # Use the SDK ... @@ -313,10 +313,10 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `skill_id` | *str* | :heavy_check_mark: | Glean skill ID. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | Example | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `skill_id` | *str* | :heavy_check_mark: | Glean skill ID. | {skill_id} | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | ### Errors @@ -343,7 +343,7 @@ with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), ) as glean: - res = glean.skills.retrieve(skill_id="") + res = glean.skills.retrieve(skill_id="{skill_id}") # Handle response print(res) @@ -352,10 +352,10 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `skill_id` | *str* | :heavy_check_mark: | Glean skill ID. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | Example | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `skill_id` | *str* | :heavy_check_mark: | Glean skill ID. | {skill_id} | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | ### Response @@ -386,7 +386,7 @@ with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), ) as glean: - res = glean.skills.retrieve_content(skill_id="") + res = glean.skills.retrieve_content(skill_id="{skill_id}") # Handle response print(res) @@ -395,10 +395,10 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `skill_id` | *str* | :heavy_check_mark: | Glean skill ID. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | Example | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `skill_id` | *str* | :heavy_check_mark: | Glean skill ID. | {skill_id} | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | ### Response @@ -429,7 +429,7 @@ with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), ) as glean: - res = glean.skills.sync(skill_id="") + res = glean.skills.sync(skill_id="{skill_id}") # Handle response print(res) @@ -438,10 +438,10 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `skill_id` | *str* | :heavy_check_mark: | ID of the GitHub-imported skill to sync. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | Example | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `skill_id` | *str* | :heavy_check_mark: | ID of the GitHub-imported skill to sync. | {skill_id} | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | ### Response @@ -472,7 +472,7 @@ with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), ) as glean: - res = glean.skills.create_version(skill_id="", file={ + res = glean.skills.create_version(skill_id="{skill_id}", file={ "file_name": "example.file", "content": open("example.file", "rb"), }) @@ -484,11 +484,11 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -| `skill_id` | *str* | :heavy_check_mark: | Glean skill ID. | -| `file` | [models.PlatformSkillVersionCreateRequestFile](../../models/platformskillversioncreaterequestfile.md) | :heavy_check_mark: | SKILL.md, .zip, or .skill bundle to store as a new version. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | +| `skill_id` | *str* | :heavy_check_mark: | Glean skill ID. | {skill_id} | +| `file` | [models.PlatformSkillVersionCreateRequestFile](../../models/platformskillversioncreaterequestfile.md) | :heavy_check_mark: | SKILL.md, .zip, or .skill bundle to store as a new version. | | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | ### Response @@ -519,7 +519,7 @@ with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), ) as glean: - res = glean.skills.list_versions(skill_id="") + res = glean.skills.list_versions(skill_id="{skill_id}") # Handle response print(res) @@ -528,12 +528,12 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `skill_id` | *str* | :heavy_check_mark: | Glean skill ID. | -| `page_size` | *Optional[int]* | :heavy_minus_sign: | Maximum number of versions to return. | -| `cursor` | *Optional[str]* | :heavy_minus_sign: | Opaque pagination cursor from a previous response. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | Example | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `skill_id` | *str* | :heavy_check_mark: | Glean skill ID. | {skill_id} | +| `page_size` | *Optional[int]* | :heavy_minus_sign: | Maximum number of versions to return. | | +| `cursor` | *Optional[str]* | :heavy_minus_sign: | Opaque pagination cursor from a previous response. | | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | ### Response @@ -564,7 +564,7 @@ with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), ) as glean: - res = glean.skills.retrieve_version(skill_id="", version=495658) + res = glean.skills.retrieve_version(skill_id="{skill_id}", version=1) # Handle response print(res) @@ -573,11 +573,11 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `skill_id` | *str* | :heavy_check_mark: | Glean skill ID. | -| `version` | *int* | :heavy_check_mark: | Major version number. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | Example | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `skill_id` | *str* | :heavy_check_mark: | Glean skill ID. | {skill_id} | +| `version` | *int* | :heavy_check_mark: | Major version number. | 1 | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | ### Response @@ -608,7 +608,7 @@ with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), ) as glean: - res = glean.skills.retrieve_version_content(skill_id="", version=117760) + res = glean.skills.retrieve_version_content(skill_id="{skill_id}", version=1) # Handle response print(res) @@ -617,11 +617,11 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `skill_id` | *str* | :heavy_check_mark: | Glean skill ID. | -| `version` | *int* | :heavy_check_mark: | Major version number. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | Example | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `skill_id` | *str* | :heavy_check_mark: | Glean skill ID. | {skill_id} | +| `version` | *int* | :heavy_check_mark: | Major version number. | 1 | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | ### Response diff --git a/docs/sdks/triggers/README.md b/docs/sdks/triggers/README.md index 762c1d86..6b9d92d2 100644 --- a/docs/sdks/triggers/README.md +++ b/docs/sdks/triggers/README.md @@ -24,7 +24,7 @@ Create a trigger from a preset and return it with its signing secret. ```python -from glean.api_client import Glean, models +from glean.api_client import Glean import os @@ -33,13 +33,9 @@ with Glean( ) as glean: res = glean.triggers.create(preset_id="GITHUB_1", delivery={ - "webhook_url": "https://customer.app/webhook", - "auth": { - "type": models.PlatformTriggerAuthType.BEARER, - "secret": "secret_test_123", - }, + "webhook_url": "https://example.com/webhook", }, description="Reviews I am tagged on, sent to my team's review channel", inputs={ - "repository": "acme/payments-api", + "repository": "{repository}", }) # Handle response @@ -130,7 +126,7 @@ with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), ) as glean: - res = glean.triggers.get(trigger_id="") + res = glean.triggers.get(trigger_id="{trigger_id}") # Handle response print(res) @@ -139,10 +135,10 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `trigger_id` | *str* | :heavy_check_mark: | ID of the trigger to retrieve. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | Example | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `trigger_id` | *str* | :heavy_check_mark: | ID of the trigger to retrieve. | {trigger_id} | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | ### Response @@ -173,14 +169,10 @@ with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), ) as glean: - res = glean.triggers.update(trigger_id="", status=models.PlatformTriggerStatus.ENABLED, description="Reviews I am tagged on, sent to my team's review channel", inputs={ - "repository": "acme/payments-api", + res = glean.triggers.update(trigger_id="{trigger_id}", status=models.PlatformTriggerStatus.ENABLED, description="Reviews I am tagged on, sent to my team's review channel", inputs={ + "repository": "{repository}", }, delivery={ - "webhook_url": "https://customer.app/webhook", - "auth": { - "type": models.PlatformTriggerAuthType.BEARER, - "secret": "secret_test_123", - }, + "webhook_url": "https://example.com/webhook", }) # Handle response @@ -192,7 +184,7 @@ with Glean( | Parameter | Type | Required | Description | Example | | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | -| `trigger_id` | *str* | :heavy_check_mark: | ID of the trigger to update. | | +| `trigger_id` | *str* | :heavy_check_mark: | ID of the trigger to update. | {trigger_id} | | `status` | [Optional[models.PlatformTriggerStatus]](../../models/platformtriggerstatus.md) | :heavy_minus_sign: | Current trigger lifecycle state. | ENABLED | | `description` | *Optional[str]* | :heavy_minus_sign: | Optional note describing this trigger. | Reviews I am tagged on, sent to my team's review channel | | `inputs` | Dict[str, *Any*] | :heavy_minus_sign: | Values for the preset's inputs. | {
"repository": "acme/payments-api"
} | @@ -228,7 +220,7 @@ with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), ) as glean: - glean.triggers.delete(trigger_id="") + glean.triggers.delete(trigger_id="{trigger_id}") # Use the SDK ... @@ -236,10 +228,10 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `trigger_id` | *str* | :heavy_check_mark: | ID of the trigger to delete. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | Example | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `trigger_id` | *str* | :heavy_check_mark: | ID of the trigger to delete. | {trigger_id} | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | ### Errors @@ -266,7 +258,7 @@ with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), ) as glean: - res = glean.triggers.search_events(trigger_id="", page_size=10) + res = glean.triggers.search_events(trigger_id="{trigger_id}", page_size=10) # Handle response print(res) @@ -275,11 +267,11 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `trigger_id` | *str* | :heavy_check_mark: | ID of the trigger whose events to search. | -| `page_size` | *Optional[int]* | :heavy_minus_sign: | Maximum number of events to return. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | Example | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `trigger_id` | *str* | :heavy_check_mark: | ID of the trigger whose events to search. | {trigger_id} | +| `page_size` | *Optional[int]* | :heavy_minus_sign: | Maximum number of events to return. | | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | ### Response @@ -355,7 +347,7 @@ with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), ) as glean: - res = glean.triggers.get_preset(preset_id="") + res = glean.triggers.get_preset(preset_id="{preset_id}") # Handle response print(res) @@ -364,10 +356,10 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `preset_id` | *str* | :heavy_check_mark: | ID of the preset to retrieve. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | Example | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `preset_id` | *str* | :heavy_check_mark: | ID of the preset to retrieve. | {preset_id} | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | ### Response @@ -398,7 +390,7 @@ with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), ) as glean: - res = glean.triggers.list_preset_input_values(preset_id="", field="") + res = glean.triggers.list_preset_input_values(preset_id="{preset_id}", field="{field}") # Handle response print(res) @@ -407,12 +399,12 @@ with Glean( ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -| `preset_id` | *str* | :heavy_check_mark: | ID of the preset the input belongs to. | -| `field` | *str* | :heavy_check_mark: | Field identifier of the input whose values to list. | -| `query` | *Optional[str]* | :heavy_minus_sign: | Prefix filter over the input's option values, for typeahead. Matching is on the option value, not its display name.
| -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `preset_id` | *str* | :heavy_check_mark: | ID of the preset the input belongs to. | {preset_id} | +| `field` | *str* | :heavy_check_mark: | Field identifier of the input whose values to list. | {field} | +| `query` | *Optional[str]* | :heavy_minus_sign: | Prefix filter over the input's option values, for typeahead. Matching is on the option value, not its display name.
| | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | ### Response @@ -443,8 +435,8 @@ with Glean( api_token=os.getenv("GLEAN_API_TOKEN", ""), ) as glean: - res = glean.triggers.search_preset_events(preset_id="", inputs={ - "repository": "acme/payments-api", + res = glean.triggers.search_preset_events(preset_id="{preset_id}", inputs={ + "repository": "{repository}", }, page_size=10) # Handle response @@ -456,7 +448,7 @@ with Glean( | Parameter | Type | Required | Description | Example | | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `preset_id` | *str* | :heavy_check_mark: | ID of the preset to preview. | | +| `preset_id` | *str* | :heavy_check_mark: | ID of the preset to preview. | {preset_id} | | `inputs` | Dict[str, *str*] | :heavy_minus_sign: | Values for the preset's input fields, keyed by field name.
| {
"repository": "acme/payments-api"
} | | `page_size` | *Optional[int]* | :heavy_minus_sign: | Maximum number of events to return. | | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | diff --git a/pyproject.toml b/pyproject.toml index c4dcc6eb..d4e7511e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "glean-api-client" -version = "0.17.0" +version = "0.17.1" description = "Python Client SDK Generated by Speakeasy." authors = [{ name = "Glean Technologies, Inc." },] readme = "README-PYPI.md" diff --git a/src/glean/api_client/_version.py b/src/glean/api_client/_version.py index 6ac9bc6e..7b440e02 100644 --- a/src/glean/api_client/_version.py +++ b/src/glean/api_client/_version.py @@ -3,10 +3,10 @@ import importlib.metadata __title__: str = "glean-api-client" -__version__: str = "0.17.0" +__version__: str = "0.17.1" __openapi_doc_version__: str = "0.9.0" __gen_version__: str = "2.934.1" -__user_agent__: str = "speakeasy-sdk/python 0.17.0 2.934.1 0.9.0 glean-api-client" +__user_agent__: str = "speakeasy-sdk/python 0.17.1 2.934.1 0.9.0 glean-api-client" try: if __package__ is not None: diff --git a/src/glean/api_client/chat_sdk.py b/src/glean/api_client/chat_sdk.py index 80bd36d3..2dd3d981 100644 --- a/src/glean/api_client/chat_sdk.py +++ b/src/glean/api_client/chat_sdk.py @@ -25,7 +25,7 @@ def create( ) -> models.PlatformChatCompletedResponse: r"""Create a chat response - Run an assistant turn. Set `stream` to true to receive server-sent events; otherwise the response is a typed JSON response object. + Run an assistant turn. The default response is JSON. HTTP clients request server-sent events by setting `stream` to true in the JSON body. An `Accept: text/event-stream` header does not replace `stream`. :param input: Either a plain string (single user turn) or a chronological array of `USER`/`ASSISTANT` messages. The final array message must be `USER`. @@ -150,7 +150,7 @@ async def create_async( ) -> models.PlatformChatCompletedResponse: r"""Create a chat response - Run an assistant turn. Set `stream` to true to receive server-sent events; otherwise the response is a typed JSON response object. + Run an assistant turn. The default response is JSON. HTTP clients request server-sent events by setting `stream` to true in the JSON body. An `Accept: text/event-stream` header does not replace `stream`. :param input: Either a plain string (single user turn) or a chronological array of `USER`/`ASSISTANT` messages. The final array message must be `USER`. @@ -276,7 +276,7 @@ def create_stream( ) -> eventstreaming.EventStream[models.PlatformChatStreamEventServerSentEvent]: r"""SDK-only logical operation. HTTP clients must call the base path; the URL fragment is not sent. Create a chat response - SDK-only logical operation. HTTP clients must call the base path; the URL fragment is not sent. Run an assistant turn. Set `stream` to true to receive server-sent events; otherwise the response is a typed JSON response object. + SDK-only logical operation. HTTP clients must call the base path; the URL fragment is not sent. Run an assistant turn. The default response is JSON. HTTP clients request server-sent events by setting `stream` to true in the JSON body. An `Accept: text/event-stream` header does not replace `stream`. :param input: Either a plain string (single user turn) or a chronological array of `USER`/`ASSISTANT` messages. The final array message must be `USER`. @@ -414,7 +414,7 @@ async def create_stream_async( ) -> eventstreaming.EventStreamAsync[models.PlatformChatStreamEventServerSentEvent]: r"""SDK-only logical operation. HTTP clients must call the base path; the URL fragment is not sent. Create a chat response - SDK-only logical operation. HTTP clients must call the base path; the URL fragment is not sent. Run an assistant turn. Set `stream` to true to receive server-sent events; otherwise the response is a typed JSON response object. + SDK-only logical operation. HTTP clients must call the base path; the URL fragment is not sent. Run an assistant turn. The default response is JSON. HTTP clients request server-sent events by setting `stream` to true in the JSON body. An `Accept: text/event-stream` header does not replace `stream`. :param input: Either a plain string (single user turn) or a chronological array of `USER`/`ASSISTANT` messages. The final array message must be `USER`. diff --git a/tests/test_messages.py b/tests/test_messages.py index 132005ec..636f01d3 100644 --- a/tests/test_messages.py +++ b/tests/test_messages.py @@ -18,7 +18,7 @@ def test_messages_messages(): res = glean.client.messages.retrieve( id_type=models.IDType.CONVERSATION_ID, id="", - datasource=models.Datasource.FACEBOOKWORKPLACE, + datasource=models.Datasource.GCHAT, timestamp_millis=558834, ) assert res is not None diff --git a/tests/test_search.py b/tests/test_search.py index 015f97b8..d0a8bd28 100644 --- a/tests/test_search.py +++ b/tests/test_search.py @@ -2233,10 +2233,6 @@ def test_search_platform_search(): res = glean.search.query( query="quarterly planning 2026", page_size=10, - datasources=[ - "confluence", - "google_drive", - ], filters=[ { "field": "type", diff --git a/tests/test_summarize.py b/tests/test_summarize.py index 449a8966..f9c494d5 100644 --- a/tests/test_summarize.py +++ b/tests/test_summarize.py @@ -1,6 +1,6 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -from glean.api_client import Glean, models +from glean.api_client import Glean import os from tests.test_client import create_test_http_client @@ -18,12 +18,10 @@ def test_summarize_summarize(): res = glean.client.documents.summarize( document_specs=[ { - "ugc_type": models.DocumentSpecUgcType1.ANNOUNCEMENTS, - "content_id": 150932, + "id": "", }, { - "ugc_type": models.DocumentSpecUgcType1.ANNOUNCEMENTS, - "content_id": 150932, + "id": "", }, ] ) diff --git a/tests/test_triggers.py b/tests/test_triggers.py index 35ec4a2b..937d759d 100644 --- a/tests/test_triggers.py +++ b/tests/test_triggers.py @@ -18,15 +18,11 @@ def test_triggers_platform_triggers_create(): res = glean.triggers.create( preset_id="GITHUB_1", delivery={ - "webhook_url": "https://customer.app/webhook", - "auth": { - "type": models.PlatformTriggerAuthType.BEARER, - "secret": "secret_test_123", - }, + "webhook_url": "https://example.com/webhook", }, description="Reviews I am tagged on, sent to my team's review channel", inputs={ - "repository": "acme/payments-api", + "repository": "{repository}", }, ) assert res is not None @@ -75,14 +71,10 @@ def test_triggers_platform_triggers_update(): status=models.PlatformTriggerStatus.ENABLED, description="Reviews I am tagged on, sent to my team's review channel", inputs={ - "repository": "acme/payments-api", + "repository": "{repository}", }, delivery={ - "webhook_url": "https://customer.app/webhook", - "auth": { - "type": models.PlatformTriggerAuthType.BEARER, - "secret": "secret_test_123", - }, + "webhook_url": "https://example.com/webhook", }, ) assert res is not None @@ -159,7 +151,7 @@ def test_triggers_platform_trigger_presets_events_search(): res = glean.triggers.search_preset_events( preset_id="", inputs={ - "repository": "acme/payments-api", + "repository": "{repository}", }, page_size=10, ) From e361a66716c5354f358a055ebee5b22e4ae7fbc1 Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Wed, 2 Sep 2026 19:46:42 +0000 Subject: [PATCH 2/2] empty commit to trigger [run-tests] workflow