Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
943 changes: 803 additions & 140 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ generation:
generateNewTests: true
skipResponseBodyAssertions: true
python:
version: 0.15.5
version: 0.16.0
additionalDependencies:
dev: {}
main: {}
Expand Down Expand Up @@ -68,6 +68,7 @@ python:
flatteningOrder: parameters-first
forwardCompatibleEnumsByDefault: true
forwardCompatibleUnionsByDefault: "false"
httpClientLibrary: httpx
imports:
option: openapi
paths:
Expand Down
3,074 changes: 2,146 additions & 928 deletions .speakeasy/glean-merged-spec.yaml

Large diffs are not rendered by default.

184 changes: 183 additions & 1 deletion .speakeasy/tests.arazzo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -159063,7 +159063,7 @@ workflows:
- condition: $response.header.Content-Type == application/json
- context: $response.body
condition: |
{"id":"<id>","object":"response","created_at":"2026-05-19T05:32:52.505Z","status":"completed","output":[{"type":"message","role":"assistant","content":[{"type":"output_text","text":"<value>"}]}],"store":false,"request_id":"<id>"}
{"id":"<id>","object":"RESPONSE","created_at":"2026-05-19T05:32:52.505Z","status":"COMPLETED","output":[{"type":"MESSAGE","role":"ASSISTANT","content":[{"type":"OUTPUT_TEXT","text":"<value>"}]}],"store":false,"request_id":"<id>"}
type: simple
x-speakeasy-test-group: chat_SDK
x-speakeasy-test-rebuild: true
Expand Down Expand Up @@ -159286,3 +159286,185 @@ workflows:
type: simple
x-speakeasy-test-group: people
x-speakeasy-test-rebuild: true
- workflowId: platform-triggers-create
steps:
- stepId: test
operationId: platform-triggers-create
requestBody:
contentType: application/json
payload:
delivery:
auth:
secret: secret_test_123
type: BEARER
webhook_url: https://customer.app/webhook
description: High-priority Jira bugs in the Engineering project
inputs:
project: ENG
preset_id: jira_high_priority_bug
successCriteria:
- condition: $statusCode == 201
- condition: $response.header.Content-Type == application/json
- context: $response.body
condition: |
{"trigger":{"trigger_id":"trigger_test_123","preset_id":"jira_high_priority_bug","description":"High-priority Jira bugs in the Engineering project","status":"ENABLED","inputs":{"project":"ENG"},"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":"<id>"}
type: simple
x-speakeasy-test-group: triggers
x-speakeasy-test-rebuild: true
- workflowId: platform-triggers-list
steps:
- stepId: test
operationId: platform-triggers-list
parameters:
- name: page_size
in: query
value: 50
successCriteria:
- condition: $statusCode == 200
- condition: $response.header.Content-Type == application/json
- context: $response.body
condition: |
{"results":[],"has_more":true,"next_cursor":"<value>","request_id":"<id>"}
type: simple
x-speakeasy-test-group: triggers
x-speakeasy-test-rebuild: true
- workflowId: platform-triggers-get
steps:
- stepId: test
operationId: platform-triggers-get
parameters:
- name: trigger_id
in: path
value: <id>
successCriteria:
- condition: $statusCode == 200
- condition: $response.header.Content-Type == application/json
- context: $response.body
condition: |
{"trigger":{"trigger_id":"trigger_test_123","preset_id":"jira_high_priority_bug","description":"High-priority Jira bugs in the Engineering project","status":"ENABLED","inputs":{"project":"ENG"},"delivery":{"webhook_url":"https://customer.app/webhook"},"created_at":"2024-01-06T01:37:37.232Z","updated_at":"2025-07-02T01:19:47.126Z"},"request_id":"<id>"}
type: simple
x-speakeasy-test-group: triggers
x-speakeasy-test-rebuild: true
- workflowId: platform-triggers-update
steps:
- stepId: test
operationId: platform-triggers-update
parameters:
- name: trigger_id
in: path
value: <id>
requestBody:
contentType: application/json
payload:
delivery:
auth:
secret: secret_test_123
type: BEARER
webhook_url: https://customer.app/webhook
description: High-priority Jira bugs in the Engineering project
inputs:
project: ENG
status: ENABLED
successCriteria:
- condition: $statusCode == 200
- condition: $response.header.Content-Type == application/json
- context: $response.body
condition: |
{"trigger":{"trigger_id":"trigger_test_123","preset_id":"jira_high_priority_bug","description":"High-priority Jira bugs in the Engineering project","status":"ENABLED","inputs":{"project":"ENG"},"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":"<id>"}
type: simple
x-speakeasy-test-group: triggers
x-speakeasy-test-rebuild: true
- workflowId: platform-triggers-events-search
steps:
- stepId: test
operationId: platform-triggers-events-search
parameters:
- name: trigger_id
in: path
value: <id>
successCriteria:
- condition: $statusCode == 200
- condition: $response.header.Content-Type == application/json
- context: $response.body
condition: |
{"results":[{"event_type":"DOCUMENT_CHANGE","datasource":"GITHUB","reason":"CREATED","doc_type":"Ticket","doc_id":"<id>","view_url":"https://silent-omelet.biz","title":"<value>","event_time":"2024-06-12T22:23:25.274Z"}],"has_more":false,"request_id":"<id>"}
type: simple
x-speakeasy-test-group: triggers
x-speakeasy-test-rebuild: true
- workflowId: platform-trigger-presets-list
steps:
- stepId: test
operationId: platform-trigger-presets-list
parameters:
- name: page_size
in: query
value: 50
successCriteria:
- condition: $statusCode == 200
- condition: $response.header.Content-Type == application/json
- context: $response.body
condition: |
{"results":[],"has_more":false,"next_cursor":null,"request_id":"<id>"}
type: simple
x-speakeasy-test-group: triggers
x-speakeasy-test-rebuild: true
- workflowId: platform-trigger-presets-get
steps:
- stepId: test
operationId: platform-trigger-presets-get
parameters:
- name: preset_id
in: path
value: <id>
successCriteria:
- condition: $statusCode == 200
- condition: $response.header.Content-Type == application/json
- context: $response.body
condition: |
{"trigger_preset":{"preset_id":"jira_high_priority_bug","datasource":"jira","display_name":"High-priority Jira bugs","description":"Fires when a high-priority bug is created.","inputs":[]},"request_id":"<id>"}
type: simple
x-speakeasy-test-group: triggers
x-speakeasy-test-rebuild: true
- workflowId: platform-trigger-presets-input-values-list
steps:
- stepId: test
operationId: platform-trigger-presets-input-values-list
parameters:
- name: preset_id
in: path
value: <id>
- name: field
in: query
value: <value>
successCriteria:
- condition: $statusCode == 200
- condition: $response.header.Content-Type == application/json
- context: $response.body
condition: |
{"results":[{"value":"person@example.com","display_name":"Test User"}],"is_truncated":false,"request_id":"<id>"}
type: simple
x-speakeasy-test-group: triggers
x-speakeasy-test-rebuild: true
- workflowId: platform-trigger-presets-events-search
steps:
- stepId: test
operationId: platform-trigger-presets-events-search
parameters:
- name: preset_id
in: path
value: <id>
requestBody:
contentType: application/json
payload:
inputs:
TITLE: checkout outage
page_size: 10
successCriteria:
- condition: $statusCode == 200
- condition: $response.header.Content-Type == application/json
- context: $response.body
condition: |
{"results":[{"event_type":"DOCUMENT_CHANGE","datasource":"GITHUB","reason":"CREATED","doc_type":"Ticket","doc_id":"<id>","view_url":"https://prickly-cutover.info/","title":"<value>","event_time":"2025-04-15T15:45:31.544Z"}],"has_more":false,"request_id":"<id>"}
type: simple
x-speakeasy-test-group: triggers
x-speakeasy-test-rebuild: true
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
speakeasyVersion: 1.792.0
speakeasyVersion: 1.795.0
sources:
Glean API:
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:ca77ef4550d695da210e8f0d32f3422d29e9d09f7aa66f7b13d248c6ec8c7941
sourceBlobDigest: sha256:469de4cd2c8ab4928c3989656bf63cc265a8ceea5a8b3e3498734137b19723f8
sourceRevisionDigest: sha256:906d5df126293e5f872b886542dc1764cbb8baec6036d021962209571e5a3ecb
sourceBlobDigest: sha256:99172fc095528696df22f3530f78dd46b4178bb369b3a2935294f9825274135e
tags:
- latest
Glean Client API:
Expand All @@ -16,10 +16,10 @@ targets:
glean:
source: Glean API
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:ca77ef4550d695da210e8f0d32f3422d29e9d09f7aa66f7b13d248c6ec8c7941
sourceBlobDigest: sha256:469de4cd2c8ab4928c3989656bf63cc265a8ceea5a8b3e3498734137b19723f8
sourceRevisionDigest: sha256:906d5df126293e5f872b886542dc1764cbb8baec6036d021962209571e5a3ecb
sourceBlobDigest: sha256:99172fc095528696df22f3530f78dd46b4178bb369b3a2935294f9825274135e
codeSamplesNamespace: glean-api-specs-python-code-samples
codeSamplesRevisionDigest: sha256:2c3560eb6c6ea1afdbbf7fd64c9e27673ca3ae028fb784f30ecd9151553898f8
codeSamplesRevisionDigest: sha256:bd82e18e93b71c667e2ca4aaf76a024c0c4962d96bfbd24e490096c6864b69c1
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
29 changes: 28 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -561,8 +561,8 @@ For more information on obtaining the appropriate token type, please contact you

* [create](docs/sdks/skills/README.md#create) - Create skill
* [list](docs/sdks/skills/README.md#list) - List skills
* [validate](docs/sdks/skills/README.md#validate) - Validate skill bundle
* [import_](docs/sdks/skills/README.md#import_) - Import skills from GitHub
* [validate](docs/sdks/skills/README.md#validate) - Validate skill bundle
* [preview_source](docs/sdks/skills/README.md#preview_source) - Preview a GitHub skill source
* [update](docs/sdks/skills/README.md#update) - Update skill
* [delete](docs/sdks/skills/README.md#delete) - Delete skill
Expand All @@ -574,6 +574,19 @@ For more information on obtaining the appropriate token type, please contact you
* [retrieve_version](docs/sdks/skills/README.md#retrieve_version) - Retrieve skill version
* [retrieve_version_content](docs/sdks/skills/README.md#retrieve_version_content) - Download skill version content

### [Triggers](docs/sdks/triggers/README.md)

* [create](docs/sdks/triggers/README.md#create) - Create trigger
* [list](docs/sdks/triggers/README.md#list) - List triggers
* [get](docs/sdks/triggers/README.md#get) - Get trigger
* [update](docs/sdks/triggers/README.md#update) - Update trigger
* [delete](docs/sdks/triggers/README.md#delete) - Delete trigger
* [search_events](docs/sdks/triggers/README.md#search_events) - Search events for a trigger
* [list_presets](docs/sdks/triggers/README.md#list_presets) - List trigger presets
* [get_preset](docs/sdks/triggers/README.md#get_preset) - Get trigger preset
* [list_preset_input_values](docs/sdks/triggers/README.md#list_preset_input_values) - Search trigger preset input values
* [search_preset_events](docs/sdks/triggers/README.md#search_preset_events) - Search events for a trigger preset

</details>
<!-- End Available Resources and Operations [operations] -->

Expand Down Expand Up @@ -889,6 +902,20 @@ class CustomClient(AsyncHttpClient):

s = Glean(async_client=CustomClient(httpx.AsyncClient()))
```
### httpx2 (Pydantic's httpx fork)

[httpx2](https://httpx2.pydantic.dev/) is Pydantic's maintained fork of `httpx`. To run this SDK on httpx2, call `alias_httpx()` at your program's entry point, before importing the SDK, so every `import httpx` — including the ones inside the SDK — resolves to `httpx2`:
```python
import httpx2

httpx2.alias_httpx()

from glean.api_client import Glean

s = Glean()
```

An SDK can also be generated against httpx2 directly, so it depends on the fork instead of `httpx`, by setting `python.httpClientLibrary: httpx2` in `gen.yaml`.
<!-- End Custom HTTP Client [http-client] -->

<!-- Start Resource Management [resource-management] -->
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -818,4 +818,14 @@ Based on:
### Generated
- [python v0.15.5] .
### Releases
- [PyPI v0.15.5] https://pypi.org/project/glean-api-client/0.15.5 - .
- [PyPI v0.15.5] https://pypi.org/project/glean-api-client/0.15.5 - .

## 2026-08-19 17:25:59
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.795.0 (2.931.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.16.0] .
### Releases
- [PyPI v0.16.0] https://pypi.org/project/glean-api-client/0.16.0 - .
Loading
Loading