@l7mp/tivadar-ai-api-sdk 0.2.10 → 0.2.11
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 +29 -4
- package/dist/api-client.js +22 -3
- package/dist/apis/AdminSubscriptionsApi.d.ts +82 -0
- package/dist/apis/AdminSubscriptionsApi.js +242 -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 +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/esm/api-client.d.ts +29 -4
- package/dist/esm/api-client.js +22 -3
- package/dist/esm/apis/AdminSubscriptionsApi.d.ts +82 -0
- package/dist/esm/apis/AdminSubscriptionsApi.js +238 -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 +2 -0
- package/dist/esm/apis/index.js +2 -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/BillingPortalRequest.d.ts +1 -1
- package/dist/esm/models/BillingPortalResponse.d.ts +1 -1
- 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 +16 -13
- package/dist/esm/models/index.js +16 -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/BillingPortalRequest.d.ts +1 -1
- package/dist/models/BillingPortalResponse.d.ts +1 -1
- 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 +16 -13
- package/dist/models/index.js +16 -13
- package/package.json +1 -1
- package/src/api-client.ts +42 -6
- package/src/apis/AdminSubscriptionsApi.ts +327 -0
- package/src/apis/SubscriptionApi.ts +130 -162
- package/src/apis/VoiceUsageApi.ts +86 -0
- package/src/apis/index.ts +2 -0
- package/src/models/AdminGrantMinutesRequest.ts +74 -0
- package/src/models/AdminSetSubscriptionRequest.ts +136 -0
- package/src/models/BillingPortalRequest.ts +1 -1
- package/src/models/BillingPortalResponse.ts +1 -1
- 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 +16 -13
|
@@ -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 PlanCatalogEntryOverageInner
|
|
16
|
+
*/
|
|
17
|
+
export interface PlanCatalogEntryOverageInner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PlanCatalogEntryOverageInner
|
|
22
|
+
*/
|
|
23
|
+
currency?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PlanCatalogEntryOverageInner
|
|
28
|
+
*/
|
|
29
|
+
priceId?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PlanCatalogEntryOverageInner
|
|
34
|
+
*/
|
|
35
|
+
unitAmountDecimal?: string | null;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the PlanCatalogEntryOverageInner interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfPlanCatalogEntryOverageInner(value: object): value is PlanCatalogEntryOverageInner;
|
|
41
|
+
export declare function PlanCatalogEntryOverageInnerFromJSON(json: any): PlanCatalogEntryOverageInner;
|
|
42
|
+
export declare function PlanCatalogEntryOverageInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlanCatalogEntryOverageInner;
|
|
43
|
+
export declare function PlanCatalogEntryOverageInnerToJSON(json: any): PlanCatalogEntryOverageInner;
|
|
44
|
+
export declare function PlanCatalogEntryOverageInnerToJSONTyped(value?: PlanCatalogEntryOverageInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.instanceOfPlanCatalogEntryOverageInner = instanceOfPlanCatalogEntryOverageInner;
|
|
17
|
+
exports.PlanCatalogEntryOverageInnerFromJSON = PlanCatalogEntryOverageInnerFromJSON;
|
|
18
|
+
exports.PlanCatalogEntryOverageInnerFromJSONTyped = PlanCatalogEntryOverageInnerFromJSONTyped;
|
|
19
|
+
exports.PlanCatalogEntryOverageInnerToJSON = PlanCatalogEntryOverageInnerToJSON;
|
|
20
|
+
exports.PlanCatalogEntryOverageInnerToJSONTyped = PlanCatalogEntryOverageInnerToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PlanCatalogEntryOverageInner interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPlanCatalogEntryOverageInner(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function PlanCatalogEntryOverageInnerFromJSON(json) {
|
|
28
|
+
return PlanCatalogEntryOverageInnerFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function PlanCatalogEntryOverageInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'currency': json['currency'] == null ? undefined : json['currency'],
|
|
36
|
+
'priceId': json['priceId'] == null ? undefined : json['priceId'],
|
|
37
|
+
'unitAmountDecimal': json['unitAmountDecimal'] == null ? undefined : json['unitAmountDecimal'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function PlanCatalogEntryOverageInnerToJSON(json) {
|
|
41
|
+
return PlanCatalogEntryOverageInnerToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function PlanCatalogEntryOverageInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'currency': value['currency'],
|
|
49
|
+
'priceId': value['priceId'],
|
|
50
|
+
'unitAmountDecimal': value['unitAmountDecimal'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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 PlanCatalogPrice
|
|
16
|
+
*/
|
|
17
|
+
export interface PlanCatalogPrice {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PlanCatalogPrice
|
|
22
|
+
*/
|
|
23
|
+
interval: PlanCatalogPriceIntervalEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PlanCatalogPrice
|
|
28
|
+
*/
|
|
29
|
+
currency: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PlanCatalogPrice
|
|
34
|
+
*/
|
|
35
|
+
priceId: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof PlanCatalogPrice
|
|
40
|
+
*/
|
|
41
|
+
unitAmount?: number | null;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const PlanCatalogPriceIntervalEnum: {
|
|
47
|
+
readonly Monthly: "monthly";
|
|
48
|
+
readonly Yearly: "yearly";
|
|
49
|
+
};
|
|
50
|
+
export type PlanCatalogPriceIntervalEnum = typeof PlanCatalogPriceIntervalEnum[keyof typeof PlanCatalogPriceIntervalEnum];
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PlanCatalogPrice interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfPlanCatalogPrice(value: object): value is PlanCatalogPrice;
|
|
55
|
+
export declare function PlanCatalogPriceFromJSON(json: any): PlanCatalogPrice;
|
|
56
|
+
export declare function PlanCatalogPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlanCatalogPrice;
|
|
57
|
+
export declare function PlanCatalogPriceToJSON(json: any): PlanCatalogPrice;
|
|
58
|
+
export declare function PlanCatalogPriceToJSONTyped(value?: PlanCatalogPrice | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,68 @@
|
|
|
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.PlanCatalogPriceIntervalEnum = void 0;
|
|
17
|
+
exports.instanceOfPlanCatalogPrice = instanceOfPlanCatalogPrice;
|
|
18
|
+
exports.PlanCatalogPriceFromJSON = PlanCatalogPriceFromJSON;
|
|
19
|
+
exports.PlanCatalogPriceFromJSONTyped = PlanCatalogPriceFromJSONTyped;
|
|
20
|
+
exports.PlanCatalogPriceToJSON = PlanCatalogPriceToJSON;
|
|
21
|
+
exports.PlanCatalogPriceToJSONTyped = PlanCatalogPriceToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.PlanCatalogPriceIntervalEnum = {
|
|
26
|
+
Monthly: 'monthly',
|
|
27
|
+
Yearly: 'yearly'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the PlanCatalogPrice interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfPlanCatalogPrice(value) {
|
|
33
|
+
if (!('interval' in value) || value['interval'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('currency' in value) || value['currency'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('priceId' in value) || value['priceId'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function PlanCatalogPriceFromJSON(json) {
|
|
42
|
+
return PlanCatalogPriceFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function PlanCatalogPriceFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'interval': json['interval'],
|
|
50
|
+
'currency': json['currency'],
|
|
51
|
+
'priceId': json['priceId'],
|
|
52
|
+
'unitAmount': json['unitAmount'] == null ? undefined : json['unitAmount'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function PlanCatalogPriceToJSON(json) {
|
|
56
|
+
return PlanCatalogPriceToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function PlanCatalogPriceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'interval': value['interval'],
|
|
64
|
+
'currency': value['currency'],
|
|
65
|
+
'priceId': value['priceId'],
|
|
66
|
+
'unitAmount': value['unitAmount'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
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 { SubscriptionPlanSummaryOverageRate } from './SubscriptionPlanSummaryOverageRate';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SubscriptionPlanSummary
|
|
17
|
+
*/
|
|
18
|
+
export interface SubscriptionPlanSummary {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof SubscriptionPlanSummary
|
|
23
|
+
*/
|
|
24
|
+
slug: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof SubscriptionPlanSummary
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof SubscriptionPlanSummary
|
|
35
|
+
*/
|
|
36
|
+
description?: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof SubscriptionPlanSummary
|
|
41
|
+
*/
|
|
42
|
+
rank: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
* @memberof SubscriptionPlanSummary
|
|
47
|
+
*/
|
|
48
|
+
hasStripeProduct?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Voice minutes included per billing period before overage.
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof SubscriptionPlanSummary
|
|
53
|
+
*/
|
|
54
|
+
includedVoiceMinutes: number;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {Array<string>}
|
|
58
|
+
* @memberof SubscriptionPlanSummary
|
|
59
|
+
*/
|
|
60
|
+
features: Array<string>;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {{ [key: string]: number | null; }}
|
|
64
|
+
* @memberof SubscriptionPlanSummary
|
|
65
|
+
*/
|
|
66
|
+
limits: {
|
|
67
|
+
[key: string]: number | null;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {SubscriptionPlanSummaryOverageRate}
|
|
72
|
+
* @memberof SubscriptionPlanSummary
|
|
73
|
+
*/
|
|
74
|
+
overageRate?: SubscriptionPlanSummaryOverageRate | null;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Check if a given object implements the SubscriptionPlanSummary interface.
|
|
78
|
+
*/
|
|
79
|
+
export declare function instanceOfSubscriptionPlanSummary(value: object): value is SubscriptionPlanSummary;
|
|
80
|
+
export declare function SubscriptionPlanSummaryFromJSON(json: any): SubscriptionPlanSummary;
|
|
81
|
+
export declare function SubscriptionPlanSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionPlanSummary;
|
|
82
|
+
export declare function SubscriptionPlanSummaryToJSON(json: any): SubscriptionPlanSummary;
|
|
83
|
+
export declare function SubscriptionPlanSummaryToJSONTyped(value?: SubscriptionPlanSummary | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,77 @@
|
|
|
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.instanceOfSubscriptionPlanSummary = instanceOfSubscriptionPlanSummary;
|
|
17
|
+
exports.SubscriptionPlanSummaryFromJSON = SubscriptionPlanSummaryFromJSON;
|
|
18
|
+
exports.SubscriptionPlanSummaryFromJSONTyped = SubscriptionPlanSummaryFromJSONTyped;
|
|
19
|
+
exports.SubscriptionPlanSummaryToJSON = SubscriptionPlanSummaryToJSON;
|
|
20
|
+
exports.SubscriptionPlanSummaryToJSONTyped = SubscriptionPlanSummaryToJSONTyped;
|
|
21
|
+
const SubscriptionPlanSummaryOverageRate_1 = require("./SubscriptionPlanSummaryOverageRate");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the SubscriptionPlanSummary interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfSubscriptionPlanSummary(value) {
|
|
26
|
+
if (!('slug' in value) || value['slug'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('rank' in value) || value['rank'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('includedVoiceMinutes' in value) || value['includedVoiceMinutes'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('features' in value) || value['features'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('limits' in value) || value['limits'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
function SubscriptionPlanSummaryFromJSON(json) {
|
|
41
|
+
return SubscriptionPlanSummaryFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function SubscriptionPlanSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'slug': json['slug'],
|
|
49
|
+
'name': json['name'],
|
|
50
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
51
|
+
'rank': json['rank'],
|
|
52
|
+
'hasStripeProduct': json['hasStripeProduct'] == null ? undefined : json['hasStripeProduct'],
|
|
53
|
+
'includedVoiceMinutes': json['includedVoiceMinutes'],
|
|
54
|
+
'features': json['features'],
|
|
55
|
+
'limits': json['limits'],
|
|
56
|
+
'overageRate': json['overageRate'] == null ? undefined : (0, SubscriptionPlanSummaryOverageRate_1.SubscriptionPlanSummaryOverageRateFromJSON)(json['overageRate']),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function SubscriptionPlanSummaryToJSON(json) {
|
|
60
|
+
return SubscriptionPlanSummaryToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
function SubscriptionPlanSummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'slug': value['slug'],
|
|
68
|
+
'name': value['name'],
|
|
69
|
+
'description': value['description'],
|
|
70
|
+
'rank': value['rank'],
|
|
71
|
+
'hasStripeProduct': value['hasStripeProduct'],
|
|
72
|
+
'includedVoiceMinutes': value['includedVoiceMinutes'],
|
|
73
|
+
'features': value['features'],
|
|
74
|
+
'limits': value['limits'],
|
|
75
|
+
'overageRate': (0, SubscriptionPlanSummaryOverageRate_1.SubscriptionPlanSummaryOverageRateToJSON)(value['overageRate']),
|
|
76
|
+
};
|
|
77
|
+
}
|
|
@@ -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,50 @@
|
|
|
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.instanceOfSubscriptionPlanSummaryOverageRate = instanceOfSubscriptionPlanSummaryOverageRate;
|
|
17
|
+
exports.SubscriptionPlanSummaryOverageRateFromJSON = SubscriptionPlanSummaryOverageRateFromJSON;
|
|
18
|
+
exports.SubscriptionPlanSummaryOverageRateFromJSONTyped = SubscriptionPlanSummaryOverageRateFromJSONTyped;
|
|
19
|
+
exports.SubscriptionPlanSummaryOverageRateToJSON = SubscriptionPlanSummaryOverageRateToJSON;
|
|
20
|
+
exports.SubscriptionPlanSummaryOverageRateToJSONTyped = SubscriptionPlanSummaryOverageRateToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SubscriptionPlanSummaryOverageRate interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSubscriptionPlanSummaryOverageRate(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function SubscriptionPlanSummaryOverageRateFromJSON(json) {
|
|
28
|
+
return SubscriptionPlanSummaryOverageRateFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function SubscriptionPlanSummaryOverageRateFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'currency': json['currency'] == null ? undefined : json['currency'],
|
|
36
|
+
'unitAmountDecimal': json['unitAmountDecimal'] == null ? undefined : json['unitAmountDecimal'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function SubscriptionPlanSummaryOverageRateToJSON(json) {
|
|
40
|
+
return SubscriptionPlanSummaryOverageRateToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function SubscriptionPlanSummaryOverageRateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'currency': value['currency'],
|
|
48
|
+
'unitAmountDecimal': value['unitAmountDecimal'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -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
|
*/
|