@l7mp/tivadar-ai-api-sdk 0.1.6 → 0.1.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/README.md +21 -2
- package/dist/api-client.d.ts +5 -3
- package/dist/api-client.js +4 -2
- package/dist/apis/PlaygroundApi.d.ts +5 -4
- package/dist/apis/PlaygroundApi.js +2 -0
- package/dist/apis/RecordingsApi.d.ts +6 -6
- package/dist/apis/RecordingsApi.js +10 -10
- package/dist/apis/SIPApi.d.ts +30 -5
- package/dist/apis/SIPApi.js +82 -5
- package/dist/esm/api-client.d.ts +5 -3
- package/dist/esm/api-client.js +4 -2
- package/dist/esm/apis/PlaygroundApi.d.ts +5 -4
- package/dist/esm/apis/PlaygroundApi.js +3 -1
- package/dist/esm/apis/RecordingsApi.d.ts +6 -6
- package/dist/esm/apis/RecordingsApi.js +10 -10
- package/dist/esm/apis/SIPApi.d.ts +30 -5
- package/dist/esm/apis/SIPApi.js +83 -6
- package/dist/esm/models/Calendar.d.ts +7 -0
- package/dist/esm/models/Calendar.js +3 -0
- package/dist/esm/models/CalendarCreate.d.ts +7 -0
- package/dist/esm/models/CalendarCreate.js +3 -0
- package/dist/esm/models/CalendarMetadata.d.ts +34 -0
- package/dist/esm/models/CalendarMetadata.js +38 -0
- package/dist/esm/models/CalendarMetadataBookingConstraints.d.ts +44 -0
- package/dist/esm/models/CalendarMetadataBookingConstraints.js +45 -0
- package/dist/esm/models/CalendarUpdate.d.ts +7 -0
- package/dist/esm/models/CalendarUpdate.js +3 -0
- package/dist/esm/models/OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest.d.ts +32 -0
- package/dist/esm/models/OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest.js +41 -0
- package/dist/esm/models/PhoneNumberCreate.d.ts +32 -0
- package/dist/esm/models/PhoneNumberCreate.js +43 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/models/Calendar.d.ts +7 -0
- package/dist/models/Calendar.js +3 -0
- package/dist/models/CalendarCreate.d.ts +7 -0
- package/dist/models/CalendarCreate.js +3 -0
- package/dist/models/CalendarMetadata.d.ts +34 -0
- package/dist/models/CalendarMetadata.js +45 -0
- package/dist/models/CalendarMetadataBookingConstraints.d.ts +44 -0
- package/dist/models/CalendarMetadataBookingConstraints.js +52 -0
- package/dist/models/CalendarUpdate.d.ts +7 -0
- package/dist/models/CalendarUpdate.js +3 -0
- package/dist/models/OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest.d.ts +32 -0
- package/dist/models/OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest.js +48 -0
- package/dist/models/PhoneNumberCreate.d.ts +32 -0
- package/dist/models/PhoneNumberCreate.js +50 -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 +9 -4
- package/src/apis/CallsApi.ts +2 -2
- package/src/apis/PlaygroundApi.ts +10 -3
- package/src/apis/RecordingsApi.ts +13 -13
- package/src/apis/SIPApi.ts +115 -5
- package/src/models/Calendar.ts +16 -0
- package/src/models/CalendarCreate.ts +16 -0
- package/src/models/CalendarMetadata.ts +76 -0
- package/src/models/CalendarMetadataBookingConstraints.ts +81 -0
- package/src/models/CalendarUpdate.ts +16 -0
- package/src/models/Call.ts +10 -10
- package/src/models/CallCreate.ts +8 -8
- package/src/models/CallUpdate.ts +8 -8
- package/src/models/OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest.ts +65 -0
- package/src/models/PhoneNumberCreate.ts +66 -0
- package/src/models/index.ts +4 -0
package/dist/esm/apis/SIPApi.js
CHANGED
|
@@ -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 { DispatchRuleCreateToJSON, OrganizationsOrganizationIdSipDispatchRulesPost200ResponseFromJSON, PhoneNumberFromJSON, SipTrunkCreateToJSON, SipTrunkWithAgentFromJSON, } from '../models/index';
|
|
24
|
+
import { DispatchRuleCreateToJSON, OrganizationsOrganizationIdSipDispatchRulesPost200ResponseFromJSON, PhoneNumberFromJSON, PhoneNumberCreateToJSON, SipTrunkCreateToJSON, SipTrunkWithAgentFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -228,11 +228,14 @@ export class SIPApi extends runtime.BaseAPI {
|
|
|
228
228
|
});
|
|
229
229
|
}
|
|
230
230
|
/**
|
|
231
|
-
* List
|
|
231
|
+
* List phone numbers
|
|
232
232
|
*/
|
|
233
|
-
phoneNumbersGetRaw(initOverrides) {
|
|
233
|
+
phoneNumbersGetRaw(requestParameters, initOverrides) {
|
|
234
234
|
return __awaiter(this, void 0, void 0, function* () {
|
|
235
235
|
const queryParameters = {};
|
|
236
|
+
if (requestParameters['includeAssigned'] != null) {
|
|
237
|
+
queryParameters['includeAssigned'] = requestParameters['includeAssigned'];
|
|
238
|
+
}
|
|
236
239
|
const headerParameters = {};
|
|
237
240
|
if (this.configuration && this.configuration.accessToken) {
|
|
238
241
|
const token = this.configuration.accessToken;
|
|
@@ -252,11 +255,85 @@ export class SIPApi extends runtime.BaseAPI {
|
|
|
252
255
|
});
|
|
253
256
|
}
|
|
254
257
|
/**
|
|
255
|
-
* List
|
|
258
|
+
* List phone numbers
|
|
259
|
+
*/
|
|
260
|
+
phoneNumbersGet() {
|
|
261
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
262
|
+
const response = yield this.phoneNumbersGetRaw(requestParameters, initOverrides);
|
|
263
|
+
return yield response.value();
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* Delete a phone number
|
|
268
|
+
*/
|
|
269
|
+
phoneNumbersPhoneNumberIdDeleteRaw(requestParameters, initOverrides) {
|
|
270
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
271
|
+
if (requestParameters['phoneNumberId'] == null) {
|
|
272
|
+
throw new runtime.RequiredError('phoneNumberId', 'Required parameter "phoneNumberId" was null or undefined when calling phoneNumbersPhoneNumberIdDelete().');
|
|
273
|
+
}
|
|
274
|
+
const queryParameters = {};
|
|
275
|
+
const headerParameters = {};
|
|
276
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
277
|
+
const token = this.configuration.accessToken;
|
|
278
|
+
const tokenString = yield token("bearerAuth", []);
|
|
279
|
+
if (tokenString) {
|
|
280
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
let urlPath = `/phone-numbers/{phoneNumberId}`;
|
|
284
|
+
urlPath = urlPath.replace(`{${"phoneNumberId"}}`, encodeURIComponent(String(requestParameters['phoneNumberId'])));
|
|
285
|
+
const response = yield this.request({
|
|
286
|
+
path: urlPath,
|
|
287
|
+
method: 'DELETE',
|
|
288
|
+
headers: headerParameters,
|
|
289
|
+
query: queryParameters,
|
|
290
|
+
}, initOverrides);
|
|
291
|
+
return new runtime.VoidApiResponse(response);
|
|
292
|
+
});
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* Delete a phone number
|
|
296
|
+
*/
|
|
297
|
+
phoneNumbersPhoneNumberIdDelete(requestParameters, initOverrides) {
|
|
298
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
299
|
+
yield this.phoneNumbersPhoneNumberIdDeleteRaw(requestParameters, initOverrides);
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* Create a phone number
|
|
304
|
+
*/
|
|
305
|
+
phoneNumbersPostRaw(requestParameters, initOverrides) {
|
|
306
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
307
|
+
if (requestParameters['phoneNumberCreate'] == null) {
|
|
308
|
+
throw new runtime.RequiredError('phoneNumberCreate', 'Required parameter "phoneNumberCreate" was null or undefined when calling phoneNumbersPost().');
|
|
309
|
+
}
|
|
310
|
+
const queryParameters = {};
|
|
311
|
+
const headerParameters = {};
|
|
312
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
313
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
314
|
+
const token = this.configuration.accessToken;
|
|
315
|
+
const tokenString = yield token("bearerAuth", []);
|
|
316
|
+
if (tokenString) {
|
|
317
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
let urlPath = `/phone-numbers`;
|
|
321
|
+
const response = yield this.request({
|
|
322
|
+
path: urlPath,
|
|
323
|
+
method: 'POST',
|
|
324
|
+
headers: headerParameters,
|
|
325
|
+
query: queryParameters,
|
|
326
|
+
body: PhoneNumberCreateToJSON(requestParameters['phoneNumberCreate']),
|
|
327
|
+
}, initOverrides);
|
|
328
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PhoneNumberFromJSON(jsonValue));
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* Create a phone number
|
|
256
333
|
*/
|
|
257
|
-
|
|
334
|
+
phoneNumbersPost(requestParameters, initOverrides) {
|
|
258
335
|
return __awaiter(this, void 0, void 0, function* () {
|
|
259
|
-
const response = yield this.
|
|
336
|
+
const response = yield this.phoneNumbersPostRaw(requestParameters, initOverrides);
|
|
260
337
|
return yield response.value();
|
|
261
338
|
});
|
|
262
339
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { CalendarMetadata } from './CalendarMetadata';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -45,6 +46,12 @@ export interface Calendar {
|
|
|
45
46
|
* @memberof Calendar
|
|
46
47
|
*/
|
|
47
48
|
calendar_url?: string | null;
|
|
49
|
+
/**
|
|
50
|
+
* Optional metadata including booking constraints
|
|
51
|
+
* @type {CalendarMetadata}
|
|
52
|
+
* @memberof Calendar
|
|
53
|
+
*/
|
|
54
|
+
metadata?: CalendarMetadata | null;
|
|
48
55
|
/**
|
|
49
56
|
*
|
|
50
57
|
* @type {Date}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { CalendarMetadataFromJSON, CalendarMetadataToJSON, } from './CalendarMetadata';
|
|
14
15
|
/**
|
|
15
16
|
* Check if a given object implements the Calendar interface.
|
|
16
17
|
*/
|
|
@@ -40,6 +41,7 @@ export function CalendarFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
41
|
'agent_name': json['agent_name'],
|
|
41
42
|
'enabled': json['enabled'],
|
|
42
43
|
'calendar_url': json['calendar_url'] == null ? undefined : json['calendar_url'],
|
|
44
|
+
'metadata': json['metadata'] == null ? undefined : CalendarMetadataFromJSON(json['metadata']),
|
|
43
45
|
'created_at': (new Date(json['created_at'])),
|
|
44
46
|
};
|
|
45
47
|
}
|
|
@@ -56,6 +58,7 @@ export function CalendarToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
56
58
|
'agent_name': value['agent_name'],
|
|
57
59
|
'enabled': value['enabled'],
|
|
58
60
|
'calendar_url': value['calendar_url'],
|
|
61
|
+
'metadata': CalendarMetadataToJSON(value['metadata']),
|
|
59
62
|
'created_at': value['created_at'].toISOString(),
|
|
60
63
|
};
|
|
61
64
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { CalendarMetadata } from './CalendarMetadata';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -21,6 +22,12 @@ export interface CalendarCreate {
|
|
|
21
22
|
* @memberof CalendarCreate
|
|
22
23
|
*/
|
|
23
24
|
voice_agent_id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {CalendarMetadata}
|
|
28
|
+
* @memberof CalendarCreate
|
|
29
|
+
*/
|
|
30
|
+
metadata?: CalendarMetadata | null;
|
|
24
31
|
}
|
|
25
32
|
/**
|
|
26
33
|
* Check if a given object implements the CalendarCreate interface.
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { CalendarMetadataFromJSON, CalendarMetadataToJSON, } from './CalendarMetadata';
|
|
14
15
|
/**
|
|
15
16
|
* Check if a given object implements the CalendarCreate interface.
|
|
16
17
|
*/
|
|
@@ -28,6 +29,7 @@ export function CalendarCreateFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
29
|
}
|
|
29
30
|
return {
|
|
30
31
|
'voice_agent_id': json['voice_agent_id'],
|
|
32
|
+
'metadata': json['metadata'] == null ? undefined : CalendarMetadataFromJSON(json['metadata']),
|
|
31
33
|
};
|
|
32
34
|
}
|
|
33
35
|
export function CalendarCreateToJSON(json) {
|
|
@@ -39,5 +41,6 @@ export function CalendarCreateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
39
41
|
}
|
|
40
42
|
return {
|
|
41
43
|
'voice_agent_id': value['voice_agent_id'],
|
|
44
|
+
'metadata': CalendarMetadataToJSON(value['metadata']),
|
|
42
45
|
};
|
|
43
46
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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 { CalendarMetadataBookingConstraints } from './CalendarMetadataBookingConstraints';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CalendarMetadata
|
|
17
|
+
*/
|
|
18
|
+
export interface CalendarMetadata {
|
|
19
|
+
[key: string]: any | any;
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {CalendarMetadataBookingConstraints}
|
|
23
|
+
* @memberof CalendarMetadata
|
|
24
|
+
*/
|
|
25
|
+
booking_constraints?: CalendarMetadataBookingConstraints;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Check if a given object implements the CalendarMetadata interface.
|
|
29
|
+
*/
|
|
30
|
+
export declare function instanceOfCalendarMetadata(value: object): value is CalendarMetadata;
|
|
31
|
+
export declare function CalendarMetadataFromJSON(json: any): CalendarMetadata;
|
|
32
|
+
export declare function CalendarMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): CalendarMetadata;
|
|
33
|
+
export declare function CalendarMetadataToJSON(json: any): CalendarMetadata;
|
|
34
|
+
export declare function CalendarMetadataToJSONTyped(value?: CalendarMetadata | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Tivadar AI Backend API
|
|
5
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { CalendarMetadataBookingConstraintsFromJSON, CalendarMetadataBookingConstraintsToJSON, } from './CalendarMetadataBookingConstraints';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the CalendarMetadata interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfCalendarMetadata(value) {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
export function CalendarMetadataFromJSON(json) {
|
|
22
|
+
return CalendarMetadataFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
export function CalendarMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if (json == null) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
return Object.assign(Object.assign({}, json), { 'booking_constraints': json['booking_constraints'] == null ? undefined : CalendarMetadataBookingConstraintsFromJSON(json['booking_constraints']) });
|
|
29
|
+
}
|
|
30
|
+
export function CalendarMetadataToJSON(json) {
|
|
31
|
+
return CalendarMetadataToJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function CalendarMetadataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
34
|
+
if (value == null) {
|
|
35
|
+
return value;
|
|
36
|
+
}
|
|
37
|
+
return Object.assign(Object.assign({}, value), { 'booking_constraints': CalendarMetadataBookingConstraintsToJSON(value['booking_constraints']) });
|
|
38
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 CalendarMetadataBookingConstraints
|
|
16
|
+
*/
|
|
17
|
+
export interface CalendarMetadataBookingConstraints {
|
|
18
|
+
/**
|
|
19
|
+
* Days of the week (0=Sunday, 6=Saturday)
|
|
20
|
+
* @type {Array<number>}
|
|
21
|
+
* @memberof CalendarMetadataBookingConstraints
|
|
22
|
+
*/
|
|
23
|
+
allowed_days?: Array<number>;
|
|
24
|
+
/**
|
|
25
|
+
* Earliest booking hour (0-23)
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof CalendarMetadataBookingConstraints
|
|
28
|
+
*/
|
|
29
|
+
start_hour?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Latest booking hour (0-23)
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof CalendarMetadataBookingConstraints
|
|
34
|
+
*/
|
|
35
|
+
end_hour?: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the CalendarMetadataBookingConstraints interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfCalendarMetadataBookingConstraints(value: object): value is CalendarMetadataBookingConstraints;
|
|
41
|
+
export declare function CalendarMetadataBookingConstraintsFromJSON(json: any): CalendarMetadataBookingConstraints;
|
|
42
|
+
export declare function CalendarMetadataBookingConstraintsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CalendarMetadataBookingConstraints;
|
|
43
|
+
export declare function CalendarMetadataBookingConstraintsToJSON(json: any): CalendarMetadataBookingConstraints;
|
|
44
|
+
export declare function CalendarMetadataBookingConstraintsToJSONTyped(value?: CalendarMetadataBookingConstraints | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
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 CalendarMetadataBookingConstraints interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfCalendarMetadataBookingConstraints(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function CalendarMetadataBookingConstraintsFromJSON(json) {
|
|
21
|
+
return CalendarMetadataBookingConstraintsFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function CalendarMetadataBookingConstraintsFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'allowed_days': json['allowed_days'] == null ? undefined : json['allowed_days'],
|
|
29
|
+
'start_hour': json['start_hour'] == null ? undefined : json['start_hour'],
|
|
30
|
+
'end_hour': json['end_hour'] == null ? undefined : json['end_hour'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function CalendarMetadataBookingConstraintsToJSON(json) {
|
|
34
|
+
return CalendarMetadataBookingConstraintsToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function CalendarMetadataBookingConstraintsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'allowed_days': value['allowed_days'],
|
|
42
|
+
'start_hour': value['start_hour'],
|
|
43
|
+
'end_hour': value['end_hour'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { CalendarMetadata } from './CalendarMetadata';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -21,6 +22,12 @@ export interface CalendarUpdate {
|
|
|
21
22
|
* @memberof CalendarUpdate
|
|
22
23
|
*/
|
|
23
24
|
voice_agent_id?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {CalendarMetadata}
|
|
28
|
+
* @memberof CalendarUpdate
|
|
29
|
+
*/
|
|
30
|
+
metadata?: CalendarMetadata | null;
|
|
24
31
|
}
|
|
25
32
|
/**
|
|
26
33
|
* Check if a given object implements the CalendarUpdate interface.
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { CalendarMetadataFromJSON, CalendarMetadataToJSON, } from './CalendarMetadata';
|
|
14
15
|
/**
|
|
15
16
|
* Check if a given object implements the CalendarUpdate interface.
|
|
16
17
|
*/
|
|
@@ -26,6 +27,7 @@ export function CalendarUpdateFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
26
27
|
}
|
|
27
28
|
return {
|
|
28
29
|
'voice_agent_id': json['voice_agent_id'] == null ? undefined : json['voice_agent_id'],
|
|
30
|
+
'metadata': json['metadata'] == null ? undefined : CalendarMetadataFromJSON(json['metadata']),
|
|
29
31
|
};
|
|
30
32
|
}
|
|
31
33
|
export function CalendarUpdateToJSON(json) {
|
|
@@ -37,5 +39,6 @@ export function CalendarUpdateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
37
39
|
}
|
|
38
40
|
return {
|
|
39
41
|
'voice_agent_id': value['voice_agent_id'],
|
|
42
|
+
'metadata': CalendarMetadataToJSON(value['metadata']),
|
|
40
43
|
};
|
|
41
44
|
}
|
|
@@ -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 OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Mock caller phone number for sandbox testing
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest
|
|
22
|
+
*/
|
|
23
|
+
caller_id?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfOrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest(value: object): value is OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest;
|
|
29
|
+
export declare function OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequestFromJSON(json: any): OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest;
|
|
30
|
+
export declare function OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest;
|
|
31
|
+
export declare function OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequestToJSON(json: any): OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest;
|
|
32
|
+
export declare function OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequestToJSONTyped(value?: OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest | null, ignoreDiscriminator?: boolean): any;
|
package/dist/esm/models/OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest.js
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
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 OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfOrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequestFromJSON(json) {
|
|
21
|
+
return OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequestFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'caller_id': json['caller_id'] == null ? undefined : json['caller_id'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export function OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequestToJSON(json) {
|
|
32
|
+
return OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequestToJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
35
|
+
if (value == null) {
|
|
36
|
+
return value;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'caller_id': value['caller_id'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
@@ -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 PhoneNumberCreate
|
|
16
|
+
*/
|
|
17
|
+
export interface PhoneNumberCreate {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PhoneNumberCreate
|
|
22
|
+
*/
|
|
23
|
+
number: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the PhoneNumberCreate interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfPhoneNumberCreate(value: object): value is PhoneNumberCreate;
|
|
29
|
+
export declare function PhoneNumberCreateFromJSON(json: any): PhoneNumberCreate;
|
|
30
|
+
export declare function PhoneNumberCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): PhoneNumberCreate;
|
|
31
|
+
export declare function PhoneNumberCreateToJSON(json: any): PhoneNumberCreate;
|
|
32
|
+
export declare function PhoneNumberCreateToJSONTyped(value?: PhoneNumberCreate | 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 PhoneNumberCreate interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPhoneNumberCreate(value) {
|
|
18
|
+
if (!('number' in value) || value['number'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function PhoneNumberCreateFromJSON(json) {
|
|
23
|
+
return PhoneNumberCreateFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function PhoneNumberCreateFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'number': json['number'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function PhoneNumberCreateToJSON(json) {
|
|
34
|
+
return PhoneNumberCreateToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function PhoneNumberCreateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'number': value['number'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -7,6 +7,8 @@ export * from './CalendarEventCreate';
|
|
|
7
7
|
export * from './CalendarEventListResponse';
|
|
8
8
|
export * from './CalendarEventUpdate';
|
|
9
9
|
export * from './CalendarListResponse';
|
|
10
|
+
export * from './CalendarMetadata';
|
|
11
|
+
export * from './CalendarMetadataBookingConstraints';
|
|
10
12
|
export * from './CalendarUpdate';
|
|
11
13
|
export * from './Call';
|
|
12
14
|
export * from './CallCreate';
|
|
@@ -40,10 +42,12 @@ export * from './OrganizationsOrganizationIdEmbeddingProvidersGet200ResponseInne
|
|
|
40
42
|
export * from './OrganizationsOrganizationIdLlmProvidersGet200ResponseInner';
|
|
41
43
|
export * from './OrganizationsOrganizationIdSipDispatchRulesPost200Response';
|
|
42
44
|
export * from './OrganizationsOrganizationIdVoiceAgentsBasicGet200ResponseInner';
|
|
45
|
+
export * from './OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest';
|
|
43
46
|
export * from './PauseSubscriptionRequest';
|
|
44
47
|
export * from './PauseSubscriptionResponse';
|
|
45
48
|
export * from './PauseSubscriptionResponsePauseCollection';
|
|
46
49
|
export * from './PhoneNumber';
|
|
50
|
+
export * from './PhoneNumberCreate';
|
|
47
51
|
export * from './RagConfig';
|
|
48
52
|
export * from './RagConfigCreate';
|
|
49
53
|
export * from './RagDocument';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -9,6 +9,8 @@ export * from './CalendarEventCreate';
|
|
|
9
9
|
export * from './CalendarEventListResponse';
|
|
10
10
|
export * from './CalendarEventUpdate';
|
|
11
11
|
export * from './CalendarListResponse';
|
|
12
|
+
export * from './CalendarMetadata';
|
|
13
|
+
export * from './CalendarMetadataBookingConstraints';
|
|
12
14
|
export * from './CalendarUpdate';
|
|
13
15
|
export * from './Call';
|
|
14
16
|
export * from './CallCreate';
|
|
@@ -42,10 +44,12 @@ export * from './OrganizationsOrganizationIdEmbeddingProvidersGet200ResponseInne
|
|
|
42
44
|
export * from './OrganizationsOrganizationIdLlmProvidersGet200ResponseInner';
|
|
43
45
|
export * from './OrganizationsOrganizationIdSipDispatchRulesPost200Response';
|
|
44
46
|
export * from './OrganizationsOrganizationIdVoiceAgentsBasicGet200ResponseInner';
|
|
47
|
+
export * from './OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest';
|
|
45
48
|
export * from './PauseSubscriptionRequest';
|
|
46
49
|
export * from './PauseSubscriptionResponse';
|
|
47
50
|
export * from './PauseSubscriptionResponsePauseCollection';
|
|
48
51
|
export * from './PhoneNumber';
|
|
52
|
+
export * from './PhoneNumberCreate';
|
|
49
53
|
export * from './RagConfig';
|
|
50
54
|
export * from './RagConfigCreate';
|
|
51
55
|
export * from './RagDocument';
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { CalendarMetadata } from './CalendarMetadata';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -45,6 +46,12 @@ export interface Calendar {
|
|
|
45
46
|
* @memberof Calendar
|
|
46
47
|
*/
|
|
47
48
|
calendar_url?: string | null;
|
|
49
|
+
/**
|
|
50
|
+
* Optional metadata including booking constraints
|
|
51
|
+
* @type {CalendarMetadata}
|
|
52
|
+
* @memberof Calendar
|
|
53
|
+
*/
|
|
54
|
+
metadata?: CalendarMetadata | null;
|
|
48
55
|
/**
|
|
49
56
|
*
|
|
50
57
|
* @type {Date}
|
package/dist/models/Calendar.js
CHANGED
|
@@ -18,6 +18,7 @@ exports.CalendarFromJSON = CalendarFromJSON;
|
|
|
18
18
|
exports.CalendarFromJSONTyped = CalendarFromJSONTyped;
|
|
19
19
|
exports.CalendarToJSON = CalendarToJSON;
|
|
20
20
|
exports.CalendarToJSONTyped = CalendarToJSONTyped;
|
|
21
|
+
const CalendarMetadata_1 = require("./CalendarMetadata");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the Calendar interface.
|
|
23
24
|
*/
|
|
@@ -47,6 +48,7 @@ function CalendarFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
48
|
'agent_name': json['agent_name'],
|
|
48
49
|
'enabled': json['enabled'],
|
|
49
50
|
'calendar_url': json['calendar_url'] == null ? undefined : json['calendar_url'],
|
|
51
|
+
'metadata': json['metadata'] == null ? undefined : (0, CalendarMetadata_1.CalendarMetadataFromJSON)(json['metadata']),
|
|
50
52
|
'created_at': (new Date(json['created_at'])),
|
|
51
53
|
};
|
|
52
54
|
}
|
|
@@ -63,6 +65,7 @@ function CalendarToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
63
65
|
'agent_name': value['agent_name'],
|
|
64
66
|
'enabled': value['enabled'],
|
|
65
67
|
'calendar_url': value['calendar_url'],
|
|
68
|
+
'metadata': (0, CalendarMetadata_1.CalendarMetadataToJSON)(value['metadata']),
|
|
66
69
|
'created_at': value['created_at'].toISOString(),
|
|
67
70
|
};
|
|
68
71
|
}
|