|
@@ -12994,6 +12994,15 @@
|
|
|
{
|
|
{
|
|
|
"$ref": "#/components/schemas/EventModels-devRefreshed"
|
|
"$ref": "#/components/schemas/EventModels-devRefreshed"
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ "$ref": "#/components/schemas/EventAccountAdded"
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ "$ref": "#/components/schemas/EventAccountRemoved"
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ "$ref": "#/components/schemas/EventAccountSwitched"
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
"$ref": "#/components/schemas/SyncEventMessageUpdated"
|
|
"$ref": "#/components/schemas/SyncEventMessageUpdated"
|
|
|
},
|
|
},
|
|
@@ -20341,6 +20350,154 @@
|
|
|
"required": ["id", "type", "properties"],
|
|
"required": ["id", "type", "properties"],
|
|
|
"additionalProperties": false
|
|
"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
|
|
|
|
|
+ },
|
|
|
"SessionInfo": {
|
|
"SessionInfo": {
|
|
|
"type": "object",
|
|
"type": "object",
|
|
|
"properties": {
|
|
"properties": {
|
|
@@ -21576,154 +21733,6 @@
|
|
|
],
|
|
],
|
|
|
"additionalProperties": false
|
|
"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": {
|
|
"BadRequestError": {
|
|
|
"type": "object",
|
|
"type": "object",
|
|
|
"required": ["name", "data"],
|
|
"required": ["name", "data"],
|