docs(v2): align reuse and account lifecycle contracts

This commit is contained in:
phamnazage-jpg
2026-05-22 14:15:41 +08:00
parent d68fb9daa3
commit f718f2d888
7 changed files with 432 additions and 17 deletions

View File

@@ -736,6 +736,8 @@ components:
type: string
normalized_model_id:
type: string
canonical_model_family:
type: string
supports_stream:
type: string
supports_tools:
@@ -762,10 +764,16 @@ components:
type: string
provider_id:
type: string
api_key_fingerprint:
type: string
requested_models:
type: array
items:
type: string
canonical_model_families:
type: array
items:
type: string
resolved_smoke_model:
type: string
nullable: true
@@ -778,6 +786,14 @@ components:
access_status:
type: string
enum: [unknown, active, degraded, broken]
matched_account_state:
type: string
enum: [none, active, disabled, deprecated, broken]
account_resolution:
type: string
enum: [created, reused, reactivated, replaced]
provision_reused:
type: boolean
retry_count:
type: integer
last_retry_at:
@@ -825,10 +841,21 @@ components:
type: array
items:
type: string
canonical_model_families:
type: array
items:
type: string
recommended_models:
type: array
items:
type: string
reused_from_provider_id:
type: string
nullable: true
reused_from_account_id:
type: integer
format: int64
nullable: true
channel_id:
type: integer
format: int64