@l7mp/tivadar-ai-api-sdk 0.2.16 → 0.2.18
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 +7 -0
- package/dist/api-client.js +7 -0
- package/dist/apis/LiveCallsApi.d.ts +45 -0
- package/dist/apis/LiveCallsApi.js +115 -0
- package/dist/apis/OutboundCallsApi.d.ts +14 -1
- package/dist/apis/OutboundCallsApi.js +39 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/api-client.d.ts +7 -0
- package/dist/esm/api-client.js +7 -0
- package/dist/esm/apis/LiveCallsApi.d.ts +45 -0
- package/dist/esm/apis/LiveCallsApi.js +111 -0
- package/dist/esm/apis/OutboundCallsApi.d.ts +14 -1
- package/dist/esm/apis/OutboundCallsApi.js +40 -1
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/LiveCall.d.ts +57 -0
- package/dist/esm/models/LiveCall.js +50 -0
- package/dist/esm/models/LiveCallParticipant.d.ts +95 -0
- package/dist/esm/models/LiveCallParticipant.js +81 -0
- package/dist/esm/models/LiveCallToken.d.ts +44 -0
- package/dist/esm/models/LiveCallToken.js +45 -0
- package/dist/esm/models/OutboundCallRequest.d.ts +6 -0
- package/dist/esm/models/OutboundCallRequest.js +2 -0
- package/dist/esm/models/OutboundNumber.d.ts +38 -0
- package/dist/esm/models/OutboundNumber.js +43 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/models/LiveCall.d.ts +57 -0
- package/dist/models/LiveCall.js +57 -0
- package/dist/models/LiveCallParticipant.d.ts +95 -0
- package/dist/models/LiveCallParticipant.js +89 -0
- package/dist/models/LiveCallToken.d.ts +44 -0
- package/dist/models/LiveCallToken.js +52 -0
- package/dist/models/OutboundCallRequest.d.ts +6 -0
- package/dist/models/OutboundCallRequest.js +2 -0
- package/dist/models/OutboundNumber.d.ts +38 -0
- package/dist/models/OutboundNumber.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 +14 -0
- package/src/apis/LiveCallsApi.ts +144 -0
- package/src/apis/OutboundCallsApi.ts +54 -0
- package/src/apis/index.ts +1 -0
- package/src/models/LiveCall.ts +105 -0
- package/src/models/LiveCallParticipant.ts +143 -0
- package/src/models/LiveCallToken.ts +81 -0
- package/src/models/OutboundCallRequest.ts +8 -0
- package/src/models/OutboundNumber.ts +73 -0
- package/src/models/index.ts +4 -0
|
@@ -17,14 +17,21 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
OutboundCall,
|
|
19
19
|
OutboundCallRequest,
|
|
20
|
+
OutboundNumber,
|
|
20
21
|
} from '../models/index';
|
|
21
22
|
import {
|
|
22
23
|
OutboundCallFromJSON,
|
|
23
24
|
OutboundCallToJSON,
|
|
24
25
|
OutboundCallRequestFromJSON,
|
|
25
26
|
OutboundCallRequestToJSON,
|
|
27
|
+
OutboundNumberFromJSON,
|
|
28
|
+
OutboundNumberToJSON,
|
|
26
29
|
} from '../models/index';
|
|
27
30
|
|
|
31
|
+
export interface OrganizationsOrganizationIdOutboundCallsNumbersGetRequest {
|
|
32
|
+
organizationId: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
28
35
|
export interface OrganizationsOrganizationIdOutboundCallsPostRequest {
|
|
29
36
|
organizationId: string;
|
|
30
37
|
outboundCallRequest: OutboundCallRequest;
|
|
@@ -35,6 +42,53 @@ export interface OrganizationsOrganizationIdOutboundCallsPostRequest {
|
|
|
35
42
|
*/
|
|
36
43
|
export class OutboundCallsApi extends runtime.BaseAPI {
|
|
37
44
|
|
|
45
|
+
/**
|
|
46
|
+
* 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.
|
|
47
|
+
* List the organization\'s outbound-capable caller-ID numbers
|
|
48
|
+
*/
|
|
49
|
+
async organizationsOrganizationIdOutboundCallsNumbersGetRaw(requestParameters: OrganizationsOrganizationIdOutboundCallsNumbersGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<OutboundNumber>>> {
|
|
50
|
+
if (requestParameters['organizationId'] == null) {
|
|
51
|
+
throw new runtime.RequiredError(
|
|
52
|
+
'organizationId',
|
|
53
|
+
'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdOutboundCallsNumbersGet().'
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
const queryParameters: any = {};
|
|
58
|
+
|
|
59
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
60
|
+
|
|
61
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
62
|
+
const token = this.configuration.accessToken;
|
|
63
|
+
const tokenString = await token("bearerAuth", []);
|
|
64
|
+
|
|
65
|
+
if (tokenString) {
|
|
66
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
let urlPath = `/organizations/{organizationId}/outbound-calls/numbers`;
|
|
71
|
+
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
72
|
+
|
|
73
|
+
const response = await this.request({
|
|
74
|
+
path: urlPath,
|
|
75
|
+
method: 'GET',
|
|
76
|
+
headers: headerParameters,
|
|
77
|
+
query: queryParameters,
|
|
78
|
+
}, initOverrides);
|
|
79
|
+
|
|
80
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(OutboundNumberFromJSON));
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* 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.
|
|
85
|
+
* List the organization\'s outbound-capable caller-ID numbers
|
|
86
|
+
*/
|
|
87
|
+
async organizationsOrganizationIdOutboundCallsNumbersGet(requestParameters: OrganizationsOrganizationIdOutboundCallsNumbersGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<OutboundNumber>> {
|
|
88
|
+
const response = await this.organizationsOrganizationIdOutboundCallsNumbersGetRaw(requestParameters, initOverrides);
|
|
89
|
+
return await response.value();
|
|
90
|
+
}
|
|
91
|
+
|
|
38
92
|
/**
|
|
39
93
|
* 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).
|
|
40
94
|
* Place an outbound call with a voice agent
|
package/src/apis/index.ts
CHANGED
|
@@ -11,6 +11,7 @@ export * from './EmbeddingProvidersApi';
|
|
|
11
11
|
export * from './HistoryApi';
|
|
12
12
|
export * from './InvitationsApi';
|
|
13
13
|
export * from './LLMProvidersApi';
|
|
14
|
+
export * from './LiveCallsApi';
|
|
14
15
|
export * from './MembersApi';
|
|
15
16
|
export * from './NotificationsApi';
|
|
16
17
|
export * from './OrganizationsApi';
|
|
@@ -0,0 +1,105 @@
|
|
|
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
|
+
import type { LiveCallParticipant } from './LiveCallParticipant';
|
|
17
|
+
import {
|
|
18
|
+
LiveCallParticipantFromJSON,
|
|
19
|
+
LiveCallParticipantFromJSONTyped,
|
|
20
|
+
LiveCallParticipantToJSON,
|
|
21
|
+
LiveCallParticipantToJSONTyped,
|
|
22
|
+
} from './LiveCallParticipant';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface LiveCall
|
|
28
|
+
*/
|
|
29
|
+
export interface LiveCall {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof LiveCall
|
|
34
|
+
*/
|
|
35
|
+
room_name?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof LiveCall
|
|
40
|
+
*/
|
|
41
|
+
room_sid?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof LiveCall
|
|
46
|
+
*/
|
|
47
|
+
started_at?: Date | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof LiveCall
|
|
52
|
+
*/
|
|
53
|
+
num_participants?: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Array<LiveCallParticipant>}
|
|
57
|
+
* @memberof LiveCall
|
|
58
|
+
*/
|
|
59
|
+
participants?: Array<LiveCallParticipant>;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the LiveCall interface.
|
|
64
|
+
*/
|
|
65
|
+
export function instanceOfLiveCall(value: object): value is LiveCall {
|
|
66
|
+
return true;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function LiveCallFromJSON(json: any): LiveCall {
|
|
70
|
+
return LiveCallFromJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function LiveCallFromJSONTyped(json: any, ignoreDiscriminator: boolean): LiveCall {
|
|
74
|
+
if (json == null) {
|
|
75
|
+
return json;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'room_name': json['room_name'] == null ? undefined : json['room_name'],
|
|
80
|
+
'room_sid': json['room_sid'] == null ? undefined : json['room_sid'],
|
|
81
|
+
'started_at': json['started_at'] == null ? undefined : (new Date(json['started_at'])),
|
|
82
|
+
'num_participants': json['num_participants'] == null ? undefined : json['num_participants'],
|
|
83
|
+
'participants': json['participants'] == null ? undefined : ((json['participants'] as Array<any>).map(LiveCallParticipantFromJSON)),
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function LiveCallToJSON(json: any): LiveCall {
|
|
88
|
+
return LiveCallToJSONTyped(json, false);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function LiveCallToJSONTyped(value?: LiveCall | null, ignoreDiscriminator: boolean = false): any {
|
|
92
|
+
if (value == null) {
|
|
93
|
+
return value;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
return {
|
|
97
|
+
|
|
98
|
+
'room_name': value['room_name'],
|
|
99
|
+
'room_sid': value['room_sid'],
|
|
100
|
+
'started_at': value['started_at'] == null ? value['started_at'] : value['started_at'].toISOString(),
|
|
101
|
+
'num_participants': value['num_participants'],
|
|
102
|
+
'participants': value['participants'] == null ? undefined : ((value['participants'] as Array<any>).map(LiveCallParticipantToJSON)),
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
@@ -0,0 +1,143 @@
|
|
|
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 LiveCallParticipant
|
|
20
|
+
*/
|
|
21
|
+
export interface LiveCallParticipant {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof LiveCallParticipant
|
|
26
|
+
*/
|
|
27
|
+
identity?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof LiveCallParticipant
|
|
32
|
+
*/
|
|
33
|
+
name?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
* LiveKit participant kind.
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof LiveCallParticipant
|
|
38
|
+
*/
|
|
39
|
+
kind?: LiveCallParticipantKindEnum;
|
|
40
|
+
/**
|
|
41
|
+
* Interpreted role — sip→caller, agent→agent, standard→operator.
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof LiveCallParticipant
|
|
44
|
+
*/
|
|
45
|
+
role?: LiveCallParticipantRoleEnum;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof LiveCallParticipant
|
|
50
|
+
*/
|
|
51
|
+
state?: LiveCallParticipantStateEnum;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {Date}
|
|
55
|
+
* @memberof LiveCallParticipant
|
|
56
|
+
*/
|
|
57
|
+
joined_at?: Date | null;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export const LiveCallParticipantKindEnum = {
|
|
65
|
+
Standard: 'standard',
|
|
66
|
+
Sip: 'sip',
|
|
67
|
+
Agent: 'agent',
|
|
68
|
+
Ingress: 'ingress',
|
|
69
|
+
Egress: 'egress',
|
|
70
|
+
Unknown: 'unknown'
|
|
71
|
+
} as const;
|
|
72
|
+
export type LiveCallParticipantKindEnum = typeof LiveCallParticipantKindEnum[keyof typeof LiveCallParticipantKindEnum];
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* @export
|
|
76
|
+
*/
|
|
77
|
+
export const LiveCallParticipantRoleEnum = {
|
|
78
|
+
Caller: 'caller',
|
|
79
|
+
Agent: 'agent',
|
|
80
|
+
Operator: 'operator',
|
|
81
|
+
Other: 'other'
|
|
82
|
+
} as const;
|
|
83
|
+
export type LiveCallParticipantRoleEnum = typeof LiveCallParticipantRoleEnum[keyof typeof LiveCallParticipantRoleEnum];
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* @export
|
|
87
|
+
*/
|
|
88
|
+
export const LiveCallParticipantStateEnum = {
|
|
89
|
+
Joining: 'joining',
|
|
90
|
+
Joined: 'joined',
|
|
91
|
+
Active: 'active',
|
|
92
|
+
Disconnected: 'disconnected',
|
|
93
|
+
Unknown: 'unknown'
|
|
94
|
+
} as const;
|
|
95
|
+
export type LiveCallParticipantStateEnum = typeof LiveCallParticipantStateEnum[keyof typeof LiveCallParticipantStateEnum];
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Check if a given object implements the LiveCallParticipant interface.
|
|
100
|
+
*/
|
|
101
|
+
export function instanceOfLiveCallParticipant(value: object): value is LiveCallParticipant {
|
|
102
|
+
return true;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export function LiveCallParticipantFromJSON(json: any): LiveCallParticipant {
|
|
106
|
+
return LiveCallParticipantFromJSONTyped(json, false);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export function LiveCallParticipantFromJSONTyped(json: any, ignoreDiscriminator: boolean): LiveCallParticipant {
|
|
110
|
+
if (json == null) {
|
|
111
|
+
return json;
|
|
112
|
+
}
|
|
113
|
+
return {
|
|
114
|
+
|
|
115
|
+
'identity': json['identity'] == null ? undefined : json['identity'],
|
|
116
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
117
|
+
'kind': json['kind'] == null ? undefined : json['kind'],
|
|
118
|
+
'role': json['role'] == null ? undefined : json['role'],
|
|
119
|
+
'state': json['state'] == null ? undefined : json['state'],
|
|
120
|
+
'joined_at': json['joined_at'] == null ? undefined : (new Date(json['joined_at'])),
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export function LiveCallParticipantToJSON(json: any): LiveCallParticipant {
|
|
125
|
+
return LiveCallParticipantToJSONTyped(json, false);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export function LiveCallParticipantToJSONTyped(value?: LiveCallParticipant | null, ignoreDiscriminator: boolean = false): any {
|
|
129
|
+
if (value == null) {
|
|
130
|
+
return value;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
return {
|
|
134
|
+
|
|
135
|
+
'identity': value['identity'],
|
|
136
|
+
'name': value['name'],
|
|
137
|
+
'kind': value['kind'],
|
|
138
|
+
'role': value['role'],
|
|
139
|
+
'state': value['state'],
|
|
140
|
+
'joined_at': value['joined_at'] == null ? value['joined_at'] : value['joined_at'].toISOString(),
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
|
|
@@ -0,0 +1,81 @@
|
|
|
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 LiveCallToken
|
|
20
|
+
*/
|
|
21
|
+
export interface LiveCallToken {
|
|
22
|
+
/**
|
|
23
|
+
* LiveKit access token with talk + listen + room-admin grants.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof LiveCallToken
|
|
26
|
+
*/
|
|
27
|
+
token?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof LiveCallToken
|
|
32
|
+
*/
|
|
33
|
+
room_name?: string;
|
|
34
|
+
/**
|
|
35
|
+
* LiveKit server URL to connect to.
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof LiveCallToken
|
|
38
|
+
*/
|
|
39
|
+
url?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the LiveCallToken interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfLiveCallToken(value: object): value is LiveCallToken {
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function LiveCallTokenFromJSON(json: any): LiveCallToken {
|
|
50
|
+
return LiveCallTokenFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function LiveCallTokenFromJSONTyped(json: any, ignoreDiscriminator: boolean): LiveCallToken {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
|
|
59
|
+
'token': json['token'] == null ? undefined : json['token'],
|
|
60
|
+
'room_name': json['room_name'] == null ? undefined : json['room_name'],
|
|
61
|
+
'url': json['url'] == null ? undefined : json['url'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function LiveCallTokenToJSON(json: any): LiveCallToken {
|
|
66
|
+
return LiveCallTokenToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function LiveCallTokenToJSONTyped(value?: LiveCallToken | null, ignoreDiscriminator: boolean = false): any {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'token': value['token'],
|
|
77
|
+
'room_name': value['room_name'],
|
|
78
|
+
'url': value['url'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -37,6 +37,12 @@ export interface OutboundCallRequest {
|
|
|
37
37
|
* @memberof OutboundCallRequest
|
|
38
38
|
*/
|
|
39
39
|
destination_number?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Which of the org's outbound-capable numbers to use as caller-ID (From). Omit to auto-select.
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof OutboundCallRequest
|
|
44
|
+
*/
|
|
45
|
+
from_phone_number_id?: number;
|
|
40
46
|
}
|
|
41
47
|
|
|
42
48
|
/**
|
|
@@ -60,6 +66,7 @@ export function OutboundCallRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
60
66
|
'voice_agent_id': json['voice_agent_id'],
|
|
61
67
|
'phonebook_entry_id': json['phonebook_entry_id'] == null ? undefined : json['phonebook_entry_id'],
|
|
62
68
|
'destination_number': json['destination_number'] == null ? undefined : json['destination_number'],
|
|
69
|
+
'from_phone_number_id': json['from_phone_number_id'] == null ? undefined : json['from_phone_number_id'],
|
|
63
70
|
};
|
|
64
71
|
}
|
|
65
72
|
|
|
@@ -77,6 +84,7 @@ export function OutboundCallRequestToJSONTyped(value?: OutboundCallRequest | nul
|
|
|
77
84
|
'voice_agent_id': value['voice_agent_id'],
|
|
78
85
|
'phonebook_entry_id': value['phonebook_entry_id'],
|
|
79
86
|
'destination_number': value['destination_number'],
|
|
87
|
+
'from_phone_number_id': value['from_phone_number_id'],
|
|
80
88
|
};
|
|
81
89
|
}
|
|
82
90
|
|
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
* An outbound-capable number assigned to the organization, usable as caller-ID.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface OutboundNumber
|
|
20
|
+
*/
|
|
21
|
+
export interface OutboundNumber {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof OutboundNumber
|
|
26
|
+
*/
|
|
27
|
+
id?: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof OutboundNumber
|
|
32
|
+
*/
|
|
33
|
+
number?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the OutboundNumber interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfOutboundNumber(value: object): value is OutboundNumber {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function OutboundNumberFromJSON(json: any): OutboundNumber {
|
|
44
|
+
return OutboundNumberFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function OutboundNumberFromJSONTyped(json: any, ignoreDiscriminator: boolean): OutboundNumber {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
54
|
+
'number': json['number'] == null ? undefined : json['number'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function OutboundNumberToJSON(json: any): OutboundNumber {
|
|
59
|
+
return OutboundNumberToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function OutboundNumberToJSONTyped(value?: OutboundNumber | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'id': value['id'],
|
|
70
|
+
'number': value['number'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -50,6 +50,9 @@ export * from './InvitationAccept';
|
|
|
50
50
|
export * from './InvitationCreate';
|
|
51
51
|
export * from './InvitationResponse';
|
|
52
52
|
export * from './LifecycleResponse';
|
|
53
|
+
export * from './LiveCall';
|
|
54
|
+
export * from './LiveCallParticipant';
|
|
55
|
+
export * from './LiveCallToken';
|
|
53
56
|
export * from './LlmAgent';
|
|
54
57
|
export * from './LlmAgentInput';
|
|
55
58
|
export * from './LlmAgentUpdateInput';
|
|
@@ -74,6 +77,7 @@ export * from './OrganizationsOrganizationIdVoiceAgentsBasicGet200ResponseInner'
|
|
|
74
77
|
export * from './OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest';
|
|
75
78
|
export * from './OutboundCall';
|
|
76
79
|
export * from './OutboundCallRequest';
|
|
80
|
+
export * from './OutboundNumber';
|
|
77
81
|
export * from './PauseSubscriptionRequest';
|
|
78
82
|
export * from './PhoneNumber';
|
|
79
83
|
export * from './PhoneNumberCreate';
|