mirror of
https://github.com/aljazceru/signal-cli-rest-api.git
synced 2026-01-28 19:24:30 +01:00
103
src/docs/docs.go
103
src/docs/docs.go
@@ -876,6 +876,98 @@ var doc = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/v1/typing-indicator/{number}": {
|
||||
"put": {
|
||||
"description": "Show Typing Indicator.",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Messages"
|
||||
],
|
||||
"summary": "Show Typing Indicator.",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Registered Phone Number",
|
||||
"name": "number",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Type",
|
||||
"name": "data",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/api.TypingIndicatorRequest"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"201": {
|
||||
"description": "Created",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/api.Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"delete": {
|
||||
"description": "Hide Typing Indicator.",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Messages"
|
||||
],
|
||||
"summary": "Hide Typing Indicator.",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Registered Phone Number",
|
||||
"name": "number",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Type",
|
||||
"name": "data",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/api.TypingIndicatorRequest"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"201": {
|
||||
"description": "Created",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/api.Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/v2/send": {
|
||||
"post": {
|
||||
"description": "Send a signal message",
|
||||
@@ -1072,6 +1164,14 @@ var doc = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"api.TypingIndicatorRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"recipient": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"api.UpdateProfileRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -1097,6 +1197,9 @@ var doc = `{
|
||||
"build": {
|
||||
"type": "integer"
|
||||
},
|
||||
"mode": {
|
||||
"type": "string"
|
||||
},
|
||||
"versions": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
|
||||
@@ -861,6 +861,98 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/v1/typing-indicator/{number}": {
|
||||
"put": {
|
||||
"description": "Show Typing Indicator.",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Messages"
|
||||
],
|
||||
"summary": "Show Typing Indicator.",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Registered Phone Number",
|
||||
"name": "number",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Type",
|
||||
"name": "data",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/api.TypingIndicatorRequest"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"201": {
|
||||
"description": "Created",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/api.Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"delete": {
|
||||
"description": "Hide Typing Indicator.",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Messages"
|
||||
],
|
||||
"summary": "Hide Typing Indicator.",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Registered Phone Number",
|
||||
"name": "number",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Type",
|
||||
"name": "data",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/api.TypingIndicatorRequest"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"201": {
|
||||
"description": "Created",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/api.Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/v2/send": {
|
||||
"post": {
|
||||
"description": "Send a signal message",
|
||||
@@ -1057,6 +1149,14 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"api.TypingIndicatorRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"recipient": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"api.UpdateProfileRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -1082,6 +1182,9 @@
|
||||
"build": {
|
||||
"type": "integer"
|
||||
},
|
||||
"mode": {
|
||||
"type": "string"
|
||||
},
|
||||
"versions": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
|
||||
@@ -101,6 +101,11 @@ definitions:
|
||||
verified_safety_number:
|
||||
type: string
|
||||
type: object
|
||||
api.TypingIndicatorRequest:
|
||||
properties:
|
||||
recipient:
|
||||
type: string
|
||||
type: object
|
||||
api.UpdateProfileRequest:
|
||||
properties:
|
||||
base64_avatar:
|
||||
@@ -117,6 +122,8 @@ definitions:
|
||||
properties:
|
||||
build:
|
||||
type: integer
|
||||
mode:
|
||||
type: string
|
||||
versions:
|
||||
items:
|
||||
type: string
|
||||
@@ -731,6 +738,67 @@ paths:
|
||||
summary: Send a signal message.
|
||||
tags:
|
||||
- Messages
|
||||
/v1/typing-indicator/{number}:
|
||||
delete:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Hide Typing Indicator.
|
||||
parameters:
|
||||
- description: Registered Phone Number
|
||||
in: path
|
||||
name: number
|
||||
required: true
|
||||
type: string
|
||||
- description: Type
|
||||
in: body
|
||||
name: data
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/api.TypingIndicatorRequest'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"201":
|
||||
description: Created
|
||||
schema:
|
||||
type: string
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/api.Error'
|
||||
summary: Hide Typing Indicator.
|
||||
tags:
|
||||
- Messages
|
||||
put:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Show Typing Indicator.
|
||||
parameters:
|
||||
- description: Registered Phone Number
|
||||
in: path
|
||||
name: number
|
||||
required: true
|
||||
type: string
|
||||
- description: Type
|
||||
in: body
|
||||
name: data
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/api.TypingIndicatorRequest'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"201":
|
||||
description: Created
|
||||
schema:
|
||||
type: string
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/api.Error'
|
||||
summary: Show Typing Indicator.
|
||||
tags:
|
||||
- Messages
|
||||
/v2/send:
|
||||
post:
|
||||
consumes:
|
||||
|
||||
Reference in New Issue
Block a user