Skip to content

Commit e78ccad

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

1 file changed

Lines changed: 152 additions & 0 deletions

File tree

‎.speakeasy/in.openapi.yaml‎

Lines changed: 152 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22557,6 +22557,23 @@ components:
2255722557
type:
2255822558
- 'string'
2255922559
- 'null'
22560+
OrganizationSettings:
22561+
example:
22562+
id: 'org_2dHFtVWx2n56w6HkM0000000000'
22563+
is_filtered_model_catalog_enabled: true
22564+
properties:
22565+
id:
22566+
description: 'ID of the organization the settings belong to'
22567+
example: 'org_2dHFtVWx2n56w6HkM0000000000'
22568+
type: 'string'
22569+
is_filtered_model_catalog_enabled:
22570+
description: 'When true, `GET /api/v1/models` called with one of the organization''s API keys returns only the models that key can use (the `/api/v1/models/user` catalog), and the signed-in dashboard shows the same list. Anonymous requests always receive the public catalog.'
22571+
example: true
22572+
type: 'boolean'
22573+
required:
22574+
- 'id'
22575+
- 'is_filtered_model_catalog_enabled'
22576+
type: 'object'
2256022577
OutputAdvisorServerToolItem:
2256122578
description: 'An openrouter:advisor server tool output item'
2256222579
example:
@@ -31198,6 +31215,16 @@ components:
3119831215
required:
3119931216
- 'data'
3120031217
type: 'object'
31218+
UpdateOrganizationSettingsRequest:
31219+
additionalProperties: false
31220+
properties:
31221+
is_filtered_model_catalog_enabled:
31222+
description: 'When true, `GET /api/v1/models` called with one of the organization''s API keys returns only the models that key can use (the `/api/v1/models/user` catalog), and the signed-in dashboard shows the same list. Anonymous requests always receive the public catalog.'
31223+
example: true
31224+
type: 'boolean'
31225+
required:
31226+
- 'is_filtered_model_catalog_enabled'
31227+
type: 'object'
3120131228
UpdatePrivateEndpointPricingRequest:
3120231229
properties:
3120331230
pricing:
@@ -45419,6 +45446,131 @@ paths:
4541945446
outputs:
4542045447
results: '$.data'
4542145448
type: 'offsetLimit'
45449+
/organization/settings:
45450+
get:
45451+
description: 'Get the settings of the organization associated with the authenticated management key. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
45452+
operationId: 'getOrganizationSettings'
45453+
responses:
45454+
'200':
45455+
content:
45456+
application/json:
45457+
example:
45458+
data:
45459+
id: 'org_2dHFtVWx2n56w6HkM0000000000'
45460+
is_filtered_model_catalog_enabled: true
45461+
schema:
45462+
properties:
45463+
data:
45464+
$ref: '#/components/schemas/OrganizationSettings'
45465+
required:
45466+
- 'data'
45467+
type: 'object'
45468+
description: 'Organization settings'
45469+
'401':
45470+
content:
45471+
application/json:
45472+
example:
45473+
error:
45474+
code: 401
45475+
message: 'Missing Authentication header'
45476+
schema:
45477+
$ref: '#/components/schemas/UnauthorizedResponse'
45478+
description: 'Unauthorized - Authentication required or invalid credentials'
45479+
'404':
45480+
content:
45481+
application/json:
45482+
example:
45483+
error:
45484+
code: 404
45485+
message: 'Resource not found'
45486+
schema:
45487+
$ref: '#/components/schemas/NotFoundResponse'
45488+
description: 'Not Found - Resource does not exist'
45489+
'500':
45490+
content:
45491+
application/json:
45492+
example:
45493+
error:
45494+
code: 500
45495+
message: 'Internal Server Error'
45496+
schema:
45497+
$ref: '#/components/schemas/InternalServerResponse'
45498+
description: 'Internal Server Error - Unexpected server error'
45499+
summary: 'Get organization settings'
45500+
tags:
45501+
- 'Organization'
45502+
x-speakeasy-name-override: 'getSettings'
45503+
patch:
45504+
description: 'Update the settings of the organization associated with the authenticated management key. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
45505+
operationId: 'updateOrganizationSettings'
45506+
requestBody:
45507+
content:
45508+
application/json:
45509+
example:
45510+
is_filtered_model_catalog_enabled: true
45511+
schema:
45512+
$ref: '#/components/schemas/UpdateOrganizationSettingsRequest'
45513+
required: true
45514+
responses:
45515+
'200':
45516+
content:
45517+
application/json:
45518+
example:
45519+
data:
45520+
id: 'org_2dHFtVWx2n56w6HkM0000000000'
45521+
is_filtered_model_catalog_enabled: true
45522+
schema:
45523+
properties:
45524+
data:
45525+
$ref: '#/components/schemas/OrganizationSettings'
45526+
required:
45527+
- 'data'
45528+
type: 'object'
45529+
description: 'Organization settings updated successfully'
45530+
'400':
45531+
content:
45532+
application/json:
45533+
example:
45534+
error:
45535+
code: 400
45536+
message: 'Invalid request parameters'
45537+
schema:
45538+
$ref: '#/components/schemas/BadRequestResponse'
45539+
description: 'Bad Request - Invalid request parameters or malformed input'
45540+
'401':
45541+
content:
45542+
application/json:
45543+
example:
45544+
error:
45545+
code: 401
45546+
message: 'Missing Authentication header'
45547+
schema:
45548+
$ref: '#/components/schemas/UnauthorizedResponse'
45549+
description: 'Unauthorized - Authentication required or invalid credentials'
45550+
'404':
45551+
content:
45552+
application/json:
45553+
example:
45554+
error:
45555+
code: 404
45556+
message: 'Resource not found'
45557+
schema:
45558+
$ref: '#/components/schemas/NotFoundResponse'
45559+
description: 'Not Found - Resource does not exist'
45560+
'500':
45561+
content:
45562+
application/json:
45563+
example:
45564+
error:
45565+
code: 500
45566+
message: 'Internal Server Error'
45567+
schema:
45568+
$ref: '#/components/schemas/InternalServerResponse'
45569+
description: 'Internal Server Error - Unexpected server error'
45570+
summary: 'Update organization settings'
45571+
tags:
45572+
- 'Organization'
45573+
x-speakeasy-name-override: 'updateSettings'
4542245574
/presets:
4542345575
get:
4542445576
description: 'Lists all presets for the authenticated user, ordered by most recently updated first.'

0 commit comments

Comments
 (0)