@openmeter/client 1.0.0-beta.235 → 1.0.0-beta.237

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.
@@ -11,18 +11,18 @@ import * as schemas from '../models/schemas.js';
11
11
  *
12
12
  * GET /openmeter/notification/channels
13
13
  */
14
- export function listNotificationChannels(client, req = {}, options) {
14
+ export function listBillingNotificationChannels(client, req = {}, options) {
15
15
  return request(() => {
16
16
  if (client._options.validate && req.sort !== undefined) {
17
- assertValid(schemas.listNotificationChannelsQueryParams.shape.sort, req.sort);
17
+ assertValid(schemas.listBillingNotificationChannelsQueryParams.shape.sort, req.sort);
18
18
  }
19
19
  const query = toWire({
20
20
  page: req.page,
21
21
  sort: encodeSort(req.sort, toSnakeCase),
22
22
  filter: req.filter,
23
- }, schemas.listNotificationChannelsQueryParams);
23
+ }, schemas.listBillingNotificationChannelsQueryParams);
24
24
  if (client._options.validate) {
25
- assertValid(schemas.listNotificationChannelsQueryParamsWire, query);
25
+ assertValid(schemas.listBillingNotificationChannelsQueryParamsWire, query);
26
26
  }
27
27
  const searchParams = toURLSearchParams(query);
28
28
  return http(client)
@@ -30,9 +30,9 @@ export function listNotificationChannels(client, req = {}, options) {
30
30
  .json()
31
31
  .then((data) => {
32
32
  if (client._options.validate) {
33
- assertValid(schemas.listNotificationChannelsResponseWire, data);
33
+ assertValid(schemas.listBillingNotificationChannelsResponseWire, data);
34
34
  }
35
- return fromWire(data, schemas.listNotificationChannelsResponse);
35
+ return fromWire(data, schemas.listBillingNotificationChannelsResponse);
36
36
  });
37
37
  });
38
38
  }
