chore: generate
This commit is contained in:
@@ -78,6 +78,10 @@ export type Event =
|
||||
| EventSessionNextCompactionDelta
|
||||
| EventSessionNextCompactionEnded
|
||||
| EventCatalogModelUpdated
|
||||
| EventModelsDevRefreshed
|
||||
| EventAccountAdded
|
||||
| EventAccountRemoved
|
||||
| EventAccountSwitched
|
||||
|
||||
export type OAuth = {
|
||||
type: "oauth"
|
||||
@@ -874,6 +878,7 @@ export type GlobalEvent = {
|
||||
| EventSessionNextCompactionDelta
|
||||
| EventSessionNextCompactionEnded
|
||||
| EventCatalogModelUpdated
|
||||
| EventModelsDevRefreshed
|
||||
| SyncEventMessageUpdated
|
||||
| SyncEventMessageRemoved
|
||||
| SyncEventMessagePartUpdated
|
||||
@@ -3284,6 +3289,14 @@ export type EventCatalogModelUpdated = {
|
||||
}
|
||||
}
|
||||
|
||||
export type EventModelsDevRefreshed = {
|
||||
id: string
|
||||
type: "models-dev.refreshed"
|
||||
properties: {
|
||||
[key: string]: unknown
|
||||
}
|
||||
}
|
||||
|
||||
export type SessionInfo = {
|
||||
id: string
|
||||
parentID?: string
|
||||
@@ -3695,6 +3708,56 @@ export type ModelV2Info1 = {
|
||||
}
|
||||
}
|
||||
|
||||
export type AccountV2oAuthCredential = {
|
||||
type: "oauth"
|
||||
refresh: string
|
||||
access: string
|
||||
expires: number
|
||||
}
|
||||
|
||||
export type AccountV2ApiKeyCredential = {
|
||||
type: "api"
|
||||
key: string
|
||||
metadata?: {
|
||||
[key: string]: string
|
||||
}
|
||||
}
|
||||
|
||||
export type AccountV2Credential = AccountV2oAuthCredential | AccountV2ApiKeyCredential
|
||||
|
||||
export type AccountV2Info = {
|
||||
id: string
|
||||
serviceID: string
|
||||
description: string
|
||||
credential: AccountV2Credential
|
||||
}
|
||||
|
||||
export type EventAccountAdded = {
|
||||
id: string
|
||||
type: "account.added"
|
||||
properties: {
|
||||
account: AccountV2Info
|
||||
}
|
||||
}
|
||||
|
||||
export type EventAccountRemoved = {
|
||||
id: string
|
||||
type: "account.removed"
|
||||
properties: {
|
||||
account: AccountV2Info
|
||||
}
|
||||
}
|
||||
|
||||
export type EventAccountSwitched = {
|
||||
id: string
|
||||
type: "account.switched"
|
||||
properties: {
|
||||
serviceID: string
|
||||
from?: string
|
||||
to?: string
|
||||
}
|
||||
}
|
||||
|
||||
export type BadRequestError = {
|
||||
name: "BadRequest"
|
||||
data: {
|
||||
|
||||
+182
-1
@@ -10567,6 +10567,18 @@
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/EventSessionNextCompactionEnded"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/EventModels-devRefreshed"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/EventAccountAdded"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/EventAccountRemoved"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/EventAccountSwitched"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -12979,6 +12991,9 @@
|
||||
{
|
||||
"$ref": "#/components/schemas/EventSessionNextCompactionEnded"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/EventModels-devRefreshed"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/SyncEventMessageUpdated"
|
||||
},
|
||||
@@ -20308,6 +20323,24 @@
|
||||
"required": ["id", "type", "properties"],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"EventModels-devRefreshed": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": ["models-dev.refreshed"]
|
||||
},
|
||||
"properties": {
|
||||
"type": "object",
|
||||
"properties": {}
|
||||
}
|
||||
},
|
||||
"required": ["id", "type", "properties"],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"SessionInfo": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -21021,7 +21054,7 @@
|
||||
"properties": {
|
||||
"via": {
|
||||
"type": "string",
|
||||
"enum": ["auth"]
|
||||
"enum": ["account"]
|
||||
},
|
||||
"service": {
|
||||
"type": "string"
|
||||
@@ -21543,6 +21576,154 @@
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"AccountV2OAuthCredential": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": ["oauth"]
|
||||
},
|
||||
"refresh": {
|
||||
"type": "string"
|
||||
},
|
||||
"access": {
|
||||
"type": "string"
|
||||
},
|
||||
"expires": {
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
}
|
||||
},
|
||||
"required": ["type", "refresh", "access", "expires"],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"AccountV2ApiKeyCredential": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": ["api"]
|
||||
},
|
||||
"key": {
|
||||
"type": "string"
|
||||
},
|
||||
"metadata": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": ["type", "key"],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"AccountV2Credential": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/AccountV2OAuthCredential"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/AccountV2ApiKeyCredential"
|
||||
}
|
||||
]
|
||||
},
|
||||
"AccountV2Info": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"serviceID": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"type": "string"
|
||||
},
|
||||
"credential": {
|
||||
"$ref": "#/components/schemas/AccountV2Credential"
|
||||
}
|
||||
},
|
||||
"required": ["id", "serviceID", "description", "credential"],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"EventAccountAdded": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": ["account.added"]
|
||||
},
|
||||
"properties": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"account": {
|
||||
"$ref": "#/components/schemas/AccountV2Info"
|
||||
}
|
||||
},
|
||||
"required": ["account"],
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"required": ["id", "type", "properties"],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"EventAccountRemoved": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": ["account.removed"]
|
||||
},
|
||||
"properties": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"account": {
|
||||
"$ref": "#/components/schemas/AccountV2Info"
|
||||
}
|
||||
},
|
||||
"required": ["account"],
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"required": ["id", "type", "properties"],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"EventAccountSwitched": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": ["account.switched"]
|
||||
},
|
||||
"properties": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"serviceID": {
|
||||
"type": "string"
|
||||
},
|
||||
"from": {
|
||||
"type": "string"
|
||||
},
|
||||
"to": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": ["serviceID"],
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"required": ["id", "type", "properties"],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"BadRequestError": {
|
||||
"type": "object",
|
||||
"required": ["name", "data"],
|
||||
|
||||
Reference in New Issue
Block a user