feat: 接入 SSF 实时会话撤销

This commit is contained in:
2026-07-14 17:06:41 +08:00
parent 30ad0e9f2c
commit f30aaeb2d4
28 changed files with 2597 additions and 91 deletions
+74
View File
@@ -5506,6 +5506,80 @@
}
}
},
"/api/v1/security-events/ssf": {
"post": {
"description": "Optional endpoint. It validates a stream-specific Bearer before parsing and verifying an ES256 SET. A committed event and a duplicate jti both return an empty 202 response.",
"consumes": [
"application/secevent+jwt"
],
"produces": [
"application/json"
],
"tags": [
"Security Events"
],
"summary": "Receive an SSF Security Event Token",
"parameters": [
{
"type": "string",
"description": "Bearer stream-specific-secret",
"name": "Authorization",
"in": "header",
"required": true
},
{
"description": "Compact signed Security Event Token",
"name": "set",
"in": "body",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"202": {
"description": "Accepted"
},
"400": {
"description": "Bad Request",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"401": {
"description": "Unauthorized",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"403": {
"description": "Forbidden",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"503": {
"description": "Service Unavailable",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/api/v1/song/generations": {
"post": {
"security": [
+51
View File
@@ -6073,6 +6073,57 @@ paths:
summary: 创建或执行 AI 任务
tags:
- tasks
/api/v1/security-events/ssf:
post:
consumes:
- application/secevent+jwt
description: Optional endpoint. It validates a stream-specific Bearer before
parsing and verifying an ES256 SET. A committed event and a duplicate jti
both return an empty 202 response.
parameters:
- description: Bearer stream-specific-secret
in: header
name: Authorization
required: true
type: string
- description: Compact signed Security Event Token
in: body
name: set
required: true
schema:
type: string
produces:
- application/json
responses:
"202":
description: Accepted
"400":
description: Bad Request
schema:
additionalProperties:
type: string
type: object
"401":
description: Unauthorized
schema:
additionalProperties:
type: string
type: object
"403":
description: Forbidden
schema:
additionalProperties:
type: string
type: object
"503":
description: Service Unavailable
schema:
additionalProperties:
type: string
type: object
summary: Receive an SSF Security Event Token
tags:
- Security Events
/api/v1/song/generations:
post:
consumes: