@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/src/models/CallUpdate.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Unified REST API for Tivadar AI Voice Agents platform
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
8
|
+
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -14,31 +14,31 @@
|
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
*
|
|
18
18
|
* @export
|
|
19
19
|
* @interface CallUpdate
|
|
20
20
|
*/
|
|
21
21
|
export interface CallUpdate {
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
*
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof CallUpdate
|
|
26
26
|
*/
|
|
27
27
|
voice_agent_id?: string | null;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
*
|
|
30
30
|
* @type {{ [key: string]: any; }}
|
|
31
31
|
* @memberof CallUpdate
|
|
32
32
|
*/
|
|
33
33
|
data?: { [key: string]: any; } | null;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
*
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof CallUpdate
|
|
38
38
|
*/
|
|
39
39
|
caller?: string | null;
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
*
|
|
42
42
|
* @type {boolean}
|
|
43
43
|
* @memberof CallUpdate
|
|
44
44
|
*/
|
|
@@ -61,7 +61,7 @@ export function CallUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
61
61
|
return json;
|
|
62
62
|
}
|
|
63
63
|
return {
|
|
64
|
-
|
|
64
|
+
|
|
65
65
|
'voice_agent_id': json['voice_agent_id'] == null ? undefined : json['voice_agent_id'],
|
|
66
66
|
'data': json['data'] == null ? undefined : json['data'],
|
|
67
67
|
'caller': json['caller'] == null ? undefined : json['caller'],
|
|
@@ -79,7 +79,7 @@ export function CallUpdateToJSONTyped(value?: CallUpdate | null, ignoreDiscrimin
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
return {
|
|
82
|
-
|
|
82
|
+
|
|
83
83
|
'voice_agent_id': value['voice_agent_id'],
|
|
84
84
|
'data': value['data'],
|
|
85
85
|
'caller': value['caller'],
|
package/src/models/OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest.ts
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Mock caller phone number for sandbox testing
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest
|
|
26
|
+
*/
|
|
27
|
+
caller_id?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfOrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest(value: object): value is OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequestFromJSON(json: any): OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest {
|
|
38
|
+
return OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequestFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'caller_id': json['caller_id'] == null ? undefined : json['caller_id'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequestToJSON(json: any): OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest {
|
|
52
|
+
return OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequestToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequestToJSONTyped(value?: OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'caller_id': value['caller_id'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PhoneNumberCreate
|
|
20
|
+
*/
|
|
21
|
+
export interface PhoneNumberCreate {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PhoneNumberCreate
|
|
26
|
+
*/
|
|
27
|
+
number: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the PhoneNumberCreate interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfPhoneNumberCreate(value: object): value is PhoneNumberCreate {
|
|
34
|
+
if (!('number' in value) || value['number'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function PhoneNumberCreateFromJSON(json: any): PhoneNumberCreate {
|
|
39
|
+
return PhoneNumberCreateFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function PhoneNumberCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): PhoneNumberCreate {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'number': json['number'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function PhoneNumberCreateToJSON(json: any): PhoneNumberCreate {
|
|
53
|
+
return PhoneNumberCreateToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function PhoneNumberCreateToJSONTyped(value?: PhoneNumberCreate | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'number': value['number'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
package/src/models/index.ts
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';
|