@l7mp/tivadar-ai-api-sdk 0.2.10 → 0.2.12
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 +46 -4
- package/dist/api-client.js +33 -3
- package/dist/apis/AdminSubscriptionsApi.d.ts +82 -0
- package/dist/apis/AdminSubscriptionsApi.js +243 -0
- package/dist/apis/CallFlagsApi.d.ts +133 -0
- package/dist/apis/CallFlagsApi.js +376 -0
- package/dist/apis/SubscriptionApi.d.ts +54 -75
- package/dist/apis/SubscriptionApi.js +95 -114
- package/dist/apis/VoiceUsageApi.d.ts +31 -0
- package/dist/apis/VoiceUsageApi.js +73 -0
- package/dist/apis/index.d.ts +3 -0
- package/dist/apis/index.js +3 -0
- package/dist/esm/api-client.d.ts +46 -4
- package/dist/esm/api-client.js +33 -3
- package/dist/esm/apis/AdminSubscriptionsApi.d.ts +82 -0
- package/dist/esm/apis/AdminSubscriptionsApi.js +239 -0
- package/dist/esm/apis/CallFlagsApi.d.ts +133 -0
- package/dist/esm/apis/CallFlagsApi.js +372 -0
- package/dist/esm/apis/SubscriptionApi.d.ts +54 -75
- package/dist/esm/apis/SubscriptionApi.js +96 -115
- package/dist/esm/apis/VoiceUsageApi.d.ts +31 -0
- package/dist/esm/apis/VoiceUsageApi.js +69 -0
- package/dist/esm/apis/index.d.ts +3 -0
- package/dist/esm/apis/index.js +3 -0
- package/dist/esm/models/AdminGrantMinutesRequest.d.ts +38 -0
- package/dist/esm/models/AdminGrantMinutesRequest.js +45 -0
- package/dist/esm/models/AdminSetSubscriptionRequest.d.ts +86 -0
- package/dist/esm/models/AdminSetSubscriptionRequest.js +71 -0
- package/dist/esm/models/AdminSubscriptionsListResponse.d.ts +39 -0
- package/dist/esm/models/AdminSubscriptionsListResponse.js +48 -0
- package/dist/esm/models/BillingPortalRequest.d.ts +1 -1
- package/dist/esm/models/BillingPortalResponse.d.ts +1 -1
- package/dist/esm/models/Call.d.ts +7 -0
- package/dist/esm/models/Call.js +3 -0
- package/dist/esm/models/CallFlag.d.ts +110 -0
- package/dist/esm/models/CallFlag.js +89 -0
- package/dist/esm/models/CallFlagCreate.d.ts +48 -0
- package/dist/esm/models/CallFlagCreate.js +54 -0
- package/dist/esm/models/CallFlagResolve.d.ts +32 -0
- package/dist/esm/models/CallFlagResolve.js +41 -0
- package/dist/esm/models/CallFlagUpdate.d.ts +48 -0
- package/dist/esm/models/CallFlagUpdate.js +52 -0
- package/dist/esm/models/CallFlagWithCall.d.ts +117 -0
- package/dist/esm/models/CallFlagWithCall.js +92 -0
- package/dist/esm/models/CallFlagWithCallAllOfCall.d.ts +56 -0
- package/dist/esm/models/CallFlagWithCallAllOfCall.js +49 -0
- package/dist/esm/models/CancelSubscriptionRequest.d.ts +2 -2
- package/dist/esm/models/CheckoutSessionResponse.d.ts +2 -2
- package/dist/esm/models/CreateCheckoutSessionRequest.d.ts +21 -7
- package/dist/esm/models/CreateCheckoutSessionRequest.js +18 -5
- package/dist/esm/models/CurrentPeriodUsage.d.ts +59 -0
- package/dist/esm/models/CurrentPeriodUsage.js +62 -0
- package/dist/esm/models/LifecycleResponse.d.ts +50 -0
- package/dist/esm/models/LifecycleResponse.js +51 -0
- package/dist/esm/models/PauseSubscriptionRequest.d.ts +1 -1
- package/dist/esm/models/PlanCatalogEntry.d.ts +90 -0
- package/dist/esm/models/PlanCatalogEntry.js +73 -0
- package/dist/esm/models/PlanCatalogEntryOverageInner.d.ts +44 -0
- package/dist/esm/models/PlanCatalogEntryOverageInner.js +45 -0
- package/dist/esm/models/PlanCatalogPrice.d.ts +58 -0
- package/dist/esm/models/PlanCatalogPrice.js +60 -0
- package/dist/esm/models/SubscriptionPlanSummary.d.ts +83 -0
- package/dist/esm/models/SubscriptionPlanSummary.js +70 -0
- package/dist/esm/models/SubscriptionPlanSummaryOverageRate.d.ts +38 -0
- package/dist/esm/models/SubscriptionPlanSummaryOverageRate.js +43 -0
- package/dist/esm/models/SubscriptionStatus.d.ts +103 -10
- package/dist/esm/models/SubscriptionStatus.js +58 -9
- package/dist/esm/models/SubscriptionUsageSummary.d.ts +56 -0
- package/dist/esm/models/SubscriptionUsageSummary.js +57 -0
- package/dist/esm/models/UpdatePlanRequest.d.ts +13 -5
- package/dist/esm/models/UpdatePlanRequest.js +12 -3
- package/dist/esm/models/UsageBreakdownByAgent.d.ts +44 -0
- package/dist/esm/models/UsageBreakdownByAgent.js +49 -0
- package/dist/esm/models/UsageBreakdownByDay.d.ts +44 -0
- package/dist/esm/models/UsageBreakdownByDay.js +51 -0
- package/dist/esm/models/UsageHistoryResponse.d.ts +39 -0
- package/dist/esm/models/UsageHistoryResponse.js +48 -0
- package/dist/esm/models/UsageRecordDto.d.ts +80 -0
- package/dist/esm/models/UsageRecordDto.js +65 -0
- package/dist/esm/models/VoiceUsageReportRequest.d.ts +62 -0
- package/dist/esm/models/VoiceUsageReportRequest.js +57 -0
- package/dist/esm/models/VoiceUsageReportResponse.d.ts +51 -0
- package/dist/esm/models/VoiceUsageReportResponse.js +52 -0
- package/dist/esm/models/index.d.ts +23 -13
- package/dist/esm/models/index.js +23 -13
- package/dist/models/AdminGrantMinutesRequest.d.ts +38 -0
- package/dist/models/AdminGrantMinutesRequest.js +52 -0
- package/dist/models/AdminSetSubscriptionRequest.d.ts +86 -0
- package/dist/models/AdminSetSubscriptionRequest.js +79 -0
- package/dist/models/AdminSubscriptionsListResponse.d.ts +39 -0
- package/dist/models/AdminSubscriptionsListResponse.js +55 -0
- package/dist/models/BillingPortalRequest.d.ts +1 -1
- package/dist/models/BillingPortalResponse.d.ts +1 -1
- package/dist/models/Call.d.ts +7 -0
- package/dist/models/Call.js +3 -0
- package/dist/models/CallFlag.d.ts +110 -0
- package/dist/models/CallFlag.js +97 -0
- package/dist/models/CallFlagCreate.d.ts +48 -0
- package/dist/models/CallFlagCreate.js +62 -0
- package/dist/models/CallFlagResolve.d.ts +32 -0
- package/dist/models/CallFlagResolve.js +48 -0
- package/dist/models/CallFlagUpdate.d.ts +48 -0
- package/dist/models/CallFlagUpdate.js +60 -0
- package/dist/models/CallFlagWithCall.d.ts +117 -0
- package/dist/models/CallFlagWithCall.js +100 -0
- package/dist/models/CallFlagWithCallAllOfCall.d.ts +56 -0
- package/dist/models/CallFlagWithCallAllOfCall.js +56 -0
- package/dist/models/CancelSubscriptionRequest.d.ts +2 -2
- package/dist/models/CheckoutSessionResponse.d.ts +2 -2
- package/dist/models/CreateCheckoutSessionRequest.d.ts +21 -7
- package/dist/models/CreateCheckoutSessionRequest.js +19 -5
- package/dist/models/CurrentPeriodUsage.d.ts +59 -0
- package/dist/models/CurrentPeriodUsage.js +69 -0
- package/dist/models/LifecycleResponse.d.ts +50 -0
- package/dist/models/LifecycleResponse.js +58 -0
- package/dist/models/PauseSubscriptionRequest.d.ts +1 -1
- package/dist/models/PlanCatalogEntry.d.ts +90 -0
- package/dist/models/PlanCatalogEntry.js +80 -0
- package/dist/models/PlanCatalogEntryOverageInner.d.ts +44 -0
- package/dist/models/PlanCatalogEntryOverageInner.js +52 -0
- package/dist/models/PlanCatalogPrice.d.ts +58 -0
- package/dist/models/PlanCatalogPrice.js +68 -0
- package/dist/models/SubscriptionPlanSummary.d.ts +83 -0
- package/dist/models/SubscriptionPlanSummary.js +77 -0
- package/dist/models/SubscriptionPlanSummaryOverageRate.d.ts +38 -0
- package/dist/models/SubscriptionPlanSummaryOverageRate.js +50 -0
- package/dist/models/SubscriptionStatus.d.ts +103 -10
- package/dist/models/SubscriptionStatus.js +59 -9
- package/dist/models/SubscriptionUsageSummary.d.ts +56 -0
- package/dist/models/SubscriptionUsageSummary.js +64 -0
- package/dist/models/UpdatePlanRequest.d.ts +13 -5
- package/dist/models/UpdatePlanRequest.js +13 -3
- package/dist/models/UsageBreakdownByAgent.d.ts +44 -0
- package/dist/models/UsageBreakdownByAgent.js +56 -0
- package/dist/models/UsageBreakdownByDay.d.ts +44 -0
- package/dist/models/UsageBreakdownByDay.js +58 -0
- package/dist/models/UsageHistoryResponse.d.ts +39 -0
- package/dist/models/UsageHistoryResponse.js +55 -0
- package/dist/models/UsageRecordDto.d.ts +80 -0
- package/dist/models/UsageRecordDto.js +72 -0
- package/dist/models/VoiceUsageReportRequest.d.ts +62 -0
- package/dist/models/VoiceUsageReportRequest.js +64 -0
- package/dist/models/VoiceUsageReportResponse.d.ts +51 -0
- package/dist/models/VoiceUsageReportResponse.js +59 -0
- package/dist/models/index.d.ts +23 -13
- package/dist/models/index.js +23 -13
- package/package.json +1 -1
- package/src/api-client.ts +71 -6
- package/src/apis/AdminSubscriptionsApi.ts +331 -0
- package/src/apis/CallFlagsApi.ts +546 -0
- package/src/apis/SubscriptionApi.ts +130 -162
- package/src/apis/VoiceUsageApi.ts +86 -0
- package/src/apis/index.ts +3 -0
- package/src/models/AdminGrantMinutesRequest.ts +74 -0
- package/src/models/AdminSetSubscriptionRequest.ts +136 -0
- package/src/models/AdminSubscriptionsListResponse.ts +83 -0
- package/src/models/BillingPortalRequest.ts +1 -1
- package/src/models/BillingPortalResponse.ts +1 -1
- package/src/models/Call.ts +16 -0
- package/src/models/CallFlag.ts +173 -0
- package/src/models/CallFlagCreate.ts +87 -0
- package/src/models/CallFlagResolve.ts +65 -0
- package/src/models/CallFlagUpdate.ts +86 -0
- package/src/models/CallFlagWithCall.ts +189 -0
- package/src/models/CallFlagWithCallAllOfCall.ts +97 -0
- package/src/models/CancelSubscriptionRequest.ts +2 -2
- package/src/models/CheckoutSessionResponse.ts +2 -2
- package/src/models/CreateCheckoutSessionRequest.ts +33 -12
- package/src/models/CurrentPeriodUsage.ts +124 -0
- package/src/models/LifecycleResponse.ts +91 -0
- package/src/models/PauseSubscriptionRequest.ts +1 -1
- package/src/models/PlanCatalogEntry.ts +158 -0
- package/src/models/PlanCatalogEntryOverageInner.ts +81 -0
- package/src/models/PlanCatalogPrice.ts +103 -0
- package/src/models/SubscriptionPlanSummary.ts +143 -0
- package/src/models/SubscriptionPlanSummaryOverageRate.ts +73 -0
- package/src/models/SubscriptionStatus.ts +150 -32
- package/src/models/SubscriptionUsageSummary.ts +101 -0
- package/src/models/UpdatePlanRequest.ts +20 -8
- package/src/models/UsageBreakdownByAgent.ts +83 -0
- package/src/models/UsageBreakdownByDay.ts +84 -0
- package/src/models/UsageHistoryResponse.ts +83 -0
- package/src/models/UsageRecordDto.ts +133 -0
- package/src/models/VoiceUsageReportRequest.ts +108 -0
- package/src/models/VoiceUsageReportResponse.ts +99 -0
- package/src/models/index.ts +23 -13
|
@@ -0,0 +1,62 @@
|
|
|
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 VoiceUsageReportRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface VoiceUsageReportRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof VoiceUsageReportRequest
|
|
22
|
+
*/
|
|
23
|
+
organizationId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof VoiceUsageReportRequest
|
|
28
|
+
*/
|
|
29
|
+
voiceAgentId?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof VoiceUsageReportRequest
|
|
34
|
+
*/
|
|
35
|
+
callId?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof VoiceUsageReportRequest
|
|
40
|
+
*/
|
|
41
|
+
seconds: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof VoiceUsageReportRequest
|
|
46
|
+
*/
|
|
47
|
+
idempotencyKey: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof VoiceUsageReportRequest
|
|
52
|
+
*/
|
|
53
|
+
note?: string;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the VoiceUsageReportRequest interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfVoiceUsageReportRequest(value: object): value is VoiceUsageReportRequest;
|
|
59
|
+
export declare function VoiceUsageReportRequestFromJSON(json: any): VoiceUsageReportRequest;
|
|
60
|
+
export declare function VoiceUsageReportRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): VoiceUsageReportRequest;
|
|
61
|
+
export declare function VoiceUsageReportRequestToJSON(json: any): VoiceUsageReportRequest;
|
|
62
|
+
export declare function VoiceUsageReportRequestToJSONTyped(value?: VoiceUsageReportRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
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.instanceOfVoiceUsageReportRequest = instanceOfVoiceUsageReportRequest;
|
|
17
|
+
exports.VoiceUsageReportRequestFromJSON = VoiceUsageReportRequestFromJSON;
|
|
18
|
+
exports.VoiceUsageReportRequestFromJSONTyped = VoiceUsageReportRequestFromJSONTyped;
|
|
19
|
+
exports.VoiceUsageReportRequestToJSON = VoiceUsageReportRequestToJSON;
|
|
20
|
+
exports.VoiceUsageReportRequestToJSONTyped = VoiceUsageReportRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the VoiceUsageReportRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfVoiceUsageReportRequest(value) {
|
|
25
|
+
if (!('organizationId' in value) || value['organizationId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('seconds' in value) || value['seconds'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('idempotencyKey' in value) || value['idempotencyKey'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function VoiceUsageReportRequestFromJSON(json) {
|
|
34
|
+
return VoiceUsageReportRequestFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function VoiceUsageReportRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'organizationId': json['organizationId'],
|
|
42
|
+
'voiceAgentId': json['voiceAgentId'] == null ? undefined : json['voiceAgentId'],
|
|
43
|
+
'callId': json['callId'] == null ? undefined : json['callId'],
|
|
44
|
+
'seconds': json['seconds'],
|
|
45
|
+
'idempotencyKey': json['idempotencyKey'],
|
|
46
|
+
'note': json['note'] == null ? undefined : json['note'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function VoiceUsageReportRequestToJSON(json) {
|
|
50
|
+
return VoiceUsageReportRequestToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function VoiceUsageReportRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'organizationId': value['organizationId'],
|
|
58
|
+
'voiceAgentId': value['voiceAgentId'],
|
|
59
|
+
'callId': value['callId'],
|
|
60
|
+
'seconds': value['seconds'],
|
|
61
|
+
'idempotencyKey': value['idempotencyKey'],
|
|
62
|
+
'note': value['note'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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 { SubscriptionUsageSummary } from './SubscriptionUsageSummary';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface VoiceUsageReportResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface VoiceUsageReportResponse {
|
|
19
|
+
/**
|
|
20
|
+
* True for new records; false if idempotency key was already used.
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof VoiceUsageReportResponse
|
|
23
|
+
*/
|
|
24
|
+
recorded: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof VoiceUsageReportResponse
|
|
29
|
+
*/
|
|
30
|
+
usageRecordId?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {SubscriptionUsageSummary}
|
|
34
|
+
* @memberof VoiceUsageReportResponse
|
|
35
|
+
*/
|
|
36
|
+
usage: SubscriptionUsageSummary;
|
|
37
|
+
/**
|
|
38
|
+
* Minutes reported to Stripe as overage for this event.
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof VoiceUsageReportResponse
|
|
41
|
+
*/
|
|
42
|
+
overageReported?: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the VoiceUsageReportResponse interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfVoiceUsageReportResponse(value: object): value is VoiceUsageReportResponse;
|
|
48
|
+
export declare function VoiceUsageReportResponseFromJSON(json: any): VoiceUsageReportResponse;
|
|
49
|
+
export declare function VoiceUsageReportResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VoiceUsageReportResponse;
|
|
50
|
+
export declare function VoiceUsageReportResponseToJSON(json: any): VoiceUsageReportResponse;
|
|
51
|
+
export declare function VoiceUsageReportResponseToJSONTyped(value?: VoiceUsageReportResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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.instanceOfVoiceUsageReportResponse = instanceOfVoiceUsageReportResponse;
|
|
17
|
+
exports.VoiceUsageReportResponseFromJSON = VoiceUsageReportResponseFromJSON;
|
|
18
|
+
exports.VoiceUsageReportResponseFromJSONTyped = VoiceUsageReportResponseFromJSONTyped;
|
|
19
|
+
exports.VoiceUsageReportResponseToJSON = VoiceUsageReportResponseToJSON;
|
|
20
|
+
exports.VoiceUsageReportResponseToJSONTyped = VoiceUsageReportResponseToJSONTyped;
|
|
21
|
+
const SubscriptionUsageSummary_1 = require("./SubscriptionUsageSummary");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the VoiceUsageReportResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfVoiceUsageReportResponse(value) {
|
|
26
|
+
if (!('recorded' in value) || value['recorded'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('usage' in value) || value['usage'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function VoiceUsageReportResponseFromJSON(json) {
|
|
33
|
+
return VoiceUsageReportResponseFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function VoiceUsageReportResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'recorded': json['recorded'],
|
|
41
|
+
'usageRecordId': json['usageRecordId'] == null ? undefined : json['usageRecordId'],
|
|
42
|
+
'usage': (0, SubscriptionUsageSummary_1.SubscriptionUsageSummaryFromJSON)(json['usage']),
|
|
43
|
+
'overageReported': json['overageReported'] == null ? undefined : json['overageReported'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function VoiceUsageReportResponseToJSON(json) {
|
|
47
|
+
return VoiceUsageReportResponseToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function VoiceUsageReportResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'recorded': value['recorded'],
|
|
55
|
+
'usageRecordId': value['usageRecordId'],
|
|
56
|
+
'usage': (0, SubscriptionUsageSummary_1.SubscriptionUsageSummaryToJSON)(value['usage']),
|
|
57
|
+
'overageReported': value['overageReported'],
|
|
58
|
+
};
|
|
59
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
export * from './AdminGrantMinutesRequest';
|
|
2
|
+
export * from './AdminSetSubscriptionRequest';
|
|
3
|
+
export * from './AdminSubscriptionsListResponse';
|
|
1
4
|
export * from './AgentTool';
|
|
2
5
|
export * from './AgentToolUpsert';
|
|
3
6
|
export * from './BillingPortalRequest';
|
|
@@ -14,17 +17,20 @@ export * from './CalendarMetadataBookingConstraints';
|
|
|
14
17
|
export * from './CalendarUpdate';
|
|
15
18
|
export * from './Call';
|
|
16
19
|
export * from './CallCreate';
|
|
20
|
+
export * from './CallFlag';
|
|
21
|
+
export * from './CallFlagCreate';
|
|
22
|
+
export * from './CallFlagResolve';
|
|
23
|
+
export * from './CallFlagUpdate';
|
|
24
|
+
export * from './CallFlagWithCall';
|
|
25
|
+
export * from './CallFlagWithCallAllOfCall';
|
|
17
26
|
export * from './CallUpdate';
|
|
18
27
|
export * from './CancelSubscriptionRequest';
|
|
19
|
-
export * from './CancelSubscriptionResponse';
|
|
20
28
|
export * from './ChatAgent';
|
|
21
29
|
export * from './ChatAgentCreate';
|
|
22
30
|
export * from './ChatAgentUpdate';
|
|
23
31
|
export * from './CheckoutSessionResponse';
|
|
24
32
|
export * from './CreateCheckoutSessionRequest';
|
|
25
|
-
export * from './
|
|
26
|
-
export * from './CreditTransaction';
|
|
27
|
-
export * from './CreditTransactionsResponse';
|
|
33
|
+
export * from './CurrentPeriodUsage';
|
|
28
34
|
export * from './DispatchRuleCreate';
|
|
29
35
|
export * from './HistoryConversation';
|
|
30
36
|
export * from './HistoryMessage';
|
|
@@ -32,6 +38,7 @@ export * from './HistorySummary';
|
|
|
32
38
|
export * from './InvitationAccept';
|
|
33
39
|
export * from './InvitationCreate';
|
|
34
40
|
export * from './InvitationResponse';
|
|
41
|
+
export * from './LifecycleResponse';
|
|
35
42
|
export * from './LlmAgent';
|
|
36
43
|
export * from './LlmAgentInput';
|
|
37
44
|
export * from './LlmAgentUpdateInput';
|
|
@@ -55,8 +62,6 @@ export * from './OrganizationsOrganizationIdSipDispatchRulesPost200Response';
|
|
|
55
62
|
export * from './OrganizationsOrganizationIdVoiceAgentsBasicGet200ResponseInner';
|
|
56
63
|
export * from './OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest';
|
|
57
64
|
export * from './PauseSubscriptionRequest';
|
|
58
|
-
export * from './PauseSubscriptionResponse';
|
|
59
|
-
export * from './PauseSubscriptionResponsePauseCollection';
|
|
60
65
|
export * from './PhoneNumber';
|
|
61
66
|
export * from './PhoneNumberCreate';
|
|
62
67
|
export * from './Phonebook';
|
|
@@ -66,6 +71,9 @@ export * from './PhonebookEntryUpdate';
|
|
|
66
71
|
export * from './PhonebookImportResult';
|
|
67
72
|
export * from './PhonebookImportResultErrorsInner';
|
|
68
73
|
export * from './PhonebookUpdate';
|
|
74
|
+
export * from './PlanCatalogEntry';
|
|
75
|
+
export * from './PlanCatalogEntryOverageInner';
|
|
76
|
+
export * from './PlanCatalogPrice';
|
|
69
77
|
export * from './RagConfig';
|
|
70
78
|
export * from './RagConfigCreate';
|
|
71
79
|
export * from './RagDocument';
|
|
@@ -73,7 +81,6 @@ export * from './RagDocumentChunk';
|
|
|
73
81
|
export * from './RagDocumentChunkList';
|
|
74
82
|
export * from './RagDocumentList';
|
|
75
83
|
export * from './RecordingSignedUrl';
|
|
76
|
-
export * from './ResumeSubscriptionResponse';
|
|
77
84
|
export * from './SandboxToken';
|
|
78
85
|
export * from './SipTrunk';
|
|
79
86
|
export * from './SipTrunkCreate';
|
|
@@ -81,11 +88,10 @@ export * from './SipTrunkWithAgent';
|
|
|
81
88
|
export * from './SipTrunkWithAgentAllOfAgents';
|
|
82
89
|
export * from './SttProvider';
|
|
83
90
|
export * from './SttProviderModel';
|
|
84
|
-
export * from './
|
|
91
|
+
export * from './SubscriptionPlanSummary';
|
|
92
|
+
export * from './SubscriptionPlanSummaryOverageRate';
|
|
85
93
|
export * from './SubscriptionStatus';
|
|
86
|
-
export * from './
|
|
87
|
-
export * from './SubscriptionStatusService';
|
|
88
|
-
export * from './SubscriptionStatusSubscription';
|
|
94
|
+
export * from './SubscriptionUsageSummary';
|
|
89
95
|
export * from './Tool';
|
|
90
96
|
export * from './ToolConfig';
|
|
91
97
|
export * from './ToolCreate';
|
|
@@ -93,9 +99,11 @@ export * from './ToolUpdate';
|
|
|
93
99
|
export * from './TtsProvider';
|
|
94
100
|
export * from './TtsProviderModel';
|
|
95
101
|
export * from './TtsProviderVoice';
|
|
96
|
-
export * from './UnpauseSubscriptionResponse';
|
|
97
102
|
export * from './UpdatePlanRequest';
|
|
98
|
-
export * from './
|
|
103
|
+
export * from './UsageBreakdownByAgent';
|
|
104
|
+
export * from './UsageBreakdownByDay';
|
|
105
|
+
export * from './UsageHistoryResponse';
|
|
106
|
+
export * from './UsageRecordDto';
|
|
99
107
|
export * from './UserPreferences';
|
|
100
108
|
export * from './UserPreferencesUpdate';
|
|
101
109
|
export * from './VoiceAgent';
|
|
@@ -104,5 +112,7 @@ export * from './VoiceAgentMetadata';
|
|
|
104
112
|
export * from './VoiceAgentUpdate';
|
|
105
113
|
export * from './VoiceAgentWithSipTrunks';
|
|
106
114
|
export * from './VoiceAgentWithSipTrunksAllOfSipTrunks';
|
|
115
|
+
export * from './VoiceUsageReportRequest';
|
|
116
|
+
export * from './VoiceUsageReportResponse';
|
|
107
117
|
export * from './WidgetConfig';
|
|
108
118
|
export * from './WidgetPosition';
|
package/dist/models/index.js
CHANGED
|
@@ -16,6 +16,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./AdminGrantMinutesRequest"), exports);
|
|
20
|
+
__exportStar(require("./AdminSetSubscriptionRequest"), exports);
|
|
21
|
+
__exportStar(require("./AdminSubscriptionsListResponse"), exports);
|
|
19
22
|
__exportStar(require("./AgentTool"), exports);
|
|
20
23
|
__exportStar(require("./AgentToolUpsert"), exports);
|
|
21
24
|
__exportStar(require("./BillingPortalRequest"), exports);
|
|
@@ -32,17 +35,20 @@ __exportStar(require("./CalendarMetadataBookingConstraints"), exports);
|
|
|
32
35
|
__exportStar(require("./CalendarUpdate"), exports);
|
|
33
36
|
__exportStar(require("./Call"), exports);
|
|
34
37
|
__exportStar(require("./CallCreate"), exports);
|
|
38
|
+
__exportStar(require("./CallFlag"), exports);
|
|
39
|
+
__exportStar(require("./CallFlagCreate"), exports);
|
|
40
|
+
__exportStar(require("./CallFlagResolve"), exports);
|
|
41
|
+
__exportStar(require("./CallFlagUpdate"), exports);
|
|
42
|
+
__exportStar(require("./CallFlagWithCall"), exports);
|
|
43
|
+
__exportStar(require("./CallFlagWithCallAllOfCall"), exports);
|
|
35
44
|
__exportStar(require("./CallUpdate"), exports);
|
|
36
45
|
__exportStar(require("./CancelSubscriptionRequest"), exports);
|
|
37
|
-
__exportStar(require("./CancelSubscriptionResponse"), exports);
|
|
38
46
|
__exportStar(require("./ChatAgent"), exports);
|
|
39
47
|
__exportStar(require("./ChatAgentCreate"), exports);
|
|
40
48
|
__exportStar(require("./ChatAgentUpdate"), exports);
|
|
41
49
|
__exportStar(require("./CheckoutSessionResponse"), exports);
|
|
42
50
|
__exportStar(require("./CreateCheckoutSessionRequest"), exports);
|
|
43
|
-
__exportStar(require("./
|
|
44
|
-
__exportStar(require("./CreditTransaction"), exports);
|
|
45
|
-
__exportStar(require("./CreditTransactionsResponse"), exports);
|
|
51
|
+
__exportStar(require("./CurrentPeriodUsage"), exports);
|
|
46
52
|
__exportStar(require("./DispatchRuleCreate"), exports);
|
|
47
53
|
__exportStar(require("./HistoryConversation"), exports);
|
|
48
54
|
__exportStar(require("./HistoryMessage"), exports);
|
|
@@ -50,6 +56,7 @@ __exportStar(require("./HistorySummary"), exports);
|
|
|
50
56
|
__exportStar(require("./InvitationAccept"), exports);
|
|
51
57
|
__exportStar(require("./InvitationCreate"), exports);
|
|
52
58
|
__exportStar(require("./InvitationResponse"), exports);
|
|
59
|
+
__exportStar(require("./LifecycleResponse"), exports);
|
|
53
60
|
__exportStar(require("./LlmAgent"), exports);
|
|
54
61
|
__exportStar(require("./LlmAgentInput"), exports);
|
|
55
62
|
__exportStar(require("./LlmAgentUpdateInput"), exports);
|
|
@@ -73,8 +80,6 @@ __exportStar(require("./OrganizationsOrganizationIdSipDispatchRulesPost200Respon
|
|
|
73
80
|
__exportStar(require("./OrganizationsOrganizationIdVoiceAgentsBasicGet200ResponseInner"), exports);
|
|
74
81
|
__exportStar(require("./OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest"), exports);
|
|
75
82
|
__exportStar(require("./PauseSubscriptionRequest"), exports);
|
|
76
|
-
__exportStar(require("./PauseSubscriptionResponse"), exports);
|
|
77
|
-
__exportStar(require("./PauseSubscriptionResponsePauseCollection"), exports);
|
|
78
83
|
__exportStar(require("./PhoneNumber"), exports);
|
|
79
84
|
__exportStar(require("./PhoneNumberCreate"), exports);
|
|
80
85
|
__exportStar(require("./Phonebook"), exports);
|
|
@@ -84,6 +89,9 @@ __exportStar(require("./PhonebookEntryUpdate"), exports);
|
|
|
84
89
|
__exportStar(require("./PhonebookImportResult"), exports);
|
|
85
90
|
__exportStar(require("./PhonebookImportResultErrorsInner"), exports);
|
|
86
91
|
__exportStar(require("./PhonebookUpdate"), exports);
|
|
92
|
+
__exportStar(require("./PlanCatalogEntry"), exports);
|
|
93
|
+
__exportStar(require("./PlanCatalogEntryOverageInner"), exports);
|
|
94
|
+
__exportStar(require("./PlanCatalogPrice"), exports);
|
|
87
95
|
__exportStar(require("./RagConfig"), exports);
|
|
88
96
|
__exportStar(require("./RagConfigCreate"), exports);
|
|
89
97
|
__exportStar(require("./RagDocument"), exports);
|
|
@@ -91,7 +99,6 @@ __exportStar(require("./RagDocumentChunk"), exports);
|
|
|
91
99
|
__exportStar(require("./RagDocumentChunkList"), exports);
|
|
92
100
|
__exportStar(require("./RagDocumentList"), exports);
|
|
93
101
|
__exportStar(require("./RecordingSignedUrl"), exports);
|
|
94
|
-
__exportStar(require("./ResumeSubscriptionResponse"), exports);
|
|
95
102
|
__exportStar(require("./SandboxToken"), exports);
|
|
96
103
|
__exportStar(require("./SipTrunk"), exports);
|
|
97
104
|
__exportStar(require("./SipTrunkCreate"), exports);
|
|
@@ -99,11 +106,10 @@ __exportStar(require("./SipTrunkWithAgent"), exports);
|
|
|
99
106
|
__exportStar(require("./SipTrunkWithAgentAllOfAgents"), exports);
|
|
100
107
|
__exportStar(require("./SttProvider"), exports);
|
|
101
108
|
__exportStar(require("./SttProviderModel"), exports);
|
|
102
|
-
__exportStar(require("./
|
|
109
|
+
__exportStar(require("./SubscriptionPlanSummary"), exports);
|
|
110
|
+
__exportStar(require("./SubscriptionPlanSummaryOverageRate"), exports);
|
|
103
111
|
__exportStar(require("./SubscriptionStatus"), exports);
|
|
104
|
-
__exportStar(require("./
|
|
105
|
-
__exportStar(require("./SubscriptionStatusService"), exports);
|
|
106
|
-
__exportStar(require("./SubscriptionStatusSubscription"), exports);
|
|
112
|
+
__exportStar(require("./SubscriptionUsageSummary"), exports);
|
|
107
113
|
__exportStar(require("./Tool"), exports);
|
|
108
114
|
__exportStar(require("./ToolConfig"), exports);
|
|
109
115
|
__exportStar(require("./ToolCreate"), exports);
|
|
@@ -111,9 +117,11 @@ __exportStar(require("./ToolUpdate"), exports);
|
|
|
111
117
|
__exportStar(require("./TtsProvider"), exports);
|
|
112
118
|
__exportStar(require("./TtsProviderModel"), exports);
|
|
113
119
|
__exportStar(require("./TtsProviderVoice"), exports);
|
|
114
|
-
__exportStar(require("./UnpauseSubscriptionResponse"), exports);
|
|
115
120
|
__exportStar(require("./UpdatePlanRequest"), exports);
|
|
116
|
-
__exportStar(require("./
|
|
121
|
+
__exportStar(require("./UsageBreakdownByAgent"), exports);
|
|
122
|
+
__exportStar(require("./UsageBreakdownByDay"), exports);
|
|
123
|
+
__exportStar(require("./UsageHistoryResponse"), exports);
|
|
124
|
+
__exportStar(require("./UsageRecordDto"), exports);
|
|
117
125
|
__exportStar(require("./UserPreferences"), exports);
|
|
118
126
|
__exportStar(require("./UserPreferencesUpdate"), exports);
|
|
119
127
|
__exportStar(require("./VoiceAgent"), exports);
|
|
@@ -122,5 +130,7 @@ __exportStar(require("./VoiceAgentMetadata"), exports);
|
|
|
122
130
|
__exportStar(require("./VoiceAgentUpdate"), exports);
|
|
123
131
|
__exportStar(require("./VoiceAgentWithSipTrunks"), exports);
|
|
124
132
|
__exportStar(require("./VoiceAgentWithSipTrunksAllOfSipTrunks"), exports);
|
|
133
|
+
__exportStar(require("./VoiceUsageReportRequest"), exports);
|
|
134
|
+
__exportStar(require("./VoiceUsageReportResponse"), exports);
|
|
125
135
|
__exportStar(require("./WidgetConfig"), exports);
|
|
126
136
|
__exportStar(require("./WidgetPosition"), exports);
|
package/package.json
CHANGED
package/src/api-client.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { CallsApi, type OrganizationsOrganizationIdCallsGetSandboxEnum } from "./apis/CallsApi";
|
|
2
|
+
import {
|
|
3
|
+
CallFlagsApi,
|
|
4
|
+
type OrganizationsOrganizationIdCallFlagsGetStatusEnum,
|
|
5
|
+
type OrganizationsOrganizationIdCallFlagsGetFlagTypeEnum,
|
|
6
|
+
} from "./apis/CallFlagsApi";
|
|
2
7
|
import { CalendarApi } from "./apis/CalendarApi";
|
|
3
8
|
import { ChatAgentsApi } from "./apis/ChatAgentsApi";
|
|
4
9
|
|
|
@@ -18,6 +23,8 @@ import { LLMProvidersApi } from "./apis/LLMProvidersApi";
|
|
|
18
23
|
import { STTProvidersApi } from "./apis/STTProvidersApi";
|
|
19
24
|
import { TTSProvidersApi } from "./apis/TTSProvidersApi";
|
|
20
25
|
import { SubscriptionApi } from "./apis/SubscriptionApi";
|
|
26
|
+
import { AdminSubscriptionsApi } from "./apis/AdminSubscriptionsApi";
|
|
27
|
+
import { VoiceUsageApi } from "./apis/VoiceUsageApi";
|
|
21
28
|
import { VoiceAgentsApi } from "./apis/VoiceAgentsApi";
|
|
22
29
|
import { ToolsApi } from "./apis/ToolsApi";
|
|
23
30
|
import { PhonebookApi } from "./apis/PhonebookApi";
|
|
@@ -26,6 +33,9 @@ import { Configuration } from "./runtime";
|
|
|
26
33
|
import type {
|
|
27
34
|
CallCreate,
|
|
28
35
|
CallUpdate,
|
|
36
|
+
CallFlagCreate,
|
|
37
|
+
CallFlagUpdate,
|
|
38
|
+
CallFlagResolve,
|
|
29
39
|
Notification,
|
|
30
40
|
NotificationScope,
|
|
31
41
|
NotificationSeverity,
|
|
@@ -51,6 +61,9 @@ import type {
|
|
|
51
61
|
UpdatePlanRequest,
|
|
52
62
|
PauseSubscriptionRequest,
|
|
53
63
|
BillingPortalRequest,
|
|
64
|
+
AdminSetSubscriptionRequest,
|
|
65
|
+
AdminGrantMinutesRequest,
|
|
66
|
+
VoiceUsageReportRequest,
|
|
54
67
|
OrganizationsOrganizationIdNotificationsGet200Response,
|
|
55
68
|
UserPreferencesUpdate,
|
|
56
69
|
AgentToolUpsert,
|
|
@@ -59,6 +72,11 @@ import type {
|
|
|
59
72
|
PhonebookEntryUpdate,
|
|
60
73
|
} from "./models";
|
|
61
74
|
|
|
75
|
+
function toDate(value: Date | string | undefined): Date | undefined {
|
|
76
|
+
if (value === undefined) return undefined;
|
|
77
|
+
return value instanceof Date ? value : new Date(value);
|
|
78
|
+
}
|
|
79
|
+
|
|
62
80
|
export interface ApiClientConfig {
|
|
63
81
|
baseUrl: string;
|
|
64
82
|
options?: {
|
|
@@ -74,6 +92,15 @@ export class Api {
|
|
|
74
92
|
update: (organizationId: string, callId: string, callUpdate: CallUpdate, options?: RequestInit) => ReturnType<CallsApi["organizationsOrganizationIdCallsCallIdPut"]>;
|
|
75
93
|
delete: (organizationId: string, callId: string, options?: RequestInit) => ReturnType<CallsApi["organizationsOrganizationIdCallsCallIdDelete"]>;
|
|
76
94
|
};
|
|
95
|
+
public readonly callFlags: {
|
|
96
|
+
list: (organizationId: string, filters?: { status?: OrganizationsOrganizationIdCallFlagsGetStatusEnum; flagType?: OrganizationsOrganizationIdCallFlagsGetFlagTypeEnum; voiceAgentId?: string; limit?: number; offset?: number }, options?: RequestInit) => ReturnType<CallFlagsApi["organizationsOrganizationIdCallFlagsGet"]>;
|
|
97
|
+
listForCall: (organizationId: string, callId: string, options?: RequestInit) => ReturnType<CallFlagsApi["organizationsOrganizationIdCallsCallIdFlagsGet"]>;
|
|
98
|
+
create: (organizationId: string, callId: string, callFlagCreate: CallFlagCreate, options?: RequestInit) => ReturnType<CallFlagsApi["organizationsOrganizationIdCallsCallIdFlagsPost"]>;
|
|
99
|
+
update: (organizationId: string, callId: string, flagId: string, callFlagUpdate: CallFlagUpdate, options?: RequestInit) => ReturnType<CallFlagsApi["organizationsOrganizationIdCallsCallIdFlagsFlagIdPatch"]>;
|
|
100
|
+
resolve: (organizationId: string, callId: string, flagId: string, callFlagResolve?: CallFlagResolve, options?: RequestInit) => ReturnType<CallFlagsApi["organizationsOrganizationIdCallsCallIdFlagsFlagIdResolvePost"]>;
|
|
101
|
+
reopen: (organizationId: string, callId: string, flagId: string, options?: RequestInit) => ReturnType<CallFlagsApi["organizationsOrganizationIdCallsCallIdFlagsFlagIdReopenPost"]>;
|
|
102
|
+
delete: (organizationId: string, callId: string, flagId: string, options?: RequestInit) => ReturnType<CallFlagsApi["organizationsOrganizationIdCallsCallIdFlagsFlagIdDelete"]>;
|
|
103
|
+
};
|
|
77
104
|
public readonly voiceAgents: {
|
|
78
105
|
list: (organizationId: string, options?: RequestInit) => ReturnType<VoiceAgentsApi["organizationsOrganizationIdVoiceAgentsGet"]>;
|
|
79
106
|
listBasic: (organizationId: string, options?: RequestInit) => ReturnType<VoiceAgentsApi["organizationsOrganizationIdVoiceAgentsBasicGet"]>;
|
|
@@ -158,7 +185,7 @@ export class Api {
|
|
|
158
185
|
};
|
|
159
186
|
public readonly subscription: {
|
|
160
187
|
getStatus: (organizationId: string, options?: RequestInit) => ReturnType<SubscriptionApi["organizationsOrganizationIdSubscriptionGet"]>;
|
|
161
|
-
|
|
188
|
+
listPlans: (organizationId: string, options?: RequestInit) => ReturnType<SubscriptionApi["organizationsOrganizationIdSubscriptionPlansGet"]>;
|
|
162
189
|
createCheckout: (organizationId: string, createCheckoutSessionRequest: CreateCheckoutSessionRequest, options?: RequestInit) => ReturnType<SubscriptionApi["organizationsOrganizationIdSubscriptionCheckoutPost"]>;
|
|
163
190
|
cancel: (organizationId: string, cancelSubscriptionRequest?: CancelSubscriptionRequest, options?: RequestInit) => ReturnType<SubscriptionApi["organizationsOrganizationIdSubscriptionCancelPost"]>;
|
|
164
191
|
resume: (organizationId: string, options?: RequestInit) => ReturnType<SubscriptionApi["organizationsOrganizationIdSubscriptionResumePost"]>;
|
|
@@ -166,8 +193,18 @@ export class Api {
|
|
|
166
193
|
pause: (organizationId: string, pauseSubscriptionRequest?: PauseSubscriptionRequest, options?: RequestInit) => ReturnType<SubscriptionApi["organizationsOrganizationIdSubscriptionPausePost"]>;
|
|
167
194
|
unpause: (organizationId: string, options?: RequestInit) => ReturnType<SubscriptionApi["organizationsOrganizationIdSubscriptionUnpausePost"]>;
|
|
168
195
|
billingPortal: (organizationId: string, billingPortalRequest: BillingPortalRequest, options?: RequestInit) => ReturnType<SubscriptionApi["organizationsOrganizationIdSubscriptionBillingPortalPost"]>;
|
|
169
|
-
|
|
170
|
-
|
|
196
|
+
getUsage: (organizationId: string, options?: RequestInit) => ReturnType<SubscriptionApi["organizationsOrganizationIdSubscriptionUsageGet"]>;
|
|
197
|
+
getUsageHistory: (organizationId: string, params?: { from?: Date | string; to?: Date | string; limit?: number; offset?: number }, options?: RequestInit) => ReturnType<SubscriptionApi["organizationsOrganizationIdSubscriptionUsageHistoryGet"]>;
|
|
198
|
+
};
|
|
199
|
+
public readonly adminSubscriptions: {
|
|
200
|
+
list: (params?: { status?: string; plan_slug?: string; search?: string; limit?: number; offset?: number }, options?: RequestInit) => ReturnType<AdminSubscriptionsApi["adminSubscriptionsGet"]>;
|
|
201
|
+
get: (organizationId: string, options?: RequestInit) => ReturnType<AdminSubscriptionsApi["adminSubscriptionsOrganizationIdGet"]>;
|
|
202
|
+
set: (organizationId: string, adminSetSubscriptionRequest: AdminSetSubscriptionRequest, options?: RequestInit) => ReturnType<AdminSubscriptionsApi["adminSubscriptionsOrganizationIdPost"]>;
|
|
203
|
+
grantMinutes: (organizationId: string, adminGrantMinutesRequest: AdminGrantMinutesRequest, options?: RequestInit) => ReturnType<AdminSubscriptionsApi["adminSubscriptionsOrganizationIdGrantMinutesPost"]>;
|
|
204
|
+
cancel: (organizationId: string, cancelSubscriptionRequest?: CancelSubscriptionRequest, options?: RequestInit) => ReturnType<AdminSubscriptionsApi["adminSubscriptionsOrganizationIdCancelPost"]>;
|
|
205
|
+
};
|
|
206
|
+
public readonly voiceUsage: {
|
|
207
|
+
report: (voiceUsageReportRequest: VoiceUsageReportRequest, options?: RequestInit) => ReturnType<VoiceUsageApi["voiceUsageReportPost"]>;
|
|
171
208
|
};
|
|
172
209
|
|
|
173
210
|
public readonly llmProviders: {
|
|
@@ -209,6 +246,7 @@ export class Api {
|
|
|
209
246
|
};
|
|
210
247
|
|
|
211
248
|
private readonly callsApi: CallsApi;
|
|
249
|
+
private readonly callFlagsApi: CallFlagsApi;
|
|
212
250
|
private readonly voiceAgentsApi: VoiceAgentsApi;
|
|
213
251
|
private readonly chatAgentsApi: ChatAgentsApi;
|
|
214
252
|
private readonly calendarApi: CalendarApi;
|
|
@@ -223,6 +261,8 @@ export class Api {
|
|
|
223
261
|
private readonly sipApi: SIPApi;
|
|
224
262
|
private readonly notificationsApi: NotificationsApi;
|
|
225
263
|
private readonly subscriptionApi: SubscriptionApi;
|
|
264
|
+
private readonly adminSubscriptionsApi: AdminSubscriptionsApi;
|
|
265
|
+
private readonly voiceUsageApi: VoiceUsageApi;
|
|
226
266
|
private readonly embeddingProvidersApi: EmbeddingProvidersApi;
|
|
227
267
|
private readonly llmProvidersApi: LLMProvidersApi;
|
|
228
268
|
private readonly sttProvidersApi: STTProvidersApi;
|
|
@@ -250,6 +290,7 @@ export class Api {
|
|
|
250
290
|
});
|
|
251
291
|
|
|
252
292
|
this.callsApi = new CallsApi(configuration);
|
|
293
|
+
this.callFlagsApi = new CallFlagsApi(configuration);
|
|
253
294
|
this.voiceAgentsApi = new VoiceAgentsApi(configuration);
|
|
254
295
|
this.chatAgentsApi = new ChatAgentsApi(configuration);
|
|
255
296
|
this.calendarApi = new CalendarApi(configuration);
|
|
@@ -264,6 +305,8 @@ export class Api {
|
|
|
264
305
|
this.sipApi = new SIPApi(configuration);
|
|
265
306
|
this.notificationsApi = new NotificationsApi(configuration);
|
|
266
307
|
this.subscriptionApi = new SubscriptionApi(configuration);
|
|
308
|
+
this.adminSubscriptionsApi = new AdminSubscriptionsApi(configuration);
|
|
309
|
+
this.voiceUsageApi = new VoiceUsageApi(configuration);
|
|
267
310
|
this.embeddingProvidersApi = new EmbeddingProvidersApi(configuration);
|
|
268
311
|
this.llmProvidersApi = new LLMProvidersApi(configuration);
|
|
269
312
|
this.sttProvidersApi = new STTProvidersApi(configuration);
|
|
@@ -279,6 +322,16 @@ export class Api {
|
|
|
279
322
|
delete: (organizationId, callId, options) => this.callsApi.organizationsOrganizationIdCallsCallIdDelete({ organizationId, callId }, options),
|
|
280
323
|
};
|
|
281
324
|
|
|
325
|
+
this.callFlags = {
|
|
326
|
+
list: (organizationId, filters, options) => this.callFlagsApi.organizationsOrganizationIdCallFlagsGet({ organizationId, status: filters?.status, flagType: filters?.flagType, voiceAgentId: filters?.voiceAgentId, limit: filters?.limit, offset: filters?.offset }, options),
|
|
327
|
+
listForCall: (organizationId, callId, options) => this.callFlagsApi.organizationsOrganizationIdCallsCallIdFlagsGet({ organizationId, callId }, options),
|
|
328
|
+
create: (organizationId, callId, callFlagCreate, options) => this.callFlagsApi.organizationsOrganizationIdCallsCallIdFlagsPost({ organizationId, callId, callFlagCreate }, options),
|
|
329
|
+
update: (organizationId, callId, flagId, callFlagUpdate, options) => this.callFlagsApi.organizationsOrganizationIdCallsCallIdFlagsFlagIdPatch({ organizationId, callId, flagId, callFlagUpdate }, options),
|
|
330
|
+
resolve: (organizationId, callId, flagId, callFlagResolve, options) => this.callFlagsApi.organizationsOrganizationIdCallsCallIdFlagsFlagIdResolvePost({ organizationId, callId, flagId, callFlagResolve }, options),
|
|
331
|
+
reopen: (organizationId, callId, flagId, options) => this.callFlagsApi.organizationsOrganizationIdCallsCallIdFlagsFlagIdReopenPost({ organizationId, callId, flagId }, options),
|
|
332
|
+
delete: (organizationId, callId, flagId, options) => this.callFlagsApi.organizationsOrganizationIdCallsCallIdFlagsFlagIdDelete({ organizationId, callId, flagId }, options),
|
|
333
|
+
};
|
|
334
|
+
|
|
282
335
|
this.voiceAgents = {
|
|
283
336
|
list: (organizationId, options) => this.voiceAgentsApi.organizationsOrganizationIdVoiceAgentsGet({ organizationId }, options),
|
|
284
337
|
listBasic: (organizationId, options) => this.voiceAgentsApi.organizationsOrganizationIdVoiceAgentsBasicGet({ organizationId }, options),
|
|
@@ -385,7 +438,7 @@ export class Api {
|
|
|
385
438
|
|
|
386
439
|
this.subscription = {
|
|
387
440
|
getStatus: (organizationId, options) => this.subscriptionApi.organizationsOrganizationIdSubscriptionGet({ organizationId }, options),
|
|
388
|
-
|
|
441
|
+
listPlans: (organizationId, options) => this.subscriptionApi.organizationsOrganizationIdSubscriptionPlansGet({ organizationId }, options),
|
|
389
442
|
createCheckout: (organizationId, createCheckoutSessionRequest, options) => this.subscriptionApi.organizationsOrganizationIdSubscriptionCheckoutPost({ organizationId, createCheckoutSessionRequest }, options),
|
|
390
443
|
cancel: (organizationId, cancelSubscriptionRequest, options) => this.subscriptionApi.organizationsOrganizationIdSubscriptionCancelPost({ organizationId, cancelSubscriptionRequest }, options),
|
|
391
444
|
resume: (organizationId, options) => this.subscriptionApi.organizationsOrganizationIdSubscriptionResumePost({ organizationId }, options),
|
|
@@ -393,8 +446,20 @@ export class Api {
|
|
|
393
446
|
pause: (organizationId, pauseSubscriptionRequest, options) => this.subscriptionApi.organizationsOrganizationIdSubscriptionPausePost({ organizationId, pauseSubscriptionRequest }, options),
|
|
394
447
|
unpause: (organizationId, options) => this.subscriptionApi.organizationsOrganizationIdSubscriptionUnpausePost({ organizationId }, options),
|
|
395
448
|
billingPortal: (organizationId, billingPortalRequest, options) => this.subscriptionApi.organizationsOrganizationIdSubscriptionBillingPortalPost({ organizationId, billingPortalRequest }, options),
|
|
396
|
-
|
|
397
|
-
|
|
449
|
+
getUsage: (organizationId, options) => this.subscriptionApi.organizationsOrganizationIdSubscriptionUsageGet({ organizationId }, options),
|
|
450
|
+
getUsageHistory: (organizationId, params, options) => this.subscriptionApi.organizationsOrganizationIdSubscriptionUsageHistoryGet({ organizationId, from: toDate(params?.from), to: toDate(params?.to), limit: params?.limit, offset: params?.offset }, options),
|
|
451
|
+
};
|
|
452
|
+
|
|
453
|
+
this.adminSubscriptions = {
|
|
454
|
+
list: (params, options) => this.adminSubscriptionsApi.adminSubscriptionsGet({ status: params?.status, planSlug: params?.plan_slug, search: params?.search, limit: params?.limit, offset: params?.offset }, options),
|
|
455
|
+
get: (organizationId, options) => this.adminSubscriptionsApi.adminSubscriptionsOrganizationIdGet({ organizationId }, options),
|
|
456
|
+
set: (organizationId, adminSetSubscriptionRequest, options) => this.adminSubscriptionsApi.adminSubscriptionsOrganizationIdPost({ organizationId, adminSetSubscriptionRequest }, options),
|
|
457
|
+
grantMinutes: (organizationId, adminGrantMinutesRequest, options) => this.adminSubscriptionsApi.adminSubscriptionsOrganizationIdGrantMinutesPost({ organizationId, adminGrantMinutesRequest }, options),
|
|
458
|
+
cancel: (organizationId, cancelSubscriptionRequest, options) => this.adminSubscriptionsApi.adminSubscriptionsOrganizationIdCancelPost({ organizationId, cancelSubscriptionRequest }, options),
|
|
459
|
+
};
|
|
460
|
+
|
|
461
|
+
this.voiceUsage = {
|
|
462
|
+
report: (voiceUsageReportRequest, options) => this.voiceUsageApi.voiceUsageReportPost({ voiceUsageReportRequest }, options),
|
|
398
463
|
};
|
|
399
464
|
|
|
400
465
|
this.embeddingProviders = {
|