@l7mp/tivadar-ai-api-sdk 0.2.15 → 0.2.17
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 +9 -1
- package/dist/api-client.js +8 -0
- package/dist/apis/AdminPhoneNumbersApi.d.ts +26 -1
- package/dist/apis/AdminPhoneNumbersApi.js +81 -0
- package/dist/apis/OutboundCallsApi.d.ts +45 -0
- package/dist/apis/OutboundCallsApi.js +116 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/api-client.d.ts +9 -1
- package/dist/esm/api-client.js +8 -0
- package/dist/esm/apis/AdminPhoneNumbersApi.d.ts +26 -1
- package/dist/esm/apis/AdminPhoneNumbersApi.js +82 -1
- package/dist/esm/apis/OutboundCallsApi.d.ts +45 -0
- package/dist/esm/apis/OutboundCallsApi.js +112 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/AdminPhoneNumberAssignOutbound.d.ts +32 -0
- package/dist/esm/models/AdminPhoneNumberAssignOutbound.js +43 -0
- package/dist/esm/models/AdminPhoneNumberDetail.d.ts +30 -0
- package/dist/esm/models/AdminPhoneNumberDetail.js +10 -0
- package/dist/esm/models/AdminPhoneNumberUpdate.d.ts +18 -0
- package/dist/esm/models/AdminPhoneNumberUpdate.js +6 -0
- package/dist/esm/models/OutboundCall.d.ts +68 -0
- package/dist/esm/models/OutboundCall.js +53 -0
- package/dist/esm/models/OutboundCallRequest.d.ts +50 -0
- package/dist/esm/models/OutboundCallRequest.js +49 -0
- package/dist/esm/models/OutboundNumber.d.ts +38 -0
- package/dist/esm/models/OutboundNumber.js +43 -0
- package/dist/esm/models/PhoneNumber.d.ts +18 -0
- package/dist/esm/models/PhoneNumber.js +6 -0
- package/dist/esm/models/PhoneNumberCreate.d.ts +24 -0
- package/dist/esm/models/PhoneNumberCreate.js +8 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/models/AdminPhoneNumberAssignOutbound.d.ts +32 -0
- package/dist/models/AdminPhoneNumberAssignOutbound.js +50 -0
- package/dist/models/AdminPhoneNumberDetail.d.ts +30 -0
- package/dist/models/AdminPhoneNumberDetail.js +10 -0
- package/dist/models/AdminPhoneNumberUpdate.d.ts +18 -0
- package/dist/models/AdminPhoneNumberUpdate.js +6 -0
- package/dist/models/OutboundCall.d.ts +68 -0
- package/dist/models/OutboundCall.js +60 -0
- package/dist/models/OutboundCallRequest.d.ts +50 -0
- package/dist/models/OutboundCallRequest.js +56 -0
- package/dist/models/OutboundNumber.d.ts +38 -0
- package/dist/models/OutboundNumber.js +50 -0
- package/dist/models/PhoneNumber.d.ts +18 -0
- package/dist/models/PhoneNumber.js +6 -0
- package/dist/models/PhoneNumberCreate.d.ts +24 -0
- package/dist/models/PhoneNumberCreate.js +8 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
- package/src/api-client.ts +18 -0
- package/src/apis/AdminPhoneNumbersApi.ts +114 -0
- package/src/apis/OutboundCallsApi.ts +149 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AdminPhoneNumberAssignOutbound.ts +66 -0
- package/src/models/AdminPhoneNumberDetail.ts +40 -0
- package/src/models/AdminPhoneNumberUpdate.ts +24 -0
- package/src/models/OutboundCall.ts +113 -0
- package/src/models/OutboundCallRequest.ts +90 -0
- package/src/models/OutboundNumber.ts +73 -0
- package/src/models/PhoneNumber.ts +24 -0
- package/src/models/PhoneNumberCreate.ts +32 -0
- package/src/models/index.ts +4 -0
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { AdminPhoneNumberAssignToJSON, AdminPhoneNumberDetailFromJSON, AdminPhoneNumberUpdateToJSON, AdminPhoneNumbersListResponseFromJSON, PhoneNumberFromJSON, PhoneNumberCreateToJSON, PhoneNumberOrderFromJSON, PhoneNumberOrdersListResponseFromJSON, ProcessOrdersResultFromJSON, } from '../models/index';
|
|
24
|
+
import { AdminPhoneNumberAssignToJSON, AdminPhoneNumberAssignOutboundToJSON, AdminPhoneNumberDetailFromJSON, AdminPhoneNumberUpdateToJSON, AdminPhoneNumbersListResponseFromJSON, PhoneNumberFromJSON, PhoneNumberCreateToJSON, PhoneNumberOrderFromJSON, PhoneNumberOrdersListResponseFromJSON, ProcessOrdersResultFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -232,6 +232,50 @@ export class AdminPhoneNumbersApi extends runtime.BaseAPI {
|
|
|
232
232
|
return yield response.value();
|
|
233
233
|
});
|
|
234
234
|
}
|
|
235
|
+
/**
|
|
236
|
+
* Grants the organization ownership of an outbound number (no inbound trunk). The org can then place outbound calls using it as caller-ID.
|
|
237
|
+
* Assign an outbound-capable number to an organization (app-admin only)
|
|
238
|
+
*/
|
|
239
|
+
adminPhoneNumbersPhoneNumberIdAssignOutboundPostRaw(requestParameters, initOverrides) {
|
|
240
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
241
|
+
if (requestParameters['phoneNumberId'] == null) {
|
|
242
|
+
throw new runtime.RequiredError('phoneNumberId', 'Required parameter "phoneNumberId" was null or undefined when calling adminPhoneNumbersPhoneNumberIdAssignOutboundPost().');
|
|
243
|
+
}
|
|
244
|
+
if (requestParameters['adminPhoneNumberAssignOutbound'] == null) {
|
|
245
|
+
throw new runtime.RequiredError('adminPhoneNumberAssignOutbound', 'Required parameter "adminPhoneNumberAssignOutbound" was null or undefined when calling adminPhoneNumbersPhoneNumberIdAssignOutboundPost().');
|
|
246
|
+
}
|
|
247
|
+
const queryParameters = {};
|
|
248
|
+
const headerParameters = {};
|
|
249
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
250
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
251
|
+
const token = this.configuration.accessToken;
|
|
252
|
+
const tokenString = yield token("bearerAuth", []);
|
|
253
|
+
if (tokenString) {
|
|
254
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
let urlPath = `/admin/phone-numbers/{phoneNumberId}/assign-outbound`;
|
|
258
|
+
urlPath = urlPath.replace(`{${"phoneNumberId"}}`, encodeURIComponent(String(requestParameters['phoneNumberId'])));
|
|
259
|
+
const response = yield this.request({
|
|
260
|
+
path: urlPath,
|
|
261
|
+
method: 'POST',
|
|
262
|
+
headers: headerParameters,
|
|
263
|
+
query: queryParameters,
|
|
264
|
+
body: AdminPhoneNumberAssignOutboundToJSON(requestParameters['adminPhoneNumberAssignOutbound']),
|
|
265
|
+
}, initOverrides);
|
|
266
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AdminPhoneNumberDetailFromJSON(jsonValue));
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Grants the organization ownership of an outbound number (no inbound trunk). The org can then place outbound calls using it as caller-ID.
|
|
271
|
+
* Assign an outbound-capable number to an organization (app-admin only)
|
|
272
|
+
*/
|
|
273
|
+
adminPhoneNumbersPhoneNumberIdAssignOutboundPost(requestParameters, initOverrides) {
|
|
274
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
275
|
+
const response = yield this.adminPhoneNumbersPhoneNumberIdAssignOutboundPostRaw(requestParameters, initOverrides);
|
|
276
|
+
return yield response.value();
|
|
277
|
+
});
|
|
278
|
+
}
|
|
235
279
|
/**
|
|
236
280
|
* Creates a SIP trunk (and, if an agent is given, a dispatch rule) and links the number.
|
|
237
281
|
* Assign a phone number to an organization (app-admin only)
|
|
@@ -393,6 +437,43 @@ export class AdminPhoneNumbersApi extends runtime.BaseAPI {
|
|
|
393
437
|
return yield response.value();
|
|
394
438
|
});
|
|
395
439
|
}
|
|
440
|
+
/**
|
|
441
|
+
* Release an outbound number\'s organization ownership (app-admin only)
|
|
442
|
+
*/
|
|
443
|
+
adminPhoneNumbersPhoneNumberIdUnassignOutboundPostRaw(requestParameters, initOverrides) {
|
|
444
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
445
|
+
if (requestParameters['phoneNumberId'] == null) {
|
|
446
|
+
throw new runtime.RequiredError('phoneNumberId', 'Required parameter "phoneNumberId" was null or undefined when calling adminPhoneNumbersPhoneNumberIdUnassignOutboundPost().');
|
|
447
|
+
}
|
|
448
|
+
const queryParameters = {};
|
|
449
|
+
const headerParameters = {};
|
|
450
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
451
|
+
const token = this.configuration.accessToken;
|
|
452
|
+
const tokenString = yield token("bearerAuth", []);
|
|
453
|
+
if (tokenString) {
|
|
454
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
let urlPath = `/admin/phone-numbers/{phoneNumberId}/unassign-outbound`;
|
|
458
|
+
urlPath = urlPath.replace(`{${"phoneNumberId"}}`, encodeURIComponent(String(requestParameters['phoneNumberId'])));
|
|
459
|
+
const response = yield this.request({
|
|
460
|
+
path: urlPath,
|
|
461
|
+
method: 'POST',
|
|
462
|
+
headers: headerParameters,
|
|
463
|
+
query: queryParameters,
|
|
464
|
+
}, initOverrides);
|
|
465
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AdminPhoneNumberDetailFromJSON(jsonValue));
|
|
466
|
+
});
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* Release an outbound number\'s organization ownership (app-admin only)
|
|
470
|
+
*/
|
|
471
|
+
adminPhoneNumbersPhoneNumberIdUnassignOutboundPost(requestParameters, initOverrides) {
|
|
472
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
473
|
+
const response = yield this.adminPhoneNumbersPhoneNumberIdUnassignOutboundPostRaw(requestParameters, initOverrides);
|
|
474
|
+
return yield response.value();
|
|
475
|
+
});
|
|
476
|
+
}
|
|
396
477
|
/**
|
|
397
478
|
* Deletes the LiveKit dispatch rule + trunk and frees the number back to the pool.
|
|
398
479
|
* Release a phone number from its organization (app-admin only)
|
|
@@ -0,0 +1,45 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
import type { OutboundCall, OutboundCallRequest, OutboundNumber } from '../models/index';
|
|
14
|
+
export interface OrganizationsOrganizationIdOutboundCallsNumbersGetRequest {
|
|
15
|
+
organizationId: string;
|
|
16
|
+
}
|
|
17
|
+
export interface OrganizationsOrganizationIdOutboundCallsPostRequest {
|
|
18
|
+
organizationId: string;
|
|
19
|
+
outboundCallRequest: OutboundCallRequest;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
export declare class OutboundCallsApi extends runtime.BaseAPI {
|
|
25
|
+
/**
|
|
26
|
+
* Returns the outbound-ready numbers assigned to the organization, for selecting which one to use as caller-ID (From) when placing a call. Requires the `outbound_calls` feature.
|
|
27
|
+
* List the organization\'s outbound-capable caller-ID numbers
|
|
28
|
+
*/
|
|
29
|
+
organizationsOrganizationIdOutboundCallsNumbersGetRaw(requestParameters: OrganizationsOrganizationIdOutboundCallsNumbersGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<OutboundNumber>>>;
|
|
30
|
+
/**
|
|
31
|
+
* Returns the outbound-ready numbers assigned to the organization, for selecting which one to use as caller-ID (From) when placing a call. Requires the `outbound_calls` feature.
|
|
32
|
+
* List the organization\'s outbound-capable caller-ID numbers
|
|
33
|
+
*/
|
|
34
|
+
organizationsOrganizationIdOutboundCallsNumbersGet(requestParameters: OrganizationsOrganizationIdOutboundCallsNumbersGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<OutboundNumber>>;
|
|
35
|
+
/**
|
|
36
|
+
* Dials a destination (a phonebook entry or a custom number) using one of the organization\'s voice agents. The caller-ID (From) is the org\'s assigned outbound-capable number. Requires the `outbound_calls` feature (business + enterprise plans).
|
|
37
|
+
* Place an outbound call with a voice agent
|
|
38
|
+
*/
|
|
39
|
+
organizationsOrganizationIdOutboundCallsPostRaw(requestParameters: OrganizationsOrganizationIdOutboundCallsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OutboundCall>>;
|
|
40
|
+
/**
|
|
41
|
+
* Dials a destination (a phonebook entry or a custom number) using one of the organization\'s voice agents. The caller-ID (From) is the org\'s assigned outbound-capable number. Requires the `outbound_calls` feature (business + enterprise plans).
|
|
42
|
+
* Place an outbound call with a voice agent
|
|
43
|
+
*/
|
|
44
|
+
organizationsOrganizationIdOutboundCallsPost(requestParameters: OrganizationsOrganizationIdOutboundCallsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OutboundCall>;
|
|
45
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime';
|
|
24
|
+
import { OutboundCallFromJSON, OutboundCallRequestToJSON, OutboundNumberFromJSON, } from '../models/index';
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export class OutboundCallsApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* Returns the outbound-ready numbers assigned to the organization, for selecting which one to use as caller-ID (From) when placing a call. Requires the `outbound_calls` feature.
|
|
31
|
+
* List the organization\'s outbound-capable caller-ID numbers
|
|
32
|
+
*/
|
|
33
|
+
organizationsOrganizationIdOutboundCallsNumbersGetRaw(requestParameters, initOverrides) {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
if (requestParameters['organizationId'] == null) {
|
|
36
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdOutboundCallsNumbersGet().');
|
|
37
|
+
}
|
|
38
|
+
const queryParameters = {};
|
|
39
|
+
const headerParameters = {};
|
|
40
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
41
|
+
const token = this.configuration.accessToken;
|
|
42
|
+
const tokenString = yield token("bearerAuth", []);
|
|
43
|
+
if (tokenString) {
|
|
44
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
let urlPath = `/organizations/{organizationId}/outbound-calls/numbers`;
|
|
48
|
+
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
49
|
+
const response = yield this.request({
|
|
50
|
+
path: urlPath,
|
|
51
|
+
method: 'GET',
|
|
52
|
+
headers: headerParameters,
|
|
53
|
+
query: queryParameters,
|
|
54
|
+
}, initOverrides);
|
|
55
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(OutboundNumberFromJSON));
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Returns the outbound-ready numbers assigned to the organization, for selecting which one to use as caller-ID (From) when placing a call. Requires the `outbound_calls` feature.
|
|
60
|
+
* List the organization\'s outbound-capable caller-ID numbers
|
|
61
|
+
*/
|
|
62
|
+
organizationsOrganizationIdOutboundCallsNumbersGet(requestParameters, initOverrides) {
|
|
63
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
64
|
+
const response = yield this.organizationsOrganizationIdOutboundCallsNumbersGetRaw(requestParameters, initOverrides);
|
|
65
|
+
return yield response.value();
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Dials a destination (a phonebook entry or a custom number) using one of the organization\'s voice agents. The caller-ID (From) is the org\'s assigned outbound-capable number. Requires the `outbound_calls` feature (business + enterprise plans).
|
|
70
|
+
* Place an outbound call with a voice agent
|
|
71
|
+
*/
|
|
72
|
+
organizationsOrganizationIdOutboundCallsPostRaw(requestParameters, initOverrides) {
|
|
73
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
74
|
+
if (requestParameters['organizationId'] == null) {
|
|
75
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdOutboundCallsPost().');
|
|
76
|
+
}
|
|
77
|
+
if (requestParameters['outboundCallRequest'] == null) {
|
|
78
|
+
throw new runtime.RequiredError('outboundCallRequest', 'Required parameter "outboundCallRequest" was null or undefined when calling organizationsOrganizationIdOutboundCallsPost().');
|
|
79
|
+
}
|
|
80
|
+
const queryParameters = {};
|
|
81
|
+
const headerParameters = {};
|
|
82
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
83
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
84
|
+
const token = this.configuration.accessToken;
|
|
85
|
+
const tokenString = yield token("bearerAuth", []);
|
|
86
|
+
if (tokenString) {
|
|
87
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
let urlPath = `/organizations/{organizationId}/outbound-calls`;
|
|
91
|
+
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
92
|
+
const response = yield this.request({
|
|
93
|
+
path: urlPath,
|
|
94
|
+
method: 'POST',
|
|
95
|
+
headers: headerParameters,
|
|
96
|
+
query: queryParameters,
|
|
97
|
+
body: OutboundCallRequestToJSON(requestParameters['outboundCallRequest']),
|
|
98
|
+
}, initOverrides);
|
|
99
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => OutboundCallFromJSON(jsonValue));
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Dials a destination (a phonebook entry or a custom number) using one of the organization\'s voice agents. The caller-ID (From) is the org\'s assigned outbound-capable number. Requires the `outbound_calls` feature (business + enterprise plans).
|
|
104
|
+
* Place an outbound call with a voice agent
|
|
105
|
+
*/
|
|
106
|
+
organizationsOrganizationIdOutboundCallsPost(requestParameters, initOverrides) {
|
|
107
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
108
|
+
const response = yield this.organizationsOrganizationIdOutboundCallsPostRaw(requestParameters, initOverrides);
|
|
109
|
+
return yield response.value();
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
}
|
package/dist/esm/apis/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export * from './LLMProvidersApi';
|
|
|
12
12
|
export * from './MembersApi';
|
|
13
13
|
export * from './NotificationsApi';
|
|
14
14
|
export * from './OrganizationsApi';
|
|
15
|
+
export * from './OutboundCallsApi';
|
|
15
16
|
export * from './PhonebookApi';
|
|
16
17
|
export * from './PlaygroundApi';
|
|
17
18
|
export * from './ProfileApi';
|
package/dist/esm/apis/index.js
CHANGED
|
@@ -14,6 +14,7 @@ export * from './LLMProvidersApi';
|
|
|
14
14
|
export * from './MembersApi';
|
|
15
15
|
export * from './NotificationsApi';
|
|
16
16
|
export * from './OrganizationsApi';
|
|
17
|
+
export * from './OutboundCallsApi';
|
|
17
18
|
export * from './PhonebookApi';
|
|
18
19
|
export * from './PlaygroundApi';
|
|
19
20
|
export * from './ProfileApi';
|
|
@@ -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 AdminPhoneNumberAssignOutbound
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminPhoneNumberAssignOutbound {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AdminPhoneNumberAssignOutbound
|
|
22
|
+
*/
|
|
23
|
+
organization_id: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the AdminPhoneNumberAssignOutbound interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfAdminPhoneNumberAssignOutbound(value: object): value is AdminPhoneNumberAssignOutbound;
|
|
29
|
+
export declare function AdminPhoneNumberAssignOutboundFromJSON(json: any): AdminPhoneNumberAssignOutbound;
|
|
30
|
+
export declare function AdminPhoneNumberAssignOutboundFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminPhoneNumberAssignOutbound;
|
|
31
|
+
export declare function AdminPhoneNumberAssignOutboundToJSON(json: any): AdminPhoneNumberAssignOutbound;
|
|
32
|
+
export declare function AdminPhoneNumberAssignOutboundToJSONTyped(value?: AdminPhoneNumberAssignOutbound | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Tivadar AI Backend API
|
|
5
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the AdminPhoneNumberAssignOutbound interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfAdminPhoneNumberAssignOutbound(value) {
|
|
18
|
+
if (!('organization_id' in value) || value['organization_id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function AdminPhoneNumberAssignOutboundFromJSON(json) {
|
|
23
|
+
return AdminPhoneNumberAssignOutboundFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function AdminPhoneNumberAssignOutboundFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'organization_id': json['organization_id'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function AdminPhoneNumberAssignOutboundToJSON(json) {
|
|
34
|
+
return AdminPhoneNumberAssignOutboundToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function AdminPhoneNumberAssignOutboundToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'organization_id': value['organization_id'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -33,6 +33,36 @@ export interface AdminPhoneNumberDetail {
|
|
|
33
33
|
* @memberof AdminPhoneNumberDetail
|
|
34
34
|
*/
|
|
35
35
|
supports_call_redirect?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof AdminPhoneNumberDetail
|
|
40
|
+
*/
|
|
41
|
+
supports_outbound?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof AdminPhoneNumberDetail
|
|
46
|
+
*/
|
|
47
|
+
sip_address?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof AdminPhoneNumberDetail
|
|
52
|
+
*/
|
|
53
|
+
outbound_configured?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof AdminPhoneNumberDetail
|
|
58
|
+
*/
|
|
59
|
+
outbound_organization_id?: string | null;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof AdminPhoneNumberDetail
|
|
64
|
+
*/
|
|
65
|
+
outbound_organization_name?: string | null;
|
|
36
66
|
/**
|
|
37
67
|
*
|
|
38
68
|
* @type {string}
|
|
@@ -35,6 +35,11 @@ export function AdminPhoneNumberDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
35
|
'id': json['id'] == null ? undefined : json['id'],
|
|
36
36
|
'number': json['number'] == null ? undefined : json['number'],
|
|
37
37
|
'supports_call_redirect': json['supports_call_redirect'] == null ? undefined : json['supports_call_redirect'],
|
|
38
|
+
'supports_outbound': json['supports_outbound'] == null ? undefined : json['supports_outbound'],
|
|
39
|
+
'sip_address': json['sip_address'] == null ? undefined : json['sip_address'],
|
|
40
|
+
'outbound_configured': json['outbound_configured'] == null ? undefined : json['outbound_configured'],
|
|
41
|
+
'outbound_organization_id': json['outbound_organization_id'] == null ? undefined : json['outbound_organization_id'],
|
|
42
|
+
'outbound_organization_name': json['outbound_organization_name'] == null ? undefined : json['outbound_organization_name'],
|
|
38
43
|
'status': json['status'] == null ? undefined : json['status'],
|
|
39
44
|
'created_at': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
|
|
40
45
|
'sip_trunk_id': json['sip_trunk_id'] == null ? undefined : json['sip_trunk_id'],
|
|
@@ -56,6 +61,11 @@ export function AdminPhoneNumberDetailToJSONTyped(value, ignoreDiscriminator = f
|
|
|
56
61
|
'id': value['id'],
|
|
57
62
|
'number': value['number'],
|
|
58
63
|
'supports_call_redirect': value['supports_call_redirect'],
|
|
64
|
+
'supports_outbound': value['supports_outbound'],
|
|
65
|
+
'sip_address': value['sip_address'],
|
|
66
|
+
'outbound_configured': value['outbound_configured'],
|
|
67
|
+
'outbound_organization_id': value['outbound_organization_id'],
|
|
68
|
+
'outbound_organization_name': value['outbound_organization_name'],
|
|
59
69
|
'status': value['status'],
|
|
60
70
|
'created_at': value['created_at'] == null ? value['created_at'] : value['created_at'].toISOString(),
|
|
61
71
|
'sip_trunk_id': value['sip_trunk_id'],
|
|
@@ -27,6 +27,24 @@ export interface AdminPhoneNumberUpdate {
|
|
|
27
27
|
* @memberof AdminPhoneNumberUpdate
|
|
28
28
|
*/
|
|
29
29
|
supports_call_redirect?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Update the outbound SIP address (outbound numbers only).
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AdminPhoneNumberUpdate
|
|
34
|
+
*/
|
|
35
|
+
sip_address?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Update the outbound SIP auth username (re-encrypted).
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AdminPhoneNumberUpdate
|
|
40
|
+
*/
|
|
41
|
+
auth_username?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Update the outbound SIP auth password (re-encrypted).
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof AdminPhoneNumberUpdate
|
|
46
|
+
*/
|
|
47
|
+
auth_password?: string;
|
|
30
48
|
}
|
|
31
49
|
/**
|
|
32
50
|
* Check if a given object implements the AdminPhoneNumberUpdate interface.
|
|
@@ -27,6 +27,9 @@ export function AdminPhoneNumberUpdateFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
27
27
|
return {
|
|
28
28
|
'number': json['number'] == null ? undefined : json['number'],
|
|
29
29
|
'supports_call_redirect': json['supports_call_redirect'] == null ? undefined : json['supports_call_redirect'],
|
|
30
|
+
'sip_address': json['sip_address'] == null ? undefined : json['sip_address'],
|
|
31
|
+
'auth_username': json['auth_username'] == null ? undefined : json['auth_username'],
|
|
32
|
+
'auth_password': json['auth_password'] == null ? undefined : json['auth_password'],
|
|
30
33
|
};
|
|
31
34
|
}
|
|
32
35
|
export function AdminPhoneNumberUpdateToJSON(json) {
|
|
@@ -39,5 +42,8 @@ export function AdminPhoneNumberUpdateToJSONTyped(value, ignoreDiscriminator = f
|
|
|
39
42
|
return {
|
|
40
43
|
'number': value['number'],
|
|
41
44
|
'supports_call_redirect': value['supports_call_redirect'],
|
|
45
|
+
'sip_address': value['sip_address'],
|
|
46
|
+
'auth_username': value['auth_username'],
|
|
47
|
+
'auth_password': value['auth_password'],
|
|
42
48
|
};
|
|
43
49
|
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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 OutboundCall
|
|
16
|
+
*/
|
|
17
|
+
export interface OutboundCall {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof OutboundCall
|
|
22
|
+
*/
|
|
23
|
+
call_id?: string | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof OutboundCall
|
|
28
|
+
*/
|
|
29
|
+
room_name?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof OutboundCall
|
|
34
|
+
*/
|
|
35
|
+
destination?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof OutboundCall
|
|
40
|
+
*/
|
|
41
|
+
from_number?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof OutboundCall
|
|
46
|
+
*/
|
|
47
|
+
participant_identity?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof OutboundCall
|
|
52
|
+
*/
|
|
53
|
+
sip_participant_id?: string | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {boolean}
|
|
57
|
+
* @memberof OutboundCall
|
|
58
|
+
*/
|
|
59
|
+
dispatched?: boolean;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the OutboundCall interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfOutboundCall(value: object): value is OutboundCall;
|
|
65
|
+
export declare function OutboundCallFromJSON(json: any): OutboundCall;
|
|
66
|
+
export declare function OutboundCallFromJSONTyped(json: any, ignoreDiscriminator: boolean): OutboundCall;
|
|
67
|
+
export declare function OutboundCallToJSON(json: any): OutboundCall;
|
|
68
|
+
export declare function OutboundCallToJSONTyped(value?: OutboundCall | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
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 OutboundCall interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfOutboundCall(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function OutboundCallFromJSON(json) {
|
|
21
|
+
return OutboundCallFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function OutboundCallFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'call_id': json['call_id'] == null ? undefined : json['call_id'],
|
|
29
|
+
'room_name': json['room_name'] == null ? undefined : json['room_name'],
|
|
30
|
+
'destination': json['destination'] == null ? undefined : json['destination'],
|
|
31
|
+
'from_number': json['from_number'] == null ? undefined : json['from_number'],
|
|
32
|
+
'participant_identity': json['participant_identity'] == null ? undefined : json['participant_identity'],
|
|
33
|
+
'sip_participant_id': json['sip_participant_id'] == null ? undefined : json['sip_participant_id'],
|
|
34
|
+
'dispatched': json['dispatched'] == null ? undefined : json['dispatched'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function OutboundCallToJSON(json) {
|
|
38
|
+
return OutboundCallToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function OutboundCallToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'call_id': value['call_id'],
|
|
46
|
+
'room_name': value['room_name'],
|
|
47
|
+
'destination': value['destination'],
|
|
48
|
+
'from_number': value['from_number'],
|
|
49
|
+
'participant_identity': value['participant_identity'],
|
|
50
|
+
'sip_participant_id': value['sip_participant_id'],
|
|
51
|
+
'dispatched': value['dispatched'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 OutboundCallRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface OutboundCallRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof OutboundCallRequest
|
|
22
|
+
*/
|
|
23
|
+
voice_agent_id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Destination from a phonebook entry. Provide this OR destination_number.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof OutboundCallRequest
|
|
28
|
+
*/
|
|
29
|
+
phonebook_entry_id?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Custom destination phone number. Provide this OR phonebook_entry_id.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof OutboundCallRequest
|
|
34
|
+
*/
|
|
35
|
+
destination_number?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Which of the org's outbound-capable numbers to use as caller-ID (From). Omit to auto-select.
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof OutboundCallRequest
|
|
40
|
+
*/
|
|
41
|
+
from_phone_number_id?: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the OutboundCallRequest interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfOutboundCallRequest(value: object): value is OutboundCallRequest;
|
|
47
|
+
export declare function OutboundCallRequestFromJSON(json: any): OutboundCallRequest;
|
|
48
|
+
export declare function OutboundCallRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): OutboundCallRequest;
|
|
49
|
+
export declare function OutboundCallRequestToJSON(json: any): OutboundCallRequest;
|
|
50
|
+
export declare function OutboundCallRequestToJSONTyped(value?: OutboundCallRequest | null, ignoreDiscriminator?: boolean): any;
|