Skip to content

Commit ec936dd

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

1 file changed

Lines changed: 72 additions & 2 deletions

File tree

‎.speakeasy/in.openapi.yaml‎

Lines changed: 72 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20691,13 +20691,50 @@ components:
2069120691
accessKeyId:
2069220692
minLength: 1
2069320693
type: 'string'
20694+
visibleWhen:
20695+
- field: 'authMode'
20696+
in:
20697+
- 'access_keys'
20698+
- ''
20699+
authMode:
20700+
default: 'access_keys'
20701+
description: 'IAM role: OpenRouter assumes a role in your AWS account with short-lived STS credentials, so you don''t share long-lived keys.'
20702+
enum:
20703+
- 'access_keys'
20704+
- 'iam_role'
20705+
optionLabels:
20706+
access_keys: 'Access keys'
20707+
iam_role: 'IAM role'
20708+
type: 'string'
20709+
visibleWhen:
20710+
- field: 'provider'
20711+
in:
20712+
- 'aws'
2069420713
bucketName:
2069520714
minLength: 1
2069620715
type: 'string'
2069720716
endpoint:
2069820717
description: 'Only for S3-compatible services like Cloudflare R2 (https://account-id.r2.cloudflarestorage.com) or MinIO. Leave blank for standard AWS S3.'
2069920718
format: 'uri'
2070020719
type: 'string'
20720+
visibleWhen:
20721+
- field: 'provider'
20722+
in:
20723+
- 'cloudflare_r2'
20724+
- 'gcs'
20725+
- 'other'
20726+
- ''
20727+
externalId:
20728+
description: 'Generated by OpenRouter when you save. Require it as sts:ExternalId in your role''s trust policy.'
20729+
readOnly: true
20730+
type: 'string'
20731+
visibleWhen:
20732+
- field: 'provider'
20733+
in:
20734+
- 'aws'
20735+
- field: 'authMode'
20736+
in:
20737+
- 'iam_role'
2070120738
headers:
2070220739
additionalProperties:
2070320740
type: 'string'
@@ -20710,17 +20747,50 @@ components:
2071020747
prefix:
2071120748
default: 'openrouter-traces'
2071220749
type: 'string'
20750+
provider:
20751+
description: 'The object storage service that hosts the bucket. AWS S3 supports IAM role authentication; the other providers use access keys.'
20752+
enum:
20753+
- 'aws'
20754+
- 'cloudflare_r2'
20755+
- 'gcs'
20756+
- 'other'
20757+
optionLabels:
20758+
aws: 'AWS S3'
20759+
cloudflare_r2: 'Cloudflare R2'
20760+
gcs: 'Google Cloud Storage'
20761+
other: 'Other S3-compatible'
20762+
type: 'string'
2071320763
region:
20764+
description: 'Required for IAM role authentication. With access keys, AWS S3 detects the bucket region when you leave this blank.'
20765+
type: 'string'
20766+
roleArn:
20767+
description: 'The IAM role in your account that OpenRouter assumes. Its trust policy must allow sts:AssumeRole from arn:aws:iam::536697249728:role/openrouter-broadcast-exporter and require the external ID below, and its permissions must allow s3:PutObject on the bucket and prefix (plus kms:GenerateDataKey for SSE-KMS buckets).'
20768+
pattern: '^arn:aws(?:-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@/-]{1,512}$'
2071420769
type: 'string'
20770+
visibleWhen:
20771+
- field: 'provider'
20772+
in:
20773+
- 'aws'
20774+
- field: 'authMode'
20775+
in:
20776+
- 'iam_role'
2071520777
secretAccessKey:
2071620778
minLength: 1
2071720779
type: 'string'
20780+
visibleWhen:
20781+
- field: 'authMode'
20782+
in:
20783+
- 'access_keys'
20784+
- ''
2071820785
sessionToken:
2071920786
type: 'string'
20787+
visibleWhen:
20788+
- field: 'authMode'
20789+
in:
20790+
- 'access_keys'
20791+
- ''
2072020792
required:
2072120793
- 'bucketName'
20722-
- 'accessKeyId'
20723-
- 'secretAccessKey'
2072420794
type: 'object'
2072520795
created_at:
2072620796
description: 'ISO timestamp of when the destination was created.'

0 commit comments

Comments
 (0)