@l7mp/tivadar-ai-api-sdk 0.2.6 → 0.2.8
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 +21 -1
- package/dist/api-client.js +16 -0
- package/dist/apis/InvitationsApi.d.ts +12 -0
- package/dist/apis/InvitationsApi.js +40 -0
- package/dist/apis/PhonebookApi.d.ts +133 -0
- package/dist/apis/PhonebookApi.js +434 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/api-client.d.ts +21 -1
- package/dist/esm/api-client.js +16 -0
- package/dist/esm/apis/InvitationsApi.d.ts +12 -0
- package/dist/esm/apis/InvitationsApi.js +40 -0
- package/dist/esm/apis/PhonebookApi.d.ts +133 -0
- package/dist/esm/apis/PhonebookApi.js +430 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/Phonebook.d.ts +56 -0
- package/dist/esm/models/Phonebook.js +59 -0
- package/dist/esm/models/PhonebookEntry.d.ts +89 -0
- package/dist/esm/models/PhonebookEntry.js +79 -0
- package/dist/esm/models/PhonebookEntryCreate.d.ts +50 -0
- package/dist/esm/models/PhonebookEntryCreate.js +51 -0
- package/dist/esm/models/PhonebookEntryUpdate.d.ts +50 -0
- package/dist/esm/models/PhonebookEntryUpdate.js +47 -0
- package/dist/esm/models/PhonebookImportResult.d.ts +57 -0
- package/dist/esm/models/PhonebookImportResult.js +60 -0
- package/dist/esm/models/PhonebookImportResultErrorsInner.d.ts +38 -0
- package/dist/esm/models/PhonebookImportResultErrorsInner.js +47 -0
- package/dist/esm/models/PhonebookUpdate.d.ts +32 -0
- package/dist/esm/models/PhonebookUpdate.js +41 -0
- package/dist/esm/models/VoiceAgentMetadata.d.ts +24 -0
- package/dist/esm/models/VoiceAgentMetadata.js +8 -0
- package/dist/esm/models/index.d.ts +7 -0
- package/dist/esm/models/index.js +7 -0
- package/dist/models/Phonebook.d.ts +56 -0
- package/dist/models/Phonebook.js +66 -0
- package/dist/models/PhonebookEntry.d.ts +89 -0
- package/dist/models/PhonebookEntry.js +87 -0
- package/dist/models/PhonebookEntryCreate.d.ts +50 -0
- package/dist/models/PhonebookEntryCreate.js +58 -0
- package/dist/models/PhonebookEntryUpdate.d.ts +50 -0
- package/dist/models/PhonebookEntryUpdate.js +54 -0
- package/dist/models/PhonebookImportResult.d.ts +57 -0
- package/dist/models/PhonebookImportResult.js +67 -0
- package/dist/models/PhonebookImportResultErrorsInner.d.ts +38 -0
- package/dist/models/PhonebookImportResultErrorsInner.js +54 -0
- package/dist/models/PhonebookUpdate.d.ts +32 -0
- package/dist/models/PhonebookUpdate.js +48 -0
- package/dist/models/VoiceAgentMetadata.d.ts +24 -0
- package/dist/models/VoiceAgentMetadata.js +8 -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 +35 -0
- package/src/apis/InvitationsApi.ts +57 -0
- package/src/apis/PhonebookApi.ts +599 -0
- package/src/apis/index.ts +1 -0
- package/src/models/Phonebook.ts +102 -0
- package/src/models/PhonebookEntry.ts +148 -0
- package/src/models/PhonebookEntryCreate.ts +91 -0
- package/src/models/PhonebookEntryUpdate.ts +89 -0
- package/src/models/PhonebookImportResult.ts +110 -0
- package/src/models/PhonebookImportResultErrorsInner.ts +75 -0
- package/src/models/PhonebookUpdate.ts +65 -0
- package/src/models/VoiceAgentMetadata.ts +32 -0
- package/src/models/index.ts +7 -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 { PhonebookImportResultErrorsInner } from './PhonebookImportResultErrorsInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PhonebookImportResult
|
|
17
|
+
*/
|
|
18
|
+
export interface PhonebookImportResult {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof PhonebookImportResult
|
|
23
|
+
*/
|
|
24
|
+
total: number;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof PhonebookImportResult
|
|
29
|
+
*/
|
|
30
|
+
created: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof PhonebookImportResult
|
|
35
|
+
*/
|
|
36
|
+
updated: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof PhonebookImportResult
|
|
41
|
+
*/
|
|
42
|
+
skipped: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<PhonebookImportResultErrorsInner>}
|
|
46
|
+
* @memberof PhonebookImportResult
|
|
47
|
+
*/
|
|
48
|
+
errors: Array<PhonebookImportResultErrorsInner>;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the PhonebookImportResult interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfPhonebookImportResult(value: object): value is PhonebookImportResult;
|
|
54
|
+
export declare function PhonebookImportResultFromJSON(json: any): PhonebookImportResult;
|
|
55
|
+
export declare function PhonebookImportResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): PhonebookImportResult;
|
|
56
|
+
export declare function PhonebookImportResultToJSON(json: any): PhonebookImportResult;
|
|
57
|
+
export declare function PhonebookImportResultToJSONTyped(value?: PhonebookImportResult | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
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.instanceOfPhonebookImportResult = instanceOfPhonebookImportResult;
|
|
17
|
+
exports.PhonebookImportResultFromJSON = PhonebookImportResultFromJSON;
|
|
18
|
+
exports.PhonebookImportResultFromJSONTyped = PhonebookImportResultFromJSONTyped;
|
|
19
|
+
exports.PhonebookImportResultToJSON = PhonebookImportResultToJSON;
|
|
20
|
+
exports.PhonebookImportResultToJSONTyped = PhonebookImportResultToJSONTyped;
|
|
21
|
+
const PhonebookImportResultErrorsInner_1 = require("./PhonebookImportResultErrorsInner");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the PhonebookImportResult interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfPhonebookImportResult(value) {
|
|
26
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('created' in value) || value['created'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('updated' in value) || value['updated'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('skipped' in value) || value['skipped'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('errors' in value) || value['errors'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function PhonebookImportResultFromJSON(json) {
|
|
39
|
+
return PhonebookImportResultFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function PhonebookImportResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'total': json['total'],
|
|
47
|
+
'created': json['created'],
|
|
48
|
+
'updated': json['updated'],
|
|
49
|
+
'skipped': json['skipped'],
|
|
50
|
+
'errors': (json['errors'].map(PhonebookImportResultErrorsInner_1.PhonebookImportResultErrorsInnerFromJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function PhonebookImportResultToJSON(json) {
|
|
54
|
+
return PhonebookImportResultToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function PhonebookImportResultToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'total': value['total'],
|
|
62
|
+
'created': value['created'],
|
|
63
|
+
'updated': value['updated'],
|
|
64
|
+
'skipped': value['skipped'],
|
|
65
|
+
'errors': (value['errors'].map(PhonebookImportResultErrorsInner_1.PhonebookImportResultErrorsInnerToJSON)),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tivadar AI Backend API
|
|
3
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PhonebookImportResultErrorsInner
|
|
16
|
+
*/
|
|
17
|
+
export interface PhonebookImportResultErrorsInner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof PhonebookImportResultErrorsInner
|
|
22
|
+
*/
|
|
23
|
+
row: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PhonebookImportResultErrorsInner
|
|
28
|
+
*/
|
|
29
|
+
message: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the PhonebookImportResultErrorsInner interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfPhonebookImportResultErrorsInner(value: object): value is PhonebookImportResultErrorsInner;
|
|
35
|
+
export declare function PhonebookImportResultErrorsInnerFromJSON(json: any): PhonebookImportResultErrorsInner;
|
|
36
|
+
export declare function PhonebookImportResultErrorsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): PhonebookImportResultErrorsInner;
|
|
37
|
+
export declare function PhonebookImportResultErrorsInnerToJSON(json: any): PhonebookImportResultErrorsInner;
|
|
38
|
+
export declare function PhonebookImportResultErrorsInnerToJSONTyped(value?: PhonebookImportResultErrorsInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Tivadar AI Backend API
|
|
6
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfPhonebookImportResultErrorsInner = instanceOfPhonebookImportResultErrorsInner;
|
|
17
|
+
exports.PhonebookImportResultErrorsInnerFromJSON = PhonebookImportResultErrorsInnerFromJSON;
|
|
18
|
+
exports.PhonebookImportResultErrorsInnerFromJSONTyped = PhonebookImportResultErrorsInnerFromJSONTyped;
|
|
19
|
+
exports.PhonebookImportResultErrorsInnerToJSON = PhonebookImportResultErrorsInnerToJSON;
|
|
20
|
+
exports.PhonebookImportResultErrorsInnerToJSONTyped = PhonebookImportResultErrorsInnerToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PhonebookImportResultErrorsInner interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPhonebookImportResultErrorsInner(value) {
|
|
25
|
+
if (!('row' in value) || value['row'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function PhonebookImportResultErrorsInnerFromJSON(json) {
|
|
32
|
+
return PhonebookImportResultErrorsInnerFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function PhonebookImportResultErrorsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'row': json['row'],
|
|
40
|
+
'message': json['message'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function PhonebookImportResultErrorsInnerToJSON(json) {
|
|
44
|
+
return PhonebookImportResultErrorsInnerToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function PhonebookImportResultErrorsInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'row': value['row'],
|
|
52
|
+
'message': value['message'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tivadar AI Backend API
|
|
3
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PhonebookUpdate
|
|
16
|
+
*/
|
|
17
|
+
export interface PhonebookUpdate {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof PhonebookUpdate
|
|
22
|
+
*/
|
|
23
|
+
auto_populate?: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the PhonebookUpdate interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfPhonebookUpdate(value: object): value is PhonebookUpdate;
|
|
29
|
+
export declare function PhonebookUpdateFromJSON(json: any): PhonebookUpdate;
|
|
30
|
+
export declare function PhonebookUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): PhonebookUpdate;
|
|
31
|
+
export declare function PhonebookUpdateToJSON(json: any): PhonebookUpdate;
|
|
32
|
+
export declare function PhonebookUpdateToJSONTyped(value?: PhonebookUpdate | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
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.instanceOfPhonebookUpdate = instanceOfPhonebookUpdate;
|
|
17
|
+
exports.PhonebookUpdateFromJSON = PhonebookUpdateFromJSON;
|
|
18
|
+
exports.PhonebookUpdateFromJSONTyped = PhonebookUpdateFromJSONTyped;
|
|
19
|
+
exports.PhonebookUpdateToJSON = PhonebookUpdateToJSON;
|
|
20
|
+
exports.PhonebookUpdateToJSONTyped = PhonebookUpdateToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PhonebookUpdate interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPhonebookUpdate(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function PhonebookUpdateFromJSON(json) {
|
|
28
|
+
return PhonebookUpdateFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function PhonebookUpdateFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'auto_populate': json['auto_populate'] == null ? undefined : json['auto_populate'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function PhonebookUpdateToJSON(json) {
|
|
39
|
+
return PhonebookUpdateToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function PhonebookUpdateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'auto_populate': value['auto_populate'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -27,6 +27,30 @@ export interface VoiceAgentMetadata {
|
|
|
27
27
|
* @memberof VoiceAgentMetadata
|
|
28
28
|
*/
|
|
29
29
|
rag_index?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof VoiceAgentMetadata
|
|
34
|
+
*/
|
|
35
|
+
display_instructions?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof VoiceAgentMetadata
|
|
40
|
+
*/
|
|
41
|
+
runtime_instructions?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof VoiceAgentMetadata
|
|
46
|
+
*/
|
|
47
|
+
display_greeting?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof VoiceAgentMetadata
|
|
52
|
+
*/
|
|
53
|
+
runtime_greeting?: string;
|
|
30
54
|
}
|
|
31
55
|
/**
|
|
32
56
|
* Check if a given object implements the VoiceAgentMetadata interface.
|
|
@@ -34,6 +34,10 @@ function VoiceAgentMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
return {
|
|
35
35
|
'allowedFunctions': json['allowedFunctions'] == null ? undefined : json['allowedFunctions'],
|
|
36
36
|
'rag_index': json['rag_index'] == null ? undefined : json['rag_index'],
|
|
37
|
+
'display_instructions': json['display_instructions'] == null ? undefined : json['display_instructions'],
|
|
38
|
+
'runtime_instructions': json['runtime_instructions'] == null ? undefined : json['runtime_instructions'],
|
|
39
|
+
'display_greeting': json['display_greeting'] == null ? undefined : json['display_greeting'],
|
|
40
|
+
'runtime_greeting': json['runtime_greeting'] == null ? undefined : json['runtime_greeting'],
|
|
37
41
|
};
|
|
38
42
|
}
|
|
39
43
|
function VoiceAgentMetadataToJSON(json) {
|
|
@@ -46,5 +50,9 @@ function VoiceAgentMetadataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
46
50
|
return {
|
|
47
51
|
'allowedFunctions': value['allowedFunctions'],
|
|
48
52
|
'rag_index': value['rag_index'],
|
|
53
|
+
'display_instructions': value['display_instructions'],
|
|
54
|
+
'runtime_instructions': value['runtime_instructions'],
|
|
55
|
+
'display_greeting': value['display_greeting'],
|
|
56
|
+
'runtime_greeting': value['runtime_greeting'],
|
|
49
57
|
};
|
|
50
58
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -59,6 +59,13 @@ export * from './PauseSubscriptionResponse';
|
|
|
59
59
|
export * from './PauseSubscriptionResponsePauseCollection';
|
|
60
60
|
export * from './PhoneNumber';
|
|
61
61
|
export * from './PhoneNumberCreate';
|
|
62
|
+
export * from './Phonebook';
|
|
63
|
+
export * from './PhonebookEntry';
|
|
64
|
+
export * from './PhonebookEntryCreate';
|
|
65
|
+
export * from './PhonebookEntryUpdate';
|
|
66
|
+
export * from './PhonebookImportResult';
|
|
67
|
+
export * from './PhonebookImportResultErrorsInner';
|
|
68
|
+
export * from './PhonebookUpdate';
|
|
62
69
|
export * from './RagConfig';
|
|
63
70
|
export * from './RagConfigCreate';
|
|
64
71
|
export * from './RagDocument';
|
package/dist/models/index.js
CHANGED
|
@@ -77,6 +77,13 @@ __exportStar(require("./PauseSubscriptionResponse"), exports);
|
|
|
77
77
|
__exportStar(require("./PauseSubscriptionResponsePauseCollection"), exports);
|
|
78
78
|
__exportStar(require("./PhoneNumber"), exports);
|
|
79
79
|
__exportStar(require("./PhoneNumberCreate"), exports);
|
|
80
|
+
__exportStar(require("./Phonebook"), exports);
|
|
81
|
+
__exportStar(require("./PhonebookEntry"), exports);
|
|
82
|
+
__exportStar(require("./PhonebookEntryCreate"), exports);
|
|
83
|
+
__exportStar(require("./PhonebookEntryUpdate"), exports);
|
|
84
|
+
__exportStar(require("./PhonebookImportResult"), exports);
|
|
85
|
+
__exportStar(require("./PhonebookImportResultErrorsInner"), exports);
|
|
86
|
+
__exportStar(require("./PhonebookUpdate"), exports);
|
|
80
87
|
__exportStar(require("./RagConfig"), exports);
|
|
81
88
|
__exportStar(require("./RagConfigCreate"), exports);
|
|
82
89
|
__exportStar(require("./RagDocument"), exports);
|
package/package.json
CHANGED
package/src/api-client.ts
CHANGED
|
@@ -20,6 +20,7 @@ import { TTSProvidersApi } from "./apis/TTSProvidersApi";
|
|
|
20
20
|
import { SubscriptionApi } from "./apis/SubscriptionApi";
|
|
21
21
|
import { VoiceAgentsApi } from "./apis/VoiceAgentsApi";
|
|
22
22
|
import { ToolsApi } from "./apis/ToolsApi";
|
|
23
|
+
import { PhonebookApi } from "./apis/PhonebookApi";
|
|
23
24
|
import { Configuration } from "./runtime";
|
|
24
25
|
|
|
25
26
|
import type {
|
|
@@ -53,6 +54,9 @@ import type {
|
|
|
53
54
|
OrganizationsOrganizationIdNotificationsGet200Response,
|
|
54
55
|
UserPreferencesUpdate,
|
|
55
56
|
AgentToolUpsert,
|
|
57
|
+
PhonebookUpdate,
|
|
58
|
+
PhonebookEntryCreate,
|
|
59
|
+
PhonebookEntryUpdate,
|
|
56
60
|
} from "./models";
|
|
57
61
|
|
|
58
62
|
export interface ApiClientConfig {
|
|
@@ -109,6 +113,7 @@ export class Api {
|
|
|
109
113
|
accept: (invitationAccept: InvitationAccept, options?: RequestInit) => ReturnType<InvitationsApi["invitationsAcceptPost"]>;
|
|
110
114
|
list: (organizationId: string, options?: RequestInit) => ReturnType<InvitationsApi["organizationsOrganizationIdInvitationsGet"]>;
|
|
111
115
|
create: (organizationId: string, invitationCreate: InvitationCreate, options?: RequestInit) => ReturnType<InvitationsApi["organizationsOrganizationIdInvitationsPost"]>;
|
|
116
|
+
cancel: (organizationId: string, invitationId: number, options?: RequestInit) => ReturnType<InvitationsApi["organizationsOrganizationIdInvitationsInvitationIdDelete"]>;
|
|
112
117
|
};
|
|
113
118
|
public readonly recordings: {
|
|
114
119
|
get: (organizationId: string, callId: string, options?: RequestInit) => ReturnType<RecordingsApi["organizationsOrganizationIdRecordingsCallIdGet"]>;
|
|
@@ -189,6 +194,19 @@ export class Api {
|
|
|
189
194
|
upsertForAgent: (organizationId: string, voiceAgentId: string, toolName: string, agentToolUpsert: AgentToolUpsert, options?: RequestInit) => ReturnType<ToolsApi["organizationsOrganizationIdVoiceAgentsVoiceAgentIdToolsToolNamePut"]>;
|
|
190
195
|
removeFromAgent: (organizationId: string, voiceAgentId: string, toolName: string, options?: RequestInit) => ReturnType<ToolsApi["organizationsOrganizationIdVoiceAgentsVoiceAgentIdToolsToolNameDelete"]>;
|
|
191
196
|
};
|
|
197
|
+
public readonly phonebook: {
|
|
198
|
+
get: (organizationId: string, options?: RequestInit) => ReturnType<PhonebookApi["organizationsOrganizationIdPhonebookGet"]>;
|
|
199
|
+
update: (organizationId: string, phonebookUpdate: PhonebookUpdate, options?: RequestInit) => ReturnType<PhonebookApi["organizationsOrganizationIdPhonebookPatch"]>;
|
|
200
|
+
entries: {
|
|
201
|
+
list: (organizationId: string, params?: { search?: string; limit?: number; offset?: number }, options?: RequestInit) => ReturnType<PhonebookApi["organizationsOrganizationIdPhonebookEntriesGet"]>;
|
|
202
|
+
get: (organizationId: string, entryId: string, options?: RequestInit) => ReturnType<PhonebookApi["organizationsOrganizationIdPhonebookEntriesEntryIdGet"]>;
|
|
203
|
+
create: (organizationId: string, phonebookEntryCreate: PhonebookEntryCreate, options?: RequestInit) => ReturnType<PhonebookApi["organizationsOrganizationIdPhonebookEntriesPost"]>;
|
|
204
|
+
update: (organizationId: string, entryId: string, phonebookEntryUpdate: PhonebookEntryUpdate, options?: RequestInit) => ReturnType<PhonebookApi["organizationsOrganizationIdPhonebookEntriesEntryIdPatch"]>;
|
|
205
|
+
delete: (organizationId: string, entryId: string, options?: RequestInit) => ReturnType<PhonebookApi["organizationsOrganizationIdPhonebookEntriesEntryIdDelete"]>;
|
|
206
|
+
import: (organizationId: string, file: Blob, options?: RequestInit) => ReturnType<PhonebookApi["organizationsOrganizationIdPhonebookEntriesImportPost"]>;
|
|
207
|
+
export: (organizationId: string, options?: RequestInit) => ReturnType<PhonebookApi["organizationsOrganizationIdPhonebookEntriesExportGet"]>;
|
|
208
|
+
};
|
|
209
|
+
};
|
|
192
210
|
|
|
193
211
|
private readonly callsApi: CallsApi;
|
|
194
212
|
private readonly voiceAgentsApi: VoiceAgentsApi;
|
|
@@ -210,6 +228,7 @@ export class Api {
|
|
|
210
228
|
private readonly sttProvidersApi: STTProvidersApi;
|
|
211
229
|
private readonly ttsProvidersApi: TTSProvidersApi;
|
|
212
230
|
private readonly toolsApi: ToolsApi;
|
|
231
|
+
private readonly phonebookApi: PhonebookApi;
|
|
213
232
|
|
|
214
233
|
// Mutable auth state — shared by reference with all API instances
|
|
215
234
|
private readonly _auth: { accessToken: string | undefined; headers: Record<string, string> } = {
|
|
@@ -250,6 +269,7 @@ export class Api {
|
|
|
250
269
|
this.sttProvidersApi = new STTProvidersApi(configuration);
|
|
251
270
|
this.ttsProvidersApi = new TTSProvidersApi(configuration);
|
|
252
271
|
this.toolsApi = new ToolsApi(configuration);
|
|
272
|
+
this.phonebookApi = new PhonebookApi(configuration);
|
|
253
273
|
|
|
254
274
|
this.calls = {
|
|
255
275
|
list: (organizationId, voiceAgentId, sandbox, options) => this.callsApi.organizationsOrganizationIdCallsGet({ organizationId, voiceAgentId, sandbox }, options),
|
|
@@ -305,6 +325,7 @@ export class Api {
|
|
|
305
325
|
accept: (invitationAccept, options) => this.invitationsApi.invitationsAcceptPost({ invitationAccept }, options),
|
|
306
326
|
list: (organizationId, options) => this.invitationsApi.organizationsOrganizationIdInvitationsGet({ organizationId }, options),
|
|
307
327
|
create: (organizationId, invitationCreate, options) => this.invitationsApi.organizationsOrganizationIdInvitationsPost({ organizationId, invitationCreate }, options),
|
|
328
|
+
cancel: (organizationId, invitationId, options) => this.invitationsApi.organizationsOrganizationIdInvitationsInvitationIdDelete({ organizationId, invitationId }, options),
|
|
308
329
|
};
|
|
309
330
|
|
|
310
331
|
this.recordings = {
|
|
@@ -398,6 +419,20 @@ export class Api {
|
|
|
398
419
|
upsertForAgent: (organizationId, voiceAgentId, toolName, agentToolUpsert, options) => this.toolsApi.organizationsOrganizationIdVoiceAgentsVoiceAgentIdToolsToolNamePut({ organizationId, voiceAgentId, toolName, agentToolUpsert }, options),
|
|
399
420
|
removeFromAgent: (organizationId, voiceAgentId, toolName, options) => this.toolsApi.organizationsOrganizationIdVoiceAgentsVoiceAgentIdToolsToolNameDelete({ organizationId, voiceAgentId, toolName }, options),
|
|
400
421
|
};
|
|
422
|
+
|
|
423
|
+
this.phonebook = {
|
|
424
|
+
get: (organizationId, options) => this.phonebookApi.organizationsOrganizationIdPhonebookGet({ organizationId }, options),
|
|
425
|
+
update: (organizationId, phonebookUpdate, options) => this.phonebookApi.organizationsOrganizationIdPhonebookPatch({ organizationId, phonebookUpdate }, options),
|
|
426
|
+
entries: {
|
|
427
|
+
list: (organizationId, params, options) => this.phonebookApi.organizationsOrganizationIdPhonebookEntriesGet({ organizationId, search: params?.search, limit: params?.limit, offset: params?.offset }, options),
|
|
428
|
+
get: (organizationId, entryId, options) => this.phonebookApi.organizationsOrganizationIdPhonebookEntriesEntryIdGet({ organizationId, entryId }, options),
|
|
429
|
+
create: (organizationId, phonebookEntryCreate, options) => this.phonebookApi.organizationsOrganizationIdPhonebookEntriesPost({ organizationId, phonebookEntryCreate }, options),
|
|
430
|
+
update: (organizationId, entryId, phonebookEntryUpdate, options) => this.phonebookApi.organizationsOrganizationIdPhonebookEntriesEntryIdPatch({ organizationId, entryId, phonebookEntryUpdate }, options),
|
|
431
|
+
delete: (organizationId, entryId, options) => this.phonebookApi.organizationsOrganizationIdPhonebookEntriesEntryIdDelete({ organizationId, entryId }, options),
|
|
432
|
+
import: (organizationId, file, options) => this.phonebookApi.organizationsOrganizationIdPhonebookEntriesImportPost({ organizationId, file }, options),
|
|
433
|
+
export: (organizationId, options) => this.phonebookApi.organizationsOrganizationIdPhonebookEntriesExportGet({ organizationId }, options),
|
|
434
|
+
},
|
|
435
|
+
};
|
|
401
436
|
}
|
|
402
437
|
|
|
403
438
|
/**
|
|
@@ -36,6 +36,11 @@ export interface OrganizationsOrganizationIdInvitationsGetRequest {
|
|
|
36
36
|
organizationId: string;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
export interface OrganizationsOrganizationIdInvitationsInvitationIdDeleteRequest {
|
|
40
|
+
organizationId: string;
|
|
41
|
+
invitationId: number;
|
|
42
|
+
}
|
|
43
|
+
|
|
39
44
|
export interface OrganizationsOrganizationIdInvitationsPostRequest {
|
|
40
45
|
organizationId: string;
|
|
41
46
|
invitationCreate: InvitationCreate;
|
|
@@ -138,6 +143,58 @@ export class InvitationsApi extends runtime.BaseAPI {
|
|
|
138
143
|
return await response.value();
|
|
139
144
|
}
|
|
140
145
|
|
|
146
|
+
/**
|
|
147
|
+
* Cancel (delete) a pending invitation
|
|
148
|
+
*/
|
|
149
|
+
async organizationsOrganizationIdInvitationsInvitationIdDeleteRaw(requestParameters: OrganizationsOrganizationIdInvitationsInvitationIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
150
|
+
if (requestParameters['organizationId'] == null) {
|
|
151
|
+
throw new runtime.RequiredError(
|
|
152
|
+
'organizationId',
|
|
153
|
+
'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdInvitationsInvitationIdDelete().'
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
if (requestParameters['invitationId'] == null) {
|
|
158
|
+
throw new runtime.RequiredError(
|
|
159
|
+
'invitationId',
|
|
160
|
+
'Required parameter "invitationId" was null or undefined when calling organizationsOrganizationIdInvitationsInvitationIdDelete().'
|
|
161
|
+
);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
const queryParameters: any = {};
|
|
165
|
+
|
|
166
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
167
|
+
|
|
168
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
169
|
+
const token = this.configuration.accessToken;
|
|
170
|
+
const tokenString = await token("bearerAuth", []);
|
|
171
|
+
|
|
172
|
+
if (tokenString) {
|
|
173
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
let urlPath = `/organizations/{organizationId}/invitations/{invitationId}`;
|
|
178
|
+
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
179
|
+
urlPath = urlPath.replace(`{${"invitationId"}}`, encodeURIComponent(String(requestParameters['invitationId'])));
|
|
180
|
+
|
|
181
|
+
const response = await this.request({
|
|
182
|
+
path: urlPath,
|
|
183
|
+
method: 'DELETE',
|
|
184
|
+
headers: headerParameters,
|
|
185
|
+
query: queryParameters,
|
|
186
|
+
}, initOverrides);
|
|
187
|
+
|
|
188
|
+
return new runtime.VoidApiResponse(response);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Cancel (delete) a pending invitation
|
|
193
|
+
*/
|
|
194
|
+
async organizationsOrganizationIdInvitationsInvitationIdDelete(requestParameters: OrganizationsOrganizationIdInvitationsInvitationIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
195
|
+
await this.organizationsOrganizationIdInvitationsInvitationIdDeleteRaw(requestParameters, initOverrides);
|
|
196
|
+
}
|
|
197
|
+
|
|
141
198
|
/**
|
|
142
199
|
* Create a new invitation
|
|
143
200
|
*/
|