@l7mp/tivadar-ai-api-sdk 0.2.17 → 0.2.19
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 -3
- package/dist/api-client.js +6 -2
- package/dist/apis/AdminPhoneNumbersApi.d.ts +1 -26
- package/dist/apis/AdminPhoneNumbersApi.js +0 -81
- package/dist/apis/LiveCallsApi.d.ts +45 -0
- package/dist/apis/LiveCallsApi.js +115 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/api-client.d.ts +7 -3
- package/dist/esm/api-client.js +6 -2
- package/dist/esm/apis/AdminPhoneNumbersApi.d.ts +1 -26
- package/dist/esm/apis/AdminPhoneNumbersApi.js +1 -82
- package/dist/esm/apis/LiveCallsApi.d.ts +45 -0
- package/dist/esm/apis/LiveCallsApi.js +111 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/AdminPhoneNumberUpdate.d.ts +6 -0
- package/dist/esm/models/AdminPhoneNumberUpdate.js +2 -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/PhoneNumberCreate.d.ts +6 -0
- package/dist/esm/models/PhoneNumberCreate.js +2 -0
- package/dist/esm/models/index.d.ts +3 -1
- package/dist/esm/models/index.js +3 -1
- package/dist/models/AdminPhoneNumberUpdate.d.ts +6 -0
- package/dist/models/AdminPhoneNumberUpdate.js +2 -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/PhoneNumberCreate.d.ts +6 -0
- package/dist/models/PhoneNumberCreate.js +2 -0
- package/dist/models/index.d.ts +3 -1
- package/dist/models/index.js +3 -1
- package/package.json +1 -1
- package/src/api-client.ts +12 -5
- package/src/apis/AdminPhoneNumbersApi.ts +0 -114
- package/src/apis/LiveCallsApi.ts +144 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AdminPhoneNumberUpdate.ts +8 -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/PhoneNumberCreate.ts +8 -0
- package/src/models/index.ts +3 -1
package/dist/api-client.d.ts
CHANGED
|
@@ -21,11 +21,12 @@ import { AdminSubscriptionsApi } from "./apis/AdminSubscriptionsApi";
|
|
|
21
21
|
import { AdminPhoneNumbersApi } from "./apis/AdminPhoneNumbersApi";
|
|
22
22
|
import { AdminSIPApi } from "./apis/AdminSIPApi";
|
|
23
23
|
import { OutboundCallsApi } from "./apis/OutboundCallsApi";
|
|
24
|
+
import { LiveCallsApi } from "./apis/LiveCallsApi";
|
|
24
25
|
import { VoiceUsageApi } from "./apis/VoiceUsageApi";
|
|
25
26
|
import { VoiceAgentsApi } from "./apis/VoiceAgentsApi";
|
|
26
27
|
import { ToolsApi } from "./apis/ToolsApi";
|
|
27
28
|
import { PhonebookApi } from "./apis/PhonebookApi";
|
|
28
|
-
import type { CallCreate, CallUpdate, CallFlagCreate, CallFlagUpdate, CallFlagResolve, NotificationScope, NotificationSeverity, NotificationType, VoiceAgentCreate, VoiceAgentUpdate, ChatAgentCreate, ChatAgentUpdate, Calendar, CalendarCreate, CalendarUpdate, CalendarEventCreate, CalendarEventUpdate, InvitationAccept, InvitationCreate, RagConfigCreate, SipTrunkCreate, DispatchRuleCreate, PhoneNumberCreate, OrganizationCreate, CreateCheckoutSessionRequest, CancelSubscriptionRequest, UpdatePlanRequest, PauseSubscriptionRequest, BillingPortalRequest, AdminSetSubscriptionRequest, AdminGrantMinutesRequest, AdminPhoneNumberUpdate, AdminPhoneNumberAssign,
|
|
29
|
+
import type { CallCreate, CallUpdate, CallFlagCreate, CallFlagUpdate, CallFlagResolve, NotificationScope, NotificationSeverity, NotificationType, VoiceAgentCreate, VoiceAgentUpdate, ChatAgentCreate, ChatAgentUpdate, Calendar, CalendarCreate, CalendarUpdate, CalendarEventCreate, CalendarEventUpdate, InvitationAccept, InvitationCreate, RagConfigCreate, SipTrunkCreate, DispatchRuleCreate, PhoneNumberCreate, OrganizationCreate, CreateCheckoutSessionRequest, CancelSubscriptionRequest, UpdatePlanRequest, PauseSubscriptionRequest, BillingPortalRequest, AdminSetSubscriptionRequest, AdminGrantMinutesRequest, AdminPhoneNumberUpdate, AdminPhoneNumberAssign, AdminSipTrunkCreate, AdminDispatchRuleCreate, OutboundCallRequest, VoiceUsageReportRequest, UserPreferencesUpdate, AgentToolUpsert, PhonebookUpdate, PhonebookEntryCreate, PhonebookEntryUpdate } from "./models";
|
|
29
30
|
export interface ApiClientConfig {
|
|
30
31
|
baseUrl: string;
|
|
31
32
|
options?: {
|
|
@@ -185,8 +186,6 @@ export declare class Api {
|
|
|
185
186
|
delete: (phoneNumberId: number, options?: RequestInit) => ReturnType<AdminPhoneNumbersApi["adminPhoneNumbersPhoneNumberIdDelete"]>;
|
|
186
187
|
assign: (phoneNumberId: number, adminPhoneNumberAssign: AdminPhoneNumberAssign, options?: RequestInit) => ReturnType<AdminPhoneNumbersApi["adminPhoneNumbersPhoneNumberIdAssignPost"]>;
|
|
187
188
|
unassign: (phoneNumberId: number, options?: RequestInit) => ReturnType<AdminPhoneNumbersApi["adminPhoneNumbersPhoneNumberIdUnassignPost"]>;
|
|
188
|
-
assignOutbound: (phoneNumberId: number, adminPhoneNumberAssignOutbound: AdminPhoneNumberAssignOutbound, options?: RequestInit) => ReturnType<AdminPhoneNumbersApi["adminPhoneNumbersPhoneNumberIdAssignOutboundPost"]>;
|
|
189
|
-
unassignOutbound: (phoneNumberId: number, options?: RequestInit) => ReturnType<AdminPhoneNumbersApi["adminPhoneNumbersPhoneNumberIdUnassignOutboundPost"]>;
|
|
190
189
|
listOrders: (params?: {
|
|
191
190
|
status?: "pending" | "active" | "canceled";
|
|
192
191
|
organizationId?: string;
|
|
@@ -218,6 +217,10 @@ export declare class Api {
|
|
|
218
217
|
create: (organizationId: string, outboundCallRequest: OutboundCallRequest, options?: RequestInit) => ReturnType<OutboundCallsApi["organizationsOrganizationIdOutboundCallsPost"]>;
|
|
219
218
|
listNumbers: (organizationId: string, options?: RequestInit) => ReturnType<OutboundCallsApi["organizationsOrganizationIdOutboundCallsNumbersGet"]>;
|
|
220
219
|
};
|
|
220
|
+
readonly liveCalls: {
|
|
221
|
+
list: (organizationId: string, options?: RequestInit) => ReturnType<LiveCallsApi["organizationsOrganizationIdLiveCallsGet"]>;
|
|
222
|
+
createToken: (organizationId: string, roomName: string, options?: RequestInit) => ReturnType<LiveCallsApi["organizationsOrganizationIdLiveCallsRoomNameTokenPost"]>;
|
|
223
|
+
};
|
|
221
224
|
readonly voiceUsage: {
|
|
222
225
|
report: (voiceUsageReportRequest: VoiceUsageReportRequest, options?: RequestInit) => ReturnType<VoiceUsageApi["voiceUsageReportPost"]>;
|
|
223
226
|
};
|
|
@@ -288,6 +291,7 @@ export declare class Api {
|
|
|
288
291
|
private readonly adminPhoneNumbersApi;
|
|
289
292
|
private readonly adminSipApi;
|
|
290
293
|
private readonly outboundCallsApi;
|
|
294
|
+
private readonly liveCallsApi;
|
|
291
295
|
private readonly voiceUsageApi;
|
|
292
296
|
private readonly embeddingProvidersApi;
|
|
293
297
|
private readonly llmProvidersApi;
|
package/dist/api-client.js
CHANGED
|
@@ -33,6 +33,7 @@ const AdminSubscriptionsApi_1 = require("./apis/AdminSubscriptionsApi");
|
|
|
33
33
|
const AdminPhoneNumbersApi_1 = require("./apis/AdminPhoneNumbersApi");
|
|
34
34
|
const AdminSIPApi_1 = require("./apis/AdminSIPApi");
|
|
35
35
|
const OutboundCallsApi_1 = require("./apis/OutboundCallsApi");
|
|
36
|
+
const LiveCallsApi_1 = require("./apis/LiveCallsApi");
|
|
36
37
|
const VoiceUsageApi_1 = require("./apis/VoiceUsageApi");
|
|
37
38
|
const VoiceAgentsApi_1 = require("./apis/VoiceAgentsApi");
|
|
38
39
|
const ToolsApi_1 = require("./apis/ToolsApi");
|
|
@@ -81,6 +82,7 @@ class Api {
|
|
|
81
82
|
this.adminPhoneNumbersApi = new AdminPhoneNumbersApi_1.AdminPhoneNumbersApi(configuration);
|
|
82
83
|
this.adminSipApi = new AdminSIPApi_1.AdminSIPApi(configuration);
|
|
83
84
|
this.outboundCallsApi = new OutboundCallsApi_1.OutboundCallsApi(configuration);
|
|
85
|
+
this.liveCallsApi = new LiveCallsApi_1.LiveCallsApi(configuration);
|
|
84
86
|
this.voiceUsageApi = new VoiceUsageApi_1.VoiceUsageApi(configuration);
|
|
85
87
|
this.embeddingProvidersApi = new EmbeddingProvidersApi_1.EmbeddingProvidersApi(configuration);
|
|
86
88
|
this.llmProvidersApi = new LLMProvidersApi_1.LLMProvidersApi(configuration);
|
|
@@ -226,8 +228,6 @@ class Api {
|
|
|
226
228
|
delete: (phoneNumberId, options) => this.adminPhoneNumbersApi.adminPhoneNumbersPhoneNumberIdDelete({ phoneNumberId }, options),
|
|
227
229
|
assign: (phoneNumberId, adminPhoneNumberAssign, options) => this.adminPhoneNumbersApi.adminPhoneNumbersPhoneNumberIdAssignPost({ phoneNumberId, adminPhoneNumberAssign }, options),
|
|
228
230
|
unassign: (phoneNumberId, options) => this.adminPhoneNumbersApi.adminPhoneNumbersPhoneNumberIdUnassignPost({ phoneNumberId }, options),
|
|
229
|
-
assignOutbound: (phoneNumberId, adminPhoneNumberAssignOutbound, options) => this.adminPhoneNumbersApi.adminPhoneNumbersPhoneNumberIdAssignOutboundPost({ phoneNumberId, adminPhoneNumberAssignOutbound }, options),
|
|
230
|
-
unassignOutbound: (phoneNumberId, options) => this.adminPhoneNumbersApi.adminPhoneNumbersPhoneNumberIdUnassignOutboundPost({ phoneNumberId }, options),
|
|
231
231
|
listOrders: (params, options) => this.adminPhoneNumbersApi.adminPhoneNumbersOrdersGet({ status: params === null || params === void 0 ? void 0 : params.status, organizationId: params === null || params === void 0 ? void 0 : params.organizationId, requiresCallRedirect: params === null || params === void 0 ? void 0 : params.requiresCallRedirect, limit: params === null || params === void 0 ? void 0 : params.limit, offset: params === null || params === void 0 ? void 0 : params.offset }, options),
|
|
232
232
|
processOrders: (options) => this.adminPhoneNumbersApi.adminPhoneNumbersOrdersProcessPost(options),
|
|
233
233
|
fulfillOrder: (orderId, options) => this.adminPhoneNumbersApi.adminPhoneNumbersOrdersOrderIdFulfillPost({ orderId }, options),
|
|
@@ -247,6 +247,10 @@ class Api {
|
|
|
247
247
|
create: (organizationId, outboundCallRequest, options) => this.outboundCallsApi.organizationsOrganizationIdOutboundCallsPost({ organizationId, outboundCallRequest }, options),
|
|
248
248
|
listNumbers: (organizationId, options) => this.outboundCallsApi.organizationsOrganizationIdOutboundCallsNumbersGet({ organizationId }, options),
|
|
249
249
|
};
|
|
250
|
+
this.liveCalls = {
|
|
251
|
+
list: (organizationId, options) => this.liveCallsApi.organizationsOrganizationIdLiveCallsGet({ organizationId }, options),
|
|
252
|
+
createToken: (organizationId, roomName, options) => this.liveCallsApi.organizationsOrganizationIdLiveCallsRoomNameTokenPost({ organizationId, roomName }, options),
|
|
253
|
+
};
|
|
250
254
|
this.voiceUsage = {
|
|
251
255
|
report: (voiceUsageReportRequest, options) => this.voiceUsageApi.voiceUsageReportPost({ voiceUsageReportRequest }, options),
|
|
252
256
|
};
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AdminPhoneNumberAssign,
|
|
13
|
+
import type { AdminPhoneNumberAssign, AdminPhoneNumberDetail, AdminPhoneNumberUpdate, AdminPhoneNumbersListResponse, PhoneNumber, PhoneNumberCreate, PhoneNumberOrder, PhoneNumberOrdersListResponse, ProcessOrdersResult } from '../models/index';
|
|
14
14
|
export interface AdminPhoneNumbersGetRequest {
|
|
15
15
|
status?: AdminPhoneNumbersGetStatusEnum;
|
|
16
16
|
supportsCallRedirect?: boolean;
|
|
@@ -32,10 +32,6 @@ export interface AdminPhoneNumbersOrdersOrderIdCancelPostRequest {
|
|
|
32
32
|
export interface AdminPhoneNumbersOrdersOrderIdFulfillPostRequest {
|
|
33
33
|
orderId: string;
|
|
34
34
|
}
|
|
35
|
-
export interface AdminPhoneNumbersPhoneNumberIdAssignOutboundPostRequest {
|
|
36
|
-
phoneNumberId: number;
|
|
37
|
-
adminPhoneNumberAssignOutbound: AdminPhoneNumberAssignOutbound;
|
|
38
|
-
}
|
|
39
35
|
export interface AdminPhoneNumbersPhoneNumberIdAssignPostRequest {
|
|
40
36
|
phoneNumberId: number;
|
|
41
37
|
adminPhoneNumberAssign: AdminPhoneNumberAssign;
|
|
@@ -50,9 +46,6 @@ export interface AdminPhoneNumbersPhoneNumberIdPatchRequest {
|
|
|
50
46
|
phoneNumberId: number;
|
|
51
47
|
adminPhoneNumberUpdate: AdminPhoneNumberUpdate;
|
|
52
48
|
}
|
|
53
|
-
export interface AdminPhoneNumbersPhoneNumberIdUnassignOutboundPostRequest {
|
|
54
|
-
phoneNumberId: number;
|
|
55
|
-
}
|
|
56
49
|
export interface AdminPhoneNumbersPhoneNumberIdUnassignPostRequest {
|
|
57
50
|
phoneNumberId: number;
|
|
58
51
|
}
|
|
@@ -103,16 +96,6 @@ export declare class AdminPhoneNumbersApi extends runtime.BaseAPI {
|
|
|
103
96
|
* Run the backorder fulfillment queue on demand (app-admin only)
|
|
104
97
|
*/
|
|
105
98
|
adminPhoneNumbersOrdersProcessPost(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProcessOrdersResult>;
|
|
106
|
-
/**
|
|
107
|
-
* Grants the organization ownership of an outbound number (no inbound trunk). The org can then place outbound calls using it as caller-ID.
|
|
108
|
-
* Assign an outbound-capable number to an organization (app-admin only)
|
|
109
|
-
*/
|
|
110
|
-
adminPhoneNumbersPhoneNumberIdAssignOutboundPostRaw(requestParameters: AdminPhoneNumbersPhoneNumberIdAssignOutboundPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AdminPhoneNumberDetail>>;
|
|
111
|
-
/**
|
|
112
|
-
* Grants the organization ownership of an outbound number (no inbound trunk). The org can then place outbound calls using it as caller-ID.
|
|
113
|
-
* Assign an outbound-capable number to an organization (app-admin only)
|
|
114
|
-
*/
|
|
115
|
-
adminPhoneNumbersPhoneNumberIdAssignOutboundPost(requestParameters: AdminPhoneNumbersPhoneNumberIdAssignOutboundPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminPhoneNumberDetail>;
|
|
116
99
|
/**
|
|
117
100
|
* Creates a SIP trunk (and, if an agent is given, a dispatch rule) and links the number.
|
|
118
101
|
* Assign a phone number to an organization (app-admin only)
|
|
@@ -149,14 +132,6 @@ export declare class AdminPhoneNumbersApi extends runtime.BaseAPI {
|
|
|
149
132
|
* Update a phone number (app-admin only)
|
|
150
133
|
*/
|
|
151
134
|
adminPhoneNumbersPhoneNumberIdPatch(requestParameters: AdminPhoneNumbersPhoneNumberIdPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PhoneNumber>;
|
|
152
|
-
/**
|
|
153
|
-
* Release an outbound number\'s organization ownership (app-admin only)
|
|
154
|
-
*/
|
|
155
|
-
adminPhoneNumbersPhoneNumberIdUnassignOutboundPostRaw(requestParameters: AdminPhoneNumbersPhoneNumberIdUnassignOutboundPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AdminPhoneNumberDetail>>;
|
|
156
|
-
/**
|
|
157
|
-
* Release an outbound number\'s organization ownership (app-admin only)
|
|
158
|
-
*/
|
|
159
|
-
adminPhoneNumbersPhoneNumberIdUnassignOutboundPost(requestParameters: AdminPhoneNumbersPhoneNumberIdUnassignOutboundPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminPhoneNumberDetail>;
|
|
160
135
|
/**
|
|
161
136
|
* Deletes the LiveKit dispatch rule + trunk and frees the number back to the pool.
|
|
162
137
|
* Release a phone number from its organization (app-admin only)
|
|
@@ -235,50 +235,6 @@ class AdminPhoneNumbersApi extends runtime.BaseAPI {
|
|
|
235
235
|
return yield response.value();
|
|
236
236
|
});
|
|
237
237
|
}
|
|
238
|
-
/**
|
|
239
|
-
* Grants the organization ownership of an outbound number (no inbound trunk). The org can then place outbound calls using it as caller-ID.
|
|
240
|
-
* Assign an outbound-capable number to an organization (app-admin only)
|
|
241
|
-
*/
|
|
242
|
-
adminPhoneNumbersPhoneNumberIdAssignOutboundPostRaw(requestParameters, initOverrides) {
|
|
243
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
244
|
-
if (requestParameters['phoneNumberId'] == null) {
|
|
245
|
-
throw new runtime.RequiredError('phoneNumberId', 'Required parameter "phoneNumberId" was null or undefined when calling adminPhoneNumbersPhoneNumberIdAssignOutboundPost().');
|
|
246
|
-
}
|
|
247
|
-
if (requestParameters['adminPhoneNumberAssignOutbound'] == null) {
|
|
248
|
-
throw new runtime.RequiredError('adminPhoneNumberAssignOutbound', 'Required parameter "adminPhoneNumberAssignOutbound" was null or undefined when calling adminPhoneNumbersPhoneNumberIdAssignOutboundPost().');
|
|
249
|
-
}
|
|
250
|
-
const queryParameters = {};
|
|
251
|
-
const headerParameters = {};
|
|
252
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
253
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
254
|
-
const token = this.configuration.accessToken;
|
|
255
|
-
const tokenString = yield token("bearerAuth", []);
|
|
256
|
-
if (tokenString) {
|
|
257
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
let urlPath = `/admin/phone-numbers/{phoneNumberId}/assign-outbound`;
|
|
261
|
-
urlPath = urlPath.replace(`{${"phoneNumberId"}}`, encodeURIComponent(String(requestParameters['phoneNumberId'])));
|
|
262
|
-
const response = yield this.request({
|
|
263
|
-
path: urlPath,
|
|
264
|
-
method: 'POST',
|
|
265
|
-
headers: headerParameters,
|
|
266
|
-
query: queryParameters,
|
|
267
|
-
body: (0, index_1.AdminPhoneNumberAssignOutboundToJSON)(requestParameters['adminPhoneNumberAssignOutbound']),
|
|
268
|
-
}, initOverrides);
|
|
269
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AdminPhoneNumberDetailFromJSON)(jsonValue));
|
|
270
|
-
});
|
|
271
|
-
}
|
|
272
|
-
/**
|
|
273
|
-
* Grants the organization ownership of an outbound number (no inbound trunk). The org can then place outbound calls using it as caller-ID.
|
|
274
|
-
* Assign an outbound-capable number to an organization (app-admin only)
|
|
275
|
-
*/
|
|
276
|
-
adminPhoneNumbersPhoneNumberIdAssignOutboundPost(requestParameters, initOverrides) {
|
|
277
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
278
|
-
const response = yield this.adminPhoneNumbersPhoneNumberIdAssignOutboundPostRaw(requestParameters, initOverrides);
|
|
279
|
-
return yield response.value();
|
|
280
|
-
});
|
|
281
|
-
}
|
|
282
238
|
/**
|
|
283
239
|
* Creates a SIP trunk (and, if an agent is given, a dispatch rule) and links the number.
|
|
284
240
|
* Assign a phone number to an organization (app-admin only)
|
|
@@ -440,43 +396,6 @@ class AdminPhoneNumbersApi extends runtime.BaseAPI {
|
|
|
440
396
|
return yield response.value();
|
|
441
397
|
});
|
|
442
398
|
}
|
|
443
|
-
/**
|
|
444
|
-
* Release an outbound number\'s organization ownership (app-admin only)
|
|
445
|
-
*/
|
|
446
|
-
adminPhoneNumbersPhoneNumberIdUnassignOutboundPostRaw(requestParameters, initOverrides) {
|
|
447
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
448
|
-
if (requestParameters['phoneNumberId'] == null) {
|
|
449
|
-
throw new runtime.RequiredError('phoneNumberId', 'Required parameter "phoneNumberId" was null or undefined when calling adminPhoneNumbersPhoneNumberIdUnassignOutboundPost().');
|
|
450
|
-
}
|
|
451
|
-
const queryParameters = {};
|
|
452
|
-
const headerParameters = {};
|
|
453
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
454
|
-
const token = this.configuration.accessToken;
|
|
455
|
-
const tokenString = yield token("bearerAuth", []);
|
|
456
|
-
if (tokenString) {
|
|
457
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
let urlPath = `/admin/phone-numbers/{phoneNumberId}/unassign-outbound`;
|
|
461
|
-
urlPath = urlPath.replace(`{${"phoneNumberId"}}`, encodeURIComponent(String(requestParameters['phoneNumberId'])));
|
|
462
|
-
const response = yield this.request({
|
|
463
|
-
path: urlPath,
|
|
464
|
-
method: 'POST',
|
|
465
|
-
headers: headerParameters,
|
|
466
|
-
query: queryParameters,
|
|
467
|
-
}, initOverrides);
|
|
468
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AdminPhoneNumberDetailFromJSON)(jsonValue));
|
|
469
|
-
});
|
|
470
|
-
}
|
|
471
|
-
/**
|
|
472
|
-
* Release an outbound number\'s organization ownership (app-admin only)
|
|
473
|
-
*/
|
|
474
|
-
adminPhoneNumbersPhoneNumberIdUnassignOutboundPost(requestParameters, initOverrides) {
|
|
475
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
476
|
-
const response = yield this.adminPhoneNumbersPhoneNumberIdUnassignOutboundPostRaw(requestParameters, initOverrides);
|
|
477
|
-
return yield response.value();
|
|
478
|
-
});
|
|
479
|
-
}
|
|
480
399
|
/**
|
|
481
400
|
* Deletes the LiveKit dispatch rule + trunk and frees the number back to the pool.
|
|
482
401
|
* Release a phone number from its organization (app-admin only)
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tivadar AI Backend API
|
|
3
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { LiveCall, LiveCallToken } from '../models/index';
|
|
14
|
+
export interface OrganizationsOrganizationIdLiveCallsGetRequest {
|
|
15
|
+
organizationId: string;
|
|
16
|
+
}
|
|
17
|
+
export interface OrganizationsOrganizationIdLiveCallsRoomNameTokenPostRequest {
|
|
18
|
+
organizationId: string;
|
|
19
|
+
roomName: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
export declare class LiveCallsApi extends runtime.BaseAPI {
|
|
25
|
+
/**
|
|
26
|
+
* Returns the organization\'s live calls, each with its participants (caller, agent, operators). Rooms are attributed to the org by their metadata or by matching the org\'s own agents/trunks (fail-closed).
|
|
27
|
+
* List ongoing calls (live LiveKit rooms) for the organization (app-admin only)
|
|
28
|
+
*/
|
|
29
|
+
organizationsOrganizationIdLiveCallsGetRaw(requestParameters: OrganizationsOrganizationIdLiveCallsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<LiveCall>>>;
|
|
30
|
+
/**
|
|
31
|
+
* Returns the organization\'s live calls, each with its participants (caller, agent, operators). Rooms are attributed to the org by their metadata or by matching the org\'s own agents/trunks (fail-closed).
|
|
32
|
+
* List ongoing calls (live LiveKit rooms) for the organization (app-admin only)
|
|
33
|
+
*/
|
|
34
|
+
organizationsOrganizationIdLiveCallsGet(requestParameters: OrganizationsOrganizationIdLiveCallsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<LiveCall>>;
|
|
35
|
+
/**
|
|
36
|
+
* Returns a LiveKit access token with talk + listen + room-admin grants so an operator can join the call. The room must belong to the organization.
|
|
37
|
+
* Mint an admin access token to join a live call (app-admin only)
|
|
38
|
+
*/
|
|
39
|
+
organizationsOrganizationIdLiveCallsRoomNameTokenPostRaw(requestParameters: OrganizationsOrganizationIdLiveCallsRoomNameTokenPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LiveCallToken>>;
|
|
40
|
+
/**
|
|
41
|
+
* Returns a LiveKit access token with talk + listen + room-admin grants so an operator can join the call. The room must belong to the organization.
|
|
42
|
+
* Mint an admin access token to join a live call (app-admin only)
|
|
43
|
+
*/
|
|
44
|
+
organizationsOrganizationIdLiveCallsRoomNameTokenPost(requestParameters: OrganizationsOrganizationIdLiveCallsRoomNameTokenPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LiveCallToken>;
|
|
45
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.LiveCallsApi = void 0;
|
|
26
|
+
const runtime = require("../runtime");
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
class LiveCallsApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* Returns the organization\'s live calls, each with its participants (caller, agent, operators). Rooms are attributed to the org by their metadata or by matching the org\'s own agents/trunks (fail-closed).
|
|
34
|
+
* List ongoing calls (live LiveKit rooms) for the organization (app-admin only)
|
|
35
|
+
*/
|
|
36
|
+
organizationsOrganizationIdLiveCallsGetRaw(requestParameters, initOverrides) {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
if (requestParameters['organizationId'] == null) {
|
|
39
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdLiveCallsGet().');
|
|
40
|
+
}
|
|
41
|
+
const queryParameters = {};
|
|
42
|
+
const headerParameters = {};
|
|
43
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
44
|
+
const token = this.configuration.accessToken;
|
|
45
|
+
const tokenString = yield token("bearerAuth", []);
|
|
46
|
+
if (tokenString) {
|
|
47
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
let urlPath = `/organizations/{organizationId}/live-calls`;
|
|
51
|
+
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
52
|
+
const response = yield this.request({
|
|
53
|
+
path: urlPath,
|
|
54
|
+
method: 'GET',
|
|
55
|
+
headers: headerParameters,
|
|
56
|
+
query: queryParameters,
|
|
57
|
+
}, initOverrides);
|
|
58
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.LiveCallFromJSON));
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Returns the organization\'s live calls, each with its participants (caller, agent, operators). Rooms are attributed to the org by their metadata or by matching the org\'s own agents/trunks (fail-closed).
|
|
63
|
+
* List ongoing calls (live LiveKit rooms) for the organization (app-admin only)
|
|
64
|
+
*/
|
|
65
|
+
organizationsOrganizationIdLiveCallsGet(requestParameters, initOverrides) {
|
|
66
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
67
|
+
const response = yield this.organizationsOrganizationIdLiveCallsGetRaw(requestParameters, initOverrides);
|
|
68
|
+
return yield response.value();
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Returns a LiveKit access token with talk + listen + room-admin grants so an operator can join the call. The room must belong to the organization.
|
|
73
|
+
* Mint an admin access token to join a live call (app-admin only)
|
|
74
|
+
*/
|
|
75
|
+
organizationsOrganizationIdLiveCallsRoomNameTokenPostRaw(requestParameters, initOverrides) {
|
|
76
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
77
|
+
if (requestParameters['organizationId'] == null) {
|
|
78
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdLiveCallsRoomNameTokenPost().');
|
|
79
|
+
}
|
|
80
|
+
if (requestParameters['roomName'] == null) {
|
|
81
|
+
throw new runtime.RequiredError('roomName', 'Required parameter "roomName" was null or undefined when calling organizationsOrganizationIdLiveCallsRoomNameTokenPost().');
|
|
82
|
+
}
|
|
83
|
+
const queryParameters = {};
|
|
84
|
+
const headerParameters = {};
|
|
85
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
86
|
+
const token = this.configuration.accessToken;
|
|
87
|
+
const tokenString = yield token("bearerAuth", []);
|
|
88
|
+
if (tokenString) {
|
|
89
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
let urlPath = `/organizations/{organizationId}/live-calls/{roomName}/token`;
|
|
93
|
+
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
94
|
+
urlPath = urlPath.replace(`{${"roomName"}}`, encodeURIComponent(String(requestParameters['roomName'])));
|
|
95
|
+
const response = yield this.request({
|
|
96
|
+
path: urlPath,
|
|
97
|
+
method: 'POST',
|
|
98
|
+
headers: headerParameters,
|
|
99
|
+
query: queryParameters,
|
|
100
|
+
}, initOverrides);
|
|
101
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.LiveCallTokenFromJSON)(jsonValue));
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Returns a LiveKit access token with talk + listen + room-admin grants so an operator can join the call. The room must belong to the organization.
|
|
106
|
+
* Mint an admin access token to join a live call (app-admin only)
|
|
107
|
+
*/
|
|
108
|
+
organizationsOrganizationIdLiveCallsRoomNameTokenPost(requestParameters, initOverrides) {
|
|
109
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
110
|
+
const response = yield this.organizationsOrganizationIdLiveCallsRoomNameTokenPostRaw(requestParameters, initOverrides);
|
|
111
|
+
return yield response.value();
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
exports.LiveCallsApi = LiveCallsApi;
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export * from './EmbeddingProvidersApi';
|
|
|
9
9
|
export * from './HistoryApi';
|
|
10
10
|
export * from './InvitationsApi';
|
|
11
11
|
export * from './LLMProvidersApi';
|
|
12
|
+
export * from './LiveCallsApi';
|
|
12
13
|
export * from './MembersApi';
|
|
13
14
|
export * from './NotificationsApi';
|
|
14
15
|
export * from './OrganizationsApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -27,6 +27,7 @@ __exportStar(require("./EmbeddingProvidersApi"), exports);
|
|
|
27
27
|
__exportStar(require("./HistoryApi"), exports);
|
|
28
28
|
__exportStar(require("./InvitationsApi"), exports);
|
|
29
29
|
__exportStar(require("./LLMProvidersApi"), exports);
|
|
30
|
+
__exportStar(require("./LiveCallsApi"), exports);
|
|
30
31
|
__exportStar(require("./MembersApi"), exports);
|
|
31
32
|
__exportStar(require("./NotificationsApi"), exports);
|
|
32
33
|
__exportStar(require("./OrganizationsApi"), exports);
|
package/dist/esm/api-client.d.ts
CHANGED
|
@@ -21,11 +21,12 @@ import { AdminSubscriptionsApi } from "./apis/AdminSubscriptionsApi";
|
|
|
21
21
|
import { AdminPhoneNumbersApi } from "./apis/AdminPhoneNumbersApi";
|
|
22
22
|
import { AdminSIPApi } from "./apis/AdminSIPApi";
|
|
23
23
|
import { OutboundCallsApi } from "./apis/OutboundCallsApi";
|
|
24
|
+
import { LiveCallsApi } from "./apis/LiveCallsApi";
|
|
24
25
|
import { VoiceUsageApi } from "./apis/VoiceUsageApi";
|
|
25
26
|
import { VoiceAgentsApi } from "./apis/VoiceAgentsApi";
|
|
26
27
|
import { ToolsApi } from "./apis/ToolsApi";
|
|
27
28
|
import { PhonebookApi } from "./apis/PhonebookApi";
|
|
28
|
-
import type { CallCreate, CallUpdate, CallFlagCreate, CallFlagUpdate, CallFlagResolve, NotificationScope, NotificationSeverity, NotificationType, VoiceAgentCreate, VoiceAgentUpdate, ChatAgentCreate, ChatAgentUpdate, Calendar, CalendarCreate, CalendarUpdate, CalendarEventCreate, CalendarEventUpdate, InvitationAccept, InvitationCreate, RagConfigCreate, SipTrunkCreate, DispatchRuleCreate, PhoneNumberCreate, OrganizationCreate, CreateCheckoutSessionRequest, CancelSubscriptionRequest, UpdatePlanRequest, PauseSubscriptionRequest, BillingPortalRequest, AdminSetSubscriptionRequest, AdminGrantMinutesRequest, AdminPhoneNumberUpdate, AdminPhoneNumberAssign,
|
|
29
|
+
import type { CallCreate, CallUpdate, CallFlagCreate, CallFlagUpdate, CallFlagResolve, NotificationScope, NotificationSeverity, NotificationType, VoiceAgentCreate, VoiceAgentUpdate, ChatAgentCreate, ChatAgentUpdate, Calendar, CalendarCreate, CalendarUpdate, CalendarEventCreate, CalendarEventUpdate, InvitationAccept, InvitationCreate, RagConfigCreate, SipTrunkCreate, DispatchRuleCreate, PhoneNumberCreate, OrganizationCreate, CreateCheckoutSessionRequest, CancelSubscriptionRequest, UpdatePlanRequest, PauseSubscriptionRequest, BillingPortalRequest, AdminSetSubscriptionRequest, AdminGrantMinutesRequest, AdminPhoneNumberUpdate, AdminPhoneNumberAssign, AdminSipTrunkCreate, AdminDispatchRuleCreate, OutboundCallRequest, VoiceUsageReportRequest, UserPreferencesUpdate, AgentToolUpsert, PhonebookUpdate, PhonebookEntryCreate, PhonebookEntryUpdate } from "./models";
|
|
29
30
|
export interface ApiClientConfig {
|
|
30
31
|
baseUrl: string;
|
|
31
32
|
options?: {
|
|
@@ -185,8 +186,6 @@ export declare class Api {
|
|
|
185
186
|
delete: (phoneNumberId: number, options?: RequestInit) => ReturnType<AdminPhoneNumbersApi["adminPhoneNumbersPhoneNumberIdDelete"]>;
|
|
186
187
|
assign: (phoneNumberId: number, adminPhoneNumberAssign: AdminPhoneNumberAssign, options?: RequestInit) => ReturnType<AdminPhoneNumbersApi["adminPhoneNumbersPhoneNumberIdAssignPost"]>;
|
|
187
188
|
unassign: (phoneNumberId: number, options?: RequestInit) => ReturnType<AdminPhoneNumbersApi["adminPhoneNumbersPhoneNumberIdUnassignPost"]>;
|
|
188
|
-
assignOutbound: (phoneNumberId: number, adminPhoneNumberAssignOutbound: AdminPhoneNumberAssignOutbound, options?: RequestInit) => ReturnType<AdminPhoneNumbersApi["adminPhoneNumbersPhoneNumberIdAssignOutboundPost"]>;
|
|
189
|
-
unassignOutbound: (phoneNumberId: number, options?: RequestInit) => ReturnType<AdminPhoneNumbersApi["adminPhoneNumbersPhoneNumberIdUnassignOutboundPost"]>;
|
|
190
189
|
listOrders: (params?: {
|
|
191
190
|
status?: "pending" | "active" | "canceled";
|
|
192
191
|
organizationId?: string;
|
|
@@ -218,6 +217,10 @@ export declare class Api {
|
|
|
218
217
|
create: (organizationId: string, outboundCallRequest: OutboundCallRequest, options?: RequestInit) => ReturnType<OutboundCallsApi["organizationsOrganizationIdOutboundCallsPost"]>;
|
|
219
218
|
listNumbers: (organizationId: string, options?: RequestInit) => ReturnType<OutboundCallsApi["organizationsOrganizationIdOutboundCallsNumbersGet"]>;
|
|
220
219
|
};
|
|
220
|
+
readonly liveCalls: {
|
|
221
|
+
list: (organizationId: string, options?: RequestInit) => ReturnType<LiveCallsApi["organizationsOrganizationIdLiveCallsGet"]>;
|
|
222
|
+
createToken: (organizationId: string, roomName: string, options?: RequestInit) => ReturnType<LiveCallsApi["organizationsOrganizationIdLiveCallsRoomNameTokenPost"]>;
|
|
223
|
+
};
|
|
221
224
|
readonly voiceUsage: {
|
|
222
225
|
report: (voiceUsageReportRequest: VoiceUsageReportRequest, options?: RequestInit) => ReturnType<VoiceUsageApi["voiceUsageReportPost"]>;
|
|
223
226
|
};
|
|
@@ -288,6 +291,7 @@ export declare class Api {
|
|
|
288
291
|
private readonly adminPhoneNumbersApi;
|
|
289
292
|
private readonly adminSipApi;
|
|
290
293
|
private readonly outboundCallsApi;
|
|
294
|
+
private readonly liveCallsApi;
|
|
291
295
|
private readonly voiceUsageApi;
|
|
292
296
|
private readonly embeddingProvidersApi;
|
|
293
297
|
private readonly llmProvidersApi;
|
package/dist/esm/api-client.js
CHANGED
|
@@ -30,6 +30,7 @@ import { AdminSubscriptionsApi } from "./apis/AdminSubscriptionsApi";
|
|
|
30
30
|
import { AdminPhoneNumbersApi } from "./apis/AdminPhoneNumbersApi";
|
|
31
31
|
import { AdminSIPApi } from "./apis/AdminSIPApi";
|
|
32
32
|
import { OutboundCallsApi } from "./apis/OutboundCallsApi";
|
|
33
|
+
import { LiveCallsApi } from "./apis/LiveCallsApi";
|
|
33
34
|
import { VoiceUsageApi } from "./apis/VoiceUsageApi";
|
|
34
35
|
import { VoiceAgentsApi } from "./apis/VoiceAgentsApi";
|
|
35
36
|
import { ToolsApi } from "./apis/ToolsApi";
|
|
@@ -78,6 +79,7 @@ export class Api {
|
|
|
78
79
|
this.adminPhoneNumbersApi = new AdminPhoneNumbersApi(configuration);
|
|
79
80
|
this.adminSipApi = new AdminSIPApi(configuration);
|
|
80
81
|
this.outboundCallsApi = new OutboundCallsApi(configuration);
|
|
82
|
+
this.liveCallsApi = new LiveCallsApi(configuration);
|
|
81
83
|
this.voiceUsageApi = new VoiceUsageApi(configuration);
|
|
82
84
|
this.embeddingProvidersApi = new EmbeddingProvidersApi(configuration);
|
|
83
85
|
this.llmProvidersApi = new LLMProvidersApi(configuration);
|
|
@@ -223,8 +225,6 @@ export class Api {
|
|
|
223
225
|
delete: (phoneNumberId, options) => this.adminPhoneNumbersApi.adminPhoneNumbersPhoneNumberIdDelete({ phoneNumberId }, options),
|
|
224
226
|
assign: (phoneNumberId, adminPhoneNumberAssign, options) => this.adminPhoneNumbersApi.adminPhoneNumbersPhoneNumberIdAssignPost({ phoneNumberId, adminPhoneNumberAssign }, options),
|
|
225
227
|
unassign: (phoneNumberId, options) => this.adminPhoneNumbersApi.adminPhoneNumbersPhoneNumberIdUnassignPost({ phoneNumberId }, options),
|
|
226
|
-
assignOutbound: (phoneNumberId, adminPhoneNumberAssignOutbound, options) => this.adminPhoneNumbersApi.adminPhoneNumbersPhoneNumberIdAssignOutboundPost({ phoneNumberId, adminPhoneNumberAssignOutbound }, options),
|
|
227
|
-
unassignOutbound: (phoneNumberId, options) => this.adminPhoneNumbersApi.adminPhoneNumbersPhoneNumberIdUnassignOutboundPost({ phoneNumberId }, options),
|
|
228
228
|
listOrders: (params, options) => this.adminPhoneNumbersApi.adminPhoneNumbersOrdersGet({ status: params === null || params === void 0 ? void 0 : params.status, organizationId: params === null || params === void 0 ? void 0 : params.organizationId, requiresCallRedirect: params === null || params === void 0 ? void 0 : params.requiresCallRedirect, limit: params === null || params === void 0 ? void 0 : params.limit, offset: params === null || params === void 0 ? void 0 : params.offset }, options),
|
|
229
229
|
processOrders: (options) => this.adminPhoneNumbersApi.adminPhoneNumbersOrdersProcessPost(options),
|
|
230
230
|
fulfillOrder: (orderId, options) => this.adminPhoneNumbersApi.adminPhoneNumbersOrdersOrderIdFulfillPost({ orderId }, options),
|
|
@@ -244,6 +244,10 @@ export class Api {
|
|
|
244
244
|
create: (organizationId, outboundCallRequest, options) => this.outboundCallsApi.organizationsOrganizationIdOutboundCallsPost({ organizationId, outboundCallRequest }, options),
|
|
245
245
|
listNumbers: (organizationId, options) => this.outboundCallsApi.organizationsOrganizationIdOutboundCallsNumbersGet({ organizationId }, options),
|
|
246
246
|
};
|
|
247
|
+
this.liveCalls = {
|
|
248
|
+
list: (organizationId, options) => this.liveCallsApi.organizationsOrganizationIdLiveCallsGet({ organizationId }, options),
|
|
249
|
+
createToken: (organizationId, roomName, options) => this.liveCallsApi.organizationsOrganizationIdLiveCallsRoomNameTokenPost({ organizationId, roomName }, options),
|
|
250
|
+
};
|
|
247
251
|
this.voiceUsage = {
|
|
248
252
|
report: (voiceUsageReportRequest, options) => this.voiceUsageApi.voiceUsageReportPost({ voiceUsageReportRequest }, options),
|
|
249
253
|
};
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AdminPhoneNumberAssign,
|
|
13
|
+
import type { AdminPhoneNumberAssign, AdminPhoneNumberDetail, AdminPhoneNumberUpdate, AdminPhoneNumbersListResponse, PhoneNumber, PhoneNumberCreate, PhoneNumberOrder, PhoneNumberOrdersListResponse, ProcessOrdersResult } from '../models/index';
|
|
14
14
|
export interface AdminPhoneNumbersGetRequest {
|
|
15
15
|
status?: AdminPhoneNumbersGetStatusEnum;
|
|
16
16
|
supportsCallRedirect?: boolean;
|
|
@@ -32,10 +32,6 @@ export interface AdminPhoneNumbersOrdersOrderIdCancelPostRequest {
|
|
|
32
32
|
export interface AdminPhoneNumbersOrdersOrderIdFulfillPostRequest {
|
|
33
33
|
orderId: string;
|
|
34
34
|
}
|
|
35
|
-
export interface AdminPhoneNumbersPhoneNumberIdAssignOutboundPostRequest {
|
|
36
|
-
phoneNumberId: number;
|
|
37
|
-
adminPhoneNumberAssignOutbound: AdminPhoneNumberAssignOutbound;
|
|
38
|
-
}
|
|
39
35
|
export interface AdminPhoneNumbersPhoneNumberIdAssignPostRequest {
|
|
40
36
|
phoneNumberId: number;
|
|
41
37
|
adminPhoneNumberAssign: AdminPhoneNumberAssign;
|
|
@@ -50,9 +46,6 @@ export interface AdminPhoneNumbersPhoneNumberIdPatchRequest {
|
|
|
50
46
|
phoneNumberId: number;
|
|
51
47
|
adminPhoneNumberUpdate: AdminPhoneNumberUpdate;
|
|
52
48
|
}
|
|
53
|
-
export interface AdminPhoneNumbersPhoneNumberIdUnassignOutboundPostRequest {
|
|
54
|
-
phoneNumberId: number;
|
|
55
|
-
}
|
|
56
49
|
export interface AdminPhoneNumbersPhoneNumberIdUnassignPostRequest {
|
|
57
50
|
phoneNumberId: number;
|
|
58
51
|
}
|
|
@@ -103,16 +96,6 @@ export declare class AdminPhoneNumbersApi extends runtime.BaseAPI {
|
|
|
103
96
|
* Run the backorder fulfillment queue on demand (app-admin only)
|
|
104
97
|
*/
|
|
105
98
|
adminPhoneNumbersOrdersProcessPost(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProcessOrdersResult>;
|
|
106
|
-
/**
|
|
107
|
-
* Grants the organization ownership of an outbound number (no inbound trunk). The org can then place outbound calls using it as caller-ID.
|
|
108
|
-
* Assign an outbound-capable number to an organization (app-admin only)
|
|
109
|
-
*/
|
|
110
|
-
adminPhoneNumbersPhoneNumberIdAssignOutboundPostRaw(requestParameters: AdminPhoneNumbersPhoneNumberIdAssignOutboundPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AdminPhoneNumberDetail>>;
|
|
111
|
-
/**
|
|
112
|
-
* Grants the organization ownership of an outbound number (no inbound trunk). The org can then place outbound calls using it as caller-ID.
|
|
113
|
-
* Assign an outbound-capable number to an organization (app-admin only)
|
|
114
|
-
*/
|
|
115
|
-
adminPhoneNumbersPhoneNumberIdAssignOutboundPost(requestParameters: AdminPhoneNumbersPhoneNumberIdAssignOutboundPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminPhoneNumberDetail>;
|
|
116
99
|
/**
|
|
117
100
|
* Creates a SIP trunk (and, if an agent is given, a dispatch rule) and links the number.
|
|
118
101
|
* Assign a phone number to an organization (app-admin only)
|
|
@@ -149,14 +132,6 @@ export declare class AdminPhoneNumbersApi extends runtime.BaseAPI {
|
|
|
149
132
|
* Update a phone number (app-admin only)
|
|
150
133
|
*/
|
|
151
134
|
adminPhoneNumbersPhoneNumberIdPatch(requestParameters: AdminPhoneNumbersPhoneNumberIdPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PhoneNumber>;
|
|
152
|
-
/**
|
|
153
|
-
* Release an outbound number\'s organization ownership (app-admin only)
|
|
154
|
-
*/
|
|
155
|
-
adminPhoneNumbersPhoneNumberIdUnassignOutboundPostRaw(requestParameters: AdminPhoneNumbersPhoneNumberIdUnassignOutboundPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AdminPhoneNumberDetail>>;
|
|
156
|
-
/**
|
|
157
|
-
* Release an outbound number\'s organization ownership (app-admin only)
|
|
158
|
-
*/
|
|
159
|
-
adminPhoneNumbersPhoneNumberIdUnassignOutboundPost(requestParameters: AdminPhoneNumbersPhoneNumberIdUnassignOutboundPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminPhoneNumberDetail>;
|
|
160
135
|
/**
|
|
161
136
|
* Deletes the LiveKit dispatch rule + trunk and frees the number back to the pool.
|
|
162
137
|
* Release a phone number from its organization (app-admin only)
|