@l7mp/tivadar-ai-api-sdk 0.2.16 → 0.2.18
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 +7 -0
- package/dist/api-client.js +7 -0
- package/dist/apis/LiveCallsApi.d.ts +45 -0
- package/dist/apis/LiveCallsApi.js +115 -0
- package/dist/apis/OutboundCallsApi.d.ts +14 -1
- package/dist/apis/OutboundCallsApi.js +39 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/api-client.d.ts +7 -0
- package/dist/esm/api-client.js +7 -0
- package/dist/esm/apis/LiveCallsApi.d.ts +45 -0
- package/dist/esm/apis/LiveCallsApi.js +111 -0
- package/dist/esm/apis/OutboundCallsApi.d.ts +14 -1
- package/dist/esm/apis/OutboundCallsApi.js +40 -1
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/LiveCall.d.ts +57 -0
- package/dist/esm/models/LiveCall.js +50 -0
- package/dist/esm/models/LiveCallParticipant.d.ts +95 -0
- package/dist/esm/models/LiveCallParticipant.js +81 -0
- package/dist/esm/models/LiveCallToken.d.ts +44 -0
- package/dist/esm/models/LiveCallToken.js +45 -0
- package/dist/esm/models/OutboundCallRequest.d.ts +6 -0
- package/dist/esm/models/OutboundCallRequest.js +2 -0
- package/dist/esm/models/OutboundNumber.d.ts +38 -0
- package/dist/esm/models/OutboundNumber.js +43 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/models/LiveCall.d.ts +57 -0
- package/dist/models/LiveCall.js +57 -0
- package/dist/models/LiveCallParticipant.d.ts +95 -0
- package/dist/models/LiveCallParticipant.js +89 -0
- package/dist/models/LiveCallToken.d.ts +44 -0
- package/dist/models/LiveCallToken.js +52 -0
- package/dist/models/OutboundCallRequest.d.ts +6 -0
- package/dist/models/OutboundCallRequest.js +2 -0
- package/dist/models/OutboundNumber.d.ts +38 -0
- package/dist/models/OutboundNumber.js +50 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
- package/src/api-client.ts +14 -0
- package/src/apis/LiveCallsApi.ts +144 -0
- package/src/apis/OutboundCallsApi.ts +54 -0
- package/src/apis/index.ts +1 -0
- package/src/models/LiveCall.ts +105 -0
- package/src/models/LiveCallParticipant.ts +143 -0
- package/src/models/LiveCallToken.ts +81 -0
- package/src/models/OutboundCallRequest.ts +8 -0
- package/src/models/OutboundNumber.ts +73 -0
- package/src/models/index.ts +4 -0
|
@@ -0,0 +1,57 @@
|
|
|
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 { LiveCallParticipant } from './LiveCallParticipant';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface LiveCall
|
|
17
|
+
*/
|
|
18
|
+
export interface LiveCall {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof LiveCall
|
|
23
|
+
*/
|
|
24
|
+
room_name?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof LiveCall
|
|
29
|
+
*/
|
|
30
|
+
room_sid?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {Date}
|
|
34
|
+
* @memberof LiveCall
|
|
35
|
+
*/
|
|
36
|
+
started_at?: Date | null;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof LiveCall
|
|
41
|
+
*/
|
|
42
|
+
num_participants?: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<LiveCallParticipant>}
|
|
46
|
+
* @memberof LiveCall
|
|
47
|
+
*/
|
|
48
|
+
participants?: Array<LiveCallParticipant>;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the LiveCall interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfLiveCall(value: object): value is LiveCall;
|
|
54
|
+
export declare function LiveCallFromJSON(json: any): LiveCall;
|
|
55
|
+
export declare function LiveCallFromJSONTyped(json: any, ignoreDiscriminator: boolean): LiveCall;
|
|
56
|
+
export declare function LiveCallToJSON(json: any): LiveCall;
|
|
57
|
+
export declare function LiveCallToJSONTyped(value?: LiveCall | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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 { LiveCallParticipantFromJSON, LiveCallParticipantToJSON, } from './LiveCallParticipant';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the LiveCall interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfLiveCall(value) {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
export function LiveCallFromJSON(json) {
|
|
22
|
+
return LiveCallFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
export function LiveCallFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if (json == null) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'room_name': json['room_name'] == null ? undefined : json['room_name'],
|
|
30
|
+
'room_sid': json['room_sid'] == null ? undefined : json['room_sid'],
|
|
31
|
+
'started_at': json['started_at'] == null ? undefined : (new Date(json['started_at'])),
|
|
32
|
+
'num_participants': json['num_participants'] == null ? undefined : json['num_participants'],
|
|
33
|
+
'participants': json['participants'] == null ? undefined : (json['participants'].map(LiveCallParticipantFromJSON)),
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function LiveCallToJSON(json) {
|
|
37
|
+
return LiveCallToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function LiveCallToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'room_name': value['room_name'],
|
|
45
|
+
'room_sid': value['room_sid'],
|
|
46
|
+
'started_at': value['started_at'] == null ? value['started_at'] : value['started_at'].toISOString(),
|
|
47
|
+
'num_participants': value['num_participants'],
|
|
48
|
+
'participants': value['participants'] == null ? undefined : (value['participants'].map(LiveCallParticipantToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
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 LiveCallParticipant
|
|
16
|
+
*/
|
|
17
|
+
export interface LiveCallParticipant {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof LiveCallParticipant
|
|
22
|
+
*/
|
|
23
|
+
identity?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof LiveCallParticipant
|
|
28
|
+
*/
|
|
29
|
+
name?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
* LiveKit participant kind.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof LiveCallParticipant
|
|
34
|
+
*/
|
|
35
|
+
kind?: LiveCallParticipantKindEnum;
|
|
36
|
+
/**
|
|
37
|
+
* Interpreted role — sip→caller, agent→agent, standard→operator.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof LiveCallParticipant
|
|
40
|
+
*/
|
|
41
|
+
role?: LiveCallParticipantRoleEnum;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof LiveCallParticipant
|
|
46
|
+
*/
|
|
47
|
+
state?: LiveCallParticipantStateEnum;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof LiveCallParticipant
|
|
52
|
+
*/
|
|
53
|
+
joined_at?: Date | null;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export declare const LiveCallParticipantKindEnum: {
|
|
59
|
+
readonly Standard: "standard";
|
|
60
|
+
readonly Sip: "sip";
|
|
61
|
+
readonly Agent: "agent";
|
|
62
|
+
readonly Ingress: "ingress";
|
|
63
|
+
readonly Egress: "egress";
|
|
64
|
+
readonly Unknown: "unknown";
|
|
65
|
+
};
|
|
66
|
+
export type LiveCallParticipantKindEnum = typeof LiveCallParticipantKindEnum[keyof typeof LiveCallParticipantKindEnum];
|
|
67
|
+
/**
|
|
68
|
+
* @export
|
|
69
|
+
*/
|
|
70
|
+
export declare const LiveCallParticipantRoleEnum: {
|
|
71
|
+
readonly Caller: "caller";
|
|
72
|
+
readonly Agent: "agent";
|
|
73
|
+
readonly Operator: "operator";
|
|
74
|
+
readonly Other: "other";
|
|
75
|
+
};
|
|
76
|
+
export type LiveCallParticipantRoleEnum = typeof LiveCallParticipantRoleEnum[keyof typeof LiveCallParticipantRoleEnum];
|
|
77
|
+
/**
|
|
78
|
+
* @export
|
|
79
|
+
*/
|
|
80
|
+
export declare const LiveCallParticipantStateEnum: {
|
|
81
|
+
readonly Joining: "joining";
|
|
82
|
+
readonly Joined: "joined";
|
|
83
|
+
readonly Active: "active";
|
|
84
|
+
readonly Disconnected: "disconnected";
|
|
85
|
+
readonly Unknown: "unknown";
|
|
86
|
+
};
|
|
87
|
+
export type LiveCallParticipantStateEnum = typeof LiveCallParticipantStateEnum[keyof typeof LiveCallParticipantStateEnum];
|
|
88
|
+
/**
|
|
89
|
+
* Check if a given object implements the LiveCallParticipant interface.
|
|
90
|
+
*/
|
|
91
|
+
export declare function instanceOfLiveCallParticipant(value: object): value is LiveCallParticipant;
|
|
92
|
+
export declare function LiveCallParticipantFromJSON(json: any): LiveCallParticipant;
|
|
93
|
+
export declare function LiveCallParticipantFromJSONTyped(json: any, ignoreDiscriminator: boolean): LiveCallParticipant;
|
|
94
|
+
export declare function LiveCallParticipantToJSON(json: any): LiveCallParticipant;
|
|
95
|
+
export declare function LiveCallParticipantToJSONTyped(value?: LiveCallParticipant | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,81 @@
|
|
|
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 LiveCallParticipantKindEnum = {
|
|
18
|
+
Standard: 'standard',
|
|
19
|
+
Sip: 'sip',
|
|
20
|
+
Agent: 'agent',
|
|
21
|
+
Ingress: 'ingress',
|
|
22
|
+
Egress: 'egress',
|
|
23
|
+
Unknown: 'unknown'
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
export const LiveCallParticipantRoleEnum = {
|
|
29
|
+
Caller: 'caller',
|
|
30
|
+
Agent: 'agent',
|
|
31
|
+
Operator: 'operator',
|
|
32
|
+
Other: 'other'
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* @export
|
|
36
|
+
*/
|
|
37
|
+
export const LiveCallParticipantStateEnum = {
|
|
38
|
+
Joining: 'joining',
|
|
39
|
+
Joined: 'joined',
|
|
40
|
+
Active: 'active',
|
|
41
|
+
Disconnected: 'disconnected',
|
|
42
|
+
Unknown: 'unknown'
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the LiveCallParticipant interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfLiveCallParticipant(value) {
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
export function LiveCallParticipantFromJSON(json) {
|
|
51
|
+
return LiveCallParticipantFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
export function LiveCallParticipantFromJSONTyped(json, ignoreDiscriminator) {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'identity': json['identity'] == null ? undefined : json['identity'],
|
|
59
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
60
|
+
'kind': json['kind'] == null ? undefined : json['kind'],
|
|
61
|
+
'role': json['role'] == null ? undefined : json['role'],
|
|
62
|
+
'state': json['state'] == null ? undefined : json['state'],
|
|
63
|
+
'joined_at': json['joined_at'] == null ? undefined : (new Date(json['joined_at'])),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
export function LiveCallParticipantToJSON(json) {
|
|
67
|
+
return LiveCallParticipantToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
export function LiveCallParticipantToJSONTyped(value, ignoreDiscriminator = false) {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
'identity': value['identity'],
|
|
75
|
+
'name': value['name'],
|
|
76
|
+
'kind': value['kind'],
|
|
77
|
+
'role': value['role'],
|
|
78
|
+
'state': value['state'],
|
|
79
|
+
'joined_at': value['joined_at'] == null ? value['joined_at'] : value['joined_at'].toISOString(),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
@@ -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 LiveCallToken
|
|
16
|
+
*/
|
|
17
|
+
export interface LiveCallToken {
|
|
18
|
+
/**
|
|
19
|
+
* LiveKit access token with talk + listen + room-admin grants.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof LiveCallToken
|
|
22
|
+
*/
|
|
23
|
+
token?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof LiveCallToken
|
|
28
|
+
*/
|
|
29
|
+
room_name?: string;
|
|
30
|
+
/**
|
|
31
|
+
* LiveKit server URL to connect to.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof LiveCallToken
|
|
34
|
+
*/
|
|
35
|
+
url?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the LiveCallToken interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfLiveCallToken(value: object): value is LiveCallToken;
|
|
41
|
+
export declare function LiveCallTokenFromJSON(json: any): LiveCallToken;
|
|
42
|
+
export declare function LiveCallTokenFromJSONTyped(json: any, ignoreDiscriminator: boolean): LiveCallToken;
|
|
43
|
+
export declare function LiveCallTokenToJSON(json: any): LiveCallToken;
|
|
44
|
+
export declare function LiveCallTokenToJSONTyped(value?: LiveCallToken | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
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 LiveCallToken interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfLiveCallToken(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function LiveCallTokenFromJSON(json) {
|
|
21
|
+
return LiveCallTokenFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function LiveCallTokenFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'token': json['token'] == null ? undefined : json['token'],
|
|
29
|
+
'room_name': json['room_name'] == null ? undefined : json['room_name'],
|
|
30
|
+
'url': json['url'] == null ? undefined : json['url'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function LiveCallTokenToJSON(json) {
|
|
34
|
+
return LiveCallTokenToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function LiveCallTokenToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'token': value['token'],
|
|
42
|
+
'room_name': value['room_name'],
|
|
43
|
+
'url': value['url'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
@@ -33,6 +33,12 @@ export interface OutboundCallRequest {
|
|
|
33
33
|
* @memberof OutboundCallRequest
|
|
34
34
|
*/
|
|
35
35
|
destination_number?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Which of the org's outbound-capable numbers to use as caller-ID (From). Omit to auto-select.
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof OutboundCallRequest
|
|
40
|
+
*/
|
|
41
|
+
from_phone_number_id?: number;
|
|
36
42
|
}
|
|
37
43
|
/**
|
|
38
44
|
* Check if a given object implements the OutboundCallRequest interface.
|
|
@@ -30,6 +30,7 @@ export function OutboundCallRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
30
30
|
'voice_agent_id': json['voice_agent_id'],
|
|
31
31
|
'phonebook_entry_id': json['phonebook_entry_id'] == null ? undefined : json['phonebook_entry_id'],
|
|
32
32
|
'destination_number': json['destination_number'] == null ? undefined : json['destination_number'],
|
|
33
|
+
'from_phone_number_id': json['from_phone_number_id'] == null ? undefined : json['from_phone_number_id'],
|
|
33
34
|
};
|
|
34
35
|
}
|
|
35
36
|
export function OutboundCallRequestToJSON(json) {
|
|
@@ -43,5 +44,6 @@ export function OutboundCallRequestToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
43
44
|
'voice_agent_id': value['voice_agent_id'],
|
|
44
45
|
'phonebook_entry_id': value['phonebook_entry_id'],
|
|
45
46
|
'destination_number': value['destination_number'],
|
|
47
|
+
'from_phone_number_id': value['from_phone_number_id'],
|
|
46
48
|
};
|
|
47
49
|
}
|
|
@@ -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
|
+
* An outbound-capable number assigned to the organization, usable as caller-ID.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface OutboundNumber
|
|
16
|
+
*/
|
|
17
|
+
export interface OutboundNumber {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof OutboundNumber
|
|
22
|
+
*/
|
|
23
|
+
id?: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof OutboundNumber
|
|
28
|
+
*/
|
|
29
|
+
number?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the OutboundNumber interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfOutboundNumber(value: object): value is OutboundNumber;
|
|
35
|
+
export declare function OutboundNumberFromJSON(json: any): OutboundNumber;
|
|
36
|
+
export declare function OutboundNumberFromJSONTyped(json: any, ignoreDiscriminator: boolean): OutboundNumber;
|
|
37
|
+
export declare function OutboundNumberToJSON(json: any): OutboundNumber;
|
|
38
|
+
export declare function OutboundNumberToJSONTyped(value?: OutboundNumber | 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 OutboundNumber interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfOutboundNumber(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function OutboundNumberFromJSON(json) {
|
|
21
|
+
return OutboundNumberFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function OutboundNumberFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
29
|
+
'number': json['number'] == null ? undefined : json['number'],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export function OutboundNumberToJSON(json) {
|
|
33
|
+
return OutboundNumberToJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function OutboundNumberToJSONTyped(value, ignoreDiscriminator = false) {
|
|
36
|
+
if (value == null) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'id': value['id'],
|
|
41
|
+
'number': value['number'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -48,6 +48,9 @@ export * from './InvitationAccept';
|
|
|
48
48
|
export * from './InvitationCreate';
|
|
49
49
|
export * from './InvitationResponse';
|
|
50
50
|
export * from './LifecycleResponse';
|
|
51
|
+
export * from './LiveCall';
|
|
52
|
+
export * from './LiveCallParticipant';
|
|
53
|
+
export * from './LiveCallToken';
|
|
51
54
|
export * from './LlmAgent';
|
|
52
55
|
export * from './LlmAgentInput';
|
|
53
56
|
export * from './LlmAgentUpdateInput';
|
|
@@ -72,6 +75,7 @@ export * from './OrganizationsOrganizationIdVoiceAgentsBasicGet200ResponseInner'
|
|
|
72
75
|
export * from './OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest';
|
|
73
76
|
export * from './OutboundCall';
|
|
74
77
|
export * from './OutboundCallRequest';
|
|
78
|
+
export * from './OutboundNumber';
|
|
75
79
|
export * from './PauseSubscriptionRequest';
|
|
76
80
|
export * from './PhoneNumber';
|
|
77
81
|
export * from './PhoneNumberCreate';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -50,6 +50,9 @@ export * from './InvitationAccept';
|
|
|
50
50
|
export * from './InvitationCreate';
|
|
51
51
|
export * from './InvitationResponse';
|
|
52
52
|
export * from './LifecycleResponse';
|
|
53
|
+
export * from './LiveCall';
|
|
54
|
+
export * from './LiveCallParticipant';
|
|
55
|
+
export * from './LiveCallToken';
|
|
53
56
|
export * from './LlmAgent';
|
|
54
57
|
export * from './LlmAgentInput';
|
|
55
58
|
export * from './LlmAgentUpdateInput';
|
|
@@ -74,6 +77,7 @@ export * from './OrganizationsOrganizationIdVoiceAgentsBasicGet200ResponseInner'
|
|
|
74
77
|
export * from './OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest';
|
|
75
78
|
export * from './OutboundCall';
|
|
76
79
|
export * from './OutboundCallRequest';
|
|
80
|
+
export * from './OutboundNumber';
|
|
77
81
|
export * from './PauseSubscriptionRequest';
|
|
78
82
|
export * from './PhoneNumber';
|
|
79
83
|
export * from './PhoneNumberCreate';
|
|
@@ -0,0 +1,57 @@
|
|
|
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 { LiveCallParticipant } from './LiveCallParticipant';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface LiveCall
|
|
17
|
+
*/
|
|
18
|
+
export interface LiveCall {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof LiveCall
|
|
23
|
+
*/
|
|
24
|
+
room_name?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof LiveCall
|
|
29
|
+
*/
|
|
30
|
+
room_sid?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {Date}
|
|
34
|
+
* @memberof LiveCall
|
|
35
|
+
*/
|
|
36
|
+
started_at?: Date | null;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof LiveCall
|
|
41
|
+
*/
|
|
42
|
+
num_participants?: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<LiveCallParticipant>}
|
|
46
|
+
* @memberof LiveCall
|
|
47
|
+
*/
|
|
48
|
+
participants?: Array<LiveCallParticipant>;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the LiveCall interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfLiveCall(value: object): value is LiveCall;
|
|
54
|
+
export declare function LiveCallFromJSON(json: any): LiveCall;
|
|
55
|
+
export declare function LiveCallFromJSONTyped(json: any, ignoreDiscriminator: boolean): LiveCall;
|
|
56
|
+
export declare function LiveCallToJSON(json: any): LiveCall;
|
|
57
|
+
export declare function LiveCallToJSONTyped(value?: LiveCall | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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.instanceOfLiveCall = instanceOfLiveCall;
|
|
17
|
+
exports.LiveCallFromJSON = LiveCallFromJSON;
|
|
18
|
+
exports.LiveCallFromJSONTyped = LiveCallFromJSONTyped;
|
|
19
|
+
exports.LiveCallToJSON = LiveCallToJSON;
|
|
20
|
+
exports.LiveCallToJSONTyped = LiveCallToJSONTyped;
|
|
21
|
+
const LiveCallParticipant_1 = require("./LiveCallParticipant");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the LiveCall interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfLiveCall(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function LiveCallFromJSON(json) {
|
|
29
|
+
return LiveCallFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function LiveCallFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'room_name': json['room_name'] == null ? undefined : json['room_name'],
|
|
37
|
+
'room_sid': json['room_sid'] == null ? undefined : json['room_sid'],
|
|
38
|
+
'started_at': json['started_at'] == null ? undefined : (new Date(json['started_at'])),
|
|
39
|
+
'num_participants': json['num_participants'] == null ? undefined : json['num_participants'],
|
|
40
|
+
'participants': json['participants'] == null ? undefined : (json['participants'].map(LiveCallParticipant_1.LiveCallParticipantFromJSON)),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function LiveCallToJSON(json) {
|
|
44
|
+
return LiveCallToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function LiveCallToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'room_name': value['room_name'],
|
|
52
|
+
'room_sid': value['room_sid'],
|
|
53
|
+
'started_at': value['started_at'] == null ? value['started_at'] : value['started_at'].toISOString(),
|
|
54
|
+
'num_participants': value['num_participants'],
|
|
55
|
+
'participants': value['participants'] == null ? undefined : (value['participants'].map(LiveCallParticipant_1.LiveCallParticipantToJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|