mirror of
https://github.com/bbernhard/signal-cli-rest-api.git
synced 2026-11-01 09:49:30 +00:00
updated swagger docs
This commit is contained in:
parent
ebb7c1d4dc
commit
14998109e3
110
src/docs/docs.go
110
src/docs/docs.go
@ -119,6 +119,14 @@ const docTemplate = `{
|
||||
"$ref": "#/definitions/data.GroupPermissions"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"description",
|
||||
"expiration_time",
|
||||
"group_link",
|
||||
"members",
|
||||
"name",
|
||||
"permissions"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"api.CreateGroupResponse": {
|
||||
@ -159,6 +167,7 @@ const docTemplate = `{
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"allow_multiple_selections",
|
||||
"answers",
|
||||
"question",
|
||||
"recipient"
|
||||
@ -184,6 +193,9 @@ const docTemplate = `{
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"ignore_registered"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"api.DeviceLinkUriResponse": {
|
||||
@ -232,6 +244,7 @@ const docTemplate = `{
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"duration",
|
||||
"target_author",
|
||||
"timestamp"
|
||||
],
|
||||
@ -286,6 +299,10 @@ const docTemplate = `{
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"captcha",
|
||||
"use_voice"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"api.RemoteDeleteRequest": {
|
||||
@ -330,6 +347,7 @@ const docTemplate = `{
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"reaction",
|
||||
"recipient",
|
||||
"target_author",
|
||||
"timestamp"
|
||||
@ -368,6 +386,7 @@ const docTemplate = `{
|
||||
},
|
||||
"required": [
|
||||
"account",
|
||||
"challenge_tokens",
|
||||
"error"
|
||||
],
|
||||
"type": "object"
|
||||
@ -395,6 +414,8 @@ const docTemplate = `{
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"base64_attachment",
|
||||
"is_group",
|
||||
"message",
|
||||
"number",
|
||||
"recipients"
|
||||
@ -471,9 +492,21 @@ const docTemplate = `{
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"base64_attachments",
|
||||
"edit_timestamp",
|
||||
"link_preview",
|
||||
"mentions",
|
||||
"message",
|
||||
"notify_self",
|
||||
"number",
|
||||
"recipients"
|
||||
"quote_author",
|
||||
"quote_mentions",
|
||||
"quote_message",
|
||||
"quote_timestamp",
|
||||
"recipients",
|
||||
"sticker",
|
||||
"text_mode",
|
||||
"view_once"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
@ -533,6 +566,10 @@ const docTemplate = `{
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"trust_all_known_keys",
|
||||
"verified_safety_number"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"api.TrustModeRequest": {
|
||||
@ -594,6 +631,10 @@ const docTemplate = `{
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"delete_account",
|
||||
"delete_local_data"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"api.UpdateAccountSettingsRequest": {
|
||||
@ -605,6 +646,10 @@ const docTemplate = `{
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"discoverable_by_number",
|
||||
"share_number"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"api.UpdateContactRequest": {
|
||||
@ -620,6 +665,8 @@ const docTemplate = `{
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"expiration_in_seconds",
|
||||
"name",
|
||||
"recipient"
|
||||
],
|
||||
"type": "object"
|
||||
@ -650,6 +697,14 @@ const docTemplate = `{
|
||||
"$ref": "#/definitions/data.GroupPermissions"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"base64_avatar",
|
||||
"description",
|
||||
"expiration_time",
|
||||
"group_link",
|
||||
"name",
|
||||
"permissions"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"api.UpdateProfileRequest": {
|
||||
@ -665,6 +720,8 @@ const docTemplate = `{
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"about",
|
||||
"base64_avatar",
|
||||
"name"
|
||||
],
|
||||
"type": "object"
|
||||
@ -675,6 +732,9 @@ const docTemplate = `{
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"pin"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"api.VoteRequest": {
|
||||
@ -1112,6 +1172,12 @@ const docTemplate = `{
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"number",
|
||||
"reason",
|
||||
"username",
|
||||
"uuid"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"data.SendMessageErrors": {
|
||||
@ -1123,6 +1189,9 @@ const docTemplate = `{
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"recipients"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"data.SendMessageResponse": {
|
||||
@ -1135,6 +1204,7 @@ const docTemplate = `{
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"errors",
|
||||
"timestamp"
|
||||
],
|
||||
"type": "object"
|
||||
@ -1176,6 +1246,9 @@ const docTemplate = `{
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"isVoiceNote": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"size": {
|
||||
"type": "integer"
|
||||
},
|
||||
@ -1186,6 +1259,9 @@ const docTemplate = `{
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"isVoiceNote"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"receive.AttachmentData": {
|
||||
@ -1452,12 +1528,24 @@ const docTemplate = `{
|
||||
"expiresInSeconds": {
|
||||
"type": "integer"
|
||||
},
|
||||
"groupCallUpdate": {
|
||||
"$ref": "#/definitions/receive.GroupCallUpdate"
|
||||
},
|
||||
"groupInfo": {
|
||||
"$ref": "#/definitions/receive.GroupInfo"
|
||||
},
|
||||
"hasProfileKey": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"isEndSession": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"isExpirationUpdate": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"isProfileKeyUpdate": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"mentions": {
|
||||
"items": {
|
||||
"$ref": "#/definitions/receive.Mention"
|
||||
@ -1549,6 +1637,14 @@ const docTemplate = `{
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"receive.GroupCallUpdate": {
|
||||
"properties": {
|
||||
"eraId": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"receive.GroupInfo": {
|
||||
"properties": {
|
||||
"groupId": {
|
||||
@ -2139,12 +2235,24 @@ const docTemplate = `{
|
||||
"expiresInSeconds": {
|
||||
"type": "integer"
|
||||
},
|
||||
"groupCallUpdate": {
|
||||
"$ref": "#/definitions/receive.GroupCallUpdate"
|
||||
},
|
||||
"groupInfo": {
|
||||
"$ref": "#/definitions/receive.GroupInfo"
|
||||
},
|
||||
"hasProfileKey": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"isEndSession": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"isExpirationUpdate": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"isProfileKeyUpdate": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"mentions": {
|
||||
"items": {
|
||||
"$ref": "#/definitions/receive.Mention"
|
||||
|
||||
@ -114,6 +114,14 @@
|
||||
"$ref": "#/definitions/data.GroupPermissions"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"description",
|
||||
"expiration_time",
|
||||
"group_link",
|
||||
"members",
|
||||
"name",
|
||||
"permissions"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"api.CreateGroupResponse": {
|
||||
@ -154,6 +162,7 @@
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"allow_multiple_selections",
|
||||
"answers",
|
||||
"question",
|
||||
"recipient"
|
||||
@ -179,6 +188,9 @@
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"ignore_registered"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"api.DeviceLinkUriResponse": {
|
||||
@ -227,6 +239,7 @@
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"duration",
|
||||
"target_author",
|
||||
"timestamp"
|
||||
],
|
||||
@ -281,6 +294,10 @@
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"captcha",
|
||||
"use_voice"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"api.RemoteDeleteRequest": {
|
||||
@ -325,6 +342,7 @@
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"reaction",
|
||||
"recipient",
|
||||
"target_author",
|
||||
"timestamp"
|
||||
@ -363,6 +381,7 @@
|
||||
},
|
||||
"required": [
|
||||
"account",
|
||||
"challenge_tokens",
|
||||
"error"
|
||||
],
|
||||
"type": "object"
|
||||
@ -390,6 +409,8 @@
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"base64_attachment",
|
||||
"is_group",
|
||||
"message",
|
||||
"number",
|
||||
"recipients"
|
||||
@ -466,9 +487,21 @@
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"base64_attachments",
|
||||
"edit_timestamp",
|
||||
"link_preview",
|
||||
"mentions",
|
||||
"message",
|
||||
"notify_self",
|
||||
"number",
|
||||
"recipients"
|
||||
"quote_author",
|
||||
"quote_mentions",
|
||||
"quote_message",
|
||||
"quote_timestamp",
|
||||
"recipients",
|
||||
"sticker",
|
||||
"text_mode",
|
||||
"view_once"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
@ -528,6 +561,10 @@
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"trust_all_known_keys",
|
||||
"verified_safety_number"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"api.TrustModeRequest": {
|
||||
@ -589,6 +626,10 @@
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"delete_account",
|
||||
"delete_local_data"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"api.UpdateAccountSettingsRequest": {
|
||||
@ -600,6 +641,10 @@
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"discoverable_by_number",
|
||||
"share_number"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"api.UpdateContactRequest": {
|
||||
@ -615,6 +660,8 @@
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"expiration_in_seconds",
|
||||
"name",
|
||||
"recipient"
|
||||
],
|
||||
"type": "object"
|
||||
@ -645,6 +692,14 @@
|
||||
"$ref": "#/definitions/data.GroupPermissions"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"base64_avatar",
|
||||
"description",
|
||||
"expiration_time",
|
||||
"group_link",
|
||||
"name",
|
||||
"permissions"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"api.UpdateProfileRequest": {
|
||||
@ -660,6 +715,8 @@
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"about",
|
||||
"base64_avatar",
|
||||
"name"
|
||||
],
|
||||
"type": "object"
|
||||
@ -670,6 +727,9 @@
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"pin"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"api.VoteRequest": {
|
||||
@ -1107,6 +1167,12 @@
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"number",
|
||||
"reason",
|
||||
"username",
|
||||
"uuid"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"data.SendMessageErrors": {
|
||||
@ -1118,6 +1184,9 @@
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"recipients"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"data.SendMessageResponse": {
|
||||
@ -1130,6 +1199,7 @@
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"errors",
|
||||
"timestamp"
|
||||
],
|
||||
"type": "object"
|
||||
@ -1171,6 +1241,9 @@
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"isVoiceNote": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"size": {
|
||||
"type": "integer"
|
||||
},
|
||||
@ -1181,6 +1254,9 @@
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"isVoiceNote"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"receive.AttachmentData": {
|
||||
@ -1447,12 +1523,24 @@
|
||||
"expiresInSeconds": {
|
||||
"type": "integer"
|
||||
},
|
||||
"groupCallUpdate": {
|
||||
"$ref": "#/definitions/receive.GroupCallUpdate"
|
||||
},
|
||||
"groupInfo": {
|
||||
"$ref": "#/definitions/receive.GroupInfo"
|
||||
},
|
||||
"hasProfileKey": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"isEndSession": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"isExpirationUpdate": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"isProfileKeyUpdate": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"mentions": {
|
||||
"items": {
|
||||
"$ref": "#/definitions/receive.Mention"
|
||||
@ -1544,6 +1632,14 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"receive.GroupCallUpdate": {
|
||||
"properties": {
|
||||
"eraId": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"receive.GroupInfo": {
|
||||
"properties": {
|
||||
"groupId": {
|
||||
@ -2134,12 +2230,24 @@
|
||||
"expiresInSeconds": {
|
||||
"type": "integer"
|
||||
},
|
||||
"groupCallUpdate": {
|
||||
"$ref": "#/definitions/receive.GroupCallUpdate"
|
||||
},
|
||||
"groupInfo": {
|
||||
"$ref": "#/definitions/receive.GroupInfo"
|
||||
},
|
||||
"hasProfileKey": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"isEndSession": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"isExpirationUpdate": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"isProfileKeyUpdate": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"mentions": {
|
||||
"items": {
|
||||
"$ref": "#/definitions/receive.Mention"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user