chore: update OpenAPI spec from monorepo (#274)

Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
This commit is contained in:
robert-j-y
2026-05-26 17:38:30 -07:00
committed by GitHub
co-authored by OpenRouter SDK Bot
parent 4610ea4719
commit b5aca7806b
+50 -25
View File
@@ -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