@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
package/dist/esm/models/index.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export * from './AdminGrantMinutesRequest';
|
|
4
|
+
export * from './AdminSetSubscriptionRequest';
|
|
5
|
+
export * from './AdminSubscriptionsListResponse';
|
|
3
6
|
export * from './AgentTool';
|
|
4
7
|
export * from './AgentToolUpsert';
|
|
5
8
|
export * from './BillingPortalRequest';
|
|
@@ -16,17 +19,20 @@ export * from './CalendarMetadataBookingConstraints';
|
|
|
16
19
|
export * from './CalendarUpdate';
|
|
17
20
|
export * from './Call';
|
|
18
21
|
export * from './CallCreate';
|
|
22
|
+
export * from './CallFlag';
|
|
23
|
+
export * from './CallFlagCreate';
|
|
24
|
+
export * from './CallFlagResolve';
|
|
25
|
+
export * from './CallFlagUpdate';
|
|
26
|
+
export * from './CallFlagWithCall';
|
|
27
|
+
export * from './CallFlagWithCallAllOfCall';
|
|
19
28
|
export * from './CallUpdate';
|
|
20
29
|
export * from './CancelSubscriptionRequest';
|
|
21
|
-
export * from './CancelSubscriptionResponse';
|
|
22
30
|
export * from './ChatAgent';
|
|
23
31
|
export * from './ChatAgentCreate';
|
|
24
32
|
export * from './ChatAgentUpdate';
|
|
25
33
|
export * from './CheckoutSessionResponse';
|
|
26
34
|
export * from './CreateCheckoutSessionRequest';
|
|
27
|
-
export * from './
|
|
28
|
-
export * from './CreditTransaction';
|
|
29
|
-
export * from './CreditTransactionsResponse';
|
|
35
|
+
export * from './CurrentPeriodUsage';
|
|
30
36
|
export * from './DispatchRuleCreate';
|
|
31
37
|
export * from './HistoryConversation';
|
|
32
38
|
export * from './HistoryMessage';
|
|
@@ -34,6 +40,7 @@ export * from './HistorySummary';
|
|
|
34
40
|
export * from './InvitationAccept';
|
|
35
41
|
export * from './InvitationCreate';
|
|
36
42
|
export * from './InvitationResponse';
|
|
43
|
+
export * from './LifecycleResponse';
|
|
37
44
|
export * from './LlmAgent';
|
|
38
45
|
export * from './LlmAgentInput';
|
|
39
46
|
export * from './LlmAgentUpdateInput';
|
|
@@ -57,8 +64,6 @@ export * from './OrganizationsOrganizationIdSipDispatchRulesPost200Response';
|
|
|
57
64
|
export * from './OrganizationsOrganizationIdVoiceAgentsBasicGet200ResponseInner';
|
|
58
65
|
export * from './OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest';
|
|
59
66
|
export * from './PauseSubscriptionRequest';
|
|
60
|
-
export * from './PauseSubscriptionResponse';
|
|
61
|
-
export * from './PauseSubscriptionResponsePauseCollection';
|
|
62
67
|
export * from './PhoneNumber';
|
|
63
68
|
export * from './PhoneNumberCreate';
|
|
64
69
|
export * from './Phonebook';
|
|
@@ -68,6 +73,9 @@ export * from './PhonebookEntryUpdate';
|
|
|
68
73
|
export * from './PhonebookImportResult';
|
|
69
74
|
export * from './PhonebookImportResultErrorsInner';
|
|
70
75
|
export * from './PhonebookUpdate';
|
|
76
|
+
export * from './PlanCatalogEntry';
|
|
77
|
+
export * from './PlanCatalogEntryOverageInner';
|
|
78
|
+
export * from './PlanCatalogPrice';
|
|
71
79
|
export * from './RagConfig';
|
|
72
80
|
export * from './RagConfigCreate';
|
|
73
81
|
export * from './RagDocument';
|
|
@@ -75,7 +83,6 @@ export * from './RagDocumentChunk';
|
|
|
75
83
|
export * from './RagDocumentChunkList';
|
|
76
84
|
export * from './RagDocumentList';
|
|
77
85
|
export * from './RecordingSignedUrl';
|
|
78
|
-
export * from './ResumeSubscriptionResponse';
|
|
79
86
|
export * from './SandboxToken';
|
|
80
87
|
export * from './SipTrunk';
|
|
81
88
|
export * from './SipTrunkCreate';
|
|
@@ -83,11 +90,10 @@ export * from './SipTrunkWithAgent';
|
|
|
83
90
|
export * from './SipTrunkWithAgentAllOfAgents';
|
|
84
91
|
export * from './SttProvider';
|
|
85
92
|
export * from './SttProviderModel';
|
|
86
|
-
export * from './
|
|
93
|
+
export * from './SubscriptionPlanSummary';
|
|
94
|
+
export * from './SubscriptionPlanSummaryOverageRate';
|
|
87
95
|
export * from './SubscriptionStatus';
|
|
88
|
-
export * from './
|
|
89
|
-
export * from './SubscriptionStatusService';
|
|
90
|
-
export * from './SubscriptionStatusSubscription';
|
|
96
|
+
export * from './SubscriptionUsageSummary';
|
|
91
97
|
export * from './Tool';
|
|
92
98
|
export * from './ToolConfig';
|
|
93
99
|
export * from './ToolCreate';
|
|
@@ -95,9 +101,11 @@ export * from './ToolUpdate';
|
|
|
95
101
|
export * from './TtsProvider';
|
|
96
102
|
export * from './TtsProviderModel';
|
|
97
103
|
export * from './TtsProviderVoice';
|
|
98
|
-
export * from './UnpauseSubscriptionResponse';
|
|
99
104
|
export * from './UpdatePlanRequest';
|
|
100
|
-
export * from './
|
|
105
|
+
export * from './UsageBreakdownByAgent';
|
|
106
|
+
export * from './UsageBreakdownByDay';
|
|
107
|
+
export * from './UsageHistoryResponse';
|
|
108
|
+
export * from './UsageRecordDto';
|
|
101
109
|
export * from './UserPreferences';
|
|
102
110
|
export * from './UserPreferencesUpdate';
|
|
103
111
|
export * from './VoiceAgent';
|
|
@@ -106,5 +114,7 @@ export * from './VoiceAgentMetadata';
|
|
|
106
114
|
export * from './VoiceAgentUpdate';
|
|
107
115
|
export * from './VoiceAgentWithSipTrunks';
|
|
108
116
|
export * from './VoiceAgentWithSipTrunksAllOfSipTrunks';
|
|
117
|
+
export * from './VoiceUsageReportRequest';
|
|
118
|
+
export * from './VoiceUsageReportResponse';
|
|
109
119
|
export * from './WidgetConfig';
|
|
110
120
|
export * from './WidgetPosition';
|
|
@@ -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 AdminGrantMinutesRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminGrantMinutesRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Positive to grant (credit), negative to deduct.
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof AdminGrantMinutesRequest
|
|
22
|
+
*/
|
|
23
|
+
minutes: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AdminGrantMinutesRequest
|
|
28
|
+
*/
|
|
29
|
+
note?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AdminGrantMinutesRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfAdminGrantMinutesRequest(value: object): value is AdminGrantMinutesRequest;
|
|
35
|
+
export declare function AdminGrantMinutesRequestFromJSON(json: any): AdminGrantMinutesRequest;
|
|
36
|
+
export declare function AdminGrantMinutesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminGrantMinutesRequest;
|
|
37
|
+
export declare function AdminGrantMinutesRequestToJSON(json: any): AdminGrantMinutesRequest;
|
|
38
|
+
export declare function AdminGrantMinutesRequestToJSONTyped(value?: AdminGrantMinutesRequest | 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.instanceOfAdminGrantMinutesRequest = instanceOfAdminGrantMinutesRequest;
|
|
17
|
+
exports.AdminGrantMinutesRequestFromJSON = AdminGrantMinutesRequestFromJSON;
|
|
18
|
+
exports.AdminGrantMinutesRequestFromJSONTyped = AdminGrantMinutesRequestFromJSONTyped;
|
|
19
|
+
exports.AdminGrantMinutesRequestToJSON = AdminGrantMinutesRequestToJSON;
|
|
20
|
+
exports.AdminGrantMinutesRequestToJSONTyped = AdminGrantMinutesRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AdminGrantMinutesRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAdminGrantMinutesRequest(value) {
|
|
25
|
+
if (!('minutes' in value) || value['minutes'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function AdminGrantMinutesRequestFromJSON(json) {
|
|
30
|
+
return AdminGrantMinutesRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function AdminGrantMinutesRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'minutes': json['minutes'],
|
|
38
|
+
'note': json['note'] == null ? undefined : json['note'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function AdminGrantMinutesRequestToJSON(json) {
|
|
42
|
+
return AdminGrantMinutesRequestToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function AdminGrantMinutesRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'minutes': value['minutes'],
|
|
50
|
+
'note': value['note'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
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 AdminSetSubscriptionRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminSetSubscriptionRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AdminSetSubscriptionRequest
|
|
22
|
+
*/
|
|
23
|
+
planSlug: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AdminSetSubscriptionRequest
|
|
28
|
+
*/
|
|
29
|
+
status?: AdminSetSubscriptionRequestStatusEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AdminSetSubscriptionRequest
|
|
34
|
+
*/
|
|
35
|
+
billingInterval?: AdminSetSubscriptionRequestBillingIntervalEnum | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AdminSetSubscriptionRequest
|
|
40
|
+
*/
|
|
41
|
+
currency?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof AdminSetSubscriptionRequest
|
|
46
|
+
*/
|
|
47
|
+
currentPeriodStart?: Date;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof AdminSetSubscriptionRequest
|
|
52
|
+
*/
|
|
53
|
+
currentPeriodEnd?: Date;
|
|
54
|
+
/**
|
|
55
|
+
* Stored on the audit event for context.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof AdminSetSubscriptionRequest
|
|
58
|
+
*/
|
|
59
|
+
note?: string;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export declare const AdminSetSubscriptionRequestStatusEnum: {
|
|
65
|
+
readonly Active: "active";
|
|
66
|
+
readonly Trialing: "trialing";
|
|
67
|
+
readonly Paused: "paused";
|
|
68
|
+
readonly Canceled: "canceled";
|
|
69
|
+
};
|
|
70
|
+
export type AdminSetSubscriptionRequestStatusEnum = typeof AdminSetSubscriptionRequestStatusEnum[keyof typeof AdminSetSubscriptionRequestStatusEnum];
|
|
71
|
+
/**
|
|
72
|
+
* @export
|
|
73
|
+
*/
|
|
74
|
+
export declare const AdminSetSubscriptionRequestBillingIntervalEnum: {
|
|
75
|
+
readonly Monthly: "monthly";
|
|
76
|
+
readonly Yearly: "yearly";
|
|
77
|
+
};
|
|
78
|
+
export type AdminSetSubscriptionRequestBillingIntervalEnum = typeof AdminSetSubscriptionRequestBillingIntervalEnum[keyof typeof AdminSetSubscriptionRequestBillingIntervalEnum];
|
|
79
|
+
/**
|
|
80
|
+
* Check if a given object implements the AdminSetSubscriptionRequest interface.
|
|
81
|
+
*/
|
|
82
|
+
export declare function instanceOfAdminSetSubscriptionRequest(value: object): value is AdminSetSubscriptionRequest;
|
|
83
|
+
export declare function AdminSetSubscriptionRequestFromJSON(json: any): AdminSetSubscriptionRequest;
|
|
84
|
+
export declare function AdminSetSubscriptionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminSetSubscriptionRequest;
|
|
85
|
+
export declare function AdminSetSubscriptionRequestToJSON(json: any): AdminSetSubscriptionRequest;
|
|
86
|
+
export declare function AdminSetSubscriptionRequestToJSONTyped(value?: AdminSetSubscriptionRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,79 @@
|
|
|
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.AdminSetSubscriptionRequestBillingIntervalEnum = exports.AdminSetSubscriptionRequestStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfAdminSetSubscriptionRequest = instanceOfAdminSetSubscriptionRequest;
|
|
18
|
+
exports.AdminSetSubscriptionRequestFromJSON = AdminSetSubscriptionRequestFromJSON;
|
|
19
|
+
exports.AdminSetSubscriptionRequestFromJSONTyped = AdminSetSubscriptionRequestFromJSONTyped;
|
|
20
|
+
exports.AdminSetSubscriptionRequestToJSON = AdminSetSubscriptionRequestToJSON;
|
|
21
|
+
exports.AdminSetSubscriptionRequestToJSONTyped = AdminSetSubscriptionRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.AdminSetSubscriptionRequestStatusEnum = {
|
|
26
|
+
Active: 'active',
|
|
27
|
+
Trialing: 'trialing',
|
|
28
|
+
Paused: 'paused',
|
|
29
|
+
Canceled: 'canceled'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
exports.AdminSetSubscriptionRequestBillingIntervalEnum = {
|
|
35
|
+
Monthly: 'monthly',
|
|
36
|
+
Yearly: 'yearly'
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the AdminSetSubscriptionRequest interface.
|
|
40
|
+
*/
|
|
41
|
+
function instanceOfAdminSetSubscriptionRequest(value) {
|
|
42
|
+
if (!('planSlug' in value) || value['planSlug'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
function AdminSetSubscriptionRequestFromJSON(json) {
|
|
47
|
+
return AdminSetSubscriptionRequestFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function AdminSetSubscriptionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'planSlug': json['planSlug'],
|
|
55
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
56
|
+
'billingInterval': json['billingInterval'] == null ? undefined : json['billingInterval'],
|
|
57
|
+
'currency': json['currency'] == null ? undefined : json['currency'],
|
|
58
|
+
'currentPeriodStart': json['currentPeriodStart'] == null ? undefined : (new Date(json['currentPeriodStart'])),
|
|
59
|
+
'currentPeriodEnd': json['currentPeriodEnd'] == null ? undefined : (new Date(json['currentPeriodEnd'])),
|
|
60
|
+
'note': json['note'] == null ? undefined : json['note'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
function AdminSetSubscriptionRequestToJSON(json) {
|
|
64
|
+
return AdminSetSubscriptionRequestToJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
function AdminSetSubscriptionRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
67
|
+
if (value == null) {
|
|
68
|
+
return value;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
'planSlug': value['planSlug'],
|
|
72
|
+
'status': value['status'],
|
|
73
|
+
'billingInterval': value['billingInterval'],
|
|
74
|
+
'currency': value['currency'],
|
|
75
|
+
'currentPeriodStart': value['currentPeriodStart'] == null ? value['currentPeriodStart'] : value['currentPeriodStart'].toISOString(),
|
|
76
|
+
'currentPeriodEnd': value['currentPeriodEnd'] == null ? value['currentPeriodEnd'] : value['currentPeriodEnd'].toISOString(),
|
|
77
|
+
'note': value['note'],
|
|
78
|
+
};
|
|
79
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { SubscriptionStatus } from './SubscriptionStatus';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AdminSubscriptionsListResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface AdminSubscriptionsListResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<SubscriptionStatus>}
|
|
22
|
+
* @memberof AdminSubscriptionsListResponse
|
|
23
|
+
*/
|
|
24
|
+
items: Array<SubscriptionStatus>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof AdminSubscriptionsListResponse
|
|
29
|
+
*/
|
|
30
|
+
total: number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the AdminSubscriptionsListResponse interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfAdminSubscriptionsListResponse(value: object): value is AdminSubscriptionsListResponse;
|
|
36
|
+
export declare function AdminSubscriptionsListResponseFromJSON(json: any): AdminSubscriptionsListResponse;
|
|
37
|
+
export declare function AdminSubscriptionsListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminSubscriptionsListResponse;
|
|
38
|
+
export declare function AdminSubscriptionsListResponseToJSON(json: any): AdminSubscriptionsListResponse;
|
|
39
|
+
export declare function AdminSubscriptionsListResponseToJSONTyped(value?: AdminSubscriptionsListResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.instanceOfAdminSubscriptionsListResponse = instanceOfAdminSubscriptionsListResponse;
|
|
17
|
+
exports.AdminSubscriptionsListResponseFromJSON = AdminSubscriptionsListResponseFromJSON;
|
|
18
|
+
exports.AdminSubscriptionsListResponseFromJSONTyped = AdminSubscriptionsListResponseFromJSONTyped;
|
|
19
|
+
exports.AdminSubscriptionsListResponseToJSON = AdminSubscriptionsListResponseToJSON;
|
|
20
|
+
exports.AdminSubscriptionsListResponseToJSONTyped = AdminSubscriptionsListResponseToJSONTyped;
|
|
21
|
+
const SubscriptionStatus_1 = require("./SubscriptionStatus");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AdminSubscriptionsListResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAdminSubscriptionsListResponse(value) {
|
|
26
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function AdminSubscriptionsListResponseFromJSON(json) {
|
|
33
|
+
return AdminSubscriptionsListResponseFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function AdminSubscriptionsListResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'items': (json['items'].map(SubscriptionStatus_1.SubscriptionStatusFromJSON)),
|
|
41
|
+
'total': json['total'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function AdminSubscriptionsListResponseToJSON(json) {
|
|
45
|
+
return AdminSubscriptionsListResponseToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function AdminSubscriptionsListResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'items': (value['items'].map(SubscriptionStatus_1.SubscriptionStatusToJSON)),
|
|
53
|
+
'total': value['total'],
|
|
54
|
+
};
|
|
55
|
+
}
|
package/dist/models/Call.d.ts
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { CallFlag } from './CallFlag';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -61,6 +62,12 @@ export interface Call {
|
|
|
61
62
|
* @memberof Call
|
|
62
63
|
*/
|
|
63
64
|
created_at: Date;
|
|
65
|
+
/**
|
|
66
|
+
* Flags raised on this call (empty when none)
|
|
67
|
+
* @type {Array<CallFlag>}
|
|
68
|
+
* @memberof Call
|
|
69
|
+
*/
|
|
70
|
+
flags?: Array<CallFlag>;
|
|
64
71
|
}
|
|
65
72
|
/**
|
|
66
73
|
* Check if a given object implements the Call interface.
|
package/dist/models/Call.js
CHANGED
|
@@ -18,6 +18,7 @@ exports.CallFromJSON = CallFromJSON;
|
|
|
18
18
|
exports.CallFromJSONTyped = CallFromJSONTyped;
|
|
19
19
|
exports.CallToJSON = CallToJSON;
|
|
20
20
|
exports.CallToJSONTyped = CallToJSONTyped;
|
|
21
|
+
const CallFlag_1 = require("./CallFlag");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the Call interface.
|
|
23
24
|
*/
|
|
@@ -43,6 +44,7 @@ function CallFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
44
|
'caller': json['caller'] == null ? undefined : json['caller'],
|
|
44
45
|
'sandbox': json['sandbox'] == null ? undefined : json['sandbox'],
|
|
45
46
|
'created_at': (new Date(json['created_at'])),
|
|
47
|
+
'flags': json['flags'] == null ? undefined : (json['flags'].map(CallFlag_1.CallFlagFromJSON)),
|
|
46
48
|
};
|
|
47
49
|
}
|
|
48
50
|
function CallToJSON(json) {
|
|
@@ -60,5 +62,6 @@ function CallToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
60
62
|
'caller': value['caller'],
|
|
61
63
|
'sandbox': value['sandbox'],
|
|
62
64
|
'created_at': value['created_at'].toISOString(),
|
|
65
|
+
'flags': value['flags'] == null ? undefined : (value['flags'].map(CallFlag_1.CallFlagToJSON)),
|
|
63
66
|
};
|
|
64
67
|
}
|
|
@@ -0,0 +1,110 @@
|
|
|
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 CallFlag
|
|
16
|
+
*/
|
|
17
|
+
export interface CallFlag {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CallFlag
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CallFlag
|
|
28
|
+
*/
|
|
29
|
+
call_id: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CallFlag
|
|
34
|
+
*/
|
|
35
|
+
flag_type: CallFlagFlagTypeEnum;
|
|
36
|
+
/**
|
|
37
|
+
* Free-text description of why the call was flagged
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CallFlag
|
|
40
|
+
*/
|
|
41
|
+
reason?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* Derived from resolved_at (open when null, otherwise resolved)
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CallFlag
|
|
46
|
+
*/
|
|
47
|
+
status: CallFlagStatusEnum;
|
|
48
|
+
/**
|
|
49
|
+
* User id of whoever raised the flag
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof CallFlag
|
|
52
|
+
*/
|
|
53
|
+
flagged_by?: string | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Date}
|
|
57
|
+
* @memberof CallFlag
|
|
58
|
+
*/
|
|
59
|
+
resolved_at?: Date | null;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof CallFlag
|
|
64
|
+
*/
|
|
65
|
+
resolved_by?: string | null;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof CallFlag
|
|
70
|
+
*/
|
|
71
|
+
resolution_note?: string | null;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {Date}
|
|
75
|
+
* @memberof CallFlag
|
|
76
|
+
*/
|
|
77
|
+
created_at: Date;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {Date}
|
|
81
|
+
* @memberof CallFlag
|
|
82
|
+
*/
|
|
83
|
+
updated_at: Date;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* @export
|
|
87
|
+
*/
|
|
88
|
+
export declare const CallFlagFlagTypeEnum: {
|
|
89
|
+
readonly Error: "error";
|
|
90
|
+
readonly FollowUp: "follow_up";
|
|
91
|
+
readonly ManualReview: "manual_review";
|
|
92
|
+
readonly Other: "other";
|
|
93
|
+
};
|
|
94
|
+
export type CallFlagFlagTypeEnum = typeof CallFlagFlagTypeEnum[keyof typeof CallFlagFlagTypeEnum];
|
|
95
|
+
/**
|
|
96
|
+
* @export
|
|
97
|
+
*/
|
|
98
|
+
export declare const CallFlagStatusEnum: {
|
|
99
|
+
readonly Open: "open";
|
|
100
|
+
readonly Resolved: "resolved";
|
|
101
|
+
};
|
|
102
|
+
export type CallFlagStatusEnum = typeof CallFlagStatusEnum[keyof typeof CallFlagStatusEnum];
|
|
103
|
+
/**
|
|
104
|
+
* Check if a given object implements the CallFlag interface.
|
|
105
|
+
*/
|
|
106
|
+
export declare function instanceOfCallFlag(value: object): value is CallFlag;
|
|
107
|
+
export declare function CallFlagFromJSON(json: any): CallFlag;
|
|
108
|
+
export declare function CallFlagFromJSONTyped(json: any, ignoreDiscriminator: boolean): CallFlag;
|
|
109
|
+
export declare function CallFlagToJSON(json: any): CallFlag;
|
|
110
|
+
export declare function CallFlagToJSONTyped(value?: CallFlag | null, ignoreDiscriminator?: boolean): any;
|