chore: generate

This commit is contained in:
opencode-agent[bot]
2026-05-30 04:07:26 +00:00
parent 9583e08be4
commit e4d3b81b0e
11 changed files with 182 additions and 104 deletions
+26 -7
View File
@@ -77,6 +77,7 @@ export type Event =
| EventSessionNextCompactionStarted
| EventSessionNextCompactionDelta
| EventSessionNextCompactionEnded
| EventPluginAdded
| EventCatalogModelUpdated
| EventModelsDevRefreshed
| EventAccountAdded
@@ -878,6 +879,7 @@ export type GlobalEvent = {
| EventSessionNextCompactionStarted
| EventSessionNextCompactionDelta
| EventSessionNextCompactionEnded
| EventPluginAdded
| EventCatalogModelUpdated
| EventModelsDevRefreshed
| EventAccountAdded
@@ -1316,6 +1318,7 @@ export type Config = {
primary_tools?: Array<string>
continue_loop_on_deny?: boolean
mcp_timeout?: number
policies?: Array<ConfigV2ExperimentalPolicy>
}
}
@@ -2137,7 +2140,7 @@ export type SyncEventSessionNextModelSwitched = {
model: {
id: string
providerID: string
variant: string
variant?: string
}
}
}
@@ -2209,7 +2212,7 @@ export type SyncEventSessionNextStepStarted = {
model: {
id: string
providerID: string
variant: string
variant?: string
}
snapshot?: string
}
@@ -2890,7 +2893,7 @@ export type EventSessionNextModelSwitched = {
model: {
id: string
providerID: string
variant: string
variant?: string
}
}
}
@@ -2978,7 +2981,7 @@ export type EventSessionNextStepStarted = {
model: {
id: string
providerID: string
variant: string
variant?: string
}
snapshot?: string
}
@@ -3252,6 +3255,14 @@ export type EventSessionNextCompactionEnded = {
}
}
export type EventPluginAdded = {
id: string
type: "plugin.added"
properties: {
id: string
}
}
export type ModelV2Info = {
id: string
apiID: string
@@ -3416,6 +3427,14 @@ export type EventAccountSwitched = {
}
}
export type PolicyEffect = "allow" | "deny"
export type ConfigV2ExperimentalPolicy = {
action: "provider.use"
effect: PolicyEffect
resource: string
}
export type SessionInfo = {
id: string
parentID?: string
@@ -3426,7 +3445,7 @@ export type SessionInfo = {
model?: {
id: string
providerID: string
variant: string
variant?: string
}
cost: number
tokens: {
@@ -3472,7 +3491,7 @@ export type SessionMessageModelSwitched = {
model: {
id: string
providerID: string
variant: string
variant?: string
}
}
@@ -3607,7 +3626,7 @@ export type SessionMessageAssistant = {
model: {
id: string
providerID: string
variant: string
variant?: string
}
content: Array<SessionMessageAssistantText | SessionMessageAssistantReasoning | SessionMessageAssistantTool>
snapshot?: {
+64 -7
View File
@@ -10698,6 +10698,9 @@
{
"$ref": "#/components/schemas/EventSessionNextCompactionEnded"
},
{
"$ref": "#/components/schemas/EventPluginAdded"
},
{
"$ref": "#/components/schemas/EventCatalogModelUpdated"
},
@@ -13124,6 +13127,9 @@
{
"$ref": "#/components/schemas/EventSessionNextCompactionEnded"
},
{
"$ref": "#/components/schemas/EventPluginAdded"
},
{
"$ref": "#/components/schemas/EventCatalogModelUpdated"
},
@@ -14330,6 +14336,12 @@
"mcp_timeout": {
"type": "integer",
"exclusiveMinimum": 0
},
"policies": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ConfigV2ExperimentalPolicy"
}
}
},
"additionalProperties": false
@@ -16969,7 +16981,7 @@
"type": "string"
}
},
"required": ["id", "providerID", "variant"],
"required": ["id", "providerID"],
"additionalProperties": false
}
},
@@ -17201,7 +17213,7 @@
"type": "string"
}
},
"required": ["id", "providerID", "variant"],
"required": ["id", "providerID"],
"additionalProperties": false
},
"snapshot": {
@@ -19307,7 +19319,7 @@
"type": "string"
}
},
"required": ["id", "providerID", "variant"],
"required": ["id", "providerID"],
"additionalProperties": false
}
},
@@ -19570,7 +19582,7 @@
"type": "string"
}
},
"required": ["id", "providerID", "variant"],
"required": ["id", "providerID"],
"additionalProperties": false
},
"snapshot": {
@@ -20386,6 +20398,30 @@
"required": ["id", "type", "properties"],
"additionalProperties": false
},
"EventPluginAdded": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"type": {
"type": "string",
"enum": ["plugin.added"]
},
"properties": {
"type": "object",
"properties": {
"id": {
"type": "string"
}
},
"required": ["id"],
"additionalProperties": false
}
},
"required": ["id", "type", "properties"],
"additionalProperties": false
},
"ModelV2Info": {
"type": "object",
"properties": {
@@ -20900,6 +20936,27 @@
"required": ["id", "type", "properties"],
"additionalProperties": false
},
"PolicyEffect": {
"type": "string",
"enum": ["allow", "deny"]
},
"ConfigV2ExperimentalPolicy": {
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": ["provider.use"]
},
"effect": {
"$ref": "#/components/schemas/PolicyEffect"
},
"resource": {
"type": "string"
}
},
"required": ["action", "effect", "resource"],
"additionalProperties": false
},
"SessionInfo": {
"type": "object",
"properties": {
@@ -20937,7 +20994,7 @@
"type": "string"
}
},
"required": ["id", "providerID", "variant"],
"required": ["id", "providerID"],
"additionalProperties": false
},
"cost": {
@@ -21065,7 +21122,7 @@
"type": "string"
}
},
"required": ["id", "providerID", "variant"],
"required": ["id", "providerID"],
"additionalProperties": false
}
},
@@ -21444,7 +21501,7 @@
"type": "string"
}
},
"required": ["id", "providerID", "variant"],
"required": ["id", "providerID"],
"additionalProperties": false
},
"content": {