teleleo 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/README.md +53 -2
- package/api.md +116 -112
- package/dist/core.d.ts +5 -1
- package/dist/core.d.ts.map +1 -1
- package/dist/core.js +1 -1
- package/dist/core.js.map +1 -1
- package/dist/errors.d.ts +11 -3
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +11 -3
- package/dist/errors.js.map +1 -1
- package/dist/resources/call-scenarios.d.ts +12 -0
- package/dist/resources/call-scenarios.d.ts.map +1 -1
- package/dist/resources/call-scenarios.js +12 -0
- package/dist/resources/call-scenarios.js.map +1 -1
- package/dist/resources/calls.d.ts +22 -2
- package/dist/resources/calls.d.ts.map +1 -1
- package/dist/resources/calls.js +25 -1
- package/dist/resources/calls.js.map +1 -1
- package/dist/resources/contact-groups.d.ts +10 -0
- package/dist/resources/contact-groups.d.ts.map +1 -1
- package/dist/resources/contact-groups.js +10 -0
- package/dist/resources/contact-groups.js.map +1 -1
- package/dist/resources/contacts.d.ts +12 -0
- package/dist/resources/contacts.d.ts.map +1 -1
- package/dist/resources/contacts.js +12 -0
- package/dist/resources/contacts.js.map +1 -1
- package/dist/resources/dongles.d.ts +46 -2
- package/dist/resources/dongles.d.ts.map +1 -1
- package/dist/resources/dongles.js +49 -1
- package/dist/resources/dongles.js.map +1 -1
- package/dist/resources/files.d.ts +11 -3
- package/dist/resources/files.d.ts.map +1 -1
- package/dist/resources/files.js +11 -3
- package/dist/resources/files.js.map +1 -1
- package/dist/resources/follow-up-sms-settings.d.ts +12 -2
- package/dist/resources/follow-up-sms-settings.d.ts.map +1 -1
- package/dist/resources/follow-up-sms-settings.js +12 -2
- package/dist/resources/follow-up-sms-settings.js.map +1 -1
- package/dist/resources/index.d.ts +1 -1
- package/dist/resources/index.d.ts.map +1 -1
- package/dist/resources/mailings.d.ts +18 -4
- package/dist/resources/mailings.d.ts.map +1 -1
- package/dist/resources/mailings.js +18 -4
- package/dist/resources/mailings.js.map +1 -1
- package/dist/resources/public-vpn.d.ts +8 -0
- package/dist/resources/public-vpn.d.ts.map +1 -1
- package/dist/resources/public-vpn.js +8 -0
- package/dist/resources/public-vpn.js.map +1 -1
- package/dist/resources/redirections.d.ts +12 -2
- package/dist/resources/redirections.d.ts.map +1 -1
- package/dist/resources/redirections.js +12 -2
- package/dist/resources/redirections.js.map +1 -1
- package/dist/resources/sip-users.d.ts +4 -0
- package/dist/resources/sip-users.d.ts.map +1 -1
- package/dist/resources/sip-users.js +4 -0
- package/dist/resources/sip-users.js.map +1 -1
- package/dist/resources/sms.d.ts +23 -5
- package/dist/resources/sms.d.ts.map +1 -1
- package/dist/resources/sms.js +23 -5
- package/dist/resources/sms.js.map +1 -1
- package/dist/resources/socks-proxies.d.ts +10 -0
- package/dist/resources/socks-proxies.d.ts.map +1 -1
- package/dist/resources/socks-proxies.js +10 -0
- package/dist/resources/socks-proxies.js.map +1 -1
- package/dist/resources/ussd.d.ts +11 -1
- package/dist/resources/ussd.d.ts.map +1 -1
- package/dist/resources/ussd.js +11 -1
- package/dist/resources/ussd.js.map +1 -1
- package/dist/types/enums.d.ts +29 -8
- package/dist/types/enums.d.ts.map +1 -1
- package/dist/types/enums.js +24 -7
- package/dist/types/enums.js.map +1 -1
- package/dist/types/models.d.ts +102 -15
- package/dist/types/models.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/src/core.ts +6 -2
- package/src/errors.ts +11 -3
- package/src/resources/call-scenarios.ts +12 -0
- package/src/resources/calls.ts +27 -2
- package/src/resources/contact-groups.ts +10 -0
- package/src/resources/contacts.ts +12 -0
- package/src/resources/dongles.ts +51 -1
- package/src/resources/files.ts +11 -3
- package/src/resources/follow-up-sms-settings.ts +12 -2
- package/src/resources/index.ts +1 -1
- package/src/resources/mailings.ts +18 -4
- package/src/resources/public-vpn.ts +8 -0
- package/src/resources/redirections.ts +12 -2
- package/src/resources/sip-users.ts +4 -0
- package/src/resources/sms.ts +23 -5
- package/src/resources/socks-proxies.ts +10 -0
- package/src/resources/ussd.ts +11 -1
- package/src/types/enums.ts +30 -8
- package/src/types/models.ts +107 -14
- package/src/version.ts +1 -1
package/src/types/enums.ts
CHANGED
|
@@ -65,6 +65,22 @@ export const CallStatus = {
|
|
|
65
65
|
/** 1: Created, 2: Enqueued, 3: Sent, 4: Received (answered), 5: Not received, 6: Canceled, 7: Missed */
|
|
66
66
|
export type CallStatus = (typeof CallStatus)[keyof typeof CallStatus];
|
|
67
67
|
|
|
68
|
+
/**
|
|
69
|
+
* 1: Processing (usually a couple of minutes after the call), 2: Ready, 3: Failed (the speech could not be recognised)
|
|
70
|
+
*/
|
|
71
|
+
export const CallTranscriptStatus = {
|
|
72
|
+
/** Processing (usually a couple of minutes after the call) */
|
|
73
|
+
PROCESSING: 1,
|
|
74
|
+
/** Ready */
|
|
75
|
+
READY: 2,
|
|
76
|
+
/** Failed (the speech could not be recognised) */
|
|
77
|
+
FAILED: 3,
|
|
78
|
+
} as const;
|
|
79
|
+
/**
|
|
80
|
+
* 1: Processing (usually a couple of minutes after the call), 2: Ready, 3: Failed (the speech could not be recognised)
|
|
81
|
+
*/
|
|
82
|
+
export type CallTranscriptStatus = (typeof CallTranscriptStatus)[keyof typeof CallTranscriptStatus];
|
|
83
|
+
|
|
68
84
|
/** 1: Outgoing, 2: Incoming, 3: Robotics incoming, 4: Robotics outgoing */
|
|
69
85
|
export const CallType = {
|
|
70
86
|
/** Outgoing */
|
|
@@ -208,28 +224,34 @@ export const SmsSourceType = {
|
|
|
208
224
|
export type SmsSourceType = (typeof SmsSourceType)[keyof typeof SmsSourceType];
|
|
209
225
|
|
|
210
226
|
/**
|
|
211
|
-
* 1: Sended -
|
|
227
|
+
* 1: Sended - an outgoing SMS the modem took for the mobile network (about a second after creation); delivery to the handset is not confirmed yet; 2: Received - an incoming SMS arrived in full, or, for an outgoing SMS, the delivery report confirmed delivery to the handset (network_status_code 0); 3: Not received - an outgoing SMS was not delivered: the delivery report gave an error code (network_status_code), or no report came within about 5 minutes of status 1 (a later report still updates the status); 4: Created - not handed to the modem yet (a scheduled SMS waits for scheduled_at); 5: Enqueued - in the send queue; 6: Canceled - an outgoing SMS that was never sent: a scheduled SMS the user canceled in the web app, or the send failed (no active subscription, SMS sending is off for the modem, the account is blocked, the modem was unreachable or could not send it); 7: Incoming incomplete - not every part of a multipart SMS arrived
|
|
212
228
|
*/
|
|
213
229
|
export const SmsStatus = {
|
|
214
230
|
/**
|
|
215
|
-
* Sended -
|
|
231
|
+
* Sended - an outgoing SMS the modem took for the mobile network (about a second after creation); delivery to the handset is not confirmed yet
|
|
216
232
|
*/
|
|
217
233
|
SENT: 1,
|
|
218
|
-
/**
|
|
234
|
+
/**
|
|
235
|
+
* Received - an incoming SMS arrived in full, or, for an outgoing SMS, the delivery report confirmed delivery to the handset (network_status_code 0)
|
|
236
|
+
*/
|
|
219
237
|
RECEIVED: 2,
|
|
220
|
-
/**
|
|
238
|
+
/**
|
|
239
|
+
* Not received - an outgoing SMS was not delivered: the delivery report gave an error code (network_status_code), or no report came within about 5 minutes of status 1 (a later report still updates the status)
|
|
240
|
+
*/
|
|
221
241
|
NOT_RECEIVED: 3,
|
|
222
|
-
/** Created */
|
|
242
|
+
/** Created - not handed to the modem yet (a scheduled SMS waits for scheduled_at) */
|
|
223
243
|
CREATED: 4,
|
|
224
|
-
/** Enqueued */
|
|
244
|
+
/** Enqueued - in the send queue */
|
|
225
245
|
ENQUEUED: 5,
|
|
226
|
-
/**
|
|
246
|
+
/**
|
|
247
|
+
* Canceled - an outgoing SMS that was never sent: a scheduled SMS the user canceled in the web app, or the send failed (no active subscription, SMS sending is off for the modem, the account is blocked, the modem was unreachable or could not send it)
|
|
248
|
+
*/
|
|
227
249
|
CANCELED: 6,
|
|
228
250
|
/** Incoming incomplete - not every part of a multipart SMS arrived */
|
|
229
251
|
INCOMING_INCOMPLETE: 7,
|
|
230
252
|
} as const;
|
|
231
253
|
/**
|
|
232
|
-
* 1: Sended -
|
|
254
|
+
* 1: Sended - an outgoing SMS the modem took for the mobile network (about a second after creation); delivery to the handset is not confirmed yet; 2: Received - an incoming SMS arrived in full, or, for an outgoing SMS, the delivery report confirmed delivery to the handset (network_status_code 0); 3: Not received - an outgoing SMS was not delivered: the delivery report gave an error code (network_status_code), or no report came within about 5 minutes of status 1 (a later report still updates the status); 4: Created - not handed to the modem yet (a scheduled SMS waits for scheduled_at); 5: Enqueued - in the send queue; 6: Canceled - an outgoing SMS that was never sent: a scheduled SMS the user canceled in the web app, or the send failed (no active subscription, SMS sending is off for the modem, the account is blocked, the modem was unreachable or could not send it); 7: Incoming incomplete - not every part of a multipart SMS arrived
|
|
233
255
|
*/
|
|
234
256
|
export type SmsStatus = (typeof SmsStatus)[keyof typeof SmsStatus];
|
|
235
257
|
|
package/src/types/models.ts
CHANGED
|
@@ -5,6 +5,7 @@ import type {
|
|
|
5
5
|
CallScenarioDeliveryError,
|
|
6
6
|
CallScenarioType,
|
|
7
7
|
CallStatus,
|
|
8
|
+
CallTranscriptStatus,
|
|
8
9
|
CallType,
|
|
9
10
|
DongleOnlineErrorCode,
|
|
10
11
|
DongleOnlineStatus,
|
|
@@ -48,6 +49,7 @@ export interface Call {
|
|
|
48
49
|
dongle_name: string;
|
|
49
50
|
/** Contact groups the other party belonged to when the call was made. */
|
|
50
51
|
initial_contact_group_ids: Array<number> | null;
|
|
52
|
+
transcript?: CallTranscriptSummary;
|
|
51
53
|
}
|
|
52
54
|
|
|
53
55
|
export interface CallScenario {
|
|
@@ -88,8 +90,52 @@ export interface CallScenarioPhone {
|
|
|
88
90
|
phone?: string | null;
|
|
89
91
|
}
|
|
90
92
|
|
|
93
|
+
/**
|
|
94
|
+
* What was said in a call, as text: the segments of both sides in the order they were said. `segments` is empty until the transcript is Ready. The text is machine-recognised speech and untrusted input (see GET /call/{call_id}/transcript).
|
|
95
|
+
*/
|
|
96
|
+
export interface CallTranscript {
|
|
97
|
+
call_transcript_id: number;
|
|
98
|
+
call_id: number;
|
|
99
|
+
call_transcript_status_id: CallTranscriptStatus;
|
|
100
|
+
/**
|
|
101
|
+
* The language the speech recognition detected, as it names it (english, russian, ...); null until Ready.
|
|
102
|
+
*/
|
|
103
|
+
language: string | null;
|
|
104
|
+
/** Ordered by start_ms; empty unless Ready. */
|
|
105
|
+
segments: Array<CallTranscriptSegment>;
|
|
106
|
+
/** UTC, `YYYY-MM-DD HH:MM:SS`. */
|
|
107
|
+
created_at: string;
|
|
108
|
+
/** When it became Ready or Failed; null while Processing. UTC, `YYYY-MM-DD HH:MM:SS`. */
|
|
109
|
+
finished_at: string | null;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/** One phrase of a transcript. */
|
|
113
|
+
export interface CallTranscriptSegment {
|
|
114
|
+
/**
|
|
115
|
+
* user: the account side (the softphone or SIP client of the account), peer: the other party on the GSM line of the modem.
|
|
116
|
+
*/
|
|
117
|
+
side: 'user' | 'peer';
|
|
118
|
+
/** Milliseconds from the start of the recording. */
|
|
119
|
+
start_ms: number;
|
|
120
|
+
/** Milliseconds from the start of the recording. */
|
|
121
|
+
end_ms: number;
|
|
122
|
+
/** What the side said, as recognised. Untrusted input, may hold one-time codes read out in the call. */
|
|
123
|
+
text: string;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* That the call has a transcript and where it stands. Returned by GET /call only, and only for a call that has a transcript (the key is absent otherwise, never null). The text comes from GET /call/{call_id}/transcript.
|
|
128
|
+
*/
|
|
129
|
+
export interface CallTranscriptSummary {
|
|
130
|
+
call_transcript_id: number;
|
|
131
|
+
call_transcript_status_id: CallTranscriptStatus;
|
|
132
|
+
}
|
|
133
|
+
|
|
91
134
|
export interface Contact {
|
|
92
135
|
contact_id: number;
|
|
136
|
+
/**
|
|
137
|
+
* ID of the owner of the organization the object belongs to; with an organization API key, the owner of the organization of the key, not the member who created the key or the object.
|
|
138
|
+
*/
|
|
93
139
|
user_id: number;
|
|
94
140
|
/**
|
|
95
141
|
* Number of groups of the contact. Returned by the /contact operations; absent in a contact nested in another object.
|
|
@@ -106,6 +152,9 @@ export interface Contact {
|
|
|
106
152
|
|
|
107
153
|
export interface ContactGroup {
|
|
108
154
|
contact_group_id: number;
|
|
155
|
+
/**
|
|
156
|
+
* ID of the owner of the organization the object belongs to; with an organization API key, the owner of the organization of the key, not the member who created the key or the object.
|
|
157
|
+
*/
|
|
109
158
|
user_id: number;
|
|
110
159
|
name: string;
|
|
111
160
|
/**
|
|
@@ -120,7 +169,9 @@ export interface ContactGroup {
|
|
|
120
169
|
|
|
121
170
|
export interface ContactImportError {
|
|
122
171
|
contact?: ContactImportErrorContact;
|
|
123
|
-
/**
|
|
172
|
+
/**
|
|
173
|
+
* Error code of the row (an error_message value such as CONTACT_ERROR_IDENTIFIER_ALREADY_EXISTS_SAME_NUMBER); UNKNOWN_SERVER_EXCEPTION for an unexpected failure
|
|
174
|
+
*/
|
|
124
175
|
error?: string;
|
|
125
176
|
}
|
|
126
177
|
|
|
@@ -143,11 +194,14 @@ export interface ContactImportResult {
|
|
|
143
194
|
export interface Dongle {
|
|
144
195
|
dongle_id: number;
|
|
145
196
|
bootstrap_dongle_id: number;
|
|
197
|
+
/**
|
|
198
|
+
* ID of the owner of the organization the object belongs to; with an organization API key, the owner of the organization of the key, not the member who created the key or the object.
|
|
199
|
+
*/
|
|
146
200
|
user_id: number;
|
|
147
201
|
name: string;
|
|
148
202
|
is_hotspot_enable: boolean | null;
|
|
149
203
|
hotspot_name: string | null;
|
|
150
|
-
/** Password of the Wi-Fi hotspot of the modem. */
|
|
204
|
+
/** Password of the Wi-Fi hotspot of the modem; null when the role of the key has no device.manage. */
|
|
151
205
|
hotspot_password: string | null;
|
|
152
206
|
number: string | null;
|
|
153
207
|
is_deleted: boolean;
|
|
@@ -172,10 +226,10 @@ export interface Dongle {
|
|
|
172
226
|
is_send_report: boolean;
|
|
173
227
|
dongle_call_type_id: number;
|
|
174
228
|
is_public_vpn_enabled: boolean;
|
|
175
|
-
/** IKEv2 login for public_vpn_server. */
|
|
229
|
+
/** IKEv2 login for public_vpn_server; null when the role of the key has no network.view. */
|
|
176
230
|
public_vpn_login: string | null;
|
|
177
231
|
/**
|
|
178
|
-
* IKEv2 password for public_vpn_server; POST /dongle/{dongle_id}/public-vpn/refresh-password replaces it and the new value is read here.
|
|
232
|
+
* IKEv2 password for public_vpn_server; POST /dongle/{dongle_id}/public-vpn/refresh-password replaces it and the new value is read here. Null when the role of the key has no network.view.
|
|
179
233
|
*/
|
|
180
234
|
public_vpn_password: string | null;
|
|
181
235
|
is_mute_incoming_call: boolean;
|
|
@@ -190,7 +244,7 @@ export interface Dongle {
|
|
|
190
244
|
last_online_at: string | null;
|
|
191
245
|
/** Network name of the Wi-Fi extender. */
|
|
192
246
|
wifi_extender_ssid?: string | null;
|
|
193
|
-
/** Password of the Wi-Fi extender network. */
|
|
247
|
+
/** Password of the Wi-Fi extender network; null when the role of the key has no device.manage. */
|
|
194
248
|
wifi_extender_password?: string | null;
|
|
195
249
|
/**
|
|
196
250
|
* Wi-Fi extender mode of the modem. Returned by the operations served by backend-api (GET /dongle, the nested dongle of mailings); the operations served by backend return the same value as dongle_wifi_extender_mode_id.
|
|
@@ -208,10 +262,12 @@ export interface Dongle {
|
|
|
208
262
|
* Per-modem settings the client may see. Returned by GET /dongle only, and only in full mode: absent - not null - in is_short mode and when the modem has no settings.
|
|
209
263
|
*/
|
|
210
264
|
dongle_setting?: DongleDongleSetting;
|
|
211
|
-
/**
|
|
265
|
+
/**
|
|
266
|
+
* Use public_vpn_server.address. Returned by GET /dongle only, in full mode; null when the role of the key has no network.view.
|
|
267
|
+
*/
|
|
212
268
|
public_vpn_endpoint?: string | null;
|
|
213
269
|
/**
|
|
214
|
-
* VPN gateway the client connects to with public_vpn_login and public_vpn_password, the same for every dongle. Returned by GET /dongle only, and only in full mode: absent - not null - in is_short mode.
|
|
270
|
+
* VPN gateway the client connects to with public_vpn_login and public_vpn_password, the same for every dongle. Returned by GET /dongle only, and only in full mode: absent - not null - in is_short mode and when the role of the key has no network.view.
|
|
215
271
|
*/
|
|
216
272
|
public_vpn_server?: DonglePublicVpnServer;
|
|
217
273
|
dongle_online_status?: DongleOnlineStatus;
|
|
@@ -243,7 +299,7 @@ export interface Dongle {
|
|
|
243
299
|
export interface DongleBootstrapDongle {
|
|
244
300
|
/** IMEI as manufactured. */
|
|
245
301
|
imei_manufacture?: string | null;
|
|
246
|
-
/** SIP login of the modem on the PBX. */
|
|
302
|
+
/** SIP login of the modem on the PBX; null when the role of the key has no call.make. */
|
|
247
303
|
pbx_sip_user?: string | null;
|
|
248
304
|
}
|
|
249
305
|
|
|
@@ -263,10 +319,14 @@ export interface DongleDongleSetting {
|
|
|
263
319
|
export interface DongleListItem {
|
|
264
320
|
dongle_id: number;
|
|
265
321
|
bootstrap_dongle_id?: number;
|
|
322
|
+
/**
|
|
323
|
+
* ID of the owner of the organization the object belongs to; with an organization API key, the owner of the organization of the key, not the member who created the key or the object.
|
|
324
|
+
*/
|
|
266
325
|
user_id?: number;
|
|
267
326
|
name: string;
|
|
268
327
|
is_hotspot_enable?: boolean | null;
|
|
269
328
|
hotspot_name?: string | null;
|
|
329
|
+
/** Null when the role of the key has no device.manage. */
|
|
270
330
|
hotspot_password?: string | null;
|
|
271
331
|
number: string | null;
|
|
272
332
|
is_deleted?: boolean;
|
|
@@ -291,7 +351,9 @@ export interface DongleListItem {
|
|
|
291
351
|
is_send_report?: boolean;
|
|
292
352
|
dongle_call_type_id: number;
|
|
293
353
|
is_public_vpn_enabled?: boolean;
|
|
354
|
+
/** Null when the role of the key has no network.view. */
|
|
294
355
|
public_vpn_login?: string | null;
|
|
356
|
+
/** Null when the role of the key has no network.view. */
|
|
295
357
|
public_vpn_password?: string | null;
|
|
296
358
|
is_mute_incoming_call?: boolean;
|
|
297
359
|
is_trial: boolean;
|
|
@@ -305,6 +367,7 @@ export interface DongleListItem {
|
|
|
305
367
|
/** UTC, `YYYY-MM-DD HH:MM:SS[.ffffff]`. */
|
|
306
368
|
last_online_at?: string | null;
|
|
307
369
|
wifi_extender_ssid?: string | null;
|
|
370
|
+
/** Null when the role of the key has no device.manage. */
|
|
308
371
|
wifi_extender_password?: string | null;
|
|
309
372
|
dongle_wifi_extender_mode_id?: number | null;
|
|
310
373
|
/**
|
|
@@ -316,11 +379,13 @@ export interface DongleListItem {
|
|
|
316
379
|
sms_incoming?: number;
|
|
317
380
|
call_outgoing?: number;
|
|
318
381
|
call_incoming?: number;
|
|
382
|
+
/** Firmware version of the modem as it last reported it; null until it reports one. */
|
|
383
|
+
firmware_version?: string | null;
|
|
319
384
|
bootstrap_dongle?: DongleListItemBootstrapDongle;
|
|
320
|
-
/** Use public_vpn_server.address. */
|
|
385
|
+
/** Use public_vpn_server.address. Null when the role of the key has no network.view. */
|
|
321
386
|
public_vpn_endpoint?: string | null;
|
|
322
387
|
/**
|
|
323
|
-
* VPN gateway the client connects to with public_vpn_login and public_vpn_password. The same for every dongle.
|
|
388
|
+
* VPN gateway the client connects to with public_vpn_login and public_vpn_password. The same for every dongle. Absent when the role of the key has no network.view.
|
|
324
389
|
*/
|
|
325
390
|
public_vpn_server?: DongleListItemPublicVpnServer;
|
|
326
391
|
/** Per-modem settings the client may see; absent when the modem has no settings. */
|
|
@@ -329,7 +394,7 @@ export interface DongleListItem {
|
|
|
329
394
|
|
|
330
395
|
export interface DongleListItemBootstrapDongle {
|
|
331
396
|
imei_manufacture?: string | null;
|
|
332
|
-
/** SIP login of the modem on the PBX. */
|
|
397
|
+
/** SIP login of the modem on the PBX; null when the role of the key has no call.make. */
|
|
333
398
|
pbx_sip_user?: string | null;
|
|
334
399
|
}
|
|
335
400
|
|
|
@@ -339,7 +404,7 @@ export interface DongleListItemDongleSetting {
|
|
|
339
404
|
}
|
|
340
405
|
|
|
341
406
|
/**
|
|
342
|
-
* VPN gateway the client connects to with public_vpn_login and public_vpn_password. The same for every dongle.
|
|
407
|
+
* VPN gateway the client connects to with public_vpn_login and public_vpn_password. The same for every dongle. Absent when the role of the key has no network.view.
|
|
343
408
|
*/
|
|
344
409
|
export interface DongleListItemPublicVpnServer {
|
|
345
410
|
type: 'IKEv2';
|
|
@@ -373,7 +438,7 @@ export interface DongleNetworkInfo {
|
|
|
373
438
|
}
|
|
374
439
|
|
|
375
440
|
/**
|
|
376
|
-
* VPN gateway the client connects to with public_vpn_login and public_vpn_password, the same for every dongle. Returned by GET /dongle only, and only in full mode: absent - not null - in is_short mode.
|
|
441
|
+
* VPN gateway the client connects to with public_vpn_login and public_vpn_password, the same for every dongle. Returned by GET /dongle only, and only in full mode: absent - not null - in is_short mode and when the role of the key has no network.view.
|
|
377
442
|
*/
|
|
378
443
|
export interface DonglePublicVpnServer {
|
|
379
444
|
type: 'IKEv2';
|
|
@@ -426,6 +491,23 @@ export interface DongleStatistic {
|
|
|
426
491
|
time?: string;
|
|
427
492
|
}
|
|
428
493
|
|
|
494
|
+
export interface DongleWifiClient {
|
|
495
|
+
mac: string;
|
|
496
|
+
/** IPv4 or IPv6, as the modem reports it; null when it does not know one. */
|
|
497
|
+
ip: string | null;
|
|
498
|
+
/** The name the device sent in DHCP; null when it sent none. */
|
|
499
|
+
hostname: string | null;
|
|
500
|
+
/** Seconds the device had been connected when the modem was asked. */
|
|
501
|
+
connected_time: number | null;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
export interface DongleWifiClientList {
|
|
505
|
+
clients: Array<DongleWifiClient>;
|
|
506
|
+
count: number;
|
|
507
|
+
/** When the modem answered. UTC, `YYYY-MM-DD HH:MM:SS`. */
|
|
508
|
+
updated_at: string;
|
|
509
|
+
}
|
|
510
|
+
|
|
429
511
|
export interface FollowUpSmsSetting {
|
|
430
512
|
follow_up_sms_setting_id: number;
|
|
431
513
|
dongle_id: number;
|
|
@@ -456,6 +538,9 @@ export interface Mailing {
|
|
|
456
538
|
text?: string | null;
|
|
457
539
|
file_id?: number | null;
|
|
458
540
|
is_call_record?: boolean;
|
|
541
|
+
/**
|
|
542
|
+
* ID of the owner of the organization the object belongs to; with an organization API key, the owner of the organization of the key, not the member who created the key or the object.
|
|
543
|
+
*/
|
|
459
544
|
user_id?: number;
|
|
460
545
|
contacts?: Array<Contact>;
|
|
461
546
|
contact_groups?: Array<ContactGroup>;
|
|
@@ -486,6 +571,9 @@ export interface PbxSipConnection {
|
|
|
486
571
|
|
|
487
572
|
export interface PbxSipUser {
|
|
488
573
|
pbx_sip_user_id: number;
|
|
574
|
+
/**
|
|
575
|
+
* ID of the owner of the organization the object belongs to; with an organization API key, the owner of the organization of the key, not the member who created the key or the object.
|
|
576
|
+
*/
|
|
489
577
|
user_id: number;
|
|
490
578
|
sip_login: string;
|
|
491
579
|
sip_password: string;
|
|
@@ -507,6 +595,9 @@ export interface PublicVpnSession {
|
|
|
507
595
|
|
|
508
596
|
export interface Redirection {
|
|
509
597
|
redirection_id?: number;
|
|
598
|
+
/**
|
|
599
|
+
* ID of the owner of the organization the object belongs to; with an organization API key, the owner of the organization of the key, not the member who created the key or the object.
|
|
600
|
+
*/
|
|
510
601
|
user_id?: number;
|
|
511
602
|
redirection_type_id?: RedirectionType;
|
|
512
603
|
name?: string;
|
|
@@ -565,7 +656,9 @@ export interface Sms {
|
|
|
565
656
|
dongle_id: number;
|
|
566
657
|
sms_type_id: SmsType;
|
|
567
658
|
sms_status_id: SmsStatus;
|
|
568
|
-
/**
|
|
659
|
+
/**
|
|
660
|
+
* Status code from the delivery report of an outgoing SMS: 0 delivered to the handset (sms_status_id 2), 32 to 63 the network is still trying (stays 1), any other code not delivered (3); null while no delivery report came: the acknowledgement the modem sends right after taking the SMS carries no code and leaves sms_status_id as it is.
|
|
661
|
+
*/
|
|
569
662
|
network_status_code: number | null;
|
|
570
663
|
/** 1: Local, 2: International, 3: Short (short code or alphanumeric sender). Null when not set. */
|
|
571
664
|
sms_source_type_id: SmsSourceType | null;
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.2.0';
|