@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.
Files changed (146) hide show
  1. package/dist/api-client.d.ts +29 -4
  2. package/dist/api-client.js +22 -3
  3. package/dist/apis/AdminSubscriptionsApi.d.ts +82 -0
  4. package/dist/apis/AdminSubscriptionsApi.js +242 -0
  5. package/dist/apis/SubscriptionApi.d.ts +54 -75
  6. package/dist/apis/SubscriptionApi.js +95 -114
  7. package/dist/apis/VoiceUsageApi.d.ts +31 -0
  8. package/dist/apis/VoiceUsageApi.js +73 -0
  9. package/dist/apis/index.d.ts +2 -0
  10. package/dist/apis/index.js +2 -0
  11. package/dist/esm/api-client.d.ts +29 -4
  12. package/dist/esm/api-client.js +22 -3
  13. package/dist/esm/apis/AdminSubscriptionsApi.d.ts +82 -0
  14. package/dist/esm/apis/AdminSubscriptionsApi.js +238 -0
  15. package/dist/esm/apis/SubscriptionApi.d.ts +54 -75
  16. package/dist/esm/apis/SubscriptionApi.js +96 -115
  17. package/dist/esm/apis/VoiceUsageApi.d.ts +31 -0
  18. package/dist/esm/apis/VoiceUsageApi.js +69 -0
  19. package/dist/esm/apis/index.d.ts +2 -0
  20. package/dist/esm/apis/index.js +2 -0
  21. package/dist/esm/models/AdminGrantMinutesRequest.d.ts +38 -0
  22. package/dist/esm/models/AdminGrantMinutesRequest.js +45 -0
  23. package/dist/esm/models/AdminSetSubscriptionRequest.d.ts +86 -0
  24. package/dist/esm/models/AdminSetSubscriptionRequest.js +71 -0
  25. package/dist/esm/models/BillingPortalRequest.d.ts +1 -1
  26. package/dist/esm/models/BillingPortalResponse.d.ts +1 -1
  27. package/dist/esm/models/CancelSubscriptionRequest.d.ts +2 -2
  28. package/dist/esm/models/CheckoutSessionResponse.d.ts +2 -2
  29. package/dist/esm/models/CreateCheckoutSessionRequest.d.ts +21 -7
  30. package/dist/esm/models/CreateCheckoutSessionRequest.js +18 -5
  31. package/dist/esm/models/CurrentPeriodUsage.d.ts +59 -0
  32. package/dist/esm/models/CurrentPeriodUsage.js +62 -0
  33. package/dist/esm/models/LifecycleResponse.d.ts +50 -0
  34. package/dist/esm/models/LifecycleResponse.js +51 -0
  35. package/dist/esm/models/PauseSubscriptionRequest.d.ts +1 -1
  36. package/dist/esm/models/PlanCatalogEntry.d.ts +90 -0
  37. package/dist/esm/models/PlanCatalogEntry.js +73 -0
  38. package/dist/esm/models/PlanCatalogEntryOverageInner.d.ts +44 -0
  39. package/dist/esm/models/PlanCatalogEntryOverageInner.js +45 -0
  40. package/dist/esm/models/PlanCatalogPrice.d.ts +58 -0
  41. package/dist/esm/models/PlanCatalogPrice.js +60 -0
  42. package/dist/esm/models/SubscriptionPlanSummary.d.ts +83 -0
  43. package/dist/esm/models/SubscriptionPlanSummary.js +70 -0
  44. package/dist/esm/models/SubscriptionPlanSummaryOverageRate.d.ts +38 -0
  45. package/dist/esm/models/SubscriptionPlanSummaryOverageRate.js +43 -0
  46. package/dist/esm/models/SubscriptionStatus.d.ts +103 -10
  47. package/dist/esm/models/SubscriptionStatus.js +58 -9
  48. package/dist/esm/models/SubscriptionUsageSummary.d.ts +56 -0
  49. package/dist/esm/models/SubscriptionUsageSummary.js +57 -0
  50. package/dist/esm/models/UpdatePlanRequest.d.ts +13 -5
  51. package/dist/esm/models/UpdatePlanRequest.js +12 -3
  52. package/dist/esm/models/UsageBreakdownByAgent.d.ts +44 -0
  53. package/dist/esm/models/UsageBreakdownByAgent.js +49 -0
  54. package/dist/esm/models/UsageBreakdownByDay.d.ts +44 -0
  55. package/dist/esm/models/UsageBreakdownByDay.js +51 -0
  56. package/dist/esm/models/UsageHistoryResponse.d.ts +39 -0
  57. package/dist/esm/models/UsageHistoryResponse.js +48 -0
  58. package/dist/esm/models/UsageRecordDto.d.ts +80 -0
  59. package/dist/esm/models/UsageRecordDto.js +65 -0
  60. package/dist/esm/models/VoiceAgentMetadata.d.ts +6 -0
  61. package/dist/esm/models/VoiceAgentMetadata.js +2 -0
  62. package/dist/esm/models/VoiceUsageReportRequest.d.ts +62 -0
  63. package/dist/esm/models/VoiceUsageReportRequest.js +57 -0
  64. package/dist/esm/models/VoiceUsageReportResponse.d.ts +51 -0
  65. package/dist/esm/models/VoiceUsageReportResponse.js +52 -0
  66. package/dist/esm/models/index.d.ts +16 -13
  67. package/dist/esm/models/index.js +16 -13
  68. package/dist/models/AdminGrantMinutesRequest.d.ts +38 -0
  69. package/dist/models/AdminGrantMinutesRequest.js +52 -0
  70. package/dist/models/AdminSetSubscriptionRequest.d.ts +86 -0
  71. package/dist/models/AdminSetSubscriptionRequest.js +79 -0
  72. package/dist/models/BillingPortalRequest.d.ts +1 -1
  73. package/dist/models/BillingPortalResponse.d.ts +1 -1
  74. package/dist/models/CancelSubscriptionRequest.d.ts +2 -2
  75. package/dist/models/CheckoutSessionResponse.d.ts +2 -2
  76. package/dist/models/CreateCheckoutSessionRequest.d.ts +21 -7
  77. package/dist/models/CreateCheckoutSessionRequest.js +19 -5
  78. package/dist/models/CurrentPeriodUsage.d.ts +59 -0
  79. package/dist/models/CurrentPeriodUsage.js +69 -0
  80. package/dist/models/LifecycleResponse.d.ts +50 -0
  81. package/dist/models/LifecycleResponse.js +58 -0
  82. package/dist/models/PauseSubscriptionRequest.d.ts +1 -1
  83. package/dist/models/PlanCatalogEntry.d.ts +90 -0
  84. package/dist/models/PlanCatalogEntry.js +80 -0
  85. package/dist/models/PlanCatalogEntryOverageInner.d.ts +44 -0
  86. package/dist/models/PlanCatalogEntryOverageInner.js +52 -0
  87. package/dist/models/PlanCatalogPrice.d.ts +58 -0
  88. package/dist/models/PlanCatalogPrice.js +68 -0
  89. package/dist/models/SubscriptionPlanSummary.d.ts +83 -0
  90. package/dist/models/SubscriptionPlanSummary.js +77 -0
  91. package/dist/models/SubscriptionPlanSummaryOverageRate.d.ts +38 -0
  92. package/dist/models/SubscriptionPlanSummaryOverageRate.js +50 -0
  93. package/dist/models/SubscriptionStatus.d.ts +103 -10
  94. package/dist/models/SubscriptionStatus.js +59 -9
  95. package/dist/models/SubscriptionUsageSummary.d.ts +56 -0
  96. package/dist/models/SubscriptionUsageSummary.js +64 -0
  97. package/dist/models/UpdatePlanRequest.d.ts +13 -5
  98. package/dist/models/UpdatePlanRequest.js +13 -3
  99. package/dist/models/UsageBreakdownByAgent.d.ts +44 -0
  100. package/dist/models/UsageBreakdownByAgent.js +56 -0
  101. package/dist/models/UsageBreakdownByDay.d.ts +44 -0
  102. package/dist/models/UsageBreakdownByDay.js +58 -0
  103. package/dist/models/UsageHistoryResponse.d.ts +39 -0
  104. package/dist/models/UsageHistoryResponse.js +55 -0
  105. package/dist/models/UsageRecordDto.d.ts +80 -0
  106. package/dist/models/UsageRecordDto.js +72 -0
  107. package/dist/models/VoiceAgentMetadata.d.ts +6 -0
  108. package/dist/models/VoiceAgentMetadata.js +2 -0
  109. package/dist/models/VoiceUsageReportRequest.d.ts +62 -0
  110. package/dist/models/VoiceUsageReportRequest.js +64 -0
  111. package/dist/models/VoiceUsageReportResponse.d.ts +51 -0
  112. package/dist/models/VoiceUsageReportResponse.js +59 -0
  113. package/dist/models/index.d.ts +16 -13
  114. package/dist/models/index.js +16 -13
  115. package/package.json +1 -1
  116. package/src/api-client.ts +42 -6
  117. package/src/apis/AdminSubscriptionsApi.ts +327 -0
  118. package/src/apis/SubscriptionApi.ts +130 -162
  119. package/src/apis/VoiceUsageApi.ts +86 -0
  120. package/src/apis/index.ts +2 -0
  121. package/src/models/AdminGrantMinutesRequest.ts +74 -0
  122. package/src/models/AdminSetSubscriptionRequest.ts +136 -0
  123. package/src/models/BillingPortalRequest.ts +1 -1
  124. package/src/models/BillingPortalResponse.ts +1 -1
  125. package/src/models/CancelSubscriptionRequest.ts +2 -2
  126. package/src/models/CheckoutSessionResponse.ts +2 -2
  127. package/src/models/CreateCheckoutSessionRequest.ts +33 -12
  128. package/src/models/CurrentPeriodUsage.ts +124 -0
  129. package/src/models/LifecycleResponse.ts +91 -0
  130. package/src/models/PauseSubscriptionRequest.ts +1 -1
  131. package/src/models/PlanCatalogEntry.ts +158 -0
  132. package/src/models/PlanCatalogEntryOverageInner.ts +81 -0
  133. package/src/models/PlanCatalogPrice.ts +103 -0
  134. package/src/models/SubscriptionPlanSummary.ts +143 -0
  135. package/src/models/SubscriptionPlanSummaryOverageRate.ts +73 -0
  136. package/src/models/SubscriptionStatus.ts +150 -32
  137. package/src/models/SubscriptionUsageSummary.ts +101 -0
  138. package/src/models/UpdatePlanRequest.ts +20 -8
  139. package/src/models/UsageBreakdownByAgent.ts +83 -0
  140. package/src/models/UsageBreakdownByDay.ts +84 -0
  141. package/src/models/UsageHistoryResponse.ts +83 -0
  142. package/src/models/UsageRecordDto.ts +133 -0
  143. package/src/models/VoiceAgentMetadata.ts +8 -0
  144. package/src/models/VoiceUsageReportRequest.ts +108 -0
  145. package/src/models/VoiceUsageReportResponse.ts +99 -0
  146. package/src/models/index.ts +16 -13
