Skip to content

Commit f2f56bd

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

1 file changed

Lines changed: 121 additions & 0 deletions

File tree

.speakeasy/in.openapi.yaml

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29388,6 +29388,127 @@ paths:
2938829388
tags:
2938929389
- 'Containers'
2939029390
x-hidden: true
29391+
/containers/{container_id}/files/{file_id}/promote:
29392+
post:
29393+
description: 'Copies a file from the container''s sandbox prefix into the workspace''s durable document storage, so it outlives the container. Returns the new document in the Files API shape, with a durable file id in the documents namespace. The copy counts against the workspace''s storage quota exactly like an upload.'
29394+
operationId: 'promoteContainerFile'
29395+
parameters:
29396+
- description: 'The canonical container id, exactly as returned in a bash/shell tool result — a restarted session has its own `-r<nonce>`-suffixed id. A session-derived id is always `sess_` + the sanitized session key, which is not necessarily the raw session id that was sent.'
29397+
in: 'path'
29398+
name: 'container_id'
29399+
required: true
29400+
schema:
29401+
description: 'The canonical container id, exactly as returned in a bash/shell tool result — a restarted session has its own `-r<nonce>`-suffixed id. A session-derived id is always `sess_` + the sanitized session key, which is not necessarily the raw session id that was sent.'
29402+
example: 'sess_abc123'
29403+
type: 'string'
29404+
- description: 'Container file id (`cfile_` + base64url of the file path).'
29405+
in: 'path'
29406+
name: 'file_id'
29407+
required: true
29408+
schema:
29409+
description: 'Container file id (`cfile_` + base64url of the file path).'
29410+
example: 'cfile_b3V0L3JlcG9ydC5jc3Y'
29411+
type: 'string'
29412+
responses:
29413+
'200':
29414+
content:
29415+
application/json:
29416+
example:
29417+
_shape: 'openrouter'
29418+
created_at: '2026-08-23T00:00:00Z'
29419+
downloadable: false
29420+
filename: 'out/report.csv'
29421+
id: 'or_file_011CNha8iCJcU1wXNR6q4V8w'
29422+
mime_type: 'text/csv'
29423+
size_bytes: 123
29424+
type: 'file'
29425+
schema:
29426+
$ref: '#/components/schemas/FileResponse'
29427+
description: 'The promoted file, as a workspace document.'
29428+
'400':
29429+
content:
29430+
application/json:
29431+
example:
29432+
error:
29433+
code: 400
29434+
message: 'Invalid request parameters'
29435+
schema:
29436+
$ref: '#/components/schemas/BadRequestResponse'
29437+
description: 'Bad Request - Invalid request parameters or malformed input'
29438+
'401':
29439+
content:
29440+
application/json:
29441+
example:
29442+
error:
29443+
code: 401
29444+
message: 'Missing Authentication header'
29445+
schema:
29446+
$ref: '#/components/schemas/UnauthorizedResponse'
29447+
description: 'Unauthorized - Authentication required or invalid credentials'
29448+
'403':
29449+
content:
29450+
application/json:
29451+
example:
29452+
error:
29453+
code: 403
29454+
message: 'Only management keys can perform this operation'
29455+
schema:
29456+
$ref: '#/components/schemas/ForbiddenResponse'
29457+
description: 'Forbidden - Authentication successful but insufficient permissions'
29458+
'404':
29459+
content:
29460+
application/json:
29461+
example:
29462+
error:
29463+
code: 404
29464+
message: 'Resource not found'
29465+
schema:
29466+
$ref: '#/components/schemas/NotFoundResponse'
29467+
description: 'Not Found - Resource does not exist'
29468+
'413':
29469+
content:
29470+
application/json:
29471+
example:
29472+
error:
29473+
code: 413
29474+
message: 'Request payload too large'
29475+
schema:
29476+
$ref: '#/components/schemas/PayloadTooLargeResponse'
29477+
description: 'Payload Too Large - Request payload exceeds size limits'
29478+
'429':
29479+
content:
29480+
application/json:
29481+
example:
29482+
error:
29483+
code: 429
29484+
message: 'Rate limit exceeded'
29485+
schema:
29486+
$ref: '#/components/schemas/TooManyRequestsResponse'
29487+
description: 'Too Many Requests - Rate limit exceeded'
29488+
'500':
29489+
content:
29490+
application/json:
29491+
example:
29492+
error:
29493+
code: 500
29494+
message: 'Internal Server Error'
29495+
schema:
29496+
$ref: '#/components/schemas/InternalServerResponse'
29497+
description: 'Internal Server Error - Unexpected server error'
29498+
'503':
29499+
content:
29500+
application/json:
29501+
example:
29502+
error:
29503+
code: 503
29504+
message: 'Service temporarily unavailable'
29505+
schema:
29506+
$ref: '#/components/schemas/ServiceUnavailableResponse'
29507+
description: 'Service Unavailable - Service temporarily unavailable'
29508+
summary: 'Promote a container file into workspace documents'
29509+
tags:
29510+
- 'Containers'
29511+
x-hidden: true
2939129512
/credits:
2939229513
get:
2939329514
description: 'Get total credits purchased and used for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.'

0 commit comments

Comments
 (0)