@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,100 @@
|
|
|
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.CallFlagWithCallStatusEnum = exports.CallFlagWithCallFlagTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfCallFlagWithCall = instanceOfCallFlagWithCall;
|
|
18
|
+
exports.CallFlagWithCallFromJSON = CallFlagWithCallFromJSON;
|
|
19
|
+
exports.CallFlagWithCallFromJSONTyped = CallFlagWithCallFromJSONTyped;
|
|
20
|
+
exports.CallFlagWithCallToJSON = CallFlagWithCallToJSON;
|
|
21
|
+
exports.CallFlagWithCallToJSONTyped = CallFlagWithCallToJSONTyped;
|
|
22
|
+
const CallFlagWithCallAllOfCall_1 = require("./CallFlagWithCallAllOfCall");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.CallFlagWithCallFlagTypeEnum = {
|
|
27
|
+
Error: 'error',
|
|
28
|
+
FollowUp: 'follow_up',
|
|
29
|
+
ManualReview: 'manual_review',
|
|
30
|
+
Other: 'other'
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
exports.CallFlagWithCallStatusEnum = {
|
|
36
|
+
Open: 'open',
|
|
37
|
+
Resolved: 'resolved'
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the CallFlagWithCall interface.
|
|
41
|
+
*/
|
|
42
|
+
function instanceOfCallFlagWithCall(value) {
|
|
43
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('call_id' in value) || value['call_id'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('flag_type' in value) || value['flag_type'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('created_at' in value) || value['created_at'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('updated_at' in value) || value['updated_at'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
function CallFlagWithCallFromJSON(json) {
|
|
58
|
+
return CallFlagWithCallFromJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function CallFlagWithCallFromJSONTyped(json, ignoreDiscriminator) {
|
|
61
|
+
if (json == null) {
|
|
62
|
+
return json;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'id': json['id'],
|
|
66
|
+
'call_id': json['call_id'],
|
|
67
|
+
'flag_type': json['flag_type'],
|
|
68
|
+
'reason': json['reason'] == null ? undefined : json['reason'],
|
|
69
|
+
'status': json['status'],
|
|
70
|
+
'flagged_by': json['flagged_by'] == null ? undefined : json['flagged_by'],
|
|
71
|
+
'resolved_at': json['resolved_at'] == null ? undefined : (new Date(json['resolved_at'])),
|
|
72
|
+
'resolved_by': json['resolved_by'] == null ? undefined : json['resolved_by'],
|
|
73
|
+
'resolution_note': json['resolution_note'] == null ? undefined : json['resolution_note'],
|
|
74
|
+
'created_at': (new Date(json['created_at'])),
|
|
75
|
+
'updated_at': (new Date(json['updated_at'])),
|
|
76
|
+
'call': json['call'] == null ? undefined : (0, CallFlagWithCallAllOfCall_1.CallFlagWithCallAllOfCallFromJSON)(json['call']),
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
function CallFlagWithCallToJSON(json) {
|
|
80
|
+
return CallFlagWithCallToJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
function CallFlagWithCallToJSONTyped(value, ignoreDiscriminator = false) {
|
|
83
|
+
if (value == null) {
|
|
84
|
+
return value;
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
'id': value['id'],
|
|
88
|
+
'call_id': value['call_id'],
|
|
89
|
+
'flag_type': value['flag_type'],
|
|
90
|
+
'reason': value['reason'],
|
|
91
|
+
'status': value['status'],
|
|
92
|
+
'flagged_by': value['flagged_by'],
|
|
93
|
+
'resolved_at': value['resolved_at'] == null ? value['resolved_at'] : value['resolved_at'].toISOString(),
|
|
94
|
+
'resolved_by': value['resolved_by'],
|
|
95
|
+
'resolution_note': value['resolution_note'],
|
|
96
|
+
'created_at': value['created_at'].toISOString(),
|
|
97
|
+
'updated_at': value['updated_at'].toISOString(),
|
|
98
|
+
'call': (0, CallFlagWithCallAllOfCall_1.CallFlagWithCallAllOfCallToJSON)(value['call']),
|
|
99
|
+
};
|
|
100
|
+
}
|
|
@@ -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,56 @@
|
|
|
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.instanceOfCallFlagWithCallAllOfCall = instanceOfCallFlagWithCallAllOfCall;
|
|
17
|
+
exports.CallFlagWithCallAllOfCallFromJSON = CallFlagWithCallAllOfCallFromJSON;
|
|
18
|
+
exports.CallFlagWithCallAllOfCallFromJSONTyped = CallFlagWithCallAllOfCallFromJSONTyped;
|
|
19
|
+
exports.CallFlagWithCallAllOfCallToJSON = CallFlagWithCallAllOfCallToJSON;
|
|
20
|
+
exports.CallFlagWithCallAllOfCallToJSONTyped = CallFlagWithCallAllOfCallToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CallFlagWithCallAllOfCall interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCallFlagWithCallAllOfCall(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function CallFlagWithCallAllOfCallFromJSON(json) {
|
|
28
|
+
return CallFlagWithCallAllOfCallFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function CallFlagWithCallAllOfCallFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
36
|
+
'voice_agent_id': json['voice_agent_id'] == null ? undefined : json['voice_agent_id'],
|
|
37
|
+
'caller': json['caller'] == null ? undefined : json['caller'],
|
|
38
|
+
'sandbox': json['sandbox'] == null ? undefined : json['sandbox'],
|
|
39
|
+
'created_at': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function CallFlagWithCallAllOfCallToJSON(json) {
|
|
43
|
+
return CallFlagWithCallAllOfCallToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function CallFlagWithCallAllOfCallToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'id': value['id'],
|
|
51
|
+
'voice_agent_id': value['voice_agent_id'],
|
|
52
|
+
'caller': value['caller'],
|
|
53
|
+
'sandbox': value['sandbox'],
|
|
54
|
+
'created_at': value['created_at'] == null ? value['created_at'] : value['created_at'].toISOString(),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -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}
|
|
@@ -52,6 +52,8 @@ function VoiceAgentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
52
|
'tts_voice': json['tts_voice'] == null ? undefined : json['tts_voice'],
|
|
53
53
|
'language': json['language'] == null ? undefined : json['language'],
|
|
54
54
|
'enable_recording': json['enable_recording'] == null ? undefined : json['enable_recording'],
|
|
55
|
+
'realtime': json['realtime'] == null ? undefined : json['realtime'],
|
|
56
|
+
'model': json['model'] == null ? undefined : json['model'],
|
|
55
57
|
'metadata': json['metadata'] == null ? undefined : (0, VoiceAgentMetadata_1.VoiceAgentMetadataFromJSON)(json['metadata']),
|
|
56
58
|
'llm_agent': json['llm_agent'] == null ? undefined : (0, LlmAgent_1.LlmAgentFromJSON)(json['llm_agent']),
|
|
57
59
|
'created_at': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
|
|
@@ -77,6 +79,8 @@ function VoiceAgentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
77
79
|
'tts_voice': value['tts_voice'],
|
|
78
80
|
'language': value['language'],
|
|
79
81
|
'enable_recording': value['enable_recording'],
|
|
82
|
+
'realtime': value['realtime'],
|
|
83
|
+
'model': value['model'],
|
|
80
84
|
'metadata': (0, VoiceAgentMetadata_1.VoiceAgentMetadataToJSON)(value['metadata']),
|
|
81
85
|
'llm_agent': (0, LlmAgent_1.LlmAgentToJSON)(value['llm_agent']),
|
|
82
86
|
'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}
|
|
@@ -49,6 +49,8 @@ function VoiceAgentCreateFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
49
|
'tts_voice': json['tts_voice'] == null ? undefined : json['tts_voice'],
|
|
50
50
|
'language': json['language'] == null ? undefined : json['language'],
|
|
51
51
|
'enable_recording': json['enable_recording'] == null ? undefined : json['enable_recording'],
|
|
52
|
+
'realtime': json['realtime'] == null ? undefined : json['realtime'],
|
|
53
|
+
'model': json['model'] == null ? undefined : json['model'],
|
|
52
54
|
'metadata': json['metadata'] == null ? undefined : (0, VoiceAgentMetadata_1.VoiceAgentMetadataFromJSON)(json['metadata']),
|
|
53
55
|
'llm_agent': json['llm_agent'] == null ? undefined : (0, LlmAgentInput_1.LlmAgentInputFromJSON)(json['llm_agent']),
|
|
54
56
|
};
|
|
@@ -72,6 +74,8 @@ function VoiceAgentCreateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
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': (0, VoiceAgentMetadata_1.VoiceAgentMetadataToJSON)(value['metadata']),
|
|
76
80
|
'llm_agent': (0, LlmAgentInput_1.LlmAgentInputToJSON)(value['llm_agent']),
|
|
77
81
|
};
|
|
@@ -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.
|
|
@@ -39,6 +39,7 @@ function VoiceAgentMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
39
|
'display_greeting': json['display_greeting'] == null ? undefined : json['display_greeting'],
|
|
40
40
|
'runtime_greeting': json['runtime_greeting'] == null ? undefined : json['runtime_greeting'],
|
|
41
41
|
'playback_speed': json['playback_speed'] == null ? undefined : json['playback_speed'],
|
|
42
|
+
'template_draft': json['template_draft'] == null ? undefined : json['template_draft'],
|
|
42
43
|
};
|
|
43
44
|
}
|
|
44
45
|
function VoiceAgentMetadataToJSON(json) {
|
|
@@ -56,5 +57,6 @@ function VoiceAgentMetadataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
56
57
|
'display_greeting': value['display_greeting'],
|
|
57
58
|
'runtime_greeting': value['runtime_greeting'],
|
|
58
59
|
'playback_speed': value['playback_speed'],
|
|
60
|
+
'template_draft': value['template_draft'],
|
|
59
61
|
};
|
|
60
62
|
}
|
|
@@ -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}
|
|
@@ -44,6 +44,8 @@ function VoiceAgentUpdateFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
'tts_voice': json['tts_voice'] == null ? undefined : json['tts_voice'],
|
|
45
45
|
'language': json['language'] == null ? undefined : json['language'],
|
|
46
46
|
'enable_recording': json['enable_recording'] == null ? undefined : json['enable_recording'],
|
|
47
|
+
'realtime': json['realtime'] == null ? undefined : json['realtime'],
|
|
48
|
+
'model': json['model'] == null ? undefined : json['model'],
|
|
47
49
|
'metadata': json['metadata'] == null ? undefined : (0, VoiceAgentMetadata_1.VoiceAgentMetadataFromJSON)(json['metadata']),
|
|
48
50
|
'llm_agent': json['llm_agent'] == null ? undefined : (0, LlmAgentUpdateInput_1.LlmAgentUpdateInputFromJSON)(json['llm_agent']),
|
|
49
51
|
};
|
|
@@ -66,6 +68,8 @@ function VoiceAgentUpdateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
66
68
|
'tts_voice': value['tts_voice'],
|
|
67
69
|
'language': value['language'],
|
|
68
70
|
'enable_recording': value['enable_recording'],
|
|
71
|
+
'realtime': value['realtime'],
|
|
72
|
+
'model': value['model'],
|
|
69
73
|
'metadata': (0, VoiceAgentMetadata_1.VoiceAgentMetadataToJSON)(value['metadata']),
|
|
70
74
|
'llm_agent': (0, LlmAgentUpdateInput_1.LlmAgentUpdateInputToJSON)(value['llm_agent']),
|
|
71
75
|
};
|
|
@@ -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}
|
|
@@ -53,6 +53,8 @@ function VoiceAgentWithSipTrunksFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
53
|
'tts_voice': json['tts_voice'] == null ? undefined : json['tts_voice'],
|
|
54
54
|
'language': json['language'] == null ? undefined : json['language'],
|
|
55
55
|
'enable_recording': json['enable_recording'] == null ? undefined : json['enable_recording'],
|
|
56
|
+
'realtime': json['realtime'] == null ? undefined : json['realtime'],
|
|
57
|
+
'model': json['model'] == null ? undefined : json['model'],
|
|
56
58
|
'metadata': json['metadata'] == null ? undefined : (0, VoiceAgentMetadata_1.VoiceAgentMetadataFromJSON)(json['metadata']),
|
|
57
59
|
'llm_agent': json['llm_agent'] == null ? undefined : (0, LlmAgent_1.LlmAgentFromJSON)(json['llm_agent']),
|
|
58
60
|
'created_at': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
|
|
@@ -79,6 +81,8 @@ function VoiceAgentWithSipTrunksToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
79
81
|
'tts_voice': value['tts_voice'],
|
|
80
82
|
'language': value['language'],
|
|
81
83
|
'enable_recording': value['enable_recording'],
|
|
84
|
+
'realtime': value['realtime'],
|
|
85
|
+
'model': value['model'],
|
|
82
86
|
'metadata': (0, VoiceAgentMetadata_1.VoiceAgentMetadataToJSON)(value['metadata']),
|
|
83
87
|
'llm_agent': (0, LlmAgent_1.LlmAgentToJSON)(value['llm_agent']),
|
|
84
88
|
'created_at': value['created_at'] == null ? value['created_at'] : value['created_at'].toISOString(),
|
package/dist/models/index.d.ts
CHANGED
|
@@ -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/models/index.js
CHANGED
|
@@ -18,6 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
/* eslint-disable */
|
|
19
19
|
__exportStar(require("./AdminGrantMinutesRequest"), exports);
|
|
20
20
|
__exportStar(require("./AdminSetSubscriptionRequest"), exports);
|
|
21
|
+
__exportStar(require("./AdminSubscriptionsListResponse"), exports);
|
|
21
22
|
__exportStar(require("./AgentTool"), exports);
|
|
22
23
|
__exportStar(require("./AgentToolUpsert"), exports);
|
|
23
24
|
__exportStar(require("./BillingPortalRequest"), exports);
|
|
@@ -34,6 +35,12 @@ __exportStar(require("./CalendarMetadataBookingConstraints"), exports);
|
|
|
34
35
|
__exportStar(require("./CalendarUpdate"), exports);
|
|
35
36
|
__exportStar(require("./Call"), exports);
|
|
36
37
|
__exportStar(require("./CallCreate"), exports);
|
|
38
|
+
__exportStar(require("./CallFlag"), exports);
|
|
39
|
+
__exportStar(require("./CallFlagCreate"), exports);
|
|
40
|
+
__exportStar(require("./CallFlagResolve"), exports);
|
|
41
|
+
__exportStar(require("./CallFlagUpdate"), exports);
|
|
42
|
+
__exportStar(require("./CallFlagWithCall"), exports);
|
|
43
|
+
__exportStar(require("./CallFlagWithCallAllOfCall"), exports);
|
|
37
44
|
__exportStar(require("./CallUpdate"), exports);
|
|
38
45
|
__exportStar(require("./CancelSubscriptionRequest"), exports);
|
|
39
46
|
__exportStar(require("./ChatAgent"), exports);
|
package/package.json
CHANGED
package/src/api-client.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { CallsApi, type OrganizationsOrganizationIdCallsGetSandboxEnum } from "./apis/CallsApi";
|
|
2
|
+
import {
|
|
3
|
+
CallFlagsApi,
|
|
4
|
+
type OrganizationsOrganizationIdCallFlagsGetStatusEnum,
|
|
5
|
+
type OrganizationsOrganizationIdCallFlagsGetFlagTypeEnum,
|
|
6
|
+
} from "./apis/CallFlagsApi";
|
|
2
7
|
import { CalendarApi } from "./apis/CalendarApi";
|
|
3
8
|
import { ChatAgentsApi } from "./apis/ChatAgentsApi";
|
|
4
9
|
|
|
@@ -28,6 +33,9 @@ import { Configuration } from "./runtime";
|
|
|
28
33
|
import type {
|
|
29
34
|
CallCreate,
|
|
30
35
|
CallUpdate,
|
|
36
|
+
CallFlagCreate,
|
|
37
|
+
CallFlagUpdate,
|
|
38
|
+
CallFlagResolve,
|
|
31
39
|
Notification,
|
|
32
40
|
NotificationScope,
|
|
33
41
|
NotificationSeverity,
|
|
@@ -84,6 +92,15 @@ export class Api {
|
|
|
84
92
|
update: (organizationId: string, callId: string, callUpdate: CallUpdate, options?: RequestInit) => ReturnType<CallsApi["organizationsOrganizationIdCallsCallIdPut"]>;
|
|
85
93
|
delete: (organizationId: string, callId: string, options?: RequestInit) => ReturnType<CallsApi["organizationsOrganizationIdCallsCallIdDelete"]>;
|
|
86
94
|
};
|
|
95
|
+
public readonly callFlags: {
|
|
96
|
+
list: (organizationId: string, filters?: { status?: OrganizationsOrganizationIdCallFlagsGetStatusEnum; flagType?: OrganizationsOrganizationIdCallFlagsGetFlagTypeEnum; voiceAgentId?: string; limit?: number; offset?: number }, options?: RequestInit) => ReturnType<CallFlagsApi["organizationsOrganizationIdCallFlagsGet"]>;
|
|
97
|
+
listForCall: (organizationId: string, callId: string, options?: RequestInit) => ReturnType<CallFlagsApi["organizationsOrganizationIdCallsCallIdFlagsGet"]>;
|
|
98
|
+
create: (organizationId: string, callId: string, callFlagCreate: CallFlagCreate, options?: RequestInit) => ReturnType<CallFlagsApi["organizationsOrganizationIdCallsCallIdFlagsPost"]>;
|
|
99
|
+
update: (organizationId: string, callId: string, flagId: string, callFlagUpdate: CallFlagUpdate, options?: RequestInit) => ReturnType<CallFlagsApi["organizationsOrganizationIdCallsCallIdFlagsFlagIdPatch"]>;
|
|
100
|
+
resolve: (organizationId: string, callId: string, flagId: string, callFlagResolve?: CallFlagResolve, options?: RequestInit) => ReturnType<CallFlagsApi["organizationsOrganizationIdCallsCallIdFlagsFlagIdResolvePost"]>;
|
|
101
|
+
reopen: (organizationId: string, callId: string, flagId: string, options?: RequestInit) => ReturnType<CallFlagsApi["organizationsOrganizationIdCallsCallIdFlagsFlagIdReopenPost"]>;
|
|
102
|
+
delete: (organizationId: string, callId: string, flagId: string, options?: RequestInit) => ReturnType<CallFlagsApi["organizationsOrganizationIdCallsCallIdFlagsFlagIdDelete"]>;
|
|
103
|
+
};
|
|
87
104
|
public readonly voiceAgents: {
|
|
88
105
|
list: (organizationId: string, options?: RequestInit) => ReturnType<VoiceAgentsApi["organizationsOrganizationIdVoiceAgentsGet"]>;
|
|
89
106
|
listBasic: (organizationId: string, options?: RequestInit) => ReturnType<VoiceAgentsApi["organizationsOrganizationIdVoiceAgentsBasicGet"]>;
|
|
@@ -229,6 +246,7 @@ export class Api {
|
|
|
229
246
|
};
|
|
230
247
|
|
|
231
248
|
private readonly callsApi: CallsApi;
|
|
249
|
+
private readonly callFlagsApi: CallFlagsApi;
|
|
232
250
|
private readonly voiceAgentsApi: VoiceAgentsApi;
|
|
233
251
|
private readonly chatAgentsApi: ChatAgentsApi;
|
|
234
252
|
private readonly calendarApi: CalendarApi;
|
|
@@ -272,6 +290,7 @@ export class Api {
|
|
|
272
290
|
});
|
|
273
291
|
|
|
274
292
|
this.callsApi = new CallsApi(configuration);
|
|
293
|
+
this.callFlagsApi = new CallFlagsApi(configuration);
|
|
275
294
|
this.voiceAgentsApi = new VoiceAgentsApi(configuration);
|
|
276
295
|
this.chatAgentsApi = new ChatAgentsApi(configuration);
|
|
277
296
|
this.calendarApi = new CalendarApi(configuration);
|
|
@@ -303,6 +322,16 @@ export class Api {
|
|
|
303
322
|
delete: (organizationId, callId, options) => this.callsApi.organizationsOrganizationIdCallsCallIdDelete({ organizationId, callId }, options),
|
|
304
323
|
};
|
|
305
324
|
|
|
325
|
+
this.callFlags = {
|
|
326
|
+
list: (organizationId, filters, options) => this.callFlagsApi.organizationsOrganizationIdCallFlagsGet({ organizationId, status: filters?.status, flagType: filters?.flagType, voiceAgentId: filters?.voiceAgentId, limit: filters?.limit, offset: filters?.offset }, options),
|
|
327
|
+
listForCall: (organizationId, callId, options) => this.callFlagsApi.organizationsOrganizationIdCallsCallIdFlagsGet({ organizationId, callId }, options),
|
|
328
|
+
create: (organizationId, callId, callFlagCreate, options) => this.callFlagsApi.organizationsOrganizationIdCallsCallIdFlagsPost({ organizationId, callId, callFlagCreate }, options),
|
|
329
|
+
update: (organizationId, callId, flagId, callFlagUpdate, options) => this.callFlagsApi.organizationsOrganizationIdCallsCallIdFlagsFlagIdPatch({ organizationId, callId, flagId, callFlagUpdate }, options),
|
|
330
|
+
resolve: (organizationId, callId, flagId, callFlagResolve, options) => this.callFlagsApi.organizationsOrganizationIdCallsCallIdFlagsFlagIdResolvePost({ organizationId, callId, flagId, callFlagResolve }, options),
|
|
331
|
+
reopen: (organizationId, callId, flagId, options) => this.callFlagsApi.organizationsOrganizationIdCallsCallIdFlagsFlagIdReopenPost({ organizationId, callId, flagId }, options),
|
|
332
|
+
delete: (organizationId, callId, flagId, options) => this.callFlagsApi.organizationsOrganizationIdCallsCallIdFlagsFlagIdDelete({ organizationId, callId, flagId }, options),
|
|
333
|
+
};
|
|
334
|
+
|
|
306
335
|
this.voiceAgents = {
|
|
307
336
|
list: (organizationId, options) => this.voiceAgentsApi.organizationsOrganizationIdVoiceAgentsGet({ organizationId }, options),
|
|
308
337
|
listBasic: (organizationId, options) => this.voiceAgentsApi.organizationsOrganizationIdVoiceAgentsBasicGet({ organizationId }, options),
|
|
@@ -17,6 +17,7 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
AdminGrantMinutesRequest,
|
|
19
19
|
AdminSetSubscriptionRequest,
|
|
20
|
+
AdminSubscriptionsListResponse,
|
|
20
21
|
CancelSubscriptionRequest,
|
|
21
22
|
SubscriptionStatus,
|
|
22
23
|
} from '../models/index';
|
|
@@ -25,6 +26,8 @@ import {
|
|
|
25
26
|
AdminGrantMinutesRequestToJSON,
|
|
26
27
|
AdminSetSubscriptionRequestFromJSON,
|
|
27
28
|
AdminSetSubscriptionRequestToJSON,
|
|
29
|
+
AdminSubscriptionsListResponseFromJSON,
|
|
30
|
+
AdminSubscriptionsListResponseToJSON,
|
|
28
31
|
CancelSubscriptionRequestFromJSON,
|
|
29
32
|
CancelSubscriptionRequestToJSON,
|
|
30
33
|
SubscriptionStatusFromJSON,
|
|
@@ -66,7 +69,7 @@ export class AdminSubscriptionsApi extends runtime.BaseAPI {
|
|
|
66
69
|
/**
|
|
67
70
|
* List subscriptions across all organizations (app-admin only)
|
|
68
71
|
*/
|
|
69
|
-
async adminSubscriptionsGetRaw(requestParameters: AdminSubscriptionsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
72
|
+
async adminSubscriptionsGetRaw(requestParameters: AdminSubscriptionsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AdminSubscriptionsListResponse>> {
|
|
70
73
|
const queryParameters: any = {};
|
|
71
74
|
|
|
72
75
|
if (requestParameters['status'] != null) {
|
|
@@ -109,14 +112,15 @@ export class AdminSubscriptionsApi extends runtime.BaseAPI {
|
|
|
109
112
|
query: queryParameters,
|
|
110
113
|
}, initOverrides);
|
|
111
114
|
|
|
112
|
-
return new runtime.
|
|
115
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AdminSubscriptionsListResponseFromJSON(jsonValue));
|
|
113
116
|
}
|
|
114
117
|
|
|
115
118
|
/**
|
|
116
119
|
* List subscriptions across all organizations (app-admin only)
|
|
117
120
|
*/
|
|
118
|
-
async adminSubscriptionsGet(requestParameters: AdminSubscriptionsGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
119
|
-
await this.adminSubscriptionsGetRaw(requestParameters, initOverrides);
|
|
121
|
+
async adminSubscriptionsGet(requestParameters: AdminSubscriptionsGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminSubscriptionsListResponse> {
|
|
122
|
+
const response = await this.adminSubscriptionsGetRaw(requestParameters, initOverrides);
|
|
123
|
+
return await response.value();
|
|
120
124
|
}
|
|
121
125
|
|
|
122
126
|
/**
|