Skip to content

Commit d4c8b02

Browse files
openrouter-docs-sync[bot]OpenRouter SDK Bot
andauthored
chore: update OpenAPI spec from monorepo (#1389)
Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
1 parent 61ed74b commit d4c8b02

1 file changed

Lines changed: 8 additions & 15 deletions

File tree

‎.speakeasy/in.openapi.yaml‎

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -39893,6 +39893,7 @@ components:
3989339893
type: 'string'
3989439894
type: 'object'
3989539895
Workspace:
39896+
description: 'Workspace metadata. Configuration fields are omitted without permission to view workspace settings.'
3989639897
example:
3989739898
created_at: '2025-08-24T10:30:00Z'
3989839899
created_by: 'user_abc123'
@@ -39966,11 +39967,11 @@ components:
3996639967
format: 'uuid'
3996739968
type: 'string'
3996839969
include_byok_in_budgets:
39969-
description: 'Whether BYOK (bring-your-own-key) spend counts toward this workspace''s budgets. Set it via the workspace budget endpoints.'
39970+
description: 'Whether BYOK (bring-your-own-key) spend counts toward this workspace''s budgets. Omitted without settings and budget visibility. Set it via the workspace budget endpoints.'
3997039971
example: false
3997139972
type: 'boolean'
3997239973
io_logging_api_key_ids:
39973-
description: 'Optional array of API key IDs to filter I/O logging. Null means all keys are logged.'
39974+
description: 'API key IDs used to filter I/O logging. Null means all keys are logged. Omitted without access to workspace settings and API key identifiers.'
3997439975
example: null
3997539976
items:
3997639977
type: 'integer'
@@ -40014,14 +40015,6 @@ components:
4001440015
- 'name'
4001540016
- 'slug'
4001640017
- 'description'
40017-
- 'default_text_model'
40018-
- 'default_image_model'
40019-
- 'default_provider_sort'
40020-
- 'is_observability_io_logging_enabled'
40021-
- 'is_observability_broadcast_enabled'
40022-
- 'is_data_discount_logging_enabled'
40023-
- 'io_logging_sampling_rate'
40024-
- 'io_logging_api_key_ids'
4002540018
- 'created_at'
4002640019
- 'updated_at'
4002740020
- 'created_by'
@@ -40196,7 +40189,7 @@ openapi: '3.1.0'
4019640189
paths:
4019740190
/activity:
4019840191
get:
40199-
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). A workspace-scoped management key needs `activity:view_all` on its own workspace and reads only that workspace: an omitted `workspace_id` defaults to it, a `workspace_id` naming any other workspace returns 403, `api_key_hash` and `user_id` resolve only keys and members of that workspace, and legacy activity with no workspace is excluded (including for the default workspace). [Management key](/docs/guides/overview/auth/management-api-keys) required.'
40192+
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). A workspace-scoped management key needs `activity:view_all` on its own workspace and reads only that workspace: an omitted `workspace_id` defaults to it, a `workspace_id` naming any other workspace returns 403, `api_key_hash` and `user_id` resolve only keys and members of that workspace, and legacy activity with no workspace is excluded (including for the default workspace). For Custom keys, `api_key_hash` also requires `api_keys:view_all` and does not resolve deleted keys. `user_id` also requires `workspace_members:view` on an explicit non-default workspace; organization and default-workspace member filtering requires `org_members:view`, which is not available as a Custom grant. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
4020040193
operationId: 'getUserActivity'
4020140194
parameters:
4020240195
- description: 'Filter by a single UTC date in the last 30 days (YYYY-MM-DD format).'
@@ -40318,7 +40311,7 @@ paths:
4031840311
x-speakeasy-max-method-params: 5
4031940312
/analytics/meta:
4032040313
get:
40321-
description: 'Returns the available metrics, dimensions, filter operators, and granularities for the analytics query endpoint. Workspace-scoped management keys are accepted. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
40314+
description: 'Returns the available metrics, dimensions, filter operators, and granularities for the analytics query endpoint. Custom access requires an organization-scoped key with `analytics:view`. Workspace-scoped keys with base Read Only or Read Write access are also accepted. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
4032240315
operationId: 'getAnalyticsMeta'
4032340316
responses:
4032440317
'200':
@@ -40462,7 +40455,7 @@ paths:
4046240455
- 'Analytics'
4046340456
/analytics/query:
4046440457
post:
40465-
description: 'Execute an analytics query with specified metrics, dimensions, filters, and time range. A workspace-scoped management key needs `activity:view_all` on its own workspace and reads only that workspace: it is refused a `workspace` filter naming another workspace, it excludes legacy rows with no workspace (including for the default workspace), and possible-cache metrics such as `possible_cached_tokens` return 400. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
40458+
description: 'Execute an analytics query with specified metrics, dimensions, filters, and time range. Custom access requires an organization-scoped key with `analytics:view`; grouping or filtering by `api_key_id` or `api_key_tag` also requires `api_keys:view_all`, and by `user` requires `org_members:view`. Key hash filters resolve only non-deleted ordinary keys. Workspace-scoped keys with base Read Only or Read Write access can query only their own workspace: a `workspace` filter naming another workspace is refused, legacy rows with no workspace are excluded (including for the default workspace), and possible-cache metrics such as `possible_cached_tokens` return 400. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
4046640459
operationId: 'queryAnalytics'
4046740460
requestBody:
4046840461
content:
@@ -54291,7 +54284,7 @@ paths:
5429154284
results: '$.data'
5429254285
type: 'offsetLimit'
5429354286
post:
54294-
description: 'Create a new observability destination. A maximum of 5 destinations per type is allowed. Defaults to the authenticated entity''s default workspace, or a workspace-scoped management key''s own workspace; use the `workspace_id` body field to scope to a different workspace. A workspace-scoped management key can only create in its own workspace; any other `workspace_id` returns 403. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
54287+
description: 'Create a new observability destination. A maximum of 5 enabled destinations per workspace, across all types, is allowed; disabled destinations do not count. A workspace already above the cap keeps its enabled destinations but cannot create or enable more until fewer than 5 are enabled. Defaults to the authenticated entity''s default workspace, or a workspace-scoped management key''s own workspace; use the `workspace_id` body field to scope to a different workspace. A workspace-scoped management key can only create in its own workspace; any other `workspace_id` returns 403. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
5429554288
operationId: 'createObservabilityDestination'
5429654289
requestBody:
5429754290
content:
@@ -54545,7 +54538,7 @@ paths:
5454554538
- 'Observability'
5454654539
x-speakeasy-name-override: 'get'
5454754540
patch:
54548-
description: 'Update an existing observability destination. Only the fields provided in the request body are updated. A workspace-scoped management key only reaches destinations in its own workspace; any other `id` returns 404. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
54541+
description: 'Update an existing observability destination. Only the fields provided in the request body are updated. Enabling a disabled destination returns 400 while the workspace already has 5 enabled destinations. A workspace-scoped management key only reaches destinations in its own workspace; any other `id` returns 404. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
5454954542
operationId: 'updateObservabilityDestination'
5455054543
parameters:
5455154544
- description: 'The destination ID (UUID).'

0 commit comments

Comments
 (0)