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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { RequestOptions } from '../core.js';
|
|
2
2
|
import type { PagePromise } from '../pagination.js';
|
|
3
3
|
import { APIResource } from '../resource.js';
|
|
4
|
-
import type { Dongle, DongleListItem, DongleNetworkInfo, DongleSimIdentifiers, DongleStatistic } from '../types/models.js';
|
|
4
|
+
import type { Dongle, DongleListItem, DongleNetworkInfo, DongleSimIdentifiers, DongleStatistic, DongleWifiClientList } from '../types/models.js';
|
|
5
5
|
import type { DonglesEnableWifiExtenderParams, DonglesListParams, DonglesListStatisticsParams, DonglesSetNumberParams, DonglesSetWifiCredentialsParams, DonglesUpdateOfflineNotificationParams, DonglesUpdateParams } from '../types/params.js';
|
|
6
6
|
/** Modems of the account and their commands: reboot, Wi-Fi, Wi-Fi extender, number, network info. */
|
|
7
7
|
export declare class DonglesResource extends APIResource {
|
|
@@ -11,6 +11,8 @@ export declare class DonglesResource extends APIResource {
|
|
|
11
11
|
* Modems of the account. In full mode every field of the Dongle schema that the list serves is returned; dongle_setting and public_vpn_server are present in full mode only. The cheapest call is GET /dongle?is_short=1&limit=1: use it to check that an API key works. Newest first by default (created_at descending, then the id descending).
|
|
12
12
|
*
|
|
13
13
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION.
|
|
14
|
+
*
|
|
15
|
+
* Capability the role of an organization API key needs: `device.view`.
|
|
14
16
|
*/
|
|
15
17
|
list(params?: DonglesListParams, options?: RequestOptions): PagePromise<DongleListItem>;
|
|
16
18
|
/**
|
|
@@ -21,8 +23,24 @@ export declare class DonglesResource extends APIResource {
|
|
|
21
23
|
* @param dongleId - Identifier in the path
|
|
22
24
|
*
|
|
23
25
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION.
|
|
26
|
+
*
|
|
27
|
+
* Capability the role of an organization API key needs: `device.manage`.
|
|
24
28
|
*/
|
|
25
29
|
reboot(dongleId: number, options?: RequestOptions): Promise<boolean>;
|
|
30
|
+
/**
|
|
31
|
+
* List devices on modem Wi-Fi.
|
|
32
|
+
*
|
|
33
|
+
* Devices connected to the Wi-Fi hotspot of the modem. The modem is asked only when this is called; its answer, a failure included, is kept for 20 seconds: a call within that time gets it without asking the modem again, and updated_at tells when the modem answered. Turning Wi-Fi on or off and new Wi-Fi credentials drop the kept answer. The computer on USB is not in the list. Available from modem firmware 4.5.8; older firmware answers 409 DONGLE_WIFI_CLIENT_LIST_NOT_SUPPORTED_EXCEPTION.
|
|
34
|
+
*
|
|
35
|
+
* @param dongleId - ID of the dongle
|
|
36
|
+
*
|
|
37
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_WIFI_CLIENT_LIST_DONGLE_OFFLINE_EXCEPTION, DONGLE_WIFI_CLIENT_LIST_DONGLE_BUSY_EXCEPTION, DONGLE_WIFI_CLIENT_LIST_NOT_SUPPORTED_EXCEPTION, DONGLE_WIFI_CLIENT_LIST_DONGLE_UNAVAILABLE_EXCEPTION.
|
|
38
|
+
*
|
|
39
|
+
* Capability the role of an organization API key needs: `network.view`.
|
|
40
|
+
*
|
|
41
|
+
* Needs modem firmware 4.5.8 or later.
|
|
42
|
+
*/
|
|
43
|
+
getWifiClients(dongleId: number, options?: RequestOptions): Promise<DongleWifiClientList>;
|
|
26
44
|
/**
|
|
27
45
|
* Enable modem Wi-Fi.
|
|
28
46
|
*
|
|
@@ -31,6 +49,8 @@ export declare class DonglesResource extends APIResource {
|
|
|
31
49
|
* @param dongleId - ID of the dongle
|
|
32
50
|
*
|
|
33
51
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_WIFI_ALREADY_IN_THE_SAME_STATUS_EXCEPTION, DONGLE_API_CONNECTION_EXCEPTION, DONGLE_API_HTTP_RESPONSE_EXCEPTION.
|
|
52
|
+
*
|
|
53
|
+
* Capability the role of an organization API key needs: `device.manage`.
|
|
34
54
|
*/
|
|
35
55
|
enableWifi(dongleId: number, options?: RequestOptions): Promise<boolean>;
|
|
36
56
|
/**
|
|
@@ -41,6 +61,8 @@ export declare class DonglesResource extends APIResource {
|
|
|
41
61
|
* @param dongleId - ID of the dongle
|
|
42
62
|
*
|
|
43
63
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_WIFI_ALREADY_IN_THE_SAME_STATUS_EXCEPTION, DONGLE_API_CONNECTION_EXCEPTION, DONGLE_API_HTTP_RESPONSE_EXCEPTION.
|
|
64
|
+
*
|
|
65
|
+
* Capability the role of an organization API key needs: `device.manage`.
|
|
44
66
|
*/
|
|
45
67
|
disableWifi(dongleId: number, options?: RequestOptions): Promise<boolean>;
|
|
46
68
|
/**
|
|
@@ -51,6 +73,8 @@ export declare class DonglesResource extends APIResource {
|
|
|
51
73
|
* @param dongleId - ID of the dongle
|
|
52
74
|
*
|
|
53
75
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_WIFI_INVALID_SSID_EXCEPTION, DONGLE_WIFI_INVALID_PASSWORD_EXCEPTION, DONGLE_WIFI_API_EXCEPTION.
|
|
76
|
+
*
|
|
77
|
+
* Capability the role of an organization API key needs: `device.manage`.
|
|
54
78
|
*/
|
|
55
79
|
setWifiCredentials(dongleId: number, params: DonglesSetWifiCredentialsParams, options?: RequestOptions): Promise<boolean>;
|
|
56
80
|
/**
|
|
@@ -61,6 +85,8 @@ export declare class DonglesResource extends APIResource {
|
|
|
61
85
|
* @param dongleId - ID of the dongle
|
|
62
86
|
*
|
|
63
87
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, DONGLE_WIFI_EXTENDER_LOCKED_EXCEPTION, DONGLE_API_CONNECTION_EXCEPTION, DONGLE_API_HTTP_RESPONSE_EXCEPTION.
|
|
88
|
+
*
|
|
89
|
+
* Capability the role of an organization API key needs: `device.manage`.
|
|
64
90
|
*/
|
|
65
91
|
enableWifiExtender(dongleId: number, params: DonglesEnableWifiExtenderParams, options?: RequestOptions): Promise<boolean>;
|
|
66
92
|
/**
|
|
@@ -71,6 +97,8 @@ export declare class DonglesResource extends APIResource {
|
|
|
71
97
|
* @param dongleId - ID of the dongle
|
|
72
98
|
*
|
|
73
99
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_WIFI_EXTENDER_LOCKED_EXCEPTION, DONGLE_API_CONNECTION_EXCEPTION, DONGLE_API_HTTP_RESPONSE_EXCEPTION.
|
|
100
|
+
*
|
|
101
|
+
* Capability the role of an organization API key needs: `device.manage`.
|
|
74
102
|
*/
|
|
75
103
|
disableWifiExtender(dongleId: number, options?: RequestOptions): Promise<boolean>;
|
|
76
104
|
/**
|
|
@@ -81,6 +109,8 @@ export declare class DonglesResource extends APIResource {
|
|
|
81
109
|
* @param dongleId - ID of the dongle
|
|
82
110
|
*
|
|
83
111
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, DONGLE_API_CONNECTION_EXCEPTION, DONGLE_API_HTTP_RESPONSE_EXCEPTION.
|
|
112
|
+
*
|
|
113
|
+
* Capability the role of an organization API key needs: `device.manage`.
|
|
84
114
|
*/
|
|
85
115
|
scanWifiNetworks(dongleId: number, options?: RequestOptions): Promise<boolean>;
|
|
86
116
|
/**
|
|
@@ -91,6 +121,8 @@ export declare class DonglesResource extends APIResource {
|
|
|
91
121
|
* @param dongleId - ID of the dongle
|
|
92
122
|
*
|
|
93
123
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_SETTING_NOT_FOUND.
|
|
124
|
+
*
|
|
125
|
+
* Capability the role of an organization API key needs: `device.manage`.
|
|
94
126
|
*/
|
|
95
127
|
updateOfflineNotification(dongleId: number, params: DonglesUpdateOfflineNotificationParams, options?: RequestOptions): Promise<boolean>;
|
|
96
128
|
/**
|
|
@@ -101,6 +133,8 @@ export declare class DonglesResource extends APIResource {
|
|
|
101
133
|
* @param dongleId - ID of the dongle
|
|
102
134
|
*
|
|
103
135
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_MANUAL_PHONE_DETERMINATION_NUMBER_EXCEPTION, DONGLE_MANUAL_PHONE_DETERMINATION_ALREADY_IN_PROGRESS_EXCEPTION.
|
|
136
|
+
*
|
|
137
|
+
* Capability the role of an organization API key needs: `device.manage`.
|
|
104
138
|
*/
|
|
105
139
|
setNumber(dongleId: number, params: DonglesSetNumberParams, options?: RequestOptions): Promise<boolean>;
|
|
106
140
|
/**
|
|
@@ -111,6 +145,8 @@ export declare class DonglesResource extends APIResource {
|
|
|
111
145
|
* @param dongleId - Identifier in the path
|
|
112
146
|
*
|
|
113
147
|
* Error codes (`errorMessage`): DONGLE_ERROR_DONGLE_NOT_FOUND.
|
|
148
|
+
*
|
|
149
|
+
* Capability the role of an organization API key needs: `device.view`.
|
|
114
150
|
*/
|
|
115
151
|
get(dongleId: number, options?: RequestOptions): Promise<Dongle>;
|
|
116
152
|
/**
|
|
@@ -120,7 +156,9 @@ export declare class DonglesResource extends APIResource {
|
|
|
120
156
|
*
|
|
121
157
|
* @param dongleId - Identifier in the path
|
|
122
158
|
*
|
|
123
|
-
* Error codes (`errorMessage`): DONGLE_ERROR_DONGLE_NOT_FOUND, PUBLIC_API_FIELD_FORBIDDEN.
|
|
159
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_ERROR_DONGLE_NOT_FOUND, PUBLIC_API_FIELD_FORBIDDEN.
|
|
160
|
+
*
|
|
161
|
+
* Capability the role of an organization API key needs: `device.manage`.
|
|
124
162
|
*/
|
|
125
163
|
update(dongleId: number, params?: DonglesUpdateParams, options?: RequestOptions): Promise<Dongle>;
|
|
126
164
|
/**
|
|
@@ -131,6 +169,8 @@ export declare class DonglesResource extends APIResource {
|
|
|
131
169
|
* @param dongleId - Identifier in the path
|
|
132
170
|
*
|
|
133
171
|
* Error codes (`errorMessage`): DONGLE_ERROR_DONGLE_NOT_FOUND, DONGLE_MANAGEMENT_API_ERROR_IDENTIFIER_HTTP_RESPONSE, DONGLE_MANAGEMENT_API_ERROR_IDENTIFIER_INVALID_CONTENT.
|
|
172
|
+
*
|
|
173
|
+
* Capability the role of an organization API key needs: `device.view`.
|
|
134
174
|
*/
|
|
135
175
|
getNetworkInfo(dongleId: number, options?: RequestOptions): Promise<DongleNetworkInfo>;
|
|
136
176
|
/**
|
|
@@ -141,6 +181,8 @@ export declare class DonglesResource extends APIResource {
|
|
|
141
181
|
* @param dongleId - Identifier in the path
|
|
142
182
|
*
|
|
143
183
|
* Error codes (`errorMessage`): DONGLE_ERROR_DONGLE_NOT_FOUND, DONGLE_MANAGEMENT_API_ERROR_IDENTIFIER_HTTP_RESPONSE, DONGLE_MANAGEMENT_API_ERROR_IDENTIFIER_INVALID_CONTENT.
|
|
184
|
+
*
|
|
185
|
+
* Capability the role of an organization API key needs: `device.view`.
|
|
144
186
|
*/
|
|
145
187
|
getSimIdentifiers(dongleId: number, options?: RequestOptions): Promise<DongleSimIdentifiers>;
|
|
146
188
|
/**
|
|
@@ -151,6 +193,8 @@ export declare class DonglesResource extends APIResource {
|
|
|
151
193
|
* @param dongleId - Identifier in the path
|
|
152
194
|
*
|
|
153
195
|
* Error codes (`errorMessage`): PARSING_DATE_TIME_EXCEPTION, DONGLE_ERROR_DONGLE_NOT_FOUND.
|
|
196
|
+
*
|
|
197
|
+
* Capability the role of an organization API key needs: `device.view`.
|
|
154
198
|
*/
|
|
155
199
|
listStatistics(dongleId: number, params?: DonglesListStatisticsParams, options?: RequestOptions): Promise<Array<DongleStatistic>>;
|
|
156
200
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dongles.d.ts","sourceRoot":"","sources":["../../src/resources/dongles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EACV,MAAM,EACN,cAAc,EACd,iBAAiB,EACjB,oBAAoB,EACpB,eAAe,
|
|
1
|
+
{"version":3,"file":"dongles.d.ts","sourceRoot":"","sources":["../../src/resources/dongles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EACV,MAAM,EACN,cAAc,EACd,iBAAiB,EACjB,oBAAoB,EACpB,eAAe,EACf,oBAAoB,EACrB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EACV,+BAA+B,EAC/B,iBAAiB,EACjB,2BAA2B,EAC3B,sBAAsB,EACtB,+BAA+B,EAC/B,sCAAsC,EACtC,mBAAmB,EACpB,MAAM,oBAAoB,CAAC;AAE5B,qGAAqG;AACrG,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;OAQG;IACH,IAAI,CAAC,MAAM,GAAE,iBAAsB,EAAE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C;IASnB;;;;;;;;;;OAUG;IACH,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IAMvG;;;;;;;;;;OAUG;IACH,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC;IAMhE;;;;;;;;;;OAUG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,GAAE,mBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC;IAcrG;;;;;;;;;;OAUG;IACH,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAMtF;;;;;;;;;;OAUG;IACH,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAM5F;;;;;;;;;;OAUG;IACH,cAAc,CACZ,QAAQ,EAAE,MAAM,EAChB,MAAM,GAAE,2BAAgC,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;CAQnC"}
|
|
@@ -9,6 +9,8 @@ export class DonglesResource extends APIResource {
|
|
|
9
9
|
* Modems of the account. In full mode every field of the Dongle schema that the list serves is returned; dongle_setting and public_vpn_server are present in full mode only. The cheapest call is GET /dongle?is_short=1&limit=1: use it to check that an API key works. Newest first by default (created_at descending, then the id descending).
|
|
10
10
|
*
|
|
11
11
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION.
|
|
12
|
+
*
|
|
13
|
+
* Capability the role of an organization API key needs: `device.view`.
|
|
12
14
|
*/
|
|
13
15
|
list(params = {}, options) {
|
|
14
16
|
return this._client.getPage('/dongle', {
|
|
@@ -38,10 +40,30 @@ export class DonglesResource extends APIResource {
|
|
|
38
40
|
* @param dongleId - Identifier in the path
|
|
39
41
|
*
|
|
40
42
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION.
|
|
43
|
+
*
|
|
44
|
+
* Capability the role of an organization API key needs: `device.manage`.
|
|
41
45
|
*/
|
|
42
46
|
reboot(dongleId, options) {
|
|
43
47
|
return this._client.request('POST', `/dongle/${pathParam(dongleId)}/reboot`, { options }).then(asStatus);
|
|
44
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* List devices on modem Wi-Fi.
|
|
51
|
+
*
|
|
52
|
+
* Devices connected to the Wi-Fi hotspot of the modem. The modem is asked only when this is called; its answer, a failure included, is kept for 20 seconds: a call within that time gets it without asking the modem again, and updated_at tells when the modem answered. Turning Wi-Fi on or off and new Wi-Fi credentials drop the kept answer. The computer on USB is not in the list. Available from modem firmware 4.5.8; older firmware answers 409 DONGLE_WIFI_CLIENT_LIST_NOT_SUPPORTED_EXCEPTION.
|
|
53
|
+
*
|
|
54
|
+
* @param dongleId - ID of the dongle
|
|
55
|
+
*
|
|
56
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_WIFI_CLIENT_LIST_DONGLE_OFFLINE_EXCEPTION, DONGLE_WIFI_CLIENT_LIST_DONGLE_BUSY_EXCEPTION, DONGLE_WIFI_CLIENT_LIST_NOT_SUPPORTED_EXCEPTION, DONGLE_WIFI_CLIENT_LIST_DONGLE_UNAVAILABLE_EXCEPTION.
|
|
57
|
+
*
|
|
58
|
+
* Capability the role of an organization API key needs: `network.view`.
|
|
59
|
+
*
|
|
60
|
+
* Needs modem firmware 4.5.8 or later.
|
|
61
|
+
*/
|
|
62
|
+
getWifiClients(dongleId, options) {
|
|
63
|
+
return this._client
|
|
64
|
+
.request('GET', `/dongle/${pathParam(dongleId)}/wifi/clients`, { options })
|
|
65
|
+
.then((data) => data);
|
|
66
|
+
}
|
|
45
67
|
/**
|
|
46
68
|
* Enable modem Wi-Fi.
|
|
47
69
|
*
|
|
@@ -50,6 +72,8 @@ export class DonglesResource extends APIResource {
|
|
|
50
72
|
* @param dongleId - ID of the dongle
|
|
51
73
|
*
|
|
52
74
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_WIFI_ALREADY_IN_THE_SAME_STATUS_EXCEPTION, DONGLE_API_CONNECTION_EXCEPTION, DONGLE_API_HTTP_RESPONSE_EXCEPTION.
|
|
75
|
+
*
|
|
76
|
+
* Capability the role of an organization API key needs: `device.manage`.
|
|
53
77
|
*/
|
|
54
78
|
enableWifi(dongleId, options) {
|
|
55
79
|
return this._client
|
|
@@ -64,6 +88,8 @@ export class DonglesResource extends APIResource {
|
|
|
64
88
|
* @param dongleId - ID of the dongle
|
|
65
89
|
*
|
|
66
90
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_WIFI_ALREADY_IN_THE_SAME_STATUS_EXCEPTION, DONGLE_API_CONNECTION_EXCEPTION, DONGLE_API_HTTP_RESPONSE_EXCEPTION.
|
|
91
|
+
*
|
|
92
|
+
* Capability the role of an organization API key needs: `device.manage`.
|
|
67
93
|
*/
|
|
68
94
|
disableWifi(dongleId, options) {
|
|
69
95
|
return this._client
|
|
@@ -78,6 +104,8 @@ export class DonglesResource extends APIResource {
|
|
|
78
104
|
* @param dongleId - ID of the dongle
|
|
79
105
|
*
|
|
80
106
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_WIFI_INVALID_SSID_EXCEPTION, DONGLE_WIFI_INVALID_PASSWORD_EXCEPTION, DONGLE_WIFI_API_EXCEPTION.
|
|
107
|
+
*
|
|
108
|
+
* Capability the role of an organization API key needs: `device.manage`.
|
|
81
109
|
*/
|
|
82
110
|
setWifiCredentials(dongleId, params, options) {
|
|
83
111
|
return this._client
|
|
@@ -95,6 +123,8 @@ export class DonglesResource extends APIResource {
|
|
|
95
123
|
* @param dongleId - ID of the dongle
|
|
96
124
|
*
|
|
97
125
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, DONGLE_WIFI_EXTENDER_LOCKED_EXCEPTION, DONGLE_API_CONNECTION_EXCEPTION, DONGLE_API_HTTP_RESPONSE_EXCEPTION.
|
|
126
|
+
*
|
|
127
|
+
* Capability the role of an organization API key needs: `device.manage`.
|
|
98
128
|
*/
|
|
99
129
|
enableWifiExtender(dongleId, params, options) {
|
|
100
130
|
return this._client
|
|
@@ -112,6 +142,8 @@ export class DonglesResource extends APIResource {
|
|
|
112
142
|
* @param dongleId - ID of the dongle
|
|
113
143
|
*
|
|
114
144
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_WIFI_EXTENDER_LOCKED_EXCEPTION, DONGLE_API_CONNECTION_EXCEPTION, DONGLE_API_HTTP_RESPONSE_EXCEPTION.
|
|
145
|
+
*
|
|
146
|
+
* Capability the role of an organization API key needs: `device.manage`.
|
|
115
147
|
*/
|
|
116
148
|
disableWifiExtender(dongleId, options) {
|
|
117
149
|
return this._client
|
|
@@ -126,6 +158,8 @@ export class DonglesResource extends APIResource {
|
|
|
126
158
|
* @param dongleId - ID of the dongle
|
|
127
159
|
*
|
|
128
160
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, DONGLE_API_CONNECTION_EXCEPTION, DONGLE_API_HTTP_RESPONSE_EXCEPTION.
|
|
161
|
+
*
|
|
162
|
+
* Capability the role of an organization API key needs: `device.manage`.
|
|
129
163
|
*/
|
|
130
164
|
scanWifiNetworks(dongleId, options) {
|
|
131
165
|
return this._client
|
|
@@ -140,6 +174,8 @@ export class DonglesResource extends APIResource {
|
|
|
140
174
|
* @param dongleId - ID of the dongle
|
|
141
175
|
*
|
|
142
176
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_SETTING_NOT_FOUND.
|
|
177
|
+
*
|
|
178
|
+
* Capability the role of an organization API key needs: `device.manage`.
|
|
143
179
|
*/
|
|
144
180
|
updateOfflineNotification(dongleId, params, options) {
|
|
145
181
|
return this._client
|
|
@@ -157,6 +193,8 @@ export class DonglesResource extends APIResource {
|
|
|
157
193
|
* @param dongleId - ID of the dongle
|
|
158
194
|
*
|
|
159
195
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_MANUAL_PHONE_DETERMINATION_NUMBER_EXCEPTION, DONGLE_MANUAL_PHONE_DETERMINATION_ALREADY_IN_PROGRESS_EXCEPTION.
|
|
196
|
+
*
|
|
197
|
+
* Capability the role of an organization API key needs: `device.manage`.
|
|
160
198
|
*/
|
|
161
199
|
setNumber(dongleId, params, options) {
|
|
162
200
|
return this._client
|
|
@@ -171,6 +209,8 @@ export class DonglesResource extends APIResource {
|
|
|
171
209
|
* @param dongleId - Identifier in the path
|
|
172
210
|
*
|
|
173
211
|
* Error codes (`errorMessage`): DONGLE_ERROR_DONGLE_NOT_FOUND.
|
|
212
|
+
*
|
|
213
|
+
* Capability the role of an organization API key needs: `device.view`.
|
|
174
214
|
*/
|
|
175
215
|
get(dongleId, options) {
|
|
176
216
|
return this._client
|
|
@@ -184,7 +224,9 @@ export class DonglesResource extends APIResource {
|
|
|
184
224
|
*
|
|
185
225
|
* @param dongleId - Identifier in the path
|
|
186
226
|
*
|
|
187
|
-
* Error codes (`errorMessage`): DONGLE_ERROR_DONGLE_NOT_FOUND, PUBLIC_API_FIELD_FORBIDDEN.
|
|
227
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_ERROR_DONGLE_NOT_FOUND, PUBLIC_API_FIELD_FORBIDDEN.
|
|
228
|
+
*
|
|
229
|
+
* Capability the role of an organization API key needs: `device.manage`.
|
|
188
230
|
*/
|
|
189
231
|
update(dongleId, params = {}, options) {
|
|
190
232
|
return this._client
|
|
@@ -207,6 +249,8 @@ export class DonglesResource extends APIResource {
|
|
|
207
249
|
* @param dongleId - Identifier in the path
|
|
208
250
|
*
|
|
209
251
|
* Error codes (`errorMessage`): DONGLE_ERROR_DONGLE_NOT_FOUND, DONGLE_MANAGEMENT_API_ERROR_IDENTIFIER_HTTP_RESPONSE, DONGLE_MANAGEMENT_API_ERROR_IDENTIFIER_INVALID_CONTENT.
|
|
252
|
+
*
|
|
253
|
+
* Capability the role of an organization API key needs: `device.view`.
|
|
210
254
|
*/
|
|
211
255
|
getNetworkInfo(dongleId, options) {
|
|
212
256
|
return this._client
|
|
@@ -221,6 +265,8 @@ export class DonglesResource extends APIResource {
|
|
|
221
265
|
* @param dongleId - Identifier in the path
|
|
222
266
|
*
|
|
223
267
|
* Error codes (`errorMessage`): DONGLE_ERROR_DONGLE_NOT_FOUND, DONGLE_MANAGEMENT_API_ERROR_IDENTIFIER_HTTP_RESPONSE, DONGLE_MANAGEMENT_API_ERROR_IDENTIFIER_INVALID_CONTENT.
|
|
268
|
+
*
|
|
269
|
+
* Capability the role of an organization API key needs: `device.view`.
|
|
224
270
|
*/
|
|
225
271
|
getSimIdentifiers(dongleId, options) {
|
|
226
272
|
return this._client
|
|
@@ -235,6 +281,8 @@ export class DonglesResource extends APIResource {
|
|
|
235
281
|
* @param dongleId - Identifier in the path
|
|
236
282
|
*
|
|
237
283
|
* Error codes (`errorMessage`): PARSING_DATE_TIME_EXCEPTION, DONGLE_ERROR_DONGLE_NOT_FOUND.
|
|
284
|
+
*
|
|
285
|
+
* Capability the role of an organization API key needs: `device.view`.
|
|
238
286
|
*/
|
|
239
287
|
listStatistics(dongleId, params = {}, options) {
|
|
240
288
|
return this._client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dongles.js","sourceRoot":"","sources":["../../src/resources/dongles.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAItF,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"dongles.js","sourceRoot":"","sources":["../../src/resources/dongles.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAItF,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAkB7C,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACrE,qGAAqG;AACrG,MAAM,OAAO,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;OAQG;IACH,IAAI,CAAC,SAA4B,EAAE,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAAiB,SAAS,EAAE;YACrD,KAAK,EAAE;gBACL,IAAI,EAAE,MAAM,CAAC,IAAI;gBACjB,KAAK,EAAE,MAAM,CAAC,KAAK;gBACnB,cAAc,EAAE,MAAM,CAAC,UAAU;gBACjC,QAAQ,EAAE,MAAM,CAAC,QAAQ;gBACzB,KAAK,EAAE,MAAM,CAAC,KAAK;gBACnB,SAAS,EAAE,MAAM,CAAC,SAAS;gBAC3B,QAAQ,EAAE,MAAM,CAAC,QAAQ;gBACzB,wBAAwB,EAAE,MAAM,CAAC,wBAAwB;gBACzD,yBAAyB,EAAE,MAAM,CAAC,yBAAyB;gBAC3D,wBAAwB,EAAE,MAAM,CAAC,oBAAoB;gBACrD,IAAI,EAAE,MAAM,CAAC,IAAI;gBACjB,MAAM,EAAE,MAAM,CAAC,MAAM;aACtB;YACD,OAAO,EAAE,SAAS;YAClB,OAAO;SACR,CAAC,CAAC;IACL,CAAC;IAED;;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Q,CAAC,sBAAsB,EAAE,EAAE,OAAO,EAAE,CAAC;aAClF,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAsB,CAAC,CAAC;IACzD,CAAC;IAED;;;;;;;;;;OAUG;IACH,iBAAiB,CAAC,QAAgB,EAAE,OAAwB;QAC1D,OAAO,IAAI,CAAC,OAAO;aAChB,OAAO,CAAC,MAAM,EAAE,WAAW,SAAS,CAAC,QAAQ,CAAC,qBAAqB,EAAE,EAAE,OAAO,EAAE,CAAC;aACjF,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAyB,CAAC,CAAC;IAC5D,CAAC;IAED;;;;;;;;;;OAUG;IACH,cAAc,CACZ,QAAgB,EAChB,SAAsC,EAAE,EACxC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO;aAChB,OAAO,CAAC,KAAK,EAAE,WAAW,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE;YAC1D,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE;YAC3C,OAAO;SACR,CAAC;aACD,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAA2B,CAAC,CAAC;IAC7D,CAAC;CACF"}
|
|
@@ -7,11 +7,13 @@ export declare class FilesResource extends APIResource {
|
|
|
7
7
|
/**
|
|
8
8
|
* Get file.
|
|
9
9
|
*
|
|
10
|
-
* Downloads a file of the account: a call recording, the audio of a call scenario or a mailing
|
|
10
|
+
* Downloads a file of the account: a call recording, or the audio of a call scenario or a mailing. The file_id comes from those objects (file_id, call_scenario_file_id).
|
|
11
11
|
*
|
|
12
12
|
* @param fileId -
|
|
13
13
|
*
|
|
14
14
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, FILE_NOT_FOUND_EXCEPTION.
|
|
15
|
+
*
|
|
16
|
+
* Capability the role of an organization API key needs: `device.view`.
|
|
15
17
|
*/
|
|
16
18
|
download(fileId: number, options?: RequestOptions): Promise<Uint8Array>;
|
|
17
19
|
/**
|
|
@@ -22,6 +24,8 @@ export declare class FilesResource extends APIResource {
|
|
|
22
24
|
* @param fileId - tmp_file_id as returned by POST /file/upload-tmp or POST /file/generate-speech: `<2 hex>/<32 hex>/<file name>`. Put it into the path as is: the slashes are path separators and must not be percent-encoded (most SDK generators encode `/` in a path parameter by default; turn it off for this one). Percent-encode only characters of the file name that are not allowed in a path segment.
|
|
23
25
|
*
|
|
24
26
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, TMP_FILE_NOT_FOUND.
|
|
27
|
+
*
|
|
28
|
+
* Capability the role of an organization API key needs: `automation.manage`.
|
|
25
29
|
*/
|
|
26
30
|
downloadTmp(fileId: string, options?: RequestOptions): Promise<Uint8Array>;
|
|
27
31
|
/**
|
|
@@ -29,15 +33,19 @@ export declare class FilesResource extends APIResource {
|
|
|
29
33
|
*
|
|
30
34
|
* Uploads an audio file as a temporary file, converted to the modem format; pass the returned tmp_file_id to a call scenario or a call mailing.
|
|
31
35
|
*
|
|
32
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, FILE_ERROR_IDENTIFIER_EMPTY_FIELDS, FILE_ERROR_FILE_NOT_VALID_BASE_64, FILE_ERROR_FILE_WRONG_TYPE, FILE_ERROR_FILE_NOT_VALID_SIZE, FILE_ERROR_CONVERT_TO_DONGLE_AUDIO, FILE_ERROR_DONGLE_AUDIO_TOO_LARGE.
|
|
36
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, FILE_ERROR_IDENTIFIER_EMPTY_FIELDS, FILE_ERROR_FILE_NOT_VALID_BASE_64, FILE_ERROR_FILE_WRONG_TYPE, FILE_ERROR_FILE_NOT_VALID_SIZE, FILE_ERROR_CONVERT_TO_DONGLE_AUDIO, FILE_ERROR_DONGLE_AUDIO_TOO_LARGE, FILE_ERROR_IDENTIFIER_UNKNOWN_SCENARIO.
|
|
37
|
+
*
|
|
38
|
+
* Capability the role of an organization API key needs: `automation.manage`.
|
|
33
39
|
*/
|
|
34
40
|
uploadTmp(params: FilesUploadTmpParams, options?: RequestOptions): Promise<TmpFile>;
|
|
35
41
|
/**
|
|
36
42
|
* Generate speech.
|
|
37
43
|
*
|
|
38
|
-
* Synthesises the text into a temporary audio file for a call scenario or a call mailing; pass the returned tmp_file_id as the audio of those. Limited to 5 calls per day per
|
|
44
|
+
* Synthesises the text into a temporary audio file for a call scenario or a call mailing; pass the returned tmp_file_id as the audio of those. Limited to 5 calls per day per account, per organization for an organization API key: the 6th answers 429 RATE_LIMIT_EXCEEDED.
|
|
39
45
|
*
|
|
40
46
|
* Error codes (`errorMessage`): RATE_LIMIT_EXCEEDED, FILE_GENERATE_SPEECH_IDENTIFIER_EMPTY_FIELDS, FILE_GENERATE_SPEECH_IDENTIFIER_NOT_ALLOWED_VOICE, FILE_GENERATE_SPEECH_IDENTIFIER_NOT_ALLOWED_LANGUAGE, FILE_GENERATE_SPEECH_IDENTIFIER_LONG_TEXT.
|
|
47
|
+
*
|
|
48
|
+
* Capability the role of an organization API key needs: `automation.manage`.
|
|
41
49
|
*/
|
|
42
50
|
generateSpeech(params: FilesGenerateSpeechParams, options?: RequestOptions): Promise<TmpFile>;
|
|
43
51
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/resources/files.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1F,6DAA6D;AAC7D,qBAAa,aAAc,SAAQ,WAAW;IAC5C
|
|
1
|
+
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/resources/files.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1F,6DAA6D;AAC7D,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC;IAIvE;;;;;;;;;;OAUG;IACH,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC;IAI1E;;;;;;;;OAQG;IACH,SAAS,CAAC,MAAM,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IAanF;;;;;;;;OAQG;IACH,cAAc,CAAC,MAAM,EAAE,yBAAyB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;CAQ9F"}
|
package/dist/resources/files.js
CHANGED
|
@@ -6,11 +6,13 @@ export class FilesResource extends APIResource {
|
|
|
6
6
|
/**
|
|
7
7
|
* Get file.
|
|
8
8
|
*
|
|
9
|
-
* Downloads a file of the account: a call recording, the audio of a call scenario or a mailing
|
|
9
|
+
* Downloads a file of the account: a call recording, or the audio of a call scenario or a mailing. The file_id comes from those objects (file_id, call_scenario_file_id).
|
|
10
10
|
*
|
|
11
11
|
* @param fileId -
|
|
12
12
|
*
|
|
13
13
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, FILE_NOT_FOUND_EXCEPTION.
|
|
14
|
+
*
|
|
15
|
+
* Capability the role of an organization API key needs: `device.view`.
|
|
14
16
|
*/
|
|
15
17
|
download(fileId, options) {
|
|
16
18
|
return this._client.requestBytes('GET', `/file/${pathParam(fileId)}`, { options });
|
|
@@ -23,6 +25,8 @@ export class FilesResource extends APIResource {
|
|
|
23
25
|
* @param fileId - tmp_file_id as returned by POST /file/upload-tmp or POST /file/generate-speech: `<2 hex>/<32 hex>/<file name>`. Put it into the path as is: the slashes are path separators and must not be percent-encoded (most SDK generators encode `/` in a path parameter by default; turn it off for this one). Percent-encode only characters of the file name that are not allowed in a path segment.
|
|
24
26
|
*
|
|
25
27
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, TMP_FILE_NOT_FOUND.
|
|
28
|
+
*
|
|
29
|
+
* Capability the role of an organization API key needs: `automation.manage`.
|
|
26
30
|
*/
|
|
27
31
|
downloadTmp(fileId, options) {
|
|
28
32
|
return this._client.requestBytes('GET', `/file/tmp/${pathParam(fileId, true)}`, { options });
|
|
@@ -32,7 +36,9 @@ export class FilesResource extends APIResource {
|
|
|
32
36
|
*
|
|
33
37
|
* Uploads an audio file as a temporary file, converted to the modem format; pass the returned tmp_file_id to a call scenario or a call mailing.
|
|
34
38
|
*
|
|
35
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, FILE_ERROR_IDENTIFIER_EMPTY_FIELDS, FILE_ERROR_FILE_NOT_VALID_BASE_64, FILE_ERROR_FILE_WRONG_TYPE, FILE_ERROR_FILE_NOT_VALID_SIZE, FILE_ERROR_CONVERT_TO_DONGLE_AUDIO, FILE_ERROR_DONGLE_AUDIO_TOO_LARGE.
|
|
39
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, FILE_ERROR_IDENTIFIER_EMPTY_FIELDS, FILE_ERROR_FILE_NOT_VALID_BASE_64, FILE_ERROR_FILE_WRONG_TYPE, FILE_ERROR_FILE_NOT_VALID_SIZE, FILE_ERROR_CONVERT_TO_DONGLE_AUDIO, FILE_ERROR_DONGLE_AUDIO_TOO_LARGE, FILE_ERROR_IDENTIFIER_UNKNOWN_SCENARIO.
|
|
40
|
+
*
|
|
41
|
+
* Capability the role of an organization API key needs: `automation.manage`.
|
|
36
42
|
*/
|
|
37
43
|
uploadTmp(params, options) {
|
|
38
44
|
return this._client
|
|
@@ -49,9 +55,11 @@ export class FilesResource extends APIResource {
|
|
|
49
55
|
/**
|
|
50
56
|
* Generate speech.
|
|
51
57
|
*
|
|
52
|
-
* Synthesises the text into a temporary audio file for a call scenario or a call mailing; pass the returned tmp_file_id as the audio of those. Limited to 5 calls per day per
|
|
58
|
+
* Synthesises the text into a temporary audio file for a call scenario or a call mailing; pass the returned tmp_file_id as the audio of those. Limited to 5 calls per day per account, per organization for an organization API key: the 6th answers 429 RATE_LIMIT_EXCEEDED.
|
|
53
59
|
*
|
|
54
60
|
* Error codes (`errorMessage`): RATE_LIMIT_EXCEEDED, FILE_GENERATE_SPEECH_IDENTIFIER_EMPTY_FIELDS, FILE_GENERATE_SPEECH_IDENTIFIER_NOT_ALLOWED_VOICE, FILE_GENERATE_SPEECH_IDENTIFIER_NOT_ALLOWED_LANGUAGE, FILE_GENERATE_SPEECH_IDENTIFIER_LONG_TEXT.
|
|
61
|
+
*
|
|
62
|
+
* Capability the role of an organization API key needs: `automation.manage`.
|
|
55
63
|
*/
|
|
56
64
|
generateSpeech(params, options) {
|
|
57
65
|
return this._client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.js","sourceRoot":"","sources":["../../src/resources/files.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAGtF,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,6DAA6D;AAC7D,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C
|
|
1
|
+
{"version":3,"file":"files.js","sourceRoot":"","sources":["../../src/resources/files.ts"],"names":[],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CAAC,QAAQ,EAAE;YAC3E,OAAO;SACR,CAAC;aACD,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAe,CAAC,CAAC;IACrC,CAAC;CACF"}
|
|
@@ -11,6 +11,8 @@ export declare class FollowUpSmsSettingsResource extends APIResource {
|
|
|
11
11
|
* Follow-up SMS settings of the account: the SMS a modem sends to a caller after a call. Newest first by default (the id descending).
|
|
12
12
|
*
|
|
13
13
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION.
|
|
14
|
+
*
|
|
15
|
+
* Capability the role of an organization API key needs: `automation.view`.
|
|
14
16
|
*/
|
|
15
17
|
list(params?: FollowUpSmsSettingsListParams, options?: RequestOptions): PagePromise<FollowUpSmsSetting>;
|
|
16
18
|
/**
|
|
@@ -18,7 +20,9 @@ export declare class FollowUpSmsSettingsResource extends APIResource {
|
|
|
18
20
|
*
|
|
19
21
|
* Creates a follow-up SMS setting for a modem.
|
|
20
22
|
*
|
|
21
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, INVALID_DONGLE_TYPE, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, INVALID_RINGING_DURATION_TIMEOUT, INVALID_CALL_DURATION_TIMEOUT, INVALID_DAILY_SMS_LIMIT, DUPLICATE_DONGLE_FOLLOW_UP_SMS_SETTING.
|
|
23
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, INVALID_DONGLE_TYPE, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, INVALID_RINGING_DURATION_TIMEOUT, INVALID_CALL_DURATION_TIMEOUT, INVALID_DAILY_SMS_LIMIT, DUPLICATE_DONGLE_FOLLOW_UP_SMS_SETTING, SMS_ERROR_IDENTIFIER_EMPTY_MESSAGE.
|
|
24
|
+
*
|
|
25
|
+
* Capability the role of an organization API key needs: `automation.manage`.
|
|
22
26
|
*/
|
|
23
27
|
create(params: FollowUpSmsSettingsCreateParams, options?: RequestOptions): Promise<FollowUpSmsSetting>;
|
|
24
28
|
/**
|
|
@@ -29,6 +33,8 @@ export declare class FollowUpSmsSettingsResource extends APIResource {
|
|
|
29
33
|
* @param followUpSmsSettingId - Follow Up Sms Setting ID
|
|
30
34
|
*
|
|
31
35
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, FOLLOW_UP_SMS_SETTING_NOT_FOUND_EXCEPTION.
|
|
36
|
+
*
|
|
37
|
+
* Capability the role of an organization API key needs: `automation.view`.
|
|
32
38
|
*/
|
|
33
39
|
get(followUpSmsSettingId: number, options?: RequestOptions): Promise<FollowUpSmsSetting>;
|
|
34
40
|
/**
|
|
@@ -38,7 +44,9 @@ export declare class FollowUpSmsSettingsResource extends APIResource {
|
|
|
38
44
|
*
|
|
39
45
|
* @param followUpSmsSettingId - Follow-up SMS setting ID
|
|
40
46
|
*
|
|
41
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, FOLLOW_UP_SMS_SETTING_NOT_FOUND_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, INVALID_DONGLE_TYPE, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, INVALID_RINGING_DURATION_TIMEOUT, INVALID_CALL_DURATION_TIMEOUT, INVALID_DAILY_SMS_LIMIT, DUPLICATE_DONGLE_FOLLOW_UP_SMS_SETTING.
|
|
47
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, FOLLOW_UP_SMS_SETTING_NOT_FOUND_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, INVALID_DONGLE_TYPE, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, INVALID_RINGING_DURATION_TIMEOUT, INVALID_CALL_DURATION_TIMEOUT, INVALID_DAILY_SMS_LIMIT, DUPLICATE_DONGLE_FOLLOW_UP_SMS_SETTING, SMS_ERROR_IDENTIFIER_EMPTY_MESSAGE.
|
|
48
|
+
*
|
|
49
|
+
* Capability the role of an organization API key needs: `automation.manage`.
|
|
42
50
|
*/
|
|
43
51
|
update(followUpSmsSettingId: number, params: FollowUpSmsSettingsUpdateParams, options?: RequestOptions): Promise<FollowUpSmsSetting>;
|
|
44
52
|
/**
|
|
@@ -49,6 +57,8 @@ export declare class FollowUpSmsSettingsResource extends APIResource {
|
|
|
49
57
|
* @param followUpSmsSettingId - Follow-up SMS setting ID
|
|
50
58
|
*
|
|
51
59
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, FOLLOW_UP_SMS_SETTING_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
60
|
+
*
|
|
61
|
+
* Capability the role of an organization API key needs: `automation.manage`.
|
|
52
62
|
*/
|
|
53
63
|
delete(followUpSmsSettingId: number, options?: RequestOptions): Promise<boolean>;
|
|
54
64
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"follow-up-sms-settings.d.ts","sourceRoot":"","sources":["../../src/resources/follow-up-sms-settings.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,KAAK,EACV,+BAA+B,EAC/B,6BAA6B,EAC7B,+BAA+B,EAChC,MAAM,oBAAoB,CAAC;AAE5B,kDAAkD;AAClD,qBAAa,2BAA4B,SAAQ,WAAW;IAC1D
|
|
1
|
+
{"version":3,"file":"follow-up-sms-settings.d.ts","sourceRoot":"","sources":["../../src/resources/follow-up-sms-settings.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,KAAK,EACV,+BAA+B,EAC/B,6BAA6B,EAC7B,+BAA+B,EAChC,MAAM,oBAAoB,CAAC;AAE5B,kDAAkD;AAClD,qBAAa,2BAA4B,SAAQ,WAAW;IAC1D;;;;;;;;OAQG;IACH,IAAI,CACF,MAAM,GAAE,6BAAkC,EAC1C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,kBAAkB,CAAC;IAclC;;;;;;;;OAQG;IACH,MAAM,CAAC,MAAM,EAAE,+BAA+B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAgBtG;;;;;;;;;;OAUG;IACH,GAAG,CAAC,oBAAoB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAMxF;;;;;;;;;;OAUG;IACH,MAAM,CACJ,oBAAoB,EAAE,MAAM,EAC5B,MAAM,EAAE,+BAA+B,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,kBAAkB,CAAC;IAgB9B;;;;;;;;;;OAUG;IACH,MAAM,CAAC,oBAAoB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;CAKjF"}
|
|
@@ -9,6 +9,8 @@ export class FollowUpSmsSettingsResource extends APIResource {
|
|
|
9
9
|
* Follow-up SMS settings of the account: the SMS a modem sends to a caller after a call. Newest first by default (the id descending).
|
|
10
10
|
*
|
|
11
11
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION.
|
|
12
|
+
*
|
|
13
|
+
* Capability the role of an organization API key needs: `automation.view`.
|
|
12
14
|
*/
|
|
13
15
|
list(params = {}, options) {
|
|
14
16
|
return this._client.getPage('/follow-up-sms-setting', {
|
|
@@ -28,7 +30,9 @@ export class FollowUpSmsSettingsResource extends APIResource {
|
|
|
28
30
|
*
|
|
29
31
|
* Creates a follow-up SMS setting for a modem.
|
|
30
32
|
*
|
|
31
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, INVALID_DONGLE_TYPE, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, INVALID_RINGING_DURATION_TIMEOUT, INVALID_CALL_DURATION_TIMEOUT, INVALID_DAILY_SMS_LIMIT, DUPLICATE_DONGLE_FOLLOW_UP_SMS_SETTING.
|
|
33
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, INVALID_DONGLE_TYPE, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, INVALID_RINGING_DURATION_TIMEOUT, INVALID_CALL_DURATION_TIMEOUT, INVALID_DAILY_SMS_LIMIT, DUPLICATE_DONGLE_FOLLOW_UP_SMS_SETTING, SMS_ERROR_IDENTIFIER_EMPTY_MESSAGE.
|
|
34
|
+
*
|
|
35
|
+
* Capability the role of an organization API key needs: `automation.manage`.
|
|
32
36
|
*/
|
|
33
37
|
create(params, options) {
|
|
34
38
|
return this._client
|
|
@@ -53,6 +57,8 @@ export class FollowUpSmsSettingsResource extends APIResource {
|
|
|
53
57
|
* @param followUpSmsSettingId - Follow Up Sms Setting ID
|
|
54
58
|
*
|
|
55
59
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, FOLLOW_UP_SMS_SETTING_NOT_FOUND_EXCEPTION.
|
|
60
|
+
*
|
|
61
|
+
* Capability the role of an organization API key needs: `automation.view`.
|
|
56
62
|
*/
|
|
57
63
|
get(followUpSmsSettingId, options) {
|
|
58
64
|
return this._client
|
|
@@ -66,7 +72,9 @@ export class FollowUpSmsSettingsResource extends APIResource {
|
|
|
66
72
|
*
|
|
67
73
|
* @param followUpSmsSettingId - Follow-up SMS setting ID
|
|
68
74
|
*
|
|
69
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, FOLLOW_UP_SMS_SETTING_NOT_FOUND_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, INVALID_DONGLE_TYPE, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, INVALID_RINGING_DURATION_TIMEOUT, INVALID_CALL_DURATION_TIMEOUT, INVALID_DAILY_SMS_LIMIT, DUPLICATE_DONGLE_FOLLOW_UP_SMS_SETTING.
|
|
75
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, FOLLOW_UP_SMS_SETTING_NOT_FOUND_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, INVALID_DONGLE_TYPE, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, INVALID_RINGING_DURATION_TIMEOUT, INVALID_CALL_DURATION_TIMEOUT, INVALID_DAILY_SMS_LIMIT, DUPLICATE_DONGLE_FOLLOW_UP_SMS_SETTING, SMS_ERROR_IDENTIFIER_EMPTY_MESSAGE.
|
|
76
|
+
*
|
|
77
|
+
* Capability the role of an organization API key needs: `automation.manage`.
|
|
70
78
|
*/
|
|
71
79
|
update(followUpSmsSettingId, params, options) {
|
|
72
80
|
return this._client
|
|
@@ -91,6 +99,8 @@ export class FollowUpSmsSettingsResource extends APIResource {
|
|
|
91
99
|
* @param followUpSmsSettingId - Follow-up SMS setting ID
|
|
92
100
|
*
|
|
93
101
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, FOLLOW_UP_SMS_SETTING_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
102
|
+
*
|
|
103
|
+
* Capability the role of an organization API key needs: `automation.manage`.
|
|
94
104
|
*/
|
|
95
105
|
delete(followUpSmsSettingId, options) {
|
|
96
106
|
return this._client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"follow-up-sms-settings.js","sourceRoot":"","sources":["../../src/resources/follow-up-sms-settings.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAItF,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAO7C,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAClD,kDAAkD;AAClD,MAAM,OAAO,2BAA4B,SAAQ,WAAW;IAC1D
|
|
1
|
+
{"version":3,"file":"follow-up-sms-settings.js","sourceRoot":"","sources":["../../src/resources/follow-up-sms-settings.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAItF,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAO7C,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAClD,kDAAkD;AAClD,MAAM,OAAO,2BAA4B,SAAQ,WAAW;IAC1D;;;;;;;;OAQG;IACH,IAAI,CACF,SAAwC,EAAE,EAC1C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAAqB,wBAAwB,EAAE;YACxE,KAAK,EAAE;gBACL,cAAc,EAAE,MAAM,CAAC,UAAU;gBACjC,IAAI,EAAE,MAAM,CAAC,IAAI;gBACjB,KAAK,EAAE,MAAM,CAAC,KAAK;gBACnB,QAAQ,EAAE,MAAM,CAAC,QAAQ;gBACzB,KAAK,EAAE,MAAM,CAAC,KAAK;aACpB;YACD,OAAO,EAAE,wBAAwB;YACjC,OAAO;SACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CAAC,MAAuC,EAAE,OAAwB;QACtE,OAAO,IAAI,CAAC,OAAO;aAChB,OAAO,CAAC,MAAM,EAAE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,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO;aAChB,OAAO,CAAC,QAAQ,EAAE,0BAA0B,SAAS,CAAC,oBAAoB,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC;aAC3F,IAAI,CAAC,QAAQ,CAAC,CAAC;IACpB,CAAC;CACF"}
|
|
@@ -20,7 +20,7 @@ export interface Resources {
|
|
|
20
20
|
readonly dongles: DonglesResource;
|
|
21
21
|
/** SMS of the modems: history, sending, replies, threads. */
|
|
22
22
|
readonly sms: SmsResource;
|
|
23
|
-
/** Calls of the modems: history, outgoing calls. */
|
|
23
|
+
/** Calls of the modems: history, outgoing calls, transcripts. */
|
|
24
24
|
readonly calls: CallsResource;
|
|
25
25
|
/** USSD requests through a modem. */
|
|
26
26
|
readonly ussd: UssdResource;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAC1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OA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