@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,68 @@
|
|
|
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 OutboundCall
|
|
16
|
+
*/
|
|
17
|
+
export interface OutboundCall {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof OutboundCall
|
|
22
|
+
*/
|
|
23
|
+
call_id?: string | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof OutboundCall
|
|
28
|
+
*/
|
|
29
|
+
room_name?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof OutboundCall
|
|
34
|
+
*/
|
|
35
|
+
destination?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof OutboundCall
|
|
40
|
+
*/
|
|
41
|
+
from_number?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof OutboundCall
|
|
46
|
+
*/
|
|
47
|
+
participant_identity?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof OutboundCall
|
|
52
|
+
*/
|
|
53
|
+
sip_participant_id?: string | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {boolean}
|
|
57
|
+
* @memberof OutboundCall
|
|
58
|
+
*/
|
|
59
|
+
dispatched?: boolean;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the OutboundCall interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfOutboundCall(value: object): value is OutboundCall;
|
|
65
|
+
export declare function OutboundCallFromJSON(json: any): OutboundCall;
|
|
66
|
+
export declare function OutboundCallFromJSONTyped(json: any, ignoreDiscriminator: boolean): OutboundCall;
|
|
67
|
+
export declare function OutboundCallToJSON(json: any): OutboundCall;
|
|
68
|
+
export declare function OutboundCallToJSONTyped(value?: OutboundCall | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
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.instanceOfOutboundCall = instanceOfOutboundCall;
|
|
17
|
+
exports.OutboundCallFromJSON = OutboundCallFromJSON;
|
|
18
|
+
exports.OutboundCallFromJSONTyped = OutboundCallFromJSONTyped;
|
|
19
|
+
exports.OutboundCallToJSON = OutboundCallToJSON;
|
|
20
|
+
exports.OutboundCallToJSONTyped = OutboundCallToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the OutboundCall interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfOutboundCall(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function OutboundCallFromJSON(json) {
|
|
28
|
+
return OutboundCallFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function OutboundCallFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'call_id': json['call_id'] == null ? undefined : json['call_id'],
|
|
36
|
+
'room_name': json['room_name'] == null ? undefined : json['room_name'],
|
|
37
|
+
'destination': json['destination'] == null ? undefined : json['destination'],
|
|
38
|
+
'from_number': json['from_number'] == null ? undefined : json['from_number'],
|
|
39
|
+
'participant_identity': json['participant_identity'] == null ? undefined : json['participant_identity'],
|
|
40
|
+
'sip_participant_id': json['sip_participant_id'] == null ? undefined : json['sip_participant_id'],
|
|
41
|
+
'dispatched': json['dispatched'] == null ? undefined : json['dispatched'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function OutboundCallToJSON(json) {
|
|
45
|
+
return OutboundCallToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function OutboundCallToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'call_id': value['call_id'],
|
|
53
|
+
'room_name': value['room_name'],
|
|
54
|
+
'destination': value['destination'],
|
|
55
|
+
'from_number': value['from_number'],
|
|
56
|
+
'participant_identity': value['participant_identity'],
|
|
57
|
+
'sip_participant_id': value['sip_participant_id'],
|
|
58
|
+
'dispatched': value['dispatched'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 OutboundCallRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface OutboundCallRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof OutboundCallRequest
|
|
22
|
+
*/
|
|
23
|
+
voice_agent_id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Destination from a phonebook entry. Provide this OR destination_number.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof OutboundCallRequest
|
|
28
|
+
*/
|
|
29
|
+
phonebook_entry_id?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Custom destination phone number. Provide this OR phonebook_entry_id.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof OutboundCallRequest
|
|
34
|
+
*/
|
|
35
|
+
destination_number?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the OutboundCallRequest interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfOutboundCallRequest(value: object): value is OutboundCallRequest;
|
|
41
|
+
export declare function OutboundCallRequestFromJSON(json: any): OutboundCallRequest;
|
|
42
|
+
export declare function OutboundCallRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): OutboundCallRequest;
|
|
43
|
+
export declare function OutboundCallRequestToJSON(json: any): OutboundCallRequest;
|
|
44
|
+
export declare function OutboundCallRequestToJSONTyped(value?: OutboundCallRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfOutboundCallRequest = instanceOfOutboundCallRequest;
|
|
17
|
+
exports.OutboundCallRequestFromJSON = OutboundCallRequestFromJSON;
|
|
18
|
+
exports.OutboundCallRequestFromJSONTyped = OutboundCallRequestFromJSONTyped;
|
|
19
|
+
exports.OutboundCallRequestToJSON = OutboundCallRequestToJSON;
|
|
20
|
+
exports.OutboundCallRequestToJSONTyped = OutboundCallRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the OutboundCallRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfOutboundCallRequest(value) {
|
|
25
|
+
if (!('voice_agent_id' in value) || value['voice_agent_id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function OutboundCallRequestFromJSON(json) {
|
|
30
|
+
return OutboundCallRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function OutboundCallRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'voice_agent_id': json['voice_agent_id'],
|
|
38
|
+
'phonebook_entry_id': json['phonebook_entry_id'] == null ? undefined : json['phonebook_entry_id'],
|
|
39
|
+
'destination_number': json['destination_number'] == null ? undefined : json['destination_number'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function OutboundCallRequestToJSON(json) {
|
|
43
|
+
return OutboundCallRequestToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function OutboundCallRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'voice_agent_id': value['voice_agent_id'],
|
|
51
|
+
'phonebook_entry_id': value['phonebook_entry_id'],
|
|
52
|
+
'destination_number': value['destination_number'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -39,6 +39,24 @@ export interface PhoneNumber {
|
|
|
39
39
|
* @memberof PhoneNumber
|
|
40
40
|
*/
|
|
41
41
|
supports_call_redirect?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Whether this number can place outbound calls (has an outbound trunk).
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof PhoneNumber
|
|
46
|
+
*/
|
|
47
|
+
supports_outbound?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Outbound SIP provider host/address (outbound numbers only).
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof PhoneNumber
|
|
52
|
+
*/
|
|
53
|
+
sip_address?: string | null;
|
|
54
|
+
/**
|
|
55
|
+
* Whether the outbound trunk + credentials are configured. Secrets are never returned.
|
|
56
|
+
* @type {boolean}
|
|
57
|
+
* @memberof PhoneNumber
|
|
58
|
+
*/
|
|
59
|
+
outbound_configured?: boolean;
|
|
42
60
|
/**
|
|
43
61
|
*
|
|
44
62
|
* @type {Date}
|
|
@@ -36,6 +36,9 @@ function PhoneNumberFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
36
|
'number': json['number'] == null ? undefined : json['number'],
|
|
37
37
|
'sip_trunk_id': json['sip_trunk_id'] == null ? undefined : json['sip_trunk_id'],
|
|
38
38
|
'supports_call_redirect': json['supports_call_redirect'] == null ? undefined : json['supports_call_redirect'],
|
|
39
|
+
'supports_outbound': json['supports_outbound'] == null ? undefined : json['supports_outbound'],
|
|
40
|
+
'sip_address': json['sip_address'] == null ? undefined : json['sip_address'],
|
|
41
|
+
'outbound_configured': json['outbound_configured'] == null ? undefined : json['outbound_configured'],
|
|
39
42
|
'created_at': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
|
|
40
43
|
};
|
|
41
44
|
}
|
|
@@ -51,6 +54,9 @@ function PhoneNumberToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
51
54
|
'number': value['number'],
|
|
52
55
|
'sip_trunk_id': value['sip_trunk_id'],
|
|
53
56
|
'supports_call_redirect': value['supports_call_redirect'],
|
|
57
|
+
'supports_outbound': value['supports_outbound'],
|
|
58
|
+
'sip_address': value['sip_address'],
|
|
59
|
+
'outbound_configured': value['outbound_configured'],
|
|
54
60
|
'created_at': value['created_at'] == null ? value['created_at'] : value['created_at'].toISOString(),
|
|
55
61
|
};
|
|
56
62
|
}
|
|
@@ -27,6 +27,30 @@ export interface PhoneNumberCreate {
|
|
|
27
27
|
* @memberof PhoneNumberCreate
|
|
28
28
|
*/
|
|
29
29
|
supports_call_redirect?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Whether this number can place outbound calls. When true, sip_address, auth_username and auth_password are required.
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof PhoneNumberCreate
|
|
34
|
+
*/
|
|
35
|
+
supports_outbound?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Outbound SIP provider host/address (required when supports_outbound is true).
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof PhoneNumberCreate
|
|
40
|
+
*/
|
|
41
|
+
sip_address?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Outbound SIP auth username (required when supports_outbound is true). Stored encrypted.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof PhoneNumberCreate
|
|
46
|
+
*/
|
|
47
|
+
auth_username?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Outbound SIP auth password (required when supports_outbound is true). Stored encrypted, never returned.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof PhoneNumberCreate
|
|
52
|
+
*/
|
|
53
|
+
auth_password?: string;
|
|
30
54
|
}
|
|
31
55
|
/**
|
|
32
56
|
* Check if a given object implements the PhoneNumberCreate interface.
|
|
@@ -36,6 +36,10 @@ function PhoneNumberCreateFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
36
|
return {
|
|
37
37
|
'number': json['number'],
|
|
38
38
|
'supports_call_redirect': json['supports_call_redirect'] == null ? undefined : json['supports_call_redirect'],
|
|
39
|
+
'supports_outbound': json['supports_outbound'] == null ? undefined : json['supports_outbound'],
|
|
40
|
+
'sip_address': json['sip_address'] == null ? undefined : json['sip_address'],
|
|
41
|
+
'auth_username': json['auth_username'] == null ? undefined : json['auth_username'],
|
|
42
|
+
'auth_password': json['auth_password'] == null ? undefined : json['auth_password'],
|
|
39
43
|
};
|
|
40
44
|
}
|
|
41
45
|
function PhoneNumberCreateToJSON(json) {
|
|
@@ -48,5 +52,9 @@ function PhoneNumberCreateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
48
52
|
return {
|
|
49
53
|
'number': value['number'],
|
|
50
54
|
'supports_call_redirect': value['supports_call_redirect'],
|
|
55
|
+
'supports_outbound': value['supports_outbound'],
|
|
56
|
+
'sip_address': value['sip_address'],
|
|
57
|
+
'auth_username': value['auth_username'],
|
|
58
|
+
'auth_password': value['auth_password'],
|
|
51
59
|
};
|
|
52
60
|
}
|
|
@@ -0,0 +1,101 @@
|
|
|
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
|
+
* A backorder for a phone number, fulfilled automatically when the pool expands.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PhoneNumberOrder
|
|
16
|
+
*/
|
|
17
|
+
export interface PhoneNumberOrder {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PhoneNumberOrder
|
|
22
|
+
*/
|
|
23
|
+
id?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PhoneNumberOrder
|
|
28
|
+
*/
|
|
29
|
+
organization_id?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PhoneNumberOrder
|
|
34
|
+
*/
|
|
35
|
+
agent_id?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof PhoneNumberOrder
|
|
40
|
+
*/
|
|
41
|
+
requires_call_redirect?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof PhoneNumberOrder
|
|
46
|
+
*/
|
|
47
|
+
status?: PhoneNumberOrderStatusEnum;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof PhoneNumberOrder
|
|
52
|
+
*/
|
|
53
|
+
phone_number_id?: number | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof PhoneNumberOrder
|
|
58
|
+
*/
|
|
59
|
+
sip_trunk_id?: string | null;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof PhoneNumberOrder
|
|
64
|
+
*/
|
|
65
|
+
note?: string | null;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {Date}
|
|
69
|
+
* @memberof PhoneNumberOrder
|
|
70
|
+
*/
|
|
71
|
+
created_at?: Date;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {Date}
|
|
75
|
+
* @memberof PhoneNumberOrder
|
|
76
|
+
*/
|
|
77
|
+
fulfilled_at?: Date | null;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {Date}
|
|
81
|
+
* @memberof PhoneNumberOrder
|
|
82
|
+
*/
|
|
83
|
+
canceled_at?: Date | null;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* @export
|
|
87
|
+
*/
|
|
88
|
+
export declare const PhoneNumberOrderStatusEnum: {
|
|
89
|
+
readonly Pending: "pending";
|
|
90
|
+
readonly Active: "active";
|
|
91
|
+
readonly Canceled: "canceled";
|
|
92
|
+
};
|
|
93
|
+
export type PhoneNumberOrderStatusEnum = typeof PhoneNumberOrderStatusEnum[keyof typeof PhoneNumberOrderStatusEnum];
|
|
94
|
+
/**
|
|
95
|
+
* Check if a given object implements the PhoneNumberOrder interface.
|
|
96
|
+
*/
|
|
97
|
+
export declare function instanceOfPhoneNumberOrder(value: object): value is PhoneNumberOrder;
|
|
98
|
+
export declare function PhoneNumberOrderFromJSON(json: any): PhoneNumberOrder;
|
|
99
|
+
export declare function PhoneNumberOrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): PhoneNumberOrder;
|
|
100
|
+
export declare function PhoneNumberOrderToJSON(json: any): PhoneNumberOrder;
|
|
101
|
+
export declare function PhoneNumberOrderToJSONTyped(value?: PhoneNumberOrder | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,77 @@
|
|
|
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.PhoneNumberOrderStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfPhoneNumberOrder = instanceOfPhoneNumberOrder;
|
|
18
|
+
exports.PhoneNumberOrderFromJSON = PhoneNumberOrderFromJSON;
|
|
19
|
+
exports.PhoneNumberOrderFromJSONTyped = PhoneNumberOrderFromJSONTyped;
|
|
20
|
+
exports.PhoneNumberOrderToJSON = PhoneNumberOrderToJSON;
|
|
21
|
+
exports.PhoneNumberOrderToJSONTyped = PhoneNumberOrderToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.PhoneNumberOrderStatusEnum = {
|
|
26
|
+
Pending: 'pending',
|
|
27
|
+
Active: 'active',
|
|
28
|
+
Canceled: 'canceled'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the PhoneNumberOrder interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfPhoneNumberOrder(value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function PhoneNumberOrderFromJSON(json) {
|
|
37
|
+
return PhoneNumberOrderFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function PhoneNumberOrderFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
45
|
+
'organization_id': json['organization_id'] == null ? undefined : json['organization_id'],
|
|
46
|
+
'agent_id': json['agent_id'] == null ? undefined : json['agent_id'],
|
|
47
|
+
'requires_call_redirect': json['requires_call_redirect'] == null ? undefined : json['requires_call_redirect'],
|
|
48
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
49
|
+
'phone_number_id': json['phone_number_id'] == null ? undefined : json['phone_number_id'],
|
|
50
|
+
'sip_trunk_id': json['sip_trunk_id'] == null ? undefined : json['sip_trunk_id'],
|
|
51
|
+
'note': json['note'] == null ? undefined : json['note'],
|
|
52
|
+
'created_at': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
|
|
53
|
+
'fulfilled_at': json['fulfilled_at'] == null ? undefined : (new Date(json['fulfilled_at'])),
|
|
54
|
+
'canceled_at': json['canceled_at'] == null ? undefined : (new Date(json['canceled_at'])),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function PhoneNumberOrderToJSON(json) {
|
|
58
|
+
return PhoneNumberOrderToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function PhoneNumberOrderToJSONTyped(value, ignoreDiscriminator = false) {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'id': value['id'],
|
|
66
|
+
'organization_id': value['organization_id'],
|
|
67
|
+
'agent_id': value['agent_id'],
|
|
68
|
+
'requires_call_redirect': value['requires_call_redirect'],
|
|
69
|
+
'status': value['status'],
|
|
70
|
+
'phone_number_id': value['phone_number_id'],
|
|
71
|
+
'sip_trunk_id': value['sip_trunk_id'],
|
|
72
|
+
'note': value['note'],
|
|
73
|
+
'created_at': value['created_at'] == null ? value['created_at'] : value['created_at'].toISOString(),
|
|
74
|
+
'fulfilled_at': value['fulfilled_at'] == null ? value['fulfilled_at'] : value['fulfilled_at'].toISOString(),
|
|
75
|
+
'canceled_at': value['canceled_at'] == null ? value['canceled_at'] : value['canceled_at'].toISOString(),
|
|
76
|
+
};
|
|
77
|
+
}
|
|
@@ -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;
|