@sinch/elastic-sip-trunking 1.2.1 → 1.4.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/dist/models/v1/add-projects-request/add-projects-request.d.ts +4 -0
- package/dist/models/v1/add-projects-request/add-projects-request.js +3 -0
- package/dist/models/v1/add-projects-request/add-projects-request.js.map +1 -0
- package/dist/models/v1/add-projects-request/index.d.ts +1 -0
- package/dist/models/v1/add-projects-request/index.js +3 -0
- package/dist/models/v1/add-projects-request/index.js.map +1 -0
- package/dist/models/v1/add-projects-response/add-projects-response.d.ts +4 -0
- package/dist/models/v1/add-projects-response/add-projects-response.js +3 -0
- package/dist/models/v1/add-projects-response/add-projects-response.js.map +1 -0
- package/dist/models/v1/add-projects-response/index.d.ts +1 -0
- package/dist/models/v1/add-projects-response/index.js +3 -0
- package/dist/models/v1/add-projects-response/index.js.map +1 -0
- package/dist/models/v1/call-blocking-rule/call-blocking-rule.d.ts +37 -0
- package/dist/models/v1/call-blocking-rule/call-blocking-rule.js +3 -0
- package/dist/models/v1/call-blocking-rule/call-blocking-rule.js.map +1 -0
- package/dist/models/v1/call-blocking-rule/index.d.ts +1 -0
- package/dist/models/v1/call-blocking-rule/index.js +3 -0
- package/dist/models/v1/call-blocking-rule/index.js.map +1 -0
- package/dist/models/v1/create-credential-list-request/create-credential-list-request.d.ts +12 -0
- package/dist/models/v1/create-credential-list-request/create-credential-list-request.js +3 -0
- package/dist/models/v1/create-credential-list-request/create-credential-list-request.js.map +1 -0
- package/dist/models/v1/create-credential-list-request/index.d.ts +1 -0
- package/dist/models/v1/create-credential-list-request/index.js +3 -0
- package/dist/models/v1/create-credential-list-request/index.js.map +1 -0
- package/dist/models/v1/credential/credential.d.ts +6 -0
- package/dist/models/v1/credential/credential.js +3 -0
- package/dist/models/v1/credential/credential.js.map +1 -0
- package/dist/models/v1/credential/index.d.ts +1 -0
- package/dist/models/v1/credential/index.js +3 -0
- package/dist/models/v1/credential/index.js.map +1 -0
- package/dist/models/v1/credential-list/credential-list.d.ts +15 -0
- package/dist/models/v1/credential-list/credential-list.js +3 -0
- package/dist/models/v1/credential-list/credential-list.js.map +1 -0
- package/dist/models/v1/credential-list/index.d.ts +1 -0
- package/dist/models/v1/credential-list/index.js +3 -0
- package/dist/models/v1/credential-list/index.js.map +1 -0
- package/dist/models/v1/credential-list-ids/credential-list-ids.d.ts +4 -0
- package/dist/models/v1/credential-list-ids/credential-list-ids.js +3 -0
- package/dist/models/v1/credential-list-ids/credential-list-ids.js.map +1 -0
- package/dist/models/v1/credential-list-ids/index.d.ts +1 -0
- package/dist/models/v1/credential-list-ids/index.js +3 -0
- package/dist/models/v1/credential-list-ids/index.js.map +1 -0
- package/dist/models/v1/credential-password/credential-password.d.ts +4 -0
- package/dist/models/v1/credential-password/credential-password.js +3 -0
- package/dist/models/v1/credential-password/credential-password.js.map +1 -0
- package/dist/models/v1/credential-password/index.d.ts +1 -0
- package/dist/models/v1/credential-password/index.js +3 -0
- package/dist/models/v1/credential-password/index.js.map +1 -0
- package/dist/models/v1/enum.d.ts +3 -2
- package/dist/models/v1/index.d.ts +9 -0
- package/dist/models/v1/index.js +9 -0
- package/dist/models/v1/index.js.map +1 -1
- package/dist/models/v1/requests/access-control-list/access-control-list-request-data.d.ts +8 -0
- package/dist/models/v1/requests/call-blocking-rules/call-blocking-rules-request-data.d.ts +23 -0
- package/dist/models/v1/requests/call-blocking-rules/call-blocking-rules-request-data.js +3 -0
- package/dist/models/v1/requests/call-blocking-rules/call-blocking-rules-request-data.js.map +1 -0
- package/dist/models/v1/requests/calls-history/calls-history-request-data.d.ts +44 -4
- package/dist/models/v1/requests/credential-lists/credential-lists-request-data.d.ts +49 -0
- package/dist/models/v1/requests/credential-lists/credential-lists-request-data.js +3 -0
- package/dist/models/v1/requests/credential-lists/credential-lists-request-data.js.map +1 -0
- package/dist/models/v1/requests/index.d.ts +3 -0
- package/dist/models/v1/requests/index.js +3 -0
- package/dist/models/v1/requests/index.js.map +1 -1
- package/dist/models/v1/requests/projects/projects-request-data.d.ts +4 -0
- package/dist/models/v1/requests/projects/projects-request-data.js +3 -0
- package/dist/models/v1/requests/projects/projects-request-data.js.map +1 -0
- package/dist/models/v1/requests/sip-endpoints/sip-endpoints-request-data.d.ts +6 -4
- package/dist/models/v1/requests/sip-trunks/sip-trunks-request-data.d.ts +34 -1
- package/dist/models/v1/sip-endpoint/index.d.ts +1 -1
- package/dist/models/v1/sip-endpoint/sip-endpoint.d.ts +19 -6
- package/dist/models/v1/sip-trunk/sip-trunk.d.ts +5 -0
- package/dist/models/v1/update-credential-list-request/index.d.ts +1 -0
- package/dist/models/v1/update-credential-list-request/index.js +3 -0
- package/dist/models/v1/update-credential-list-request/index.js.map +1 -0
- package/dist/models/v1/update-credential-list-request/update-credential-list-request.d.ts +4 -0
- package/dist/models/v1/update-credential-list-request/update-credential-list-request.js +3 -0
- package/dist/models/v1/update-credential-list-request/update-credential-list-request.js.map +1 -0
- package/dist/rest/v1/access-control-list/access-control-list-api.d.ts +4 -8
- package/dist/rest/v1/access-control-list/access-control-list-api.js +5 -19
- package/dist/rest/v1/access-control-list/access-control-list-api.js.map +1 -1
- package/dist/rest/v1/call-blocking-rules/call-blocking-rules-api.d.ts +31 -0
- package/dist/rest/v1/call-blocking-rules/call-blocking-rules-api.jest.fixture.d.ts +21 -0
- package/dist/rest/v1/call-blocking-rules/call-blocking-rules-api.jest.fixture.js +25 -0
- package/dist/rest/v1/call-blocking-rules/call-blocking-rules-api.jest.fixture.js.map +1 -0
- package/dist/rest/v1/call-blocking-rules/call-blocking-rules-api.js +106 -0
- package/dist/rest/v1/call-blocking-rules/call-blocking-rules-api.js.map +1 -0
- package/dist/rest/v1/call-blocking-rules/index.d.ts +2 -0
- package/dist/rest/v1/call-blocking-rules/index.js +19 -0
- package/dist/rest/v1/call-blocking-rules/index.js.map +1 -0
- package/dist/rest/v1/calls-history/calls-history-api.d.ts +9 -7
- package/dist/rest/v1/calls-history/calls-history-api.jest.fixture.d.ts +7 -3
- package/dist/rest/v1/calls-history/calls-history-api.jest.fixture.js +5 -1
- package/dist/rest/v1/calls-history/calls-history-api.jest.fixture.js.map +1 -1
- package/dist/rest/v1/calls-history/calls-history-api.js +47 -11
- package/dist/rest/v1/calls-history/calls-history-api.js.map +1 -1
- package/dist/rest/v1/country-permissions/country-permissions-api.d.ts +3 -8
- package/dist/rest/v1/country-permissions/country-permissions-api.js +3 -11
- package/dist/rest/v1/country-permissions/country-permissions-api.js.map +1 -1
- package/dist/rest/v1/credential-lists/credential-lists-api.d.ts +55 -0
- package/dist/rest/v1/credential-lists/credential-lists-api.jest.fixture.d.ts +38 -0
- package/dist/rest/v1/credential-lists/credential-lists-api.jest.fixture.js +41 -0
- package/dist/rest/v1/credential-lists/credential-lists-api.jest.fixture.js.map +1 -0
- package/dist/rest/v1/credential-lists/credential-lists-api.js +199 -0
- package/dist/rest/v1/credential-lists/credential-lists-api.js.map +1 -0
- package/dist/rest/v1/credential-lists/index.d.ts +2 -0
- package/dist/rest/v1/credential-lists/index.js +19 -0
- package/dist/rest/v1/credential-lists/index.js.map +1 -0
- package/dist/rest/v1/elastic-sip-trunking-domain-api.d.ts +12 -13
- package/dist/rest/v1/elastic-sip-trunking-domain-api.js +20 -28
- package/dist/rest/v1/elastic-sip-trunking-domain-api.js.map +1 -1
- package/dist/rest/v1/elastic-sip-trunking-service.d.ts +16 -1
- package/dist/rest/v1/elastic-sip-trunking-service.js +50 -11
- package/dist/rest/v1/elastic-sip-trunking-service.js.map +1 -1
- package/dist/rest/v1/index.d.ts +4 -0
- package/dist/rest/v1/index.js +4 -0
- package/dist/rest/v1/index.js.map +1 -1
- package/dist/rest/v1/projects/index.d.ts +2 -0
- package/dist/rest/v1/projects/index.js +19 -0
- package/dist/rest/v1/projects/index.js.map +1 -0
- package/dist/rest/v1/projects/projects-api.d.ts +12 -0
- package/dist/rest/v1/projects/projects-api.jest.fixture.d.ts +8 -0
- package/dist/rest/v1/projects/projects-api.jest.fixture.js +13 -0
- package/dist/rest/v1/projects/projects-api.jest.fixture.js.map +1 -0
- package/dist/rest/v1/projects/projects-api.js +33 -0
- package/dist/rest/v1/projects/projects-api.js.map +1 -0
- package/dist/rest/v1/sip-endpoints/sip-endpoints-api.d.ts +3 -7
- package/dist/rest/v1/sip-endpoints/sip-endpoints-api.js +3 -13
- package/dist/rest/v1/sip-endpoints/sip-endpoints-api.js.map +1 -1
- package/dist/rest/v1/sip-trunks/sip-trunks-api.d.ts +29 -9
- package/dist/rest/v1/sip-trunks/sip-trunks-api.jest.fixture.d.ts +27 -9
- package/dist/rest/v1/sip-trunks/sip-trunks-api.jest.fixture.js +24 -8
- package/dist/rest/v1/sip-trunks/sip-trunks-api.jest.fixture.js.map +1 -1
- package/dist/rest/v1/sip-trunks/sip-trunks-api.js +98 -17
- package/dist/rest/v1/sip-trunks/sip-trunks-api.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-projects-request.js","sourceRoot":"","sources":["../../../../src/models/v1/add-projects-request/add-projects-request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { AddProjectsRequest } from './add-projects-request';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/add-projects-request/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-projects-response.js","sourceRoot":"","sources":["../../../../src/models/v1/add-projects-response/add-projects-response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { AddProjectsResponse } from './add-projects-response';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/add-projects-response/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { DirectionEnum } from '../enum';
|
|
2
|
+
export interface CallBlockingRuleRequest {
|
|
3
|
+
/** The name for the call blocking rule. */
|
|
4
|
+
name?: string;
|
|
5
|
+
/** The direction of the call blocking rule. Can be either INBOUND or OUTBOUND. */
|
|
6
|
+
direction: DirectionEnum;
|
|
7
|
+
/** The country code of the inbound call. */
|
|
8
|
+
callerCountry?: string;
|
|
9
|
+
/** The country code of the outbound call. */
|
|
10
|
+
calleeCountry?: string;
|
|
11
|
+
/** Use this field to match the prefixes of an inbound call\'s phone number. */
|
|
12
|
+
callerMatch?: string;
|
|
13
|
+
/** Use this field to match the prefixes of an outbound call\'s phone number. */
|
|
14
|
+
calleeMatch?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface CallBlockingRule {
|
|
17
|
+
/** The name for the call blocking rule. */
|
|
18
|
+
name?: string;
|
|
19
|
+
/** The direction of the call blocking rule. Can be either INBOUND or OUTBOUND. */
|
|
20
|
+
direction: DirectionEnum;
|
|
21
|
+
/** The country code of the inbound call. */
|
|
22
|
+
callerCountry?: string;
|
|
23
|
+
/** The country code of the outbound call. */
|
|
24
|
+
calleeCountry?: string;
|
|
25
|
+
/** Use this field to match the prefixes of an inbound call\'s phone number. */
|
|
26
|
+
callerMatch?: string;
|
|
27
|
+
/** Use this field to match the prefixes of an outbound call\'s phone number. */
|
|
28
|
+
calleeMatch?: string;
|
|
29
|
+
/** The ID of the call blocking rule. */
|
|
30
|
+
id: string;
|
|
31
|
+
/** The date and time that the call blocking rule was created. */
|
|
32
|
+
createTime?: Date;
|
|
33
|
+
/** The date and time that the call blocking rule was last modified. */
|
|
34
|
+
updateTime?: Date | null;
|
|
35
|
+
/** The ID of the account. */
|
|
36
|
+
projectId?: string;
|
|
37
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"call-blocking-rule.js","sourceRoot":"","sources":["../../../../src/models/v1/call-blocking-rule/call-blocking-rule.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { CallBlockingRule, CallBlockingRuleRequest } from './call-blocking-rule';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/call-blocking-rule/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface CreateCredentialListRequest {
|
|
2
|
+
/** The name of the credential list. */
|
|
3
|
+
name: string;
|
|
4
|
+
/** List of credentials */
|
|
5
|
+
credentials: CreateCredential[];
|
|
6
|
+
}
|
|
7
|
+
export interface CreateCredential {
|
|
8
|
+
/** The username for the credential. */
|
|
9
|
+
username: string;
|
|
10
|
+
/** The password for the credential. */
|
|
11
|
+
password: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-credential-list-request.js","sourceRoot":"","sources":["../../../../src/models/v1/create-credential-list-request/create-credential-list-request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { CreateCredentialListRequest, CreateCredential } from './create-credential-list-request';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/create-credential-list-request/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credential.js","sourceRoot":"","sources":["../../../../src/models/v1/credential/credential.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { Credential } from './credential';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/credential/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Credential } from '../credential';
|
|
2
|
+
export interface CredentialList {
|
|
3
|
+
/** The name of the credential list. */
|
|
4
|
+
name: string;
|
|
5
|
+
/** The ID of the credential list. */
|
|
6
|
+
id: string;
|
|
7
|
+
/** The date and time that the credential list was created. */
|
|
8
|
+
createTime: Date;
|
|
9
|
+
/** The date and time that the credential list was last modified. */
|
|
10
|
+
updateTime: Date | null;
|
|
11
|
+
/** The ID of the account. */
|
|
12
|
+
projectId: string;
|
|
13
|
+
/** The list of credentials. */
|
|
14
|
+
credentials: Credential[];
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credential-list.js","sourceRoot":"","sources":["../../../../src/models/v1/credential-list/credential-list.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { CredentialList } from './credential-list';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/credential-list/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credential-list-ids.js","sourceRoot":"","sources":["../../../../src/models/v1/credential-list-ids/credential-list-ids.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { CredentialListIds } from './credential-list-ids';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/credential-list-ids/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credential-password.js","sourceRoot":"","sources":["../../../../src/models/v1/credential-password/credential-password.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { CredentialPassword } from './credential-password';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/credential-password/index.ts"],"names":[],"mappings":""}
|
package/dist/models/v1/enum.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export type DirectionEnum = 'inbound' | 'outbound';
|
|
2
|
-
export type CallResult = 'COMPLETED' | 'NO_ANSWER' | 'CANCEL' | 'BUSY' | 'FAILED';
|
|
1
|
+
export type DirectionEnum = 'INBOUND' | 'OUTBOUND' | string | 'inbound' | 'outbound';
|
|
2
|
+
export type CallResult = 'COMPLETED' | 'NO_ANSWER' | 'CANCEL' | 'BUSY' | 'FAILED' | string;
|
|
3
|
+
export type BooleanLikeEnum = 'true' | 'false' | string;
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
export * from './access-control-list';
|
|
2
2
|
export * from './add-access-control-list-to-trunk';
|
|
3
|
+
export * from './add-projects-request';
|
|
4
|
+
export * from './add-projects-response';
|
|
3
5
|
export * from './call';
|
|
6
|
+
export * from './call-blocking-rule';
|
|
4
7
|
export * from './country-permission';
|
|
5
8
|
export * from './create-access-control-list-request';
|
|
9
|
+
export * from './create-credential-list-request';
|
|
10
|
+
export * from './credential';
|
|
11
|
+
export * from './credential-list';
|
|
12
|
+
export * from './credential-list-ids';
|
|
13
|
+
export * from './credential-password';
|
|
6
14
|
export * from './ip-range';
|
|
7
15
|
export * from './list-country-permissions-response';
|
|
8
16
|
export * from './money';
|
|
@@ -11,5 +19,6 @@ export * from './sip-endpoint';
|
|
|
11
19
|
export * from './sip-trunk';
|
|
12
20
|
export * from './update-access-control-list-request';
|
|
13
21
|
export * from './update-country-permission-request';
|
|
22
|
+
export * from './update-credential-list-request';
|
|
14
23
|
export * from './enum';
|
|
15
24
|
export * from './requests';
|
package/dist/models/v1/index.js
CHANGED
|
@@ -16,9 +16,17 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./access-control-list"), exports);
|
|
18
18
|
__exportStar(require("./add-access-control-list-to-trunk"), exports);
|
|
19
|
+
__exportStar(require("./add-projects-request"), exports);
|
|
20
|
+
__exportStar(require("./add-projects-response"), exports);
|
|
19
21
|
__exportStar(require("./call"), exports);
|
|
22
|
+
__exportStar(require("./call-blocking-rule"), exports);
|
|
20
23
|
__exportStar(require("./country-permission"), exports);
|
|
21
24
|
__exportStar(require("./create-access-control-list-request"), exports);
|
|
25
|
+
__exportStar(require("./create-credential-list-request"), exports);
|
|
26
|
+
__exportStar(require("./credential"), exports);
|
|
27
|
+
__exportStar(require("./credential-list"), exports);
|
|
28
|
+
__exportStar(require("./credential-list-ids"), exports);
|
|
29
|
+
__exportStar(require("./credential-password"), exports);
|
|
22
30
|
__exportStar(require("./ip-range"), exports);
|
|
23
31
|
__exportStar(require("./list-country-permissions-response"), exports);
|
|
24
32
|
__exportStar(require("./money"), exports);
|
|
@@ -27,6 +35,7 @@ __exportStar(require("./sip-endpoint"), exports);
|
|
|
27
35
|
__exportStar(require("./sip-trunk"), exports);
|
|
28
36
|
__exportStar(require("./update-access-control-list-request"), exports);
|
|
29
37
|
__exportStar(require("./update-country-permission-request"), exports);
|
|
38
|
+
__exportStar(require("./update-credential-list-request"), exports);
|
|
30
39
|
__exportStar(require("./enum"), exports);
|
|
31
40
|
__exportStar(require("./requests"), exports);
|
|
32
41
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/v1/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,qEAAmD;AACnD,yCAAuB;AACvB,uDAAqC;AACrC,uEAAqD;AACrD,6CAA2B;AAC3B,sEAAoD;AACpD,0CAAwB;AACxB,gDAA8B;AAC9B,iDAA+B;AAC/B,8CAA4B;AAC5B,uEAAqD;AACrD,sEAAoD;AACpD,yCAAuB;AACvB,6CAA2B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/v1/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,qEAAmD;AACnD,yDAAuC;AACvC,0DAAwC;AACxC,yCAAuB;AACvB,uDAAqC;AACrC,uDAAqC;AACrC,uEAAqD;AACrD,mEAAiD;AACjD,+CAA6B;AAC7B,oDAAkC;AAClC,wDAAsC;AACtC,wDAAsC;AACtC,6CAA2B;AAC3B,sEAAoD;AACpD,0CAAwB;AACxB,gDAA8B;AAC9B,iDAA+B;AAC/B,8CAA4B;AAC5B,uEAAqD;AACrD,sEAAoD;AACpD,mEAAiD;AACjD,yCAAuB;AACvB,6CAA2B"}
|
|
@@ -26,10 +26,18 @@ export interface GetAccessControlListRequestData {
|
|
|
26
26
|
'id': string;
|
|
27
27
|
}
|
|
28
28
|
export interface ListAccessControlListRequestData {
|
|
29
|
+
/** The page you want to fetch, can set to 1 for first page, or omitted for first page */
|
|
30
|
+
'page'?: number;
|
|
31
|
+
/** The size of each page to fetch */
|
|
32
|
+
'size'?: number;
|
|
29
33
|
}
|
|
30
34
|
export interface ListIpRangesForAccessControlListRequestData {
|
|
31
35
|
/** The ID of the access control list entry. that you want to work with */
|
|
32
36
|
'accessControlListId': string;
|
|
37
|
+
/** The page you want to fetch, can set to 1 for first page, or omitted for first page */
|
|
38
|
+
'page'?: number;
|
|
39
|
+
/** The size of each page to fetch */
|
|
40
|
+
'size'?: number;
|
|
33
41
|
}
|
|
34
42
|
export interface UpdateAccessControlListRequestData {
|
|
35
43
|
/** The ID of the access control list entry. */
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { CallBlockingRuleRequest } from '../../call-blocking-rule';
|
|
2
|
+
export interface CreateBlockingRuleRequestData {
|
|
3
|
+
/** The body containing the Call Blocking Rule details to create */
|
|
4
|
+
'createCallBlockingRuleRequestBody': CallBlockingRuleRequest;
|
|
5
|
+
}
|
|
6
|
+
export interface DeleteBlockingRuleRequestData {
|
|
7
|
+
/** The ID of the call blocking rule to delete. */
|
|
8
|
+
'id': string;
|
|
9
|
+
}
|
|
10
|
+
export interface ListBlockingRulesRequestData {
|
|
11
|
+
/** The page you want to fetch, can set to 1 for first page, or omitted for first page */
|
|
12
|
+
'page'?: number;
|
|
13
|
+
/** The size of each page to fetch */
|
|
14
|
+
'size'?: number;
|
|
15
|
+
/** An array setting the sorting criteria in the format of `property,(ascending/descending)` */
|
|
16
|
+
'sort'?: Array<string>;
|
|
17
|
+
}
|
|
18
|
+
export interface UpdateBlockingRuleRequestData {
|
|
19
|
+
/** The ID of the call blocking rule to update. */
|
|
20
|
+
'id': string;
|
|
21
|
+
/** The body containing the Call Blocking Rule details to update */
|
|
22
|
+
'updateCallBlockingRuleRequestBody': CallBlockingRuleRequest;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"call-blocking-rules-request-data.js","sourceRoot":"","sources":["../../../../../src/models/v1/requests/call-blocking-rules/call-blocking-rules-request-data.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +1,45 @@
|
|
|
1
|
-
import { CallResult, DirectionEnum } from '../../enum';
|
|
1
|
+
import { BooleanLikeEnum, CallResult, DirectionEnum } from '../../enum';
|
|
2
2
|
import { DateFormat } from '@sinch/sdk-client';
|
|
3
|
+
export interface ExportCallRecordsRequestData {
|
|
4
|
+
/** 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. */
|
|
5
|
+
'from'?: string;
|
|
6
|
+
/** 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. */
|
|
7
|
+
'to'?: string;
|
|
8
|
+
/** Only include calls made from this trunk. */
|
|
9
|
+
'trunkId'?: string;
|
|
10
|
+
/** 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*** */
|
|
11
|
+
'createTime'?: Date | string;
|
|
12
|
+
/** Filter calls based on `createTime`. It will filter the calls on a range of dates. */
|
|
13
|
+
'createTimeRange'?: DateRangeFilter;
|
|
14
|
+
/** only include calls by on the callResult(s), example callResult=COMPLETED will return all calls which have completed normally. */
|
|
15
|
+
'callResult'?: CallResult;
|
|
16
|
+
/** only include calls by on the direction(s), example direction=INBOUND,OUTBOUND will return all calls that are inbound or outbound. */
|
|
17
|
+
'direction'?: DirectionEnum;
|
|
18
|
+
/** The page you want to fetch, can set to 1 for first page, or omitted for first page */
|
|
19
|
+
'page'?: number;
|
|
20
|
+
/** The size of each page to fetch */
|
|
21
|
+
'size'?: number;
|
|
22
|
+
/** Set this if you want to filter on the country of the caller phone number. */
|
|
23
|
+
'fromCountryCode'?: string;
|
|
24
|
+
/** Set this if you want to filter on the country of the callee phone number. */
|
|
25
|
+
'toCountryCode'?: string;
|
|
26
|
+
/** Set this if you want to filter on emergency calls or not. */
|
|
27
|
+
'emergencyOnly'?: BooleanLikeEnum;
|
|
28
|
+
/** Set this is you want to filter calls based on the region. */
|
|
29
|
+
'region'?: string;
|
|
30
|
+
/** Set this if you want to include calls from other projects. */
|
|
31
|
+
'projectIds'?: string;
|
|
32
|
+
/** */
|
|
33
|
+
'fileName'?: string;
|
|
34
|
+
/** Set this if you want to filter calls based on the group ID. */
|
|
35
|
+
'groupId'?: string;
|
|
36
|
+
/** Set this if you want to filter calls based on the call\'s parent ID. */
|
|
37
|
+
'parentId'?: string;
|
|
38
|
+
/** The type of relationship the call has, for example, an initial call or a child call. */
|
|
39
|
+
'relationshipType'?: string;
|
|
40
|
+
/** Set this if you want to filter on calls with children or not. */
|
|
41
|
+
'hasChildren'?: BooleanLikeEnum;
|
|
42
|
+
}
|
|
3
43
|
export interface FindCallsRequestData {
|
|
4
44
|
/** 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. */
|
|
5
45
|
'from'?: string;
|
|
@@ -7,8 +47,8 @@ export interface FindCallsRequestData {
|
|
|
7
47
|
'to'?: string;
|
|
8
48
|
/** Only include calls made from this trunk. */
|
|
9
49
|
'trunkId'?: string;
|
|
10
|
-
/** Filter calls based on
|
|
11
|
-
'createTime'?: string;
|
|
50
|
+
/** 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. */
|
|
51
|
+
'createTime'?: Date | string;
|
|
12
52
|
/** Filter calls based on `createTime`. It will filter the calls on a range of dates. */
|
|
13
53
|
'createTimeRange'?: DateRangeFilter;
|
|
14
54
|
/** only include calls by on the callResult(s), example callResult=COMPLETED will return all calls which have completed normally. */
|
|
@@ -18,7 +58,7 @@ export interface FindCallsRequestData {
|
|
|
18
58
|
/** The page you want to fetch */
|
|
19
59
|
'page'?: string;
|
|
20
60
|
/** 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. */
|
|
21
|
-
'
|
|
61
|
+
'size'?: number;
|
|
22
62
|
}
|
|
23
63
|
/**
|
|
24
64
|
* Filter calls based on `createTime`. If not value is submitted, the default value is the prior week.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { CreateCredentialListRequest } from '../../create-credential-list-request';
|
|
2
|
+
import { CredentialPassword } from '../../credential-password';
|
|
3
|
+
import { UpdateCredentialListRequest } from '../../update-credential-list-request';
|
|
4
|
+
export interface CreateCredentialListRequestData {
|
|
5
|
+
/** The body containing the Credential List details to create */
|
|
6
|
+
'createCredentialListRequestBody': CreateCredentialListRequest;
|
|
7
|
+
}
|
|
8
|
+
export interface DeleteCredentialListRequestData {
|
|
9
|
+
/** The ID of the credential list to delete. */
|
|
10
|
+
'id': string;
|
|
11
|
+
}
|
|
12
|
+
export interface DeleteCredentialRequestData {
|
|
13
|
+
/** The ID of the credential list entry. */
|
|
14
|
+
'id': string;
|
|
15
|
+
/** The username of the credential. */
|
|
16
|
+
'username': string;
|
|
17
|
+
}
|
|
18
|
+
export interface GetCredentialListRequestData {
|
|
19
|
+
/** The ID of the credential list to return. */
|
|
20
|
+
'id': string;
|
|
21
|
+
}
|
|
22
|
+
export interface ListCredentialListsRequestData {
|
|
23
|
+
/** The page you want to fetch, can set to 1 for first page, or omitted for first page */
|
|
24
|
+
'page'?: number;
|
|
25
|
+
/** The size of each page to fetch */
|
|
26
|
+
'size'?: number;
|
|
27
|
+
}
|
|
28
|
+
export interface ListTrunksForCredentialListRequestData {
|
|
29
|
+
/** The ID of the credential list entry. */
|
|
30
|
+
'id': string;
|
|
31
|
+
/** The page you want to fetch, can set to 1 for first page, or omitted for first page */
|
|
32
|
+
'page'?: number;
|
|
33
|
+
/** The size of each page to fetch */
|
|
34
|
+
'size'?: number;
|
|
35
|
+
}
|
|
36
|
+
export interface UpdateCredentialRequestData {
|
|
37
|
+
/** The ID of the credential list entry. */
|
|
38
|
+
'id': string;
|
|
39
|
+
/** The username of the credential. */
|
|
40
|
+
'username': string;
|
|
41
|
+
/** The body containing the Credential details to update */
|
|
42
|
+
'updateCredentialPasswordRequestBody': CredentialPassword;
|
|
43
|
+
}
|
|
44
|
+
export interface UpdateCredentialListRequestData {
|
|
45
|
+
/** The ID of the credential list to update. */
|
|
46
|
+
'id': string;
|
|
47
|
+
/** The body containing the Credential List details to update */
|
|
48
|
+
'updateCredentialListRequestBody': UpdateCredentialListRequest;
|
|
49
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credential-lists-request-data.js","sourceRoot":"","sources":["../../../../../src/models/v1/requests/credential-lists/credential-lists-request-data.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export * from './access-control-list/access-control-list-request-data';
|
|
2
|
+
export * from './call-blocking-rules/call-blocking-rules-request-data';
|
|
2
3
|
export * from './calls-history/calls-history-request-data';
|
|
3
4
|
export * from './country-permissions/country-permissions-request-data';
|
|
5
|
+
export * from './credential-lists/credential-lists-request-data';
|
|
6
|
+
export * from './projects/projects-request-data';
|
|
4
7
|
export * from './sip-endpoints/sip-endpoints-request-data';
|
|
5
8
|
export * from './sip-trunks/sip-trunks-request-data';
|
|
@@ -15,8 +15,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./access-control-list/access-control-list-request-data"), exports);
|
|
18
|
+
__exportStar(require("./call-blocking-rules/call-blocking-rules-request-data"), exports);
|
|
18
19
|
__exportStar(require("./calls-history/calls-history-request-data"), exports);
|
|
19
20
|
__exportStar(require("./country-permissions/country-permissions-request-data"), exports);
|
|
21
|
+
__exportStar(require("./credential-lists/credential-lists-request-data"), exports);
|
|
22
|
+
__exportStar(require("./projects/projects-request-data"), exports);
|
|
20
23
|
__exportStar(require("./sip-endpoints/sip-endpoints-request-data"), exports);
|
|
21
24
|
__exportStar(require("./sip-trunks/sip-trunks-request-data"), exports);
|
|
22
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +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"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/requests/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yFAAuE;AACvE,yFAAuE;AACvE,6EAA2D;AAC3D,yFAAuE;AACvE,mFAAiE;AACjE,mEAAiD;AACjD,6EAA2D;AAC3D,uEAAqD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projects-request-data.js","sourceRoot":"","sources":["../../../../../src/models/v1/requests/projects/projects-request-data.ts"],"names":[],"mappings":""}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RegisteredEndpoint, StaticEndpoint } from '../../sip-endpoint';
|
|
2
|
+
export type StaticEndpointRequest = Omit<StaticEndpoint, 'id' | 'sipTrunkId' | 'createTime' | 'updateTime'>;
|
|
3
|
+
export type RegisteredEndpointRequest = Omit<RegisteredEndpoint, 'id' | 'sipTrunkId' | 'createTime' | 'updateTime'>;
|
|
2
4
|
export interface CreateSipEndpointRequestData {
|
|
3
5
|
/** The ID of the SIP trunk. */
|
|
4
6
|
'sipTrunkId': string;
|
|
5
7
|
/** The body containing the SIP Endpoint to create for the SIP trunk */
|
|
6
|
-
'createSipEndpointRequestBody':
|
|
8
|
+
'createSipEndpointRequestBody': StaticEndpointRequest | RegisteredEndpointRequest;
|
|
7
9
|
}
|
|
8
10
|
export interface DeleteSipEndpointRequestData {
|
|
9
11
|
/** The ID of the SIP trunk. */
|
|
@@ -17,7 +19,7 @@ export interface ListSipEndpointsRequestData {
|
|
|
17
19
|
/** The page you want to fetch, can set to 1 for first page, or omitted for first page */
|
|
18
20
|
'page'?: number;
|
|
19
21
|
/** The size of each page to fetch */
|
|
20
|
-
'
|
|
22
|
+
'size'?: number;
|
|
21
23
|
}
|
|
22
24
|
export interface GetSipEndpointByIdRequestData {
|
|
23
25
|
/** The ID of the SIP trunk. */
|
|
@@ -31,5 +33,5 @@ export interface UpdateSipEndpointRequestData {
|
|
|
31
33
|
/** The ID of the SIP endpoint. */
|
|
32
34
|
'sipEndpointId': string;
|
|
33
35
|
/** The body containing the SIP Endpoint details to update */
|
|
34
|
-
'updateSipEndpointRequestBody':
|
|
36
|
+
'updateSipEndpointRequestBody': StaticEndpointRequest | RegisteredEndpointRequest;
|
|
35
37
|
}
|