@l7mp/tivadar-ai-api-sdk 0.2.11 → 0.2.13
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 +18 -1
- package/dist/api-client.js +11 -0
- package/dist/apis/AdminSubscriptionsApi.d.ts +3 -3
- package/dist/apis/AdminSubscriptionsApi.js +3 -2
- package/dist/apis/CallFlagsApi.d.ts +133 -0
- package/dist/apis/CallFlagsApi.js +376 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/api-client.d.ts +18 -1
- package/dist/esm/api-client.js +11 -0
- package/dist/esm/apis/AdminSubscriptionsApi.d.ts +3 -3
- package/dist/esm/apis/AdminSubscriptionsApi.js +4 -3
- package/dist/esm/apis/CallFlagsApi.d.ts +133 -0
- package/dist/esm/apis/CallFlagsApi.js +372 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/AdminSubscriptionsListResponse.d.ts +39 -0
- package/dist/esm/models/AdminSubscriptionsListResponse.js +48 -0
- package/dist/esm/models/Call.d.ts +7 -0
- package/dist/esm/models/Call.js +3 -0
- package/dist/esm/models/CallFlag.d.ts +110 -0
- package/dist/esm/models/CallFlag.js +89 -0
- package/dist/esm/models/CallFlagCreate.d.ts +48 -0
- package/dist/esm/models/CallFlagCreate.js +54 -0
- package/dist/esm/models/CallFlagResolve.d.ts +32 -0
- package/dist/esm/models/CallFlagResolve.js +41 -0
- package/dist/esm/models/CallFlagUpdate.d.ts +48 -0
- package/dist/esm/models/CallFlagUpdate.js +52 -0
- package/dist/esm/models/CallFlagWithCall.d.ts +117 -0
- package/dist/esm/models/CallFlagWithCall.js +92 -0
- package/dist/esm/models/CallFlagWithCallAllOfCall.d.ts +56 -0
- package/dist/esm/models/CallFlagWithCallAllOfCall.js +49 -0
- package/dist/esm/models/VoiceAgent.d.ts +12 -0
- package/dist/esm/models/VoiceAgent.js +4 -0
- package/dist/esm/models/VoiceAgentCreate.d.ts +12 -0
- package/dist/esm/models/VoiceAgentCreate.js +4 -0
- package/dist/esm/models/VoiceAgentMetadata.d.ts +8 -0
- package/dist/esm/models/VoiceAgentMetadata.js +2 -0
- package/dist/esm/models/VoiceAgentUpdate.d.ts +12 -0
- package/dist/esm/models/VoiceAgentUpdate.js +4 -0
- package/dist/esm/models/VoiceAgentWithSipTrunks.d.ts +12 -0
- package/dist/esm/models/VoiceAgentWithSipTrunks.js +4 -0
- package/dist/esm/models/index.d.ts +7 -0
- package/dist/esm/models/index.js +7 -0
- package/dist/models/AdminSubscriptionsListResponse.d.ts +39 -0
- package/dist/models/AdminSubscriptionsListResponse.js +55 -0
- package/dist/models/Call.d.ts +7 -0
- package/dist/models/Call.js +3 -0
- package/dist/models/CallFlag.d.ts +110 -0
- package/dist/models/CallFlag.js +97 -0
- package/dist/models/CallFlagCreate.d.ts +48 -0
- package/dist/models/CallFlagCreate.js +62 -0
- package/dist/models/CallFlagResolve.d.ts +32 -0
- package/dist/models/CallFlagResolve.js +48 -0
- package/dist/models/CallFlagUpdate.d.ts +48 -0
- package/dist/models/CallFlagUpdate.js +60 -0
- package/dist/models/CallFlagWithCall.d.ts +117 -0
- package/dist/models/CallFlagWithCall.js +100 -0
- package/dist/models/CallFlagWithCallAllOfCall.d.ts +56 -0
- package/dist/models/CallFlagWithCallAllOfCall.js +56 -0
- package/dist/models/VoiceAgent.d.ts +12 -0
- package/dist/models/VoiceAgent.js +4 -0
- package/dist/models/VoiceAgentCreate.d.ts +12 -0
- package/dist/models/VoiceAgentCreate.js +4 -0
- package/dist/models/VoiceAgentMetadata.d.ts +8 -0
- package/dist/models/VoiceAgentMetadata.js +2 -0
- package/dist/models/VoiceAgentUpdate.d.ts +12 -0
- package/dist/models/VoiceAgentUpdate.js +4 -0
- package/dist/models/VoiceAgentWithSipTrunks.d.ts +12 -0
- package/dist/models/VoiceAgentWithSipTrunks.js +4 -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 +29 -0
- package/src/apis/AdminSubscriptionsApi.ts +8 -4
- package/src/apis/CallFlagsApi.ts +546 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AdminSubscriptionsListResponse.ts +83 -0
- package/src/models/Call.ts +16 -0
- package/src/models/CallFlag.ts +173 -0
- package/src/models/CallFlagCreate.ts +87 -0
- package/src/models/CallFlagResolve.ts +65 -0
- package/src/models/CallFlagUpdate.ts +86 -0
- package/src/models/CallFlagWithCall.ts +189 -0
- package/src/models/CallFlagWithCallAllOfCall.ts +97 -0
- package/src/models/VoiceAgent.ts +16 -0
- package/src/models/VoiceAgentCreate.ts +16 -0
- package/src/models/VoiceAgentMetadata.ts +8 -0
- package/src/models/VoiceAgentUpdate.ts +16 -0
- package/src/models/VoiceAgentWithSipTrunks.ts +16 -0
- package/src/models/index.ts +7 -0
|
@@ -0,0 +1,117 @@
|
|
|
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 { CallFlagWithCallAllOfCall } from './CallFlagWithCallAllOfCall';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CallFlagWithCall
|
|
17
|
+
*/
|
|
18
|
+
export interface CallFlagWithCall {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof CallFlagWithCall
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof CallFlagWithCall
|
|
29
|
+
*/
|
|
30
|
+
call_id: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof CallFlagWithCall
|
|
35
|
+
*/
|
|
36
|
+
flag_type: CallFlagWithCallFlagTypeEnum;
|
|
37
|
+
/**
|
|
38
|
+
* Free-text description of why the call was flagged
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof CallFlagWithCall
|
|
41
|
+
*/
|
|
42
|
+
reason?: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* Derived from resolved_at (open when null, otherwise resolved)
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof CallFlagWithCall
|
|
47
|
+
*/
|
|
48
|
+
status: CallFlagWithCallStatusEnum;
|
|
49
|
+
/**
|
|
50
|
+
* User id of whoever raised the flag
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof CallFlagWithCall
|
|
53
|
+
*/
|
|
54
|
+
flagged_by?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {Date}
|
|
58
|
+
* @memberof CallFlagWithCall
|
|
59
|
+
*/
|
|
60
|
+
resolved_at?: Date | null;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof CallFlagWithCall
|
|
65
|
+
*/
|
|
66
|
+
resolved_by?: string | null;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof CallFlagWithCall
|
|
71
|
+
*/
|
|
72
|
+
resolution_note?: string | null;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {Date}
|
|
76
|
+
* @memberof CallFlagWithCall
|
|
77
|
+
*/
|
|
78
|
+
created_at: Date;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {Date}
|
|
82
|
+
* @memberof CallFlagWithCall
|
|
83
|
+
*/
|
|
84
|
+
updated_at: Date;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {CallFlagWithCallAllOfCall}
|
|
88
|
+
* @memberof CallFlagWithCall
|
|
89
|
+
*/
|
|
90
|
+
call?: CallFlagWithCallAllOfCall | null;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* @export
|
|
94
|
+
*/
|
|
95
|
+
export declare const CallFlagWithCallFlagTypeEnum: {
|
|
96
|
+
readonly Error: "error";
|
|
97
|
+
readonly FollowUp: "follow_up";
|
|
98
|
+
readonly ManualReview: "manual_review";
|
|
99
|
+
readonly Other: "other";
|
|
100
|
+
};
|
|
101
|
+
export type CallFlagWithCallFlagTypeEnum = typeof CallFlagWithCallFlagTypeEnum[keyof typeof CallFlagWithCallFlagTypeEnum];
|
|
102
|
+
/**
|
|
103
|
+
* @export
|
|
104
|
+
*/
|
|
105
|
+
export declare const CallFlagWithCallStatusEnum: {
|
|
106
|
+
readonly Open: "open";
|
|
107
|
+
readonly Resolved: "resolved";
|
|
108
|
+
};
|
|
109
|
+
export type CallFlagWithCallStatusEnum = typeof CallFlagWithCallStatusEnum[keyof typeof CallFlagWithCallStatusEnum];
|
|
110
|
+
/**
|
|
111
|
+
* Check if a given object implements the CallFlagWithCall interface.
|
|
112
|
+
*/
|
|
113
|
+
export declare function instanceOfCallFlagWithCall(value: object): value is CallFlagWithCall;
|
|
114
|
+
export declare function CallFlagWithCallFromJSON(json: any): CallFlagWithCall;
|
|
115
|
+
export declare function CallFlagWithCallFromJSONTyped(json: any, ignoreDiscriminator: boolean): CallFlagWithCall;
|
|
116
|
+
export declare function CallFlagWithCallToJSON(json: any): CallFlagWithCall;
|
|
117
|
+
export declare function CallFlagWithCallToJSONTyped(value?: CallFlagWithCall | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,92 @@
|
|
|
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 { CallFlagWithCallAllOfCallFromJSON, CallFlagWithCallAllOfCallToJSON, } from './CallFlagWithCallAllOfCall';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const CallFlagWithCallFlagTypeEnum = {
|
|
19
|
+
Error: 'error',
|
|
20
|
+
FollowUp: 'follow_up',
|
|
21
|
+
ManualReview: 'manual_review',
|
|
22
|
+
Other: 'other'
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
export const CallFlagWithCallStatusEnum = {
|
|
28
|
+
Open: 'open',
|
|
29
|
+
Resolved: 'resolved'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the CallFlagWithCall interface.
|
|
33
|
+
*/
|
|
34
|
+
export function instanceOfCallFlagWithCall(value) {
|
|
35
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('call_id' in value) || value['call_id'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('flag_type' in value) || value['flag_type'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('created_at' in value) || value['created_at'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('updated_at' in value) || value['updated_at'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
export function CallFlagWithCallFromJSON(json) {
|
|
50
|
+
return CallFlagWithCallFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
export function CallFlagWithCallFromJSONTyped(json, ignoreDiscriminator) {
|
|
53
|
+
if (json == null) {
|
|
54
|
+
return json;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'id': json['id'],
|
|
58
|
+
'call_id': json['call_id'],
|
|
59
|
+
'flag_type': json['flag_type'],
|
|
60
|
+
'reason': json['reason'] == null ? undefined : json['reason'],
|
|
61
|
+
'status': json['status'],
|
|
62
|
+
'flagged_by': json['flagged_by'] == null ? undefined : json['flagged_by'],
|
|
63
|
+
'resolved_at': json['resolved_at'] == null ? undefined : (new Date(json['resolved_at'])),
|
|
64
|
+
'resolved_by': json['resolved_by'] == null ? undefined : json['resolved_by'],
|
|
65
|
+
'resolution_note': json['resolution_note'] == null ? undefined : json['resolution_note'],
|
|
66
|
+
'created_at': (new Date(json['created_at'])),
|
|
67
|
+
'updated_at': (new Date(json['updated_at'])),
|
|
68
|
+
'call': json['call'] == null ? undefined : CallFlagWithCallAllOfCallFromJSON(json['call']),
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
export function CallFlagWithCallToJSON(json) {
|
|
72
|
+
return CallFlagWithCallToJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
export function CallFlagWithCallToJSONTyped(value, ignoreDiscriminator = false) {
|
|
75
|
+
if (value == null) {
|
|
76
|
+
return value;
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
'id': value['id'],
|
|
80
|
+
'call_id': value['call_id'],
|
|
81
|
+
'flag_type': value['flag_type'],
|
|
82
|
+
'reason': value['reason'],
|
|
83
|
+
'status': value['status'],
|
|
84
|
+
'flagged_by': value['flagged_by'],
|
|
85
|
+
'resolved_at': value['resolved_at'] == null ? value['resolved_at'] : value['resolved_at'].toISOString(),
|
|
86
|
+
'resolved_by': value['resolved_by'],
|
|
87
|
+
'resolution_note': value['resolution_note'],
|
|
88
|
+
'created_at': value['created_at'].toISOString(),
|
|
89
|
+
'updated_at': value['updated_at'].toISOString(),
|
|
90
|
+
'call': CallFlagWithCallAllOfCallToJSON(value['call']),
|
|
91
|
+
};
|
|
92
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 CallFlagWithCallAllOfCall
|
|
16
|
+
*/
|
|
17
|
+
export interface CallFlagWithCallAllOfCall {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CallFlagWithCallAllOfCall
|
|
22
|
+
*/
|
|
23
|
+
id?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CallFlagWithCallAllOfCall
|
|
28
|
+
*/
|
|
29
|
+
voice_agent_id?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CallFlagWithCallAllOfCall
|
|
34
|
+
*/
|
|
35
|
+
caller?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof CallFlagWithCallAllOfCall
|
|
40
|
+
*/
|
|
41
|
+
sandbox?: boolean | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof CallFlagWithCallAllOfCall
|
|
46
|
+
*/
|
|
47
|
+
created_at?: Date;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the CallFlagWithCallAllOfCall interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfCallFlagWithCallAllOfCall(value: object): value is CallFlagWithCallAllOfCall;
|
|
53
|
+
export declare function CallFlagWithCallAllOfCallFromJSON(json: any): CallFlagWithCallAllOfCall;
|
|
54
|
+
export declare function CallFlagWithCallAllOfCallFromJSONTyped(json: any, ignoreDiscriminator: boolean): CallFlagWithCallAllOfCall;
|
|
55
|
+
export declare function CallFlagWithCallAllOfCallToJSON(json: any): CallFlagWithCallAllOfCall;
|
|
56
|
+
export declare function CallFlagWithCallAllOfCallToJSONTyped(value?: CallFlagWithCallAllOfCall | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
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 CallFlagWithCallAllOfCall interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfCallFlagWithCallAllOfCall(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function CallFlagWithCallAllOfCallFromJSON(json) {
|
|
21
|
+
return CallFlagWithCallAllOfCallFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function CallFlagWithCallAllOfCallFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
29
|
+
'voice_agent_id': json['voice_agent_id'] == null ? undefined : json['voice_agent_id'],
|
|
30
|
+
'caller': json['caller'] == null ? undefined : json['caller'],
|
|
31
|
+
'sandbox': json['sandbox'] == null ? undefined : json['sandbox'],
|
|
32
|
+
'created_at': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export function CallFlagWithCallAllOfCallToJSON(json) {
|
|
36
|
+
return CallFlagWithCallAllOfCallToJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function CallFlagWithCallAllOfCallToJSONTyped(value, ignoreDiscriminator = false) {
|
|
39
|
+
if (value == null) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'id': value['id'],
|
|
44
|
+
'voice_agent_id': value['voice_agent_id'],
|
|
45
|
+
'caller': value['caller'],
|
|
46
|
+
'sandbox': value['sandbox'],
|
|
47
|
+
'created_at': value['created_at'] == null ? value['created_at'] : value['created_at'].toISOString(),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -89,6 +89,18 @@ export interface VoiceAgent {
|
|
|
89
89
|
* @memberof VoiceAgent
|
|
90
90
|
*/
|
|
91
91
|
enable_recording?: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* Whether the agent uses the realtime speech-to-speech pipeline.
|
|
94
|
+
* @type {boolean}
|
|
95
|
+
* @memberof VoiceAgent
|
|
96
|
+
*/
|
|
97
|
+
realtime?: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* Model identifier for the agent.
|
|
100
|
+
* @type {string}
|
|
101
|
+
* @memberof VoiceAgent
|
|
102
|
+
*/
|
|
103
|
+
model?: string;
|
|
92
104
|
/**
|
|
93
105
|
*
|
|
94
106
|
* @type {VoiceAgentMetadata}
|
|
@@ -45,6 +45,8 @@ export function VoiceAgentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
45
|
'tts_voice': json['tts_voice'] == null ? undefined : json['tts_voice'],
|
|
46
46
|
'language': json['language'] == null ? undefined : json['language'],
|
|
47
47
|
'enable_recording': json['enable_recording'] == null ? undefined : json['enable_recording'],
|
|
48
|
+
'realtime': json['realtime'] == null ? undefined : json['realtime'],
|
|
49
|
+
'model': json['model'] == null ? undefined : json['model'],
|
|
48
50
|
'metadata': json['metadata'] == null ? undefined : VoiceAgentMetadataFromJSON(json['metadata']),
|
|
49
51
|
'llm_agent': json['llm_agent'] == null ? undefined : LlmAgentFromJSON(json['llm_agent']),
|
|
50
52
|
'created_at': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
|
|
@@ -70,6 +72,8 @@ export function VoiceAgentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
70
72
|
'tts_voice': value['tts_voice'],
|
|
71
73
|
'language': value['language'],
|
|
72
74
|
'enable_recording': value['enable_recording'],
|
|
75
|
+
'realtime': value['realtime'],
|
|
76
|
+
'model': value['model'],
|
|
73
77
|
'metadata': VoiceAgentMetadataToJSON(value['metadata']),
|
|
74
78
|
'llm_agent': LlmAgentToJSON(value['llm_agent']),
|
|
75
79
|
'created_at': value['created_at'] == null ? value['created_at'] : value['created_at'].toISOString(),
|
|
@@ -83,6 +83,18 @@ export interface VoiceAgentCreate {
|
|
|
83
83
|
* @memberof VoiceAgentCreate
|
|
84
84
|
*/
|
|
85
85
|
enable_recording?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Whether the agent uses the realtime speech-to-speech pipeline.
|
|
88
|
+
* @type {boolean}
|
|
89
|
+
* @memberof VoiceAgentCreate
|
|
90
|
+
*/
|
|
91
|
+
realtime?: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* Model identifier for the agent.
|
|
94
|
+
* @type {string}
|
|
95
|
+
* @memberof VoiceAgentCreate
|
|
96
|
+
*/
|
|
97
|
+
model?: string;
|
|
86
98
|
/**
|
|
87
99
|
*
|
|
88
100
|
* @type {VoiceAgentMetadata}
|
|
@@ -42,6 +42,8 @@ export function VoiceAgentCreateFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
42
|
'tts_voice': json['tts_voice'] == null ? undefined : json['tts_voice'],
|
|
43
43
|
'language': json['language'] == null ? undefined : json['language'],
|
|
44
44
|
'enable_recording': json['enable_recording'] == null ? undefined : json['enable_recording'],
|
|
45
|
+
'realtime': json['realtime'] == null ? undefined : json['realtime'],
|
|
46
|
+
'model': json['model'] == null ? undefined : json['model'],
|
|
45
47
|
'metadata': json['metadata'] == null ? undefined : VoiceAgentMetadataFromJSON(json['metadata']),
|
|
46
48
|
'llm_agent': json['llm_agent'] == null ? undefined : LlmAgentInputFromJSON(json['llm_agent']),
|
|
47
49
|
};
|
|
@@ -65,6 +67,8 @@ export function VoiceAgentCreateToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
65
67
|
'tts_voice': value['tts_voice'],
|
|
66
68
|
'language': value['language'],
|
|
67
69
|
'enable_recording': value['enable_recording'],
|
|
70
|
+
'realtime': value['realtime'],
|
|
71
|
+
'model': value['model'],
|
|
68
72
|
'metadata': VoiceAgentMetadataToJSON(value['metadata']),
|
|
69
73
|
'llm_agent': LlmAgentInputToJSON(value['llm_agent']),
|
|
70
74
|
};
|
|
@@ -57,6 +57,14 @@ export interface VoiceAgentMetadata {
|
|
|
57
57
|
* @memberof VoiceAgentMetadata
|
|
58
58
|
*/
|
|
59
59
|
playback_speed?: number;
|
|
60
|
+
/**
|
|
61
|
+
* Free-form draft state for the agent template editor (persisted as-is).
|
|
62
|
+
* @type {{ [key: string]: any; }}
|
|
63
|
+
* @memberof VoiceAgentMetadata
|
|
64
|
+
*/
|
|
65
|
+
template_draft?: {
|
|
66
|
+
[key: string]: any;
|
|
67
|
+
};
|
|
60
68
|
}
|
|
61
69
|
/**
|
|
62
70
|
* Check if a given object implements the VoiceAgentMetadata interface.
|
|
@@ -32,6 +32,7 @@ export function VoiceAgentMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
32
|
'display_greeting': json['display_greeting'] == null ? undefined : json['display_greeting'],
|
|
33
33
|
'runtime_greeting': json['runtime_greeting'] == null ? undefined : json['runtime_greeting'],
|
|
34
34
|
'playback_speed': json['playback_speed'] == null ? undefined : json['playback_speed'],
|
|
35
|
+
'template_draft': json['template_draft'] == null ? undefined : json['template_draft'],
|
|
35
36
|
};
|
|
36
37
|
}
|
|
37
38
|
export function VoiceAgentMetadataToJSON(json) {
|
|
@@ -49,5 +50,6 @@ export function VoiceAgentMetadataToJSONTyped(value, ignoreDiscriminator = false
|
|
|
49
50
|
'display_greeting': value['display_greeting'],
|
|
50
51
|
'runtime_greeting': value['runtime_greeting'],
|
|
51
52
|
'playback_speed': value['playback_speed'],
|
|
53
|
+
'template_draft': value['template_draft'],
|
|
52
54
|
};
|
|
53
55
|
}
|
|
@@ -77,6 +77,18 @@ export interface VoiceAgentUpdate {
|
|
|
77
77
|
* @memberof VoiceAgentUpdate
|
|
78
78
|
*/
|
|
79
79
|
enable_recording?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Whether the agent uses the realtime speech-to-speech pipeline.
|
|
82
|
+
* @type {boolean}
|
|
83
|
+
* @memberof VoiceAgentUpdate
|
|
84
|
+
*/
|
|
85
|
+
realtime?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Model identifier for the agent.
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof VoiceAgentUpdate
|
|
90
|
+
*/
|
|
91
|
+
model?: string;
|
|
80
92
|
/**
|
|
81
93
|
*
|
|
82
94
|
* @type {VoiceAgentMetadata}
|
|
@@ -37,6 +37,8 @@ export function VoiceAgentUpdateFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
37
|
'tts_voice': json['tts_voice'] == null ? undefined : json['tts_voice'],
|
|
38
38
|
'language': json['language'] == null ? undefined : json['language'],
|
|
39
39
|
'enable_recording': json['enable_recording'] == null ? undefined : json['enable_recording'],
|
|
40
|
+
'realtime': json['realtime'] == null ? undefined : json['realtime'],
|
|
41
|
+
'model': json['model'] == null ? undefined : json['model'],
|
|
40
42
|
'metadata': json['metadata'] == null ? undefined : VoiceAgentMetadataFromJSON(json['metadata']),
|
|
41
43
|
'llm_agent': json['llm_agent'] == null ? undefined : LlmAgentUpdateInputFromJSON(json['llm_agent']),
|
|
42
44
|
};
|
|
@@ -59,6 +61,8 @@ export function VoiceAgentUpdateToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
59
61
|
'tts_voice': value['tts_voice'],
|
|
60
62
|
'language': value['language'],
|
|
61
63
|
'enable_recording': value['enable_recording'],
|
|
64
|
+
'realtime': value['realtime'],
|
|
65
|
+
'model': value['model'],
|
|
62
66
|
'metadata': VoiceAgentMetadataToJSON(value['metadata']),
|
|
63
67
|
'llm_agent': LlmAgentUpdateInputToJSON(value['llm_agent']),
|
|
64
68
|
};
|
|
@@ -90,6 +90,18 @@ export interface VoiceAgentWithSipTrunks {
|
|
|
90
90
|
* @memberof VoiceAgentWithSipTrunks
|
|
91
91
|
*/
|
|
92
92
|
enable_recording?: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* Whether the agent uses the realtime speech-to-speech pipeline.
|
|
95
|
+
* @type {boolean}
|
|
96
|
+
* @memberof VoiceAgentWithSipTrunks
|
|
97
|
+
*/
|
|
98
|
+
realtime?: boolean;
|
|
99
|
+
/**
|
|
100
|
+
* Model identifier for the agent.
|
|
101
|
+
* @type {string}
|
|
102
|
+
* @memberof VoiceAgentWithSipTrunks
|
|
103
|
+
*/
|
|
104
|
+
model?: string;
|
|
93
105
|
/**
|
|
94
106
|
*
|
|
95
107
|
* @type {VoiceAgentMetadata}
|
|
@@ -46,6 +46,8 @@ export function VoiceAgentWithSipTrunksFromJSONTyped(json, ignoreDiscriminator)
|
|
|
46
46
|
'tts_voice': json['tts_voice'] == null ? undefined : json['tts_voice'],
|
|
47
47
|
'language': json['language'] == null ? undefined : json['language'],
|
|
48
48
|
'enable_recording': json['enable_recording'] == null ? undefined : json['enable_recording'],
|
|
49
|
+
'realtime': json['realtime'] == null ? undefined : json['realtime'],
|
|
50
|
+
'model': json['model'] == null ? undefined : json['model'],
|
|
49
51
|
'metadata': json['metadata'] == null ? undefined : VoiceAgentMetadataFromJSON(json['metadata']),
|
|
50
52
|
'llm_agent': json['llm_agent'] == null ? undefined : LlmAgentFromJSON(json['llm_agent']),
|
|
51
53
|
'created_at': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
|
|
@@ -72,6 +74,8 @@ export function VoiceAgentWithSipTrunksToJSONTyped(value, ignoreDiscriminator =
|
|
|
72
74
|
'tts_voice': value['tts_voice'],
|
|
73
75
|
'language': value['language'],
|
|
74
76
|
'enable_recording': value['enable_recording'],
|
|
77
|
+
'realtime': value['realtime'],
|
|
78
|
+
'model': value['model'],
|
|
75
79
|
'metadata': VoiceAgentMetadataToJSON(value['metadata']),
|
|
76
80
|
'llm_agent': LlmAgentToJSON(value['llm_agent']),
|
|
77
81
|
'created_at': value['created_at'] == null ? value['created_at'] : value['created_at'].toISOString(),
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './AdminGrantMinutesRequest';
|
|
2
2
|
export * from './AdminSetSubscriptionRequest';
|
|
3
|
+
export * from './AdminSubscriptionsListResponse';
|
|
3
4
|
export * from './AgentTool';
|
|
4
5
|
export * from './AgentToolUpsert';
|
|
5
6
|
export * from './BillingPortalRequest';
|
|
@@ -16,6 +17,12 @@ export * from './CalendarMetadataBookingConstraints';
|
|
|
16
17
|
export * from './CalendarUpdate';
|
|
17
18
|
export * from './Call';
|
|
18
19
|
export * from './CallCreate';
|
|
20
|
+
export * from './CallFlag';
|
|
21
|
+
export * from './CallFlagCreate';
|
|
22
|
+
export * from './CallFlagResolve';
|
|
23
|
+
export * from './CallFlagUpdate';
|
|
24
|
+
export * from './CallFlagWithCall';
|
|
25
|
+
export * from './CallFlagWithCallAllOfCall';
|
|
19
26
|
export * from './CallUpdate';
|
|
20
27
|
export * from './CancelSubscriptionRequest';
|
|
21
28
|
export * from './ChatAgent';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export * from './AdminGrantMinutesRequest';
|
|
4
4
|
export * from './AdminSetSubscriptionRequest';
|
|
5
|
+
export * from './AdminSubscriptionsListResponse';
|
|
5
6
|
export * from './AgentTool';
|
|
6
7
|
export * from './AgentToolUpsert';
|
|
7
8
|
export * from './BillingPortalRequest';
|
|
@@ -18,6 +19,12 @@ export * from './CalendarMetadataBookingConstraints';
|
|
|
18
19
|
export * from './CalendarUpdate';
|
|
19
20
|
export * from './Call';
|
|
20
21
|
export * from './CallCreate';
|
|
22
|
+
export * from './CallFlag';
|
|
23
|
+
export * from './CallFlagCreate';
|
|
24
|
+
export * from './CallFlagResolve';
|
|
25
|
+
export * from './CallFlagUpdate';
|
|
26
|
+
export * from './CallFlagWithCall';
|
|
27
|
+
export * from './CallFlagWithCallAllOfCall';
|
|
21
28
|
export * from './CallUpdate';
|
|
22
29
|
export * from './CancelSubscriptionRequest';
|
|
23
30
|
export * from './ChatAgent';
|
|
@@ -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 { SubscriptionStatus } from './SubscriptionStatus';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AdminSubscriptionsListResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface AdminSubscriptionsListResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<SubscriptionStatus>}
|
|
22
|
+
* @memberof AdminSubscriptionsListResponse
|
|
23
|
+
*/
|
|
24
|
+
items: Array<SubscriptionStatus>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof AdminSubscriptionsListResponse
|
|
29
|
+
*/
|
|
30
|
+
total: number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the AdminSubscriptionsListResponse interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfAdminSubscriptionsListResponse(value: object): value is AdminSubscriptionsListResponse;
|
|
36
|
+
export declare function AdminSubscriptionsListResponseFromJSON(json: any): AdminSubscriptionsListResponse;
|
|
37
|
+
export declare function AdminSubscriptionsListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminSubscriptionsListResponse;
|
|
38
|
+
export declare function AdminSubscriptionsListResponseToJSON(json: any): AdminSubscriptionsListResponse;
|
|
39
|
+
export declare function AdminSubscriptionsListResponseToJSONTyped(value?: AdminSubscriptionsListResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.instanceOfAdminSubscriptionsListResponse = instanceOfAdminSubscriptionsListResponse;
|
|
17
|
+
exports.AdminSubscriptionsListResponseFromJSON = AdminSubscriptionsListResponseFromJSON;
|
|
18
|
+
exports.AdminSubscriptionsListResponseFromJSONTyped = AdminSubscriptionsListResponseFromJSONTyped;
|
|
19
|
+
exports.AdminSubscriptionsListResponseToJSON = AdminSubscriptionsListResponseToJSON;
|
|
20
|
+
exports.AdminSubscriptionsListResponseToJSONTyped = AdminSubscriptionsListResponseToJSONTyped;
|
|
21
|
+
const SubscriptionStatus_1 = require("./SubscriptionStatus");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AdminSubscriptionsListResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAdminSubscriptionsListResponse(value) {
|
|
26
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function AdminSubscriptionsListResponseFromJSON(json) {
|
|
33
|
+
return AdminSubscriptionsListResponseFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function AdminSubscriptionsListResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'items': (json['items'].map(SubscriptionStatus_1.SubscriptionStatusFromJSON)),
|
|
41
|
+
'total': json['total'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function AdminSubscriptionsListResponseToJSON(json) {
|
|
45
|
+
return AdminSubscriptionsListResponseToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function AdminSubscriptionsListResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'items': (value['items'].map(SubscriptionStatus_1.SubscriptionStatusToJSON)),
|
|
53
|
+
'total': value['total'],
|
|
54
|
+
};
|
|
55
|
+
}
|
package/dist/models/Call.d.ts
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { CallFlag } from './CallFlag';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -61,6 +62,12 @@ export interface Call {
|
|
|
61
62
|
* @memberof Call
|
|
62
63
|
*/
|
|
63
64
|
created_at: Date;
|
|
65
|
+
/**
|
|
66
|
+
* Flags raised on this call (empty when none)
|
|
67
|
+
* @type {Array<CallFlag>}
|
|
68
|
+
* @memberof Call
|
|
69
|
+
*/
|
|
70
|
+
flags?: Array<CallFlag>;
|
|
64
71
|
}
|
|
65
72
|
/**
|
|
66
73
|
* Check if a given object implements the Call interface.
|