mirror of
https://github.com/aljazceru/signal-cli-rest-api.git
synced 2025-12-20 16:14:29 +01:00
return challenge tokens in send endpoint as explicit key
This commit is contained in:
@@ -1905,7 +1905,7 @@ var doc = `{
|
||||
"400": {
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/api.Error"
|
||||
"$ref": "#/definitions/api.SendMessageError"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2089,6 +2089,20 @@ var doc = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"api.SendMessageError": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"challenge_tokens": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"error": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"api.SendMessageResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
@@ -1889,7 +1889,7 @@
|
||||
"400": {
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/api.Error"
|
||||
"$ref": "#/definitions/api.SendMessageError"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2073,6 +2073,20 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"api.SendMessageError": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"challenge_tokens": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"error": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"api.SendMessageResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
@@ -116,6 +116,15 @@ definitions:
|
||||
registered:
|
||||
type: boolean
|
||||
type: object
|
||||
api.SendMessageError:
|
||||
properties:
|
||||
challenge_tokens:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
error:
|
||||
type: string
|
||||
type: object
|
||||
api.SendMessageResponse:
|
||||
properties:
|
||||
timestamp:
|
||||
@@ -1598,7 +1607,7 @@ paths:
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/api.Error'
|
||||
$ref: '#/definitions/api.SendMessageError'
|
||||
summary: Send a signal message.
|
||||
tags:
|
||||
- Messages
|
||||
|
||||
Reference in New Issue
Block a user