@l7mp/tivadar-ai-api-sdk 0.2.14 → 0.2.16
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/api-client.d.ts +20 -1
- package/dist/api-client.js +13 -0
- package/dist/apis/AdminPhoneNumbersApi.d.ts +80 -1
- package/dist/apis/AdminPhoneNumbersApi.js +245 -1
- package/dist/apis/OutboundCallsApi.d.ts +32 -0
- package/dist/apis/OutboundCallsApi.js +77 -0
- package/dist/apis/SIPApi.d.ts +34 -1
- package/dist/apis/SIPApi.js +89 -1
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/api-client.d.ts +20 -1
- package/dist/esm/api-client.js +13 -0
- package/dist/esm/apis/AdminPhoneNumbersApi.d.ts +80 -1
- package/dist/esm/apis/AdminPhoneNumbersApi.js +245 -1
- package/dist/esm/apis/OutboundCallsApi.d.ts +32 -0
- package/dist/esm/apis/OutboundCallsApi.js +73 -0
- package/dist/esm/apis/SIPApi.d.ts +34 -1
- package/dist/esm/apis/SIPApi.js +89 -1
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/AdminPhoneNumberAssignOutbound.d.ts +32 -0
- package/dist/esm/models/AdminPhoneNumberAssignOutbound.js +43 -0
- package/dist/esm/models/AdminPhoneNumberDetail.d.ts +30 -0
- package/dist/esm/models/AdminPhoneNumberDetail.js +10 -0
- package/dist/esm/models/AdminPhoneNumberUpdate.d.ts +18 -0
- package/dist/esm/models/AdminPhoneNumberUpdate.js +6 -0
- package/dist/esm/models/OutboundCall.d.ts +68 -0
- package/dist/esm/models/OutboundCall.js +53 -0
- package/dist/esm/models/OutboundCallRequest.d.ts +44 -0
- package/dist/esm/models/OutboundCallRequest.js +47 -0
- package/dist/esm/models/PhoneNumber.d.ts +18 -0
- package/dist/esm/models/PhoneNumber.js +6 -0
- package/dist/esm/models/PhoneNumberCreate.d.ts +24 -0
- package/dist/esm/models/PhoneNumberCreate.js +8 -0
- package/dist/esm/models/PhoneNumberOrder.d.ts +101 -0
- package/dist/esm/models/PhoneNumberOrder.js +69 -0
- package/dist/esm/models/PhoneNumberOrderDetail.d.ts +119 -0
- package/dist/esm/models/PhoneNumberOrderDetail.js +75 -0
- package/dist/esm/models/PhoneNumberOrdersListResponse.d.ts +39 -0
- package/dist/esm/models/PhoneNumberOrdersListResponse.js +44 -0
- package/dist/esm/models/ProcessOrdersResult.d.ts +38 -0
- package/dist/esm/models/ProcessOrdersResult.js +43 -0
- package/dist/esm/models/index.d.ts +7 -0
- package/dist/esm/models/index.js +7 -0
- package/dist/models/AdminPhoneNumberAssignOutbound.d.ts +32 -0
- package/dist/models/AdminPhoneNumberAssignOutbound.js +50 -0
- package/dist/models/AdminPhoneNumberDetail.d.ts +30 -0
- package/dist/models/AdminPhoneNumberDetail.js +10 -0
- package/dist/models/AdminPhoneNumberUpdate.d.ts +18 -0
- package/dist/models/AdminPhoneNumberUpdate.js +6 -0
- package/dist/models/OutboundCall.d.ts +68 -0
- package/dist/models/OutboundCall.js +60 -0
- package/dist/models/OutboundCallRequest.d.ts +44 -0
- package/dist/models/OutboundCallRequest.js +54 -0
- package/dist/models/PhoneNumber.d.ts +18 -0
- package/dist/models/PhoneNumber.js +6 -0
- package/dist/models/PhoneNumberCreate.d.ts +24 -0
- package/dist/models/PhoneNumberCreate.js +8 -0
- package/dist/models/PhoneNumberOrder.d.ts +101 -0
- package/dist/models/PhoneNumberOrder.js +77 -0
- package/dist/models/PhoneNumberOrderDetail.d.ts +119 -0
- package/dist/models/PhoneNumberOrderDetail.js +83 -0
- package/dist/models/PhoneNumberOrdersListResponse.d.ts +39 -0
- package/dist/models/PhoneNumberOrdersListResponse.js +51 -0
- package/dist/models/ProcessOrdersResult.d.ts +38 -0
- package/dist/models/ProcessOrdersResult.js +50 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/package.json +1 -1
- package/src/api-client.ts +28 -0
- package/src/apis/AdminPhoneNumbersApi.ts +332 -0
- package/src/apis/OutboundCallsApi.ts +95 -0
- package/src/apis/SIPApi.ts +124 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AdminPhoneNumberAssignOutbound.ts +66 -0
- package/src/models/AdminPhoneNumberDetail.ts +40 -0
- package/src/models/AdminPhoneNumberUpdate.ts +24 -0
- package/src/models/OutboundCall.ts +113 -0
- package/src/models/OutboundCallRequest.ts +82 -0
- package/src/models/PhoneNumber.ts +24 -0
- package/src/models/PhoneNumberCreate.ts +32 -0
- package/src/models/PhoneNumberOrder.ts +157 -0
- package/src/models/PhoneNumberOrderDetail.ts +181 -0
- package/src/models/PhoneNumberOrdersListResponse.ts +81 -0
- package/src/models/ProcessOrdersResult.ts +73 -0
- package/src/models/index.ts +7 -0
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tivadar AI Backend API
|
|
3
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PhoneNumberOrderDetail
|
|
16
|
+
*/
|
|
17
|
+
export interface PhoneNumberOrderDetail {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PhoneNumberOrderDetail
|
|
22
|
+
*/
|
|
23
|
+
id?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PhoneNumberOrderDetail
|
|
28
|
+
*/
|
|
29
|
+
organization_id?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PhoneNumberOrderDetail
|
|
34
|
+
*/
|
|
35
|
+
agent_id?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof PhoneNumberOrderDetail
|
|
40
|
+
*/
|
|
41
|
+
requires_call_redirect?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof PhoneNumberOrderDetail
|
|
46
|
+
*/
|
|
47
|
+
status?: PhoneNumberOrderDetailStatusEnum;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof PhoneNumberOrderDetail
|
|
52
|
+
*/
|
|
53
|
+
phone_number_id?: number | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof PhoneNumberOrderDetail
|
|
58
|
+
*/
|
|
59
|
+
sip_trunk_id?: string | null;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof PhoneNumberOrderDetail
|
|
64
|
+
*/
|
|
65
|
+
note?: string | null;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {Date}
|
|
69
|
+
* @memberof PhoneNumberOrderDetail
|
|
70
|
+
*/
|
|
71
|
+
created_at?: Date;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {Date}
|
|
75
|
+
* @memberof PhoneNumberOrderDetail
|
|
76
|
+
*/
|
|
77
|
+
fulfilled_at?: Date | null;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {Date}
|
|
81
|
+
* @memberof PhoneNumberOrderDetail
|
|
82
|
+
*/
|
|
83
|
+
canceled_at?: Date | null;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof PhoneNumberOrderDetail
|
|
88
|
+
*/
|
|
89
|
+
organization_name?: string | null;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof PhoneNumberOrderDetail
|
|
94
|
+
*/
|
|
95
|
+
agent_name?: string | null;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof PhoneNumberOrderDetail
|
|
100
|
+
*/
|
|
101
|
+
number?: string | null;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* @export
|
|
105
|
+
*/
|
|
106
|
+
export declare const PhoneNumberOrderDetailStatusEnum: {
|
|
107
|
+
readonly Pending: "pending";
|
|
108
|
+
readonly Active: "active";
|
|
109
|
+
readonly Canceled: "canceled";
|
|
110
|
+
};
|
|
111
|
+
export type PhoneNumberOrderDetailStatusEnum = typeof PhoneNumberOrderDetailStatusEnum[keyof typeof PhoneNumberOrderDetailStatusEnum];
|
|
112
|
+
/**
|
|
113
|
+
* Check if a given object implements the PhoneNumberOrderDetail interface.
|
|
114
|
+
*/
|
|
115
|
+
export declare function instanceOfPhoneNumberOrderDetail(value: object): value is PhoneNumberOrderDetail;
|
|
116
|
+
export declare function PhoneNumberOrderDetailFromJSON(json: any): PhoneNumberOrderDetail;
|
|
117
|
+
export declare function PhoneNumberOrderDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): PhoneNumberOrderDetail;
|
|
118
|
+
export declare function PhoneNumberOrderDetailToJSON(json: any): PhoneNumberOrderDetail;
|
|
119
|
+
export declare function PhoneNumberOrderDetailToJSONTyped(value?: PhoneNumberOrderDetail | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Tivadar AI Backend API
|
|
5
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const PhoneNumberOrderDetailStatusEnum = {
|
|
18
|
+
Pending: 'pending',
|
|
19
|
+
Active: 'active',
|
|
20
|
+
Canceled: 'canceled'
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the PhoneNumberOrderDetail interface.
|
|
24
|
+
*/
|
|
25
|
+
export function instanceOfPhoneNumberOrderDetail(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function PhoneNumberOrderDetailFromJSON(json) {
|
|
29
|
+
return PhoneNumberOrderDetailFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function PhoneNumberOrderDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
37
|
+
'organization_id': json['organization_id'] == null ? undefined : json['organization_id'],
|
|
38
|
+
'agent_id': json['agent_id'] == null ? undefined : json['agent_id'],
|
|
39
|
+
'requires_call_redirect': json['requires_call_redirect'] == null ? undefined : json['requires_call_redirect'],
|
|
40
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
41
|
+
'phone_number_id': json['phone_number_id'] == null ? undefined : json['phone_number_id'],
|
|
42
|
+
'sip_trunk_id': json['sip_trunk_id'] == null ? undefined : json['sip_trunk_id'],
|
|
43
|
+
'note': json['note'] == null ? undefined : json['note'],
|
|
44
|
+
'created_at': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
|
|
45
|
+
'fulfilled_at': json['fulfilled_at'] == null ? undefined : (new Date(json['fulfilled_at'])),
|
|
46
|
+
'canceled_at': json['canceled_at'] == null ? undefined : (new Date(json['canceled_at'])),
|
|
47
|
+
'organization_name': json['organization_name'] == null ? undefined : json['organization_name'],
|
|
48
|
+
'agent_name': json['agent_name'] == null ? undefined : json['agent_name'],
|
|
49
|
+
'number': json['number'] == null ? undefined : json['number'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export function PhoneNumberOrderDetailToJSON(json) {
|
|
53
|
+
return PhoneNumberOrderDetailToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
export function PhoneNumberOrderDetailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'id': value['id'],
|
|
61
|
+
'organization_id': value['organization_id'],
|
|
62
|
+
'agent_id': value['agent_id'],
|
|
63
|
+
'requires_call_redirect': value['requires_call_redirect'],
|
|
64
|
+
'status': value['status'],
|
|
65
|
+
'phone_number_id': value['phone_number_id'],
|
|
66
|
+
'sip_trunk_id': value['sip_trunk_id'],
|
|
67
|
+
'note': value['note'],
|
|
68
|
+
'created_at': value['created_at'] == null ? value['created_at'] : value['created_at'].toISOString(),
|
|
69
|
+
'fulfilled_at': value['fulfilled_at'] == null ? value['fulfilled_at'] : value['fulfilled_at'].toISOString(),
|
|
70
|
+
'canceled_at': value['canceled_at'] == null ? value['canceled_at'] : value['canceled_at'].toISOString(),
|
|
71
|
+
'organization_name': value['organization_name'],
|
|
72
|
+
'agent_name': value['agent_name'],
|
|
73
|
+
'number': value['number'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tivadar AI Backend API
|
|
3
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { PhoneNumberOrderDetail } from './PhoneNumberOrderDetail';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PhoneNumberOrdersListResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface PhoneNumberOrdersListResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<PhoneNumberOrderDetail>}
|
|
22
|
+
* @memberof PhoneNumberOrdersListResponse
|
|
23
|
+
*/
|
|
24
|
+
items?: Array<PhoneNumberOrderDetail>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof PhoneNumberOrdersListResponse
|
|
29
|
+
*/
|
|
30
|
+
total?: number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the PhoneNumberOrdersListResponse interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfPhoneNumberOrdersListResponse(value: object): value is PhoneNumberOrdersListResponse;
|
|
36
|
+
export declare function PhoneNumberOrdersListResponseFromJSON(json: any): PhoneNumberOrdersListResponse;
|
|
37
|
+
export declare function PhoneNumberOrdersListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PhoneNumberOrdersListResponse;
|
|
38
|
+
export declare function PhoneNumberOrdersListResponseToJSON(json: any): PhoneNumberOrdersListResponse;
|
|
39
|
+
export declare function PhoneNumberOrdersListResponseToJSONTyped(value?: PhoneNumberOrdersListResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Tivadar AI Backend API
|
|
5
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { PhoneNumberOrderDetailFromJSON, PhoneNumberOrderDetailToJSON, } from './PhoneNumberOrderDetail';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the PhoneNumberOrdersListResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfPhoneNumberOrdersListResponse(value) {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
export function PhoneNumberOrdersListResponseFromJSON(json) {
|
|
22
|
+
return PhoneNumberOrdersListResponseFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
export function PhoneNumberOrdersListResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if (json == null) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'items': json['items'] == null ? undefined : (json['items'].map(PhoneNumberOrderDetailFromJSON)),
|
|
30
|
+
'total': json['total'] == null ? undefined : json['total'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function PhoneNumberOrdersListResponseToJSON(json) {
|
|
34
|
+
return PhoneNumberOrdersListResponseToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function PhoneNumberOrdersListResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'items': value['items'] == null ? undefined : (value['items'].map(PhoneNumberOrderDetailToJSON)),
|
|
42
|
+
'total': value['total'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tivadar AI Backend API
|
|
3
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ProcessOrdersResult
|
|
16
|
+
*/
|
|
17
|
+
export interface ProcessOrdersResult {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ProcessOrdersResult
|
|
22
|
+
*/
|
|
23
|
+
fulfilled?: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof ProcessOrdersResult
|
|
28
|
+
*/
|
|
29
|
+
remaining?: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ProcessOrdersResult interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfProcessOrdersResult(value: object): value is ProcessOrdersResult;
|
|
35
|
+
export declare function ProcessOrdersResultFromJSON(json: any): ProcessOrdersResult;
|
|
36
|
+
export declare function ProcessOrdersResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProcessOrdersResult;
|
|
37
|
+
export declare function ProcessOrdersResultToJSON(json: any): ProcessOrdersResult;
|
|
38
|
+
export declare function ProcessOrdersResultToJSONTyped(value?: ProcessOrdersResult | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Tivadar AI Backend API
|
|
5
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the ProcessOrdersResult interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfProcessOrdersResult(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function ProcessOrdersResultFromJSON(json) {
|
|
21
|
+
return ProcessOrdersResultFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function ProcessOrdersResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'fulfilled': json['fulfilled'] == null ? undefined : json['fulfilled'],
|
|
29
|
+
'remaining': json['remaining'] == null ? undefined : json['remaining'],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export function ProcessOrdersResultToJSON(json) {
|
|
33
|
+
return ProcessOrdersResultToJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function ProcessOrdersResultToJSONTyped(value, ignoreDiscriminator = false) {
|
|
36
|
+
if (value == null) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'fulfilled': value['fulfilled'],
|
|
41
|
+
'remaining': value['remaining'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './AdminDispatchRuleCreate';
|
|
2
2
|
export * from './AdminGrantMinutesRequest';
|
|
3
3
|
export * from './AdminPhoneNumberAssign';
|
|
4
|
+
export * from './AdminPhoneNumberAssignOutbound';
|
|
4
5
|
export * from './AdminPhoneNumberDetail';
|
|
5
6
|
export * from './AdminPhoneNumberUpdate';
|
|
6
7
|
export * from './AdminPhoneNumbersListResponse';
|
|
@@ -69,9 +70,14 @@ export * from './OrganizationsOrganizationIdNotificationsGet200Response';
|
|
|
69
70
|
export * from './OrganizationsOrganizationIdSipDispatchRulesPost200Response';
|
|
70
71
|
export * from './OrganizationsOrganizationIdVoiceAgentsBasicGet200ResponseInner';
|
|
71
72
|
export * from './OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest';
|
|
73
|
+
export * from './OutboundCall';
|
|
74
|
+
export * from './OutboundCallRequest';
|
|
72
75
|
export * from './PauseSubscriptionRequest';
|
|
73
76
|
export * from './PhoneNumber';
|
|
74
77
|
export * from './PhoneNumberCreate';
|
|
78
|
+
export * from './PhoneNumberOrder';
|
|
79
|
+
export * from './PhoneNumberOrderDetail';
|
|
80
|
+
export * from './PhoneNumberOrdersListResponse';
|
|
75
81
|
export * from './Phonebook';
|
|
76
82
|
export * from './PhonebookEntry';
|
|
77
83
|
export * from './PhonebookEntryCreate';
|
|
@@ -82,6 +88,7 @@ export * from './PhonebookUpdate';
|
|
|
82
88
|
export * from './PlanCatalogEntry';
|
|
83
89
|
export * from './PlanCatalogEntryOverageInner';
|
|
84
90
|
export * from './PlanCatalogPrice';
|
|
91
|
+
export * from './ProcessOrdersResult';
|
|
85
92
|
export * from './RagConfig';
|
|
86
93
|
export * from './RagConfigCreate';
|
|
87
94
|
export * from './RagDocument';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
export * from './AdminDispatchRuleCreate';
|
|
4
4
|
export * from './AdminGrantMinutesRequest';
|
|
5
5
|
export * from './AdminPhoneNumberAssign';
|
|
6
|
+
export * from './AdminPhoneNumberAssignOutbound';
|
|
6
7
|
export * from './AdminPhoneNumberDetail';
|
|
7
8
|
export * from './AdminPhoneNumberUpdate';
|
|
8
9
|
export * from './AdminPhoneNumbersListResponse';
|
|
@@ -71,9 +72,14 @@ export * from './OrganizationsOrganizationIdNotificationsGet200Response';
|
|
|
71
72
|
export * from './OrganizationsOrganizationIdSipDispatchRulesPost200Response';
|
|
72
73
|
export * from './OrganizationsOrganizationIdVoiceAgentsBasicGet200ResponseInner';
|
|
73
74
|
export * from './OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest';
|
|
75
|
+
export * from './OutboundCall';
|
|
76
|
+
export * from './OutboundCallRequest';
|
|
74
77
|
export * from './PauseSubscriptionRequest';
|
|
75
78
|
export * from './PhoneNumber';
|
|
76
79
|
export * from './PhoneNumberCreate';
|
|
80
|
+
export * from './PhoneNumberOrder';
|
|
81
|
+
export * from './PhoneNumberOrderDetail';
|
|
82
|
+
export * from './PhoneNumberOrdersListResponse';
|
|
77
83
|
export * from './Phonebook';
|
|
78
84
|
export * from './PhonebookEntry';
|
|
79
85
|
export * from './PhonebookEntryCreate';
|
|
@@ -84,6 +90,7 @@ export * from './PhonebookUpdate';
|
|
|
84
90
|
export * from './PlanCatalogEntry';
|
|
85
91
|
export * from './PlanCatalogEntryOverageInner';
|
|
86
92
|
export * from './PlanCatalogPrice';
|
|
93
|
+
export * from './ProcessOrdersResult';
|
|
87
94
|
export * from './RagConfig';
|
|
88
95
|
export * from './RagConfigCreate';
|
|
89
96
|
export * from './RagDocument';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tivadar AI Backend API
|
|
3
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AdminPhoneNumberAssignOutbound
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminPhoneNumberAssignOutbound {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AdminPhoneNumberAssignOutbound
|
|
22
|
+
*/
|
|
23
|
+
organization_id: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the AdminPhoneNumberAssignOutbound interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfAdminPhoneNumberAssignOutbound(value: object): value is AdminPhoneNumberAssignOutbound;
|
|
29
|
+
export declare function AdminPhoneNumberAssignOutboundFromJSON(json: any): AdminPhoneNumberAssignOutbound;
|
|
30
|
+
export declare function AdminPhoneNumberAssignOutboundFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminPhoneNumberAssignOutbound;
|
|
31
|
+
export declare function AdminPhoneNumberAssignOutboundToJSON(json: any): AdminPhoneNumberAssignOutbound;
|
|
32
|
+
export declare function AdminPhoneNumberAssignOutboundToJSONTyped(value?: AdminPhoneNumberAssignOutbound | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Tivadar AI Backend API
|
|
6
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAdminPhoneNumberAssignOutbound = instanceOfAdminPhoneNumberAssignOutbound;
|
|
17
|
+
exports.AdminPhoneNumberAssignOutboundFromJSON = AdminPhoneNumberAssignOutboundFromJSON;
|
|
18
|
+
exports.AdminPhoneNumberAssignOutboundFromJSONTyped = AdminPhoneNumberAssignOutboundFromJSONTyped;
|
|
19
|
+
exports.AdminPhoneNumberAssignOutboundToJSON = AdminPhoneNumberAssignOutboundToJSON;
|
|
20
|
+
exports.AdminPhoneNumberAssignOutboundToJSONTyped = AdminPhoneNumberAssignOutboundToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AdminPhoneNumberAssignOutbound interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAdminPhoneNumberAssignOutbound(value) {
|
|
25
|
+
if (!('organization_id' in value) || value['organization_id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function AdminPhoneNumberAssignOutboundFromJSON(json) {
|
|
30
|
+
return AdminPhoneNumberAssignOutboundFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function AdminPhoneNumberAssignOutboundFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'organization_id': json['organization_id'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function AdminPhoneNumberAssignOutboundToJSON(json) {
|
|
41
|
+
return AdminPhoneNumberAssignOutboundToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function AdminPhoneNumberAssignOutboundToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'organization_id': value['organization_id'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -33,6 +33,36 @@ export interface AdminPhoneNumberDetail {
|
|
|
33
33
|
* @memberof AdminPhoneNumberDetail
|
|
34
34
|
*/
|
|
35
35
|
supports_call_redirect?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof AdminPhoneNumberDetail
|
|
40
|
+
*/
|
|
41
|
+
supports_outbound?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof AdminPhoneNumberDetail
|
|
46
|
+
*/
|
|
47
|
+
sip_address?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof AdminPhoneNumberDetail
|
|
52
|
+
*/
|
|
53
|
+
outbound_configured?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof AdminPhoneNumberDetail
|
|
58
|
+
*/
|
|
59
|
+
outbound_organization_id?: string | null;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof AdminPhoneNumberDetail
|
|
64
|
+
*/
|
|
65
|
+
outbound_organization_name?: string | null;
|
|
36
66
|
/**
|
|
37
67
|
*
|
|
38
68
|
* @type {string}
|
|
@@ -43,6 +43,11 @@ function AdminPhoneNumberDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
43
|
'id': json['id'] == null ? undefined : json['id'],
|
|
44
44
|
'number': json['number'] == null ? undefined : json['number'],
|
|
45
45
|
'supports_call_redirect': json['supports_call_redirect'] == null ? undefined : json['supports_call_redirect'],
|
|
46
|
+
'supports_outbound': json['supports_outbound'] == null ? undefined : json['supports_outbound'],
|
|
47
|
+
'sip_address': json['sip_address'] == null ? undefined : json['sip_address'],
|
|
48
|
+
'outbound_configured': json['outbound_configured'] == null ? undefined : json['outbound_configured'],
|
|
49
|
+
'outbound_organization_id': json['outbound_organization_id'] == null ? undefined : json['outbound_organization_id'],
|
|
50
|
+
'outbound_organization_name': json['outbound_organization_name'] == null ? undefined : json['outbound_organization_name'],
|
|
46
51
|
'status': json['status'] == null ? undefined : json['status'],
|
|
47
52
|
'created_at': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
|
|
48
53
|
'sip_trunk_id': json['sip_trunk_id'] == null ? undefined : json['sip_trunk_id'],
|
|
@@ -64,6 +69,11 @@ function AdminPhoneNumberDetailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
64
69
|
'id': value['id'],
|
|
65
70
|
'number': value['number'],
|
|
66
71
|
'supports_call_redirect': value['supports_call_redirect'],
|
|
72
|
+
'supports_outbound': value['supports_outbound'],
|
|
73
|
+
'sip_address': value['sip_address'],
|
|
74
|
+
'outbound_configured': value['outbound_configured'],
|
|
75
|
+
'outbound_organization_id': value['outbound_organization_id'],
|
|
76
|
+
'outbound_organization_name': value['outbound_organization_name'],
|
|
67
77
|
'status': value['status'],
|
|
68
78
|
'created_at': value['created_at'] == null ? value['created_at'] : value['created_at'].toISOString(),
|
|
69
79
|
'sip_trunk_id': value['sip_trunk_id'],
|
|
@@ -27,6 +27,24 @@ export interface AdminPhoneNumberUpdate {
|
|
|
27
27
|
* @memberof AdminPhoneNumberUpdate
|
|
28
28
|
*/
|
|
29
29
|
supports_call_redirect?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Update the outbound SIP address (outbound numbers only).
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AdminPhoneNumberUpdate
|
|
34
|
+
*/
|
|
35
|
+
sip_address?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Update the outbound SIP auth username (re-encrypted).
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AdminPhoneNumberUpdate
|
|
40
|
+
*/
|
|
41
|
+
auth_username?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Update the outbound SIP auth password (re-encrypted).
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof AdminPhoneNumberUpdate
|
|
46
|
+
*/
|
|
47
|
+
auth_password?: string;
|
|
30
48
|
}
|
|
31
49
|
/**
|
|
32
50
|
* Check if a given object implements the AdminPhoneNumberUpdate interface.
|
|
@@ -34,6 +34,9 @@ function AdminPhoneNumberUpdateFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
return {
|
|
35
35
|
'number': json['number'] == null ? undefined : json['number'],
|
|
36
36
|
'supports_call_redirect': json['supports_call_redirect'] == null ? undefined : json['supports_call_redirect'],
|
|
37
|
+
'sip_address': json['sip_address'] == null ? undefined : json['sip_address'],
|
|
38
|
+
'auth_username': json['auth_username'] == null ? undefined : json['auth_username'],
|
|
39
|
+
'auth_password': json['auth_password'] == null ? undefined : json['auth_password'],
|
|
37
40
|
};
|
|
38
41
|
}
|
|
39
42
|
function AdminPhoneNumberUpdateToJSON(json) {
|
|
@@ -46,5 +49,8 @@ function AdminPhoneNumberUpdateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
46
49
|
return {
|
|
47
50
|
'number': value['number'],
|
|
48
51
|
'supports_call_redirect': value['supports_call_redirect'],
|
|
52
|
+
'sip_address': value['sip_address'],
|
|
53
|
+
'auth_username': value['auth_username'],
|
|
54
|
+
'auth_password': value['auth_password'],
|
|
49
55
|
};
|
|
50
56
|
}
|