teleleo 0.0.0-stage → 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 +27 -0
- package/LICENSE +21 -0
- package/README.md +236 -2
- package/api.md +187 -0
- package/dist/client.d.ts +28 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +27 -0
- package/dist/client.js.map +1 -0
- package/dist/core.d.ts +66 -0
- package/dist/core.d.ts.map +1 -0
- package/dist/core.js +195 -0
- package/dist/core.js.map +1 -0
- package/dist/errors.d.ts +92 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +163 -0
- package/dist/errors.js.map +1 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +23 -0
- package/dist/index.js.map +1 -0
- package/dist/pagination.d.ts +41 -0
- package/dist/pagination.d.ts.map +1 -0
- package/dist/pagination.js +98 -0
- package/dist/pagination.js.map +1 -0
- package/dist/resource.d.ts +7 -0
- package/dist/resource.d.ts.map +1 -0
- package/dist/resource.js +8 -0
- package/dist/resource.js.map +1 -0
- package/dist/resources/call-scenarios.d.ts +77 -0
- package/dist/resources/call-scenarios.d.ts.map +1 -0
- package/dist/resources/call-scenarios.js +137 -0
- package/dist/resources/call-scenarios.js.map +1 -0
- package/dist/resources/calls.d.ts +69 -0
- package/dist/resources/calls.d.ts.map +1 -0
- package/dist/resources/calls.js +109 -0
- package/dist/resources/calls.js.map +1 -0
- package/dist/resources/contact-groups.d.ts +65 -0
- package/dist/resources/contact-groups.d.ts.map +1 -0
- package/dist/resources/contact-groups.js +99 -0
- package/dist/resources/contact-groups.js.map +1 -0
- package/dist/resources/contacts.d.ts +75 -0
- package/dist/resources/contacts.d.ts.map +1 -0
- package/dist/resources/contacts.js +132 -0
- package/dist/resources/contacts.js.map +1 -0
- package/dist/resources/dongles.d.ts +201 -0
- package/dist/resources/dongles.d.ts.map +1 -0
- package/dist/resources/dongles.js +296 -0
- package/dist/resources/dongles.js.map +1 -0
- package/dist/resources/files.d.ts +52 -0
- package/dist/resources/files.d.ts.map +1 -0
- package/dist/resources/files.js +73 -0
- package/dist/resources/files.js.map +1 -0
- package/dist/resources/follow-up-sms-settings.d.ts +65 -0
- package/dist/resources/follow-up-sms-settings.d.ts.map +1 -0
- package/dist/resources/follow-up-sms-settings.js +111 -0
- package/dist/resources/follow-up-sms-settings.js.map +1 -0
- package/dist/resources/index.d.ts +50 -0
- package/dist/resources/index.d.ts.map +1 -0
- package/dist/resources/index.js +36 -0
- package/dist/resources/index.js.map +1 -0
- package/dist/resources/mailings.d.ts +85 -0
- package/dist/resources/mailings.d.ts.map +1 -0
- package/dist/resources/mailings.js +191 -0
- package/dist/resources/mailings.js.map +1 -0
- package/dist/resources/public-vpn.d.ts +51 -0
- package/dist/resources/public-vpn.d.ts.map +1 -0
- package/dist/resources/public-vpn.js +67 -0
- package/dist/resources/public-vpn.js.map +1 -0
- package/dist/resources/redirections.d.ts +65 -0
- package/dist/resources/redirections.d.ts.map +1 -0
- package/dist/resources/redirections.js +113 -0
- package/dist/resources/redirections.js.map +1 -0
- package/dist/resources/sip-users.d.ts +30 -0
- package/dist/resources/sip-users.d.ts.map +1 -0
- package/dist/resources/sip-users.js +40 -0
- package/dist/resources/sip-users.js.map +1 -0
- package/dist/resources/sms.d.ts +116 -0
- package/dist/resources/sms.d.ts.map +1 -0
- package/dist/resources/sms.js +203 -0
- package/dist/resources/sms.js.map +1 -0
- package/dist/resources/socks-proxies.d.ts +65 -0
- package/dist/resources/socks-proxies.d.ts.map +1 -0
- package/dist/resources/socks-proxies.js +91 -0
- package/dist/resources/socks-proxies.js.map +1 -0
- package/dist/resources/ussd.d.ts +71 -0
- package/dist/resources/ussd.d.ts.map +1 -0
- package/dist/resources/ussd.js +89 -0
- package/dist/resources/ussd.js.map +1 -0
- package/dist/types/enums.d.ts +280 -0
- package/dist/types/enums.d.ts.map +1 -0
- package/dist/types/enums.js +233 -0
- package/dist/types/enums.js.map +1 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +5 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/models.d.ts +686 -0
- package/dist/types/models.d.ts.map +1 -0
- package/dist/types/models.js +3 -0
- package/dist/types/models.js.map +1 -0
- package/dist/types/params.d.ts +711 -0
- package/dist/types/params.d.ts.map +1 -0
- package/dist/types/params.js +3 -0
- package/dist/types/params.js.map +1 -0
- package/dist/utils.d.ts +32 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +118 -0
- package/dist/utils.js.map +1 -0
- package/dist/version.d.ts +2 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +2 -0
- package/dist/version.js.map +1 -0
- package/package.json +63 -4
- package/src/client.ts +42 -0
- package/src/core.ts +278 -0
- package/src/errors.ts +170 -0
- package/src/index.ts +46 -0
- package/src/pagination.ts +110 -0
- package/src/resource.ts +10 -0
- package/src/resources/call-scenarios.ts +154 -0
- package/src/resources/calls.ts +117 -0
- package/src/resources/contact-groups.ts +115 -0
- package/src/resources/contacts.ts +149 -0
- package/src/resources/dongles.ts +346 -0
- package/src/resources/files.ts +79 -0
- package/src/resources/follow-up-sms-settings.ts +130 -0
- package/src/resources/index.ts +86 -0
- package/src/resources/mailings.ts +207 -0
- package/src/resources/public-vpn.ts +72 -0
- package/src/resources/redirections.ts +129 -0
- package/src/resources/sip-users.ts +44 -0
- package/src/resources/sms.ts +232 -0
- package/src/resources/socks-proxies.ts +107 -0
- package/src/resources/ussd.ts +97 -0
- package/src/types/enums.ts +300 -0
- package/src/types/index.ts +5 -0
- package/src/types/models.ts +747 -0
- package/src/types/params.ts +767 -0
- package/src/utils.ts +123 -0
- package/src/version.ts +1 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { BaseClient } from '../core.js';
|
|
2
|
+
import { DonglesResource } from './dongles.js';
|
|
3
|
+
import { SmsResource } from './sms.js';
|
|
4
|
+
import { CallsResource } from './calls.js';
|
|
5
|
+
import { UssdResource } from './ussd.js';
|
|
6
|
+
import { ContactsResource } from './contacts.js';
|
|
7
|
+
import { ContactGroupsResource } from './contact-groups.js';
|
|
8
|
+
import { MailingsResource } from './mailings.js';
|
|
9
|
+
import { RedirectionsResource } from './redirections.js';
|
|
10
|
+
import { CallScenariosResource } from './call-scenarios.js';
|
|
11
|
+
import { FollowUpSmsSettingsResource } from './follow-up-sms-settings.js';
|
|
12
|
+
import { PublicVpnResource } from './public-vpn.js';
|
|
13
|
+
import { SocksProxiesResource } from './socks-proxies.js';
|
|
14
|
+
import { SipUsersResource } from './sip-users.js';
|
|
15
|
+
import { FilesResource } from './files.js';
|
|
16
|
+
export { DonglesResource, SmsResource, CallsResource, UssdResource, ContactsResource, ContactGroupsResource, MailingsResource, RedirectionsResource, CallScenariosResource, FollowUpSmsSettingsResource, PublicVpnResource, SocksProxiesResource, SipUsersResource, FilesResource, };
|
|
17
|
+
/** Resource groups of the client. */
|
|
18
|
+
export interface Resources {
|
|
19
|
+
/** Modems of the account and their commands: reboot, Wi-Fi, Wi-Fi extender, number, network info. */
|
|
20
|
+
readonly dongles: DonglesResource;
|
|
21
|
+
/** SMS of the modems: history, sending, replies, threads. */
|
|
22
|
+
readonly sms: SmsResource;
|
|
23
|
+
/** Calls of the modems: history, outgoing calls, transcripts. */
|
|
24
|
+
readonly calls: CallsResource;
|
|
25
|
+
/** USSD requests through a modem. */
|
|
26
|
+
readonly ussd: UssdResource;
|
|
27
|
+
/** Address book of the account. */
|
|
28
|
+
readonly contacts: ContactsResource;
|
|
29
|
+
/** Groups of contacts, used by mailings, call scenarios and redirections. */
|
|
30
|
+
readonly contactGroups: ContactGroupsResource;
|
|
31
|
+
/** Bulk SMS and call campaigns. */
|
|
32
|
+
readonly mailings: MailingsResource;
|
|
33
|
+
/** Rules for incoming SMS and calls: forwarding, auto reply, HTTP callback. */
|
|
34
|
+
readonly redirections: RedirectionsResource;
|
|
35
|
+
/** What a modem plays to incoming callers. */
|
|
36
|
+
readonly callScenarios: CallScenariosResource;
|
|
37
|
+
/** SMS a modem sends to a caller after a call. */
|
|
38
|
+
readonly followUpSmsSettings: FollowUpSmsSettingsResource;
|
|
39
|
+
/** VPN access through a modem. */
|
|
40
|
+
readonly publicVpn: PublicVpnResource;
|
|
41
|
+
/** SOCKS5 proxy through the mobile network of a modem. */
|
|
42
|
+
readonly socksProxies: SocksProxiesResource;
|
|
43
|
+
/** SIP accounts of the modems. */
|
|
44
|
+
readonly sipUsers: SipUsersResource;
|
|
45
|
+
/** Downloads, temporary audio uploads and text-to-speech. */
|
|
46
|
+
readonly files: FilesResource;
|
|
47
|
+
}
|
|
48
|
+
/** @internal */
|
|
49
|
+
export declare function createResources(client: BaseClient): Resources;
|
|
50
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +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;AAC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AAK,EAAE,aAAa,CAAC;CAC/B;AAED,gBAAgB;AAChB,wBAAgB,eAAe,CAAC,MAAM,EAAE,UAAU,GAAG,SAAS,CAiB7D"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// File generated from spec/openapi.yaml by scripts/generate.mjs. Do not edit by hand.
|
|
2
|
+
import { DonglesResource } from './dongles.js';
|
|
3
|
+
import { SmsResource } from './sms.js';
|
|
4
|
+
import { CallsResource } from './calls.js';
|
|
5
|
+
import { UssdResource } from './ussd.js';
|
|
6
|
+
import { ContactsResource } from './contacts.js';
|
|
7
|
+
import { ContactGroupsResource } from './contact-groups.js';
|
|
8
|
+
import { MailingsResource } from './mailings.js';
|
|
9
|
+
import { RedirectionsResource } from './redirections.js';
|
|
10
|
+
import { CallScenariosResource } from './call-scenarios.js';
|
|
11
|
+
import { FollowUpSmsSettingsResource } from './follow-up-sms-settings.js';
|
|
12
|
+
import { PublicVpnResource } from './public-vpn.js';
|
|
13
|
+
import { SocksProxiesResource } from './socks-proxies.js';
|
|
14
|
+
import { SipUsersResource } from './sip-users.js';
|
|
15
|
+
import { FilesResource } from './files.js';
|
|
16
|
+
export { DonglesResource, SmsResource, CallsResource, UssdResource, ContactsResource, ContactGroupsResource, MailingsResource, RedirectionsResource, CallScenariosResource, FollowUpSmsSettingsResource, PublicVpnResource, SocksProxiesResource, SipUsersResource, FilesResource, };
|
|
17
|
+
/** @internal */
|
|
18
|
+
export function createResources(client) {
|
|
19
|
+
return {
|
|
20
|
+
dongles: new DonglesResource(client),
|
|
21
|
+
sms: new SmsResource(client),
|
|
22
|
+
calls: new CallsResource(client),
|
|
23
|
+
ussd: new UssdResource(client),
|
|
24
|
+
contacts: new ContactsResource(client),
|
|
25
|
+
contactGroups: new ContactGroupsResource(client),
|
|
26
|
+
mailings: new MailingsResource(client),
|
|
27
|
+
redirections: new RedirectionsResource(client),
|
|
28
|
+
callScenarios: new CallScenariosResource(client),
|
|
29
|
+
followUpSmsSettings: new FollowUpSmsSettingsResource(client),
|
|
30
|
+
publicVpn: new PublicVpnResource(client),
|
|
31
|
+
socksProxies: new SocksProxiesResource(client),
|
|
32
|
+
sipUsers: new SipUsersResource(client),
|
|
33
|
+
files: new FilesResource(client),
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAGtF,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,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,OAAO,EACL,eAAe,EACf,WAAW,EACX,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,qBAAqB,EACrB,gBAAgB,EAChB,oBAAoB,EACpB,qBAAqB,EACrB,2BAA2B,EAC3B,iBAAiB,EACjB,oBAAoB,EACpB,gBAAgB,EAChB,aAAa,GACd,CAAC;AAkCF,gBAAgB;AAChB,MAAM,UAAU,eAAe,CAAC,MAAkB;IAChD,OAAO;QACL,OAAO,EAAE,IAAI,eAAe,CAAC,MAAM,CAAC;QACpC,GAAG,EAAE,IAAI,WAAW,CAAC,MAAM,CAAC;QAC5B,KAAK,EAAE,IAAI,aAAa,CAAC,MAAM,CAAC;QAChC,IAAI,EAAE,IAAI,YAAY,CAAC,MAAM,CAAC;QAC9B,QAAQ,EAAE,IAAI,gBAAgB,CAAC,MAAM,CAAC;QACtC,aAAa,EAAE,IAAI,qBAAqB,CAAC,MAAM,CAAC;QAChD,QAAQ,EAAE,IAAI,gBAAgB,CAAC,MAAM,CAAC;QACtC,YAAY,EAAE,IAAI,oBAAoB,CAAC,MAAM,CAAC;QAC9C,aAAa,EAAE,IAAI,qBAAqB,CAAC,MAAM,CAAC;QAChD,mBAAmB,EAAE,IAAI,2BAA2B,CAAC,MAAM,CAAC;QAC5D,SAAS,EAAE,IAAI,iBAAiB,CAAC,MAAM,CAAC;QACxC,YAAY,EAAE,IAAI,oBAAoB,CAAC,MAAM,CAAC;QAC9C,QAAQ,EAAE,IAAI,gBAAgB,CAAC,MAAM,CAAC;QACtC,KAAK,EAAE,IAAI,aAAa,CAAC,MAAM,CAAC;KACjC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import type { RequestOptions } from '../core.js';
|
|
2
|
+
import type { PagePromise } from '../pagination.js';
|
|
3
|
+
import { APIResource } from '../resource.js';
|
|
4
|
+
import type { Mailing } from '../types/models.js';
|
|
5
|
+
import type { MailingsCreateCallParams, MailingsCreateParams, MailingsCreateSmsParams, MailingsListParams, MailingsUpdateParams } from '../types/params.js';
|
|
6
|
+
/** Bulk SMS and call campaigns. */
|
|
7
|
+
export declare class MailingsResource extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* List mailings.
|
|
10
|
+
*
|
|
11
|
+
* Mailings (bulk SMS or call campaigns) of the account. Newest first by default (created_at descending, then the id descending).
|
|
12
|
+
*
|
|
13
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, PARSING_DATE_TIME_EXCEPTION.
|
|
14
|
+
*
|
|
15
|
+
* Capability the role of an organization API key needs: `automation.view`.
|
|
16
|
+
*/
|
|
17
|
+
list(params?: MailingsListParams, options?: RequestOptions): PagePromise<Mailing>;
|
|
18
|
+
/**
|
|
19
|
+
* Create mailing.
|
|
20
|
+
*
|
|
21
|
+
* Creates an SMS or call mailing. Use POST /mailing/sms or POST /mailing/call instead.
|
|
22
|
+
*
|
|
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_DONGLE_TARIFF_INVALID, 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.
|
|
24
|
+
*
|
|
25
|
+
* Capability the role of an organization API key needs: `automation.manage`.
|
|
26
|
+
*/
|
|
27
|
+
create(params: MailingsCreateParams, options?: RequestOptions): Promise<Mailing>;
|
|
28
|
+
/**
|
|
29
|
+
* Create SMS mailing.
|
|
30
|
+
*
|
|
31
|
+
* Creates an SMS mailing to the listed phones, contacts and contact groups, sent now or at scheduled_at.
|
|
32
|
+
*
|
|
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_DONGLE_TARIFF_INVALID, 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.
|
|
34
|
+
*
|
|
35
|
+
* Capability the role of an organization API key needs: `automation.manage`.
|
|
36
|
+
*/
|
|
37
|
+
createSms(params: MailingsCreateSmsParams, options?: RequestOptions): Promise<Mailing>;
|
|
38
|
+
/**
|
|
39
|
+
* Create call mailing.
|
|
40
|
+
*
|
|
41
|
+
* Creates a call mailing that plays an audio file (tmp_file_id) to the listed phones, contacts and contact groups.
|
|
42
|
+
*
|
|
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_DONGLE_TARIFF_INVALID, 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.
|
|
44
|
+
*
|
|
45
|
+
* Capability the role of an organization API key needs: `automation.manage`.
|
|
46
|
+
*/
|
|
47
|
+
createCall(params: MailingsCreateCallParams, options?: RequestOptions): Promise<Mailing>;
|
|
48
|
+
/**
|
|
49
|
+
* Get mailing.
|
|
50
|
+
*
|
|
51
|
+
* One mailing of the account with its recipients and its last run.
|
|
52
|
+
*
|
|
53
|
+
* @param mailingId - Identifier in the path
|
|
54
|
+
*
|
|
55
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, MAILING_NOT_FOUND.
|
|
56
|
+
*
|
|
57
|
+
* Capability the role of an organization API key needs: `automation.view`.
|
|
58
|
+
*/
|
|
59
|
+
get(mailingId: number, options?: RequestOptions): Promise<Mailing>;
|
|
60
|
+
/**
|
|
61
|
+
* Update mailing.
|
|
62
|
+
*
|
|
63
|
+
* Changes the mailing; omitted fields keep their values.
|
|
64
|
+
*
|
|
65
|
+
* @param mailingId - Identifier in the path
|
|
66
|
+
*
|
|
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_DONGLE_TARIFF_INVALID, 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.
|
|
68
|
+
*
|
|
69
|
+
* Capability the role of an organization API key needs: `automation.manage`.
|
|
70
|
+
*/
|
|
71
|
+
update(mailingId: number, params?: MailingsUpdateParams, options?: RequestOptions): Promise<Mailing>;
|
|
72
|
+
/**
|
|
73
|
+
* Delete mailing.
|
|
74
|
+
*
|
|
75
|
+
* Deletes the mailing.
|
|
76
|
+
*
|
|
77
|
+
* @param mailingId - Identifier in the path
|
|
78
|
+
*
|
|
79
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, MAILING_NOT_FOUND, MAILING_MANAGEMENT_INVALID_STATUS_FOR_HARD_DELETE, DONGLE_NOT_FOUND_EXCEPTION, MAILING_MANAGEMENT_DONGLE_TARIFF_INVALID.
|
|
80
|
+
*
|
|
81
|
+
* Capability the role of an organization API key needs: `automation.manage`.
|
|
82
|
+
*/
|
|
83
|
+
delete(mailingId: number, options?: RequestOptions): Promise<boolean>;
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=mailings.d.ts.map
|
|
@@ -0,0 +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,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,EACV,wBAAwB,EACxB,oBAAoB,EACpB,uBAAuB,EACvB,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,oBAAoB,CAAC;AAE5B,mCAAmC;AACnC,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;OAQG;IACH,IAAI,CAAC,MAAM,GAAE,kBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,WAAW,CAAC,OAAO,CAAC;IA8BrF;;;;;;;;OAQG;IACH,MAAM,CAAC,MAAM,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IAsBhF;;;;;;;;OAQG;IACH,SAAS,CAAC,MAAM,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IAmBtF;;;;;;;;OAQG;IACH,UAAU,CAAC,MAAM,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IAqBxF;;;;;;;;;;OAUG;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"}
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
// File generated from spec/openapi.yaml by scripts/generate.mjs. Do not edit by hand.
|
|
2
|
+
import { APIResource } from '../resource.js';
|
|
3
|
+
import { asStatus, pathParam } from '../utils.js';
|
|
4
|
+
/** Bulk SMS and call campaigns. */
|
|
5
|
+
export class MailingsResource extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* List mailings.
|
|
8
|
+
*
|
|
9
|
+
* Mailings (bulk SMS or call campaigns) of the account. Newest first by default (created_at descending, then the id descending).
|
|
10
|
+
*
|
|
11
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, PARSING_DATE_TIME_EXCEPTION.
|
|
12
|
+
*
|
|
13
|
+
* Capability the role of an organization API key needs: `automation.view`.
|
|
14
|
+
*/
|
|
15
|
+
list(params = {}, options) {
|
|
16
|
+
return this._client.getPage('/mailing', {
|
|
17
|
+
query: {
|
|
18
|
+
page: params.page,
|
|
19
|
+
limit: params.limit,
|
|
20
|
+
order_by: params.order_by,
|
|
21
|
+
order: params.order,
|
|
22
|
+
from: params.from,
|
|
23
|
+
to: params.to,
|
|
24
|
+
is_deleted: params.is_deleted,
|
|
25
|
+
created_at_from: params.created_at_from,
|
|
26
|
+
created_at_to: params.created_at_to,
|
|
27
|
+
scheduled_at_from: params.scheduled_at_from,
|
|
28
|
+
scheduled_at_to: params.scheduled_at_to,
|
|
29
|
+
'dongle_ids[]': params.dongle_ids,
|
|
30
|
+
dongle_name: params.dongle_name,
|
|
31
|
+
'mailing_status_ids[]': params.mailing_status_ids,
|
|
32
|
+
mailing_type_id: params.mailing_type_id,
|
|
33
|
+
mailing_entity_type_id: params.mailing_entity_type_id,
|
|
34
|
+
'mailing_entity_type_ids[]': params.mailing_entity_type_ids,
|
|
35
|
+
mailing_history_id: params.mailing_history_id,
|
|
36
|
+
'mailing_history_ids[]': params.mailing_history_ids,
|
|
37
|
+
name: params.name,
|
|
38
|
+
text: params.text,
|
|
39
|
+
},
|
|
40
|
+
itemKey: 'mailings',
|
|
41
|
+
options,
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Create mailing.
|
|
46
|
+
*
|
|
47
|
+
* Creates an SMS or call mailing. Use POST /mailing/sms or POST /mailing/call instead.
|
|
48
|
+
*
|
|
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_DONGLE_TARIFF_INVALID, 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.
|
|
50
|
+
*
|
|
51
|
+
* Capability the role of an organization API key needs: `automation.manage`.
|
|
52
|
+
*/
|
|
53
|
+
create(params, options) {
|
|
54
|
+
return this._client
|
|
55
|
+
.request('POST', '/mailing', {
|
|
56
|
+
body: {
|
|
57
|
+
name: params.name,
|
|
58
|
+
text: params.text,
|
|
59
|
+
mailing_type_id: params.mailing_type_id,
|
|
60
|
+
mailing_entity_type_id: params.mailing_entity_type_id,
|
|
61
|
+
dongle_id: params.dongle_id,
|
|
62
|
+
scheduled_at: params.scheduled_at,
|
|
63
|
+
mailing_status_id: params.mailing_status_id,
|
|
64
|
+
is_call_record: params.is_call_record,
|
|
65
|
+
tmp_file_id: params.tmp_file_id,
|
|
66
|
+
mailing_phones: params.mailing_phones,
|
|
67
|
+
mailing_contact_ids: params.mailing_contact_ids,
|
|
68
|
+
mailing_contact_group_ids: params.mailing_contact_group_ids,
|
|
69
|
+
},
|
|
70
|
+
options,
|
|
71
|
+
})
|
|
72
|
+
.then((data) => data);
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Create SMS mailing.
|
|
76
|
+
*
|
|
77
|
+
* Creates an SMS mailing to the listed phones, contacts and contact groups, sent now or at scheduled_at.
|
|
78
|
+
*
|
|
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_DONGLE_TARIFF_INVALID, 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.
|
|
80
|
+
*
|
|
81
|
+
* Capability the role of an organization API key needs: `automation.manage`.
|
|
82
|
+
*/
|
|
83
|
+
createSms(params, options) {
|
|
84
|
+
return this._client
|
|
85
|
+
.request('POST', '/mailing/sms', {
|
|
86
|
+
body: {
|
|
87
|
+
name: params.name,
|
|
88
|
+
text: params.text,
|
|
89
|
+
mailing_type_id: params.mailing_type_id,
|
|
90
|
+
dongle_id: params.dongle_id,
|
|
91
|
+
scheduled_at: params.scheduled_at,
|
|
92
|
+
mailing_status_id: params.mailing_status_id,
|
|
93
|
+
mailing_phones: params.mailing_phones,
|
|
94
|
+
mailing_contact_ids: params.mailing_contact_ids,
|
|
95
|
+
mailing_contact_group_ids: params.mailing_contact_group_ids,
|
|
96
|
+
},
|
|
97
|
+
options,
|
|
98
|
+
})
|
|
99
|
+
.then((data) => data);
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Create call mailing.
|
|
103
|
+
*
|
|
104
|
+
* Creates a call mailing that plays an audio file (tmp_file_id) to the listed phones, contacts and contact groups.
|
|
105
|
+
*
|
|
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_DONGLE_TARIFF_INVALID, 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.
|
|
107
|
+
*
|
|
108
|
+
* Capability the role of an organization API key needs: `automation.manage`.
|
|
109
|
+
*/
|
|
110
|
+
createCall(params, options) {
|
|
111
|
+
return this._client
|
|
112
|
+
.request('POST', '/mailing/call', {
|
|
113
|
+
body: {
|
|
114
|
+
name: params.name,
|
|
115
|
+
text: params.text,
|
|
116
|
+
mailing_type_id: params.mailing_type_id,
|
|
117
|
+
dongle_id: params.dongle_id,
|
|
118
|
+
is_call_record: params.is_call_record,
|
|
119
|
+
tmp_file_id: params.tmp_file_id,
|
|
120
|
+
scheduled_at: params.scheduled_at,
|
|
121
|
+
mailing_status_id: params.mailing_status_id,
|
|
122
|
+
mailing_phones: params.mailing_phones,
|
|
123
|
+
mailing_contact_ids: params.mailing_contact_ids,
|
|
124
|
+
mailing_contact_group_ids: params.mailing_contact_group_ids,
|
|
125
|
+
},
|
|
126
|
+
options,
|
|
127
|
+
})
|
|
128
|
+
.then((data) => data);
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Get mailing.
|
|
132
|
+
*
|
|
133
|
+
* One mailing of the account with its recipients and its last run.
|
|
134
|
+
*
|
|
135
|
+
* @param mailingId - Identifier in the path
|
|
136
|
+
*
|
|
137
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, MAILING_NOT_FOUND.
|
|
138
|
+
*
|
|
139
|
+
* Capability the role of an organization API key needs: `automation.view`.
|
|
140
|
+
*/
|
|
141
|
+
get(mailingId, options) {
|
|
142
|
+
return this._client
|
|
143
|
+
.request('GET', `/mailing/${pathParam(mailingId)}`, { options })
|
|
144
|
+
.then((data) => data);
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Update mailing.
|
|
148
|
+
*
|
|
149
|
+
* Changes the mailing; omitted fields keep their values.
|
|
150
|
+
*
|
|
151
|
+
* @param mailingId - Identifier in the path
|
|
152
|
+
*
|
|
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_DONGLE_TARIFF_INVALID, 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.
|
|
154
|
+
*
|
|
155
|
+
* Capability the role of an organization API key needs: `automation.manage`.
|
|
156
|
+
*/
|
|
157
|
+
update(mailingId, params = {}, options) {
|
|
158
|
+
return this._client
|
|
159
|
+
.request('PUT', `/mailing/${pathParam(mailingId)}`, {
|
|
160
|
+
body: {
|
|
161
|
+
name: params.name,
|
|
162
|
+
text: params.text,
|
|
163
|
+
mailing_type_id: params.mailing_type_id,
|
|
164
|
+
mailing_status_id: params.mailing_status_id,
|
|
165
|
+
scheduled_at: params.scheduled_at,
|
|
166
|
+
is_deleted: params.is_deleted,
|
|
167
|
+
tmp_file_id: params.tmp_file_id,
|
|
168
|
+
mailing_phones: params.mailing_phones,
|
|
169
|
+
mailing_contact_ids: params.mailing_contact_ids,
|
|
170
|
+
mailing_contact_group_ids: params.mailing_contact_group_ids,
|
|
171
|
+
},
|
|
172
|
+
options,
|
|
173
|
+
})
|
|
174
|
+
.then((data) => data);
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Delete mailing.
|
|
178
|
+
*
|
|
179
|
+
* Deletes the mailing.
|
|
180
|
+
*
|
|
181
|
+
* @param mailingId - Identifier in the path
|
|
182
|
+
*
|
|
183
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, MAILING_NOT_FOUND, MAILING_MANAGEMENT_INVALID_STATUS_FOR_HARD_DELETE, DONGLE_NOT_FOUND_EXCEPTION, MAILING_MANAGEMENT_DONGLE_TARIFF_INVALID.
|
|
184
|
+
*
|
|
185
|
+
* Capability the role of an organization API key needs: `automation.manage`.
|
|
186
|
+
*/
|
|
187
|
+
delete(mailingId, options) {
|
|
188
|
+
return this._client.request('DELETE', `/mailing/${pathParam(mailingId)}`, { options }).then(asStatus);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
//# sourceMappingURL=mailings.js.map
|
|
@@ -0,0 +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;;;;;;;;OAQG;IACH,IAAI,CAAC,SAA6B,EAAE,EAAE,OAAwB;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAAU,UAAU,EAAE;YAC/C,KAAK,EAAE;gBACL,IAAI,EAAE,MAAM,CAAC,IAAI;gBACjB,KAAK,EAAE,MAAM,CAAC,KAAK;gBACnB,QAAQ,EAAE,MAAM,CAAC,QAAQ;gBACzB,KAAK,EAAE,MAAM,CAAC,KAAK;gBACnB,IAAI,EAAE,MAAM,CAAC,IAAI;gBACjB,EAAE,EAAE,MAAM,CAAC,EAAE;gBACb,UAAU,EAAE,MAAM,CAAC,UAAU;gBAC7B,eAAe,EAAE,MAAM,CAAC,eAAe;gBACvC,aAAa,EAAE,MAAM,CAAC,aAAa;gBACnC,iBAAiB,EAAE,MAAM,CAAC,iBAAiB;gBAC3C,eAAe,EAAE,MAAM,CAAC,eAAe;gBACvC,cAAc,EAAE,MAAM,CAAC,UAAU;gBACjC,WAAW,EAAE,MAAM,CAAC,WAAW;gBAC/B,sBAAsB,EAAE,MAAM,CAAC,kBAAkB;gBACjD,eAAe,EAAE,MAAM,CAAC,eAAe;gBACvC,sBAAsB,EAAE,MAAM,CAAC,sBAAsB;gBACrD,2BAA2B,EAAE,MAAM,CAAC,uBAAuB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,EAAE,EAAE,CAAC,IAAe,CAAC,CAAC;IACrC,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,SAAiB,EAAE,SAA+B,EAAE,EAAE,OAAwB;QACnF,OAAO,IAAI,CAAC,OAAO;aAChB,OAAO,CAAC,KAAK,EAAE,YAAY,SAAS,CAAC,SAAS,CAAC,EAAE,EAAE;YAClD,IAAI,EAAE;gBACJ,IAAI,EAAE,MAAM,CAAC,IAAI;gBACjB,IAAI,EAAE,MAAM,CAAC,IAAI;gBACjB,eAAe,EAAE,MAAM,CAAC,eAAe;gBACvC,iBAAiB,EAAE,MAAM,CAAC,iBAAiB;gBAC3C,YAAY,EAAE,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,51 @@
|
|
|
1
|
+
import type { RequestOptions } from '../core.js';
|
|
2
|
+
import { APIResource } from '../resource.js';
|
|
3
|
+
import type { PublicVpnSession } from '../types/models.js';
|
|
4
|
+
/** VPN access through a modem. */
|
|
5
|
+
export declare class PublicVpnResource extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Enable public VPN.
|
|
8
|
+
*
|
|
9
|
+
* Creates the VPN account of the modem on the gateway and answers {"status": true}. The credentials are not in the answer: read public_vpn_login, public_vpn_password and public_vpn_server from GET /dongle (full mode). is_public_vpn_enabled of the modem becomes true.
|
|
10
|
+
*
|
|
11
|
+
* @param dongleId - ID of the dongle
|
|
12
|
+
*
|
|
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`.
|
|
16
|
+
*/
|
|
17
|
+
enable(dongleId: number, options?: RequestOptions): Promise<boolean>;
|
|
18
|
+
/**
|
|
19
|
+
* Disable public VPN.
|
|
20
|
+
*
|
|
21
|
+
* Removes the VPN account of the modem from the gateway and drops its sessions; answers {"status": true}. is_public_vpn_enabled becomes false; the login is kept and reused by a later enable.
|
|
22
|
+
*
|
|
23
|
+
* @param dongleId - ID of the dongle
|
|
24
|
+
*
|
|
25
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_PUBLIC_VPN_ALREADY_DISABLED_EXCEPTION.
|
|
26
|
+
*
|
|
27
|
+
* Capability the role of an organization API key needs: `network.manage`.
|
|
28
|
+
*/
|
|
29
|
+
disable(dongleId: number, options?: RequestOptions): Promise<boolean>;
|
|
30
|
+
/**
|
|
31
|
+
* Refresh public VPN password.
|
|
32
|
+
*
|
|
33
|
+
* The response carries only status; the new password is returned by GET /dongle (public_vpn_password, full mode). Requires an active tariff.
|
|
34
|
+
*
|
|
35
|
+
* @param dongleId - ID of the dongle
|
|
36
|
+
*
|
|
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`.
|
|
40
|
+
*/
|
|
41
|
+
refreshPassword(dongleId: number, options?: RequestOptions): Promise<boolean>;
|
|
42
|
+
/**
|
|
43
|
+
* List public VPN sessions.
|
|
44
|
+
*
|
|
45
|
+
* Live VPN sessions of the modems of the account, as the VPN gateway reports them. Not paginated.
|
|
46
|
+
*
|
|
47
|
+
* Capability the role of an organization API key needs: `network.view`.
|
|
48
|
+
*/
|
|
49
|
+
listSessions(options?: RequestOptions): Promise<Array<PublicVpnSession>>;
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=public-vpn.d.ts.map
|
|
@@ -0,0 +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;;;;;;;;;;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;;;;;;OAMG;IACH,YAAY,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;CAKzE"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
// File generated from spec/openapi.yaml by scripts/generate.mjs. Do not edit by hand.
|
|
2
|
+
import { APIResource } from '../resource.js';
|
|
3
|
+
import { asArray, asStatus, pathParam } from '../utils.js';
|
|
4
|
+
/** VPN access through a modem. */
|
|
5
|
+
export class PublicVpnResource extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Enable public VPN.
|
|
8
|
+
*
|
|
9
|
+
* Creates the VPN account of the modem on the gateway and answers {"status": true}. The credentials are not in the answer: read public_vpn_login, public_vpn_password and public_vpn_server from GET /dongle (full mode). is_public_vpn_enabled of the modem becomes true.
|
|
10
|
+
*
|
|
11
|
+
* @param dongleId - ID of the dongle
|
|
12
|
+
*
|
|
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`.
|
|
16
|
+
*/
|
|
17
|
+
enable(dongleId, options) {
|
|
18
|
+
return this._client
|
|
19
|
+
.request('POST', `/dongle/${pathParam(dongleId)}/public-vpn/enable`, { options })
|
|
20
|
+
.then(asStatus);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Disable public VPN.
|
|
24
|
+
*
|
|
25
|
+
* Removes the VPN account of the modem from the gateway and drops its sessions; answers {"status": true}. is_public_vpn_enabled becomes false; the login is kept and reused by a later enable.
|
|
26
|
+
*
|
|
27
|
+
* @param dongleId - ID of the dongle
|
|
28
|
+
*
|
|
29
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_PUBLIC_VPN_ALREADY_DISABLED_EXCEPTION.
|
|
30
|
+
*
|
|
31
|
+
* Capability the role of an organization API key needs: `network.manage`.
|
|
32
|
+
*/
|
|
33
|
+
disable(dongleId, options) {
|
|
34
|
+
return this._client
|
|
35
|
+
.request('POST', `/dongle/${pathParam(dongleId)}/public-vpn/disable`, { options })
|
|
36
|
+
.then(asStatus);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Refresh public VPN password.
|
|
40
|
+
*
|
|
41
|
+
* The response carries only status; the new password is returned by GET /dongle (public_vpn_password, full mode). Requires an active tariff.
|
|
42
|
+
*
|
|
43
|
+
* @param dongleId - ID of the dongle
|
|
44
|
+
*
|
|
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`.
|
|
48
|
+
*/
|
|
49
|
+
refreshPassword(dongleId, options) {
|
|
50
|
+
return this._client
|
|
51
|
+
.request('POST', `/dongle/${pathParam(dongleId)}/public-vpn/refresh-password`, { options })
|
|
52
|
+
.then(asStatus);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* List public VPN sessions.
|
|
56
|
+
*
|
|
57
|
+
* Live VPN sessions of the modems of the account, as the VPN gateway reports them. Not paginated.
|
|
58
|
+
*
|
|
59
|
+
* Capability the role of an organization API key needs: `network.view`.
|
|
60
|
+
*/
|
|
61
|
+
listSessions(options) {
|
|
62
|
+
return this._client
|
|
63
|
+
.request('GET', '/public-vpn/connect-session-list', { options })
|
|
64
|
+
.then((data) => asArray(data, 'connect_sessions'));
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=public-vpn.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-vpn.js","sourceRoot":"","sources":["../../src/resources/public-vpn.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAGtF,OAAO,EAA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ination.js';
|
|
3
|
+
import { APIResource } from '../resource.js';
|
|
4
|
+
import type { Redirection } from '../types/models.js';
|
|
5
|
+
import type { RedirectionsCreateParams, RedirectionsListParams, RedirectionsUpdateParams } from '../types/params.js';
|
|
6
|
+
/** Rules for incoming SMS and calls: forwarding, auto reply, HTTP callback. */
|
|
7
|
+
export declare class RedirectionsResource extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* List redirections.
|
|
10
|
+
*
|
|
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
|
+
*
|
|
13
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, PARSING_DATE_TIME_EXCEPTION.
|
|
14
|
+
*
|
|
15
|
+
* Capability the role of an organization API key needs: `automation.view`.
|
|
16
|
+
*/
|
|
17
|
+
list(params?: RedirectionsListParams, options?: RequestOptions): PagePromise<Redirection>;
|
|
18
|
+
/**
|
|
19
|
+
* Create redirection.
|
|
20
|
+
*
|
|
21
|
+
* Creates a redirection rule; condition and params are checked on save (see RedirectionCondition and RedirectionParams).
|
|
22
|
+
*
|
|
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`.
|
|
26
|
+
*/
|
|
27
|
+
create(params: RedirectionsCreateParams, options?: RequestOptions): Promise<Redirection>;
|
|
28
|
+
/**
|
|
29
|
+
* Get redirection.
|
|
30
|
+
*
|
|
31
|
+
* One redirection rule of the account.
|
|
32
|
+
*
|
|
33
|
+
* @param redirectionId - Identifier in the path
|
|
34
|
+
*
|
|
35
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, REDIRECTION_NOT_FOUND_EXCEPTION.
|
|
36
|
+
*
|
|
37
|
+
* Capability the role of an organization API key needs: `automation.view`.
|
|
38
|
+
*/
|
|
39
|
+
get(redirectionId: number, options?: RequestOptions): Promise<Redirection>;
|
|
40
|
+
/**
|
|
41
|
+
* Update redirection.
|
|
42
|
+
*
|
|
43
|
+
* Replaces the redirection rule; the body is checked as on create.
|
|
44
|
+
*
|
|
45
|
+
* @param redirectionId - Identifier in the path
|
|
46
|
+
*
|
|
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`.
|
|
50
|
+
*/
|
|
51
|
+
update(redirectionId: number, params: RedirectionsUpdateParams, options?: RequestOptions): Promise<Redirection>;
|
|
52
|
+
/**
|
|
53
|
+
* Delete redirection.
|
|
54
|
+
*
|
|
55
|
+
* Deletes the redirection rule.
|
|
56
|
+
*
|
|
57
|
+
* @param redirectionId - Identifier in the path
|
|
58
|
+
*
|
|
59
|
+
* Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, REDIRECTION_NOT_FOUND_EXCEPTION.
|
|
60
|
+
*
|
|
61
|
+
* Capability the role of an organization API key needs: `automation.manage`.
|
|
62
|
+
*/
|
|
63
|
+
delete(redirectionId: number, options?: RequestOptions): Promise<boolean>;
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=redirections.d.ts.map
|
|
@@ -0,0 +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;;;;;;;;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"}
|