feat: requestPairingCode method added

This commit is contained in:
Anton Voylenko 2025-01-01 16:08:38 +02:00
commit 71c8deeb4a
3 changed files with 150 additions and 0 deletions

View file

@ -367,6 +367,106 @@
]
}
},
"/session/requestPairingCode/{sessionId}": {
"post": {
"tags": [
"Session"
],
"summary": "Request authentication via pairing code",
"description": "",
"parameters": [
{
"name": "sessionId",
"in": "path",
"required": true,
"schema": {
"type": "string"
},
"description": "Unique identifier for the session (alphanumeric and - allowed)",
"example": "f8377d8d-a589-4242-9ba6-9486a04ef80c"
}
],
"responses": {
"200": {
"description": "OK"
},
"403": {
"description": "Forbidden.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ForbiddenResponse"
}
}
}
},
"422": {
"description": "Unprocessable Entity.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "Server failure.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
},
"security": [
{
"apiKeyAuth": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"phoneNumber": {
"type": "string",
"description": "Phone number in international, symbol-free format",
"example": "12025550108"
},
"showNotification": {
"type": "boolean",
"description": "Show notification to pair on phone number",
"example": true
}
}
}
},
"application/xml": {
"schema": {
"type": "object",
"properties": {
"phoneNumber": {
"type": "string",
"description": "Phone number in international, symbol-free format",
"example": "12025550108"
},
"showNotification": {
"type": "boolean",
"description": "Show notification to pair on phone number",
"example": true
}
}
}
}
}
}
}
},
"/session/restart/{sessionId}": {
"get": {
"tags": [