|
86 | 86 | } |
87 | 87 | } |
88 | 88 | }, |
| 89 | + "/3rdparty/v1/inbox/export": { |
| 90 | + "post": { |
| 91 | + "security": [ |
| 92 | + { |
| 93 | + "ApiAuth": [] |
| 94 | + } |
| 95 | + ], |
| 96 | + "description": "Initiates process of inbox messages export via webhooks. For each message the `sms:received` webhook will be triggered. The webhooks will be triggered without specific order.", |
| 97 | + "consumes": [ |
| 98 | + "application/json" |
| 99 | + ], |
| 100 | + "produces": [ |
| 101 | + "application/json" |
| 102 | + ], |
| 103 | + "tags": [ |
| 104 | + "User", |
| 105 | + "Messages" |
| 106 | + ], |
| 107 | + "summary": "Request inbox messages export", |
| 108 | + "parameters": [ |
| 109 | + { |
| 110 | + "description": "Export inbox request", |
| 111 | + "name": "request", |
| 112 | + "in": "body", |
| 113 | + "required": true, |
| 114 | + "schema": { |
| 115 | + "$ref": "#/definitions/smsgateway.MessagesExportRequest" |
| 116 | + } |
| 117 | + } |
| 118 | + ], |
| 119 | + "responses": { |
| 120 | + "202": { |
| 121 | + "description": "Inbox export request accepted", |
| 122 | + "schema": { |
| 123 | + "type": "object" |
| 124 | + } |
| 125 | + }, |
| 126 | + "400": { |
| 127 | + "description": "Invalid request", |
| 128 | + "schema": { |
| 129 | + "$ref": "#/definitions/smsgateway.ErrorResponse" |
| 130 | + } |
| 131 | + }, |
| 132 | + "401": { |
| 133 | + "description": "Unauthorized", |
| 134 | + "schema": { |
| 135 | + "$ref": "#/definitions/smsgateway.ErrorResponse" |
| 136 | + } |
| 137 | + }, |
| 138 | + "500": { |
| 139 | + "description": "Internal server error", |
| 140 | + "schema": { |
| 141 | + "$ref": "#/definitions/smsgateway.ErrorResponse" |
| 142 | + } |
| 143 | + } |
| 144 | + } |
| 145 | + } |
| 146 | + }, |
89 | 147 | "/3rdparty/v1/logs": { |
90 | 148 | "get": { |
91 | 149 | "security": [ |
|
149 | 207 | } |
150 | 208 | } |
151 | 209 | }, |
152 | | - "/3rdparty/v1/message": { |
| 210 | + "/3rdparty/v1/messages": { |
153 | 211 | "post": { |
154 | 212 | "security": [ |
155 | 213 | { |
|
225 | 283 | } |
226 | 284 | } |
227 | 285 | }, |
228 | | - "/3rdparty/v1/message/{id}": { |
| 286 | + "/3rdparty/v1/messages/{id}": { |
229 | 287 | "get": { |
230 | 288 | "security": [ |
231 | 289 | { |
|
1075 | 1133 | } |
1076 | 1134 | } |
1077 | 1135 | }, |
| 1136 | + "smsgateway.MessagesExportRequest": { |
| 1137 | + "type": "object", |
| 1138 | + "required": [ |
| 1139 | + "deviceId", |
| 1140 | + "since", |
| 1141 | + "until" |
| 1142 | + ], |
| 1143 | + "properties": { |
| 1144 | + "deviceId": { |
| 1145 | + "description": "DeviceID is the ID of the device to export messages for.", |
| 1146 | + "type": "string", |
| 1147 | + "maxLength": 21, |
| 1148 | + "example": "PyDmBQZZXYmyxMwED8Fzy" |
| 1149 | + }, |
| 1150 | + "since": { |
| 1151 | + "description": "Since is the start of the time range to export.", |
| 1152 | + "type": "string", |
| 1153 | + "example": "2024-01-01T00:00:00Z" |
| 1154 | + }, |
| 1155 | + "until": { |
| 1156 | + "description": "Until is the end of the time range to export.", |
| 1157 | + "type": "string", |
| 1158 | + "example": "2024-01-01T23:59:59Z" |
| 1159 | + } |
| 1160 | + } |
| 1161 | + }, |
1078 | 1162 | "smsgateway.MobileChangePasswordRequest": { |
1079 | 1163 | "type": "object", |
1080 | 1164 | "required": [ |
|
1198 | 1282 | "type": "string", |
1199 | 1283 | "enum": [ |
1200 | 1284 | "MessageEnqueued", |
1201 | | - "WebhooksUpdated" |
| 1285 | + "WebhooksUpdated", |
| 1286 | + "MessagesExportRequested" |
1202 | 1287 | ], |
1203 | 1288 | "x-enum-varnames": [ |
1204 | 1289 | "PushMessageEnqueued", |
1205 | | - "PushWebhooksUpdated" |
| 1290 | + "PushWebhooksUpdated", |
| 1291 | + "PushMessagesExportRequested" |
1206 | 1292 | ] |
1207 | 1293 | }, |
1208 | 1294 | "smsgateway.PushNotification": { |
|
1223 | 1309 | "default": "MessageEnqueued", |
1224 | 1310 | "enum": [ |
1225 | 1311 | "MessageEnqueued", |
1226 | | - "WebhooksUpdated" |
| 1312 | + "WebhooksUpdated", |
| 1313 | + "MessagesExportRequested" |
1227 | 1314 | ], |
1228 | 1315 | "allOf": [ |
1229 | 1316 | { |
|
0 commit comments