@l7mp/tivadar-ai-api-sdk 0.1.7 → 0.1.9
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 +4 -2
- package/dist/api-client.js +3 -1
- package/dist/apis/PlaygroundApi.d.ts +5 -4
- package/dist/apis/PlaygroundApi.js +2 -0
- package/dist/apis/SIPApi.d.ts +30 -5
- package/dist/apis/SIPApi.js +82 -5
- package/dist/esm/api-client.d.ts +4 -2
- package/dist/esm/api-client.js +3 -1
- package/dist/esm/apis/PlaygroundApi.d.ts +5 -4
- package/dist/esm/apis/PlaygroundApi.js +3 -1
- 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 +7 -2
- package/src/apis/PlaygroundApi.ts +10 -3
- 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/OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest.ts +65 -0
- package/src/models/PhoneNumberCreate.ts +66 -0
- package/src/models/index.ts +4 -0
|
@@ -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 time (HH:mm format, e.g. "09:00")
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CalendarMetadataBookingConstraints
|
|
28
|
+
*/
|
|
29
|
+
start_time?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Latest booking time (HH:mm format, e.g. "17:00")
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CalendarMetadataBookingConstraints
|
|
34
|
+
*/
|
|
35
|
+
end_time?: string;
|
|
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_time': json['start_time'] == null ? undefined : json['start_time'],
|
|
30
|
+
'end_time': json['end_time'] == null ? undefined : json['end_time'],
|
|
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_time': value['start_time'],
|
|
43
|
+
'end_time': value['end_time'],
|
|
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
|
}
|
|
@@ -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.
|
|
@@ -18,6 +18,7 @@ exports.CalendarCreateFromJSON = CalendarCreateFromJSON;
|
|
|
18
18
|
exports.CalendarCreateFromJSONTyped = CalendarCreateFromJSONTyped;
|
|
19
19
|
exports.CalendarCreateToJSON = CalendarCreateToJSON;
|
|
20
20
|
exports.CalendarCreateToJSONTyped = CalendarCreateToJSONTyped;
|
|
21
|
+
const CalendarMetadata_1 = require("./CalendarMetadata");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the CalendarCreate interface.
|
|
23
24
|
*/
|
|
@@ -35,6 +36,7 @@ function CalendarCreateFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
36
|
}
|
|
36
37
|
return {
|
|
37
38
|
'voice_agent_id': json['voice_agent_id'],
|
|
39
|
+
'metadata': json['metadata'] == null ? undefined : (0, CalendarMetadata_1.CalendarMetadataFromJSON)(json['metadata']),
|
|
38
40
|
};
|
|
39
41
|
}
|
|
40
42
|
function CalendarCreateToJSON(json) {
|
|
@@ -46,5 +48,6 @@ function CalendarCreateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
46
48
|
}
|
|
47
49
|
return {
|
|
48
50
|
'voice_agent_id': value['voice_agent_id'],
|
|
51
|
+
'metadata': (0, CalendarMetadata_1.CalendarMetadataToJSON)(value['metadata']),
|
|
49
52
|
};
|
|
50
53
|
}
|
|
@@ -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,45 @@
|
|
|
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.instanceOfCalendarMetadata = instanceOfCalendarMetadata;
|
|
17
|
+
exports.CalendarMetadataFromJSON = CalendarMetadataFromJSON;
|
|
18
|
+
exports.CalendarMetadataFromJSONTyped = CalendarMetadataFromJSONTyped;
|
|
19
|
+
exports.CalendarMetadataToJSON = CalendarMetadataToJSON;
|
|
20
|
+
exports.CalendarMetadataToJSONTyped = CalendarMetadataToJSONTyped;
|
|
21
|
+
const CalendarMetadataBookingConstraints_1 = require("./CalendarMetadataBookingConstraints");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the CalendarMetadata interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfCalendarMetadata(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function CalendarMetadataFromJSON(json) {
|
|
29
|
+
return CalendarMetadataFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function CalendarMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return Object.assign(Object.assign({}, json), { 'booking_constraints': json['booking_constraints'] == null ? undefined : (0, CalendarMetadataBookingConstraints_1.CalendarMetadataBookingConstraintsFromJSON)(json['booking_constraints']) });
|
|
36
|
+
}
|
|
37
|
+
function CalendarMetadataToJSON(json) {
|
|
38
|
+
return CalendarMetadataToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function CalendarMetadataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return Object.assign(Object.assign({}, value), { 'booking_constraints': (0, CalendarMetadataBookingConstraints_1.CalendarMetadataBookingConstraintsToJSON)(value['booking_constraints']) });
|
|
45
|
+
}
|
|
@@ -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 time (HH:mm format, e.g. "09:00")
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CalendarMetadataBookingConstraints
|
|
28
|
+
*/
|
|
29
|
+
start_time?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Latest booking time (HH:mm format, e.g. "17:00")
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CalendarMetadataBookingConstraints
|
|
34
|
+
*/
|
|
35
|
+
end_time?: string;
|
|
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;
|