@@ -43,20 +43,20 @@ export function listNotificationChannels(client, req = {}, options) {
43
43
  *
44
44
  * POST /openmeter/notification/channels
45
45
  */
46
- export function createNotificationChannel(client, req, options) {
46
+ export function createBillingNotificationChannel(client, req, options) {
47
47
  return request(() => {
48
- const body = toWire(req, schemas.createNotificationChannelBody);
48
+ const body = toWire(req, schemas.createBillingNotificationChannelBody);
49
49
  if (client._options.validate) {
50
- assertValid(schemas.createNotificationChannelBodyWire, body);
50
+ assertValid(schemas.createBillingNotificationChannelBodyWire, body);
51
51
  }
52
52
  return http(client)
53
53
  .post('openmeter/notification/channels', { ...options, json: body })
54
54
  .json()
55
55
  .then((data) => {
56
56
  if (client._options.validate) {
57
- assertValid(schemas.createNotificationChannelResponseWire, data);
57
+ assertValid(schemas.createBillingNotificationChannelResponseWire, data);
58
58
  }
59
- return fromWire(data, schemas.createNotificationChannelResponse);
59
+ return fromWire(data, schemas.createBillingNotificationChannelResponse);
60
60
  });
61
61
  });
62
62
  }
@@ -67,16 +67,16 @@ export function createNotificationChannel(client, req, options) {
67
67
  *
68
68
  * GET /openmeter/notification/channels/{notificationChannelId}
69
69
  */
70
- export function getNotificationChannel(client, req, options) {
70
+ export function getBillingNotificationChannel(client, req, options) {
71
71
  return request(() => {
72
72
  const pathParamsInput = {
73
73
  notificationChannelId: req.notificationChannelId,
74
74
  };
75
75
  const pathParams = client._options.validate
76
- ? toPathWire(pathParamsInput, schemas.getNotificationChannelPathParams)
76
+ ? toPathWire(pathParamsInput, schemas.getBillingNotificationChannelPathParams)
77
77
  : pathParamsInput;
78
78
  if (client._options.validate) {
79
- assertValid(schemas.getNotificationChannelPathParamsWire, pathParams);
79
+ assertValid(schemas.getBillingNotificationChannelPathParamsWire, pathParams);
80
80
  }
81
81
  const path = `openmeter/notification/channels/${(() => {
82
82
  if (pathParams.notificationChannelId === undefined) {
@@ -89,9 +89,9 @@ export function getNotificationChannel(client, req, options) {
89
89
  .json()
90
90
  .then((data) => {
91
91
  if (client._options.validate) {
92
- assertValid(schemas.getNotificationChannelResponseWire, data);
92
+ assertValid(schemas.getBillingNotificationChannelResponseWire, data);
93
93
  }
94
- return fromWire(data, schemas.getNotificationChannelResponse);
94
+ return fromWire(data, schemas.getBillingNotificationChannelResponse);
95
95
  });
96
96
  });
97
97
  }
@@ -102,16 +102,16 @@ export function getNotificationChannel(client, req, options) {
102
102
  *
103
103
  * PUT /openmeter/notification/channels/{notificationChannelId}
104
104
  */
105
- export function updateNotificationChannel(client, req, options) {
105
+ export function updateBillingNotificationChannel(client, req, options) {
106
106
  return request(() => {
107
107
  const pathParamsInput = {
108
108
  notificationChannelId: req.notificationChannelId,
109
109
  };
110
110
  const pathParams = client._options.validate
111
- ? toPathWire(pathParamsInput, schemas.updateNotificationChannelPathParams)
111
+ ? toPathWire(pathParamsInput, schemas.updateBillingNotificationChannelPathParams)
112
112
  : pathParamsInput;
113
113
  if (client._options.validate) {
114
- assertValid(schemas.updateNotificationChannelPathParamsWire, pathParams);
114
+ assertValid(schemas.updateBillingNotificationChannelPathParamsWire, pathParams);
115
115
  }
116
116
  const path = `openmeter/notification/channels/${(() => {
117
117
  if (pathParams.notificationChannelId === undefined) {
@@ -119,18 +119,18 @@ export function updateNotificationChannel(client, req, options) {
119
119
  }
120
120
  return encodeURIComponent(String(pathParams.notificationChannelId));
121
121
  })()}`;
122
- const body = toWire(req.body, schemas.updateNotificationChannelBody);
122
+ const body = toWire(req.body, schemas.updateBillingNotificationChannelBody);
123
123
  if (client._options.validate) {
124
- assertValid(schemas.updateNotificationChannelBodyWire, body);
124
+ assertValid(schemas.updateBillingNotificationChannelBodyWire, body);
125
125
  }
126
126
  return http(client)
127
127
  .put(path, { ...options, json: body })
128
128
  .json()
129
129
  .then((data) => {
130
130
  if (client._options.validate) {
131
- assertValid(schemas.updateNotificationChannelResponseWire, data);
131
+ assertValid(schemas.updateBillingNotificationChannelResponseWire, data);
132
132
  }
133
- return fromWire(data, schemas.updateNotificationChannelResponse);
133
+ return fromWire(data, schemas.updateBillingNotificationChannelResponse);
134
134
  });
135
135
  });
136
136
  }
@@ -141,16 +141,16 @@ export function updateNotificationChannel(client, req, options) {
141
141
  *
142
142
  * DELETE /openmeter/notification/channels/{notificationChannelId}
143
143
  */
144
- export function deleteNotificationChannel(client, req, options) {
144
+ export function deleteBillingNotificationChannel(client, req, options) {
145
145
  return request(async () => {
146
146
  const pathParamsInput = {
147
147
  notificationChannelId: req.notificationChannelId,
148
148
  };
149
149
  const pathParams = client._options.validate
150
- ? toPathWire(pathParamsInput, schemas.deleteNotificationChannelPathParams)
150
+ ? toPathWire(pathParamsInput, schemas.deleteBillingNotificationChannelPathParams)
151
151
  : pathParamsInput;
152
152
  if (client._options.validate) {
153
- assertValid(schemas.deleteNotificationChannelPathParamsWire, pathParams);
153
+ assertValid(schemas.deleteBillingNotificationChannelPathParamsWire, pathParams);
154
154
  }
155
155
  const path = `openmeter/notification/channels/${(() => {
156
156
  if (pathParams.notificationChannelId === undefined) {
@@ -161,3 +161,299 @@ export function deleteNotificationChannel(client, req, options) {
161
161
  await http(client).delete(path, options);
162
162
  });
163
163
  }
164
+ /**
165
+ * List notification rules
166
+ *
167
+ * List all notification rules.
168
+ *
169
+ * GET /openmeter/notification/rules
170
+ */
171
+ export function listBillingNotificationRules(client, req = {}, options) {
172
+ return request(() => {
173
+ if (client._options.validate && req.sort !== undefined) {
174
+ assertValid(schemas.listBillingNotificationRulesQueryParams.shape.sort, req.sort);
175
+ }
176
+ const query = toWire({
177
+ page: req.page,
178
+ sort: encodeSort(req.sort, toSnakeCase),
179
+ filter: req.filter,
180
+ }, schemas.listBillingNotificationRulesQueryParams);
181
+ if (client._options.validate) {
182
+ assertValid(schemas.listBillingNotificationRulesQueryParamsWire, query);
183
+ }
184
+ const searchParams = toURLSearchParams(query);
185
+ return http(client)
186
+ .get('openmeter/notification/rules', { ...options, searchParams })
187
+ .json()
188
+ .then((data) => {
189
+ if (client._options.validate) {
190
+ assertValid(schemas.listBillingNotificationRulesResponseWire, data);
191
+ }
192
+ return fromWire(data, schemas.listBillingNotificationRulesResponse);
193
+ });
194
+ });
195
+ }
196
+ /**
197
+ * Create notification rule
198
+ *
199
+ * Create a notification rule.
200
+ *
201
+ * POST /openmeter/notification/rules
202
+ */
203
+ export function createBillingNotificationRule(client, req, options) {
204
+ return request(() => {
205
+ const body = toWire(req, schemas.createBillingNotificationRuleBody);
206
+ if (client._options.validate) {
207
+ assertValid(schemas.createBillingNotificationRuleBodyWire, body);
208
+ }
209
+ return http(client)
210
+ .post('openmeter/notification/rules', { ...options, json: body })
211
+ .json()
212
+ .then((data) => {
213
+ if (client._options.validate) {
214
+ assertValid(schemas.createBillingNotificationRuleResponseWire, data);
215
+ }
216
+ return fromWire(data, schemas.createBillingNotificationRuleResponse);
217
+ });
218
+ });
219
+ }
220
+ /**
221
+ * Get notification rule
222
+ *
223
+ * Get a notification rule by id.
224
+ *
225
+ * GET /openmeter/notification/rules/{notificationRuleId}
226
+ */
227
+ export function getBillingNotificationRule(client, req, options) {
228
+ return request(() => {
229
+ const pathParamsInput = {
230
+ notificationRuleId: req.notificationRuleId,
231
+ };
232
+ const pathParams = client._options.validate
233
+ ? toPathWire(pathParamsInput, schemas.getBillingNotificationRulePathParams)
234
+ : pathParamsInput;
235
+ if (client._options.validate) {
236
+ assertValid(schemas.getBillingNotificationRulePathParamsWire, pathParams);
237
+ }
238
+ const path = `openmeter/notification/rules/${(() => {
239
+ if (pathParams.notificationRuleId === undefined) {
240
+ throw new Error('missing path parameter: notificationRuleId');
241
+ }
242
+ return encodeURIComponent(String(pathParams.notificationRuleId));
243
+ })()}`;
244
+ return http(client)
245
+ .get(path, options)
246
+ .json()
247
+ .then((data) => {
248
+ if (client._options.validate) {
249
+ assertValid(schemas.getBillingNotificationRuleResponseWire, data);
250
+ }
251
+ return fromWire(data, schemas.getBillingNotificationRuleResponse);
252
+ });
253
+ });
254
+ }
255
+ /**
256
+ * Update notification rule
257
+ *
258
+ * Update a notification rule by id.
259
+ *
260
+ * PUT /openmeter/notification/rules/{notificationRuleId}
261
+ */
262
+ export function updateBillingNotificationRule(client, req, options) {
263
+ return request(() => {
264
+ const pathParamsInput = {
265
+ notificationRuleId: req.notificationRuleId,
266
+ };
267
+ const pathParams = client._options.validate
268
+ ? toPathWire(pathParamsInput, schemas.updateBillingNotificationRulePathParams)
269
+ : pathParamsInput;
270
+ if (client._options.validate) {
271
+ assertValid(schemas.updateBillingNotificationRulePathParamsWire, pathParams);
272
+ }
273
+ const path = `openmeter/notification/rules/${(() => {
274
+ if (pathParams.notificationRuleId === undefined) {
275
+ throw new Error('missing path parameter: notificationRuleId');
276
+ }
277
+ return encodeURIComponent(String(pathParams.notificationRuleId));
278
+ })()}`;
279
+ const body = toWire(req.body, schemas.updateBillingNotificationRuleBody);
280
+ if (client._options.validate) {
281
+ assertValid(schemas.updateBillingNotificationRuleBodyWire, body);
282
+ }
283
+ return http(client)
284
+ .put(path, { ...options, json: body })
285
+ .json()
286
+ .then((data) => {
287
+ if (client._options.validate) {
288
+ assertValid(schemas.updateBillingNotificationRuleResponseWire, data);
289
+ }
290
+ return fromWire(data, schemas.updateBillingNotificationRuleResponse);
291
+ });
292
+ });
293
+ }
294
+ /**
295
+ * Delete notification rule
296
+ *
297
+ * Delete a notification rule by id.
298
+ *
299
+ * DELETE /openmeter/notification/rules/{notificationRuleId}
300
+ */
301
+ export function deleteBillingNotificationRule(client, req, options) {
302
+ return request(async () => {
303
+ const pathParamsInput = {
304
+ notificationRuleId: req.notificationRuleId,
305
+ };
306
+ const pathParams = client._options.validate
307
+ ? toPathWire(pathParamsInput, schemas.deleteBillingNotificationRulePathParams)
308
+ : pathParamsInput;
309
+ if (client._options.validate) {
310
+ assertValid(schemas.deleteBillingNotificationRulePathParamsWire, pathParams);
311
+ }
312
+ const path = `openmeter/notification/rules/${(() => {
313
+ if (pathParams.notificationRuleId === undefined) {
314
+ throw new Error('missing path parameter: notificationRuleId');
315
+ }
316
+ return encodeURIComponent(String(pathParams.notificationRuleId));
317
+ })()}`;
318
+ await http(client).delete(path, options);
319
+ });
320
+ }
321
+ /**
322
+ * Test notification rule
323
+ *
324
+ * Test a notification rule by generating an event with sample data and delivering
325
+ * it to the rule's channels. The test event is persisted and listed like any other
326
+ * event.
327
+ *
328
+ * POST /openmeter/notification/rules/{notificationRuleId}/test
329
+ */
330
+ export function testBillingNotificationRule(client, req, options) {
331
+ return request(() => {
332
+ const pathParamsInput = {
333
+ notificationRuleId: req.notificationRuleId,
334
+ };
335
+ const pathParams = client._options.validate
336
+ ? toPathWire(pathParamsInput, schemas.testBillingNotificationRulePathParams)
337
+ : pathParamsInput;
338
+ if (client._options.validate) {
339
+ assertValid(schemas.testBillingNotificationRulePathParamsWire, pathParams);
340
+ }
341
+ const path = `openmeter/notification/rules/${(() => {
342
+ if (pathParams.notificationRuleId === undefined) {
343
+ throw new Error('missing path parameter: notificationRuleId');
344
+ }
345
+ return encodeURIComponent(String(pathParams.notificationRuleId));
346
+ })()}/test`;
347
+ return http(client)
348
+ .post(path, options)
349
+ .json()
350
+ .then((data) => {
351
+ if (client._options.validate) {
352
+ assertValid(schemas.testBillingNotificationRuleResponseWire, data);
353
+ }
354
+ return fromWire(data, schemas.testBillingNotificationRuleResponse);
355
+ });
356
+ });
357
+ }
358
+ /**
359
+ * List notification events
360
+ *
361
+ * List all notification events.
362
+ *
363
+ * GET /openmeter/notification/events
364
+ */
365
+ export function listBillingNotificationEvents(client, req = {}, options) {
366
+ return request(() => {
367
+ if (client._options.validate && req.sort !== undefined) {
368
+ assertValid(schemas.listBillingNotificationEventsQueryParams.shape.sort, req.sort);
369
+ }
370
+ const query = toWire({
371
+ page: req.page,
372
+ sort: encodeSort(req.sort, toSnakeCase),
373
+ filter: req.filter,
374
+ }, schemas.listBillingNotificationEventsQueryParams);
375
+ if (client._options.validate) {
376
+ assertValid(schemas.listBillingNotificationEventsQueryParamsWire, query);
377
+ }
378
+ const searchParams = toURLSearchParams(query);
379
+ return http(client)
380
+ .get('openmeter/notification/events', { ...options, searchParams })
381
+ .json()
382
+ .then((data) => {
383
+ if (client._options.validate) {
384
+ assertValid(schemas.listBillingNotificationEventsResponseWire, data);
385
+ }
386
+ return fromWire(data, schemas.listBillingNotificationEventsResponse);
387
+ });
388
+ });
389
+ }
390
+ /**
391
+ * Get notification event
392
+ *
393
+ * Get a notification event by id.
394
+ *
395
+ * GET /openmeter/notification/events/{notificationEventId}
396
+ */
397
+ export function getBillingNotificationEvent(client, req, options) {
398
+ return request(() => {
399
+ const pathParamsInput = {
400
+ notificationEventId: req.notificationEventId,
401
+ };
402
+ const pathParams = client._options.validate
403
+ ? toPathWire(pathParamsInput, schemas.getBillingNotificationEventPathParams)
404
+ : pathParamsInput;
405
+ if (client._options.validate) {
406
+ assertValid(schemas.getBillingNotificationEventPathParamsWire, pathParams);
407
+ }
408
+ const path = `openmeter/notification/events/${(() => {
409
+ if (pathParams.notificationEventId === undefined) {
410
+ throw new Error('missing path parameter: notificationEventId');
411
+ }
412
+ return encodeURIComponent(String(pathParams.notificationEventId));
413
+ })()}`;
414
+ return http(client)
415
+ .get(path, options)
416
+ .json()
417
+ .then((data) => {
418
+ if (client._options.validate) {
419
+ assertValid(schemas.getBillingNotificationEventResponseWire, data);
420
+ }
421
+ return fromWire(data, schemas.getBillingNotificationEventResponse);
422
+ });
423
+ });
424
+ }
425
+ /**
426
+ * Resend notification event
427
+ *
428
+ * Resend a notification event to the channels of the rule that generated it.
429
+ *
430
+ * Delivery is asynchronous: the request marks the selected channels for redelivery
431
+ * and returns immediately. Channels whose delivery is still pending or already
432
+ * being resent are left untouched.
433
+ *
434
+ * POST /openmeter/notification/events/{notificationEventId}/resend
435
+ */
436
+ export function resendBillingNotificationEvent(client, req, options) {
437
+ return request(async () => {
438
+ const pathParamsInput = {
439
+ notificationEventId: req.notificationEventId,
440
+ };
441
+ const pathParams = client._options.validate
442
+ ? toPathWire(pathParamsInput, schemas.resendBillingNotificationEventPathParams)
443
+ : pathParamsInput;
444
+ if (client._options.validate) {
445
+ assertValid(schemas.resendBillingNotificationEventPathParamsWire, pathParams);
446
+ }
447
+ const path = `openmeter/notification/events/${(() => {
448
+ if (pathParams.notificationEventId === undefined) {
449
+ throw new Error('missing path parameter: notificationEventId');
450
+ }
451
+ return encodeURIComponent(String(pathParams.notificationEventId));
452
+ })()}/resend`;
453
+ const body = toWire(req.body, schemas.resendBillingNotificationEventBody);
454
+ if (client._options.validate) {
455
+ assertValid(schemas.resendBillingNotificationEventBodyWire, body);
456
+ }
457
+ await http(client).post(path, { ...options, json: body });
458
+ });
459
+ }
package/dist/index.d.ts CHANGED
@@ -50,4 +50,4 @@ export type * from './models/operations/planAddons.js';
50
50
  export type * from './models/operations/defaults.js';
51
51
  export type * from './models/operations/entitlementAccess.js';
52
52
  export type * from './models/operations/notifications.js';
53
- export type { Labels, CursorPaginationQueryPage, SortQuery, IngestedEventValidationError, CursorMetaPage, BaseError, PageMeta, QueryFilterString, AppStripeCheckoutSessionCustomTextParams, AppStripeCreateCustomerPortalSessionOptions, CreateLabels, CreateVersionFilter, VersionFilter, PriceFree, RateCardStaticEntitlement, RateCardBooleanEntitlement, TaxConfigStripe, TaxConfigExternalInvoicing, InvoiceExternalReferences, InvoiceAvailableActionDetails, InvoiceWorkflowInvoicingSettings, WorkflowPaymentChargeAutomaticallySettings, WorkflowPaymentSendInvoiceSettings, ChargeFlatFeeDiscounts, SubscriptionEditRemoveItem, SubscriptionEditUnscheduleEdit, UpdateLabels, InstallAppStripeWithApiKey, InstallAppSandbox, InstallAppExternalInvoicing, WorkflowCollectionAlignmentSubscription, InvoiceLineExternalReferences, UpdateBillingInvoiceWorkflowInvoicingSettings, UpdateBillingWorkflowPaymentChargeAutomaticallySettings, UpdateBillingWorkflowPaymentSendInvoiceSettings, UpdatePriceFree, LlmCostProvider, LlmCostModel, ProductCatalogValidationError, EntitlementAccessQueryRequestCustomers, EntitlementAccessQueryRequestFeatures, QueryFilterInteger, QueryFilterFloat, QueryFilterBoolean, PagePaginationQuery, PublicLabels, SystemAccountAccessToken, PersonalAccessToken, KonnectAccessToken, AppCustomerDataStripe, AppCustomerDataExternalInvoicing, CreateChargeCostBasisDynamic, ChargeCostBasisDynamic, CurrencyFiat, ListCostBasesParamsFilter, CreateCurrencyCustomRequest, EntitlementAccessValue, EntitlementIssueAfterReset, EntitlementBurndownBalance, EntitlementBurndownGrantBalances, CreateChargeCostBasisManual, ChargeCostBasisManual, PriceFlat, PriceUnit, SpendCommitments, RateCardDiscounts, Totals, ChargeRealizationDetailedLineCreditApplied, ChargeRealizationAmountDiscount, FeatureManualUnitCost, FeatureLlmUnitCostPricing, InvoiceLineCreditsApplied, InvoiceUsageQuantityDetail, UpdatePriceFlat, UpdatePriceUnit, UpdateDiscounts, LlmCostModelPricing, FiatCurrencyAmount, QueryFilterNumeric, CursorPaginationQuery, ListMetersParamsFilter, ListLlmCostPricesParamsFilter, LabelsFieldFilter, CustomerReference, ProfileReference, FeatureReference, EntitlementGrantUsage, CreateChargeCostBasisPinned, CreateResourceReference, ChargeCostBasisPinned, TaxCodeReference, CreditGrantInvoiceReference, CurrencyCustomReference, SubscriptionCostBasisPin, SubscriptionReference, AppReference, ChargeRealizationInvoiceReference, AddonReference, ChargeReference, UpdateResourceReference, BillingCustomerReference, ChargeFeature, Event, MeterQueryRow, AppStripeCreateCustomerPortalSessionResult, ClosedPeriod, ChargeResolvedCostBasis, SubscriptionAddonTimelineSegment, UpdateClosedPeriod, CostBasis, FeatureCostQueryRow, Resource, ResourceImmutable, QueryFilterDateTime, CursorMeta, InvalidParameterStandard, InvalidParameterMinimumLength, InvalidParameterMaximumLength, InvalidParameterChoiceItem, InvalidParameterDependentItem, Unauthorized, Forbidden, NotFound, Gone, Conflict, PayloadTooLarge, UnsupportedMediaType, UnprocessableContent, TooManyRequests, Internal, NotImplemented, NotAvailable, SubscriptionPlanReference, UpsertPlanAddonRequest, ResourceWithKey, Meter, PaginatedMeta, QueryFilterStringMapItem, CustomerKeyReference, CustomerUsageAttribution, UpdateCustomerUsageAttribution, Address, UpdateAddress, AppStripeCreateCheckoutSessionCustomerUpdate, AppStripeCreateCheckoutSessionConsentCollectionPaymentMethodReuseAgreement, AppStripeCreateCheckoutSessionTaxIdCollection, AppStripeCreateCheckoutSessionResult, CustomerStripeCreateCustomerPortalSessionRequest, EntitlementAccessCheckResult, RecurringPeriodInput, RecurringPeriod, RateCardMeteredEntitlement, SubscriptionPhaseCreate, SubscriptionEditStretchPhase, GetCreditBalanceParamsFilter, ListPlansParamsFilter, CreateCreditGrantPlanFilter, CreditGrantPlanFilter, ListCreditGrantsParamsFilter, ValidationIssue, SubscriptionProRatingConfig, RateCardProrationConfiguration, UnitConfig, PartyTaxIdentity, UpdateBillingPartyTaxIdentity, InvoiceAvailableActions, ChargeRealizationPayment, SubscriptionEditRemovePhase, TaxCodeAppMapping, AppCapability, UpdateAppStripeRequest, UpdateAppSandboxRequest, UpdateAppExternalInvoicingRequest, WorkflowInvoicingSettings, InvoiceLineAmountDiscount, InvoiceLineUsageDiscount, InvoiceLineBaseDiscount, ListCurrenciesParamsFilter, EntitlementAccessQueryRequest, EntitlementFeatureAccessReason, EntitlementAccessQueryError, NotificationChannel, UpdateBillingNotificationChannelRequest, AppCustomerData, UpsertAppCustomerDataRequest, CreditAdjustment, ListCreditTransactionsParamsFilter, CurrencyAmount, EntitlementValueResult, EntitlementFeatureValueResult, PriceTier, ChargeTotals, FeatureLlmUnitCost, UpdatePriceTier, LlmCostPrice, LlmCostOverrideCreate, ListCustomersParamsFilter, ListCustomerEntitlementsParamsFilter, ListEntitlementsParamsFilter, ListGrantsParamsFilter, ListSubscriptionsParamsFilter, ListAppsParamsFilter, ListBillingProfilesParamsFilter, ListFeatureParamsFilter, ListAddonsParamsFilter, ListPlanAddonsParamsFilter, CreateTaxCodeConfig, TaxCodeConfig, TaxConfig, OrganizationDefaultTaxCodes, CreditBalance, CreditTransaction, InvoiceWorkflowAppsReferences, ProfileAppReferences, PlanAddon, UpdateTaxCodeConfig, ListEventsParamsFilter, ListCustomerChargesParamsFilter, ListInvoicesParamsFilter, ListChargesParamsFilter, ListNotificationChannelsParamsFilter, ResourceFilters, FieldFilters, IngestedEvent, MeterQueryResult, EntitlementHistoryWindow, EntitlementBurndownSegment, ChargeRealizationDetailedLineFlatFee, ChargeRealizationDetailedLineUsageBased, CurrencyCustom, FeatureCostQueryResult, MeterPagePaginatedResponse, CostBasisPagePaginatedResponse, MeterQueryFilters, FeatureMeterReference, Customer, PartyAddresses, InvoiceCustomer, UpdateBillingPartyAddresses, UpdateInvoiceCustomer, AppStripeCreateCheckoutSessionConsentCollection, EntitlementGrantCreateRequest, CreateEntitlementStaticRequest, CreateEntitlementBooleanRequest, EntitlementMetered, EntitlementStatic, EntitlementBoolean, EntitlementGrant, WorkflowCollectionAlignmentAnchored, SubscriptionEditAddPhase, CreateCreditGrantFilters, CreditGrantFilters, SubscriptionBase, InvoiceStatusDetails, InvoiceWorkflow, SubscriptionCancel, SubscriptionMigrate, SubscriptionAddonUpdate, TaxCode, AppCatalogItem, InvoiceLineDiscounts, UpdateBillingInvoiceWorkflow, EntitlementFeatureAccess, NotificationChannelPagePaginatedResponse, CustomerData, UpsertCustomerBillingDataRequest, ChargeFlatFeeSystemIntent, ListCustomerEntitlementAccessResponseData, PriceGraduated, PriceVolume, UpdatePriceGraduated, UpdatePriceVolume, PricePagePaginatedResponse, CreateCreditGrantPurchase, CreditGrantPurchase, CreateChargeFlatFeeRequest, WorkflowTaxSettings, CreditBalances, CreditTransactionPaginatedResponse, PlanAddonPagePaginatedResponse, IngestedEventPaginatedResponse, EntitlementHistory, InvalidParameters, MeterQueryRequest, CustomerPagePaginatedResponse, Supplier, Party, UpdateSupplier, AppStripeCreateCheckoutSessionRequestOptions, CreateEntitlementMeteredRequest, EntitlementGrantPagePaginatedResponse, InvoiceWorkflowSettings, TaxCodePagePaginatedResponse, AppStripe, AppSandbox, AppExternalInvoicing, AppCatalogItemPagePaginatedResponse, InstalledAppStripe, InstalledAppSandbox, InstalledAppExternalInvoicing, InvoiceDetailedLine, UpdateInvoiceWorkflowSettings, EntitlementAccessQueryResult, Feature, CreditGrant, CurrencyPagePaginatedResponse, BadRequest, InvoiceBase, CustomerStripeCreateCheckoutSessionRequest, EntitlementPagePaginatedResponse, WorkflowCollectionSettings, ChargeRealizationInvoice, EntitlementAccessQueryResponse, RateCard, InvoiceLineRateCard, ChargeUsageBasedSystemIntent, CreateChargeUsageBasedRequest, FeaturePagePaginatedResponse, UpdateInvoiceLineRateCard, CreditGrantPagePaginatedResponse, Workflow, AppPagePaginatedResponse, ProfileApps, SubscriptionItem, PlanPhase, SubscriptionEditAddItem, SubscriptionAddonRateCard, Addon, UpsertAddonRequest, InvoiceStandardLine, UpdateInvoiceStandardLine, Profile, UpsertBillingProfileRequest, ChargeRealization, SubscriptionPhase, SubscriptionCustomPlan, Plan, UpsertPlanRequest, SubscriptionAddon, AddonPagePaginatedResponse, ProfilePagePaginatedResponse, Subscription, SubscriptionCreate, SubscriptionChange, PlanPagePaginatedResponse, SubscriptionEdit, SubscriptionAddonPagePaginatedResponse, InvoiceStandard, UpdateInvoiceStandardRequest, SubscriptionPagePaginatedResponse, SubscriptionChangeResponse, SubscriptionMigrateResponse, ChargeFlatFee, ChargeUsageBased, InvoicePagePaginatedResponse, ChargePagePaginatedResponse, StringFieldFilter, MeterAggregation, MeterQueryGranularity, EntitlementHistoryWindowSize, StringFieldFilterExact, PricePaymentTerm, BooleanFieldFilter, BillingCurrencyCode, CreateCurrencyCode, UlidFieldFilter, DateTimeFieldFilter, EntitlementMeasureUsageFrom, WorkflowPaymentSettings, SubscriptionCreateTiming, SubscriptionEditTiming, UpdateBillingWorkflowPaymentSettings, CreateChargeCostBasis, ChargeCostBasis, InvalidParameter, RateCardEntitlement, FeatureUnitCost, ChargeRealizationDetailedLine, Currency, CustomerOrReference, Entitlement, WorkflowCollectionAlignment, Price, PriceUsageBased, UpdatePrice, CreateEntitlementRequest, App, BillingInstallAppResponse, FeatureOrReference, ChargeRealizationInvoiceOrReference, CreateChargeRequest, SubscriptionEditOperation, InvoiceLine, UpdateInvoiceLine, SubscriptionOrReference, Invoice, Charge, SortQueryInput, BaseErrorInput, InvoiceWorkflowInvoicingSettingsInput, WorkflowPaymentSendInvoiceSettingsInput, UpdateBillingInvoiceWorkflowInvoicingSettingsInput, UpdateBillingWorkflowPaymentSendInvoiceSettingsInput, EntitlementIssueAfterResetInput, EventInput, ResetCustomerEntitlementUsageRequestInput, UnauthorizedInput, ForbiddenInput, NotFoundInput, GoneInput, ConflictInput, PayloadTooLargeInput, UnsupportedMediaTypeInput, UnprocessableContentInput, TooManyRequestsInput, InternalInput, NotImplementedInput, NotAvailableInput, AppStripeCreateCheckoutSessionCustomerUpdateInput, AppStripeCreateCheckoutSessionTaxIdCollectionInput, RateCardMeteredEntitlementInput, VoidCreditGrantRequestInput, UnitConfigInput, WorkflowInvoicingSettingsInput, EntitlementAccessQueryRequestInput, NotificationChannelInput, CreateNotificationChannelRequestInput, UpdateBillingNotificationChannelRequestInput, IngestedEventInput, EntitlementMeteredInput, SubscriptionBaseInput, InvoiceWorkflowInput, SubscriptionCancelInput, SubscriptionMigrateInput, UpdateBillingInvoiceWorkflowInput, NotificationChannelPagePaginatedResponseInput, CreateCreditGrantPurchaseInput, CreditGrantPurchaseInput, WorkflowTaxSettingsInput, IngestedEventPaginatedResponseInput, MeterQueryRequestInput, AppStripeCreateCheckoutSessionRequestOptionsInput, CreateEntitlementMeteredRequestInput, InvoiceWorkflowSettingsInput, InvoiceDetailedLineInput, UpdateInvoiceWorkflowSettingsInput, CreateCreditGrantRequestInput, CreditGrantInput, BadRequestInput, CustomerStripeCreateCheckoutSessionRequestInput, EntitlementPagePaginatedResponseInput, WorkflowCollectionSettingsInput, ChargeRealizationInvoiceInput, RateCardInput, InvoiceLineRateCardInput, ChargeUsageBasedSystemIntentInput, CreateChargeUsageBasedRequestInput, CreditGrantPagePaginatedResponseInput, WorkflowInput, SubscriptionItemInput, PlanPhaseInput, SubscriptionEditAddItemInput, SubscriptionAddonRateCardInput, AddonInput, CreateAddonRequestInput, UpsertAddonRequestInput, InvoiceStandardLineInput, ProfileInput, CreateBillingProfileRequestInput, UpsertBillingProfileRequestInput, ChargeRealizationInput, SubscriptionPhaseInput, SubscriptionCustomPlanInput, PlanInput, CreatePlanRequestInput, UpsertPlanRequestInput, SubscriptionAddonInput, AddonPagePaginatedResponseInput, ProfilePagePaginatedResponseInput, SubscriptionInput, SubscriptionCreateInput, SubscriptionChangeInput, PlanPagePaginatedResponseInput, SubscriptionEditInput, SubscriptionAddonPagePaginatedResponseInput, InvoiceStandardInput, UpdateInvoiceStandardRequestInput, SubscriptionPagePaginatedResponseInput, SubscriptionChangeResponseInput, SubscriptionMigrateResponseInput, ChargeFlatFeeInput, ChargeUsageBasedInput, InvoicePagePaginatedResponseInput, ChargePagePaginatedResponseInput, WorkflowPaymentSettingsInput, UpdateBillingWorkflowPaymentSettingsInput, RateCardEntitlementInput, EntitlementInput, CreateEntitlementRequestInput, ChargeRealizationInvoiceOrReferenceInput, CreateChargeRequestInput, SubscriptionEditOperationInput, InvoiceLineInput, SubscriptionOrReferenceInput, InvoiceInput, UpdateInvoiceRequestInput, ChargeInput, } from './models/types.js';
53
+ export type { Labels, CursorPaginationQueryPage, SortQuery, IngestedEventValidationError, CursorMetaPage, BaseError, PageMeta, QueryFilterString, AppStripeCheckoutSessionCustomTextParams, AppStripeCreateCustomerPortalSessionOptions, CreateLabels, CreateVersionFilter, VersionFilter, PriceFree, RateCardStaticEntitlement, RateCardBooleanEntitlement, TaxConfigStripe, TaxConfigExternalInvoicing, InvoiceExternalReferences, InvoiceAvailableActionDetails, InvoiceWorkflowInvoicingSettings, WorkflowPaymentChargeAutomaticallySettings, WorkflowPaymentSendInvoiceSettings, ChargeFlatFeeDiscounts, InvoiceLineExternalReferences, SubscriptionEditRemoveItem, SubscriptionEditUnscheduleEdit, UpdateLabels, AppReconcileWebhookEventsActionRequest, InstallAppStripeWithApiKey, InstallAppSandbox, InstallAppExternalInvoicing, WorkflowCollectionAlignmentSubscription, UpdateBillingInvoiceWorkflowInvoicingSettings, UpdateBillingWorkflowPaymentChargeAutomaticallySettings, UpdateBillingWorkflowPaymentSendInvoiceSettings, UpdatePriceFree, LlmCostProvider, LlmCostModel, ProductCatalogValidationError, EntitlementAccessQueryRequestCustomers, EntitlementAccessQueryRequestFeatures, NotificationEventDeliveryAttemptResponse, NotificationEventV1Metadata, NotificationEventV1Annotations, NotificationEventV1Period, NotificationEventV1FilterString, NotificationEventV1Subject, NotificationEventV1EntitlementValue, NotificationEventV1CustomerUsageAttribution, NotificationEventV1Alignment, NotificationEventV1PlanReference, NotificationEventV1InvoiceAvailableActionDetails, NotificationEventV1InvoiceAvailableActionInvoiceDetails, NotificationEventV1BillingWorkflowCollectionAlignmentSubscription, NotificationEventV1StripeTaxConfig, NotificationEventV1CustomInvoicingTaxConfig, NotificationEventV1BillingWorkflowTaxSettings, NotificationEventV1DiscountReasonMaximumSpend, NotificationEventV1InvoiceLineAppExternalIds, NotificationEventV1IdResource, NotificationEventV1PaymentTermInstant, NotificationEventV1InvoiceAppExternalIds, QueryFilterInteger, QueryFilterFloat, QueryFilterBoolean, PagePaginationQuery, PublicLabels, InvoiceCreatedV1RuleConfig, InvoiceUpdatedV1RuleConfig, SystemAccountAccessToken, PersonalAccessToken, KonnectAccessToken, AppCustomerDataStripe, AppCustomerDataExternalInvoicing, CreateChargeCostBasisDynamic, ChargeCostBasisDynamic, CurrencyFiat, ListCostBasesParamsFilter, CreateCurrencyCustomRequest, EntitlementAccessValue, EntitlementIssueAfterReset, EntitlementBurndownBalance, EntitlementBurndownGrantBalances, CreateChargeCostBasisManual, ChargeCostBasisManual, PriceFlat, PriceUnit, SpendCommitments, RateCardDiscounts, Totals, ChargeRealizationDetailedLineCreditApplied, ChargeRealizationAmountDiscount, FeatureManualUnitCost, FeatureLlmUnitCostPricing, InvoiceLineCreditsApplied, InvoiceUsageQuantityDetail, UpdatePriceFlat, UpdatePriceUnit, UpdateDiscounts, LlmCostModelPricing, FiatCurrencyAmount, QueryFilterNumeric, CursorPaginationQuery, ListMetersParamsFilter, ListLlmCostPricesParamsFilter, LabelsFieldFilter, CustomerReference, ProfileReference, FeatureReference, EntitlementGrantUsage, CreateChargeCostBasisPinned, CreateResourceReference, CurrencyCustomReference, ChargeCostBasisPinned, TaxCodeReference, CreditGrantInvoiceReference, SubscriptionCostBasisPin, SubscriptionReference, AppReference, ChargeRealizationInvoiceReference, ChargeReference, AddonReference, UpdateResourceReference, NotificationChannelReference, BillingCustomerReference, ChargeFeature, Event, MeterQueryRow, AppStripeCreateCustomerPortalSessionResult, ClosedPeriod, ChargeResolvedCostBasis, InvoiceCustomerChargesInput, SubscriptionAddonTimelineSegment, UpdateClosedPeriod, CostBasis, FeatureCostQueryRow, Resource, ResourceImmutable, QueryFilterDateTime, CursorMeta, InvalidParameterStandard, InvalidParameterMinimumLength, InvalidParameterMaximumLength, InvalidParameterChoiceItem, InvalidParameterDependentItem, Unauthorized, Forbidden, NotFound, Gone, Conflict, PayloadTooLarge, UnsupportedMediaType, UnprocessableContent, TooManyRequests, Internal, NotImplemented, NotAvailable, SubscriptionPlanReference, UpsertPlanAddonRequest, ResourceWithKey, Meter, PaginatedMeta, QueryFilterStringMapItem, CustomerKeyReference, CustomerUsageAttribution, UpdateCustomerUsageAttribution, Address, UpdateAddress, AppStripeCreateCheckoutSessionCustomerUpdate, AppStripeCreateCheckoutSessionConsentCollectionPaymentMethodReuseAgreement, AppStripeCreateCheckoutSessionTaxIdCollection, AppStripeCreateCheckoutSessionResult, CustomerStripeCreateCustomerPortalSessionRequest, EntitlementAccessCheckResult, RecurringPeriodInput, RecurringPeriod, RateCardMeteredEntitlement, SubscriptionPhaseCreate, SubscriptionEditStretchPhase, GetCreditBalanceParamsFilter, ListPlansParamsFilter, CreateCreditGrantPlanFilter, CreditGrantPlanFilter, ValidationIssue, SubscriptionProRatingConfig, RateCardProrationConfiguration, UnitConfig, PartyTaxIdentity, UpdateBillingPartyTaxIdentity, InvoiceAvailableActions, ChargeRealizationPayment, InvoiceLineAmountDiscount, InvoiceLineUsageDiscount, InvoiceLineBaseDiscount, SubscriptionEditRemovePhase, TaxCodeAppMapping, AppCapability, AppAction, UpdateAppStripeRequest, UpdateAppSandboxRequest, UpdateAppExternalInvoicingRequest, WorkflowInvoicingSettings, ListCurrenciesParamsFilter, EntitlementAccessQueryRequest, EntitlementFeatureAccessReason, EntitlementAccessQueryError, NotificationChannel, CreateNotificationChannelRequest, NotificationBalanceThreshold, NotificationRuleReference, NotificationEventDeliveryAttempt, NotificationEventV1FeatureManualUnitCost, NotificationEventV1FeatureLlmUnitCostPricing, NotificationEventV1InvoiceTotals, NotificationEventV1DiscountReasonRatecardUsage, NotificationEventV1InvoiceLineCreditAllocation, NotificationEventV1UnitPriceWithCommitments, NotificationEventV1FlatPrice, NotificationEventV1UnitPrice, NotificationEventV1DynamicPriceWithCommitments, NotificationEventV1PackagePriceWithCommitments, NotificationEventV1BillingDiscountUsage, NotificationEventV1SubscriptionCostBasisPin, NotificationEventV1Address, NotificationEventV1ProRatingConfig, NotificationEventV1RuleBalanceThresholdValue, NotificationEventV1BillingPartyTaxIdentity, NotificationEventV1InvoiceReference, NotificationEventV1InvoiceDocumentRef, NotificationEventV1InvoiceGenericDocumentRef, NotificationEventV1InvoiceAvailableActions, NotificationEventV1AppCapability, NotificationEventV1TaxConfig, NotificationEventV1BillingWorkflowPaymentSettings, NotificationEventV1DiscountReasonRatecardPercentage, NotificationEventV1BillingDiscountPercentage, NotificationEventV1PaymentDueDate, NotificationEventV1InvoiceLineSubscriptionReference, NotificationEventV1FlatPriceWithPaymentTerm, NotificationEventV1ValidationIssue, AppCustomerData, UpsertAppCustomerDataRequest, CreditAdjustment, ListCreditGrantsParamsFilter, ListCreditTransactionsParamsFilter, CurrencyAmount, EntitlementValueResult, EntitlementFeatureValueResult, PriceTier, ChargeTotals, FeatureLlmUnitCost, UpdatePriceTier, LlmCostPrice, LlmCostOverrideCreate, ListCustomersParamsFilter, ListCustomerEntitlementsParamsFilter, ListEntitlementsParamsFilter, ListGrantsParamsFilter, ListSubscriptionsParamsFilter, ListAppsParamsFilter, ListBillingProfilesParamsFilter, ListFeatureParamsFilter, ListAddonsParamsFilter, ListPlanAddonsParamsFilter, UpsertCustomerBillingProfileRequest, CustomerProfile, EntitlementFeaturesRuleConfig, EntitlementUsagePeriodResetV1RuleConfig, CreateTaxCodeConfig, CreditBalance, CreditTransaction, TaxCodeConfig, TaxConfig, OrganizationDefaultTaxCodes, InvoiceWorkflowAppsReferences, ProfileAppReferences, PlanAddon, UpdateTaxCodeConfig, NotificationRuleEntitlementReset, NotificationRuleInvoiceCreated, NotificationRuleInvoiceUpdated, NotificationRuleEntitlementResetRequest, NotificationRuleInvoiceCreatedRequest, NotificationRuleInvoiceUpdatedRequest, ListEventsParamsFilter, ListCustomerChargesParamsFilter, ListInvoicesParamsFilter, ListChargesParamsFilter, ListNotificationChannelsParamsFilter, ListNotificationRulesParamsFilter, ListNotificationEventsParamsFilter, ResourceFilters, FieldFilters, IngestedEvent, MeterQueryResult, EntitlementHistoryWindow, EntitlementBurndownSegment, ChargeRealizationDetailedLineFlatFee, ChargeRealizationDetailedLineUsageBased, CurrencyCustom, FeatureCostQueryResult, MeterPagePaginatedResponse, CostBasisPagePaginatedResponse, MeterQueryFilters, FeatureMeterReference, Customer, PartyAddresses, InvoiceCustomer, UpdateBillingPartyAddresses, UpdateInvoiceCustomer, AppStripeCreateCheckoutSessionConsentCollection, EntitlementGrantCreateRequest, CreateEntitlementStaticRequest, CreateEntitlementBooleanRequest, EntitlementMetered, EntitlementStatic, EntitlementBoolean, EntitlementGrant, WorkflowCollectionAlignmentAnchored, SubscriptionEditAddPhase, CreateCreditGrantFilters, CreditGrantFilters, SubscriptionBase, InvoiceStatusDetails, InvoiceWorkflow, InvoiceLineDiscounts, SubscriptionCancel, SubscriptionMigrate, SubscriptionAddonUpdate, TaxCode, AppCatalogItem, UpdateBillingInvoiceWorkflow, EntitlementFeatureAccess, NotificationChannelPagePaginatedResponse, NotificationRuleBalanceThreshold, NotificationRuleBalanceThresholdRequest, EntitlementBalanceThresholdTriggeredV1RuleConfig, NotificationEventDeliveryStatus, NotificationEventV1RecurringPeriod, NotificationEventV1RecurringPeriodV2, NotificationEventV1FeatureLlmUnitCost, NotificationEventV1PriceTier, NotificationEventV1Subscription, NotificationEventV1BillingParty, NotificationEventV1BillingInvoiceCustomerExtendedDetails, NotificationEventV1InvoiceStatusDetails, NotificationEventV1MarketplaceListing, NotificationEventV1BillingWorkflowInvoicingSettings, NotificationEventV1InvoiceLineTaxItem, NotificationEventV1BillingDiscounts, NotificationEventV1PaymentTermDueDate, CustomerData, UpsertCustomerBillingDataRequest, ChargeFlatFeeSystemIntent, ListCustomerEntitlementAccessResponseData, PriceGraduated, PriceVolume, UpdatePriceGraduated, UpdatePriceVolume, PricePagePaginatedResponse, CreateCreditGrantPurchase, CreditBalances, CreditTransactionPaginatedResponse, CreditGrantPurchase, CreateChargeFlatFeeRequest, WorkflowTaxSettings, PlanAddonPagePaginatedResponse, IngestedEventPaginatedResponse, EntitlementHistory, InvalidParameters, MeterQueryRequest, CustomerPagePaginatedResponse, Supplier, Party, UpdateSupplier, AppStripeCreateCheckoutSessionRequestOptions, CreateEntitlementMeteredRequest, EntitlementGrantPagePaginatedResponse, InvoiceWorkflowSettings, InvoiceDetailedLine, TaxCodePagePaginatedResponse, AppStripe, AppSandbox, AppExternalInvoicing, AppCatalogItemPagePaginatedResponse, InstalledAppStripe, InstalledAppSandbox, InstalledAppExternalInvoicing, UpdateInvoiceWorkflowSettings, EntitlementAccessQueryResult, NotificationEventV1EntitlementMetered, NotificationEventV1BillingWorkflowCollectionAlignmentAnchored, NotificationEventV1TieredPriceWithCommitments, NotificationEventV1Customer, NotificationEventV1StripeApp, NotificationEventV1SandboxApp, NotificationEventV1CustomInvoicingApp, NotificationEventV1InvoiceLineAmountDiscount, NotificationEventV1InvoiceLineUsageDiscount, NotificationEventV1InvoiceDetailedLineRateCard, Feature, CreditGrant, CurrencyPagePaginatedResponse, BadRequest, InvoiceBase, CustomerStripeCreateCheckoutSessionRequest, EntitlementPagePaginatedResponse, WorkflowCollectionSettings, ChargeRealizationInvoice, EntitlementAccessQueryResponse, NotificationRulePagePaginatedResponse, NotificationEventV1Feature, NotificationEventV1InvoiceLineDiscounts, NotificationEventV1InvoicePaymentTerms, RateCard, InvoiceLineRateCard, ChargeUsageBasedSystemIntent, CreateChargeUsageBasedRequest, FeaturePagePaginatedResponse, UpdateInvoiceLineRateCard, CreditGrantPagePaginatedResponse, Workflow, AppPagePaginatedResponse, ProfileApps, NotificationEventV1BillingWorkflowCollectionSettings, EntitlementBalanceThresholdTriggeredV1Payload, EntitlementUsagePeriodResetV1Payload, NotificationEventV1BalanceThresholdPayloadData, NotificationEventV1EntitlementValuePayloadBase, NotificationEventV1InvoiceUsageBasedRateCard, NotificationEventV1BillingProfileApps, NotificationEventV1InvoiceDetailedLine, SubscriptionItem, PlanPhase, SubscriptionEditAddItem, SubscriptionAddonRateCard, Addon, UpsertAddonRequest, InvoiceStandardLine, UpdateInvoiceStandardLine, Profile, UpsertBillingProfileRequest, ChargeRealization, NotificationEventV1BillingWorkflow, NotificationEventBalanceThresholdPayload, NotificationEventResetPayload, NotificationEventV1InvoiceLine, SubscriptionPhase, SubscriptionCustomPlan, Plan, UpsertPlanRequest, SubscriptionAddon, AddonPagePaginatedResponse, ProfilePagePaginatedResponse, NotificationEventV1InvoiceWorkflowSettings, Subscription, SubscriptionCreate, SubscriptionChange, PlanPagePaginatedResponse, SubscriptionEdit, SubscriptionAddonPagePaginatedResponse, InvoiceStandard, UpdateInvoiceStandardRequest, InvoiceCreatedV1Payload, InvoiceUpdatedV1Payload, NotificationEventV1Invoice, SubscriptionPagePaginatedResponse, SubscriptionChangeResponse, SubscriptionMigrateResponse, NotificationEventInvoiceCreatedPayload, NotificationEventInvoiceUpdatedPayload, ChargeFlatFee, ChargeUsageBased, InvoiceCustomerChargesResult, InvoicePagePaginatedResponse, NotificationEvent, ChargePagePaginatedResponse, NotificationEventPagePaginatedResponse, StringFieldFilter, MeterAggregation, MeterQueryGranularity, EntitlementHistoryWindowSize, StringFieldFilterExact, PricePaymentTerm, BooleanFieldFilter, BillingCurrencyCode, CreateCurrencyCode, UlidFieldFilter, DateTimeFieldFilter, EntitlementMeasureUsageFrom, WorkflowPaymentSettings, SubscriptionCreateTiming, SubscriptionEditTiming, AppActionRequest, UpdateBillingWorkflowPaymentSettings, NotificationEventV1RecurringPeriodInterval, CreateChargeCostBasis, ChargeCostBasis, InvalidParameter, RateCardEntitlement, NotificationEventV1BillingDiscountReason, FeatureUnitCost, ChargeRealizationDetailedLine, Currency, CustomerOrReference, Entitlement, WorkflowCollectionAlignment, NotificationRule, NotificationRuleRequest, NotificationEventV1FeatureUnitCost, NotificationEventV1PaymentTerms, Price, PriceUsageBased, UpdatePrice, CreateEntitlementRequest, App, BillingInstallAppResponse, NotificationEventV1BillingWorkflowCollectionAlignment, NotificationEventV1RateCardUsageBasedPrice, NotificationEventV1App, FeatureOrReference, ChargeRealizationInvoiceOrReference, CreateChargeRequest, SubscriptionEditOperation, InvoiceLine, UpdateInvoiceLine, SubscriptionOrReference, Invoice, NotificationEventPayload, Charge, SortQueryInput, BaseErrorInput, InvoiceWorkflowInvoicingSettingsInput, WorkflowPaymentSendInvoiceSettingsInput, UpdateBillingInvoiceWorkflowInvoicingSettingsInput, UpdateBillingWorkflowPaymentSendInvoiceSettingsInput, EntitlementIssueAfterResetInput, EventInput, ResetCustomerEntitlementUsageRequestInput, UnauthorizedInput, ForbiddenInput, NotFoundInput, GoneInput, ConflictInput, PayloadTooLargeInput, UnsupportedMediaTypeInput, UnprocessableContentInput, TooManyRequestsInput, InternalInput, NotImplementedInput, NotAvailableInput, AppStripeCreateCheckoutSessionCustomerUpdateInput, AppStripeCreateCheckoutSessionTaxIdCollectionInput, RateCardMeteredEntitlementInput, VoidCreditGrantRequestInput, UnitConfigInput, WorkflowInvoicingSettingsInput, EntitlementAccessQueryRequestInput, NotificationChannelInput, CreateNotificationChannelRequestInput, UpdateBillingNotificationChannelRequestInput, NotificationRuleEntitlementResetInput, NotificationRuleInvoiceCreatedInput, NotificationRuleInvoiceUpdatedInput, NotificationRuleEntitlementResetRequestInput, NotificationRuleInvoiceCreatedRequestInput, NotificationRuleInvoiceUpdatedRequestInput, IngestedEventInput, EntitlementMeteredInput, SubscriptionBaseInput, InvoiceWorkflowInput, SubscriptionCancelInput, SubscriptionMigrateInput, UpdateBillingInvoiceWorkflowInput, NotificationChannelPagePaginatedResponseInput, NotificationRuleBalanceThresholdInput, NotificationRuleBalanceThresholdRequestInput, CreateCreditGrantPurchaseInput, CreditGrantPurchaseInput, WorkflowTaxSettingsInput, IngestedEventPaginatedResponseInput, MeterQueryRequestInput, AppStripeCreateCheckoutSessionRequestOptionsInput, CreateEntitlementMeteredRequestInput, InvoiceWorkflowSettingsInput, InvoiceDetailedLineInput, UpdateInvoiceWorkflowSettingsInput, CreateCreditGrantRequestInput, CreditGrantInput, BadRequestInput, CustomerStripeCreateCheckoutSessionRequestInput, EntitlementPagePaginatedResponseInput, WorkflowCollectionSettingsInput, ChargeRealizationInvoiceInput, NotificationRulePagePaginatedResponseInput, RateCardInput, InvoiceLineRateCardInput, ChargeUsageBasedSystemIntentInput, CreateChargeUsageBasedRequestInput, CreditGrantPagePaginatedResponseInput, WorkflowInput, SubscriptionItemInput, PlanPhaseInput, SubscriptionEditAddItemInput, SubscriptionAddonRateCardInput, AddonInput, CreateAddonRequestInput, UpsertAddonRequestInput, InvoiceStandardLineInput, ProfileInput, CreateBillingProfileRequestInput, UpsertBillingProfileRequestInput, ChargeRealizationInput, SubscriptionPhaseInput, SubscriptionCustomPlanInput, PlanInput, CreatePlanRequestInput, UpsertPlanRequestInput, SubscriptionAddonInput, AddonPagePaginatedResponseInput, ProfilePagePaginatedResponseInput, SubscriptionInput, SubscriptionCreateInput, SubscriptionChangeInput, PlanPagePaginatedResponseInput, SubscriptionEditInput, SubscriptionAddonPagePaginatedResponseInput, InvoiceStandardInput, UpdateInvoiceStandardRequestInput, SubscriptionPagePaginatedResponseInput, SubscriptionChangeResponseInput, SubscriptionMigrateResponseInput, ChargeFlatFeeInput, ChargeUsageBasedInput, InvoiceCustomerChargesResultInput, InvoicePagePaginatedResponseInput, ChargePagePaginatedResponseInput, WorkflowPaymentSettingsInput, UpdateBillingWorkflowPaymentSettingsInput, RateCardEntitlementInput, EntitlementInput, NotificationRuleInput, NotificationRuleRequestInput, CreateEntitlementRequestInput, ChargeRealizationInvoiceOrReferenceInput, CreateChargeRequestInput, SubscriptionEditOperationInput, InvoiceLineInput, SubscriptionOrReferenceInput, InvoiceInput, UpdateInvoiceRequestInput, ChargeInput, } from './models/types.js';
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "v1.0.0-beta.235";
1
+ export declare const SDK_VERSION = "v1.0.0-beta.237";
@@ -2,4 +2,4 @@
2
2
  // The committed value is a dev placeholder. The publish flow
3
3
  // (`make -C api/spec publish-aip-sdk`) stamps the real release version here
4
4
  // before `pnpm publish`, after `pnpm version` updates package.json.
5
- export const SDK_VERSION = 'v1.0.0-beta.235';
5
+ export const SDK_VERSION = 'v1.0.0-beta.237';
@@ -1,5 +1,5 @@
1
1
  import type { AcceptDateStrings } from '../../lib/wire.js';
2
- import type { App, AppCatalogItem, AppCatalogItemPagePaginatedResponse, AppPagePaginatedResponse, BillingInstallAppResponse, InstallAppRequest as InstallAppRequestBody, ListAppsParamsFilter, SortQueryInput, UpdateAppRequest as UpdateAppRequestBody } from '../types.js';
2
+ import type { App, AppActionRequest, AppCatalogItem, AppCatalogItemPagePaginatedResponse, AppPagePaginatedResponse, BillingInstallAppResponse, InstallAppRequest as InstallAppRequestBody, ListAppsParamsFilter, SortQueryInput, UpdateAppRequest as UpdateAppRequestBody } from '../types.js';
3
3
  export interface ListAppsQuery {
4
4
  /** Determines which page of the collection to retrieve. */
5
5
  page?: {
@@ -38,6 +38,11 @@ export type UpdateAppRequest = AcceptDateStrings<{
38
38
  body: UpdateAppRequestBody;
39
39
  }>;
40
40
  export type UpdateAppResponse = App;
41
+ export type ExecuteAppActionRequest = AcceptDateStrings<{
42
+ appId: string;
43
+ body: AppActionRequest;
44
+ }>;
45
+ export type ExecuteAppActionResponse = App;
41
46
  export interface ListAppCatalogQuery {
42
47
  /** Determines which page of the collection to retrieve. */
43
48
  page?: {
@@ -1,5 +1,5 @@
1
1
  import type { AcceptDateStrings } from '../../lib/wire.js';
2
- import type { AppCustomerData, AppStripeCreateCheckoutSessionResult, AppStripeCreateCustomerPortalSessionResult, Charge, ChargePagePaginatedResponse, CreateChargeRequestInput, CreateCreditAdjustmentRequest as CreateCreditAdjustmentRequestBody, CreateCreditGrantRequestInput, CreateCustomerRequest as CreateCustomerRequestBody, CreateEntitlementRequestInput, CreditAdjustment, CreditBalances, CreditGrant, CreditGrantPagePaginatedResponse, CreditTransactionPaginatedResponse, CursorPaginationQueryPage, Customer, CustomerData, CustomerPagePaginatedResponse, CustomerStripeCreateCheckoutSessionRequestInput, CustomerStripeCreateCustomerPortalSessionRequest, Entitlement, EntitlementGrant, EntitlementGrantCreateRequest, EntitlementGrantPagePaginatedResponse, EntitlementHistory, EntitlementHistoryWindowSize, EntitlementPagePaginatedResponse, GetCreditBalanceParamsFilter, ListCreditGrantsParamsFilter, ListCreditTransactionsParamsFilter, ListCustomerChargesParamsFilter, ListCustomerEntitlementsParamsFilter, ListCustomersParamsFilter, ResetCustomerEntitlementUsageRequestInput, SortQueryInput, UpdateCreditGrantExternalSettlementRequest as UpdateCreditGrantExternalSettlementRequestBody, UpsertAppCustomerDataRequest, UpsertCustomerBillingDataRequest, UpsertCustomerRequest as UpsertCustomerRequestBody, VoidCreditGrantRequestInput } from '../types.js';
2
+ import type { AppCustomerData, AppStripeCreateCheckoutSessionResult, AppStripeCreateCustomerPortalSessionResult, Charge, ChargePagePaginatedResponse, CreateChargeRequestInput, CreateCreditAdjustmentRequest as CreateCreditAdjustmentRequestBody, CreateCreditGrantRequestInput, CreateCustomerRequest as CreateCustomerRequestBody, CreateEntitlementRequestInput, CreditAdjustment, CreditBalances, CreditGrant, CreditGrantPagePaginatedResponse, CreditTransactionPaginatedResponse, CursorPaginationQueryPage, Customer, CustomerData, CustomerPagePaginatedResponse, CustomerProfile, CustomerStripeCreateCheckoutSessionRequestInput, CustomerStripeCreateCustomerPortalSessionRequest, Entitlement, EntitlementGrant, EntitlementGrantCreateRequest, EntitlementGrantPagePaginatedResponse, EntitlementHistory, EntitlementHistoryWindowSize, EntitlementPagePaginatedResponse, GetCreditBalanceParamsFilter, InvoiceCustomerChargesInput, InvoiceCustomerChargesResult, ListCreditGrantsParamsFilter, ListCreditTransactionsParamsFilter, ListCustomerChargesParamsFilter, ListCustomerEntitlementsParamsFilter, ListCustomersParamsFilter, ResetCustomerEntitlementUsageRequestInput, SortQueryInput, UpdateCreditGrantExternalSettlementRequest as UpdateCreditGrantExternalSettlementRequestBody, UpsertAppCustomerDataRequest, UpsertCustomerBillingDataRequest, UpsertCustomerBillingProfileRequest, UpsertCustomerRequest as UpsertCustomerRequestBody, VoidCreditGrantRequestInput } from '../types.js';
3
3
  export type CreateCustomerRequest = AcceptDateStrings<CreateCustomerRequestBody>;
4
4
  export type CreateCustomerResponse = Customer;
5
5
  export type GetCustomerRequest = {
@@ -50,6 +50,11 @@ export type UpdateCustomerBillingRequest = AcceptDateStrings<{
50
50
  body: UpsertCustomerBillingDataRequest;
51
51
  }>;
52
52
  export type UpdateCustomerBillingResponse = CustomerData;
53
+ export type UpdateCustomerBillingProfileRequest = AcceptDateStrings<{
54
+ customerId: string;
55
+ body: UpsertCustomerBillingProfileRequest;
56
+ }>;
57
+ export type UpdateCustomerBillingProfileResponse = CustomerProfile;
53
58
  export type UpdateCustomerBillingAppDataRequest = AcceptDateStrings<{
54
59
  customerId: string;
55
60
  body: UpsertAppCustomerDataRequest;
@@ -133,7 +138,7 @@ export type ListCustomerEntitlementsResponse = EntitlementPagePaginatedResponse;
133
138
  export type ResetCustomerEntitlementUsageRequest = AcceptDateStrings<{
134
139
  customerId: string;
135
140
  entitlementId: string;
136
- body: ResetCustomerEntitlementUsageRequestInput;
141
+ body?: ResetCustomerEntitlementUsageRequestInput;
137
142
  }>;
138
143
  export type ResetCustomerEntitlementUsageResponse = void;
139
144
  export type DeleteCustomerEntitlementRequest = {
@@ -189,6 +194,12 @@ export interface ListCreditGrantsQuery {
189
194
  size?: number;
190
195
  number?: number;
191
196
  };
197
+ /**
198
+ * Sort credit grants by `created_at`, `updated_at`, `name`, or `id`. Defaults to
199
+ * `created_at desc`. The `asc` suffix is optional when a sort attribute is
200
+ * supplied. Supports one attribute; ties are broken by `id` in the same direction.
201
+ */
202
+ sort?: SortQueryInput;
192
203
  /** Filter credit grants returned in the response. */
193
204
  filter?: ListCreditGrantsParamsFilter;
194
205
  }
@@ -198,7 +209,9 @@ export type ListCreditGrantsRequest = AcceptDateStrings<ListCreditGrantsQuery &
198
209
  export type ListCreditGrantsResponse = CreditGrantPagePaginatedResponse;
199
210
  export interface GetCustomerCreditBalanceQuery {
200
211
  /**
201
- * Return the credit balance as of this timestamp.
212
+ * Return credit balances at this timestamp using all currently recorded postings,
213
+ * including corrections recorded later. This is not a snapshot of what was known
214
+ * at the requested time.
202
215
  *
203
216
  * Defaults to the current time. Historical responses return `live` as zero because
204
217
  * live charge impacts are only available for current balances.
@@ -218,7 +231,7 @@ export type CreateCreditAdjustmentResponse = CreditAdjustment;
218
231
  export type VoidCreditGrantRequest = AcceptDateStrings<{
219
232
  customerId: string;
220
233
  creditGrantId: string;
221
- body: VoidCreditGrantRequestInput;
234
+ body?: VoidCreditGrantRequestInput;
222
235
  }>;
223
236
  export type VoidCreditGrantResponse = CreditGrant;
224
237
  export type UpdateCreditGrantExternalSettlementRequest = AcceptDateStrings<{
@@ -292,3 +305,8 @@ export type CreateCustomerChargesRequest = AcceptDateStrings<{
292
305
  body: CreateChargeRequestInput;
293
306
  }>;
294
307
  export type CreateCustomerChargesResponse = Charge;
308
+ export type InvoiceCustomerChargesRequest = AcceptDateStrings<{
309
+ customerId: string;
310
+ body?: InvoiceCustomerChargesInput;
311
+ }>;
312
+ export type InvoiceCustomerChargesResponse = InvoiceCustomerChargesResult;
@@ -45,6 +45,6 @@ export type DeleteFeatureRequest = {
45
45
  export type DeleteFeatureResponse = void;
46
46
  export type QueryFeatureCostRequest = AcceptDateStrings<{
47
47
  featureId: string;
48
- body: MeterQueryRequestInput;
48
+ body?: MeterQueryRequestInput;
49
49
  }>;
50
50
  export type QueryFeatureCostResponse = FeatureCostQueryResult;