teleleo 0.1.0 → 0.3.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 +47 -0
- package/README.md +121 -10
- package/api.md +130 -112
- package/dist/client.d.ts +3 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +5 -2
- package/dist/client.js.map +1 -1
- package/dist/core.d.ts +14 -3
- package/dist/core.d.ts.map +1 -1
- package/dist/core.js +19 -6
- package/dist/core.js.map +1 -1
- package/dist/errors.d.ts +23 -5
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +23 -5
- package/dist/errors.js.map +1 -1
- package/dist/resources/call-scenarios.d.ts +15 -3
- package/dist/resources/call-scenarios.d.ts.map +1 -1
- package/dist/resources/call-scenarios.js +15 -3
- package/dist/resources/call-scenarios.js.map +1 -1
- package/dist/resources/calls.d.ts +26 -6
- package/dist/resources/calls.d.ts.map +1 -1
- package/dist/resources/calls.js +29 -5
- package/dist/resources/calls.js.map +1 -1
- package/dist/resources/contact-groups.d.ts +15 -5
- package/dist/resources/contact-groups.d.ts.map +1 -1
- package/dist/resources/contact-groups.js +15 -5
- package/dist/resources/contact-groups.js.map +1 -1
- package/dist/resources/contacts.d.ts +18 -6
- package/dist/resources/contacts.d.ts.map +1 -1
- package/dist/resources/contacts.js +18 -6
- package/dist/resources/contacts.js.map +1 -1
- package/dist/resources/dongles.d.ts +87 -15
- package/dist/resources/dongles.d.ts.map +1 -1
- package/dist/resources/dongles.js +103 -13
- package/dist/resources/dongles.js.map +1 -1
- package/dist/resources/files.d.ts +14 -6
- package/dist/resources/files.d.ts.map +1 -1
- package/dist/resources/files.js +14 -6
- package/dist/resources/files.js.map +1 -1
- package/dist/resources/follow-up-sms-settings.d.ts +14 -4
- package/dist/resources/follow-up-sms-settings.d.ts.map +1 -1
- package/dist/resources/follow-up-sms-settings.js +14 -4
- package/dist/resources/follow-up-sms-settings.js.map +1 -1
- package/dist/resources/index.d.ts +7 -2
- package/dist/resources/index.d.ts.map +1 -1
- package/dist/resources/index.js +3 -1
- package/dist/resources/index.js.map +1 -1
- package/dist/resources/mailings.d.ts +21 -7
- package/dist/resources/mailings.d.ts.map +1 -1
- package/dist/resources/mailings.js +21 -7
- package/dist/resources/mailings.js.map +1 -1
- package/dist/resources/plans.d.ts +20 -0
- package/dist/resources/plans.d.ts.map +1 -0
- package/dist/resources/plans.js +22 -0
- package/dist/resources/plans.js.map +1 -0
- package/dist/resources/public-vpn.d.ts +11 -1
- package/dist/resources/public-vpn.d.ts.map +1 -1
- package/dist/resources/public-vpn.js +11 -1
- package/dist/resources/public-vpn.js.map +1 -1
- package/dist/resources/redirections.d.ts +15 -5
- package/dist/resources/redirections.d.ts.map +1 -1
- package/dist/resources/redirections.js +15 -5
- package/dist/resources/redirections.js.map +1 -1
- package/dist/resources/sip-users.d.ts +6 -2
- package/dist/resources/sip-users.d.ts.map +1 -1
- package/dist/resources/sip-users.js +6 -2
- package/dist/resources/sip-users.js.map +1 -1
- package/dist/resources/sms.d.ts +28 -10
- package/dist/resources/sms.d.ts.map +1 -1
- package/dist/resources/sms.js +28 -10
- package/dist/resources/sms.js.map +1 -1
- package/dist/resources/socks-proxies.d.ts +13 -3
- package/dist/resources/socks-proxies.d.ts.map +1 -1
- package/dist/resources/socks-proxies.js +13 -3
- package/dist/resources/socks-proxies.js.map +1 -1
- package/dist/resources/ussd.d.ts +15 -5
- package/dist/resources/ussd.d.ts.map +1 -1
- package/dist/resources/ussd.js +15 -5
- package/dist/resources/ussd.js.map +1 -1
- package/dist/types/enums.d.ts +34 -11
- package/dist/types/enums.d.ts.map +1 -1
- package/dist/types/enums.js +28 -9
- package/dist/types/enums.js.map +1 -1
- package/dist/types/models.d.ts +191 -22
- package/dist/types/models.d.ts.map +1 -1
- package/dist/types/params.d.ts +32 -5
- package/dist/types/params.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/client.ts +5 -2
- package/src/core.ts +46 -11
- package/src/errors.ts +23 -5
- package/src/resources/call-scenarios.ts +15 -3
- package/src/resources/calls.ts +31 -6
- package/src/resources/contact-groups.ts +15 -5
- package/src/resources/contacts.ts +18 -6
- package/src/resources/dongles.ts +117 -13
- package/src/resources/files.ts +14 -6
- package/src/resources/follow-up-sms-settings.ts +14 -4
- package/src/resources/index.ts +8 -1
- package/src/resources/mailings.ts +21 -7
- package/src/resources/plans.ts +25 -0
- package/src/resources/public-vpn.ts +11 -1
- package/src/resources/redirections.ts +15 -5
- package/src/resources/sip-users.ts +6 -2
- package/src/resources/sms.ts +28 -10
- package/src/resources/socks-proxies.ts +13 -3
- package/src/resources/ussd.ts +15 -5
- package/src/types/enums.ts +35 -11
- package/src/types/models.ts +199 -21
- package/src/types/params.ts +35 -5
- package/src/version.ts +1 -1
|
@@ -10,7 +10,9 @@ export declare class MailingsResource extends APIResource {
|
|
|
10
10
|
*
|
|
11
11
|
* Mailings (bulk SMS or call campaigns) of the account. Newest first by default (created_at descending, then the id descending).
|
|
12
12
|
*
|
|
13
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, PARSING_DATE_TIME_EXCEPTION.
|
|
13
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, PARSING_DATE_TIME_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
14
|
+
*
|
|
15
|
+
* Capability the role of an organization API key needs: `automation.view`.
|
|
14
16
|
*/
|
|
15
17
|
list(params?: MailingsListParams, options?: RequestOptions): PagePromise<Mailing>;
|
|
16
18
|
/**
|
|
@@ -18,7 +20,9 @@ export declare class MailingsResource extends APIResource {
|
|
|
18
20
|
*
|
|
19
21
|
* Creates an SMS or call mailing. Use POST /mailing/sms or POST /mailing/call instead.
|
|
20
22
|
*
|
|
21
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, PARSING_DATE_TIME_EXCEPTION, MAILING_MANAGEMENT_INVALID_STATUS_FOR_CREATE, MAILING_MANAGEMENT_INVALID_SCHEDULED_AT,
|
|
23
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, PARSING_DATE_TIME_EXCEPTION, MAILING_MANAGEMENT_INVALID_STATUS_FOR_CREATE, MAILING_MANAGEMENT_INVALID_SCHEDULED_AT, MAILING_MANAGEMENT_INVALID_PHONE, MAILING_MANAGEMENT_NO_RECIPIENTS, MAILING_MANAGEMENT_CONTACT_NOT_FOUND, MAILING_MANAGEMENT_CONTACT_GROUP_NOT_FOUND, MAILING_MANAGEMENT_DONGLE_SMS_LIMIT_EXCEEDED, TMP_FILE_NOT_FOUND, DONGLE_FIRMWARE_UPDATING_EXCEPTION, SMS_ERROR_IDENTIFIER_EMPTY_MESSAGE, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
24
|
+
*
|
|
25
|
+
* Capability the role of an organization API key needs: `automation.manage`.
|
|
22
26
|
*/
|
|
23
27
|
create(params: MailingsCreateParams, options?: RequestOptions): Promise<Mailing>;
|
|
24
28
|
/**
|
|
@@ -26,7 +30,9 @@ export declare class MailingsResource extends APIResource {
|
|
|
26
30
|
*
|
|
27
31
|
* Creates an SMS mailing to the listed phones, contacts and contact groups, sent now or at scheduled_at.
|
|
28
32
|
*
|
|
29
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, PARSING_DATE_TIME_EXCEPTION, MAILING_MANAGEMENT_INVALID_STATUS_FOR_CREATE, MAILING_MANAGEMENT_INVALID_SCHEDULED_AT,
|
|
33
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, PARSING_DATE_TIME_EXCEPTION, MAILING_MANAGEMENT_INVALID_STATUS_FOR_CREATE, MAILING_MANAGEMENT_INVALID_SCHEDULED_AT, MAILING_MANAGEMENT_INVALID_PHONE, MAILING_MANAGEMENT_NO_RECIPIENTS, MAILING_MANAGEMENT_CONTACT_NOT_FOUND, MAILING_MANAGEMENT_CONTACT_GROUP_NOT_FOUND, MAILING_MANAGEMENT_DONGLE_SMS_LIMIT_EXCEEDED, DONGLE_FIRMWARE_UPDATING_EXCEPTION, SMS_ERROR_IDENTIFIER_EMPTY_MESSAGE, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
34
|
+
*
|
|
35
|
+
* Capability the role of an organization API key needs: `automation.manage`.
|
|
30
36
|
*/
|
|
31
37
|
createSms(params: MailingsCreateSmsParams, options?: RequestOptions): Promise<Mailing>;
|
|
32
38
|
/**
|
|
@@ -34,7 +40,9 @@ export declare class MailingsResource extends APIResource {
|
|
|
34
40
|
*
|
|
35
41
|
* Creates a call mailing that plays an audio file (tmp_file_id) to the listed phones, contacts and contact groups.
|
|
36
42
|
*
|
|
37
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, PARSING_DATE_TIME_EXCEPTION, MAILING_MANAGEMENT_INVALID_STATUS_FOR_CREATE, MAILING_MANAGEMENT_INVALID_SCHEDULED_AT,
|
|
43
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, PARSING_DATE_TIME_EXCEPTION, MAILING_MANAGEMENT_INVALID_STATUS_FOR_CREATE, MAILING_MANAGEMENT_INVALID_SCHEDULED_AT, MAILING_MANAGEMENT_INVALID_PHONE, MAILING_MANAGEMENT_NO_RECIPIENTS, MAILING_MANAGEMENT_CONTACT_NOT_FOUND, MAILING_MANAGEMENT_CONTACT_GROUP_NOT_FOUND, TMP_FILE_NOT_FOUND, DONGLE_FIRMWARE_UPDATING_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
44
|
+
*
|
|
45
|
+
* Capability the role of an organization API key needs: `automation.manage`.
|
|
38
46
|
*/
|
|
39
47
|
createCall(params: MailingsCreateCallParams, options?: RequestOptions): Promise<Mailing>;
|
|
40
48
|
/**
|
|
@@ -44,7 +52,9 @@ export declare class MailingsResource extends APIResource {
|
|
|
44
52
|
*
|
|
45
53
|
* @param mailingId - Identifier in the path
|
|
46
54
|
*
|
|
47
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, MAILING_NOT_FOUND.
|
|
55
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, MAILING_NOT_FOUND, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
56
|
+
*
|
|
57
|
+
* Capability the role of an organization API key needs: `automation.view`.
|
|
48
58
|
*/
|
|
49
59
|
get(mailingId: number, options?: RequestOptions): Promise<Mailing>;
|
|
50
60
|
/**
|
|
@@ -54,7 +64,9 @@ export declare class MailingsResource extends APIResource {
|
|
|
54
64
|
*
|
|
55
65
|
* @param mailingId - Identifier in the path
|
|
56
66
|
*
|
|
57
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, MAILING_NOT_FOUND, PARSING_DATE_TIME_EXCEPTION, MAILING_MANAGEMENT_INVALID_STATUS_FOR_UPDATE, MAILING_MANAGEMENT_INVALID_STATUS_FOR_CANCEL, MAILING_MANAGEMENT_INVALID_STATUS_FOR_SOFT_DELETE,
|
|
67
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, MAILING_NOT_FOUND, PARSING_DATE_TIME_EXCEPTION, MAILING_MANAGEMENT_INVALID_STATUS_FOR_UPDATE, MAILING_MANAGEMENT_INVALID_STATUS_FOR_CANCEL, MAILING_MANAGEMENT_INVALID_STATUS_FOR_SOFT_DELETE, MAILING_MANAGEMENT_INVALID_PHONE, MAILING_MANAGEMENT_NO_RECIPIENTS, MAILING_MANAGEMENT_CONTACT_NOT_FOUND, MAILING_MANAGEMENT_CONTACT_GROUP_NOT_FOUND, MAILING_MANAGEMENT_DONGLE_SMS_LIMIT_EXCEEDED, TMP_FILE_NOT_FOUND, DONGLE_FIRMWARE_UPDATING_EXCEPTION, SMS_ERROR_IDENTIFIER_EMPTY_MESSAGE, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
68
|
+
*
|
|
69
|
+
* Capability the role of an organization API key needs: `automation.manage`.
|
|
58
70
|
*/
|
|
59
71
|
update(mailingId: number, params?: MailingsUpdateParams, options?: RequestOptions): Promise<Mailing>;
|
|
60
72
|
/**
|
|
@@ -64,7 +76,9 @@ export declare class MailingsResource extends APIResource {
|
|
|
64
76
|
*
|
|
65
77
|
* @param mailingId - Identifier in the path
|
|
66
78
|
*
|
|
67
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, MAILING_NOT_FOUND, MAILING_MANAGEMENT_INVALID_STATUS_FOR_HARD_DELETE, DONGLE_NOT_FOUND_EXCEPTION,
|
|
79
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, MAILING_NOT_FOUND, MAILING_MANAGEMENT_INVALID_STATUS_FOR_HARD_DELETE, DONGLE_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
80
|
+
*
|
|
81
|
+
* Capability the role of an organization API key needs: `automation.manage`.
|
|
68
82
|
*/
|
|
69
83
|
delete(mailingId: number, options?: RequestOptions): Promise<boolean>;
|
|
70
84
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mailings.d.ts","sourceRoot":"","sources":["../../src/resources/mailings.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,WAA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IACH,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IAMlE;;;;;;;;;;OAUG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,GAAE,oBAAyB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IAoBxG;;;;;;;;;;OAUG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;CAGtE"}
|
|
@@ -8,7 +8,9 @@ export class MailingsResource extends APIResource {
|
|
|
8
8
|
*
|
|
9
9
|
* Mailings (bulk SMS or call campaigns) of the account. Newest first by default (created_at descending, then the id descending).
|
|
10
10
|
*
|
|
11
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, PARSING_DATE_TIME_EXCEPTION.
|
|
11
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, PARSING_DATE_TIME_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
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('/mailing', {
|
|
@@ -44,7 +46,9 @@ export class MailingsResource extends APIResource {
|
|
|
44
46
|
*
|
|
45
47
|
* Creates an SMS or call mailing. Use POST /mailing/sms or POST /mailing/call instead.
|
|
46
48
|
*
|
|
47
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, PARSING_DATE_TIME_EXCEPTION, MAILING_MANAGEMENT_INVALID_STATUS_FOR_CREATE, MAILING_MANAGEMENT_INVALID_SCHEDULED_AT,
|
|
49
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, PARSING_DATE_TIME_EXCEPTION, MAILING_MANAGEMENT_INVALID_STATUS_FOR_CREATE, MAILING_MANAGEMENT_INVALID_SCHEDULED_AT, MAILING_MANAGEMENT_INVALID_PHONE, MAILING_MANAGEMENT_NO_RECIPIENTS, MAILING_MANAGEMENT_CONTACT_NOT_FOUND, MAILING_MANAGEMENT_CONTACT_GROUP_NOT_FOUND, MAILING_MANAGEMENT_DONGLE_SMS_LIMIT_EXCEEDED, TMP_FILE_NOT_FOUND, DONGLE_FIRMWARE_UPDATING_EXCEPTION, SMS_ERROR_IDENTIFIER_EMPTY_MESSAGE, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
50
|
+
*
|
|
51
|
+
* Capability the role of an organization API key needs: `automation.manage`.
|
|
48
52
|
*/
|
|
49
53
|
create(params, options) {
|
|
50
54
|
return this._client
|
|
@@ -72,7 +76,9 @@ export class MailingsResource extends APIResource {
|
|
|
72
76
|
*
|
|
73
77
|
* Creates an SMS mailing to the listed phones, contacts and contact groups, sent now or at scheduled_at.
|
|
74
78
|
*
|
|
75
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, PARSING_DATE_TIME_EXCEPTION, MAILING_MANAGEMENT_INVALID_STATUS_FOR_CREATE, MAILING_MANAGEMENT_INVALID_SCHEDULED_AT,
|
|
79
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, PARSING_DATE_TIME_EXCEPTION, MAILING_MANAGEMENT_INVALID_STATUS_FOR_CREATE, MAILING_MANAGEMENT_INVALID_SCHEDULED_AT, MAILING_MANAGEMENT_INVALID_PHONE, MAILING_MANAGEMENT_NO_RECIPIENTS, MAILING_MANAGEMENT_CONTACT_NOT_FOUND, MAILING_MANAGEMENT_CONTACT_GROUP_NOT_FOUND, MAILING_MANAGEMENT_DONGLE_SMS_LIMIT_EXCEEDED, DONGLE_FIRMWARE_UPDATING_EXCEPTION, SMS_ERROR_IDENTIFIER_EMPTY_MESSAGE, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
80
|
+
*
|
|
81
|
+
* Capability the role of an organization API key needs: `automation.manage`.
|
|
76
82
|
*/
|
|
77
83
|
createSms(params, options) {
|
|
78
84
|
return this._client
|
|
@@ -97,7 +103,9 @@ export class MailingsResource extends APIResource {
|
|
|
97
103
|
*
|
|
98
104
|
* Creates a call mailing that plays an audio file (tmp_file_id) to the listed phones, contacts and contact groups.
|
|
99
105
|
*
|
|
100
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, PARSING_DATE_TIME_EXCEPTION, MAILING_MANAGEMENT_INVALID_STATUS_FOR_CREATE, MAILING_MANAGEMENT_INVALID_SCHEDULED_AT,
|
|
106
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, PARSING_DATE_TIME_EXCEPTION, MAILING_MANAGEMENT_INVALID_STATUS_FOR_CREATE, MAILING_MANAGEMENT_INVALID_SCHEDULED_AT, MAILING_MANAGEMENT_INVALID_PHONE, MAILING_MANAGEMENT_NO_RECIPIENTS, MAILING_MANAGEMENT_CONTACT_NOT_FOUND, MAILING_MANAGEMENT_CONTACT_GROUP_NOT_FOUND, TMP_FILE_NOT_FOUND, DONGLE_FIRMWARE_UPDATING_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
107
|
+
*
|
|
108
|
+
* Capability the role of an organization API key needs: `automation.manage`.
|
|
101
109
|
*/
|
|
102
110
|
createCall(params, options) {
|
|
103
111
|
return this._client
|
|
@@ -126,7 +134,9 @@ export class MailingsResource extends APIResource {
|
|
|
126
134
|
*
|
|
127
135
|
* @param mailingId - Identifier in the path
|
|
128
136
|
*
|
|
129
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, MAILING_NOT_FOUND.
|
|
137
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, MAILING_NOT_FOUND, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
138
|
+
*
|
|
139
|
+
* Capability the role of an organization API key needs: `automation.view`.
|
|
130
140
|
*/
|
|
131
141
|
get(mailingId, options) {
|
|
132
142
|
return this._client
|
|
@@ -140,7 +150,9 @@ export class MailingsResource extends APIResource {
|
|
|
140
150
|
*
|
|
141
151
|
* @param mailingId - Identifier in the path
|
|
142
152
|
*
|
|
143
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, MAILING_NOT_FOUND, PARSING_DATE_TIME_EXCEPTION, MAILING_MANAGEMENT_INVALID_STATUS_FOR_UPDATE, MAILING_MANAGEMENT_INVALID_STATUS_FOR_CANCEL, MAILING_MANAGEMENT_INVALID_STATUS_FOR_SOFT_DELETE,
|
|
153
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, MAILING_NOT_FOUND, PARSING_DATE_TIME_EXCEPTION, MAILING_MANAGEMENT_INVALID_STATUS_FOR_UPDATE, MAILING_MANAGEMENT_INVALID_STATUS_FOR_CANCEL, MAILING_MANAGEMENT_INVALID_STATUS_FOR_SOFT_DELETE, MAILING_MANAGEMENT_INVALID_PHONE, MAILING_MANAGEMENT_NO_RECIPIENTS, MAILING_MANAGEMENT_CONTACT_NOT_FOUND, MAILING_MANAGEMENT_CONTACT_GROUP_NOT_FOUND, MAILING_MANAGEMENT_DONGLE_SMS_LIMIT_EXCEEDED, TMP_FILE_NOT_FOUND, DONGLE_FIRMWARE_UPDATING_EXCEPTION, SMS_ERROR_IDENTIFIER_EMPTY_MESSAGE, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
154
|
+
*
|
|
155
|
+
* Capability the role of an organization API key needs: `automation.manage`.
|
|
144
156
|
*/
|
|
145
157
|
update(mailingId, params = {}, options) {
|
|
146
158
|
return this._client
|
|
@@ -168,7 +180,9 @@ export class MailingsResource extends APIResource {
|
|
|
168
180
|
*
|
|
169
181
|
* @param mailingId - Identifier in the path
|
|
170
182
|
*
|
|
171
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, MAILING_NOT_FOUND, MAILING_MANAGEMENT_INVALID_STATUS_FOR_HARD_DELETE, DONGLE_NOT_FOUND_EXCEPTION,
|
|
183
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, MAILING_NOT_FOUND, MAILING_MANAGEMENT_INVALID_STATUS_FOR_HARD_DELETE, DONGLE_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
184
|
+
*
|
|
185
|
+
* Capability the role of an organization API key needs: `automation.manage`.
|
|
172
186
|
*/
|
|
173
187
|
delete(mailingId, options) {
|
|
174
188
|
return this._client.request('DELETE', `/mailing/${pathParam(mailingId)}`, { options }).then(asStatus);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mailings.js","sourceRoot":"","sources":["../../src/resources/mailings.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAItF,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAS7C,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAClD,mCAAmC;AACnC,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C
|
|
1
|
+
{"version":3,"file":"mailings.js","sourceRoot":"","sources":["../../src/resources/mailings.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAItF,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAS7C,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAClD,mCAAmC;AACnC,MAAM,OAAO,gBAAiB,S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AE,MAAM,CAAC,YAAY;gBACjC,UAAU,EAAE,MAAM,CAAC,UAAU;gBAC7B,WAAW,EAAE,MAAM,CAAC,WAAW;gBAC/B,cAAc,EAAE,MAAM,CAAC,cAAc;gBACrC,mBAAmB,EAAE,MAAM,CAAC,mBAAmB;gBAC/C,yBAAyB,EAAE,MAAM,CAAC,yBAAyB;aAC5D;YACD,OAAO;SACR,CAAC;aACD,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAe,CAAC,CAAC;IACrC,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,SAAiB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ,EAAE,YAAY,SAAS,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACxG,CAAC;CACF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { RequestOptions } from '../core.js';
|
|
2
|
+
import { APIResource } from '../resource.js';
|
|
3
|
+
import type { PlanCatalog } from '../types/models.js';
|
|
4
|
+
import type { PlansGetCatalogParams } from '../types/params.js';
|
|
5
|
+
/**
|
|
6
|
+
* Prices of Teleleo: the subscriptions of the cabinet and the products of the store. Public, without a key.
|
|
7
|
+
*/
|
|
8
|
+
export declare class PlansResource extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* List plans and prices.
|
|
11
|
+
*
|
|
12
|
+
* The prices of Teleleo and what each plan or product includes, in one currency: the subscriptions of the cabinet (monthly and yearly, paid per modem) and the products of the store (the modem alone and the modem with months of subscription). Public, the one operation without a key: no auth-key is needed, but a key sent with it must be valid, or the answer is 401. A subscription costs what the cabinet charges for it; a product costs what the store asks in that currency, with the store page in url. The answer is cached for 5 minutes, so a new price shows within 5 minutes. When the prices cannot be read, the last good answer is served for up to 24 hours (updated_at tells how old it is); with none, 503 PLAN_CATALOG_UNAVAILABLE.
|
|
13
|
+
*
|
|
14
|
+
* Error codes (`errorMessage`): PLAN_CURRENCY_NOT_SUPPORTED, PLAN_CATALOG_UNAVAILABLE.
|
|
15
|
+
*
|
|
16
|
+
* Needs no API key: a client made with `apiKey: null` can call it. A key the client has is sent, and it must be valid.
|
|
17
|
+
*/
|
|
18
|
+
getCatalog(params?: PlansGetCatalogParams, options?: RequestOptions): Promise<PlanCatalog>;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=plans.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plans.d.ts","sourceRoot":"","sources":["../../src/resources/plans.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE;;GAEG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;OAQG;IACH,UAAU,CAAC,MAAM,GAAE,qBAA0B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,WAAW,CAAC;CAK/F"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// File generated from spec/openapi.yaml by scripts/generate.mjs. Do not edit by hand.
|
|
2
|
+
import { APIResource } from '../resource.js';
|
|
3
|
+
/**
|
|
4
|
+
* Prices of Teleleo: the subscriptions of the cabinet and the products of the store. Public, without a key.
|
|
5
|
+
*/
|
|
6
|
+
export class PlansResource extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* List plans and prices.
|
|
9
|
+
*
|
|
10
|
+
* The prices of Teleleo and what each plan or product includes, in one currency: the subscriptions of the cabinet (monthly and yearly, paid per modem) and the products of the store (the modem alone and the modem with months of subscription). Public, the one operation without a key: no auth-key is needed, but a key sent with it must be valid, or the answer is 401. A subscription costs what the cabinet charges for it; a product costs what the store asks in that currency, with the store page in url. The answer is cached for 5 minutes, so a new price shows within 5 minutes. When the prices cannot be read, the last good answer is served for up to 24 hours (updated_at tells how old it is); with none, 503 PLAN_CATALOG_UNAVAILABLE.
|
|
11
|
+
*
|
|
12
|
+
* Error codes (`errorMessage`): PLAN_CURRENCY_NOT_SUPPORTED, PLAN_CATALOG_UNAVAILABLE.
|
|
13
|
+
*
|
|
14
|
+
* Needs no API key: a client made with `apiKey: null` can call it. A key the client has is sent, and it must be valid.
|
|
15
|
+
*/
|
|
16
|
+
getCatalog(params = {}, options) {
|
|
17
|
+
return this._client
|
|
18
|
+
.request('GET', '/plan', { query: { currency: params.currency }, keyOptional: true, options })
|
|
19
|
+
.then((data) => data);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=plans.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plans.js","sourceRoot":"","sources":["../../src/resources/plans.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAGtF,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C;;GAEG;AACH,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;OAQG;IACH,UAAU,CAAC,SAAgC,EAAE,EAAE,OAAwB;QACrE,OAAO,IAAI,CAAC,OAAO;aAChB,OAAO,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;aAC7F,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAmB,CAAC,CAAC;IACzC,CAAC;CACF"}
|
|
@@ -11,6 +11,8 @@ export declare class PublicVpnResource extends APIResource {
|
|
|
11
11
|
* @param dongleId - ID of the dongle
|
|
12
12
|
*
|
|
13
13
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, DONGLE_PUBLIC_VPN_ALREADY_ENABLED_EXCEPTION.
|
|
14
|
+
*
|
|
15
|
+
* Capability the role of an organization API key needs: `network.manage`.
|
|
14
16
|
*/
|
|
15
17
|
enable(dongleId: number, options?: RequestOptions): Promise<boolean>;
|
|
16
18
|
/**
|
|
@@ -20,7 +22,9 @@ export declare class PublicVpnResource extends APIResource {
|
|
|
20
22
|
*
|
|
21
23
|
* @param dongleId - ID of the dongle
|
|
22
24
|
*
|
|
23
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_PUBLIC_VPN_ALREADY_DISABLED_EXCEPTION.
|
|
25
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_PUBLIC_VPN_ALREADY_DISABLED_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
26
|
+
*
|
|
27
|
+
* Capability the role of an organization API key needs: `network.manage`.
|
|
24
28
|
*/
|
|
25
29
|
disable(dongleId: number, options?: RequestOptions): Promise<boolean>;
|
|
26
30
|
/**
|
|
@@ -31,12 +35,18 @@ export declare class PublicVpnResource extends APIResource {
|
|
|
31
35
|
* @param dongleId - ID of the dongle
|
|
32
36
|
*
|
|
33
37
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
38
|
+
*
|
|
39
|
+
* Capability the role of an organization API key needs: `network.manage`.
|
|
34
40
|
*/
|
|
35
41
|
refreshPassword(dongleId: number, options?: RequestOptions): Promise<boolean>;
|
|
36
42
|
/**
|
|
37
43
|
* List public VPN sessions.
|
|
38
44
|
*
|
|
39
45
|
* Live VPN sessions of the modems of the account, as the VPN gateway reports them. Not paginated.
|
|
46
|
+
*
|
|
47
|
+
* Error codes (`errorMessage`): BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
48
|
+
*
|
|
49
|
+
* Capability the role of an organization API key needs: `network.view`.
|
|
40
50
|
*/
|
|
41
51
|
listSessions(options?: RequestOptions): Promise<Array<PublicVpnSession>>;
|
|
42
52
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-vpn.d.ts","sourceRoot":"","sources":["../../src/resources/public-vpn.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,kCAAkC;AAClC,qBAAa,iBAAkB,SAAQ,WAAW;IAChD
|
|
1
|
+
{"version":3,"file":"public-vpn.d.ts","sourceRoot":"","sources":["../../src/resources/public-vpn.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,kCAAkC;AAClC,qBAAa,iBAAkB,SAAQ,WAAW;IAChD;;;;;;;;;;OAUG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IAMpE;;;;;;;;;;OAUG;IACH,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IAMrE;;;;;;;;;;OAUG;IACH,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IAM7E;;;;;;;;OAQG;IACH,YAAY,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;CAKzE"}
|
|
@@ -11,6 +11,8 @@ export class PublicVpnResource extends APIResource {
|
|
|
11
11
|
* @param dongleId - ID of the dongle
|
|
12
12
|
*
|
|
13
13
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, DONGLE_PUBLIC_VPN_ALREADY_ENABLED_EXCEPTION.
|
|
14
|
+
*
|
|
15
|
+
* Capability the role of an organization API key needs: `network.manage`.
|
|
14
16
|
*/
|
|
15
17
|
enable(dongleId, options) {
|
|
16
18
|
return this._client
|
|
@@ -24,7 +26,9 @@ export class PublicVpnResource extends APIResource {
|
|
|
24
26
|
*
|
|
25
27
|
* @param dongleId - ID of the dongle
|
|
26
28
|
*
|
|
27
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_PUBLIC_VPN_ALREADY_DISABLED_EXCEPTION.
|
|
29
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_PUBLIC_VPN_ALREADY_DISABLED_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
30
|
+
*
|
|
31
|
+
* Capability the role of an organization API key needs: `network.manage`.
|
|
28
32
|
*/
|
|
29
33
|
disable(dongleId, options) {
|
|
30
34
|
return this._client
|
|
@@ -39,6 +43,8 @@ export class PublicVpnResource extends APIResource {
|
|
|
39
43
|
* @param dongleId - ID of the dongle
|
|
40
44
|
*
|
|
41
45
|
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
46
|
+
*
|
|
47
|
+
* Capability the role of an organization API key needs: `network.manage`.
|
|
42
48
|
*/
|
|
43
49
|
refreshPassword(dongleId, options) {
|
|
44
50
|
return this._client
|
|
@@ -49,6 +55,10 @@ export class PublicVpnResource extends APIResource {
|
|
|
49
55
|
* List public VPN sessions.
|
|
50
56
|
*
|
|
51
57
|
* Live VPN sessions of the modems of the account, as the VPN gateway reports them. Not paginated.
|
|
58
|
+
*
|
|
59
|
+
* Error codes (`errorMessage`): BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
60
|
+
*
|
|
61
|
+
* Capability the role of an organization API key needs: `network.view`.
|
|
52
62
|
*/
|
|
53
63
|
listSessions(options) {
|
|
54
64
|
return this._client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-vpn.js","sourceRoot":"","sources":["../../src/resources/public-vpn.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAGtF,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC3D,kCAAkC;AAClC,MAAM,OAAO,iBAAkB,SAAQ,WAAW;IAChD
|
|
1
|
+
{"version":3,"file":"public-vpn.js","sourceRoot":"","sources":["../../src/resources/public-vpn.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAGtF,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC3D,kCAAkC;AAClC,MAAM,OAAO,iBAAkB,SAAQ,WAAW;IAChD;;;;;;;;;;OAUG;IACH,MAAM,CAAC,QAAgB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO;aAChB,OAAO,CAAC,MAAM,EAAE,WAAW,SAAS,CAAC,QAAQ,CAAC,oBAAoB,EAAE,EAAE,OAAO,EAAE,CAAC;aAChF,IAAI,CAAC,QAAQ,CAAC,CAAC;IACpB,CAAC;IAED;;;;;;;;;;OAUG;IACH,OAAO,CAAC,QAAgB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO;aAChB,OAAO,CAAC,MAAM,EAAE,WAAW,SAAS,CAAC,QAAQ,CAAC,qBAAqB,EAAE,EAAE,OAAO,EAAE,CAAC;aACjF,IAAI,CAAC,QAAQ,CAAC,CAAC;IACpB,CAAC;IAED;;;;;;;;;;OAUG;IACH,eAAe,CAAC,QAAgB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO;aAChB,OAAO,CAAC,MAAM,EAAE,WAAW,SAAS,CAAC,QAAQ,CAAC,8BAA8B,EAAE,EAAE,OAAO,EAAE,CAAC;aAC1F,IAAI,CAAC,QAAQ,CAAC,CAAC;IACpB,CAAC;IAED;;;;;;;;OAQG;IACH,YAAY,CAAC,OAAwB;QACnC,OAAO,IAAI,CAAC,OAAO;aAChB,OAAO,CAAC,KAAK,EAAE,kCAAkC,EAAE,EAAE,OAAO,EAAE,CAAC;aAC/D,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,kBAAkB,CAA4B,CAAC,CAAC;IAClF,CAAC;CACF"}
|
|
@@ -10,7 +10,9 @@ export declare class RedirectionsResource extends APIResource {
|
|
|
10
10
|
*
|
|
11
11
|
* Redirection rules of the account: forwarding of incoming SMS and calls, auto replies and HTTP callbacks. Newest first by default (created_at descending, then the id descending).
|
|
12
12
|
*
|
|
13
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, PARSING_DATE_TIME_EXCEPTION.
|
|
13
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, PARSING_DATE_TIME_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
14
|
+
*
|
|
15
|
+
* Capability the role of an organization API key needs: `automation.view`.
|
|
14
16
|
*/
|
|
15
17
|
list(params?: RedirectionsListParams, options?: RequestOptions): PagePromise<Redirection>;
|
|
16
18
|
/**
|
|
@@ -18,7 +20,9 @@ export declare class RedirectionsResource extends APIResource {
|
|
|
18
20
|
*
|
|
19
21
|
* Creates a redirection rule; condition and params are checked on save (see RedirectionCondition and RedirectionParams).
|
|
20
22
|
*
|
|
21
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, PARAMS_NOT_VALID_EXCEPTION, CONDITION_NOT_VALID_EXCEPTION, DONGLE_NOT_FOUND, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
23
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, PARAMS_NOT_VALID_EXCEPTION, CONDITION_NOT_VALID_EXCEPTION, DONGLE_NOT_FOUND, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, SMS_ERROR_IDENTIFIER_EMPTY_MESSAGE.
|
|
24
|
+
*
|
|
25
|
+
* Capability the role of an organization API key needs: `automation.manage`.
|
|
22
26
|
*/
|
|
23
27
|
create(params: RedirectionsCreateParams, options?: RequestOptions): Promise<Redirection>;
|
|
24
28
|
/**
|
|
@@ -28,7 +32,9 @@ export declare class RedirectionsResource extends APIResource {
|
|
|
28
32
|
*
|
|
29
33
|
* @param redirectionId - Identifier in the path
|
|
30
34
|
*
|
|
31
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, REDIRECTION_NOT_FOUND_EXCEPTION.
|
|
35
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, REDIRECTION_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
36
|
+
*
|
|
37
|
+
* Capability the role of an organization API key needs: `automation.view`.
|
|
32
38
|
*/
|
|
33
39
|
get(redirectionId: number, options?: RequestOptions): Promise<Redirection>;
|
|
34
40
|
/**
|
|
@@ -38,7 +44,9 @@ export declare class RedirectionsResource extends APIResource {
|
|
|
38
44
|
*
|
|
39
45
|
* @param redirectionId - Identifier in the path
|
|
40
46
|
*
|
|
41
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, REDIRECTION_NOT_FOUND_EXCEPTION, PARAMS_NOT_VALID_EXCEPTION, CONDITION_NOT_VALID_EXCEPTION, DONGLE_NOT_FOUND, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
47
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, REDIRECTION_NOT_FOUND_EXCEPTION, PARAMS_NOT_VALID_EXCEPTION, CONDITION_NOT_VALID_EXCEPTION, DONGLE_NOT_FOUND, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, SMS_ERROR_IDENTIFIER_EMPTY_MESSAGE.
|
|
48
|
+
*
|
|
49
|
+
* Capability the role of an organization API key needs: `automation.manage`.
|
|
42
50
|
*/
|
|
43
51
|
update(redirectionId: number, params: RedirectionsUpdateParams, options?: RequestOptions): Promise<Redirection>;
|
|
44
52
|
/**
|
|
@@ -48,7 +56,9 @@ export declare class RedirectionsResource extends APIResource {
|
|
|
48
56
|
*
|
|
49
57
|
* @param redirectionId - Identifier in the path
|
|
50
58
|
*
|
|
51
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, REDIRECTION_NOT_FOUND_EXCEPTION.
|
|
59
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, REDIRECTION_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(redirectionId: number, options?: RequestOptions): Promise<boolean>;
|
|
54
64
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redirections.d.ts","sourceRoot":"","sources":["../../src/resources/redirections.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,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,EACV,wBAAwB,EACxB,sBAAsB,EACtB,wBAAwB,EACzB,MAAM,oBAAoB,CAAC;AAE5B,+EAA+E;AAC/E,qBAAa,oBAAqB,SAAQ,WAAW;IACnD
|
|
1
|
+
{"version":3,"file":"redirections.d.ts","sourceRoot":"","sources":["../../src/resources/redirections.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,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,EACV,wBAAwB,EACxB,sBAAsB,EACtB,wBAAwB,EACzB,MAAM,oBAAoB,CAAC;AAE5B,+EAA+E;AAC/E,qBAAa,oBAAqB,SAAQ,WAAW;IACnD;;;;;;;;OAQG;IACH,IAAI,CAAC,MAAM,GAAE,sBAA2B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,WAAW,CAAC,WAAW,CAAC;IAoB7F;;;;;;;;OAQG;IACH,MAAM,CAAC,MAAM,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,WAAW,CAAC;IAcxF;;;;;;;;;;OAUG;IACH,GAAG,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,WAAW,CAAC;IAM1E;;;;;;;;;;OAUG;IACH,MAAM,CACJ,aAAa,EAAE,MAAM,EACrB,MAAM,EAAE,wBAAwB,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,WAAW,CAAC;IAcvB;;;;;;;;;;OAUG;IACH,MAAM,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;CAK1E"}
|
|
@@ -8,7 +8,9 @@ export class RedirectionsResource extends APIResource {
|
|
|
8
8
|
*
|
|
9
9
|
* Redirection rules of the account: forwarding of incoming SMS and calls, auto replies and HTTP callbacks. Newest first by default (created_at descending, then the id descending).
|
|
10
10
|
*
|
|
11
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, PARSING_DATE_TIME_EXCEPTION.
|
|
11
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, PARSING_DATE_TIME_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
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('/redirection', {
|
|
@@ -34,7 +36,9 @@ export class RedirectionsResource extends APIResource {
|
|
|
34
36
|
*
|
|
35
37
|
* Creates a redirection rule; condition and params are checked on save (see RedirectionCondition and RedirectionParams).
|
|
36
38
|
*
|
|
37
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, PARAMS_NOT_VALID_EXCEPTION, CONDITION_NOT_VALID_EXCEPTION, DONGLE_NOT_FOUND, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
39
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, PARAMS_NOT_VALID_EXCEPTION, CONDITION_NOT_VALID_EXCEPTION, DONGLE_NOT_FOUND, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, SMS_ERROR_IDENTIFIER_EMPTY_MESSAGE.
|
|
40
|
+
*
|
|
41
|
+
* Capability the role of an organization API key needs: `automation.manage`.
|
|
38
42
|
*/
|
|
39
43
|
create(params, options) {
|
|
40
44
|
return this._client
|
|
@@ -56,7 +60,9 @@ export class RedirectionsResource extends APIResource {
|
|
|
56
60
|
*
|
|
57
61
|
* @param redirectionId - Identifier in the path
|
|
58
62
|
*
|
|
59
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, REDIRECTION_NOT_FOUND_EXCEPTION.
|
|
63
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, REDIRECTION_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
64
|
+
*
|
|
65
|
+
* Capability the role of an organization API key needs: `automation.view`.
|
|
60
66
|
*/
|
|
61
67
|
get(redirectionId, options) {
|
|
62
68
|
return this._client
|
|
@@ -70,7 +76,9 @@ export class RedirectionsResource extends APIResource {
|
|
|
70
76
|
*
|
|
71
77
|
* @param redirectionId - Identifier in the path
|
|
72
78
|
*
|
|
73
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, REDIRECTION_NOT_FOUND_EXCEPTION, PARAMS_NOT_VALID_EXCEPTION, CONDITION_NOT_VALID_EXCEPTION, DONGLE_NOT_FOUND, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
79
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, REDIRECTION_NOT_FOUND_EXCEPTION, PARAMS_NOT_VALID_EXCEPTION, CONDITION_NOT_VALID_EXCEPTION, DONGLE_NOT_FOUND, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, SMS_ERROR_IDENTIFIER_EMPTY_MESSAGE.
|
|
80
|
+
*
|
|
81
|
+
* Capability the role of an organization API key needs: `automation.manage`.
|
|
74
82
|
*/
|
|
75
83
|
update(redirectionId, params, options) {
|
|
76
84
|
return this._client
|
|
@@ -92,7 +100,9 @@ export class RedirectionsResource extends APIResource {
|
|
|
92
100
|
*
|
|
93
101
|
* @param redirectionId - Identifier in the path
|
|
94
102
|
*
|
|
95
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, REDIRECTION_NOT_FOUND_EXCEPTION.
|
|
103
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, REDIRECTION_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
104
|
+
*
|
|
105
|
+
* Capability the role of an organization API key needs: `automation.manage`.
|
|
96
106
|
*/
|
|
97
107
|
delete(redirectionId, options) {
|
|
98
108
|
return this._client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redirections.js","sourceRoot":"","sources":["../../src/resources/redirections.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAItF,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAO7C,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAClD,+EAA+E;AAC/E,MAAM,OAAO,oBAAqB,SAAQ,WAAW;IACnD
|
|
1
|
+
{"version":3,"file":"redirections.js","sourceRoot":"","sources":["../../src/resources/redirections.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAItF,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAO7C,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAClD,+EAA+E;AAC/E,MAAM,OAAO,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E,OAAO,EAAE,CAAC;aACvE,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAmB,CAAC,CAAC;IACzC,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,aAAqB,EACrB,MAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO;aAChB,OAAO,CAAC,KAAK,EAAE,gBAAgB,SAAS,CAAC,aAAa,CAAC,EAAE,EAAE;YAC1D,IAAI,EAAE;gBACJ,SAAS,EAAE,MAAM,CAAC,SAAS;gBAC3B,IAAI,EAAE,MAAM,CAAC,IAAI;gBACjB,MAAM,EAAE,MAAM,CAAC,MAAM;gBACrB,mBAAmB,EAAE,MAAM,CAAC,mBAAmB;aAChD;YACD,OAAO;SACR,CAAC;aACD,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAmB,CAAC,CAAC;IACzC,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,aAAqB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO;aAChB,OAAO,CAAC,QAAQ,EAAE,gBAAgB,SAAS,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC;aAC1E,IAAI,CAAC,QAAQ,CAAC,CAAC;IACpB,CAAC;CACF"}
|
|
@@ -9,7 +9,9 @@ export declare class SipUsersResource extends APIResource {
|
|
|
9
9
|
*
|
|
10
10
|
* SIP accounts of the modems of the account, one per modem (dongle_id is always set; the softphone login of the cabinet and the mobile app is not listed). Modems deleted from the account are not listed. pbx_sip_connections lists the SIP servers to register at (TLS and UDP/TCP).
|
|
11
11
|
*
|
|
12
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION.
|
|
12
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
13
|
+
*
|
|
14
|
+
* Capability the role of an organization API key needs: `call.make`.
|
|
13
15
|
*/
|
|
14
16
|
list(params?: SipUsersListParams, options?: RequestOptions): Promise<Array<PbxSipUser>>;
|
|
15
17
|
/**
|
|
@@ -19,7 +21,9 @@ export declare class SipUsersResource extends APIResource {
|
|
|
19
21
|
*
|
|
20
22
|
* @param sipUserId - Identifier in the path
|
|
21
23
|
*
|
|
22
|
-
* Error codes (`errorMessage`): PBX_SIP_ERROR_IDENTIFIER_CANT_FIND_PBX_USER.
|
|
24
|
+
* Error codes (`errorMessage`): PBX_SIP_ERROR_IDENTIFIER_CANT_FIND_PBX_USER, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
25
|
+
*
|
|
26
|
+
* Capability the role of an organization API key needs: `call.make`.
|
|
23
27
|
*/
|
|
24
28
|
get(sipUserId: number, options?: RequestOptions): Promise<PbxSipUser>;
|
|
25
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sip-users.d.ts","sourceRoot":"","sources":["../../src/resources/sip-users.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAE7D,kCAAkC;AAClC,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C
|
|
1
|
+
{"version":3,"file":"sip-users.d.ts","sourceRoot":"","sources":["../../src/resources/sip-users.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAE7D,kCAAkC;AAClC,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;OAQG;IACH,IAAI,CAAC,MAAM,GAAE,kBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IAS3F;;;;;;;;;;OAUG;IACH,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC;CAKtE"}
|
|
@@ -8,7 +8,9 @@ export class SipUsersResource extends APIResource {
|
|
|
8
8
|
*
|
|
9
9
|
* SIP accounts of the modems of the account, one per modem (dongle_id is always set; the softphone login of the cabinet and the mobile app is not listed). Modems deleted from the account are not listed. pbx_sip_connections lists the SIP servers to register at (TLS and UDP/TCP).
|
|
10
10
|
*
|
|
11
|
-
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION.
|
|
11
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
12
|
+
*
|
|
13
|
+
* Capability the role of an organization API key needs: `call.make`.
|
|
12
14
|
*/
|
|
13
15
|
list(params = {}, options) {
|
|
14
16
|
return this._client
|
|
@@ -25,7 +27,9 @@ export class SipUsersResource extends APIResource {
|
|
|
25
27
|
*
|
|
26
28
|
* @param sipUserId - Identifier in the path
|
|
27
29
|
*
|
|
28
|
-
* Error codes (`errorMessage`): PBX_SIP_ERROR_IDENTIFIER_CANT_FIND_PBX_USER.
|
|
30
|
+
* Error codes (`errorMessage`): PBX_SIP_ERROR_IDENTIFIER_CANT_FIND_PBX_USER, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
|
|
31
|
+
*
|
|
32
|
+
* Capability the role of an organization API key needs: `call.make`.
|
|
29
33
|
*/
|
|
30
34
|
get(sipUserId, options) {
|
|
31
35
|
return this._client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sip-users.js","sourceRoot":"","sources":["../../src/resources/sip-users.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAGtF,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACjD,kCAAkC;AAClC,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C
|
|
1
|
+
{"version":3,"file":"sip-users.js","sourceRoot":"","sources":["../../src/resources/sip-users.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAGtF,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACjD,kCAAkC;AAClC,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;OAQG;IACH,IAAI,CAAC,SAA6B,EAAE,EAAE,OAAwB;QAC5D,OAAO,IAAI,CAAC,OAAO;aAChB,OAAO,CAAC,KAAK,EAAE,WAAW,EAAE;YAC3B,KAAK,EAAE,EAAE,wBAAwB,EAAE,MAAM,CAAC,oBAAoB,EAAE;YAChE,OAAO;SACR,CAAC;aACD,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,eAAe,CAAsB,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;;;;;OAUG;IACH,GAAG,CAAC,SAAiB,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO;aAChB,OAAO,CAAC,KAAK,EAAE,aAAa,SAAS,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC;aAChE,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAkB,CAAC,CAAC;IACxC,CAAC;CACF"}
|