feat(client): add getContactLidAndPhone method

This commit is contained in:
Anton Voylenko 2025-08-09 21:47:28 +03:00
commit bb5f460a25
3 changed files with 174 additions and 9 deletions

View file

@ -3732,10 +3732,15 @@
"schema": {
"type": "object",
"properties": {
"flag": {
"type": "boolean",
"description": "flag true/false",
"example": true
"userIds": {
"type": "array",
"items": {
"type": "string",
"description": "The unique identifier of the user"
},
"example": [
"6281288888888@c.us"
]
}
}
}
@ -3744,10 +3749,15 @@
"schema": {
"type": "object",
"properties": {
"flag": {
"type": "boolean",
"description": "flag true/false",
"example": true
"userIds": {
"type": "array",
"items": {
"type": "string",
"description": "The unique identifier of the user"
},
"example": [
"6281288888888@c.us"
]
}
}
}
@ -5469,6 +5479,116 @@
}
}
},
"/client/getContactLidAndPhone/{sessionId}": {
"post": {
"tags": [
"Client"
],
"summary": "Get contact lid and phone",
"description": "Retrieve the contact lid and phone number for a specific chat",
"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"
}
}
}
},
"404": {
"description": "Not Found.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/NotFoundResponse"
}
}
}
},
"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": {
"userIds": {
"type": "array",
"items": {
"type": "string",
"description": "The unique identifier of the user"
},
"example": [
"6281288888888@c.us"
]
}
}
}
},
"application/xml": {
"schema": {
"type": "object",
"properties": {
"userIds": {
"type": "array",
"items": {
"type": "string",
"description": "The unique identifier of the user"
},
"example": [
"6281288888888@c.us"
]
}
}
}
}
}
}
}
},
"/chat/getClassInfo/{sessionId}": {
"post": {
"tags": [