@l7mp/tivadar-ai-api-sdk 0.2.10 → 0.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-client.d.ts +46 -4
- package/dist/api-client.js +33 -3
- package/dist/apis/AdminSubscriptionsApi.d.ts +82 -0
- package/dist/apis/AdminSubscriptionsApi.js +243 -0
- package/dist/apis/CallFlagsApi.d.ts +133 -0
- package/dist/apis/CallFlagsApi.js +376 -0
- package/dist/apis/SubscriptionApi.d.ts +54 -75
- package/dist/apis/SubscriptionApi.js +95 -114
- package/dist/apis/VoiceUsageApi.d.ts +31 -0
- package/dist/apis/VoiceUsageApi.js +73 -0
- package/dist/apis/index.d.ts +3 -0
- package/dist/apis/index.js +3 -0
- package/dist/esm/api-client.d.ts +46 -4
- package/dist/esm/api-client.js +33 -3
- package/dist/esm/apis/AdminSubscriptionsApi.d.ts +82 -0
- package/dist/esm/apis/AdminSubscriptionsApi.js +239 -0
- package/dist/esm/apis/CallFlagsApi.d.ts +133 -0
- package/dist/esm/apis/CallFlagsApi.js +372 -0
- package/dist/esm/apis/SubscriptionApi.d.ts +54 -75
- package/dist/esm/apis/SubscriptionApi.js +96 -115
- package/dist/esm/apis/VoiceUsageApi.d.ts +31 -0
- package/dist/esm/apis/VoiceUsageApi.js +69 -0
- package/dist/esm/apis/index.d.ts +3 -0
- package/dist/esm/apis/index.js +3 -0
- package/dist/esm/models/AdminGrantMinutesRequest.d.ts +38 -0
- package/dist/esm/models/AdminGrantMinutesRequest.js +45 -0
- package/dist/esm/models/AdminSetSubscriptionRequest.d.ts +86 -0
- package/dist/esm/models/AdminSetSubscriptionRequest.js +71 -0
- package/dist/esm/models/AdminSubscriptionsListResponse.d.ts +39 -0
- package/dist/esm/models/AdminSubscriptionsListResponse.js +48 -0
- package/dist/esm/models/BillingPortalRequest.d.ts +1 -1
- package/dist/esm/models/BillingPortalResponse.d.ts +1 -1
- package/dist/esm/models/Call.d.ts +7 -0
- package/dist/esm/models/Call.js +3 -0
- package/dist/esm/models/CallFlag.d.ts +110 -0
- package/dist/esm/models/CallFlag.js +89 -0
- package/dist/esm/models/CallFlagCreate.d.ts +48 -0
- package/dist/esm/models/CallFlagCreate.js +54 -0
- package/dist/esm/models/CallFlagResolve.d.ts +32 -0
- package/dist/esm/models/CallFlagResolve.js +41 -0
- package/dist/esm/models/CallFlagUpdate.d.ts +48 -0
- package/dist/esm/models/CallFlagUpdate.js +52 -0
- package/dist/esm/models/CallFlagWithCall.d.ts +117 -0
- package/dist/esm/models/CallFlagWithCall.js +92 -0
- package/dist/esm/models/CallFlagWithCallAllOfCall.d.ts +56 -0
- package/dist/esm/models/CallFlagWithCallAllOfCall.js +49 -0
- package/dist/esm/models/CancelSubscriptionRequest.d.ts +2 -2
- package/dist/esm/models/CheckoutSessionResponse.d.ts +2 -2
- package/dist/esm/models/CreateCheckoutSessionRequest.d.ts +21 -7
- package/dist/esm/models/CreateCheckoutSessionRequest.js +18 -5
- package/dist/esm/models/CurrentPeriodUsage.d.ts +59 -0
- package/dist/esm/models/CurrentPeriodUsage.js +62 -0
- package/dist/esm/models/LifecycleResponse.d.ts +50 -0
- package/dist/esm/models/LifecycleResponse.js +51 -0
- package/dist/esm/models/PauseSubscriptionRequest.d.ts +1 -1
- package/dist/esm/models/PlanCatalogEntry.d.ts +90 -0
- package/dist/esm/models/PlanCatalogEntry.js +73 -0
- package/dist/esm/models/PlanCatalogEntryOverageInner.d.ts +44 -0
- package/dist/esm/models/PlanCatalogEntryOverageInner.js +45 -0
- package/dist/esm/models/PlanCatalogPrice.d.ts +58 -0
- package/dist/esm/models/PlanCatalogPrice.js +60 -0
- package/dist/esm/models/SubscriptionPlanSummary.d.ts +83 -0
- package/dist/esm/models/SubscriptionPlanSummary.js +70 -0
- package/dist/esm/models/SubscriptionPlanSummaryOverageRate.d.ts +38 -0
- package/dist/esm/models/SubscriptionPlanSummaryOverageRate.js +43 -0
- package/dist/esm/models/SubscriptionStatus.d.ts +103 -10
- package/dist/esm/models/SubscriptionStatus.js +58 -9
- package/dist/esm/models/SubscriptionUsageSummary.d.ts +56 -0
- package/dist/esm/models/SubscriptionUsageSummary.js +57 -0
- package/dist/esm/models/UpdatePlanRequest.d.ts +13 -5
- package/dist/esm/models/UpdatePlanRequest.js +12 -3
- package/dist/esm/models/UsageBreakdownByAgent.d.ts +44 -0
- package/dist/esm/models/UsageBreakdownByAgent.js +49 -0
- package/dist/esm/models/UsageBreakdownByDay.d.ts +44 -0
- package/dist/esm/models/UsageBreakdownByDay.js +51 -0
- package/dist/esm/models/UsageHistoryResponse.d.ts +39 -0
- package/dist/esm/models/UsageHistoryResponse.js +48 -0
- package/dist/esm/models/UsageRecordDto.d.ts +80 -0
- package/dist/esm/models/UsageRecordDto.js +65 -0
- package/dist/esm/models/VoiceUsageReportRequest.d.ts +62 -0
- package/dist/esm/models/VoiceUsageReportRequest.js +57 -0
- package/dist/esm/models/VoiceUsageReportResponse.d.ts +51 -0
- package/dist/esm/models/VoiceUsageReportResponse.js +52 -0
- package/dist/esm/models/index.d.ts +23 -13
- package/dist/esm/models/index.js +23 -13
- package/dist/models/AdminGrantMinutesRequest.d.ts +38 -0
- package/dist/models/AdminGrantMinutesRequest.js +52 -0
- package/dist/models/AdminSetSubscriptionRequest.d.ts +86 -0
- package/dist/models/AdminSetSubscriptionRequest.js +79 -0
- package/dist/models/AdminSubscriptionsListResponse.d.ts +39 -0
- package/dist/models/AdminSubscriptionsListResponse.js +55 -0
- package/dist/models/BillingPortalRequest.d.ts +1 -1
- package/dist/models/BillingPortalResponse.d.ts +1 -1
- package/dist/models/Call.d.ts +7 -0
- package/dist/models/Call.js +3 -0
- package/dist/models/CallFlag.d.ts +110 -0
- package/dist/models/CallFlag.js +97 -0
- package/dist/models/CallFlagCreate.d.ts +48 -0
- package/dist/models/CallFlagCreate.js +62 -0
- package/dist/models/CallFlagResolve.d.ts +32 -0
- package/dist/models/CallFlagResolve.js +48 -0
- package/dist/models/CallFlagUpdate.d.ts +48 -0
- package/dist/models/CallFlagUpdate.js +60 -0
- package/dist/models/CallFlagWithCall.d.ts +117 -0
- package/dist/models/CallFlagWithCall.js +100 -0
- package/dist/models/CallFlagWithCallAllOfCall.d.ts +56 -0
- package/dist/models/CallFlagWithCallAllOfCall.js +56 -0
- package/dist/models/CancelSubscriptionRequest.d.ts +2 -2
- package/dist/models/CheckoutSessionResponse.d.ts +2 -2
- package/dist/models/CreateCheckoutSessionRequest.d.ts +21 -7
- package/dist/models/CreateCheckoutSessionRequest.js +19 -5
- package/dist/models/CurrentPeriodUsage.d.ts +59 -0
- package/dist/models/CurrentPeriodUsage.js +69 -0
- package/dist/models/LifecycleResponse.d.ts +50 -0
- package/dist/models/LifecycleResponse.js +58 -0
- package/dist/models/PauseSubscriptionRequest.d.ts +1 -1
- package/dist/models/PlanCatalogEntry.d.ts +90 -0
- package/dist/models/PlanCatalogEntry.js +80 -0
- package/dist/models/PlanCatalogEntryOverageInner.d.ts +44 -0
- package/dist/models/PlanCatalogEntryOverageInner.js +52 -0
- package/dist/models/PlanCatalogPrice.d.ts +58 -0
- package/dist/models/PlanCatalogPrice.js +68 -0
- package/dist/models/SubscriptionPlanSummary.d.ts +83 -0
- package/dist/models/SubscriptionPlanSummary.js +77 -0
- package/dist/models/SubscriptionPlanSummaryOverageRate.d.ts +38 -0
- package/dist/models/SubscriptionPlanSummaryOverageRate.js +50 -0
- package/dist/models/SubscriptionStatus.d.ts +103 -10
- package/dist/models/SubscriptionStatus.js +59 -9
- package/dist/models/SubscriptionUsageSummary.d.ts +56 -0
- package/dist/models/SubscriptionUsageSummary.js +64 -0
- package/dist/models/UpdatePlanRequest.d.ts +13 -5
- package/dist/models/UpdatePlanRequest.js +13 -3
- package/dist/models/UsageBreakdownByAgent.d.ts +44 -0
- package/dist/models/UsageBreakdownByAgent.js +56 -0
- package/dist/models/UsageBreakdownByDay.d.ts +44 -0
- package/dist/models/UsageBreakdownByDay.js +58 -0
- package/dist/models/UsageHistoryResponse.d.ts +39 -0
- package/dist/models/UsageHistoryResponse.js +55 -0
- package/dist/models/UsageRecordDto.d.ts +80 -0
- package/dist/models/UsageRecordDto.js +72 -0
- package/dist/models/VoiceUsageReportRequest.d.ts +62 -0
- package/dist/models/VoiceUsageReportRequest.js +64 -0
- package/dist/models/VoiceUsageReportResponse.d.ts +51 -0
- package/dist/models/VoiceUsageReportResponse.js +59 -0
- package/dist/models/index.d.ts +23 -13
- package/dist/models/index.js +23 -13
- package/package.json +1 -1
- package/src/api-client.ts +71 -6
- package/src/apis/AdminSubscriptionsApi.ts +331 -0
- package/src/apis/CallFlagsApi.ts +546 -0
- package/src/apis/SubscriptionApi.ts +130 -162
- package/src/apis/VoiceUsageApi.ts +86 -0
- package/src/apis/index.ts +3 -0
- package/src/models/AdminGrantMinutesRequest.ts +74 -0
- package/src/models/AdminSetSubscriptionRequest.ts +136 -0
- package/src/models/AdminSubscriptionsListResponse.ts +83 -0
- package/src/models/BillingPortalRequest.ts +1 -1
- package/src/models/BillingPortalResponse.ts +1 -1
- package/src/models/Call.ts +16 -0
- package/src/models/CallFlag.ts +173 -0
- package/src/models/CallFlagCreate.ts +87 -0
- package/src/models/CallFlagResolve.ts +65 -0
- package/src/models/CallFlagUpdate.ts +86 -0
- package/src/models/CallFlagWithCall.ts +189 -0
- package/src/models/CallFlagWithCallAllOfCall.ts +97 -0
- package/src/models/CancelSubscriptionRequest.ts +2 -2
- package/src/models/CheckoutSessionResponse.ts +2 -2
- package/src/models/CreateCheckoutSessionRequest.ts +33 -12
- package/src/models/CurrentPeriodUsage.ts +124 -0
- package/src/models/LifecycleResponse.ts +91 -0
- package/src/models/PauseSubscriptionRequest.ts +1 -1
- package/src/models/PlanCatalogEntry.ts +158 -0
- package/src/models/PlanCatalogEntryOverageInner.ts +81 -0
- package/src/models/PlanCatalogPrice.ts +103 -0
- package/src/models/SubscriptionPlanSummary.ts +143 -0
- package/src/models/SubscriptionPlanSummaryOverageRate.ts +73 -0
- package/src/models/SubscriptionStatus.ts +150 -32
- package/src/models/SubscriptionUsageSummary.ts +101 -0
- package/src/models/UpdatePlanRequest.ts +20 -8
- package/src/models/UsageBreakdownByAgent.ts +83 -0
- package/src/models/UsageBreakdownByDay.ts +84 -0
- package/src/models/UsageHistoryResponse.ts +83 -0
- package/src/models/UsageRecordDto.ts +133 -0
- package/src/models/VoiceUsageReportRequest.ts +108 -0
- package/src/models/VoiceUsageReportResponse.ts +99 -0
- package/src/models/index.ts +23 -13
|
@@ -0,0 +1,376 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.OrganizationsOrganizationIdCallFlagsGetFlagTypeEnum = exports.OrganizationsOrganizationIdCallFlagsGetStatusEnum = exports.CallFlagsApi = void 0;
|
|
26
|
+
const runtime = require("../runtime");
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
class CallFlagsApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* Returns flags for all calls in the organization, each with a lightweight call summary. Useful for locating problematic calls that need follow-up or manual intervention.
|
|
34
|
+
* List call flags across the organization (triage view)
|
|
35
|
+
*/
|
|
36
|
+
organizationsOrganizationIdCallFlagsGetRaw(requestParameters, initOverrides) {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
if (requestParameters['organizationId'] == null) {
|
|
39
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdCallFlagsGet().');
|
|
40
|
+
}
|
|
41
|
+
const queryParameters = {};
|
|
42
|
+
if (requestParameters['status'] != null) {
|
|
43
|
+
queryParameters['status'] = requestParameters['status'];
|
|
44
|
+
}
|
|
45
|
+
if (requestParameters['flagType'] != null) {
|
|
46
|
+
queryParameters['flag_type'] = requestParameters['flagType'];
|
|
47
|
+
}
|
|
48
|
+
if (requestParameters['voiceAgentId'] != null) {
|
|
49
|
+
queryParameters['voice_agent_id'] = requestParameters['voiceAgentId'];
|
|
50
|
+
}
|
|
51
|
+
if (requestParameters['limit'] != null) {
|
|
52
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
53
|
+
}
|
|
54
|
+
if (requestParameters['offset'] != null) {
|
|
55
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
56
|
+
}
|
|
57
|
+
const headerParameters = {};
|
|
58
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
59
|
+
const token = this.configuration.accessToken;
|
|
60
|
+
const tokenString = yield token("bearerAuth", []);
|
|
61
|
+
if (tokenString) {
|
|
62
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
let urlPath = `/organizations/{organizationId}/call-flags`;
|
|
66
|
+
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
67
|
+
const response = yield this.request({
|
|
68
|
+
path: urlPath,
|
|
69
|
+
method: 'GET',
|
|
70
|
+
headers: headerParameters,
|
|
71
|
+
query: queryParameters,
|
|
72
|
+
}, initOverrides);
|
|
73
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.CallFlagWithCallFromJSON));
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Returns flags for all calls in the organization, each with a lightweight call summary. Useful for locating problematic calls that need follow-up or manual intervention.
|
|
78
|
+
* List call flags across the organization (triage view)
|
|
79
|
+
*/
|
|
80
|
+
organizationsOrganizationIdCallFlagsGet(requestParameters, initOverrides) {
|
|
81
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
82
|
+
const response = yield this.organizationsOrganizationIdCallFlagsGetRaw(requestParameters, initOverrides);
|
|
83
|
+
return yield response.value();
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Delete a flag
|
|
88
|
+
*/
|
|
89
|
+
organizationsOrganizationIdCallsCallIdFlagsFlagIdDeleteRaw(requestParameters, initOverrides) {
|
|
90
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
91
|
+
if (requestParameters['organizationId'] == null) {
|
|
92
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdCallsCallIdFlagsFlagIdDelete().');
|
|
93
|
+
}
|
|
94
|
+
if (requestParameters['callId'] == null) {
|
|
95
|
+
throw new runtime.RequiredError('callId', 'Required parameter "callId" was null or undefined when calling organizationsOrganizationIdCallsCallIdFlagsFlagIdDelete().');
|
|
96
|
+
}
|
|
97
|
+
if (requestParameters['flagId'] == null) {
|
|
98
|
+
throw new runtime.RequiredError('flagId', 'Required parameter "flagId" was null or undefined when calling organizationsOrganizationIdCallsCallIdFlagsFlagIdDelete().');
|
|
99
|
+
}
|
|
100
|
+
const queryParameters = {};
|
|
101
|
+
const headerParameters = {};
|
|
102
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
103
|
+
const token = this.configuration.accessToken;
|
|
104
|
+
const tokenString = yield token("bearerAuth", []);
|
|
105
|
+
if (tokenString) {
|
|
106
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
let urlPath = `/organizations/{organizationId}/calls/{callId}/flags/{flagId}`;
|
|
110
|
+
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
111
|
+
urlPath = urlPath.replace(`{${"callId"}}`, encodeURIComponent(String(requestParameters['callId'])));
|
|
112
|
+
urlPath = urlPath.replace(`{${"flagId"}}`, encodeURIComponent(String(requestParameters['flagId'])));
|
|
113
|
+
const response = yield this.request({
|
|
114
|
+
path: urlPath,
|
|
115
|
+
method: 'DELETE',
|
|
116
|
+
headers: headerParameters,
|
|
117
|
+
query: queryParameters,
|
|
118
|
+
}, initOverrides);
|
|
119
|
+
return new runtime.VoidApiResponse(response);
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Delete a flag
|
|
124
|
+
*/
|
|
125
|
+
organizationsOrganizationIdCallsCallIdFlagsFlagIdDelete(requestParameters, initOverrides) {
|
|
126
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
127
|
+
yield this.organizationsOrganizationIdCallsCallIdFlagsFlagIdDeleteRaw(requestParameters, initOverrides);
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Update a flag\'s type or reason
|
|
132
|
+
*/
|
|
133
|
+
organizationsOrganizationIdCallsCallIdFlagsFlagIdPatchRaw(requestParameters, initOverrides) {
|
|
134
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
135
|
+
if (requestParameters['organizationId'] == null) {
|
|
136
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdCallsCallIdFlagsFlagIdPatch().');
|
|
137
|
+
}
|
|
138
|
+
if (requestParameters['callId'] == null) {
|
|
139
|
+
throw new runtime.RequiredError('callId', 'Required parameter "callId" was null or undefined when calling organizationsOrganizationIdCallsCallIdFlagsFlagIdPatch().');
|
|
140
|
+
}
|
|
141
|
+
if (requestParameters['flagId'] == null) {
|
|
142
|
+
throw new runtime.RequiredError('flagId', 'Required parameter "flagId" was null or undefined when calling organizationsOrganizationIdCallsCallIdFlagsFlagIdPatch().');
|
|
143
|
+
}
|
|
144
|
+
if (requestParameters['callFlagUpdate'] == null) {
|
|
145
|
+
throw new runtime.RequiredError('callFlagUpdate', 'Required parameter "callFlagUpdate" was null or undefined when calling organizationsOrganizationIdCallsCallIdFlagsFlagIdPatch().');
|
|
146
|
+
}
|
|
147
|
+
const queryParameters = {};
|
|
148
|
+
const headerParameters = {};
|
|
149
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
150
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
151
|
+
const token = this.configuration.accessToken;
|
|
152
|
+
const tokenString = yield token("bearerAuth", []);
|
|
153
|
+
if (tokenString) {
|
|
154
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
let urlPath = `/organizations/{organizationId}/calls/{callId}/flags/{flagId}`;
|
|
158
|
+
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
159
|
+
urlPath = urlPath.replace(`{${"callId"}}`, encodeURIComponent(String(requestParameters['callId'])));
|
|
160
|
+
urlPath = urlPath.replace(`{${"flagId"}}`, encodeURIComponent(String(requestParameters['flagId'])));
|
|
161
|
+
const response = yield this.request({
|
|
162
|
+
path: urlPath,
|
|
163
|
+
method: 'PATCH',
|
|
164
|
+
headers: headerParameters,
|
|
165
|
+
query: queryParameters,
|
|
166
|
+
body: (0, index_1.CallFlagUpdateToJSON)(requestParameters['callFlagUpdate']),
|
|
167
|
+
}, initOverrides);
|
|
168
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CallFlagFromJSON)(jsonValue));
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Update a flag\'s type or reason
|
|
173
|
+
*/
|
|
174
|
+
organizationsOrganizationIdCallsCallIdFlagsFlagIdPatch(requestParameters, initOverrides) {
|
|
175
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
176
|
+
const response = yield this.organizationsOrganizationIdCallsCallIdFlagsFlagIdPatchRaw(requestParameters, initOverrides);
|
|
177
|
+
return yield response.value();
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Reopen a resolved flag
|
|
182
|
+
*/
|
|
183
|
+
organizationsOrganizationIdCallsCallIdFlagsFlagIdReopenPostRaw(requestParameters, initOverrides) {
|
|
184
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
185
|
+
if (requestParameters['organizationId'] == null) {
|
|
186
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdCallsCallIdFlagsFlagIdReopenPost().');
|
|
187
|
+
}
|
|
188
|
+
if (requestParameters['callId'] == null) {
|
|
189
|
+
throw new runtime.RequiredError('callId', 'Required parameter "callId" was null or undefined when calling organizationsOrganizationIdCallsCallIdFlagsFlagIdReopenPost().');
|
|
190
|
+
}
|
|
191
|
+
if (requestParameters['flagId'] == null) {
|
|
192
|
+
throw new runtime.RequiredError('flagId', 'Required parameter "flagId" was null or undefined when calling organizationsOrganizationIdCallsCallIdFlagsFlagIdReopenPost().');
|
|
193
|
+
}
|
|
194
|
+
const queryParameters = {};
|
|
195
|
+
const headerParameters = {};
|
|
196
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
197
|
+
const token = this.configuration.accessToken;
|
|
198
|
+
const tokenString = yield token("bearerAuth", []);
|
|
199
|
+
if (tokenString) {
|
|
200
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
let urlPath = `/organizations/{organizationId}/calls/{callId}/flags/{flagId}/reopen`;
|
|
204
|
+
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
205
|
+
urlPath = urlPath.replace(`{${"callId"}}`, encodeURIComponent(String(requestParameters['callId'])));
|
|
206
|
+
urlPath = urlPath.replace(`{${"flagId"}}`, encodeURIComponent(String(requestParameters['flagId'])));
|
|
207
|
+
const response = yield this.request({
|
|
208
|
+
path: urlPath,
|
|
209
|
+
method: 'POST',
|
|
210
|
+
headers: headerParameters,
|
|
211
|
+
query: queryParameters,
|
|
212
|
+
}, initOverrides);
|
|
213
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CallFlagFromJSON)(jsonValue));
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Reopen a resolved flag
|
|
218
|
+
*/
|
|
219
|
+
organizationsOrganizationIdCallsCallIdFlagsFlagIdReopenPost(requestParameters, initOverrides) {
|
|
220
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
221
|
+
const response = yield this.organizationsOrganizationIdCallsCallIdFlagsFlagIdReopenPostRaw(requestParameters, initOverrides);
|
|
222
|
+
return yield response.value();
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Mark a flag resolved (preserves the original flag data)
|
|
227
|
+
*/
|
|
228
|
+
organizationsOrganizationIdCallsCallIdFlagsFlagIdResolvePostRaw(requestParameters, initOverrides) {
|
|
229
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
230
|
+
if (requestParameters['organizationId'] == null) {
|
|
231
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdCallsCallIdFlagsFlagIdResolvePost().');
|
|
232
|
+
}
|
|
233
|
+
if (requestParameters['callId'] == null) {
|
|
234
|
+
throw new runtime.RequiredError('callId', 'Required parameter "callId" was null or undefined when calling organizationsOrganizationIdCallsCallIdFlagsFlagIdResolvePost().');
|
|
235
|
+
}
|
|
236
|
+
if (requestParameters['flagId'] == null) {
|
|
237
|
+
throw new runtime.RequiredError('flagId', 'Required parameter "flagId" was null or undefined when calling organizationsOrganizationIdCallsCallIdFlagsFlagIdResolvePost().');
|
|
238
|
+
}
|
|
239
|
+
const queryParameters = {};
|
|
240
|
+
const headerParameters = {};
|
|
241
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
242
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
243
|
+
const token = this.configuration.accessToken;
|
|
244
|
+
const tokenString = yield token("bearerAuth", []);
|
|
245
|
+
if (tokenString) {
|
|
246
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
let urlPath = `/organizations/{organizationId}/calls/{callId}/flags/{flagId}/resolve`;
|
|
250
|
+
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
251
|
+
urlPath = urlPath.replace(`{${"callId"}}`, encodeURIComponent(String(requestParameters['callId'])));
|
|
252
|
+
urlPath = urlPath.replace(`{${"flagId"}}`, encodeURIComponent(String(requestParameters['flagId'])));
|
|
253
|
+
const response = yield this.request({
|
|
254
|
+
path: urlPath,
|
|
255
|
+
method: 'POST',
|
|
256
|
+
headers: headerParameters,
|
|
257
|
+
query: queryParameters,
|
|
258
|
+
body: (0, index_1.CallFlagResolveToJSON)(requestParameters['callFlagResolve']),
|
|
259
|
+
}, initOverrides);
|
|
260
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CallFlagFromJSON)(jsonValue));
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* Mark a flag resolved (preserves the original flag data)
|
|
265
|
+
*/
|
|
266
|
+
organizationsOrganizationIdCallsCallIdFlagsFlagIdResolvePost(requestParameters, initOverrides) {
|
|
267
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
268
|
+
const response = yield this.organizationsOrganizationIdCallsCallIdFlagsFlagIdResolvePostRaw(requestParameters, initOverrides);
|
|
269
|
+
return yield response.value();
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* List flags raised on a call
|
|
274
|
+
*/
|
|
275
|
+
organizationsOrganizationIdCallsCallIdFlagsGetRaw(requestParameters, initOverrides) {
|
|
276
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
277
|
+
if (requestParameters['organizationId'] == null) {
|
|
278
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdCallsCallIdFlagsGet().');
|
|
279
|
+
}
|
|
280
|
+
if (requestParameters['callId'] == null) {
|
|
281
|
+
throw new runtime.RequiredError('callId', 'Required parameter "callId" was null or undefined when calling organizationsOrganizationIdCallsCallIdFlagsGet().');
|
|
282
|
+
}
|
|
283
|
+
const queryParameters = {};
|
|
284
|
+
const headerParameters = {};
|
|
285
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
286
|
+
const token = this.configuration.accessToken;
|
|
287
|
+
const tokenString = yield token("bearerAuth", []);
|
|
288
|
+
if (tokenString) {
|
|
289
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
let urlPath = `/organizations/{organizationId}/calls/{callId}/flags`;
|
|
293
|
+
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
294
|
+
urlPath = urlPath.replace(`{${"callId"}}`, encodeURIComponent(String(requestParameters['callId'])));
|
|
295
|
+
const response = yield this.request({
|
|
296
|
+
path: urlPath,
|
|
297
|
+
method: 'GET',
|
|
298
|
+
headers: headerParameters,
|
|
299
|
+
query: queryParameters,
|
|
300
|
+
}, initOverrides);
|
|
301
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.CallFlagFromJSON));
|
|
302
|
+
});
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* List flags raised on a call
|
|
306
|
+
*/
|
|
307
|
+
organizationsOrganizationIdCallsCallIdFlagsGet(requestParameters, initOverrides) {
|
|
308
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
309
|
+
const response = yield this.organizationsOrganizationIdCallsCallIdFlagsGetRaw(requestParameters, initOverrides);
|
|
310
|
+
return yield response.value();
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* Flag a call for follow-up or manual intervention
|
|
315
|
+
*/
|
|
316
|
+
organizationsOrganizationIdCallsCallIdFlagsPostRaw(requestParameters, initOverrides) {
|
|
317
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
318
|
+
if (requestParameters['organizationId'] == null) {
|
|
319
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdCallsCallIdFlagsPost().');
|
|
320
|
+
}
|
|
321
|
+
if (requestParameters['callId'] == null) {
|
|
322
|
+
throw new runtime.RequiredError('callId', 'Required parameter "callId" was null or undefined when calling organizationsOrganizationIdCallsCallIdFlagsPost().');
|
|
323
|
+
}
|
|
324
|
+
if (requestParameters['callFlagCreate'] == null) {
|
|
325
|
+
throw new runtime.RequiredError('callFlagCreate', 'Required parameter "callFlagCreate" was null or undefined when calling organizationsOrganizationIdCallsCallIdFlagsPost().');
|
|
326
|
+
}
|
|
327
|
+
const queryParameters = {};
|
|
328
|
+
const headerParameters = {};
|
|
329
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
330
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
331
|
+
const token = this.configuration.accessToken;
|
|
332
|
+
const tokenString = yield token("bearerAuth", []);
|
|
333
|
+
if (tokenString) {
|
|
334
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
let urlPath = `/organizations/{organizationId}/calls/{callId}/flags`;
|
|
338
|
+
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
339
|
+
urlPath = urlPath.replace(`{${"callId"}}`, encodeURIComponent(String(requestParameters['callId'])));
|
|
340
|
+
const response = yield this.request({
|
|
341
|
+
path: urlPath,
|
|
342
|
+
method: 'POST',
|
|
343
|
+
headers: headerParameters,
|
|
344
|
+
query: queryParameters,
|
|
345
|
+
body: (0, index_1.CallFlagCreateToJSON)(requestParameters['callFlagCreate']),
|
|
346
|
+
}, initOverrides);
|
|
347
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CallFlagFromJSON)(jsonValue));
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* Flag a call for follow-up or manual intervention
|
|
352
|
+
*/
|
|
353
|
+
organizationsOrganizationIdCallsCallIdFlagsPost(requestParameters, initOverrides) {
|
|
354
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
355
|
+
const response = yield this.organizationsOrganizationIdCallsCallIdFlagsPostRaw(requestParameters, initOverrides);
|
|
356
|
+
return yield response.value();
|
|
357
|
+
});
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
exports.CallFlagsApi = CallFlagsApi;
|
|
361
|
+
/**
|
|
362
|
+
* @export
|
|
363
|
+
*/
|
|
364
|
+
exports.OrganizationsOrganizationIdCallFlagsGetStatusEnum = {
|
|
365
|
+
Open: 'open',
|
|
366
|
+
Resolved: 'resolved'
|
|
367
|
+
};
|
|
368
|
+
/**
|
|
369
|
+
* @export
|
|
370
|
+
*/
|
|
371
|
+
exports.OrganizationsOrganizationIdCallFlagsGetFlagTypeEnum = {
|
|
372
|
+
Error: 'error',
|
|
373
|
+
FollowUp: 'follow_up',
|
|
374
|
+
ManualReview: 'manual_review',
|
|
375
|
+
Other: 'other'
|
|
376
|
+
};
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { BillingPortalRequest, BillingPortalResponse, CancelSubscriptionRequest,
|
|
13
|
+
import type { BillingPortalRequest, BillingPortalResponse, CancelSubscriptionRequest, CheckoutSessionResponse, CreateCheckoutSessionRequest, CurrentPeriodUsage, PauseSubscriptionRequest, PlanCatalogEntry, SubscriptionStatus, UpdatePlanRequest, UsageHistoryResponse } from '../models/index';
|
|
14
14
|
export interface OrganizationsOrganizationIdSubscriptionBillingPortalPostRequest {
|
|
15
15
|
organizationId: string;
|
|
16
16
|
billingPortalRequest: BillingPortalRequest;
|
|
@@ -23,18 +23,6 @@ export interface OrganizationsOrganizationIdSubscriptionCheckoutPostRequest {
|
|
|
23
23
|
organizationId: string;
|
|
24
24
|
createCheckoutSessionRequest: CreateCheckoutSessionRequest;
|
|
25
25
|
}
|
|
26
|
-
export interface OrganizationsOrganizationIdSubscriptionCreditsGetRequest {
|
|
27
|
-
organizationId: string;
|
|
28
|
-
}
|
|
29
|
-
export interface OrganizationsOrganizationIdSubscriptionCreditsTransactionsGetRequest {
|
|
30
|
-
organizationId: string;
|
|
31
|
-
creditType?: string;
|
|
32
|
-
limit?: number;
|
|
33
|
-
offset?: number;
|
|
34
|
-
}
|
|
35
|
-
export interface OrganizationsOrganizationIdSubscriptionDetailsGetRequest {
|
|
36
|
-
organizationId: string;
|
|
37
|
-
}
|
|
38
26
|
export interface OrganizationsOrganizationIdSubscriptionGetRequest {
|
|
39
27
|
organizationId: string;
|
|
40
28
|
}
|
|
@@ -46,124 +34,115 @@ export interface OrganizationsOrganizationIdSubscriptionPlanPatchRequest {
|
|
|
46
34
|
organizationId: string;
|
|
47
35
|
updatePlanRequest: UpdatePlanRequest;
|
|
48
36
|
}
|
|
37
|
+
export interface OrganizationsOrganizationIdSubscriptionPlansGetRequest {
|
|
38
|
+
organizationId: string;
|
|
39
|
+
}
|
|
49
40
|
export interface OrganizationsOrganizationIdSubscriptionResumePostRequest {
|
|
50
41
|
organizationId: string;
|
|
51
42
|
}
|
|
52
43
|
export interface OrganizationsOrganizationIdSubscriptionUnpausePostRequest {
|
|
53
44
|
organizationId: string;
|
|
54
45
|
}
|
|
46
|
+
export interface OrganizationsOrganizationIdSubscriptionUsageGetRequest {
|
|
47
|
+
organizationId: string;
|
|
48
|
+
}
|
|
49
|
+
export interface OrganizationsOrganizationIdSubscriptionUsageHistoryGetRequest {
|
|
50
|
+
organizationId: string;
|
|
51
|
+
from?: Date;
|
|
52
|
+
to?: Date;
|
|
53
|
+
limit?: number;
|
|
54
|
+
offset?: number;
|
|
55
|
+
}
|
|
55
56
|
/**
|
|
56
57
|
*
|
|
57
58
|
*/
|
|
58
59
|
export declare class SubscriptionApi extends runtime.BaseAPI {
|
|
59
60
|
/**
|
|
60
|
-
*
|
|
61
|
-
* Create billing portal session
|
|
61
|
+
* Create a Stripe billing portal session
|
|
62
62
|
*/
|
|
63
63
|
organizationsOrganizationIdSubscriptionBillingPortalPostRaw(requestParameters: OrganizationsOrganizationIdSubscriptionBillingPortalPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BillingPortalResponse>>;
|
|
64
64
|
/**
|
|
65
|
-
*
|
|
66
|
-
* Create billing portal session
|
|
65
|
+
* Create a Stripe billing portal session
|
|
67
66
|
*/
|
|
68
67
|
organizationsOrganizationIdSubscriptionBillingPortalPost(requestParameters: OrganizationsOrganizationIdSubscriptionBillingPortalPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BillingPortalResponse>;
|
|
69
68
|
/**
|
|
70
|
-
*
|
|
71
|
-
* Cancel subscription
|
|
69
|
+
* Cancel the subscription (at period end by default)
|
|
72
70
|
*/
|
|
73
|
-
organizationsOrganizationIdSubscriptionCancelPostRaw(requestParameters: OrganizationsOrganizationIdSubscriptionCancelPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
71
|
+
organizationsOrganizationIdSubscriptionCancelPostRaw(requestParameters: OrganizationsOrganizationIdSubscriptionCancelPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SubscriptionStatus>>;
|
|
74
72
|
/**
|
|
75
|
-
*
|
|
76
|
-
* Cancel subscription
|
|
73
|
+
* Cancel the subscription (at period end by default)
|
|
77
74
|
*/
|
|
78
|
-
organizationsOrganizationIdSubscriptionCancelPost(requestParameters: OrganizationsOrganizationIdSubscriptionCancelPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
75
|
+
organizationsOrganizationIdSubscriptionCancelPost(requestParameters: OrganizationsOrganizationIdSubscriptionCancelPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SubscriptionStatus>;
|
|
79
76
|
/**
|
|
80
|
-
*
|
|
81
|
-
* Create a checkout session for subscription
|
|
77
|
+
* Create a Stripe Checkout session
|
|
82
78
|
*/
|
|
83
79
|
organizationsOrganizationIdSubscriptionCheckoutPostRaw(requestParameters: OrganizationsOrganizationIdSubscriptionCheckoutPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CheckoutSessionResponse>>;
|
|
84
80
|
/**
|
|
85
|
-
*
|
|
86
|
-
* Create a checkout session for subscription
|
|
81
|
+
* Create a Stripe Checkout session
|
|
87
82
|
*/
|
|
88
83
|
organizationsOrganizationIdSubscriptionCheckoutPost(requestParameters: OrganizationsOrganizationIdSubscriptionCheckoutPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CheckoutSessionResponse>;
|
|
89
84
|
/**
|
|
90
|
-
*
|
|
91
|
-
* Get credit balances for an organization
|
|
85
|
+
* Get subscription status with current-period usage
|
|
92
86
|
*/
|
|
93
|
-
|
|
87
|
+
organizationsOrganizationIdSubscriptionGetRaw(requestParameters: OrganizationsOrganizationIdSubscriptionGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SubscriptionStatus>>;
|
|
94
88
|
/**
|
|
95
|
-
*
|
|
96
|
-
* Get credit balances for an organization
|
|
89
|
+
* Get subscription status with current-period usage
|
|
97
90
|
*/
|
|
98
|
-
|
|
91
|
+
organizationsOrganizationIdSubscriptionGet(requestParameters: OrganizationsOrganizationIdSubscriptionGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SubscriptionStatus>;
|
|
99
92
|
/**
|
|
100
|
-
*
|
|
101
|
-
* Get credit transaction history
|
|
93
|
+
* Pause payment collection
|
|
102
94
|
*/
|
|
103
|
-
|
|
95
|
+
organizationsOrganizationIdSubscriptionPausePostRaw(requestParameters: OrganizationsOrganizationIdSubscriptionPausePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SubscriptionStatus>>;
|
|
104
96
|
/**
|
|
105
|
-
*
|
|
106
|
-
* Get credit transaction history
|
|
97
|
+
* Pause payment collection
|
|
107
98
|
*/
|
|
108
|
-
|
|
99
|
+
organizationsOrganizationIdSubscriptionPausePost(requestParameters: OrganizationsOrganizationIdSubscriptionPausePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SubscriptionStatus>;
|
|
109
100
|
/**
|
|
110
|
-
*
|
|
111
|
-
* Get detailed subscription information
|
|
101
|
+
* Change subscription plan
|
|
112
102
|
*/
|
|
113
|
-
|
|
103
|
+
organizationsOrganizationIdSubscriptionPlanPatchRaw(requestParameters: OrganizationsOrganizationIdSubscriptionPlanPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SubscriptionStatus>>;
|
|
114
104
|
/**
|
|
115
|
-
*
|
|
116
|
-
* Get detailed subscription information
|
|
105
|
+
* Change subscription plan
|
|
117
106
|
*/
|
|
118
|
-
|
|
107
|
+
organizationsOrganizationIdSubscriptionPlanPatch(requestParameters: OrganizationsOrganizationIdSubscriptionPlanPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SubscriptionStatus>;
|
|
119
108
|
/**
|
|
120
|
-
*
|
|
121
|
-
* Check subscription status for an organization
|
|
109
|
+
* List available plans and their prices
|
|
122
110
|
*/
|
|
123
|
-
|
|
111
|
+
organizationsOrganizationIdSubscriptionPlansGetRaw(requestParameters: OrganizationsOrganizationIdSubscriptionPlansGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PlanCatalogEntry>>>;
|
|
124
112
|
/**
|
|
125
|
-
*
|
|
126
|
-
* Check subscription status for an organization
|
|
113
|
+
* List available plans and their prices
|
|
127
114
|
*/
|
|
128
|
-
|
|
115
|
+
organizationsOrganizationIdSubscriptionPlansGet(requestParameters: OrganizationsOrganizationIdSubscriptionPlansGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PlanCatalogEntry>>;
|
|
129
116
|
/**
|
|
130
|
-
*
|
|
131
|
-
* Pause subscription
|
|
117
|
+
* Resume a subscription scheduled for cancellation
|
|
132
118
|
*/
|
|
133
|
-
|
|
119
|
+
organizationsOrganizationIdSubscriptionResumePostRaw(requestParameters: OrganizationsOrganizationIdSubscriptionResumePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SubscriptionStatus>>;
|
|
134
120
|
/**
|
|
135
|
-
*
|
|
136
|
-
* Pause subscription
|
|
121
|
+
* Resume a subscription scheduled for cancellation
|
|
137
122
|
*/
|
|
138
|
-
|
|
123
|
+
organizationsOrganizationIdSubscriptionResumePost(requestParameters: OrganizationsOrganizationIdSubscriptionResumePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SubscriptionStatus>;
|
|
139
124
|
/**
|
|
140
|
-
*
|
|
141
|
-
* Update subscription plan
|
|
125
|
+
* Resume payment collection
|
|
142
126
|
*/
|
|
143
|
-
|
|
127
|
+
organizationsOrganizationIdSubscriptionUnpausePostRaw(requestParameters: OrganizationsOrganizationIdSubscriptionUnpausePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SubscriptionStatus>>;
|
|
144
128
|
/**
|
|
145
|
-
*
|
|
146
|
-
* Update subscription plan
|
|
129
|
+
* Resume payment collection
|
|
147
130
|
*/
|
|
148
|
-
|
|
131
|
+
organizationsOrganizationIdSubscriptionUnpausePost(requestParameters: OrganizationsOrganizationIdSubscriptionUnpausePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SubscriptionStatus>;
|
|
149
132
|
/**
|
|
150
|
-
*
|
|
151
|
-
* Resume subscription
|
|
133
|
+
* Get current-period voice usage breakdown
|
|
152
134
|
*/
|
|
153
|
-
|
|
135
|
+
organizationsOrganizationIdSubscriptionUsageGetRaw(requestParameters: OrganizationsOrganizationIdSubscriptionUsageGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CurrentPeriodUsage>>;
|
|
154
136
|
/**
|
|
155
|
-
*
|
|
156
|
-
* Resume subscription
|
|
137
|
+
* Get current-period voice usage breakdown
|
|
157
138
|
*/
|
|
158
|
-
|
|
139
|
+
organizationsOrganizationIdSubscriptionUsageGet(requestParameters: OrganizationsOrganizationIdSubscriptionUsageGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CurrentPeriodUsage>;
|
|
159
140
|
/**
|
|
160
|
-
*
|
|
161
|
-
* Unpause subscription
|
|
141
|
+
* List individual usage records (paginated)
|
|
162
142
|
*/
|
|
163
|
-
|
|
143
|
+
organizationsOrganizationIdSubscriptionUsageHistoryGetRaw(requestParameters: OrganizationsOrganizationIdSubscriptionUsageHistoryGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UsageHistoryResponse>>;
|
|
164
144
|
/**
|
|
165
|
-
*
|
|
166
|
-
* Unpause subscription
|
|
145
|
+
* List individual usage records (paginated)
|
|
167
146
|
*/
|
|
168
|
-
|
|
147
|
+
organizationsOrganizationIdSubscriptionUsageHistoryGet(requestParameters: OrganizationsOrganizationIdSubscriptionUsageHistoryGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UsageHistoryResponse>;
|
|
169
148
|
}
|