mirror of
https://github.com/aljazceru/signal-cli-rest-api.git
synced 2025-12-20 16:14:29 +01:00
@@ -209,6 +209,88 @@ var doc = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/v1/configuration/{number}/settings": {
|
||||
"get": {
|
||||
"description": "List account specific settings.",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"General"
|
||||
],
|
||||
"summary": "List account specific settings.",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Registered Phone Number",
|
||||
"name": "number",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Request",
|
||||
"name": "data",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/api.TrustModeResponse"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {},
|
||||
"400": {
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/api.Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"post": {
|
||||
"description": "Set account specific settings.",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"General"
|
||||
],
|
||||
"summary": "Set account specific settings.",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Registered Phone Number",
|
||||
"name": "number",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Request",
|
||||
"name": "data",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/api.TrustModeRequest"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"204": {},
|
||||
"400": {
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/api.Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/v1/contacts{number}": {
|
||||
"put": {
|
||||
"description": "Updates the info associated to a number on the contact list.",
|
||||
@@ -1658,6 +1740,22 @@ var doc = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"api.TrustModeRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"trust_mode": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"api.TrustModeResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"trust_mode": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"api.TypingIndicatorRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
@@ -193,6 +193,88 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/v1/configuration/{number}/settings": {
|
||||
"get": {
|
||||
"description": "List account specific settings.",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"General"
|
||||
],
|
||||
"summary": "List account specific settings.",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Registered Phone Number",
|
||||
"name": "number",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Request",
|
||||
"name": "data",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/api.TrustModeResponse"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {},
|
||||
"400": {
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/api.Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"post": {
|
||||
"description": "Set account specific settings.",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"General"
|
||||
],
|
||||
"summary": "Set account specific settings.",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Registered Phone Number",
|
||||
"name": "number",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Request",
|
||||
"name": "data",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/api.TrustModeRequest"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"204": {},
|
||||
"400": {
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/api.Error"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/v1/contacts{number}": {
|
||||
"put": {
|
||||
"description": "Updates the info associated to a number on the contact list.",
|
||||
@@ -1642,6 +1724,22 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"api.TrustModeRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"trust_mode": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"api.TrustModeResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"trust_mode": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"api.TypingIndicatorRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
@@ -141,6 +141,16 @@ definitions:
|
||||
verified_safety_number:
|
||||
type: string
|
||||
type: object
|
||||
api.TrustModeRequest:
|
||||
properties:
|
||||
trust_mode:
|
||||
type: string
|
||||
type: object
|
||||
api.TrustModeResponse:
|
||||
properties:
|
||||
trust_mode:
|
||||
type: string
|
||||
type: object
|
||||
api.TypingIndicatorRequest:
|
||||
properties:
|
||||
recipient:
|
||||
@@ -356,6 +366,61 @@ paths:
|
||||
summary: Set the REST API configuration.
|
||||
tags:
|
||||
- General
|
||||
/v1/configuration/{number}/settings:
|
||||
get:
|
||||
consumes:
|
||||
- application/json
|
||||
description: List account specific settings.
|
||||
parameters:
|
||||
- description: Registered Phone Number
|
||||
in: path
|
||||
name: number
|
||||
required: true
|
||||
type: string
|
||||
- description: Request
|
||||
in: body
|
||||
name: data
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/api.TrustModeResponse'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200": {}
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/api.Error'
|
||||
summary: List account specific settings.
|
||||
tags:
|
||||
- General
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Set account specific settings.
|
||||
parameters:
|
||||
- description: Registered Phone Number
|
||||
in: path
|
||||
name: number
|
||||
required: true
|
||||
type: string
|
||||
- description: Request
|
||||
in: body
|
||||
name: data
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/api.TrustModeRequest'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"204": {}
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/api.Error'
|
||||
summary: Set account specific settings.
|
||||
tags:
|
||||
- General
|
||||
/v1/contacts{number}:
|
||||
put:
|
||||
consumes:
|
||||
|
||||
Reference in New Issue
Block a user