Skip to content

Commit 5a8274d

Browse files
github-actions[bot]speakeasybotspeakeasy-github[bot]
authored
chore: 🐝 Update SDK - Generate (spec change merged) 1.1.25 (#600)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev> Co-authored-by: speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
1 parent 1967429 commit 5a8274d

21 files changed

Lines changed: 274 additions & 190 deletions

β€Ž.speakeasy/gen.lockβ€Ž

Lines changed: 40 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
lockVersion: 2.0.0
22
id: c48cf606-fb42-4a45-9c23-8f0555307828
33
management:
4-
docChecksum: 3ebd1783ba3cfc3a0c50703a0e68b47c
4+
docChecksum: b64b8038ee4885e5d0f067c4c32d0854
55
docVersion: 1.0.0
66
speakeasyVersion: 1.787.0
77
generationVersion: 2.914.0
8-
releaseVersion: 1.1.24
9-
configChecksum: 84d0cb0f6d7787cc8b9d87434368c723
8+
releaseVersion: 1.1.25
9+
configChecksum: a0f975c0103c1b113ff0be95a912fdec
1010
repoURL: https://github.com/OpenRouterTeam/python-sdk.git
1111
installationURL: https://github.com/OpenRouterTeam/python-sdk.git
1212
published: true
1313
persistentEdits:
14-
generation_id: 55f5a43c-95e5-444d-b73b-1fd3a19b2bb6
15-
pristine_commit_hash: becb0f2b63d97e0e0f7b2d1ed163272993bc07b8
16-
pristine_tree_hash: a25dac1fe5f7f9cb37a90f28bb6bf1a1b6abcea3
14+
generation_id: 2e8f1b9f-2b27-4c78-b6f5-f0fbefc43ba8
15+
pristine_commit_hash: d1180f9a5bbbb3f93a5c3737499e5de0dcd089b5
16+
pristine_tree_hash: e714febd611cdf32d9f6d305a54e2c9d7b7365ec
1717
features:
1818
python:
1919
acceptHeaders: 3.0.0
@@ -102,8 +102,8 @@ trackedFiles:
102102
pristine_git_object: dc49d753ad25e6dcf9265946f3a87a8bffd46d4a
103103
docs/components/activityitem.mdx:
104104
id: 20be851aee8a
105-
last_write_checksum: sha1:03ce9c177882d8b0edbea014961061af81b50360
106-
pristine_git_object: 0910645c06285f1ef165198c24f6fb9c3b1a8d7c
105+
last_write_checksum: sha1:4aef3633b891fc44c92cb8307adb8d3ce3e7cecd
106+
pristine_git_object: 595c3f1bcc1bb17e920c06fb11df7dae95b6b858
107107
docs/components/activityresponse.mdx:
108108
id: 5886155bc810
109109
last_write_checksum: sha1:64acd6c3d2db5593d8359474c4e2e31e4db62453
@@ -2138,8 +2138,8 @@ trackedFiles:
21382138
pristine_git_object: b876dce8ca019098465106bf05b11c5e0b9536f0
21392139
docs/components/generationresponsedata.mdx:
21402140
id: 5c92bc415596
2141-
last_write_checksum: sha1:42b5efb0895c5ad283b69d7d03f89468d17caf94
2142-
pristine_git_object: 54187e678e3f2b35786e5f531d42e0c3c67f2d4a
2141+
last_write_checksum: sha1:bfd323dcacd9548a6fa16ff15a1d5def429fbf71
2142+
pristine_git_object: d8beea524e93ab8059a7eca00b12316e681252da
21432143
docs/components/getbyokkeyresponse.mdx:
21442144
id: 451f36940fbd
21452145
last_write_checksum: sha1:d5e3f4ef481598c92e4e4842442eeeba8a2627e9
@@ -6074,8 +6074,8 @@ trackedFiles:
60746074
pristine_git_object: 2642f99d77ceb5007b1b863028d73c07e48dac67
60756075
docs/operations/filter_.mdx:
60766076
id: 79b9c7c02d3b
6077-
last_write_checksum: sha1:210f8d87b466cf10785abbd4cb2f9eb2c3e8576e
6078-
pristine_git_object: 3dbded7e52c79b46c586b5b459ef9febaf6f37f1
6077+
last_write_checksum: sha1:4aa4ba9558d9bdfeef9b73fd78c3c14884c589e4
6078+
pristine_git_object: 3397e42a132f1de350cf89bdf53c25299ae2d7bb
60796079
docs/operations/getanalyticsmetadata.mdx:
60806080
id: 7c66572b759d
60816081
last_write_checksum: sha1:8ff4758a1a3b63116d55a83821dcb0c8012050f5
@@ -6286,8 +6286,8 @@ trackedFiles:
62866286
pristine_git_object: f31e13179ad9060fbebe2fc50ac6d6ca6d5b013a
62876287
docs/operations/getuseractivityrequest.mdx:
62886288
id: 61b93f5b1403
6289-
last_write_checksum: sha1:684d952b0cad7763ea8c1261ab5b928a3b77bcbc
6290-
pristine_git_object: 6ff32ecb22719b7da65ec863fea77dc94bd30e53
6289+
last_write_checksum: sha1:bc9beca10caef657dc3d9f1cedd21375ff501cd5
6290+
pristine_git_object: 421ac1a9f72b5ab4e47bb6d96ad7ad6c942a3654
62916291
docs/operations/getvideosglobals.mdx:
62926292
id: 54e17c2b195c
62936293
last_write_checksum: sha1:e9c91baed62379fa5fa3c78e1047f2a99435157b
@@ -6312,6 +6312,10 @@ trackedFiles:
63126312
id: 94405df5bc6d
63136313
last_write_checksum: sha1:8411fa2c4566737be150bf3d64bb792f0a3eb650
63146314
pristine_git_object: 9d6dfd531f49a6b16998c97e5749cf4ea761dd94
6315+
docs/operations/groupby.mdx:
6316+
id: 5c9addfe5341
6317+
last_write_checksum: sha1:f07eaef53c2338de9c74f947eb8e98875d7dfdd9
6318+
pristine_git_object: 951d54c9802057d82efc39fa03c90eaf54381eff
63156319
docs/operations/headquarters.mdx:
63166320
id: 8b6a6ec3c5a7
63176321
last_write_checksum: sha1:0dc87fcfec205555e2a9530358f304a3bb9d56d6
@@ -6902,8 +6906,8 @@ trackedFiles:
69026906
pristine_git_object: 8541eefab0e7110d9a895d66bebd1779e456a264
69036907
docs/operations/value1.mdx:
69046908
id: 447e93c2bc33
6905-
last_write_checksum: sha1:b2c81e4b7897f8beaaed9e3891f2a77d57ef1734
6906-
pristine_git_object: 4d269a48eefb02feb81b720b2b21cc298b1d52e8
6909+
last_write_checksum: sha1:7bd609444ab271023bd5496797ec18383fd2670d
6910+
pristine_git_object: 329fc8cb9f8922893a29848212bc2a41c31d2835
69076911
docs/operations/value2.mdx:
69086912
id: ebf32fddf22e
69096913
last_write_checksum: sha1:18f440dbfdcb2498771fe53a98b054d4d76f283c
@@ -6926,8 +6930,8 @@ trackedFiles:
69266930
pristine_git_object: f265978fdb338b412232349476bf1e874833c9f8
69276931
docs/sdks/analytics/README.mdx:
69286932
id: 281aa5320be1
6929-
last_write_checksum: sha1:04cc5064d83eda6623841e7052f0fe7de81c833f
6930-
pristine_git_object: 4e5df61630ce21da071bcc35a50a8cca491d6e4f
6933+
last_write_checksum: sha1:1a3d4c929ad50c2b7f24ced91d0646e6cc9f7d1b
6934+
pristine_git_object: 18befad2161aca4ee4359420ba14b7affccf7ec9
69316935
docs/sdks/apikeys/README.mdx:
69326936
id: 27fcaae1c346
69336937
last_write_checksum: sha1:b8bd517a7a2960d003ab350130008b402927af6b
@@ -7046,8 +7050,8 @@ trackedFiles:
70467050
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
70477051
pyproject.toml:
70487052
id: 5d07e7d72637
7049-
last_write_checksum: sha1:a8356d256eff93b06f8098df8f72d95c5b7760c4
7050-
pristine_git_object: 726b8caee9917506c0d06dca2de7c22d6f1bda15
7053+
last_write_checksum: sha1:4f2590600cc9a8f80b0fa62834a250aa36b907a0
7054+
pristine_git_object: 090b4a16399984f227e292bde258f744a02dc2b7
70517055
scripts/prepare_readme.py:
70527056
id: e0c5957a6035
70537057
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
@@ -7074,12 +7078,12 @@ trackedFiles:
70747078
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
70757079
src/openrouter/_version.py:
70767080
id: d8d15ad6c586
7077-
last_write_checksum: sha1:00885d78769daff0fb6b4c2c3475bf1ce97011cc
7078-
pristine_git_object: abd485793c13776fe0d799bd8141faa6665ea002
7081+
last_write_checksum: sha1:04e2257c5d2f97a4d092aa900404c9d28b544c02
7082+
pristine_git_object: cc1824637bb68d360a6a6cdc1ee0ba171d91c417
70797083
src/openrouter/analytics.py:
70807084
id: cb406b5aaabb
7081-
last_write_checksum: sha1:9e709b71dd0611056dc0cec6150b578defe32841
7082-
pristine_git_object: ddb44a129e8f45e7524fe5615a23f1ccc70bbe71
7085+
last_write_checksum: sha1:3ea0f1c73fb9c101b7bc5719da4dd7bf62ff469a
7086+
pristine_git_object: ddd0b3f6c78a94ed829bb1c6dbf30bbacce7e517
70837087
src/openrouter/api_keys.py:
70847088
id: 876fac88fff6
70857089
last_write_checksum: sha1:ada03aff96976f0570e594a3143595c25ca05f18
@@ -7126,8 +7130,8 @@ trackedFiles:
71267130
pristine_git_object: ad39bd9765938465f06b5422706fc867db11e468
71277131
src/openrouter/components/activityitem.py:
71287132
id: 3bbe7d35f459
7129-
last_write_checksum: sha1:478bb399829efe851d28bf5124f35cd7ca522665
7130-
pristine_git_object: a234e6ddf7aec8c7c3d6bd5e4118015c8fbff274
7133+
last_write_checksum: sha1:96430ac2c3aab411c5a05f50ee31ad25eea0790f
7134+
pristine_git_object: 3fecf83b2b307a1a9ef7714d5111ab724abba6a6
71317135
src/openrouter/components/activityresponse.py:
71327136
id: 0bd8d79c3144
71337137
last_write_checksum: sha1:db8e3247cf9eb2c235d32949d36f7ae95870e8ed
@@ -8050,8 +8054,8 @@ trackedFiles:
80508054
pristine_git_object: b762f6507fe7c7456df88a9400f82587fd6d63c9
80518055
src/openrouter/components/generationresponse.py:
80528056
id: 84d4e3e7da8b
8053-
last_write_checksum: sha1:240706a3d8336a4a8e7ebcd815c22949143a245b
8054-
pristine_git_object: 72098fb9ec3dfaca7ad00356a202ab107a96c713
8057+
last_write_checksum: sha1:b26bce951ba1ce6ffb0779809e4410b03d9b9e6a
8058+
pristine_git_object: 87454d8cc8cc00e853eb13331c496af8f7d0d0d6
80558059
src/openrouter/components/getbyokkeyresponse.py:
80568060
id: ca3a8db80018
80578061
last_write_checksum: sha1:9b428028a01ffb73915a278096ca51bd1c660326
@@ -9614,8 +9618,8 @@ trackedFiles:
96149618
pristine_git_object: 0f62389a8410522fe76eed82c64227903a8605c5
96159619
src/openrouter/operations/__init__.py:
96169620
id: 9afcea1e7161
9617-
last_write_checksum: sha1:79b687677ed95380c7548ec6ed3e3efa0a32f386
9618-
pristine_git_object: 71aa5c14ab18f683fe648f8a08e8190d6dc894d2
9621+
last_write_checksum: sha1:10813e43c7af4d49a27bc034ae9c898a347a883c
9622+
pristine_git_object: 633049645a506d455ecef8e65b8a42edaf36bf42
96199623
src/openrouter/operations/bulkaddworkspacemembers.py:
96209624
id: e0ed56117619
96219625
last_write_checksum: sha1:5c44eb0d40fdece3ac084615f6c6082be4cf1d5a
@@ -9826,8 +9830,8 @@ trackedFiles:
98269830
pristine_git_object: a8b610cad3ca3792798e40b31cada48b0ed3845b
98279831
src/openrouter/operations/getuseractivity.py:
98289832
id: 560a0e01c2c3
9829-
last_write_checksum: sha1:91bbb6f67fd71874baf0c61b8004bfab589385f1
9830-
pristine_git_object: 35ab9ca4d75b4e37483cd379f73afdbaf0b60d3c
9833+
last_write_checksum: sha1:5de9ab321a939fe40adb6626721fd327890f2850
9834+
pristine_git_object: e635bfa9d44f1fd9a99a0d86f2752aea6eee4905
98319835
src/openrouter/operations/getvideos.py:
98329836
id: a5f626467a69
98339837
last_write_checksum: sha1:007242bbdda9cb2f7d02fb6a04c5aa000d317a07
@@ -9950,8 +9954,8 @@ trackedFiles:
99509954
pristine_git_object: cbdad12f956c5f2a8252b7f6db102f1e83c4e85a
99519955
src/openrouter/operations/queryanalytics.py:
99529956
id: d76c63ff66f6
9953-
last_write_checksum: sha1:cbaf0ab2bfe18d46e977dc833f6f5ed18a1d8b33
9954-
pristine_git_object: bde10deb1159106ce8fbb977898e38baa414e9a6
9957+
last_write_checksum: sha1:97c08d2f87fce08adacd1cdccfbd72c34962b03f
9958+
pristine_git_object: a7e1247756af1bcf04e8ade0ac96744c9c2535c1
99559959
src/openrouter/operations/sendchatcompletionrequest.py:
99569960
id: d9fee71bb577
99579961
last_write_checksum: sha1:0cba4011b8e305270ac30f88cb7ab59b6aefe619
@@ -10306,7 +10310,7 @@ examples:
1030610310
id: "gen-1234567890"
1030710311
responses:
1030810312
"200":
10309-
application/json: {"data": {"api_type": "completions", "app_id": 12345, "cache_discount": null, "cancelled": false, "created_at": "2024-07-15T23:33:19.433273+00:00", "data_region": "global", "external_user": "user-123", "finish_reason": "stop", "generation_time": 1200, "http_referer": "https://openrouter.ai/", "id": "gen-3bhGkxlo4XFrqiabUM7NDtwDzWwG", "is_byok": false, "latency": 1250, "model": "sao10k/l3-stheno-8b", "moderation_latency": 50, "native_finish_reason": "stop", "native_tokens_cached": 3, "native_tokens_completion": 25, "native_tokens_completion_images": 0, "native_tokens_prompt": 10, "native_tokens_reasoning": 5, "num_fetches": 0, "num_input_audio_prompt": 0, "num_media_completion": 0, "num_media_prompt": 1, "num_search_results": 5, "origin": "https://openrouter.ai/", "preset_id": "a9e8d400-592a-494f-908c-375efa66cafd", "provider_name": "Infermatic", "provider_responses": null, "router": "openrouter/auto", "service_tier": "priority", "streamed": true, "tokens_completion": 25, "tokens_prompt": 10, "total_cost": 0.0015, "upstream_id": "chatcmpl-791bcf62-080e-4568-87d0-94c72e3b4946", "upstream_inference_cost": 0.0012, "usage": 0.0015, "user_agent": "Mozilla/5.0", "web_search_engine": "exa"}}
10313+
application/json: {"data": {"api_type": "completions", "app_id": 12345, "cache_discount": null, "cancelled": false, "created_at": "2024-07-15T23:33:19.433273+00:00", "data_region": "global", "external_user": "user-123", "finish_reason": "stop", "generation_time": 1200, "http_referer": "https://openrouter.ai/", "id": "gen-3bhGkxlo4XFrqiabUM7NDtwDzWwG", "is_byok": false, "latency": 1250, "model": "sao10k/l3-stheno-8b", "moderation_latency": 50, "native_finish_reason": "stop", "native_tokens_cached": 3, "native_tokens_completion": 25, "native_tokens_completion_images": 0, "native_tokens_prompt": 10, "native_tokens_reasoning": 5, "num_fetches": 0, "num_input_audio_prompt": 0, "num_media_completion": 0, "num_media_prompt": 1, "num_search_results": 5, "origin": "https://openrouter.ai/", "preset_id": "a9e8d400-592a-494f-908c-375efa66cafd", "provider_name": "Infermatic", "provider_responses": null, "router": "openrouter/auto", "service_tier": "priority", "streamed": true, "tokens_completion": 25, "tokens_prompt": 10, "total_cost": 0.0015, "upstream_id": "chatcmpl-791bcf62-080e-4568-87d0-94c72e3b4946", "upstream_inference_cost": 0.0012, "usage": 0.0015, "user_agent": "Mozilla/5.0", "web_search_engine": "exa", "workspace_id": "550e8400-e29b-41d4-a716-446655440000"}}
1031010314
"401":
1031110315
application/json: {"error": {"code": 401, "message": "Missing Authentication header"}}
1031210316
"402":
@@ -11822,3 +11826,4 @@ examples:
1182211826
"500":
1182311827
application/json: {"error": {"code": 500, "message": "Internal Server Error"}}
1182411828
examplesVersion: 1.0.2
11829+
releaseNotes: "## Python SDK Changes:\n* `open_router.analytics.get_user_activity()`: \n * `request` **Changed** (Breaking ⚠️)\n * `response.data[].workspace_id` **Added**\n* `open_router.generations.get_generation()`: `response.data.workspace_id` **Added**\n"

β€Ž.speakeasy/gen.yamlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ generation:
3636
documentation: mintlify
3737
preApplyUnionDiscriminators: true
3838
python:
39-
version: 1.1.24
39+
version: 1.1.25
4040
additionalDependencies:
4141
dev: {}
4242
main: {}

β€Ž.speakeasy/out.openapi.yamlβ€Ž

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ components:
116116
example: 0.015
117117
format: 'double'
118118
type: 'number'
119+
workspace_id:
120+
description: 'ID of the workspace this activity is attributed to. Only present when `group_by=workspace` is passed; the response is then split per workspace. Activity recorded before workspace resolution existed is attributed to the account default workspace.'
121+
example: '550e8400-e29b-41d4-a716-446655440000'
122+
type: 'string'
119123
required:
120124
- 'date'
121125
- 'model'
@@ -9161,6 +9165,7 @@ components:
91619165
usage: 0.0015
91629166
user_agent: 'Mozilla/5.0'
91639167
web_search_engine: 'exa'
9168+
workspace_id: '550e8400-e29b-41d4-a716-446655440000'
91649169
properties:
91659170
data:
91669171
description: 'Generation data'
@@ -9431,6 +9436,12 @@ components:
94319436
type:
94329437
- 'string'
94339438
- 'null'
9439+
workspace_id:
9440+
description: 'ID of the workspace this generation is attributed to. Null for accounts without workspaces. Generations created before workspace resolution existed are attributed to the account default workspace.'
9441+
example: '550e8400-e29b-41d4-a716-446655440000'
9442+
type:
9443+
- 'string'
9444+
- 'null'
94349445
required:
94359446
- 'id'
94369447
- 'upstream_id'
@@ -9473,6 +9484,7 @@ components:
94739484
- 'user_agent'
94749485
- 'http_referer'
94759486
- 'data_region'
9487+
- 'workspace_id'
94769488
type: 'object'
94779489
required:
94789490
- 'data'
@@ -25300,7 +25312,7 @@ openapi: '3.1.0'
2530025312
paths:
2530125313
/activity:
2530225314
get:
25303-
description: 'Returns user activity data grouped by endpoint for the last 30 (completed) UTC days. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
25315+
description: 'Returns user activity data grouped by endpoint for the last 30 (completed) UTC days. Pass `workspace_id` to scope the response to a single workspace. Pass `group_by=workspace` to split each row per workspace and include `workspace_id` on every item; by default rows are aggregated across workspaces and `workspace_id` is not returned. Activity recorded before workspace resolution existed is permanently attributed to the account default workspace (no backfill is possible). [Management key](/docs/guides/overview/auth/management-api-keys) required.'
2530425316
operationId: 'getUserActivity'
2530525317
parameters:
2530625318
- description: 'Filter by a single UTC date in the last 30 days (YYYY-MM-DD format).'
@@ -25327,6 +25339,24 @@ paths:
2532725339
description: 'Filter by org member user ID. Only applicable for organization accounts.'
2532825340
example: 'user_abc123'
2532925341
type: 'string'
25342+
- description: 'Set to ''workspace'' to split each row per workspace and include `workspace_id` on every item. Omitted by default, in which case rows are aggregated across workspaces (by date, model, and endpoint) and `workspace_id` is not returned β€” preserving the historical response shape.'
25343+
in: 'query'
25344+
name: 'group_by'
25345+
required: false
25346+
schema:
25347+
description: 'Set to ''workspace'' to split each row per workspace and include `workspace_id` on every item. Omitted by default, in which case rows are aggregated across workspaces (by date, model, and endpoint) and `workspace_id` is not returned β€” preserving the historical response shape.'
25348+
enum:
25349+
- 'workspace'
25350+
example: 'workspace'
25351+
type: 'string'
25352+
- description: 'Filter by workspace ID (UUID). Returns only activity attributed to that workspace. The workspace must belong to the authenticated account.'
25353+
in: 'query'
25354+
name: 'workspace_id'
25355+
required: false
25356+
schema:
25357+
description: 'Filter by workspace ID (UUID). Returns only activity attributed to that workspace. The workspace must belong to the authenticated account.'
25358+
example: '550e8400-e29b-41d4-a716-446655440000'
25359+
type: 'string'
2533025360
responses:
2533125361
'200':
2533225362
content:
@@ -25400,6 +25430,7 @@ paths:
2540025430
summary: 'Get user activity grouped by endpoint'
2540125431
tags:
2540225432
- 'Analytics'
25433+
x-speakeasy-max-method-params: 5
2540325434
parameters:
2540425435
- $ref: "#/components/parameters/AppIdentifier"
2540525436
- $ref: "#/components/parameters/AppDisplayName"
@@ -25692,7 +25723,7 @@ paths:
2569225723
- format: 'double'
2569325724
type: 'number'
2569425725
type: 'array'
25695-
description: 'Filter value (scalar or array depending on operator). Several dimensions are enriched in responses (returned as human-readable labels), but filters must use the underlying ID: `api_key_id` β€” numeric ID (from generation metadata) or key hash (64-char hex from GET /api/v1/keys, resolved server-side); `user` β€” Clerk user ID (e.g. "user_abc123"), not the display name; `workspace` β€” workspace UUID, not the workspace name; `app` β€” numeric app ID, not the app title; `model` β€” permaslug (e.g. "openai/gpt-4o"), not the display name. Other dimensions (provider, origin, country, etc.) are not enriched and accept the value as returned.'
25726+
description: 'Filter value (scalar or array depending on operator). Several dimensions are enriched in responses (returned as human-readable labels), but filters must use the underlying ID: `api_key_id` β€” numeric ID (from generation metadata) or key hash (64-char hex from GET /api/v1/keys, resolved server-side); `user` β€” Clerk user ID (e.g. "user_abc123"), not the display name; `workspace` β€” workspace UUID, not the workspace name (filtering or grouping by the account default workspace also covers activity recorded before workspace resolution existed, which is attributed to that default workspace); `app` β€” numeric app ID, not the app title; `model` β€” permaslug (e.g. "openai/gpt-4o"), not the display name. Other dimensions (provider, origin, country, etc.) are not enriched and accept the value as returned.'
2569625727
required:
2569725728
- 'field'
2569825729
- 'operator'

0 commit comments

Comments
Β (0)