@l7mp/tivadar-ai-api-sdk 0.2.9 → 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/VoiceAgentMetadata.d.ts +6 -0
- package/dist/esm/models/VoiceAgentMetadata.js +2 -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/VoiceAgentMetadata.d.ts +6 -0
- package/dist/models/VoiceAgentMetadata.js +2 -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/VoiceAgentMetadata.ts +8 -0
- package/src/models/VoiceUsageReportRequest.ts +108 -0
- package/src/models/VoiceUsageReportResponse.ts +99 -0
- package/src/models/index.ts +16 -13
package/dist/models/index.js
CHANGED
|
@@ -16,6 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./AdminGrantMinutesRequest"), exports);
|
|
20
|
+
__exportStar(require("./AdminSetSubscriptionRequest"), exports);
|
|
19
21
|
__exportStar(require("./AgentTool"), exports);
|
|
20
22
|
__exportStar(require("./AgentToolUpsert"), exports);
|
|
21
23
|
__exportStar(require("./BillingPortalRequest"), exports);
|
|
@@ -34,15 +36,12 @@ __exportStar(require("./Call"), exports);
|
|
|
34
36
|
__exportStar(require("./CallCreate"), exports);
|
|
35
37
|
__exportStar(require("./CallUpdate"), exports);
|
|
36
38
|
__exportStar(require("./CancelSubscriptionRequest"), exports);
|
|
37
|
-
__exportStar(require("./CancelSubscriptionResponse"), exports);
|
|
38
39
|
__exportStar(require("./ChatAgent"), exports);
|
|
39
40
|
__exportStar(require("./ChatAgentCreate"), exports);
|
|
40
41
|
__exportStar(require("./ChatAgentUpdate"), exports);
|
|
41
42
|
__exportStar(require("./CheckoutSessionResponse"), exports);
|
|
42
43
|
__exportStar(require("./CreateCheckoutSessionRequest"), exports);
|
|
43
|
-
__exportStar(require("./
|
|
44
|
-
__exportStar(require("./CreditTransaction"), exports);
|
|
45
|
-
__exportStar(require("./CreditTransactionsResponse"), exports);
|
|
44
|
+
__exportStar(require("./CurrentPeriodUsage"), exports);
|
|
46
45
|
__exportStar(require("./DispatchRuleCreate"), exports);
|
|
47
46
|
__exportStar(require("./HistoryConversation"), exports);
|
|
48
47
|
__exportStar(require("./HistoryMessage"), exports);
|
|
@@ -50,6 +49,7 @@ __exportStar(require("./HistorySummary"), exports);
|
|
|
50
49
|
__exportStar(require("./InvitationAccept"), exports);
|
|
51
50
|
__exportStar(require("./InvitationCreate"), exports);
|
|
52
51
|
__exportStar(require("./InvitationResponse"), exports);
|
|
52
|
+
__exportStar(require("./LifecycleResponse"), exports);
|
|
53
53
|
__exportStar(require("./LlmAgent"), exports);
|
|
54
54
|
__exportStar(require("./LlmAgentInput"), exports);
|
|
55
55
|
__exportStar(require("./LlmAgentUpdateInput"), exports);
|
|
@@ -73,8 +73,6 @@ __exportStar(require("./OrganizationsOrganizationIdSipDispatchRulesPost200Respon
|
|
|
73
73
|
__exportStar(require("./OrganizationsOrganizationIdVoiceAgentsBasicGet200ResponseInner"), exports);
|
|
74
74
|
__exportStar(require("./OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPostRequest"), exports);
|
|
75
75
|
__exportStar(require("./PauseSubscriptionRequest"), exports);
|
|
76
|
-
__exportStar(require("./PauseSubscriptionResponse"), exports);
|
|
77
|
-
__exportStar(require("./PauseSubscriptionResponsePauseCollection"), exports);
|
|
78
76
|
__exportStar(require("./PhoneNumber"), exports);
|
|
79
77
|
__exportStar(require("./PhoneNumberCreate"), exports);
|
|
80
78
|
__exportStar(require("./Phonebook"), exports);
|
|
@@ -84,6 +82,9 @@ __exportStar(require("./PhonebookEntryUpdate"), exports);
|
|
|
84
82
|
__exportStar(require("./PhonebookImportResult"), exports);
|
|
85
83
|
__exportStar(require("./PhonebookImportResultErrorsInner"), exports);
|
|
86
84
|
__exportStar(require("./PhonebookUpdate"), exports);
|
|
85
|
+
__exportStar(require("./PlanCatalogEntry"), exports);
|
|
86
|
+
__exportStar(require("./PlanCatalogEntryOverageInner"), exports);
|
|
87
|
+
__exportStar(require("./PlanCatalogPrice"), exports);
|
|
87
88
|
__exportStar(require("./RagConfig"), exports);
|
|
88
89
|
__exportStar(require("./RagConfigCreate"), exports);
|
|
89
90
|
__exportStar(require("./RagDocument"), exports);
|
|
@@ -91,7 +92,6 @@ __exportStar(require("./RagDocumentChunk"), exports);
|
|
|
91
92
|
__exportStar(require("./RagDocumentChunkList"), exports);
|
|
92
93
|
__exportStar(require("./RagDocumentList"), exports);
|
|
93
94
|
__exportStar(require("./RecordingSignedUrl"), exports);
|
|
94
|
-
__exportStar(require("./ResumeSubscriptionResponse"), exports);
|
|
95
95
|
__exportStar(require("./SandboxToken"), exports);
|
|
96
96
|
__exportStar(require("./SipTrunk"), exports);
|
|
97
97
|
__exportStar(require("./SipTrunkCreate"), exports);
|
|
@@ -99,11 +99,10 @@ __exportStar(require("./SipTrunkWithAgent"), exports);
|
|
|
99
99
|
__exportStar(require("./SipTrunkWithAgentAllOfAgents"), exports);
|
|
100
100
|
__exportStar(require("./SttProvider"), exports);
|
|
101
101
|
__exportStar(require("./SttProviderModel"), exports);
|
|
102
|
-
__exportStar(require("./
|
|
102
|
+
__exportStar(require("./SubscriptionPlanSummary"), exports);
|
|
103
|
+
__exportStar(require("./SubscriptionPlanSummaryOverageRate"), exports);
|
|
103
104
|
__exportStar(require("./SubscriptionStatus"), exports);
|
|
104
|
-
__exportStar(require("./
|
|
105
|
-
__exportStar(require("./SubscriptionStatusService"), exports);
|
|
106
|
-
__exportStar(require("./SubscriptionStatusSubscription"), exports);
|
|
105
|
+
__exportStar(require("./SubscriptionUsageSummary"), exports);
|
|
107
106
|
__exportStar(require("./Tool"), exports);
|
|
108
107
|
__exportStar(require("./ToolConfig"), exports);
|
|
109
108
|
__exportStar(require("./ToolCreate"), exports);
|
|
@@ -111,9 +110,11 @@ __exportStar(require("./ToolUpdate"), exports);
|
|
|
111
110
|
__exportStar(require("./TtsProvider"), exports);
|
|
112
111
|
__exportStar(require("./TtsProviderModel"), exports);
|
|
113
112
|
__exportStar(require("./TtsProviderVoice"), exports);
|
|
114
|
-
__exportStar(require("./UnpauseSubscriptionResponse"), exports);
|
|
115
113
|
__exportStar(require("./UpdatePlanRequest"), exports);
|
|
116
|
-
__exportStar(require("./
|
|
114
|
+
__exportStar(require("./UsageBreakdownByAgent"), exports);
|
|
115
|
+
__exportStar(require("./UsageBreakdownByDay"), exports);
|
|
116
|
+
__exportStar(require("./UsageHistoryResponse"), exports);
|
|
117
|
+
__exportStar(require("./UsageRecordDto"), exports);
|
|
117
118
|
__exportStar(require("./UserPreferences"), exports);
|
|
118
119
|
__exportStar(require("./UserPreferencesUpdate"), exports);
|
|
119
120
|
__exportStar(require("./VoiceAgent"), exports);
|
|
@@ -122,5 +123,7 @@ __exportStar(require("./VoiceAgentMetadata"), exports);
|
|
|
122
123
|
__exportStar(require("./VoiceAgentUpdate"), exports);
|
|
123
124
|
__exportStar(require("./VoiceAgentWithSipTrunks"), exports);
|
|
124
125
|
__exportStar(require("./VoiceAgentWithSipTrunksAllOfSipTrunks"), exports);
|
|
126
|
+
__exportStar(require("./VoiceUsageReportRequest"), exports);
|
|
127
|
+
__exportStar(require("./VoiceUsageReportResponse"), exports);
|
|
125
128
|
__exportStar(require("./WidgetConfig"), exports);
|
|
126
129
|
__exportStar(require("./WidgetPosition"), exports);
|
package/package.json
CHANGED
package/src/api-client.ts
CHANGED
|
@@ -18,6 +18,8 @@ import { LLMProvidersApi } from "./apis/LLMProvidersApi";
|
|
|
18
18
|
import { STTProvidersApi } from "./apis/STTProvidersApi";
|
|
19
19
|
import { TTSProvidersApi } from "./apis/TTSProvidersApi";
|
|
20
20
|
import { SubscriptionApi } from "./apis/SubscriptionApi";
|
|
21
|
+
import { AdminSubscriptionsApi } from "./apis/AdminSubscriptionsApi";
|
|
22
|
+
import { VoiceUsageApi } from "./apis/VoiceUsageApi";
|
|
21
23
|
import { VoiceAgentsApi } from "./apis/VoiceAgentsApi";
|
|
22
24
|
import { ToolsApi } from "./apis/ToolsApi";
|
|
23
25
|
import { PhonebookApi } from "./apis/PhonebookApi";
|
|
@@ -51,6 +53,9 @@ import type {
|
|
|
51
53
|
UpdatePlanRequest,
|
|
52
54
|
PauseSubscriptionRequest,
|
|
53
55
|
BillingPortalRequest,
|
|
56
|
+
AdminSetSubscriptionRequest,
|
|
57
|
+
AdminGrantMinutesRequest,
|
|
58
|
+
VoiceUsageReportRequest,
|
|
54
59
|
OrganizationsOrganizationIdNotificationsGet200Response,
|
|
55
60
|
UserPreferencesUpdate,
|
|
56
61
|
AgentToolUpsert,
|
|
@@ -59,6 +64,11 @@ import type {
|
|
|
59
64
|
PhonebookEntryUpdate,
|
|
60
65
|
} from "./models";
|
|
61
66
|
|
|
67
|
+
function toDate(value: Date | string | undefined): Date | undefined {
|
|
68
|
+
if (value === undefined) return undefined;
|
|
69
|
+
return value instanceof Date ? value : new Date(value);
|
|
70
|
+
}
|
|
71
|
+
|
|
62
72
|
export interface ApiClientConfig {
|
|
63
73
|
baseUrl: string;
|
|
64
74
|
options?: {
|
|
@@ -158,7 +168,7 @@ export class Api {
|
|
|
158
168
|
};
|
|
159
169
|
public readonly subscription: {
|
|
160
170
|
getStatus: (organizationId: string, options?: RequestInit) => ReturnType<SubscriptionApi["organizationsOrganizationIdSubscriptionGet"]>;
|
|
161
|
-
|
|
171
|
+
listPlans: (organizationId: string, options?: RequestInit) => ReturnType<SubscriptionApi["organizationsOrganizationIdSubscriptionPlansGet"]>;
|
|
162
172
|
createCheckout: (organizationId: string, createCheckoutSessionRequest: CreateCheckoutSessionRequest, options?: RequestInit) => ReturnType<SubscriptionApi["organizationsOrganizationIdSubscriptionCheckoutPost"]>;
|
|
163
173
|
cancel: (organizationId: string, cancelSubscriptionRequest?: CancelSubscriptionRequest, options?: RequestInit) => ReturnType<SubscriptionApi["organizationsOrganizationIdSubscriptionCancelPost"]>;
|
|
164
174
|
resume: (organizationId: string, options?: RequestInit) => ReturnType<SubscriptionApi["organizationsOrganizationIdSubscriptionResumePost"]>;
|
|
@@ -166,8 +176,18 @@ export class Api {
|
|
|
166
176
|
pause: (organizationId: string, pauseSubscriptionRequest?: PauseSubscriptionRequest, options?: RequestInit) => ReturnType<SubscriptionApi["organizationsOrganizationIdSubscriptionPausePost"]>;
|
|
167
177
|
unpause: (organizationId: string, options?: RequestInit) => ReturnType<SubscriptionApi["organizationsOrganizationIdSubscriptionUnpausePost"]>;
|
|
168
178
|
billingPortal: (organizationId: string, billingPortalRequest: BillingPortalRequest, options?: RequestInit) => ReturnType<SubscriptionApi["organizationsOrganizationIdSubscriptionBillingPortalPost"]>;
|
|
169
|
-
|
|
170
|
-
|
|
179
|
+
getUsage: (organizationId: string, options?: RequestInit) => ReturnType<SubscriptionApi["organizationsOrganizationIdSubscriptionUsageGet"]>;
|
|
180
|
+
getUsageHistory: (organizationId: string, params?: { from?: Date | string; to?: Date | string; limit?: number; offset?: number }, options?: RequestInit) => ReturnType<SubscriptionApi["organizationsOrganizationIdSubscriptionUsageHistoryGet"]>;
|
|
181
|
+
};
|
|
182
|
+
public readonly adminSubscriptions: {
|
|
183
|
+
list: (params?: { status?: string; plan_slug?: string; search?: string; limit?: number; offset?: number }, options?: RequestInit) => ReturnType<AdminSubscriptionsApi["adminSubscriptionsGet"]>;
|
|
184
|
+
get: (organizationId: string, options?: RequestInit) => ReturnType<AdminSubscriptionsApi["adminSubscriptionsOrganizationIdGet"]>;
|
|
185
|
+
set: (organizationId: string, adminSetSubscriptionRequest: AdminSetSubscriptionRequest, options?: RequestInit) => ReturnType<AdminSubscriptionsApi["adminSubscriptionsOrganizationIdPost"]>;
|
|
186
|
+
grantMinutes: (organizationId: string, adminGrantMinutesRequest: AdminGrantMinutesRequest, options?: RequestInit) => ReturnType<AdminSubscriptionsApi["adminSubscriptionsOrganizationIdGrantMinutesPost"]>;
|
|
187
|
+
cancel: (organizationId: string, cancelSubscriptionRequest?: CancelSubscriptionRequest, options?: RequestInit) => ReturnType<AdminSubscriptionsApi["adminSubscriptionsOrganizationIdCancelPost"]>;
|
|
188
|
+
};
|
|
189
|
+
public readonly voiceUsage: {
|
|
190
|
+
report: (voiceUsageReportRequest: VoiceUsageReportRequest, options?: RequestInit) => ReturnType<VoiceUsageApi["voiceUsageReportPost"]>;
|
|
171
191
|
};
|
|
172
192
|
|
|
173
193
|
public readonly llmProviders: {
|
|
@@ -223,6 +243,8 @@ export class Api {
|
|
|
223
243
|
private readonly sipApi: SIPApi;
|
|
224
244
|
private readonly notificationsApi: NotificationsApi;
|
|
225
245
|
private readonly subscriptionApi: SubscriptionApi;
|
|
246
|
+
private readonly adminSubscriptionsApi: AdminSubscriptionsApi;
|
|
247
|
+
private readonly voiceUsageApi: VoiceUsageApi;
|
|
226
248
|
private readonly embeddingProvidersApi: EmbeddingProvidersApi;
|
|
227
249
|
private readonly llmProvidersApi: LLMProvidersApi;
|
|
228
250
|
private readonly sttProvidersApi: STTProvidersApi;
|
|
@@ -264,6 +286,8 @@ export class Api {
|
|
|
264
286
|
this.sipApi = new SIPApi(configuration);
|
|
265
287
|
this.notificationsApi = new NotificationsApi(configuration);
|
|
266
288
|
this.subscriptionApi = new SubscriptionApi(configuration);
|
|
289
|
+
this.adminSubscriptionsApi = new AdminSubscriptionsApi(configuration);
|
|
290
|
+
this.voiceUsageApi = new VoiceUsageApi(configuration);
|
|
267
291
|
this.embeddingProvidersApi = new EmbeddingProvidersApi(configuration);
|
|
268
292
|
this.llmProvidersApi = new LLMProvidersApi(configuration);
|
|
269
293
|
this.sttProvidersApi = new STTProvidersApi(configuration);
|
|
@@ -385,7 +409,7 @@ export class Api {
|
|
|
385
409
|
|
|
386
410
|
this.subscription = {
|
|
387
411
|
getStatus: (organizationId, options) => this.subscriptionApi.organizationsOrganizationIdSubscriptionGet({ organizationId }, options),
|
|
388
|
-
|
|
412
|
+
listPlans: (organizationId, options) => this.subscriptionApi.organizationsOrganizationIdSubscriptionPlansGet({ organizationId }, options),
|
|
389
413
|
createCheckout: (organizationId, createCheckoutSessionRequest, options) => this.subscriptionApi.organizationsOrganizationIdSubscriptionCheckoutPost({ organizationId, createCheckoutSessionRequest }, options),
|
|
390
414
|
cancel: (organizationId, cancelSubscriptionRequest, options) => this.subscriptionApi.organizationsOrganizationIdSubscriptionCancelPost({ organizationId, cancelSubscriptionRequest }, options),
|
|
391
415
|
resume: (organizationId, options) => this.subscriptionApi.organizationsOrganizationIdSubscriptionResumePost({ organizationId }, options),
|
|
@@ -393,8 +417,20 @@ export class Api {
|
|
|
393
417
|
pause: (organizationId, pauseSubscriptionRequest, options) => this.subscriptionApi.organizationsOrganizationIdSubscriptionPausePost({ organizationId, pauseSubscriptionRequest }, options),
|
|
394
418
|
unpause: (organizationId, options) => this.subscriptionApi.organizationsOrganizationIdSubscriptionUnpausePost({ organizationId }, options),
|
|
395
419
|
billingPortal: (organizationId, billingPortalRequest, options) => this.subscriptionApi.organizationsOrganizationIdSubscriptionBillingPortalPost({ organizationId, billingPortalRequest }, options),
|
|
396
|
-
|
|
397
|
-
|
|
420
|
+
getUsage: (organizationId, options) => this.subscriptionApi.organizationsOrganizationIdSubscriptionUsageGet({ organizationId }, options),
|
|
421
|
+
getUsageHistory: (organizationId, params, options) => this.subscriptionApi.organizationsOrganizationIdSubscriptionUsageHistoryGet({ organizationId, from: toDate(params?.from), to: toDate(params?.to), limit: params?.limit, offset: params?.offset }, options),
|
|
422
|
+
};
|
|
423
|
+
|
|
424
|
+
this.adminSubscriptions = {
|
|
425
|
+
list: (params, options) => this.adminSubscriptionsApi.adminSubscriptionsGet({ status: params?.status, planSlug: params?.plan_slug, search: params?.search, limit: params?.limit, offset: params?.offset }, options),
|
|
426
|
+
get: (organizationId, options) => this.adminSubscriptionsApi.adminSubscriptionsOrganizationIdGet({ organizationId }, options),
|
|
427
|
+
set: (organizationId, adminSetSubscriptionRequest, options) => this.adminSubscriptionsApi.adminSubscriptionsOrganizationIdPost({ organizationId, adminSetSubscriptionRequest }, options),
|
|
428
|
+
grantMinutes: (organizationId, adminGrantMinutesRequest, options) => this.adminSubscriptionsApi.adminSubscriptionsOrganizationIdGrantMinutesPost({ organizationId, adminGrantMinutesRequest }, options),
|
|
429
|
+
cancel: (organizationId, cancelSubscriptionRequest, options) => this.adminSubscriptionsApi.adminSubscriptionsOrganizationIdCancelPost({ organizationId, cancelSubscriptionRequest }, options),
|
|
430
|
+
};
|
|
431
|
+
|
|
432
|
+
this.voiceUsage = {
|
|
433
|
+
report: (voiceUsageReportRequest, options) => this.voiceUsageApi.voiceUsageReportPost({ voiceUsageReportRequest }, options),
|
|
398
434
|
};
|
|
399
435
|
|
|
400
436
|
this.embeddingProviders = {
|
|
@@ -0,0 +1,327 @@
|
|
|
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
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
AdminGrantMinutesRequest,
|
|
19
|
+
AdminSetSubscriptionRequest,
|
|
20
|
+
CancelSubscriptionRequest,
|
|
21
|
+
SubscriptionStatus,
|
|
22
|
+
} from '../models/index';
|
|
23
|
+
import {
|
|
24
|
+
AdminGrantMinutesRequestFromJSON,
|
|
25
|
+
AdminGrantMinutesRequestToJSON,
|
|
26
|
+
AdminSetSubscriptionRequestFromJSON,
|
|
27
|
+
AdminSetSubscriptionRequestToJSON,
|
|
28
|
+
CancelSubscriptionRequestFromJSON,
|
|
29
|
+
CancelSubscriptionRequestToJSON,
|
|
30
|
+
SubscriptionStatusFromJSON,
|
|
31
|
+
SubscriptionStatusToJSON,
|
|
32
|
+
} from '../models/index';
|
|
33
|
+
|
|
34
|
+
export interface AdminSubscriptionsGetRequest {
|
|
35
|
+
status?: string;
|
|
36
|
+
planSlug?: string;
|
|
37
|
+
search?: string;
|
|
38
|
+
limit?: number;
|
|
39
|
+
offset?: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface AdminSubscriptionsOrganizationIdCancelPostRequest {
|
|
43
|
+
organizationId: string;
|
|
44
|
+
cancelSubscriptionRequest?: CancelSubscriptionRequest;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface AdminSubscriptionsOrganizationIdGetRequest {
|
|
48
|
+
organizationId: string;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface AdminSubscriptionsOrganizationIdGrantMinutesPostRequest {
|
|
52
|
+
organizationId: string;
|
|
53
|
+
adminGrantMinutesRequest: AdminGrantMinutesRequest;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface AdminSubscriptionsOrganizationIdPostRequest {
|
|
57
|
+
organizationId: string;
|
|
58
|
+
adminSetSubscriptionRequest: AdminSetSubscriptionRequest;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
*/
|
|
64
|
+
export class AdminSubscriptionsApi extends runtime.BaseAPI {
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* List subscriptions across all organizations (app-admin only)
|
|
68
|
+
*/
|
|
69
|
+
async adminSubscriptionsGetRaw(requestParameters: AdminSubscriptionsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
70
|
+
const queryParameters: any = {};
|
|
71
|
+
|
|
72
|
+
if (requestParameters['status'] != null) {
|
|
73
|
+
queryParameters['status'] = requestParameters['status'];
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
if (requestParameters['planSlug'] != null) {
|
|
77
|
+
queryParameters['plan_slug'] = requestParameters['planSlug'];
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
if (requestParameters['search'] != null) {
|
|
81
|
+
queryParameters['search'] = requestParameters['search'];
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
if (requestParameters['limit'] != null) {
|
|
85
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if (requestParameters['offset'] != null) {
|
|
89
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
93
|
+
|
|
94
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
95
|
+
const token = this.configuration.accessToken;
|
|
96
|
+
const tokenString = await token("bearerAuth", []);
|
|
97
|
+
|
|
98
|
+
if (tokenString) {
|
|
99
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
let urlPath = `/admin/subscriptions`;
|
|
104
|
+
|
|
105
|
+
const response = await this.request({
|
|
106
|
+
path: urlPath,
|
|
107
|
+
method: 'GET',
|
|
108
|
+
headers: headerParameters,
|
|
109
|
+
query: queryParameters,
|
|
110
|
+
}, initOverrides);
|
|
111
|
+
|
|
112
|
+
return new runtime.VoidApiResponse(response);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* List subscriptions across all organizations (app-admin only)
|
|
117
|
+
*/
|
|
118
|
+
async adminSubscriptionsGet(requestParameters: AdminSubscriptionsGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
119
|
+
await this.adminSubscriptionsGetRaw(requestParameters, initOverrides);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Force-cancel an organization\'s subscription (app-admin only)
|
|
124
|
+
*/
|
|
125
|
+
async adminSubscriptionsOrganizationIdCancelPostRaw(requestParameters: AdminSubscriptionsOrganizationIdCancelPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SubscriptionStatus>> {
|
|
126
|
+
if (requestParameters['organizationId'] == null) {
|
|
127
|
+
throw new runtime.RequiredError(
|
|
128
|
+
'organizationId',
|
|
129
|
+
'Required parameter "organizationId" was null or undefined when calling adminSubscriptionsOrganizationIdCancelPost().'
|
|
130
|
+
);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
const queryParameters: any = {};
|
|
134
|
+
|
|
135
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
136
|
+
|
|
137
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
138
|
+
|
|
139
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
140
|
+
const token = this.configuration.accessToken;
|
|
141
|
+
const tokenString = await token("bearerAuth", []);
|
|
142
|
+
|
|
143
|
+
if (tokenString) {
|
|
144
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
let urlPath = `/admin/subscriptions/{organizationId}/cancel`;
|
|
149
|
+
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
150
|
+
|
|
151
|
+
const response = await this.request({
|
|
152
|
+
path: urlPath,
|
|
153
|
+
method: 'POST',
|
|
154
|
+
headers: headerParameters,
|
|
155
|
+
query: queryParameters,
|
|
156
|
+
body: CancelSubscriptionRequestToJSON(requestParameters['cancelSubscriptionRequest']),
|
|
157
|
+
}, initOverrides);
|
|
158
|
+
|
|
159
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SubscriptionStatusFromJSON(jsonValue));
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Force-cancel an organization\'s subscription (app-admin only)
|
|
164
|
+
*/
|
|
165
|
+
async adminSubscriptionsOrganizationIdCancelPost(requestParameters: AdminSubscriptionsOrganizationIdCancelPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SubscriptionStatus> {
|
|
166
|
+
const response = await this.adminSubscriptionsOrganizationIdCancelPostRaw(requestParameters, initOverrides);
|
|
167
|
+
return await response.value();
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Get an organization\'s subscription status (app-admin only)
|
|
172
|
+
*/
|
|
173
|
+
async adminSubscriptionsOrganizationIdGetRaw(requestParameters: AdminSubscriptionsOrganizationIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SubscriptionStatus>> {
|
|
174
|
+
if (requestParameters['organizationId'] == null) {
|
|
175
|
+
throw new runtime.RequiredError(
|
|
176
|
+
'organizationId',
|
|
177
|
+
'Required parameter "organizationId" was null or undefined when calling adminSubscriptionsOrganizationIdGet().'
|
|
178
|
+
);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
const queryParameters: any = {};
|
|
182
|
+
|
|
183
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
184
|
+
|
|
185
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
186
|
+
const token = this.configuration.accessToken;
|
|
187
|
+
const tokenString = await token("bearerAuth", []);
|
|
188
|
+
|
|
189
|
+
if (tokenString) {
|
|
190
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
let urlPath = `/admin/subscriptions/{organizationId}`;
|
|
195
|
+
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
196
|
+
|
|
197
|
+
const response = await this.request({
|
|
198
|
+
path: urlPath,
|
|
199
|
+
method: 'GET',
|
|
200
|
+
headers: headerParameters,
|
|
201
|
+
query: queryParameters,
|
|
202
|
+
}, initOverrides);
|
|
203
|
+
|
|
204
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SubscriptionStatusFromJSON(jsonValue));
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Get an organization\'s subscription status (app-admin only)
|
|
209
|
+
*/
|
|
210
|
+
async adminSubscriptionsOrganizationIdGet(requestParameters: AdminSubscriptionsOrganizationIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SubscriptionStatus> {
|
|
211
|
+
const response = await this.adminSubscriptionsOrganizationIdGetRaw(requestParameters, initOverrides);
|
|
212
|
+
return await response.value();
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Credit (or debit) voice minutes for an organization (app-admin only)
|
|
217
|
+
*/
|
|
218
|
+
async adminSubscriptionsOrganizationIdGrantMinutesPostRaw(requestParameters: AdminSubscriptionsOrganizationIdGrantMinutesPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SubscriptionStatus>> {
|
|
219
|
+
if (requestParameters['organizationId'] == null) {
|
|
220
|
+
throw new runtime.RequiredError(
|
|
221
|
+
'organizationId',
|
|
222
|
+
'Required parameter "organizationId" was null or undefined when calling adminSubscriptionsOrganizationIdGrantMinutesPost().'
|
|
223
|
+
);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
if (requestParameters['adminGrantMinutesRequest'] == null) {
|
|
227
|
+
throw new runtime.RequiredError(
|
|
228
|
+
'adminGrantMinutesRequest',
|
|
229
|
+
'Required parameter "adminGrantMinutesRequest" was null or undefined when calling adminSubscriptionsOrganizationIdGrantMinutesPost().'
|
|
230
|
+
);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
const queryParameters: any = {};
|
|
234
|
+
|
|
235
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
236
|
+
|
|
237
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
238
|
+
|
|
239
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
240
|
+
const token = this.configuration.accessToken;
|
|
241
|
+
const tokenString = await token("bearerAuth", []);
|
|
242
|
+
|
|
243
|
+
if (tokenString) {
|
|
244
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
let urlPath = `/admin/subscriptions/{organizationId}/grant-minutes`;
|
|
249
|
+
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
250
|
+
|
|
251
|
+
const response = await this.request({
|
|
252
|
+
path: urlPath,
|
|
253
|
+
method: 'POST',
|
|
254
|
+
headers: headerParameters,
|
|
255
|
+
query: queryParameters,
|
|
256
|
+
body: AdminGrantMinutesRequestToJSON(requestParameters['adminGrantMinutesRequest']),
|
|
257
|
+
}, initOverrides);
|
|
258
|
+
|
|
259
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SubscriptionStatusFromJSON(jsonValue));
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Credit (or debit) voice minutes for an organization (app-admin only)
|
|
264
|
+
*/
|
|
265
|
+
async adminSubscriptionsOrganizationIdGrantMinutesPost(requestParameters: AdminSubscriptionsOrganizationIdGrantMinutesPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SubscriptionStatus> {
|
|
266
|
+
const response = await this.adminSubscriptionsOrganizationIdGrantMinutesPostRaw(requestParameters, initOverrides);
|
|
267
|
+
return await response.value();
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* Creates or replaces the local subscription record. Use this for demo/comp plans (e.g. \"give a month of enterprise\") — does NOT talk to Stripe. For Stripe-backed lifecycle changes use the org-scoped endpoints or the billing portal.
|
|
272
|
+
* Manually set/override an organization\'s subscription (app-admin only)
|
|
273
|
+
*/
|
|
274
|
+
async adminSubscriptionsOrganizationIdPostRaw(requestParameters: AdminSubscriptionsOrganizationIdPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SubscriptionStatus>> {
|
|
275
|
+
if (requestParameters['organizationId'] == null) {
|
|
276
|
+
throw new runtime.RequiredError(
|
|
277
|
+
'organizationId',
|
|
278
|
+
'Required parameter "organizationId" was null or undefined when calling adminSubscriptionsOrganizationIdPost().'
|
|
279
|
+
);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
if (requestParameters['adminSetSubscriptionRequest'] == null) {
|
|
283
|
+
throw new runtime.RequiredError(
|
|
284
|
+
'adminSetSubscriptionRequest',
|
|
285
|
+
'Required parameter "adminSetSubscriptionRequest" was null or undefined when calling adminSubscriptionsOrganizationIdPost().'
|
|
286
|
+
);
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
const queryParameters: any = {};
|
|
290
|
+
|
|
291
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
292
|
+
|
|
293
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
294
|
+
|
|
295
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
296
|
+
const token = this.configuration.accessToken;
|
|
297
|
+
const tokenString = await token("bearerAuth", []);
|
|
298
|
+
|
|
299
|
+
if (tokenString) {
|
|
300
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
let urlPath = `/admin/subscriptions/{organizationId}`;
|
|
305
|
+
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
306
|
+
|
|
307
|
+
const response = await this.request({
|
|
308
|
+
path: urlPath,
|
|
309
|
+
method: 'POST',
|
|
310
|
+
headers: headerParameters,
|
|
311
|
+
query: queryParameters,
|
|
312
|
+
body: AdminSetSubscriptionRequestToJSON(requestParameters['adminSetSubscriptionRequest']),
|
|
313
|
+
}, initOverrides);
|
|
314
|
+
|
|
315
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SubscriptionStatusFromJSON(jsonValue));
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* Creates or replaces the local subscription record. Use this for demo/comp plans (e.g. \"give a month of enterprise\") — does NOT talk to Stripe. For Stripe-backed lifecycle changes use the org-scoped endpoints or the billing portal.
|
|
320
|
+
* Manually set/override an organization\'s subscription (app-admin only)
|
|
321
|
+
*/
|
|
322
|
+
async adminSubscriptionsOrganizationIdPost(requestParameters: AdminSubscriptionsOrganizationIdPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SubscriptionStatus> {
|
|
323
|
+
const response = await this.adminSubscriptionsOrganizationIdPostRaw(requestParameters, initOverrides);
|
|
324
|
+
return await response.value();
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
}
|