@@ -21,14 +21,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { BillingPortalRequestToJSON, BillingPortalResponseFromJSON, CancelSubscriptionRequestToJSON, CancelSubscriptionResponseFromJSON, CheckoutSessionResponseFromJSON, CreateCheckoutSessionRequestToJSON, CreditBalanceFromJSON, CreditTransactionsResponseFromJSON, PauseSubscriptionRequestToJSON, PauseSubscriptionResponseFromJSON, ResumeSubscriptionResponseFromJSON, SubscriptionDetailsFromJSON, SubscriptionStatusFromJSON, UnpauseSubscriptionResponseFromJSON, UpdatePlanRequestToJSON, UpdatePlanResponseFromJSON, } from '../models/index';
24
+ import { BillingPortalRequestToJSON, BillingPortalResponseFromJSON, CancelSubscriptionRequestToJSON, CheckoutSessionResponseFromJSON, CreateCheckoutSessionRequestToJSON, CurrentPeriodUsageFromJSON, PauseSubscriptionRequestToJSON, PlanCatalogEntryFromJSON, SubscriptionStatusFromJSON, UpdatePlanRequestToJSON, UsageHistoryResponseFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
28
28
  export class SubscriptionApi extends runtime.BaseAPI {
29
29
  /**
30
- * Creates a Stripe Billing Portal session for the customer to manage their payment methods, view invoices, and update billing information. Returns a URL to redirect the customer to.
31
- * Create billing portal session
30
+ * Create a Stripe billing portal session
32
31
  */
33
32
  organizationsOrganizationIdSubscriptionBillingPortalPostRaw(requestParameters, initOverrides) {
34
33
  return __awaiter(this, void 0, void 0, function* () {
@@ -61,8 +60,7 @@ export class SubscriptionApi extends runtime.BaseAPI {
61
60
  });
62
61
  }
63
62
  /**
64
- * Creates a Stripe Billing Portal session for the customer to manage their payment methods, view invoices, and update billing information. Returns a URL to redirect the customer to.
65
- * Create billing portal session
63
+ * Create a Stripe billing portal session
66
64
  */
67
65
  organizationsOrganizationIdSubscriptionBillingPortalPost(requestParameters, initOverrides) {
68
66
  return __awaiter(this, void 0, void 0, function* () {
@@ -71,8 +69,7 @@ export class SubscriptionApi extends runtime.BaseAPI {
71
69
  });
72
70
  }
73
71
  /**
74
- * Cancels the organization\'s subscription. By default, cancels at the end of the current billing period. Set cancelImmediately to true to cancel immediately.
75
- * Cancel subscription
72
+ * Cancel the subscription (at period end by default)
76
73
  */
77
74
  organizationsOrganizationIdSubscriptionCancelPostRaw(requestParameters, initOverrides) {
78
75
  return __awaiter(this, void 0, void 0, function* () {
@@ -98,12 +95,11 @@ export class SubscriptionApi extends runtime.BaseAPI {
98
95
  query: queryParameters,
99
96
  body: CancelSubscriptionRequestToJSON(requestParameters['cancelSubscriptionRequest']),
100
97
  }, initOverrides);
101
- return new runtime.JSONApiResponse(response, (jsonValue) => CancelSubscriptionResponseFromJSON(jsonValue));
98
+ return new runtime.JSONApiResponse(response, (jsonValue) => SubscriptionStatusFromJSON(jsonValue));
102
99
  });
103
100
  }
104
101
  /**
105
- * Cancels the organization\'s subscription. By default, cancels at the end of the current billing period. Set cancelImmediately to true to cancel immediately.
106
- * Cancel subscription
102
+ * Cancel the subscription (at period end by default)
107
103
  */
108
104
  organizationsOrganizationIdSubscriptionCancelPost(requestParameters, initOverrides) {
109
105
  return __awaiter(this, void 0, void 0, function* () {
@@ -112,8 +108,7 @@ export class SubscriptionApi extends runtime.BaseAPI {
112
108
  });
113
109
  }
114
110
  /**
115
- * Creates a Stripe checkout session for subscribing to a plan. Returns a checkout URL that the user should be redirected to complete payment.
116
- * Create a checkout session for subscription
111
+ * Create a Stripe Checkout session
117
112
  */
118
113
  organizationsOrganizationIdSubscriptionCheckoutPostRaw(requestParameters, initOverrides) {
119
114
  return __awaiter(this, void 0, void 0, function* () {
@@ -146,8 +141,7 @@ export class SubscriptionApi extends runtime.BaseAPI {
146
141
  });
147
142
  }
148
143
  /**
149
- * Creates a Stripe checkout session for subscribing to a plan. Returns a checkout URL that the user should be redirected to complete payment.
150
- * Create a checkout session for subscription
144
+ * Create a Stripe Checkout session
151
145
  */
152
146
  organizationsOrganizationIdSubscriptionCheckoutPost(requestParameters, initOverrides) {
153
147
  return __awaiter(this, void 0, void 0, function* () {
@@ -156,13 +150,12 @@ export class SubscriptionApi extends runtime.BaseAPI {
156
150
  });
157
151
  }
158
152
  /**
159
- * Retrieves all credit balances for the organization\'s subscription. Returns an array of credit balances for different credit types.
160
- * Get credit balances for an organization
153
+ * Get subscription status with current-period usage
161
154
  */
162
- organizationsOrganizationIdSubscriptionCreditsGetRaw(requestParameters, initOverrides) {
155
+ organizationsOrganizationIdSubscriptionGetRaw(requestParameters, initOverrides) {
163
156
  return __awaiter(this, void 0, void 0, function* () {
164
157
  if (requestParameters['organizationId'] == null) {
165
- throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdSubscriptionCreditsGet().');
158
+ throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdSubscriptionGet().');
166
159
  }
167
160
  const queryParameters = {};
168
161
  const headerParameters = {};
@@ -173,7 +166,7 @@ export class SubscriptionApi extends runtime.BaseAPI {
173
166
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
174
167
  }
175
168
  }
176
- let urlPath = `/organizations/{organizationId}/subscription/credits`;
169
+ let urlPath = `/organizations/{organizationId}/subscription`;
177
170
  urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
178
171
  const response = yield this.request({
179
172
  path: urlPath,
@@ -181,39 +174,29 @@ export class SubscriptionApi extends runtime.BaseAPI {
181
174
  headers: headerParameters,
182
175
  query: queryParameters,
183
176
  }, initOverrides);
184
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(CreditBalanceFromJSON));
177
+ return new runtime.JSONApiResponse(response, (jsonValue) => SubscriptionStatusFromJSON(jsonValue));
185
178
  });
186
179
  }
187
180
  /**
188
- * Retrieves all credit balances for the organization\'s subscription. Returns an array of credit balances for different credit types.
189
- * Get credit balances for an organization
181
+ * Get subscription status with current-period usage
190
182
  */
191
- organizationsOrganizationIdSubscriptionCreditsGet(requestParameters, initOverrides) {
183
+ organizationsOrganizationIdSubscriptionGet(requestParameters, initOverrides) {
192
184
  return __awaiter(this, void 0, void 0, function* () {
193
- const response = yield this.organizationsOrganizationIdSubscriptionCreditsGetRaw(requestParameters, initOverrides);
185
+ const response = yield this.organizationsOrganizationIdSubscriptionGetRaw(requestParameters, initOverrides);
194
186
  return yield response.value();
195
187
  });
196
188
  }
197
189
  /**
198
- * Retrieves credit transaction history for the organization\'s subscription. Supports filtering by credit type and pagination.
199
- * Get credit transaction history
190
+ * Pause payment collection
200
191
  */
201
- organizationsOrganizationIdSubscriptionCreditsTransactionsGetRaw(requestParameters, initOverrides) {
192
+ organizationsOrganizationIdSubscriptionPausePostRaw(requestParameters, initOverrides) {
202
193
  return __awaiter(this, void 0, void 0, function* () {
203
194
  if (requestParameters['organizationId'] == null) {
204
- throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdSubscriptionCreditsTransactionsGet().');
195
+ throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdSubscriptionPausePost().');
205
196
  }
206
197
  const queryParameters = {};
207
- if (requestParameters['creditType'] != null) {
208
- queryParameters['credit_type'] = requestParameters['creditType'];
209
- }
210
- if (requestParameters['limit'] != null) {
211
- queryParameters['limit'] = requestParameters['limit'];
212
- }
213
- if (requestParameters['offset'] != null) {
214
- queryParameters['offset'] = requestParameters['offset'];
215
- }
216
198
  const headerParameters = {};
199
+ headerParameters['Content-Type'] = 'application/json';
217
200
  if (this.configuration && this.configuration.accessToken) {
218
201
  const token = this.configuration.accessToken;
219
202
  const tokenString = yield token("bearerAuth", []);
@@ -221,38 +204,41 @@ export class SubscriptionApi extends runtime.BaseAPI {
221
204
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
222
205
  }
223
206
  }
224
- let urlPath = `/organizations/{organizationId}/subscription/credits/transactions`;
207
+ let urlPath = `/organizations/{organizationId}/subscription/pause`;
225
208
  urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
226
209
  const response = yield this.request({
227
210
  path: urlPath,
228
- method: 'GET',
211
+ method: 'POST',
229
212
  headers: headerParameters,
230
213
  query: queryParameters,
214
+ body: PauseSubscriptionRequestToJSON(requestParameters['pauseSubscriptionRequest']),
231
215
  }, initOverrides);
232
- return new runtime.JSONApiResponse(response, (jsonValue) => CreditTransactionsResponseFromJSON(jsonValue));
216
+ return new runtime.JSONApiResponse(response, (jsonValue) => SubscriptionStatusFromJSON(jsonValue));
233
217
  });
234
218
  }
235
219
  /**
236
- * Retrieves credit transaction history for the organization\'s subscription. Supports filtering by credit type and pagination.
237
- * Get credit transaction history
220
+ * Pause payment collection
238
221
  */
239
- organizationsOrganizationIdSubscriptionCreditsTransactionsGet(requestParameters, initOverrides) {
222
+ organizationsOrganizationIdSubscriptionPausePost(requestParameters, initOverrides) {
240
223
  return __awaiter(this, void 0, void 0, function* () {
241
- const response = yield this.organizationsOrganizationIdSubscriptionCreditsTransactionsGetRaw(requestParameters, initOverrides);
224
+ const response = yield this.organizationsOrganizationIdSubscriptionPausePostRaw(requestParameters, initOverrides);
242
225
  return yield response.value();
243
226
  });
244
227
  }
245
228
  /**
246
- * Retrieves detailed subscription information including Stripe data.
247
- * Get detailed subscription information
229
+ * Change subscription plan
248
230
  */
249
- organizationsOrganizationIdSubscriptionDetailsGetRaw(requestParameters, initOverrides) {
231
+ organizationsOrganizationIdSubscriptionPlanPatchRaw(requestParameters, initOverrides) {
250
232
  return __awaiter(this, void 0, void 0, function* () {
251
233
  if (requestParameters['organizationId'] == null) {
252
- throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdSubscriptionDetailsGet().');
234
+ throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdSubscriptionPlanPatch().');
235
+ }
236
+ if (requestParameters['updatePlanRequest'] == null) {
237
+ throw new runtime.RequiredError('updatePlanRequest', 'Required parameter "updatePlanRequest" was null or undefined when calling organizationsOrganizationIdSubscriptionPlanPatch().');
253
238
  }
254
239
  const queryParameters = {};
255
240
  const headerParameters = {};
241
+ headerParameters['Content-Type'] = 'application/json';
256
242
  if (this.configuration && this.configuration.accessToken) {
257
243
  const token = this.configuration.accessToken;
258
244
  const tokenString = yield token("bearerAuth", []);
@@ -260,35 +246,34 @@ export class SubscriptionApi extends runtime.BaseAPI {
260
246
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
261
247
  }
262
248
  }
263
- let urlPath = `/organizations/{organizationId}/subscription/details`;
249
+ let urlPath = `/organizations/{organizationId}/subscription/plan`;
264
250
  urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
265
251
  const response = yield this.request({
266
252
  path: urlPath,
267
- method: 'GET',
253
+ method: 'PATCH',
268
254
  headers: headerParameters,
269
255
  query: queryParameters,
256
+ body: UpdatePlanRequestToJSON(requestParameters['updatePlanRequest']),
270
257
  }, initOverrides);
271
- return new runtime.JSONApiResponse(response, (jsonValue) => SubscriptionDetailsFromJSON(jsonValue));
258
+ return new runtime.JSONApiResponse(response, (jsonValue) => SubscriptionStatusFromJSON(jsonValue));
272
259
  });
273
260
  }
274
261
  /**
275
- * Retrieves detailed subscription information including Stripe data.
276
- * Get detailed subscription information
262
+ * Change subscription plan
277
263
  */
278
- organizationsOrganizationIdSubscriptionDetailsGet(requestParameters, initOverrides) {
264
+ organizationsOrganizationIdSubscriptionPlanPatch(requestParameters, initOverrides) {
279
265
  return __awaiter(this, void 0, void 0, function* () {
280
- const response = yield this.organizationsOrganizationIdSubscriptionDetailsGetRaw(requestParameters, initOverrides);
266
+ const response = yield this.organizationsOrganizationIdSubscriptionPlanPatchRaw(requestParameters, initOverrides);
281
267
  return yield response.value();
282
268
  });
283
269
  }
284
270
  /**
285
- * Retrieves the subscription status for the organization from the subscription manager service. Returns information about the active plan, subscription period, and whether the subscription is active.
286
- * Check subscription status for an organization
271
+ * List available plans and their prices
287
272
  */
288
- organizationsOrganizationIdSubscriptionGetRaw(requestParameters, initOverrides) {
273
+ organizationsOrganizationIdSubscriptionPlansGetRaw(requestParameters, initOverrides) {
289
274
  return __awaiter(this, void 0, void 0, function* () {
290
275
  if (requestParameters['organizationId'] == null) {
291
- throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdSubscriptionGet().');
276
+ throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdSubscriptionPlansGet().');
292
277
  }
293
278
  const queryParameters = {};
294
279
  const headerParameters = {};
@@ -299,7 +284,7 @@ export class SubscriptionApi extends runtime.BaseAPI {
299
284
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
300
285
  }
301
286
  }
302
- let urlPath = `/organizations/{organizationId}/subscription`;
287
+ let urlPath = `/organizations/{organizationId}/subscription/plans`;
303
288
  urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
304
289
  const response = yield this.request({
305
290
  path: urlPath,
@@ -307,31 +292,28 @@ export class SubscriptionApi extends runtime.BaseAPI {
307
292
  headers: headerParameters,
308
293
  query: queryParameters,
309
294
  }, initOverrides);
310
- return new runtime.JSONApiResponse(response, (jsonValue) => SubscriptionStatusFromJSON(jsonValue));
295
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PlanCatalogEntryFromJSON));
311
296
  });
312
297
  }
313
298
  /**
314
- * Retrieves the subscription status for the organization from the subscription manager service. Returns information about the active plan, subscription period, and whether the subscription is active.
315
- * Check subscription status for an organization
299
+ * List available plans and their prices
316
300
  */
317
- organizationsOrganizationIdSubscriptionGet(requestParameters, initOverrides) {
301
+ organizationsOrganizationIdSubscriptionPlansGet(requestParameters, initOverrides) {
318
302
  return __awaiter(this, void 0, void 0, function* () {
319
- const response = yield this.organizationsOrganizationIdSubscriptionGetRaw(requestParameters, initOverrides);
303
+ const response = yield this.organizationsOrganizationIdSubscriptionPlansGetRaw(requestParameters, initOverrides);
320
304
  return yield response.value();
321
305
  });
322
306
  }
323
307
  /**
324
- * Pauses payment collection for the subscription. The subscription remains active but invoices are marked as uncollectible. Optionally set a date to automatically resume collection.
325
- * Pause subscription
308
+ * Resume a subscription scheduled for cancellation
326
309
  */
327
- organizationsOrganizationIdSubscriptionPausePostRaw(requestParameters, initOverrides) {
310
+ organizationsOrganizationIdSubscriptionResumePostRaw(requestParameters, initOverrides) {
328
311
  return __awaiter(this, void 0, void 0, function* () {
329
312
  if (requestParameters['organizationId'] == null) {
330
- throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdSubscriptionPausePost().');
313
+ throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdSubscriptionResumePost().');
331
314
  }
332
315
  const queryParameters = {};
333
316
  const headerParameters = {};
334
- headerParameters['Content-Type'] = 'application/json';
335
317
  if (this.configuration && this.configuration.accessToken) {
336
318
  const token = this.configuration.accessToken;
337
319
  const tokenString = yield token("bearerAuth", []);
@@ -339,43 +321,36 @@ export class SubscriptionApi extends runtime.BaseAPI {
339
321
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
340
322
  }
341
323
  }
342
- let urlPath = `/organizations/{organizationId}/subscription/pause`;
324
+ let urlPath = `/organizations/{organizationId}/subscription/resume`;
343
325
  urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
344
326
  const response = yield this.request({
345
327
  path: urlPath,
346
328
  method: 'POST',
347
329
  headers: headerParameters,
348
330
  query: queryParameters,
349
- body: PauseSubscriptionRequestToJSON(requestParameters['pauseSubscriptionRequest']),
350
331
  }, initOverrides);
351
- return new runtime.JSONApiResponse(response, (jsonValue) => PauseSubscriptionResponseFromJSON(jsonValue));
332
+ return new runtime.JSONApiResponse(response, (jsonValue) => SubscriptionStatusFromJSON(jsonValue));
352
333
  });
353
334
  }
354
335
  /**
355
- * Pauses payment collection for the subscription. The subscription remains active but invoices are marked as uncollectible. Optionally set a date to automatically resume collection.
356
- * Pause subscription
336
+ * Resume a subscription scheduled for cancellation
357
337
  */
358
- organizationsOrganizationIdSubscriptionPausePost(requestParameters, initOverrides) {
338
+ organizationsOrganizationIdSubscriptionResumePost(requestParameters, initOverrides) {
359
339
  return __awaiter(this, void 0, void 0, function* () {
360
- const response = yield this.organizationsOrganizationIdSubscriptionPausePostRaw(requestParameters, initOverrides);
340
+ const response = yield this.organizationsOrganizationIdSubscriptionResumePostRaw(requestParameters, initOverrides);
361
341
  return yield response.value();
362
342
  });
363
343
  }
364
344
  /**
365
- * Changes the subscription to a different plan/price. By default, prorations are created for the price difference.
366
- * Update subscription plan
345
+ * Resume payment collection
367
346
  */
368
- organizationsOrganizationIdSubscriptionPlanPatchRaw(requestParameters, initOverrides) {
347
+ organizationsOrganizationIdSubscriptionUnpausePostRaw(requestParameters, initOverrides) {
369
348
  return __awaiter(this, void 0, void 0, function* () {
370
349
  if (requestParameters['organizationId'] == null) {
371
- throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdSubscriptionPlanPatch().');
372
- }
373
- if (requestParameters['updatePlanRequest'] == null) {
374
- throw new runtime.RequiredError('updatePlanRequest', 'Required parameter "updatePlanRequest" was null or undefined when calling organizationsOrganizationIdSubscriptionPlanPatch().');
350
+ throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdSubscriptionUnpausePost().');
375
351
  }
376
352
  const queryParameters = {};
377
353
  const headerParameters = {};
378
- headerParameters['Content-Type'] = 'application/json';
379
354
  if (this.configuration && this.configuration.accessToken) {
380
355
  const token = this.configuration.accessToken;
381
356
  const tokenString = yield token("bearerAuth", []);
@@ -383,36 +358,33 @@ export class SubscriptionApi extends runtime.BaseAPI {
383
358
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
384
359
  }
385
360
  }
386
- let urlPath = `/organizations/{organizationId}/subscription/plan`;
361
+ let urlPath = `/organizations/{organizationId}/subscription/unpause`;
387
362
  urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
388
363
  const response = yield this.request({
389
364
  path: urlPath,
390
- method: 'PATCH',
365
+ method: 'POST',
391
366
  headers: headerParameters,
392
367
  query: queryParameters,
393
- body: UpdatePlanRequestToJSON(requestParameters['updatePlanRequest']),
394
368
  }, initOverrides);
395
- return new runtime.JSONApiResponse(response, (jsonValue) => UpdatePlanResponseFromJSON(jsonValue));
369
+ return new runtime.JSONApiResponse(response, (jsonValue) => SubscriptionStatusFromJSON(jsonValue));
396
370
  });
397
371
  }
398
372
  /**
399
- * Changes the subscription to a different plan/price. By default, prorations are created for the price difference.
400
- * Update subscription plan
373
+ * Resume payment collection
401
374
  */
402
- organizationsOrganizationIdSubscriptionPlanPatch(requestParameters, initOverrides) {
375
+ organizationsOrganizationIdSubscriptionUnpausePost(requestParameters, initOverrides) {
403
376
  return __awaiter(this, void 0, void 0, function* () {
404
- const response = yield this.organizationsOrganizationIdSubscriptionPlanPatchRaw(requestParameters, initOverrides);
377
+ const response = yield this.organizationsOrganizationIdSubscriptionUnpausePostRaw(requestParameters, initOverrides);
405
378
  return yield response.value();
406
379
  });
407
380
  }
408
381
  /**
409
- * Resumes a subscription that was scheduled for cancellation (cancel_at_period_end=true). Cannot resume a fully canceled subscription.
410
- * Resume subscription
382
+ * Get current-period voice usage breakdown
411
383
  */
412
- organizationsOrganizationIdSubscriptionResumePostRaw(requestParameters, initOverrides) {
384
+ organizationsOrganizationIdSubscriptionUsageGetRaw(requestParameters, initOverrides) {
413
385
  return __awaiter(this, void 0, void 0, function* () {
414
386
  if (requestParameters['organizationId'] == null) {
415
- throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdSubscriptionResumePost().');
387
+ throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdSubscriptionUsageGet().');
416
388
  }
417
389
  const queryParameters = {};
418
390
  const headerParameters = {};
@@ -423,37 +395,47 @@ export class SubscriptionApi extends runtime.BaseAPI {
423
395
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
424
396
  }
425
397
  }
426
- let urlPath = `/organizations/{organizationId}/subscription/resume`;
398
+ let urlPath = `/organizations/{organizationId}/subscription/usage`;
427
399
  urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
428
400
  const response = yield this.request({
429
401
  path: urlPath,
430
- method: 'POST',
402
+ method: 'GET',
431
403
  headers: headerParameters,
432
404
  query: queryParameters,
433
405
  }, initOverrides);
434
- return new runtime.JSONApiResponse(response, (jsonValue) => ResumeSubscriptionResponseFromJSON(jsonValue));
406
+ return new runtime.JSONApiResponse(response, (jsonValue) => CurrentPeriodUsageFromJSON(jsonValue));
435
407
  });
436
408
  }
437
409
  /**
438
- * Resumes a subscription that was scheduled for cancellation (cancel_at_period_end=true). Cannot resume a fully canceled subscription.
439
- * Resume subscription
410
+ * Get current-period voice usage breakdown
440
411
  */
441
- organizationsOrganizationIdSubscriptionResumePost(requestParameters, initOverrides) {
412
+ organizationsOrganizationIdSubscriptionUsageGet(requestParameters, initOverrides) {
442
413
  return __awaiter(this, void 0, void 0, function* () {
443
- const response = yield this.organizationsOrganizationIdSubscriptionResumePostRaw(requestParameters, initOverrides);
414
+ const response = yield this.organizationsOrganizationIdSubscriptionUsageGetRaw(requestParameters, initOverrides);
444
415
  return yield response.value();
445
416
  });
446
417
  }
447
418
  /**
448
- * Resumes payment collection for a paused subscription.
449
- * Unpause subscription
419
+ * List individual usage records (paginated)
450
420
  */
451
- organizationsOrganizationIdSubscriptionUnpausePostRaw(requestParameters, initOverrides) {
421
+ organizationsOrganizationIdSubscriptionUsageHistoryGetRaw(requestParameters, initOverrides) {
452
422
  return __awaiter(this, void 0, void 0, function* () {
453
423
  if (requestParameters['organizationId'] == null) {
454
- throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdSubscriptionUnpausePost().');
424
+ throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdSubscriptionUsageHistoryGet().');
455
425
  }
456
426
  const queryParameters = {};
427
+ if (requestParameters['from'] != null) {
428
+ queryParameters['from'] = requestParameters['from'].toISOString();
429
+ }
430
+ if (requestParameters['to'] != null) {
431
+ queryParameters['to'] = requestParameters['to'].toISOString();
432
+ }
433
+ if (requestParameters['limit'] != null) {
434
+ queryParameters['limit'] = requestParameters['limit'];
435
+ }
436
+ if (requestParameters['offset'] != null) {
437
+ queryParameters['offset'] = requestParameters['offset'];
438
+ }
457
439
  const headerParameters = {};
458
440
  if (this.configuration && this.configuration.accessToken) {
459
441
  const token = this.configuration.accessToken;
@@ -462,24 +444,23 @@ export class SubscriptionApi extends runtime.BaseAPI {
462
444
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
463
445
  }
464
446
  }
465
- let urlPath = `/organizations/{organizationId}/subscription/unpause`;
447
+ let urlPath = `/organizations/{organizationId}/subscription/usage/history`;
466
448
  urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
467
449
  const response = yield this.request({
468
450
  path: urlPath,
469
- method: 'POST',
451
+ method: 'GET',
470
452
  headers: headerParameters,
471
453
  query: queryParameters,
472
454
  }, initOverrides);
473
- return new runtime.JSONApiResponse(response, (jsonValue) => UnpauseSubscriptionResponseFromJSON(jsonValue));
455
+ return new runtime.JSONApiResponse(response, (jsonValue) => UsageHistoryResponseFromJSON(jsonValue));
474
456
  });
475
457
  }
476
458
  /**
477
- * Resumes payment collection for a paused subscription.
478
- * Unpause subscription
459
+ * List individual usage records (paginated)
479
460
  */
480
- organizationsOrganizationIdSubscriptionUnpausePost(requestParameters, initOverrides) {
461
+ organizationsOrganizationIdSubscriptionUsageHistoryGet(requestParameters, initOverrides) {
481
462
  return __awaiter(this, void 0, void 0, function* () {
482
- const response = yield this.organizationsOrganizationIdSubscriptionUnpausePostRaw(requestParameters, initOverrides);
463
+ const response = yield this.organizationsOrganizationIdSubscriptionUsageHistoryGetRaw(requestParameters, initOverrides);
483
464
  return yield response.value();
484
465
  });
485
466
  }
@@ -0,0 +1,31 @@
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 * as runtime from '../runtime';
13
+ import type { VoiceUsageReportRequest, VoiceUsageReportResponse } from '../models/index';
14
+ export interface VoiceUsageReportPostRequest {
15
+ voiceUsageReportRequest: VoiceUsageReportRequest;
16
+ }
17
+ /**
18
+ *
19
+ */
20
+ export declare class VoiceUsageApi extends runtime.BaseAPI {
21
+ /**
22
+ * Records voice-minute usage and reports overage to Stripe\'s Meter Events API when the included-minutes threshold is crossed. The request must be authenticated as a member of the target organization (or via the null provider in dev). Idempotent on `idempotencyKey`.
23
+ * Report voice usage for a call (used by agent runtimes)
24
+ */
25
+ voiceUsageReportPostRaw(requestParameters: VoiceUsageReportPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VoiceUsageReportResponse>>;
26
+ /**
27
+ * Records voice-minute usage and reports overage to Stripe\'s Meter Events API when the included-minutes threshold is crossed. The request must be authenticated as a member of the target organization (or via the null provider in dev). Idempotent on `idempotencyKey`.
28
+ * Report voice usage for a call (used by agent runtimes)
29
+ */
30
+ voiceUsageReportPost(requestParameters: VoiceUsageReportPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VoiceUsageReportResponse>;
31
+ }
@@ -0,0 +1,69 @@
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import * as runtime from '../runtime';
24
+ import { VoiceUsageReportRequestToJSON, VoiceUsageReportResponseFromJSON, } from '../models/index';
25
+ /**
26
+ *
27
+ */
28
+ export class VoiceUsageApi extends runtime.BaseAPI {
29
+ /**
30
+ * Records voice-minute usage and reports overage to Stripe\'s Meter Events API when the included-minutes threshold is crossed. The request must be authenticated as a member of the target organization (or via the null provider in dev). Idempotent on `idempotencyKey`.
31
+ * Report voice usage for a call (used by agent runtimes)
32
+ */
33
+ voiceUsageReportPostRaw(requestParameters, initOverrides) {
34
+ return __awaiter(this, void 0, void 0, function* () {
35
+ if (requestParameters['voiceUsageReportRequest'] == null) {
36
+ throw new runtime.RequiredError('voiceUsageReportRequest', 'Required parameter "voiceUsageReportRequest" was null or undefined when calling voiceUsageReportPost().');
37
+ }
38
+ const queryParameters = {};
39
+ const headerParameters = {};
40
+ headerParameters['Content-Type'] = 'application/json';
41
+ if (this.configuration && this.configuration.accessToken) {
42
+ const token = this.configuration.accessToken;
43
+ const tokenString = yield token("bearerAuth", []);
44
+ if (tokenString) {
45
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
46
+ }
47
+ }
48
+ let urlPath = `/voice-usage/report`;
49
+ const response = yield this.request({
50
+ path: urlPath,
51
+ method: 'POST',
52
+ headers: headerParameters,
53
+ query: queryParameters,
54
+ body: VoiceUsageReportRequestToJSON(requestParameters['voiceUsageReportRequest']),
55
+ }, initOverrides);
56
+ return new runtime.JSONApiResponse(response, (jsonValue) => VoiceUsageReportResponseFromJSON(jsonValue));
57
+ });
58
+ }
59
+ /**
60
+ * Records voice-minute usage and reports overage to Stripe\'s Meter Events API when the included-minutes threshold is crossed. The request must be authenticated as a member of the target organization (or via the null provider in dev). Idempotent on `idempotencyKey`.
61
+ * Report voice usage for a call (used by agent runtimes)
62
+ */
63
+ voiceUsageReportPost(requestParameters, initOverrides) {
64
+ return __awaiter(this, void 0, void 0, function* () {
65
+ const response = yield this.voiceUsageReportPostRaw(requestParameters, initOverrides);
66
+ return yield response.value();
67
+ });
68
+ }
69
+ }
@@ -1,3 +1,4 @@
1
+ export * from './AdminSubscriptionsApi';
1
2
  export * from './CalendarApi';
2
3
  export * from './CallsApi';
3
4
  export * from './ChatAgentsApi';
@@ -19,3 +20,4 @@ export * from './SubscriptionApi';
19
20
  export * from './TTSProvidersApi';
20
21
  export * from './ToolsApi';
21
22
  export * from './VoiceAgentsApi';
23
+ export * from './VoiceUsageApi';
@@ -1,5 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ export * from './AdminSubscriptionsApi';
3
4
  export * from './CalendarApi';
4
5
  export * from './CallsApi';
5
6
  export * from './ChatAgentsApi';
@@ -21,3 +22,4 @@ export * from './SubscriptionApi';
21
22
  export * from './TTSProvidersApi';
22
23
  export * from './ToolsApi';
23
24
  export * from './VoiceAgentsApi';
25
+ export * from './VoiceUsageApi';
@@ -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;