From b5aca7806be8d58b34f105a81c1b66a1533a41aa Mon Sep 17 00:00:00 2001 From: robert-j-y <212159665+robert-j-y@users.noreply.github.com> Date: Tue, 26 May 2026 17:38:30 -0700 Subject: [PATCH] chore: update OpenAPI spec from monorepo (#274) Co-authored-by: OpenRouter SDK Bot --- .speakeasy/in.openapi.yaml | 75 +++++++++++++++++++++++++------------- 1 file changed, 50 insertions(+), 25 deletions(-) diff --git a/.speakeasy/in.openapi.yaml b/.speakeasy/in.openapi.yaml index 58e66f2..87f3f3a 100644 --- a/.speakeasy/in.openapi.yaml +++ b/.speakeasy/in.openapi.yaml @@ -5454,15 +5454,40 @@ components: A builtin content filter entry. Builtin filters include PII detectors and the regex-based prompt injection detector. example: - action: block - label: '[PROMPT_INJECTION]' - slug: regex-prompt-injection + action: redact + label: '[EMAIL]' + slug: email properties: action: $ref: '#/components/schemas/ContentFilterBuiltinAction' label: - description: Optional label used in redaction placeholders (e.g. "[PROMPT_INJECTION]") - example: '[PROMPT_INJECTION]' + description: >- + Read-only, system-assigned redaction placeholder derived from the slug (e.g. "[EMAIL]", "[PHONE]"). Not + settable by the caller. + example: '[EMAIL]' + maxLength: 100 + type: string + slug: + $ref: '#/components/schemas/ContentFilterBuiltinSlug' + required: + - slug + - action + type: object + ContentFilterBuiltinEntryInput: + description: >- + A builtin content filter entry for create/update requests. Labels are system-assigned and cannot be set by the + caller. + example: + action: redact + slug: email + properties: + action: + $ref: '#/components/schemas/ContentFilterBuiltinAction' + label: + deprecated: true + description: >- + Deprecated: labels are system-assigned and cannot be set by the caller. Accepted for backward compatibility + but silently ignored. maxLength: 100 type: string slug: @@ -5833,7 +5858,7 @@ components: - action: block slug: regex-prompt-injection items: - $ref: '#/components/schemas/ContentFilterBuiltinEntry' + $ref: '#/components/schemas/ContentFilterBuiltinEntryInput' nullable: true type: array content_filters: @@ -5932,9 +5957,9 @@ components: - anthropic - google content_filter_builtins: - - action: block - label: '[PROMPT_INJECTION]' - slug: regex-prompt-injection + - action: redact + label: '[EMAIL]' + slug: email content_filters: null created_at: '2025-08-24T10:30:00Z' description: A guardrail for limiting API usage @@ -7564,9 +7589,9 @@ components: - anthropic - google content_filter_builtins: - - action: block - label: '[PROMPT_INJECTION]' - slug: regex-prompt-injection + - action: redact + label: '[EMAIL]' + slug: email content_filters: null created_at: '2025-08-24T10:30:00Z' description: Guardrail for production environment @@ -7694,9 +7719,9 @@ components: - anthropic - google content_filter_builtins: - - action: block - label: '[PROMPT_INJECTION]' - slug: regex-prompt-injection + - action: redact + label: '[EMAIL]' + slug: email content_filters: null created_at: '2025-08-24T10:30:00Z' description: Guardrail for production environment @@ -7739,9 +7764,9 @@ components: Builtin content filters applied to requests. Includes PII detectors and the regex-based prompt injection detector. example: - - action: block - label: '[PROMPT_INJECTION]' - slug: regex-prompt-injection + - action: redact + label: '[EMAIL]' + slug: email items: $ref: '#/components/schemas/ContentFilterBuiltinEntry' nullable: true @@ -8711,9 +8736,9 @@ components: - anthropic - google content_filter_builtins: - - action: block - label: '[PROMPT_INJECTION]' - slug: regex-prompt-injection + - action: redact + label: '[EMAIL]' + slug: email content_filters: null created_at: '2025-08-24T10:30:00Z' description: Guardrail for production environment @@ -18570,7 +18595,7 @@ components: - action: block slug: regex-prompt-injection items: - $ref: '#/components/schemas/ContentFilterBuiltinEntry' + $ref: '#/components/schemas/ContentFilterBuiltinEntryInput' nullable: true type: array content_filters: @@ -18657,9 +18682,9 @@ components: allowed_providers: - openai content_filter_builtins: - - action: block - label: '[PROMPT_INJECTION]' - slug: regex-prompt-injection + - action: redact + label: '[EMAIL]' + slug: email content_filters: null created_at: '2025-08-24T10:30:00Z' description: Updated description