@l7mp/tivadar-ai-api-sdk 0.2.6 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-client.d.ts +20 -1
- package/dist/api-client.js +15 -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 +20 -1
- package/dist/esm/api-client.js +15 -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/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/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/package.json +1 -1
- package/src/api-client.ts +33 -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/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
|
+
}
|
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 {
|
|
@@ -189,6 +193,19 @@ export class Api {
|
|
|
189
193
|
upsertForAgent: (organizationId: string, voiceAgentId: string, toolName: string, agentToolUpsert: AgentToolUpsert, options?: RequestInit) => ReturnType<ToolsApi["organizationsOrganizationIdVoiceAgentsVoiceAgentIdToolsToolNamePut"]>;
|
|
190
194
|
removeFromAgent: (organizationId: string, voiceAgentId: string, toolName: string, options?: RequestInit) => ReturnType<ToolsApi["organizationsOrganizationIdVoiceAgentsVoiceAgentIdToolsToolNameDelete"]>;
|
|
191
195
|
};
|
|
196
|
+
public readonly phonebook: {
|
|
197
|
+
get: (organizationId: string, options?: RequestInit) => ReturnType<PhonebookApi["organizationsOrganizationIdPhonebookGet"]>;
|
|
198
|
+
update: (organizationId: string, phonebookUpdate: PhonebookUpdate, options?: RequestInit) => ReturnType<PhonebookApi["organizationsOrganizationIdPhonebookPatch"]>;
|
|
199
|
+
entries: {
|
|
200
|
+
list: (organizationId: string, params?: { search?: string; limit?: number; offset?: number }, options?: RequestInit) => ReturnType<PhonebookApi["organizationsOrganizationIdPhonebookEntriesGet"]>;
|
|
201
|
+
get: (organizationId: string, entryId: string, options?: RequestInit) => ReturnType<PhonebookApi["organizationsOrganizationIdPhonebookEntriesEntryIdGet"]>;
|
|
202
|
+
create: (organizationId: string, phonebookEntryCreate: PhonebookEntryCreate, options?: RequestInit) => ReturnType<PhonebookApi["organizationsOrganizationIdPhonebookEntriesPost"]>;
|
|
203
|
+
update: (organizationId: string, entryId: string, phonebookEntryUpdate: PhonebookEntryUpdate, options?: RequestInit) => ReturnType<PhonebookApi["organizationsOrganizationIdPhonebookEntriesEntryIdPatch"]>;
|
|
204
|
+
delete: (organizationId: string, entryId: string, options?: RequestInit) => ReturnType<PhonebookApi["organizationsOrganizationIdPhonebookEntriesEntryIdDelete"]>;
|
|
205
|
+
import: (organizationId: string, file: Blob, options?: RequestInit) => ReturnType<PhonebookApi["organizationsOrganizationIdPhonebookEntriesImportPost"]>;
|
|
206
|
+
export: (organizationId: string, options?: RequestInit) => ReturnType<PhonebookApi["organizationsOrganizationIdPhonebookEntriesExportGet"]>;
|
|
207
|
+
};
|
|
208
|
+
};
|
|
192
209
|
|
|
193
210
|
private readonly callsApi: CallsApi;
|
|
194
211
|
private readonly voiceAgentsApi: VoiceAgentsApi;
|
|
@@ -210,6 +227,7 @@ export class Api {
|
|
|
210
227
|
private readonly sttProvidersApi: STTProvidersApi;
|
|
211
228
|
private readonly ttsProvidersApi: TTSProvidersApi;
|
|
212
229
|
private readonly toolsApi: ToolsApi;
|
|
230
|
+
private readonly phonebookApi: PhonebookApi;
|
|
213
231
|
|
|
214
232
|
// Mutable auth state — shared by reference with all API instances
|
|
215
233
|
private readonly _auth: { accessToken: string | undefined; headers: Record<string, string> } = {
|
|
@@ -250,6 +268,7 @@ export class Api {
|
|
|
250
268
|
this.sttProvidersApi = new STTProvidersApi(configuration);
|
|
251
269
|
this.ttsProvidersApi = new TTSProvidersApi(configuration);
|
|
252
270
|
this.toolsApi = new ToolsApi(configuration);
|
|
271
|
+
this.phonebookApi = new PhonebookApi(configuration);
|
|
253
272
|
|
|
254
273
|
this.calls = {
|
|
255
274
|
list: (organizationId, voiceAgentId, sandbox, options) => this.callsApi.organizationsOrganizationIdCallsGet({ organizationId, voiceAgentId, sandbox }, options),
|
|
@@ -398,6 +417,20 @@ export class Api {
|
|
|
398
417
|
upsertForAgent: (organizationId, voiceAgentId, toolName, agentToolUpsert, options) => this.toolsApi.organizationsOrganizationIdVoiceAgentsVoiceAgentIdToolsToolNamePut({ organizationId, voiceAgentId, toolName, agentToolUpsert }, options),
|
|
399
418
|
removeFromAgent: (organizationId, voiceAgentId, toolName, options) => this.toolsApi.organizationsOrganizationIdVoiceAgentsVoiceAgentIdToolsToolNameDelete({ organizationId, voiceAgentId, toolName }, options),
|
|
400
419
|
};
|
|
420
|
+
|
|
421
|
+
this.phonebook = {
|
|
422
|
+
get: (organizationId, options) => this.phonebookApi.organizationsOrganizationIdPhonebookGet({ organizationId }, options),
|
|
423
|
+
update: (organizationId, phonebookUpdate, options) => this.phonebookApi.organizationsOrganizationIdPhonebookPatch({ organizationId, phonebookUpdate }, options),
|
|
424
|
+
entries: {
|
|
425
|
+
list: (organizationId, params, options) => this.phonebookApi.organizationsOrganizationIdPhonebookEntriesGet({ organizationId, search: params?.search, limit: params?.limit, offset: params?.offset }, options),
|
|
426
|
+
get: (organizationId, entryId, options) => this.phonebookApi.organizationsOrganizationIdPhonebookEntriesEntryIdGet({ organizationId, entryId }, options),
|
|
427
|
+
create: (organizationId, phonebookEntryCreate, options) => this.phonebookApi.organizationsOrganizationIdPhonebookEntriesPost({ organizationId, phonebookEntryCreate }, options),
|
|
428
|
+
update: (organizationId, entryId, phonebookEntryUpdate, options) => this.phonebookApi.organizationsOrganizationIdPhonebookEntriesEntryIdPatch({ organizationId, entryId, phonebookEntryUpdate }, options),
|
|
429
|
+
delete: (organizationId, entryId, options) => this.phonebookApi.organizationsOrganizationIdPhonebookEntriesEntryIdDelete({ organizationId, entryId }, options),
|
|
430
|
+
import: (organizationId, file, options) => this.phonebookApi.organizationsOrganizationIdPhonebookEntriesImportPost({ organizationId, file }, options),
|
|
431
|
+
export: (organizationId, options) => this.phonebookApi.organizationsOrganizationIdPhonebookEntriesExportGet({ organizationId }, options),
|
|
432
|
+
},
|
|
433
|
+
};
|
|
401
434
|
}
|
|
402
435
|
|
|
403
436
|
/**
|