Fix account session protocol layering

This commit is contained in:
Dhruv
2026-06-01 07:43:39 +05:30
parent b7bce9beb7
commit 5ae17fb80f
21 changed files with 71 additions and 987 deletions
@@ -1787,102 +1787,6 @@
"title": "Account/login/cancelRequest",
"type": "object"
},
{
"properties": {
"id": {
"$ref": "#/definitions/v2/RequestId"
},
"method": {
"enum": [
"accountSession/add"
],
"title": "AccountSession/addRequestMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/v2/AccountSessionsAddParams"
}
},
"required": [
"id",
"method",
"params"
],
"title": "AccountSession/addRequest",
"type": "object"
},
{
"properties": {
"id": {
"$ref": "#/definitions/v2/RequestId"
},
"method": {
"enum": [
"accountSession/list"
],
"title": "AccountSession/listRequestMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/v2/AccountSessionsListParams"
}
},
"required": [
"id",
"method",
"params"
],
"title": "AccountSession/listRequest",
"type": "object"
},
{
"properties": {
"id": {
"$ref": "#/definitions/v2/RequestId"
},
"method": {
"enum": [
"accountSession/logout"
],
"title": "AccountSession/logoutRequestMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/v2/AccountSessionsLogoutParams"
}
},
"required": [
"id",
"method",
"params"
],
"title": "AccountSession/logoutRequest",
"type": "object"
},
{
"properties": {
"id": {
"$ref": "#/definitions/v2/RequestId"
},
"method": {
"enum": [
"accountSession/switch"
],
"title": "AccountSession/switchRequestMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/v2/AccountSessionsSwitchParams"
}
},
"required": [
"id",
"method",
"params"
],
"title": "AccountSession/switchRequest",
"type": "object"
},
{
"properties": {
"id": {
@@ -5827,193 +5731,6 @@
"title": "AccountRateLimitsUpdatedNotification",
"type": "object"
},
"AccountSession": {
"properties": {
"displayName": {
"type": [
"string",
"null"
]
},
"email": {
"type": [
"string",
"null"
]
},
"imageUrl": {
"type": [
"string",
"null"
]
},
"isActive": {
"type": "boolean"
},
"lastUsedAt": {
"format": "int64",
"type": "integer"
},
"plan": {
"type": [
"string",
"null"
]
},
"selectedWorkspaceAccountId": {
"type": [
"string",
"null"
]
},
"sessionId": {
"type": "string"
},
"userId": {
"type": [
"string",
"null"
]
},
"workspaces": {
"items": {
"$ref": "#/definitions/v2/AccountSessionWorkspace"
},
"type": "array"
}
},
"required": [
"isActive",
"lastUsedAt",
"sessionId",
"workspaces"
],
"type": "object"
},
"AccountSessionWorkspace": {
"properties": {
"accountId": {
"type": "string"
},
"imageUrl": {
"type": [
"string",
"null"
]
},
"kind": {
"anyOf": [
{
"$ref": "#/definitions/v2/AccountSessionWorkspaceKind"
},
{
"type": "null"
}
]
},
"name": {
"type": [
"string",
"null"
]
},
"status": {
"$ref": "#/definitions/v2/AccountSessionWorkspaceStatus"
}
},
"required": [
"accountId",
"status"
],
"type": "object"
},
"AccountSessionWorkspaceKind": {
"enum": [
"personal",
"workspace"
],
"type": "string"
},
"AccountSessionWorkspaceStatus": {
"enum": [
"active",
"disabled",
"deactivated"
],
"type": "string"
},
"AccountSessionsAddParams": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"switchToAddedAccount": {
"type": "boolean"
}
},
"title": "AccountSessionsAddParams",
"type": "object"
},
"AccountSessionsListParams": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"refreshWorkspaceMetadata": {
"type": "boolean"
}
},
"title": "AccountSessionsListParams",
"type": "object"
},
"AccountSessionsLogoutParams": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"sessionId": {
"type": "string"
}
},
"required": [
"sessionId"
],
"title": "AccountSessionsLogoutParams",
"type": "object"
},
"AccountSessionsResponse": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"activeSessionId": {
"type": [
"string",
"null"
]
},
"sessions": {
"items": {
"$ref": "#/definitions/v2/AccountSession"
},
"type": "array"
}
},
"required": [
"sessions"
],
"title": "AccountSessionsResponse",
"type": "object"
},
"AccountSessionsSwitchParams": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"accountId": {
"type": "string"
},
"sessionId": {
"type": "string"
}
},
"required": [
"accountId",
"sessionId"
],
"title": "AccountSessionsSwitchParams",
"type": "object"
},
"AccountUpdatedNotification": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {