@sinch/elastic-sip-trunking 1.1.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/README.md +121 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +33 -0
- package/dist/index.js.map +1 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +18 -0
- package/dist/models/index.js.map +1 -0
- package/dist/models/v1/access-control-list/access-control-list.d.ts +19 -0
- package/dist/models/v1/access-control-list/access-control-list.js +3 -0
- package/dist/models/v1/access-control-list/access-control-list.js.map +1 -0
- package/dist/models/v1/access-control-list/index.d.ts +1 -0
- package/dist/models/v1/access-control-list/index.js +3 -0
- package/dist/models/v1/access-control-list/index.js.map +1 -0
- package/dist/models/v1/add-access-control-list-to-trunk/add-access-control-list-to-trunk.d.ts +4 -0
- package/dist/models/v1/add-access-control-list-to-trunk/add-access-control-list-to-trunk.js +3 -0
- package/dist/models/v1/add-access-control-list-to-trunk/add-access-control-list-to-trunk.js.map +1 -0
- package/dist/models/v1/add-access-control-list-to-trunk/index.d.ts +1 -0
- package/dist/models/v1/add-access-control-list-to-trunk/index.js +3 -0
- package/dist/models/v1/add-access-control-list-to-trunk/index.js.map +1 -0
- package/dist/models/v1/call/call.d.ts +35 -0
- package/dist/models/v1/call/call.js +3 -0
- package/dist/models/v1/call/call.js.map +1 -0
- package/dist/models/v1/call/index.d.ts +1 -0
- package/dist/models/v1/call/index.js +3 -0
- package/dist/models/v1/call/index.js.map +1 -0
- package/dist/models/v1/country-permission/country-permission.d.ts +15 -0
- package/dist/models/v1/country-permission/country-permission.js +3 -0
- package/dist/models/v1/country-permission/country-permission.js.map +1 -0
- package/dist/models/v1/country-permission/index.d.ts +1 -0
- package/dist/models/v1/country-permission/index.js +3 -0
- package/dist/models/v1/country-permission/index.js.map +1 -0
- package/dist/models/v1/enum.d.ts +2 -0
- package/dist/models/v1/enum.js +3 -0
- package/dist/models/v1/enum.js.map +1 -0
- package/dist/models/v1/index.d.ts +14 -0
- package/dist/models/v1/index.js +31 -0
- package/dist/models/v1/index.js.map +1 -0
- package/dist/models/v1/ip-range/index.d.ts +1 -0
- package/dist/models/v1/ip-range/index.js +3 -0
- package/dist/models/v1/ip-range/index.js.map +1 -0
- package/dist/models/v1/ip-range/ip-range.d.ts +21 -0
- package/dist/models/v1/ip-range/ip-range.js +3 -0
- package/dist/models/v1/ip-range/ip-range.js.map +1 -0
- package/dist/models/v1/list-country-permissions-response/index.d.ts +1 -0
- package/dist/models/v1/list-country-permissions-response/index.js +3 -0
- package/dist/models/v1/list-country-permissions-response/index.js.map +1 -0
- package/dist/models/v1/list-country-permissions-response/list-country-permissions-response.d.ts +5 -0
- package/dist/models/v1/list-country-permissions-response/list-country-permissions-response.js +3 -0
- package/dist/models/v1/list-country-permissions-response/list-country-permissions-response.js.map +1 -0
- package/dist/models/v1/money/index.d.ts +1 -0
- package/dist/models/v1/money/index.js +3 -0
- package/dist/models/v1/money/index.js.map +1 -0
- package/dist/models/v1/money/money.d.ts +9 -0
- package/dist/models/v1/money/money.js +3 -0
- package/dist/models/v1/money/money.js.map +1 -0
- package/dist/models/v1/phoneNumber/index.d.ts +1 -0
- package/dist/models/v1/phoneNumber/index.js +3 -0
- package/dist/models/v1/phoneNumber/index.js.map +1 -0
- package/dist/models/v1/phoneNumber/phoneNumber.d.ts +17 -0
- package/dist/models/v1/phoneNumber/phoneNumber.js +3 -0
- package/dist/models/v1/phoneNumber/phoneNumber.js.map +1 -0
- package/dist/models/v1/requests/access-control-list/access-control-list-request-data.d.ts +43 -0
- package/dist/models/v1/requests/access-control-list/access-control-list-request-data.js +3 -0
- package/dist/models/v1/requests/access-control-list/access-control-list-request-data.js.map +1 -0
- package/dist/models/v1/requests/calls-history/calls-history-request-data.d.ts +19 -0
- package/dist/models/v1/requests/calls-history/calls-history-request-data.js +3 -0
- package/dist/models/v1/requests/calls-history/calls-history-request-data.js.map +1 -0
- package/dist/models/v1/requests/country-permissions/country-permissions-request-data.d.ts +13 -0
- package/dist/models/v1/requests/country-permissions/country-permissions-request-data.js +3 -0
- package/dist/models/v1/requests/country-permissions/country-permissions-request-data.js.map +1 -0
- package/dist/models/v1/requests/index.d.ts +5 -0
- package/dist/models/v1/requests/index.js +22 -0
- package/dist/models/v1/requests/index.js.map +1 -0
- package/dist/models/v1/requests/sip-endpoints/sip-endpoints-request-data.d.ts +35 -0
- package/dist/models/v1/requests/sip-endpoints/sip-endpoints-request-data.js +3 -0
- package/dist/models/v1/requests/sip-endpoints/sip-endpoints-request-data.js.map +1 -0
- package/dist/models/v1/requests/sip-trunks/sip-trunks-request-data.d.ts +44 -0
- package/dist/models/v1/requests/sip-trunks/sip-trunks-request-data.js +3 -0
- package/dist/models/v1/requests/sip-trunks/sip-trunks-request-data.js.map +1 -0
- package/dist/models/v1/sip-endpoint/index.d.ts +1 -0
- package/dist/models/v1/sip-endpoint/index.js +3 -0
- package/dist/models/v1/sip-endpoint/index.js.map +1 -0
- package/dist/models/v1/sip-endpoint/sip-endpoint.d.ts +25 -0
- package/dist/models/v1/sip-endpoint/sip-endpoint.js +3 -0
- package/dist/models/v1/sip-endpoint/sip-endpoint.js.map +1 -0
- package/dist/models/v1/sip-trunk/index.d.ts +1 -0
- package/dist/models/v1/sip-trunk/index.js +3 -0
- package/dist/models/v1/sip-trunk/index.js.map +1 -0
- package/dist/models/v1/sip-trunk/sip-trunk.d.ts +25 -0
- package/dist/models/v1/sip-trunk/sip-trunk.js +3 -0
- package/dist/models/v1/sip-trunk/sip-trunk.js.map +1 -0
- package/dist/models/v1/update-access-control-list-request/index.d.ts +1 -0
- package/dist/models/v1/update-access-control-list-request/index.js +3 -0
- package/dist/models/v1/update-access-control-list-request/index.js.map +1 -0
- package/dist/models/v1/update-access-control-list-request/update-access-control-list-request.d.ts +9 -0
- package/dist/models/v1/update-access-control-list-request/update-access-control-list-request.js +3 -0
- package/dist/models/v1/update-access-control-list-request/update-access-control-list-request.js.map +1 -0
- package/dist/models/v1/update-country-permission-request/index.d.ts +1 -0
- package/dist/models/v1/update-country-permission-request/index.js +3 -0
- package/dist/models/v1/update-country-permission-request/index.js.map +1 -0
- package/dist/models/v1/update-country-permission-request/update-country-permission-request.d.ts +4 -0
- package/dist/models/v1/update-country-permission-request/update-country-permission-request.js +3 -0
- package/dist/models/v1/update-country-permission-request/update-country-permission-request.js.map +1 -0
- package/dist/rest/index.d.ts +1 -0
- package/dist/rest/index.js +18 -0
- package/dist/rest/index.js.map +1 -0
- package/dist/rest/v1/access-control-list/access-control-list-api.d.ts +81 -0
- package/dist/rest/v1/access-control-list/access-control-list-api.jest.fixture.d.ts +50 -0
- package/dist/rest/v1/access-control-list/access-control-list-api.jest.fixture.js +53 -0
- package/dist/rest/v1/access-control-list/access-control-list-api.jest.fixture.js.map +1 -0
- package/dist/rest/v1/access-control-list/access-control-list-api.js +244 -0
- package/dist/rest/v1/access-control-list/access-control-list-api.js.map +1 -0
- package/dist/rest/v1/access-control-list/index.d.ts +2 -0
- package/dist/rest/v1/access-control-list/index.js +19 -0
- package/dist/rest/v1/access-control-list/index.js.map +1 -0
- package/dist/rest/v1/calls-history/calls-history-api.d.ts +18 -0
- package/dist/rest/v1/calls-history/calls-history-api.jest.fixture.d.ts +10 -0
- package/dist/rest/v1/calls-history/calls-history-api.jest.fixture.js +13 -0
- package/dist/rest/v1/calls-history/calls-history-api.jest.fixture.js.map +1 -0
- package/dist/rest/v1/calls-history/calls-history-api.js +48 -0
- package/dist/rest/v1/calls-history/calls-history-api.js.map +1 -0
- package/dist/rest/v1/calls-history/index.d.ts +2 -0
- package/dist/rest/v1/calls-history/index.js +19 -0
- package/dist/rest/v1/calls-history/index.js.map +1 -0
- package/dist/rest/v1/country-permissions/country-permissions-api.d.ts +29 -0
- package/dist/rest/v1/country-permissions/country-permissions-api.jest.fixture.d.ts +21 -0
- package/dist/rest/v1/country-permissions/country-permissions-api.jest.fixture.js +21 -0
- package/dist/rest/v1/country-permissions/country-permissions-api.jest.fixture.js.map +1 -0
- package/dist/rest/v1/country-permissions/country-permissions-api.js +87 -0
- package/dist/rest/v1/country-permissions/country-permissions-api.js.map +1 -0
- package/dist/rest/v1/country-permissions/index.d.ts +2 -0
- package/dist/rest/v1/country-permissions/index.js +19 -0
- package/dist/rest/v1/country-permissions/index.js.map +1 -0
- package/dist/rest/v1/elastic-sip-trunking-domain-api.d.ts +25 -0
- package/dist/rest/v1/elastic-sip-trunking-domain-api.js +58 -0
- package/dist/rest/v1/elastic-sip-trunking-domain-api.js.map +1 -0
- package/dist/rest/v1/elastic-sip-trunking-service.d.ts +20 -0
- package/dist/rest/v1/elastic-sip-trunking-service.js +31 -0
- package/dist/rest/v1/elastic-sip-trunking-service.js.map +1 -0
- package/dist/rest/v1/index.d.ts +6 -0
- package/dist/rest/v1/index.js +23 -0
- package/dist/rest/v1/index.js.map +1 -0
- package/dist/rest/v1/sip-endpoints/index.d.ts +2 -0
- package/dist/rest/v1/sip-endpoints/index.js +19 -0
- package/dist/rest/v1/sip-endpoints/index.js.map +1 -0
- package/dist/rest/v1/sip-endpoints/sip-endpoints-api.d.ts +42 -0
- package/dist/rest/v1/sip-endpoints/sip-endpoints-api.jest.fixture.d.ts +26 -0
- package/dist/rest/v1/sip-endpoints/sip-endpoints-api.jest.fixture.js +29 -0
- package/dist/rest/v1/sip-endpoints/sip-endpoints-api.jest.fixture.js.map +1 -0
- package/dist/rest/v1/sip-endpoints/sip-endpoints-api.js +143 -0
- package/dist/rest/v1/sip-endpoints/sip-endpoints-api.js.map +1 -0
- package/dist/rest/v1/sip-trunks/index.d.ts +2 -0
- package/dist/rest/v1/sip-trunks/index.js +19 -0
- package/dist/rest/v1/sip-trunks/index.js.map +1 -0
- package/dist/rest/v1/sip-trunks/sip-trunks-api.d.ts +61 -0
- package/dist/rest/v1/sip-trunks/sip-trunks-api.jest.fixture.d.ts +42 -0
- package/dist/rest/v1/sip-trunks/sip-trunks-api.jest.fixture.js +41 -0
- package/dist/rest/v1/sip-trunks/sip-trunks-api.jest.fixture.js.map +1 -0
- package/dist/rest/v1/sip-trunks/sip-trunks-api.js +219 -0
- package/dist/rest/v1/sip-trunks/sip-trunks-api.js.map +1 -0
- package/package.json +36 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CallResult, DirectionEnum } from '../../enum';
|
|
2
|
+
export interface FindCallsRequestData {
|
|
3
|
+
/** A phone number that you want to use to filter results. You can pass a partial number to get all calls sent to numbers that start with the number you passed. */
|
|
4
|
+
'from'?: string;
|
|
5
|
+
/** Only include calls made to this number or address. You can pass a partial number to get all calls sent to numbers that start with the number you passed. */
|
|
6
|
+
'to'?: string;
|
|
7
|
+
/** Only include calls made from this trunk. */
|
|
8
|
+
'trunkId'?: string;
|
|
9
|
+
/** Filter calls based on `createTime`. You make the query more precise, fewer results will be returned. For example, 2021-02-01 will return all calls from the first of February 2021, and 2021-02-01T14:00:00Z will return all calls after 14:00 on the first of February. This field also supports <= and >= to search for calls in a range ?createTime>=2021-10-01&createTime<=2021-10-30 to get a list if calls for october 2021 It is also possible to submit partial dates for example createTime=2021-02 will return all calls for February ***Defaults to 24 hours*** ***Internal notes*** If a customer submits = and not <> we should add min and max for the date range psueodo sql ``` createTime = 2021-02-01 select * from calls where createTime >= 2021-02-01 and createTime <= 2021-02-01T23:59:59Z createTime = 2021-02-01T08 select * from calls where createTime >= 2021-02-01T08:00:00 and createTime <= 2021-02-01T08:59:59Z ``` but if they submit < or > we should just use the value they submitted and parse it a complete date */
|
|
10
|
+
'createTime'?: string;
|
|
11
|
+
/** only include calls by on the callResult(s), example callResult=COMPLETED will return all calls which have completed normally. */
|
|
12
|
+
'callResult'?: CallResult;
|
|
13
|
+
/** only include calls by on the direction(s), example direction=INBOUND,OUTBOUND will return all calls that are inbound or outbound. */
|
|
14
|
+
'direction'?: DirectionEnum;
|
|
15
|
+
/** The page you want to fetch */
|
|
16
|
+
'page'?: string;
|
|
17
|
+
/** The maximum number of items to return per request. The default is 100 and the maximum is 1000. If you need to export larger amounts and pagination is not suitable for you can use the Export function in the dashboard. */
|
|
18
|
+
'pageSize'?: number;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calls-history-request-data.js","sourceRoot":"","sources":["../../../../../src/models/v1/requests/calls-history/calls-history-request-data.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { UpdateCountryPermissionRequest } from '../../update-country-permission-request';
|
|
2
|
+
export interface GetCountryPermissionRequestData {
|
|
3
|
+
/** The ISO code of the country. */
|
|
4
|
+
'isoCode': string;
|
|
5
|
+
}
|
|
6
|
+
export interface ListCountryPermissionsRequestData {
|
|
7
|
+
}
|
|
8
|
+
export interface UpdateCountryPermissionRequestData {
|
|
9
|
+
/** The ISO code of the country. */
|
|
10
|
+
'isoCode': string;
|
|
11
|
+
/** The body containing the Country Permission details to update */
|
|
12
|
+
'updateCountryPermissionRequestBody': UpdateCountryPermissionRequest;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"country-permissions-request-data.js","sourceRoot":"","sources":["../../../../../src/models/v1/requests/country-permissions/country-permissions-request-data.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * from './access-control-list/access-control-list-request-data';
|
|
2
|
+
export * from './calls-history/calls-history-request-data';
|
|
3
|
+
export * from './country-permissions/country-permissions-request-data';
|
|
4
|
+
export * from './sip-endpoints/sip-endpoints-request-data';
|
|
5
|
+
export * from './sip-trunks/sip-trunks-request-data';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./access-control-list/access-control-list-request-data"), exports);
|
|
18
|
+
__exportStar(require("./calls-history/calls-history-request-data"), exports);
|
|
19
|
+
__exportStar(require("./country-permissions/country-permissions-request-data"), exports);
|
|
20
|
+
__exportStar(require("./sip-endpoints/sip-endpoints-request-data"), exports);
|
|
21
|
+
__exportStar(require("./sip-trunks/sip-trunks-request-data"), exports);
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/requests/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yFAAuE;AACvE,6EAA2D;AAC3D,yFAAuE;AACvE,6EAA2D;AAC3D,uEAAqD"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { SipEndpoint } from '../../sip-endpoint';
|
|
2
|
+
export interface CreateSipEndpointRequestData {
|
|
3
|
+
/** The ID of the SIP trunk. */
|
|
4
|
+
'sipTrunkId': string;
|
|
5
|
+
/** The body containing the SIP Endpoint to create for the SIP trunk */
|
|
6
|
+
'createSipEndpointRequestBody': SipEndpoint;
|
|
7
|
+
}
|
|
8
|
+
export interface DeleteSipEndpointRequestData {
|
|
9
|
+
/** The ID of the SIP trunk. */
|
|
10
|
+
'sipTrunkId': string;
|
|
11
|
+
/** The ID of the SIP endpoint. */
|
|
12
|
+
'sipEndpointId': string;
|
|
13
|
+
}
|
|
14
|
+
export interface ListSipEndpointsRequestData {
|
|
15
|
+
/** The ID of the SIP trunk. */
|
|
16
|
+
'sipTrunkId': string;
|
|
17
|
+
/** The page you want to fetch, can set to 1 for first page, or omitted for first page */
|
|
18
|
+
'page'?: number;
|
|
19
|
+
/** The size of each page to fetch */
|
|
20
|
+
'pageSize'?: number;
|
|
21
|
+
}
|
|
22
|
+
export interface GetSipEndpointByIdRequestData {
|
|
23
|
+
/** The ID of the SIP trunk. */
|
|
24
|
+
'sipTrunkId': string;
|
|
25
|
+
/** The ID of the SIP endpoint. */
|
|
26
|
+
'sipEndpointId': string;
|
|
27
|
+
}
|
|
28
|
+
export interface UpdateSipEndpointRequestData {
|
|
29
|
+
/** The ID of the SIP trunk. */
|
|
30
|
+
'sipTrunkId': string;
|
|
31
|
+
/** The ID of the SIP endpoint. */
|
|
32
|
+
'sipEndpointId': string;
|
|
33
|
+
/** The body containing the SIP Endpoint details to update */
|
|
34
|
+
'updateSipEndpointRequestBody': SipEndpoint;
|
|
35
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sip-endpoints-request-data.js","sourceRoot":"","sources":["../../../../../src/models/v1/requests/sip-endpoints/sip-endpoints-request-data.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { AddAccessControlListToTrunk } from '../../add-access-control-list-to-trunk';
|
|
2
|
+
import { SipTrunk } from '../../sip-trunk';
|
|
3
|
+
export interface AddAccessControlListToTrunkRequestData {
|
|
4
|
+
/** The ID of the trunk that you want to work with */
|
|
5
|
+
'trunkId': string;
|
|
6
|
+
/** The body containing the list of ACLs to add to the SIP trunk */
|
|
7
|
+
'addAccessControlListToTrunkRequestBody': AddAccessControlListToTrunk;
|
|
8
|
+
}
|
|
9
|
+
export interface CreateSipTrunkRequestData {
|
|
10
|
+
/** The SIP trunk details to be used to create a SIP trunk */
|
|
11
|
+
'createSipTrunkRequestBody': SipTrunk;
|
|
12
|
+
}
|
|
13
|
+
export interface DeleteAccessControlListFromTrunkRequestData {
|
|
14
|
+
/** The ID of the trunk that you want to work with */
|
|
15
|
+
'trunkId': string;
|
|
16
|
+
/** The ID of the access control list entry. that you want to remove from trunk */
|
|
17
|
+
'accessControlListId': string;
|
|
18
|
+
}
|
|
19
|
+
export interface DeleteSipTrunkRequestData {
|
|
20
|
+
/** The ID of the SIP trunk. */
|
|
21
|
+
'sipTrunkId': string;
|
|
22
|
+
}
|
|
23
|
+
export interface ListAccessControlListsForTrunkRequestData {
|
|
24
|
+
/** The ID of the trunk that you want to work with */
|
|
25
|
+
'trunkId': string;
|
|
26
|
+
}
|
|
27
|
+
export interface GetSipTrunkRequestData {
|
|
28
|
+
/** The ID of the SIP trunk. */
|
|
29
|
+
'sipTrunkId': string;
|
|
30
|
+
}
|
|
31
|
+
export interface ListSipTrunksRequestData {
|
|
32
|
+
/** The page you want to fetch, can set to 1 for first page, or omitted for first page */
|
|
33
|
+
'page'?: number;
|
|
34
|
+
/** The size of each page to fetch */
|
|
35
|
+
'pageSize'?: number;
|
|
36
|
+
/** Filter by domain */
|
|
37
|
+
'domain'?: string;
|
|
38
|
+
}
|
|
39
|
+
export interface UpdateSipTrunkRequestData {
|
|
40
|
+
/** The ID of the SIP trunk. */
|
|
41
|
+
'sipTrunkId': string;
|
|
42
|
+
/** The SIP trunk details to be used to update the SIP trunk */
|
|
43
|
+
'updateSipTrunkRequestBody': SipTrunk;
|
|
44
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sip-trunks-request-data.js","sourceRoot":"","sources":["../../../../../src/models/v1/requests/sip-trunks/sip-trunks-request-data.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { SipEndpoint } from './sip-endpoint';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/sip-endpoint/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A SIP endpoint which is the address of your SIP infrastructure. It can either be an IP address or a domain name.
|
|
3
|
+
*/
|
|
4
|
+
export interface SipEndpoint {
|
|
5
|
+
/** The ID of the SIP endpoint. */
|
|
6
|
+
id?: string;
|
|
7
|
+
/** The ID of the SIP trunk to which the endpoint is assigned. */
|
|
8
|
+
sipTrunkId?: string;
|
|
9
|
+
/** The friendly name of the SIP endpoint. */
|
|
10
|
+
name: string;
|
|
11
|
+
/** The address of the SIP endpoint can be an IP address or a domain name. EST uses IP authentication and will only accept calls from the specified address or domain. */
|
|
12
|
+
address: string;
|
|
13
|
+
/** The port of the SIP endpoint. */
|
|
14
|
+
port?: number;
|
|
15
|
+
/** The transport protocol of the SIP endpoint. */
|
|
16
|
+
transport?: 'TCP' | 'UDP';
|
|
17
|
+
/** Inbound call routing priority. If two or more endpoints have the same priority, calls will be routed to them using a round-robin strategy. */
|
|
18
|
+
priority: number;
|
|
19
|
+
/** Sets whether the SIP endpoint is enabled or not. */
|
|
20
|
+
enabled?: boolean;
|
|
21
|
+
/** The date and time that the SIP endpoint was created. */
|
|
22
|
+
createTime?: Date;
|
|
23
|
+
/** The date and time that the SIP endpoint was last modified. */
|
|
24
|
+
updateTime?: Date | null;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sip-endpoint.js","sourceRoot":"","sources":["../../../../src/models/v1/sip-endpoint/sip-endpoint.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { SipTrunk } from './sip-trunk';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/sip-trunk/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A created SIP trunk.
|
|
3
|
+
*/
|
|
4
|
+
export interface SipTrunk {
|
|
5
|
+
/** The SIP trunk id. */
|
|
6
|
+
id?: string;
|
|
7
|
+
/** The host of the domain you would like to have for you trunk. */
|
|
8
|
+
hostName: string;
|
|
9
|
+
/** The top level domain to which the SIP trunk belongs. */
|
|
10
|
+
topLevelDomain?: string;
|
|
11
|
+
/** The fully qualified name of the domain, which is a combination of your \'hostName\' and the \'topLevelDomain\'. */
|
|
12
|
+
domain?: string;
|
|
13
|
+
/** The friendly name of your SIP trunk. */
|
|
14
|
+
name: string;
|
|
15
|
+
/** Number of calls started per second, to increase this please contact your account manager. */
|
|
16
|
+
callsPerSecond?: number;
|
|
17
|
+
/** Enable caller name lookup for incoming calls. US and canada only. */
|
|
18
|
+
enableCallerName?: boolean;
|
|
19
|
+
/** The date and time that the SIP trunk was created. */
|
|
20
|
+
createTime?: Date;
|
|
21
|
+
/** The date and time that the SIP trunk was last modified. */
|
|
22
|
+
updateTime?: Date | null;
|
|
23
|
+
/** The ID of the account. */
|
|
24
|
+
projectId?: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sip-trunk.js","sourceRoot":"","sources":["../../../../src/models/v1/sip-trunk/sip-trunk.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { UpdateAccessControlListRequest } from './update-access-control-list-request';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/update-access-control-list-request/index.ts"],"names":[],"mappings":""}
|
package/dist/models/v1/update-access-control-list-request/update-access-control-list-request.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IpRange } from '../ip-range';
|
|
2
|
+
export interface UpdateAccessControlListRequest {
|
|
3
|
+
/** Your name for the access control list entry. */
|
|
4
|
+
name: string;
|
|
5
|
+
/** Whether the access control list entry is enabled. You can use this to disable a list temporarily without deleting it. */
|
|
6
|
+
enabled?: boolean;
|
|
7
|
+
/** An array of all the IP ranges to update. */
|
|
8
|
+
ipRanges?: IpRange[];
|
|
9
|
+
}
|
package/dist/models/v1/update-access-control-list-request/update-access-control-list-request.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-access-control-list-request.js","sourceRoot":"","sources":["../../../../src/models/v1/update-access-control-list-request/update-access-control-list-request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { UpdateCountryPermissionRequest } from './update-country-permission-request';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/update-country-permission-request/index.ts"],"names":[],"mappings":""}
|
package/dist/models/v1/update-country-permission-request/update-country-permission-request.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-country-permission-request.js","sourceRoot":"","sources":["../../../../src/models/v1/update-country-permission-request/update-country-permission-request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './v1';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./v1"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/rest/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uCAAqB"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { AccessControlList, AddAccessControlListToTrunkRequestData, AddIpRangeToAccessControlListRequestData, CreateAccessControlListRequestData, DeleteAccessControlListRequestData, DeleteAccessControlListFromTrunkRequestData, DeleteIpRangeFromAccessControlListRequestData, ListAccessControlListRequestData, ListIpRangesForAccessControlListRequestData, UpdateAccessControlListRequestData, UpdateIpRangeFromAccessControlListRequestData, ListAccessControlListsForTrunkRequestData, AddAccessControlListToTrunk, IpRange } from '../../../models';
|
|
2
|
+
import { SinchClientParameters, ApiListPromise } from '@sinch/sdk-client';
|
|
3
|
+
import { ElasticSipTrunkingDomainApi } from '../elastic-sip-trunking-domain-api';
|
|
4
|
+
export declare class AccessControlListApi extends ElasticSipTrunkingDomainApi {
|
|
5
|
+
private sipTrunksApi;
|
|
6
|
+
/**
|
|
7
|
+
* Initialize your interface
|
|
8
|
+
*
|
|
9
|
+
* @param {SinchClientParameters} sinchClientParameters - The parameters used to initialize the API Client.
|
|
10
|
+
*/
|
|
11
|
+
constructor(sinchClientParameters: SinchClientParameters);
|
|
12
|
+
/**
|
|
13
|
+
* Add ACL to a trunk
|
|
14
|
+
* Add an access control list entry to a trunk.
|
|
15
|
+
* @param { AddAccessControlListToTrunkRequestData } data - The data to provide to the API call.
|
|
16
|
+
*/
|
|
17
|
+
addToTrunk(data: AddAccessControlListToTrunkRequestData): Promise<AddAccessControlListToTrunk>;
|
|
18
|
+
/**
|
|
19
|
+
* List all ACLs for a trunk
|
|
20
|
+
* Get all access control list entries for a trunk.
|
|
21
|
+
* @param { ListAccessControlListsForTrunkRequestData } data - The data to provide to the API call.
|
|
22
|
+
* @return { ApiListPromise<string> }
|
|
23
|
+
*/
|
|
24
|
+
listForTrunk(data: ListAccessControlListsForTrunkRequestData): ApiListPromise<string>;
|
|
25
|
+
/**
|
|
26
|
+
* Delete ACL from trunk
|
|
27
|
+
* Remove an access control list entry from a trunk.
|
|
28
|
+
* @param { DeleteAccessControlListFromTrunkRequestData } data - The data to provide to the API call.
|
|
29
|
+
*/
|
|
30
|
+
deleteFromTrunk(data: DeleteAccessControlListFromTrunkRequestData): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* Add IP range to ACL
|
|
33
|
+
* Add an IP range to an access control list entry.
|
|
34
|
+
* @param { AddIpRangeToAccessControlListRequestData } data - The data to provide to the API call.
|
|
35
|
+
*/
|
|
36
|
+
addIpRange(data: AddIpRangeToAccessControlListRequestData): Promise<IpRange>;
|
|
37
|
+
/**
|
|
38
|
+
* Create an ACL
|
|
39
|
+
* Create an access control list entry with at least one IP address or IP range.
|
|
40
|
+
* @param { CreateAccessControlListRequestData } data - The data to provide to the API call.
|
|
41
|
+
*/
|
|
42
|
+
create(data: CreateAccessControlListRequestData): Promise<AccessControlList>;
|
|
43
|
+
/**
|
|
44
|
+
* Delete ACL
|
|
45
|
+
* Delete an access control list entry.
|
|
46
|
+
* @param { DeleteAccessControlListRequestData } data - The data to provide to the API call.
|
|
47
|
+
*/
|
|
48
|
+
delete(data: DeleteAccessControlListRequestData): Promise<void>;
|
|
49
|
+
/**
|
|
50
|
+
* Delete IP range from ACL
|
|
51
|
+
* Remove an IP range to an access control list entry.
|
|
52
|
+
* @param { DeleteIpRangeFromAccessControlListRequestData } data - The data to provide to the API call.
|
|
53
|
+
*/
|
|
54
|
+
deleteIpRange(data: DeleteIpRangeFromAccessControlListRequestData): Promise<void>;
|
|
55
|
+
/**
|
|
56
|
+
* List ACLs
|
|
57
|
+
* Fetches the list of Access Control List entries.
|
|
58
|
+
* @param { ListAccessControlListRequestData } data - The data to provide to the API call.
|
|
59
|
+
* @return { ApiListPromise<AccessControlList> }
|
|
60
|
+
*/
|
|
61
|
+
list(data: ListAccessControlListRequestData): ApiListPromise<AccessControlList>;
|
|
62
|
+
/**
|
|
63
|
+
* List all IP ranges for ACL
|
|
64
|
+
* Get all IP ranges for an access control list entry.
|
|
65
|
+
* @param { ListIpRangesForAccessControlListRequestData } data - The data to provide to the API call.
|
|
66
|
+
* @return { ApiListPromise<IpRange> }
|
|
67
|
+
*/
|
|
68
|
+
listIpRanges(data: ListIpRangesForAccessControlListRequestData): ApiListPromise<IpRange>;
|
|
69
|
+
/**
|
|
70
|
+
* Update ACL
|
|
71
|
+
* Create an access control list entry with at least one IP address or IP range.
|
|
72
|
+
* @param { UpdateAccessControlListRequestData } data - The data to provide to the API call.
|
|
73
|
+
*/
|
|
74
|
+
update(data: UpdateAccessControlListRequestData): Promise<AccessControlList>;
|
|
75
|
+
/**
|
|
76
|
+
* Update IP range
|
|
77
|
+
* Update an IP range to an access control list entry.
|
|
78
|
+
* @param { UpdateIpRangeFromAccessControlListRequestData } data - The data to provide to the API call.
|
|
79
|
+
*/
|
|
80
|
+
updateIpRange(data: UpdateIpRangeFromAccessControlListRequestData): Promise<IpRange>;
|
|
81
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { AccessControlListApi } from './access-control-list-api';
|
|
3
|
+
import { AccessControlList, IpRange, AddAccessControlListToTrunkRequestData, AddIpRangeToAccessControlListRequestData, CreateAccessControlListRequestData, DeleteAccessControlListRequestData, DeleteAccessControlListFromTrunkRequestData, DeleteIpRangeFromAccessControlListRequestData, ListAccessControlListRequestData, ListAccessControlListsForTrunkRequestData, ListIpRangesForAccessControlListRequestData, UpdateAccessControlListRequestData, UpdateIpRangeFromAccessControlListRequestData, AddAccessControlListToTrunk } from '../../../models';
|
|
4
|
+
import { ApiListPromise } from '@sinch/sdk-client';
|
|
5
|
+
export declare class AccessControlListApiFixture implements Partial<Readonly<AccessControlListApi>> {
|
|
6
|
+
/**
|
|
7
|
+
* Fixture associated to function addToTrunk
|
|
8
|
+
*/
|
|
9
|
+
addToTrunk: jest.Mock<Promise<AddAccessControlListToTrunk>, [AddAccessControlListToTrunkRequestData]>;
|
|
10
|
+
/**
|
|
11
|
+
* Fixture associated to function listForTrunk
|
|
12
|
+
*/
|
|
13
|
+
listForTrunk: jest.Mock<ApiListPromise<string>, [ListAccessControlListsForTrunkRequestData]>;
|
|
14
|
+
/**
|
|
15
|
+
* Fixture associated to function deleteFromTrunk
|
|
16
|
+
*/
|
|
17
|
+
deleteFromTrunk: jest.Mock<Promise<void>, [DeleteAccessControlListFromTrunkRequestData]>;
|
|
18
|
+
/**
|
|
19
|
+
* Fixture associated to function addIpRange
|
|
20
|
+
*/
|
|
21
|
+
addIpRange: jest.Mock<Promise<IpRange>, [AddIpRangeToAccessControlListRequestData]>;
|
|
22
|
+
/**
|
|
23
|
+
* Fixture associated to function create
|
|
24
|
+
*/
|
|
25
|
+
create: jest.Mock<Promise<AccessControlList>, [CreateAccessControlListRequestData]>;
|
|
26
|
+
/**
|
|
27
|
+
* Fixture associated to function delete
|
|
28
|
+
*/
|
|
29
|
+
delete: jest.Mock<Promise<void>, [DeleteAccessControlListRequestData]>;
|
|
30
|
+
/**
|
|
31
|
+
* Fixture associated to function deleteIpRange
|
|
32
|
+
*/
|
|
33
|
+
deleteIpRange: jest.Mock<Promise<void>, [DeleteIpRangeFromAccessControlListRequestData]>;
|
|
34
|
+
/**
|
|
35
|
+
* Fixture associated to function list
|
|
36
|
+
*/
|
|
37
|
+
list: jest.Mock<ApiListPromise<AccessControlList>, [ListAccessControlListRequestData]>;
|
|
38
|
+
/**
|
|
39
|
+
* Fixture associated to function listIpRanges
|
|
40
|
+
*/
|
|
41
|
+
listIpRanges: jest.Mock<ApiListPromise<IpRange>, [ListIpRangesForAccessControlListRequestData]>;
|
|
42
|
+
/**
|
|
43
|
+
* Fixture associated to function update
|
|
44
|
+
*/
|
|
45
|
+
update: jest.Mock<Promise<AccessControlList>, [UpdateAccessControlListRequestData]>;
|
|
46
|
+
/**
|
|
47
|
+
* Fixture associated to function updateIpRange
|
|
48
|
+
*/
|
|
49
|
+
updateIpRange: jest.Mock<Promise<IpRange>, [UpdateIpRangeFromAccessControlListRequestData]>;
|
|
50
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AccessControlListApiFixture = void 0;
|
|
4
|
+
class AccessControlListApiFixture {
|
|
5
|
+
constructor() {
|
|
6
|
+
/**
|
|
7
|
+
* Fixture associated to function addToTrunk
|
|
8
|
+
*/
|
|
9
|
+
this.addToTrunk = jest.fn();
|
|
10
|
+
/**
|
|
11
|
+
* Fixture associated to function listForTrunk
|
|
12
|
+
*/
|
|
13
|
+
this.listForTrunk = jest.fn();
|
|
14
|
+
/**
|
|
15
|
+
* Fixture associated to function deleteFromTrunk
|
|
16
|
+
*/
|
|
17
|
+
this.deleteFromTrunk = jest.fn();
|
|
18
|
+
/**
|
|
19
|
+
* Fixture associated to function addIpRange
|
|
20
|
+
*/
|
|
21
|
+
this.addIpRange = jest.fn();
|
|
22
|
+
/**
|
|
23
|
+
* Fixture associated to function create
|
|
24
|
+
*/
|
|
25
|
+
this.create = jest.fn();
|
|
26
|
+
/**
|
|
27
|
+
* Fixture associated to function delete
|
|
28
|
+
*/
|
|
29
|
+
this.delete = jest.fn();
|
|
30
|
+
/**
|
|
31
|
+
* Fixture associated to function deleteIpRange
|
|
32
|
+
*/
|
|
33
|
+
this.deleteIpRange = jest.fn();
|
|
34
|
+
/**
|
|
35
|
+
* Fixture associated to function list
|
|
36
|
+
*/
|
|
37
|
+
this.list = jest.fn();
|
|
38
|
+
/**
|
|
39
|
+
* Fixture associated to function listIpRanges
|
|
40
|
+
*/
|
|
41
|
+
this.listIpRanges = jest.fn();
|
|
42
|
+
/**
|
|
43
|
+
* Fixture associated to function update
|
|
44
|
+
*/
|
|
45
|
+
this.update = jest.fn();
|
|
46
|
+
/**
|
|
47
|
+
* Fixture associated to function updateIpRange
|
|
48
|
+
*/
|
|
49
|
+
this.updateIpRange = jest.fn();
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.AccessControlListApiFixture = AccessControlListApiFixture;
|
|
53
|
+
//# sourceMappingURL=access-control-list-api.jest.fixture.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"access-control-list-api.jest.fixture.js","sourceRoot":"","sources":["../../../../src/rest/v1/access-control-list/access-control-list-api.jest.fixture.ts"],"names":[],"mappings":";;;AAmBA,MAAa,2BAA2B;IAAxC;QAEE;;WAEG;QACI,eAAU,GAC2D,IAAI,CAAC,EAAE,EAAE,CAAC;QACtF;;WAEG;QACI,iBAAY,GACsD,IAAI,CAAC,EAAE,EAAE,CAAC;QACnF;;WAEG;QACI,oBAAe,GAC4C,IAAI,CAAC,EAAE,EAAE,CAAC;QAC5E;;WAEG;QACI,eAAU,GACiD,IAAI,CAAC,EAAE,EAAE,CAAC;QAC5E;;WAEG;QACI,WAAM,GACyD,IAAI,CAAC,EAAE,EAAE,CAAC;QAChF;;WAEG;QACI,WAAM,GAC4C,IAAI,CAAC,EAAE,EAAE,CAAC;QACnE;;WAEG;QACI,kBAAa,GACgD,IAAI,CAAC,EAAE,EAAE,CAAC;QAC9E;;WAEG;QACI,SAAI,GACgE,IAAI,CAAC,EAAE,EAAE,CAAC;QACrF;;WAEG;QACI,iBAAY,GACyD,IAAI,CAAC,EAAE,EAAE,CAAC;QACtF;;WAEG;QACI,WAAM,GACyD,IAAI,CAAC,EAAE,EAAE,CAAC;QAChF;;WAEG;QACI,kBAAa,GACmD,IAAI,CAAC,EAAE,EAAE,CAAC;IACnF,CAAC;CAAA;AAzDD,kEAyDC"}
|