@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,70 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Tivadar AI Backend API
|
|
5
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { SubscriptionPlanSummaryOverageRateFromJSON, SubscriptionPlanSummaryOverageRateToJSON, } from './SubscriptionPlanSummaryOverageRate';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the SubscriptionPlanSummary interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfSubscriptionPlanSummary(value) {
|
|
19
|
+
if (!('slug' in value) || value['slug'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('rank' in value) || value['rank'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('includedVoiceMinutes' in value) || value['includedVoiceMinutes'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('features' in value) || value['features'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('limits' in value) || value['limits'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
export function SubscriptionPlanSummaryFromJSON(json) {
|
|
34
|
+
return SubscriptionPlanSummaryFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function SubscriptionPlanSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'slug': json['slug'],
|
|
42
|
+
'name': json['name'],
|
|
43
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
44
|
+
'rank': json['rank'],
|
|
45
|
+
'hasStripeProduct': json['hasStripeProduct'] == null ? undefined : json['hasStripeProduct'],
|
|
46
|
+
'includedVoiceMinutes': json['includedVoiceMinutes'],
|
|
47
|
+
'features': json['features'],
|
|
48
|
+
'limits': json['limits'],
|
|
49
|
+
'overageRate': json['overageRate'] == null ? undefined : SubscriptionPlanSummaryOverageRateFromJSON(json['overageRate']),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export function SubscriptionPlanSummaryToJSON(json) {
|
|
53
|
+
return SubscriptionPlanSummaryToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
export function SubscriptionPlanSummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'slug': value['slug'],
|
|
61
|
+
'name': value['name'],
|
|
62
|
+
'description': value['description'],
|
|
63
|
+
'rank': value['rank'],
|
|
64
|
+
'hasStripeProduct': value['hasStripeProduct'],
|
|
65
|
+
'includedVoiceMinutes': value['includedVoiceMinutes'],
|
|
66
|
+
'features': value['features'],
|
|
67
|
+
'limits': value['limits'],
|
|
68
|
+
'overageRate': SubscriptionPlanSummaryOverageRateToJSON(value['overageRate']),
|
|
69
|
+
};
|
|
70
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 SubscriptionPlanSummaryOverageRate
|
|
16
|
+
*/
|
|
17
|
+
export interface SubscriptionPlanSummaryOverageRate {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SubscriptionPlanSummaryOverageRate
|
|
22
|
+
*/
|
|
23
|
+
currency?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Stripe unit amount per metered unit, as a decimal string.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SubscriptionPlanSummaryOverageRate
|
|
28
|
+
*/
|
|
29
|
+
unitAmountDecimal?: string | null;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the SubscriptionPlanSummaryOverageRate interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfSubscriptionPlanSummaryOverageRate(value: object): value is SubscriptionPlanSummaryOverageRate;
|
|
35
|
+
export declare function SubscriptionPlanSummaryOverageRateFromJSON(json: any): SubscriptionPlanSummaryOverageRate;
|
|
36
|
+
export declare function SubscriptionPlanSummaryOverageRateFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionPlanSummaryOverageRate;
|
|
37
|
+
export declare function SubscriptionPlanSummaryOverageRateToJSON(json: any): SubscriptionPlanSummaryOverageRate;
|
|
38
|
+
export declare function SubscriptionPlanSummaryOverageRateToJSONTyped(value?: SubscriptionPlanSummaryOverageRate | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Tivadar AI Backend API
|
|
5
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the SubscriptionPlanSummaryOverageRate interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfSubscriptionPlanSummaryOverageRate(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function SubscriptionPlanSummaryOverageRateFromJSON(json) {
|
|
21
|
+
return SubscriptionPlanSummaryOverageRateFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function SubscriptionPlanSummaryOverageRateFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'currency': json['currency'] == null ? undefined : json['currency'],
|
|
29
|
+
'unitAmountDecimal': json['unitAmountDecimal'] == null ? undefined : json['unitAmountDecimal'],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export function SubscriptionPlanSummaryOverageRateToJSON(json) {
|
|
33
|
+
return SubscriptionPlanSummaryOverageRateToJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function SubscriptionPlanSummaryOverageRateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
36
|
+
if (value == null) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'currency': value['currency'],
|
|
41
|
+
'unitAmountDecimal': value['unitAmountDecimal'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -9,9 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
13
|
-
import type {
|
|
14
|
-
import type { SubscriptionStatusService } from './SubscriptionStatusService';
|
|
12
|
+
import type { SubscriptionPlanSummary } from './SubscriptionPlanSummary';
|
|
13
|
+
import type { SubscriptionUsageSummary } from './SubscriptionUsageSummary';
|
|
15
14
|
/**
|
|
16
15
|
*
|
|
17
16
|
* @export
|
|
@@ -20,29 +19,123 @@ import type { SubscriptionStatusService } from './SubscriptionStatusService';
|
|
|
20
19
|
export interface SubscriptionStatus {
|
|
21
20
|
/**
|
|
22
21
|
*
|
|
23
|
-
* @type {
|
|
22
|
+
* @type {string}
|
|
24
23
|
* @memberof SubscriptionStatus
|
|
25
24
|
*/
|
|
26
|
-
|
|
25
|
+
id?: string | null;
|
|
27
26
|
/**
|
|
28
27
|
*
|
|
29
|
-
* @type {
|
|
28
|
+
* @type {string}
|
|
30
29
|
* @memberof SubscriptionStatus
|
|
31
30
|
*/
|
|
32
|
-
|
|
31
|
+
organizationId?: string;
|
|
33
32
|
/**
|
|
34
33
|
*
|
|
35
|
-
* @type {
|
|
34
|
+
* @type {string}
|
|
36
35
|
* @memberof SubscriptionStatus
|
|
37
36
|
*/
|
|
38
|
-
|
|
37
|
+
status: SubscriptionStatusStatusEnum;
|
|
39
38
|
/**
|
|
40
|
-
*
|
|
39
|
+
*
|
|
41
40
|
* @type {boolean}
|
|
42
41
|
* @memberof SubscriptionStatus
|
|
43
42
|
*/
|
|
44
43
|
isActive: boolean;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof SubscriptionStatus
|
|
48
|
+
*/
|
|
49
|
+
billingInterval?: SubscriptionStatusBillingIntervalEnum | null;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof SubscriptionStatus
|
|
54
|
+
*/
|
|
55
|
+
currency: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {Date}
|
|
59
|
+
* @memberof SubscriptionStatus
|
|
60
|
+
*/
|
|
61
|
+
currentPeriodStart?: Date | null;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Date}
|
|
65
|
+
* @memberof SubscriptionStatus
|
|
66
|
+
*/
|
|
67
|
+
currentPeriodEnd?: Date | null;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {boolean}
|
|
71
|
+
* @memberof SubscriptionStatus
|
|
72
|
+
*/
|
|
73
|
+
cancelAtPeriodEnd?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {Date}
|
|
77
|
+
* @memberof SubscriptionStatus
|
|
78
|
+
*/
|
|
79
|
+
cancelAt?: Date | null;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {Date}
|
|
83
|
+
* @memberof SubscriptionStatus
|
|
84
|
+
*/
|
|
85
|
+
canceledAt?: Date | null;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {Date}
|
|
89
|
+
* @memberof SubscriptionStatus
|
|
90
|
+
*/
|
|
91
|
+
trialEnd?: Date | null;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {string}
|
|
95
|
+
* @memberof SubscriptionStatus
|
|
96
|
+
*/
|
|
97
|
+
stripeCustomerId?: string | null;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @type {string}
|
|
101
|
+
* @memberof SubscriptionStatus
|
|
102
|
+
*/
|
|
103
|
+
stripeSubscriptionId?: string | null;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @type {SubscriptionPlanSummary}
|
|
107
|
+
* @memberof SubscriptionStatus
|
|
108
|
+
*/
|
|
109
|
+
plan: SubscriptionPlanSummary;
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @type {SubscriptionUsageSummary}
|
|
113
|
+
* @memberof SubscriptionStatus
|
|
114
|
+
*/
|
|
115
|
+
usage?: SubscriptionUsageSummary;
|
|
45
116
|
}
|
|
117
|
+
/**
|
|
118
|
+
* @export
|
|
119
|
+
*/
|
|
120
|
+
export declare const SubscriptionStatusStatusEnum: {
|
|
121
|
+
readonly Active: "active";
|
|
122
|
+
readonly PastDue: "past_due";
|
|
123
|
+
readonly Canceled: "canceled";
|
|
124
|
+
readonly Unpaid: "unpaid";
|
|
125
|
+
readonly Trialing: "trialing";
|
|
126
|
+
readonly Incomplete: "incomplete";
|
|
127
|
+
readonly IncompleteExpired: "incomplete_expired";
|
|
128
|
+
readonly Paused: "paused";
|
|
129
|
+
};
|
|
130
|
+
export type SubscriptionStatusStatusEnum = typeof SubscriptionStatusStatusEnum[keyof typeof SubscriptionStatusStatusEnum];
|
|
131
|
+
/**
|
|
132
|
+
* @export
|
|
133
|
+
*/
|
|
134
|
+
export declare const SubscriptionStatusBillingIntervalEnum: {
|
|
135
|
+
readonly Monthly: "monthly";
|
|
136
|
+
readonly Yearly: "yearly";
|
|
137
|
+
};
|
|
138
|
+
export type SubscriptionStatusBillingIntervalEnum = typeof SubscriptionStatusBillingIntervalEnum[keyof typeof SubscriptionStatusBillingIntervalEnum];
|
|
46
139
|
/**
|
|
47
140
|
* Check if a given object implements the SubscriptionStatus interface.
|
|
48
141
|
*/
|
|
@@ -11,15 +11,40 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
|
|
14
|
+
import { SubscriptionPlanSummaryFromJSON, SubscriptionPlanSummaryToJSON, } from './SubscriptionPlanSummary';
|
|
15
|
+
import { SubscriptionUsageSummaryFromJSON, SubscriptionUsageSummaryToJSON, } from './SubscriptionUsageSummary';
|
|
16
|
+
/**
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export const SubscriptionStatusStatusEnum = {
|
|
20
|
+
Active: 'active',
|
|
21
|
+
PastDue: 'past_due',
|
|
22
|
+
Canceled: 'canceled',
|
|
23
|
+
Unpaid: 'unpaid',
|
|
24
|
+
Trialing: 'trialing',
|
|
25
|
+
Incomplete: 'incomplete',
|
|
26
|
+
IncompleteExpired: 'incomplete_expired',
|
|
27
|
+
Paused: 'paused'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @export
|
|
31
|
+
*/
|
|
32
|
+
export const SubscriptionStatusBillingIntervalEnum = {
|
|
33
|
+
Monthly: 'monthly',
|
|
34
|
+
Yearly: 'yearly'
|
|
35
|
+
};
|
|
17
36
|
/**
|
|
18
37
|
* Check if a given object implements the SubscriptionStatus interface.
|
|
19
38
|
*/
|
|
20
39
|
export function instanceOfSubscriptionStatus(value) {
|
|
40
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
41
|
+
return false;
|
|
21
42
|
if (!('isActive' in value) || value['isActive'] === undefined)
|
|
22
43
|
return false;
|
|
44
|
+
if (!('currency' in value) || value['currency'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('plan' in value) || value['plan'] === undefined)
|
|
47
|
+
return false;
|
|
23
48
|
return true;
|
|
24
49
|
}
|
|
25
50
|
export function SubscriptionStatusFromJSON(json) {
|
|
@@ -30,10 +55,22 @@ export function SubscriptionStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
30
55
|
return json;
|
|
31
56
|
}
|
|
32
57
|
return {
|
|
33
|
-
'
|
|
34
|
-
'
|
|
35
|
-
'
|
|
58
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
59
|
+
'organizationId': json['organizationId'] == null ? undefined : json['organizationId'],
|
|
60
|
+
'status': json['status'],
|
|
36
61
|
'isActive': json['isActive'],
|
|
62
|
+
'billingInterval': json['billingInterval'] == null ? undefined : json['billingInterval'],
|
|
63
|
+
'currency': json['currency'],
|
|
64
|
+
'currentPeriodStart': json['currentPeriodStart'] == null ? undefined : (new Date(json['currentPeriodStart'])),
|
|
65
|
+
'currentPeriodEnd': json['currentPeriodEnd'] == null ? undefined : (new Date(json['currentPeriodEnd'])),
|
|
66
|
+
'cancelAtPeriodEnd': json['cancelAtPeriodEnd'] == null ? undefined : json['cancelAtPeriodEnd'],
|
|
67
|
+
'cancelAt': json['cancelAt'] == null ? undefined : (new Date(json['cancelAt'])),
|
|
68
|
+
'canceledAt': json['canceledAt'] == null ? undefined : (new Date(json['canceledAt'])),
|
|
69
|
+
'trialEnd': json['trialEnd'] == null ? undefined : (new Date(json['trialEnd'])),
|
|
70
|
+
'stripeCustomerId': json['stripeCustomerId'] == null ? undefined : json['stripeCustomerId'],
|
|
71
|
+
'stripeSubscriptionId': json['stripeSubscriptionId'] == null ? undefined : json['stripeSubscriptionId'],
|
|
72
|
+
'plan': SubscriptionPlanSummaryFromJSON(json['plan']),
|
|
73
|
+
'usage': json['usage'] == null ? undefined : SubscriptionUsageSummaryFromJSON(json['usage']),
|
|
37
74
|
};
|
|
38
75
|
}
|
|
39
76
|
export function SubscriptionStatusToJSON(json) {
|
|
@@ -44,9 +81,21 @@ export function SubscriptionStatusToJSONTyped(value, ignoreDiscriminator = false
|
|
|
44
81
|
return value;
|
|
45
82
|
}
|
|
46
83
|
return {
|
|
47
|
-
'
|
|
48
|
-
'
|
|
49
|
-
'
|
|
84
|
+
'id': value['id'],
|
|
85
|
+
'organizationId': value['organizationId'],
|
|
86
|
+
'status': value['status'],
|
|
50
87
|
'isActive': value['isActive'],
|
|
88
|
+
'billingInterval': value['billingInterval'],
|
|
89
|
+
'currency': value['currency'],
|
|
90
|
+
'currentPeriodStart': value['currentPeriodStart'] == null ? value['currentPeriodStart'] : value['currentPeriodStart'].toISOString(),
|
|
91
|
+
'currentPeriodEnd': value['currentPeriodEnd'] == null ? value['currentPeriodEnd'] : value['currentPeriodEnd'].toISOString(),
|
|
92
|
+
'cancelAtPeriodEnd': value['cancelAtPeriodEnd'],
|
|
93
|
+
'cancelAt': value['cancelAt'] == null ? value['cancelAt'] : value['cancelAt'].toISOString(),
|
|
94
|
+
'canceledAt': value['canceledAt'] == null ? value['canceledAt'] : value['canceledAt'].toISOString(),
|
|
95
|
+
'trialEnd': value['trialEnd'] == null ? value['trialEnd'] : value['trialEnd'].toISOString(),
|
|
96
|
+
'stripeCustomerId': value['stripeCustomerId'],
|
|
97
|
+
'stripeSubscriptionId': value['stripeSubscriptionId'],
|
|
98
|
+
'plan': SubscriptionPlanSummaryToJSON(value['plan']),
|
|
99
|
+
'usage': SubscriptionUsageSummaryToJSON(value['usage']),
|
|
51
100
|
};
|
|
52
101
|
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 SubscriptionUsageSummary
|
|
16
|
+
*/
|
|
17
|
+
export interface SubscriptionUsageSummary {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof SubscriptionUsageSummary
|
|
22
|
+
*/
|
|
23
|
+
includedMinutes: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof SubscriptionUsageSummary
|
|
28
|
+
*/
|
|
29
|
+
usedSeconds: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof SubscriptionUsageSummary
|
|
34
|
+
*/
|
|
35
|
+
usedMinutes: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof SubscriptionUsageSummary
|
|
40
|
+
*/
|
|
41
|
+
overageMinutes: number;
|
|
42
|
+
/**
|
|
43
|
+
* max(0, includedMinutes - usedMinutes)
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof SubscriptionUsageSummary
|
|
46
|
+
*/
|
|
47
|
+
remainingMinutes?: number;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the SubscriptionUsageSummary interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfSubscriptionUsageSummary(value: object): value is SubscriptionUsageSummary;
|
|
53
|
+
export declare function SubscriptionUsageSummaryFromJSON(json: any): SubscriptionUsageSummary;
|
|
54
|
+
export declare function SubscriptionUsageSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionUsageSummary;
|
|
55
|
+
export declare function SubscriptionUsageSummaryToJSON(json: any): SubscriptionUsageSummary;
|
|
56
|
+
export declare function SubscriptionUsageSummaryToJSONTyped(value?: SubscriptionUsageSummary | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Tivadar AI Backend API
|
|
5
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the SubscriptionUsageSummary interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfSubscriptionUsageSummary(value) {
|
|
18
|
+
if (!('includedMinutes' in value) || value['includedMinutes'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('usedSeconds' in value) || value['usedSeconds'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('usedMinutes' in value) || value['usedMinutes'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('overageMinutes' in value) || value['overageMinutes'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function SubscriptionUsageSummaryFromJSON(json) {
|
|
29
|
+
return SubscriptionUsageSummaryFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function SubscriptionUsageSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'includedMinutes': json['includedMinutes'],
|
|
37
|
+
'usedSeconds': json['usedSeconds'],
|
|
38
|
+
'usedMinutes': json['usedMinutes'],
|
|
39
|
+
'overageMinutes': json['overageMinutes'],
|
|
40
|
+
'remainingMinutes': json['remainingMinutes'] == null ? undefined : json['remainingMinutes'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export function SubscriptionUsageSummaryToJSON(json) {
|
|
44
|
+
return SubscriptionUsageSummaryToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
export function SubscriptionUsageSummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'includedMinutes': value['includedMinutes'],
|
|
52
|
+
'usedSeconds': value['usedSeconds'],
|
|
53
|
+
'usedMinutes': value['usedMinutes'],
|
|
54
|
+
'overageMinutes': value['overageMinutes'],
|
|
55
|
+
'remainingMinutes': value['remainingMinutes'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -16,24 +16,32 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface UpdatePlanRequest {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
*
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof UpdatePlanRequest
|
|
22
22
|
*/
|
|
23
|
-
planSlug
|
|
23
|
+
planSlug: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
*
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof UpdatePlanRequest
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
interval?: UpdatePlanRequestIntervalEnum;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
*
|
|
32
32
|
* @type {boolean}
|
|
33
33
|
* @memberof UpdatePlanRequest
|
|
34
34
|
*/
|
|
35
35
|
prorate?: boolean;
|
|
36
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const UpdatePlanRequestIntervalEnum: {
|
|
41
|
+
readonly Monthly: "monthly";
|
|
42
|
+
readonly Yearly: "yearly";
|
|
43
|
+
};
|
|
44
|
+
export type UpdatePlanRequestIntervalEnum = typeof UpdatePlanRequestIntervalEnum[keyof typeof UpdatePlanRequestIntervalEnum];
|
|
37
45
|
/**
|
|
38
46
|
* Check if a given object implements the UpdatePlanRequest interface.
|
|
39
47
|
*/
|
|
@@ -11,10 +11,19 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const UpdatePlanRequestIntervalEnum = {
|
|
18
|
+
Monthly: 'monthly',
|
|
19
|
+
Yearly: 'yearly'
|
|
20
|
+
};
|
|
14
21
|
/**
|
|
15
22
|
* Check if a given object implements the UpdatePlanRequest interface.
|
|
16
23
|
*/
|
|
17
24
|
export function instanceOfUpdatePlanRequest(value) {
|
|
25
|
+
if (!('planSlug' in value) || value['planSlug'] === undefined)
|
|
26
|
+
return false;
|
|
18
27
|
return true;
|
|
19
28
|
}
|
|
20
29
|
export function UpdatePlanRequestFromJSON(json) {
|
|
@@ -25,8 +34,8 @@ export function UpdatePlanRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
25
34
|
return json;
|
|
26
35
|
}
|
|
27
36
|
return {
|
|
28
|
-
'planSlug': json['planSlug']
|
|
29
|
-
'
|
|
37
|
+
'planSlug': json['planSlug'],
|
|
38
|
+
'interval': json['interval'] == null ? undefined : json['interval'],
|
|
30
39
|
'prorate': json['prorate'] == null ? undefined : json['prorate'],
|
|
31
40
|
};
|
|
32
41
|
}
|
|
@@ -39,7 +48,7 @@ export function UpdatePlanRequestToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
39
48
|
}
|
|
40
49
|
return {
|
|
41
50
|
'planSlug': value['planSlug'],
|
|
42
|
-
'
|
|
51
|
+
'interval': value['interval'],
|
|
43
52
|
'prorate': value['prorate'],
|
|
44
53
|
};
|
|
45
54
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tivadar AI Backend API
|
|
3
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UsageBreakdownByAgent
|
|
16
|
+
*/
|
|
17
|
+
export interface UsageBreakdownByAgent {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UsageBreakdownByAgent
|
|
22
|
+
*/
|
|
23
|
+
voiceAgentId?: string | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof UsageBreakdownByAgent
|
|
28
|
+
*/
|
|
29
|
+
seconds: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof UsageBreakdownByAgent
|
|
34
|
+
*/
|
|
35
|
+
overageMinutes: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the UsageBreakdownByAgent interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfUsageBreakdownByAgent(value: object): value is UsageBreakdownByAgent;
|
|
41
|
+
export declare function UsageBreakdownByAgentFromJSON(json: any): UsageBreakdownByAgent;
|
|
42
|
+
export declare function UsageBreakdownByAgentFromJSONTyped(json: any, ignoreDiscriminator: boolean): UsageBreakdownByAgent;
|
|
43
|
+
export declare function UsageBreakdownByAgentToJSON(json: any): UsageBreakdownByAgent;
|
|
44
|
+
export declare function UsageBreakdownByAgentToJSONTyped(value?: UsageBreakdownByAgent | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Tivadar AI Backend API
|
|
5
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the UsageBreakdownByAgent interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfUsageBreakdownByAgent(value) {
|
|
18
|
+
if (!('seconds' in value) || value['seconds'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('overageMinutes' in value) || value['overageMinutes'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function UsageBreakdownByAgentFromJSON(json) {
|
|
25
|
+
return UsageBreakdownByAgentFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function UsageBreakdownByAgentFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'voiceAgentId': json['voiceAgentId'] == null ? undefined : json['voiceAgentId'],
|
|
33
|
+
'seconds': json['seconds'],
|
|
34
|
+
'overageMinutes': json['overageMinutes'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function UsageBreakdownByAgentToJSON(json) {
|
|
38
|
+
return UsageBreakdownByAgentToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function UsageBreakdownByAgentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'voiceAgentId': value['voiceAgentId'],
|
|
46
|
+
'seconds': value['seconds'],
|
|
47
|
+
'overageMinutes': value['overageMinutes'],
|
|
48
|
+
};
|
|
49
|
+
}
|