@openmeter/sdk 1.0.0-beta-0f4e99f7857e → 1.0.0-beta-1659b7d437ee

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.
@@ -1,9 +1,9 @@
1
1
  /**
2
- * Generated by orval v8.7.0 🍺
2
+ * Generated by orval v8.15.0 🍺
3
3
  * Do not edit manually.
4
4
  * OpenMeter Cloud API
5
5
  * OpenMeter is a cloud native usage metering service.
6
- The OpenMeter API allows you to ingest events, query meter usage, and manage resources.
6
+ * The OpenMeter API allows you to ingest events, query meter usage, and manage resources.
7
7
  * OpenAPI spec version: 1.0.0
8
8
  */
9
9
  import * as zod from 'zod';
@@ -548,8 +548,8 @@ export declare const GetAddonQueryParams: zod.ZodObject<{
548
548
  }, zod.z.core.$strip>;
549
549
  /**
550
550
  * Soft delete add-on by id.
551
-
552
- Once a add-on is deleted it cannot be undeleted.
551
+ *
552
+ * Once a add-on is deleted it cannot be undeleted.
553
553
  * @summary Delete add-on
554
554
  */
555
555
  export declare const deleteAddonPathAddonIdRegExp: RegExp;
@@ -698,8 +698,8 @@ export declare const UninstallAppParams: zod.ZodObject<{
698
698
  }, zod.z.core.$strip>;
699
699
  /**
700
700
  * Update the Stripe API key.
701
-
702
- ⚠️ __Deprecated__: Use [`PUT /api/v1/apps/{id}`](#tag/apps/put/api/v1/apps/{id}) instead.
701
+ *
702
+ * ⚠️ __Deprecated__: Use [`PUT /api/v1/apps/{id}`](#tag/apps/put/api/v1/apps/{id}) instead.
703
703
  * @deprecated
704
704
  * @summary Update Stripe API key
705
705
  */
@@ -729,12 +729,12 @@ export declare const AppStripeWebhookBody: zod.ZodObject<{
729
729
  }, zod.z.core.$strip>;
730
730
  /**
731
731
  * List customer overrides using the specified filters.
732
-
733
- The response will include the customer override values and the merged billing profile values.
734
-
735
- If the includeAllCustomers is set to true, the list contains all customers. This mode is
736
- useful for getting the current effective billing workflow settings for all users regardless
737
- if they have customer orverrides or not.
732
+ *
733
+ * The response will include the customer override values and the merged billing profile values.
734
+ *
735
+ * If the includeAllCustomers is set to true, the list contains all customers. This mode is
736
+ * useful for getting the current effective billing workflow settings for all users regardless
737
+ * if they have customer orverrides or not.
738
738
  * @summary List customer overrides
739
739
  */
740
740
  export declare const listBillingProfileCustomerOverridesQueryBillingProfileItemRegExp: RegExp;
@@ -772,10 +772,10 @@ export declare const ListBillingProfileCustomerOverridesQueryParams: zod.ZodObje
772
772
  }, zod.z.core.$strip>;
773
773
  /**
774
774
  * The customer override can be used to pin a given customer to a billing profile
775
- different from the default one.
776
-
777
- This can be used to test the effect of different billing profiles before making them
778
- the default ones or have different workflow settings for example for enterprise customers.
775
+ * different from the default one.
776
+ *
777
+ * This can be used to test the effect of different billing profiles before making them
778
+ * the default ones or have different workflow settings for example for enterprise customers.
779
779
  * @summary Create a new or update a customer override
780
780
  */
781
781
  export declare const upsertBillingProfileCustomerOverridePathCustomerIdRegExp: RegExp;
@@ -788,11 +788,11 @@ export declare const UpsertBillingProfileCustomerOverrideBody: zod.ZodObject<{
788
788
  }, zod.z.core.$strip>;
789
789
  /**
790
790
  * Get a customer override by customer id.
791
-
792
- The response will include the customer override values and the merged billing profile values.
793
-
794
- If the customer override is not found, the default billing profile's values are returned. This behavior
795
- allows for getting a merged profile regardless of the customer override existence.
791
+ *
792
+ * The response will include the customer override values and the merged billing profile values.
793
+ *
794
+ * If the customer override is not found, the default billing profile's values are returned. This behavior
795
+ * allows for getting a merged profile regardless of the customer override existence.
796
796
  * @summary Get a customer override
797
797
  */
798
798
  export declare const getBillingProfileCustomerOverridePathCustomerIdRegExp: RegExp;
@@ -807,9 +807,9 @@ export declare const GetBillingProfileCustomerOverrideQueryParams: zod.ZodObject
807
807
  }, zod.z.core.$strip>;
808
808
  /**
809
809
  * Delete a customer override by customer id.
810
-
811
- This will remove the customer override and the customer will be subject to the default
812
- billing profile's settings again.
810
+ *
811
+ * This will remove the customer override and the customer will be subject to the default
812
+ * billing profile's settings again.
813
813
  * @summary Delete a customer override
814
814
  */
815
815
  export declare const deleteBillingProfileCustomerOverridePathCustomerIdRegExp: RegExp;
@@ -818,13 +818,13 @@ export declare const DeleteBillingProfileCustomerOverrideParams: zod.ZodObject<{
818
818
  }, zod.z.core.$strip>;
819
819
  /**
820
820
  * Create a new pending line item (charge).
821
-
822
- This call is used to create a new pending line item for the customer if required a new
823
- gathering invoice will be created.
824
-
825
- A new invoice will be created if:
826
- - there is no invoice in gathering state
827
- - the currency of the line item doesn't match the currency of any invoices in gathering state
821
+ *
822
+ * This call is used to create a new pending line item for the customer if required a new
823
+ * gathering invoice will be created.
824
+ *
825
+ * A new invoice will be created if:
826
+ * - there is no invoice in gathering state
827
+ * - the currency of the line item doesn't match the currency of any invoices in gathering state
828
828
  * @summary Create pending line items
829
829
  */
830
830
  export declare const createPendingInvoiceLinePathCustomerIdRegExp: RegExp;
@@ -1052,10 +1052,10 @@ export declare const CreatePendingInvoiceLineBody: zod.ZodObject<{
1052
1052
  }, zod.z.core.$strip>;
1053
1053
  /**
1054
1054
  * Simulate an invoice for a customer.
1055
-
1056
- This call will simulate an invoice for a customer based on the pending line items.
1057
-
1058
- The call will return the total amount of the invoice and the line items that will be included in the invoice.
1055
+ *
1056
+ * This call will simulate an invoice for a customer based on the pending line items.
1057
+ *
1058
+ * The call will return the total amount of the invoice and the line items that will be included in the invoice.
1059
1059
  * @summary Simulate an invoice for a customer
1060
1060
  */
1061
1061
  export declare const simulateInvoicePathCustomerIdRegExp: RegExp;
@@ -1291,11 +1291,11 @@ export declare const SimulateInvoiceBody: zod.ZodObject<{
1291
1291
  }, zod.z.core.$strip>;
1292
1292
  /**
1293
1293
  * List invoices based on the specified filters.
1294
-
1295
- The expand option can be used to include additional information (besides the invoice header and totals)
1296
- in the response. For example by adding the expand=lines option the invoice lines will be included in the response.
1297
-
1298
- Gathering invoices will always show the current usage calculated on the fly.
1294
+ *
1295
+ * The expand option can be used to include additional information (besides the invoice header and totals)
1296
+ * in the response. For example by adding the expand=lines option the invoice lines will be included in the response.
1297
+ *
1298
+ * Gathering invoices will always show the current usage calculated on the fly.
1299
1299
  * @summary List invoices
1300
1300
  */
1301
1301
  export declare const listInvoicesQueryCustomersItemRegExp: RegExp;
@@ -1346,14 +1346,14 @@ export declare const ListInvoicesQueryParams: zod.ZodObject<{
1346
1346
  }, zod.z.core.$strip>;
1347
1347
  /**
1348
1348
  * Create a new invoice from the pending line items.
1349
-
1350
- This should be only called if for some reason we need to invoice a customer outside of the normal billing cycle.
1351
-
1352
- When creating an invoice, the pending line items will be marked as invoiced and the invoice will be created with the total amount of the pending items.
1353
-
1354
- New pending line items will be created for the period between now() and the next billing cycle's begining date for any metered item.
1355
-
1356
- The call can return multiple invoices if the pending line items are in different currencies.
1349
+ *
1350
+ * This should be only called if for some reason we need to invoice a customer outside of the normal billing cycle.
1351
+ *
1352
+ * When creating an invoice, the pending line items will be marked as invoiced and the invoice will be created with the total amount of the pending items.
1353
+ *
1354
+ * New pending line items will be created for the period between now() and the next billing cycle's begining date for any metered item.
1355
+ *
1356
+ * The call can return multiple invoices if the pending line items are in different currencies.
1357
1357
  * @summary Invoice a customer based on the pending line items
1358
1358
  */
1359
1359
  export declare const invoicePendingLinesActionBodyFiltersOneLineIdsItemRegExp: RegExp;
@@ -1368,8 +1368,8 @@ export declare const InvoicePendingLinesActionBody: zod.ZodObject<{
1368
1368
  }, zod.z.core.$strip>;
1369
1369
  /**
1370
1370
  * Get an invoice by ID.
1371
-
1372
- Gathering invoices will always show the current usage calculated on the fly.
1371
+ *
1372
+ * Gathering invoices will always show the current usage calculated on the fly.
1373
1373
  * @summary Get an invoice
1374
1374
  */
1375
1375
  export declare const getInvoicePathInvoiceIdRegExp: RegExp;
@@ -1387,10 +1387,10 @@ export declare const GetInvoiceQueryParams: zod.ZodObject<{
1387
1387
  }, zod.z.core.$strip>;
1388
1388
  /**
1389
1389
  * Delete an invoice
1390
-
1391
- Only invoices that are in the draft (or earlier) status can be deleted.
1392
-
1393
- Invoices that are post finalization can only be voided.
1390
+ *
1391
+ * Only invoices that are in the draft (or earlier) status can be deleted.
1392
+ *
1393
+ * Invoices that are post finalization can only be voided.
1394
1394
  * @summary Delete an invoice
1395
1395
  */
1396
1396
  export declare const deleteInvoicePathInvoiceIdRegExp: RegExp;
@@ -1399,8 +1399,8 @@ export declare const DeleteInvoiceParams: zod.ZodObject<{
1399
1399
  }, zod.z.core.$strip>;
1400
1400
  /**
1401
1401
  * Update an invoice
1402
-
1403
- Only invoices in draft or earlier status can be updated.
1402
+ *
1403
+ * Only invoices in draft or earlier status can be updated.
1404
1404
  * @summary Update an invoice
1405
1405
  */
1406
1406
  export declare const updateInvoicePathInvoiceIdRegExp: RegExp;
@@ -1707,10 +1707,10 @@ export declare const UpdateInvoiceBody: zod.ZodObject<{
1707
1707
  }, zod.z.core.$strip>;
1708
1708
  /**
1709
1709
  * Advance the invoice's state to the next status.
1710
-
1711
- The call doesn't "approve the invoice", it only advances the invoice to the next status if the transition would be automatic.
1712
-
1713
- The action can be called when the invoice's statusDetails' actions field contain the "advance" action.
1710
+ *
1711
+ * The call doesn't "approve the invoice", it only advances the invoice to the next status if the transition would be automatic.
1712
+ *
1713
+ * The action can be called when the invoice's statusDetails' actions field contain the "advance" action.
1714
1714
  * @summary Advance the invoice's state to the next status
1715
1715
  */
1716
1716
  export declare const advanceInvoiceActionPathInvoiceIdRegExp: RegExp;
@@ -1719,12 +1719,12 @@ export declare const AdvanceInvoiceActionParams: zod.ZodObject<{
1719
1719
  }, zod.z.core.$strip>;
1720
1720
  /**
1721
1721
  * Approve an invoice and start executing the payment workflow.
1722
-
1723
- This call instantly sends the invoice to the customer using the configured billing profile app.
1724
-
1725
- This call is valid in two invoice statuses:
1726
- - `draft`: the invoice will be sent to the customer, the invluce state becomes issued
1727
- - `manual_approval_needed`: the invoice will be sent to the customer, the invoice state becomes issued
1722
+ *
1723
+ * This call instantly sends the invoice to the customer using the configured billing profile app.
1724
+ *
1725
+ * This call is valid in two invoice statuses:
1726
+ * - `draft`: the invoice will be sent to the customer, the invluce state becomes issued
1727
+ * - `manual_approval_needed`: the invoice will be sent to the customer, the invoice state becomes issued
1728
1728
  * @summary Send the invoice to the customer
1729
1729
  */
1730
1730
  export declare const approveInvoiceActionPathInvoiceIdRegExp: RegExp;
@@ -1733,8 +1733,8 @@ export declare const ApproveInvoiceActionParams: zod.ZodObject<{
1733
1733
  }, zod.z.core.$strip>;
1734
1734
  /**
1735
1735
  * Retry advancing the invoice after a failed attempt.
1736
-
1737
- The action can be called when the invoice's statusDetails' actions field contain the "retry" action.
1736
+ *
1737
+ * The action can be called when the invoice's statusDetails' actions field contain the "retry" action.
1738
1738
  * @summary Retry advancing the invoice after a failed attempt.
1739
1739
  */
1740
1740
  export declare const retryInvoiceActionPathInvoiceIdRegExp: RegExp;
@@ -1743,11 +1743,11 @@ export declare const RetryInvoiceActionParams: zod.ZodObject<{
1743
1743
  }, zod.z.core.$strip>;
1744
1744
  /**
1745
1745
  * Snapshot quantities for usage based line items.
1746
-
1747
- This call will snapshot the quantities for all usage based line items in the invoice.
1748
-
1749
- This call is only valid in `draft.waiting_for_collection` status, where the collection period
1750
- can be skipped using this action.
1746
+ *
1747
+ * This call will snapshot the quantities for all usage based line items in the invoice.
1748
+ *
1749
+ * This call is only valid in `draft.waiting_for_collection` status, where the collection period
1750
+ * can be skipped using this action.
1751
1751
  * @summary Snapshot quantities for usage based line items
1752
1752
  */
1753
1753
  export declare const snapshotQuantitiesInvoiceActionPathInvoiceIdRegExp: RegExp;
@@ -1756,8 +1756,8 @@ export declare const SnapshotQuantitiesInvoiceActionParams: zod.ZodObject<{
1756
1756
  }, zod.z.core.$strip>;
1757
1757
  /**
1758
1758
  * Recalculate an invoice's tax amounts (using the app set in the customer's billing profile)
1759
-
1760
- Note: charges might apply, depending on the tax provider.
1759
+ *
1760
+ * Note: charges might apply, depending on the tax provider.
1761
1761
  * @summary Recalculate an invoice's tax amounts
1762
1762
  */
1763
1763
  export declare const recalculateInvoiceTaxActionPathInvoiceIdRegExp: RegExp;
@@ -1766,10 +1766,10 @@ export declare const RecalculateInvoiceTaxActionParams: zod.ZodObject<{
1766
1766
  }, zod.z.core.$strip>;
1767
1767
  /**
1768
1768
  * Void an invoice
1769
-
1770
- Only invoices that have been alread issued can be voided.
1771
-
1772
- Voiding an invoice will mark it as voided, the user can specify how to handle the voided line items.
1769
+ *
1770
+ * Only invoices that have been alread issued can be voided.
1771
+ *
1772
+ * Voiding an invoice will mark it as voided, the user can specify how to handle the voided line items.
1773
1773
  * @summary Void an invoice
1774
1774
  */
1775
1775
  export declare const voidInvoiceActionPathInvoiceIdRegExp: RegExp;
@@ -1811,10 +1811,10 @@ export declare const VoidInvoiceActionBody: zod.ZodObject<{
1811
1811
  }, zod.z.core.$strip>;
1812
1812
  /**
1813
1813
  * List all billing profiles matching the specified filters.
1814
-
1815
- The expand option can be used to include additional information (besides the billing profile)
1816
- in the response. For example by adding the expand=apps option the apps used by the billing profile
1817
- will be included in the response.
1814
+ *
1815
+ * The expand option can be used to include additional information (besides the billing profile)
1816
+ * in the response. For example by adding the expand=apps option the apps used by the billing profile
1817
+ * will be included in the response.
1818
1818
  * @summary List billing profiles
1819
1819
  */
1820
1820
  export declare const listBillingProfilesQueryIncludeArchivedDefault = false;
@@ -1842,9 +1842,9 @@ export declare const ListBillingProfilesQueryParams: zod.ZodObject<{
1842
1842
  }, zod.z.core.$strip>;
1843
1843
  /**
1844
1844
  * Create a new billing profile
1845
-
1846
- Billing profiles are representations of a customer's billing information. Customer overrides
1847
- can be applied to a billing profile to customize the billing behavior for a specific customer.
1845
+ *
1846
+ * Billing profiles are representations of a customer's billing information. Customer overrides
1847
+ * can be applied to a billing profile to customize the billing behavior for a specific customer.
1848
1848
  * @summary Create a new billing profile
1849
1849
  */
1850
1850
  export declare const createBillingProfileBodyNameMax = 256;
@@ -1954,11 +1954,11 @@ export declare const CreateBillingProfileBody: zod.ZodObject<{
1954
1954
  }, zod.z.core.$strip>;
1955
1955
  /**
1956
1956
  * Delete a billing profile by id.
1957
-
1958
- Only such billing profiles can be deleted that are:
1959
- - not the default one
1960
- - not pinned to any customer using customer overrides
1961
- - only have finalized invoices
1957
+ *
1958
+ * Only such billing profiles can be deleted that are:
1959
+ * - not the default one
1960
+ * - not pinned to any customer using customer overrides
1961
+ * - only have finalized invoices
1962
1962
  * @summary Delete a billing profile
1963
1963
  */
1964
1964
  export declare const deleteBillingProfilePathIdRegExp: RegExp;
@@ -1967,10 +1967,10 @@ export declare const DeleteBillingProfileParams: zod.ZodObject<{
1967
1967
  }, zod.z.core.$strip>;
1968
1968
  /**
1969
1969
  * Get a billing profile by id.
1970
-
1971
- The expand option can be used to include additional information (besides the billing profile)
1972
- in the response. For example by adding the expand=apps option the apps used by the billing profile
1973
- will be included in the response.
1970
+ *
1971
+ * The expand option can be used to include additional information (besides the billing profile)
1972
+ * in the response. For example by adding the expand=apps option the apps used by the billing profile
1973
+ * will be included in the response.
1974
1974
  * @summary Get a billing profile
1975
1975
  */
1976
1976
  export declare const getBillingProfilePathIdRegExp: RegExp;
@@ -1984,9 +1984,9 @@ export declare const GetBillingProfileQueryParams: zod.ZodObject<{
1984
1984
  }, zod.z.core.$strip>;
1985
1985
  /**
1986
1986
  * Update a billing profile by id.
1987
-
1988
- The apps field cannot be updated directly, if an app change is desired a new
1989
- profile should be created.
1987
+ *
1988
+ * The apps field cannot be updated directly, if an app change is desired a new
1989
+ * profile should be created.
1990
1990
  * @summary Update a billing profile
1991
1991
  */
1992
1992
  export declare const updateBillingProfilePathIdRegExp: RegExp;
@@ -2507,7 +2507,7 @@ export declare const GetCustomerEntitlementValueQueryParams: zod.ZodObject<{
2507
2507
  }, zod.z.core.$strip>;
2508
2508
  /**
2509
2509
  * Get stripe app data for a customer.
2510
- Only returns data if the customer billing profile is linked to a stripe app.
2510
+ * Only returns data if the customer billing profile is linked to a stripe app.
2511
2511
  * @summary Get customer stripe app data
2512
2512
  */
2513
2513
  export declare const getCustomerStripeAppDataPathCustomerIdOrKeyOneRegExp: RegExp;
@@ -2517,7 +2517,7 @@ export declare const GetCustomerStripeAppDataParams: zod.ZodObject<{
2517
2517
  }, zod.z.core.$strip>;
2518
2518
  /**
2519
2519
  * Upsert stripe app data for a customer.
2520
- Only updates data if the customer billing profile is linked to a stripe app.
2520
+ * Only updates data if the customer billing profile is linked to a stripe app.
2521
2521
  * @summary Upsert customer stripe app data
2522
2522
  */
2523
2523
  export declare const upsertCustomerStripeAppDataPathCustomerIdOrKeyOneRegExp: RegExp;
@@ -2531,10 +2531,10 @@ export declare const UpsertCustomerStripeAppDataBody: zod.ZodObject<{
2531
2531
  }, zod.z.core.$strip>;
2532
2532
  /**
2533
2533
  * Create Stripe customer portal session.
2534
- Only returns URL if the customer billing profile is linked to a stripe app and customer.
2535
-
2536
- Useful to redirect the customer to the Stripe customer portal to manage their payment methods,
2537
- change their billing address and access their invoice history.
2534
+ * Only returns URL if the customer billing profile is linked to a stripe app and customer.
2535
+ *
2536
+ * Useful to redirect the customer to the Stripe customer portal to manage their payment methods,
2537
+ * change their billing address and access their invoice history.
2538
2538
  * @summary Create Stripe customer portal session
2539
2539
  */
2540
2540
  export declare const createCustomerStripePortalSessionPathCustomerIdOrKeyOneRegExp: RegExp;
@@ -2580,10 +2580,10 @@ export declare const ListCustomerSubscriptionsQueryParams: zod.ZodObject<{
2580
2580
  }, zod.z.core.$strip>;
2581
2581
  /**
2582
2582
  * List all entitlements for all the subjects and features. This endpoint is intended for administrative purposes only.
2583
- To fetch the entitlements of a specific subject please use the /api/v1/subjects/{subjectKeyOrID}/entitlements endpoint.
2584
- If page is provided that takes precedence and the paginated response is returned.
2585
-
2586
- ⚠️ __Deprecated__: Use [`GET /api/v2/entitlements`](#tag/entitlements/get/api/v2/entitlements) instead.
2583
+ * To fetch the entitlements of a specific subject please use the /api/v1/subjects/{subjectKeyOrID}/entitlements endpoint.
2584
+ * If page is provided that takes precedence and the paginated response is returned.
2585
+ *
2586
+ * ⚠️ __Deprecated__: Use [`GET /api/v2/entitlements`](#tag/entitlements/get/api/v2/entitlements) instead.
2587
2587
  * @deprecated
2588
2588
  * @summary List all entitlements
2589
2589
  */
@@ -2620,8 +2620,8 @@ export declare const ListEntitlementsQueryParams: zod.ZodObject<{
2620
2620
  }, zod.z.core.$strip>;
2621
2621
  /**
2622
2622
  * Get entitlement by ID.
2623
-
2624
- ⚠️ __Deprecated__: Use [`GET /api/v2/entitlements/{entitlementId}`](#tag/entitlements/get/api/v2/entitlements/{entitlementId}) instead.
2623
+ *
2624
+ * ⚠️ __Deprecated__: Use [`GET /api/v2/entitlements/{entitlementId}`](#tag/entitlements/get/api/v2/entitlements/{entitlementId}) instead.
2625
2625
  * @deprecated
2626
2626
  * @summary Get entitlement by ID
2627
2627
  */
@@ -2631,8 +2631,8 @@ export declare const GetEntitlementByIdParams: zod.ZodObject<{
2631
2631
  }, zod.z.core.$strip>;
2632
2632
  /**
2633
2633
  * List ingested events within a time range.
2634
-
2635
- If the from query param is not provided it defaults to last 72 hours.
2634
+ *
2635
+ * If the from query param is not provided it defaults to last 72 hours.
2636
2636
  * @summary List ingested events
2637
2637
  */
2638
2638
  export declare const listEventsQueryClientIdMax = 36;
@@ -2654,9 +2654,8 @@ export declare const ListEventsQueryParams: zod.ZodObject<{
2654
2654
  * Ingests an event or batch of events following the CloudEvents specification.
2655
2655
  * @summary Ingest events
2656
2656
  */
2657
- export declare const ingestEventsBodyOneSpecversionDefault = "1.0";
2658
- export declare const ingestEventsBodyTwoItemSpecversionDefault = "1.0";
2659
- export declare const IngestEventsBody: zod.ZodUnion<readonly [zod.ZodObject<{
2657
+ export declare const ingestEventsBodySpecversionDefault = "1.0";
2658
+ export declare const IngestEventsBody: zod.ZodObject<{
2660
2659
  data: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>>;
2661
2660
  datacontenttype: zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
2662
2661
  "application/json": "application/json";
@@ -2668,19 +2667,7 @@ export declare const IngestEventsBody: zod.ZodUnion<readonly [zod.ZodObject<{
2668
2667
  subject: zod.z.ZodCoercedString<unknown>;
2669
2668
  time: zod.ZodOptional<zod.ZodNullable<zod.z.ZodCoercedDate<unknown>>>;
2670
2669
  type: zod.z.ZodCoercedString<unknown>;
2671
- }, zod.z.core.$strip>, zod.ZodArray<zod.ZodObject<{
2672
- data: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>>;
2673
- datacontenttype: zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<{
2674
- "application/json": "application/json";
2675
- }>>>;
2676
- dataschema: zod.ZodOptional<zod.ZodNullable<zod.ZodURL>>;
2677
- id: zod.z.ZodCoercedString<unknown>;
2678
- source: zod.z.ZodCoercedString<unknown>;
2679
- specversion: zod.ZodDefault<zod.z.ZodCoercedString<unknown>>;
2680
- subject: zod.z.ZodCoercedString<unknown>;
2681
- time: zod.ZodOptional<zod.ZodNullable<zod.z.ZodCoercedDate<unknown>>>;
2682
- type: zod.z.ZodCoercedString<unknown>;
2683
- }, zod.z.core.$strip>>]>;
2670
+ }, zod.z.core.$strip>;
2684
2671
  /**
2685
2672
  * List features.
2686
2673
  * @summary List features
@@ -2715,8 +2702,8 @@ export declare const ListFeaturesQueryParams: zod.ZodObject<{
2715
2702
  }, zod.z.core.$strip>;
2716
2703
  /**
2717
2704
  * Features are either metered or static. A feature is metered if meterSlug is provided at creation.
2718
- For metered features you can pass additional filters that will be applied when calculating feature usage, based on the meter's groupBy fields.
2719
- Meters with SUM, COUNT, UNIQUE_COUNT and LATEST aggregations are supported for features.
2705
+ * For metered features you can pass additional filters that will be applied when calculating feature usage, based on the meter's groupBy fields.
2706
+ * Meters with SUM, COUNT, UNIQUE_COUNT and LATEST aggregations are supported for features.
2720
2707
  * @summary Create feature
2721
2708
  */
2722
2709
  export declare const createFeatureBodyKeyMax = 64;
@@ -2784,9 +2771,9 @@ export declare const GetFeatureParams: zod.ZodObject<{
2784
2771
  }, zod.z.core.$strip>;
2785
2772
  /**
2786
2773
  * Archive a feature by ID.
2787
-
2788
- Once a feature is archived it cannot be unarchived. If a feature is archived, new entitlements cannot be created for it, but archiving the feature does not affect existing entitlements.
2789
- This means, if you want to create a new feature with the same key, and then create entitlements for it, the previous entitlements have to be deleted first on a per subject basis.
2774
+ *
2775
+ * Once a feature is archived it cannot be unarchived. If a feature is archived, new entitlements cannot be created for it, but archiving the feature does not affect existing entitlements.
2776
+ * This means, if you want to create a new feature with the same key, and then create entitlements for it, the previous entitlements have to be deleted first on a per subject basis.
2790
2777
  * @summary Delete feature
2791
2778
  */
2792
2779
  export declare const DeleteFeatureParams: zod.ZodObject<{
@@ -2794,10 +2781,10 @@ export declare const DeleteFeatureParams: zod.ZodObject<{
2794
2781
  }, zod.z.core.$strip>;
2795
2782
  /**
2796
2783
  * List all grants for all the subjects and entitlements. This endpoint is intended for administrative purposes only.
2797
- To fetch the grants of a specific entitlement please use the /api/v1/subjects/{subjectKeyOrID}/entitlements/{entitlementOrFeatureID}/grants endpoint.
2798
- If page is provided that takes precedence and the paginated response is returned.
2799
-
2800
- ⚠️ __Deprecated__: Use [`GET /api/v2/grants`](#tag/entitlements/get/api/v2/grants) instead.
2784
+ * To fetch the grants of a specific entitlement please use the /api/v1/subjects/{subjectKeyOrID}/entitlements/{entitlementOrFeatureID}/grants endpoint.
2785
+ * If page is provided that takes precedence and the paginated response is returned.
2786
+ *
2787
+ * ⚠️ __Deprecated__: Use [`GET /api/v2/grants`](#tag/entitlements/get/api/v2/grants) instead.
2801
2788
  * @deprecated
2802
2789
  * @summary List grants
2803
2790
  */
@@ -2830,7 +2817,7 @@ export declare const ListGrantsQueryParams: zod.ZodObject<{
2830
2817
  }, zod.z.core.$strip>;
2831
2818
  /**
2832
2819
  * Voiding a grant means it is no longer valid, it doesn't take part in further balance calculations. Voiding a grant does not retroactively take effect, meaning any usage that has already been attributed to the grant will remain, but future usage cannot be burnt down from the grant.
2833
- For example, if you have a single grant for your metered entitlement with an initial amount of 100, and so far 60 usage has been metered, the grant (and the entitlement itself) would have a balance of 40. If you then void that grant, balance becomes 0, but the 60 previous usage will not be affected.
2820
+ * For example, if you have a single grant for your metered entitlement with an initial amount of 100, and so far 60 usage has been metered, the grant (and the entitlement itself) would have a balance of 40. If you then void that grant, balance becomes 0, but the 60 previous usage will not be affected.
2834
2821
  * @summary Void grant
2835
2822
  */
2836
2823
  export declare const VoidGrantParams: zod.ZodObject<{
@@ -2903,7 +2890,7 @@ export declare const MarketplaceAppAPIKeyInstallBody: zod.ZodObject<{
2903
2890
  }, zod.z.core.$strip>;
2904
2891
  /**
2905
2892
  * Install an app via OAuth.
2906
- Returns a URL to start the OAuth 2.0 flow.
2893
+ * Returns a URL to start the OAuth 2.0 flow.
2907
2894
  * @summary Get OAuth2 install URL
2908
2895
  */
2909
2896
  export declare const MarketplaceOAuth2InstallGetURLParams: zod.ZodObject<{
@@ -2915,7 +2902,7 @@ export declare const MarketplaceOAuth2InstallGetURLParams: zod.ZodObject<{
2915
2902
  }, zod.z.core.$strip>;
2916
2903
  /**
2917
2904
  * Authorize OAuth2 code.
2918
- Verifies the OAuth code and exchanges it for a token and refresh token
2905
+ * Verifies the OAuth code and exchanges it for a token and refresh token
2919
2906
  * @summary Install app via OAuth2
2920
2907
  */
2921
2908
  export declare const MarketplaceOAuth2InstallAuthorizeParams: zod.ZodObject<{
@@ -3203,8 +3190,8 @@ export declare const GetNotificationChannelParams: zod.ZodObject<{
3203
3190
  }, zod.z.core.$strip>;
3204
3191
  /**
3205
3192
  * Soft delete notification channel by id.
3206
-
3207
- Once a notification channel is deleted it cannot be undeleted.
3193
+ *
3194
+ * Once a notification channel is deleted it cannot be undeleted.
3208
3195
  * @summary Delete a notification channel
3209
3196
  */
3210
3197
  export declare const deleteNotificationChannelPathChannelIdRegExp: RegExp;
@@ -3433,8 +3420,8 @@ export declare const GetNotificationRuleParams: zod.ZodObject<{
3433
3420
  }, zod.z.core.$strip>;
3434
3421
  /**
3435
3422
  * Soft delete notification rule by id.
3436
-
3437
- Once a notification rule is deleted it cannot be undeleted.
3423
+ *
3424
+ * Once a notification rule is deleted it cannot be undeleted.
3438
3425
  * @summary Delete a notification rule
3439
3426
  */
3440
3427
  export declare const deleteNotificationRulePathRuleIdRegExp: RegExp;
@@ -3765,7 +3752,7 @@ export declare const CreatePlanBody: zod.ZodObject<{
3765
3752
  }, zod.z.core.$strip>;
3766
3753
  /**
3767
3754
  * Create a new draft version from plan.
3768
- It returns error if there is already a plan in draft or planId does not reference the latest published version.
3755
+ * It returns error if there is already a plan in draft or planId does not reference the latest published version.
3769
3756
  * @deprecated
3770
3757
  * @summary New draft plan
3771
3758
  */
@@ -4058,8 +4045,8 @@ export declare const GetPlanQueryParams: zod.ZodObject<{
4058
4045
  }, zod.z.core.$strip>;
4059
4046
  /**
4060
4047
  * Soft delete plan by plan.id.
4061
-
4062
- Once a plan is deleted it cannot be undeleted.
4048
+ *
4049
+ * Once a plan is deleted it cannot be undeleted.
4063
4050
  * @summary Delete plan
4064
4051
  */
4065
4052
  export declare const deletePlanPathPlanIdRegExp: RegExp;
@@ -4146,8 +4133,8 @@ export declare const GetPlanAddonParams: zod.ZodObject<{
4146
4133
  }, zod.z.core.$strip>;
4147
4134
  /**
4148
4135
  * Delete add-on assignment for plan.
4149
-
4150
- Once a plan is deleted it cannot be undeleted.
4136
+ *
4137
+ * Once a plan is deleted it cannot be undeleted.
4151
4138
  * @summary Delete add-on assignment for plan
4152
4139
  */
4153
4140
  export declare const deletePlanAddonPathPlanIdRegExp: RegExp;
@@ -4352,11 +4339,11 @@ export declare const CreateStripeCheckoutSessionBody: zod.ZodObject<{
4352
4339
  }, zod.z.core.$strip>;
4353
4340
  /**
4354
4341
  * Upserts a subject. Creates or updates subject.
4355
-
4356
- If the subject doesn't exist, it will be created.
4357
- If the subject exists, it will be partially updated with the provided fields.
4358
-
4359
- ⚠️ __Deprecated__: Subjects as managable entities are being depracated, use customers with subject key usage attribution instead.
4342
+ *
4343
+ * If the subject doesn't exist, it will be created.
4344
+ * If the subject exists, it will be partially updated with the provided fields.
4345
+ *
4346
+ * ⚠️ __Deprecated__: Subjects as managable entities are being depracated, use customers with subject key usage attribution instead.
4360
4347
  * @deprecated
4361
4348
  * @summary Upsert subject
4362
4349
  */
@@ -4378,8 +4365,8 @@ export declare const UpsertSubjectBody: zod.ZodArray<zod.ZodObject<{
4378
4365
  }, zod.z.core.$strip>>;
4379
4366
  /**
4380
4367
  * Get subject by ID or key.
4381
-
4382
- ⚠️ __Deprecated__: Subjects as managable entities are being depracated, use customers with subject key usage attribution instead.
4368
+ *
4369
+ * ⚠️ __Deprecated__: Subjects as managable entities are being depracated, use customers with subject key usage attribution instead.
4383
4370
  * @deprecated
4384
4371
  * @summary Get subject
4385
4372
  */
@@ -4388,8 +4375,8 @@ export declare const GetSubjectParams: zod.ZodObject<{
4388
4375
  }, zod.z.core.$strip>;
4389
4376
  /**
4390
4377
  * Delete subject by ID or key.
4391
-
4392
- ⚠️ __Deprecated__: Subjects as managable entities are being depracated, use customers with subject key usage attribution instead.
4378
+ *
4379
+ * ⚠️ __Deprecated__: Subjects as managable entities are being depracated, use customers with subject key usage attribution instead.
4393
4380
  * @deprecated
4394
4381
  * @summary Delete subject
4395
4382
  */
@@ -4398,16 +4385,16 @@ export declare const DeleteSubjectParams: zod.ZodObject<{
4398
4385
  }, zod.z.core.$strip>;
4399
4386
  /**
4400
4387
  * OpenMeter has three types of entitlements: metered, boolean, and static. The type property determines the type of entitlement. The underlying feature has to be compatible with the entitlement type specified in the request (e.g., a metered entitlement needs a feature associated with a meter).
4401
-
4402
- - Boolean entitlements define static feature access, e.g. "Can use SSO authentication".
4403
- - Static entitlements let you pass along a configuration while granting access, e.g. "Using this feature with X Y settings" (passed in the config).
4404
- - Metered entitlements have many use cases, from setting up usage-based access to implementing complex credit systems. Example: The customer can use 10000 AI tokens during the usage period of the entitlement.
4405
-
4406
- A given subject can only have one active (non-deleted) entitlement per featureKey. If you try to create a new entitlement for a featureKey that already has an active entitlement, the request will fail with a 409 error.
4407
-
4408
- Once an entitlement is created you cannot modify it, only delete it.
4409
-
4410
- ⚠️ __Deprecated__: Use [`POST /api/v2/customers/{customerIdOrKey}/entitlements`](#tag/entitlements/post/api/v2/customers/{customerIdOrKey}/entitlements) instead.
4388
+ *
4389
+ * - Boolean entitlements define static feature access, e.g. "Can use SSO authentication".
4390
+ * - Static entitlements let you pass along a configuration while granting access, e.g. "Using this feature with X Y settings" (passed in the config).
4391
+ * - Metered entitlements have many use cases, from setting up usage-based access to implementing complex credit systems. Example: The customer can use 10000 AI tokens during the usage period of the entitlement.
4392
+ *
4393
+ * A given subject can only have one active (non-deleted) entitlement per featureKey. If you try to create a new entitlement for a featureKey that already has an active entitlement, the request will fail with a 409 error.
4394
+ *
4395
+ * Once an entitlement is created you cannot modify it, only delete it.
4396
+ *
4397
+ * ⚠️ __Deprecated__: Use [`POST /api/v2/customers/{customerIdOrKey}/entitlements`](#tag/entitlements/post/api/v2/customers/{customerIdOrKey}/entitlements) instead.
4411
4398
  * @deprecated
4412
4399
  * @summary Create a subject entitlement
4413
4400
  */
@@ -4493,8 +4480,8 @@ export declare const CreateEntitlementBody: zod.ZodUnion<readonly [zod.ZodObject
4493
4480
  }, zod.z.core.$strip>]>;
4494
4481
  /**
4495
4482
  * List all entitlements for a subject. For checking entitlement access, use the /value endpoint instead.
4496
-
4497
- ⚠️ __Deprecated__: Use [`GET /api/v2/customers/{customerIdOrKey}/entitlements`](#tag/entitlements/get/api/v2/customers/{customerIdOrKey}/entitlements) instead.
4483
+ *
4484
+ * ⚠️ __Deprecated__: Use [`GET /api/v2/customers/{customerIdOrKey}/entitlements`](#tag/entitlements/get/api/v2/customers/{customerIdOrKey}/entitlements) instead.
4498
4485
  * @deprecated
4499
4486
  * @summary List subject entitlements
4500
4487
  */
@@ -4507,8 +4494,8 @@ export declare const ListSubjectEntitlementsQueryParams: zod.ZodObject<{
4507
4494
  }, zod.z.core.$strip>;
4508
4495
  /**
4509
4496
  * List all grants issued for an entitlement. The entitlement can be defined either by its id or featureKey.
4510
-
4511
- ⚠️ __Deprecated__: Use [`GET /api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}/grants`](#tag/entitlements/get/api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}/grants) instead.
4497
+ *
4498
+ * ⚠️ __Deprecated__: Use [`GET /api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}/grants`](#tag/entitlements/get/api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}/grants) instead.
4512
4499
  * @deprecated
4513
4500
  * @summary List subject entitlement grants
4514
4501
  */
@@ -4528,18 +4515,18 @@ export declare const ListEntitlementGrantsQueryParams: zod.ZodObject<{
4528
4515
  }, zod.z.core.$strip>;
4529
4516
  /**
4530
4517
  * Grants define a behavior of granting usage for a metered entitlement. They can have complicated recurrence and rollover rules, thanks to which you can define a wide range of access patterns with a single grant, in most cases you don't have to periodically create new grants. You can only issue grants for active metered entitlements.
4531
-
4532
- A grant defines a given amount of usage that can be consumed for the entitlement. The grant is in effect between its effective date and its expiration date. Specifying both is mandatory for new grants.
4533
-
4534
- Grants have a priority setting that determines their order of use. Lower numbers have higher priority, with 0 being the highest priority.
4535
-
4536
- Grants can have a recurrence setting intended to automate the manual reissuing of grants. For example, a daily recurrence is equal to reissuing that same grant every day (ignoring rollover settings).
4537
-
4538
- Rollover settings define what happens to the remaining balance of a grant at a reset. Balance_After_Reset = MIN(MaxRolloverAmount, MAX(Balance_Before_Reset, MinRolloverAmount))
4539
-
4540
- Grants cannot be changed once created, only deleted. This is to ensure that balance is deterministic regardless of when it is queried.
4541
-
4542
- ⚠️ __Deprecated__: Use [`POST /api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}/grants`](#tag/entitlements/post/api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}/grants) instead.
4518
+ *
4519
+ * A grant defines a given amount of usage that can be consumed for the entitlement. The grant is in effect between its effective date and its expiration date. Specifying both is mandatory for new grants.
4520
+ *
4521
+ * Grants have a priority setting that determines their order of use. Lower numbers have higher priority, with 0 being the highest priority.
4522
+ *
4523
+ * Grants can have a recurrence setting intended to automate the manual reissuing of grants. For example, a daily recurrence is equal to reissuing that same grant every day (ignoring rollover settings).
4524
+ *
4525
+ * Rollover settings define what happens to the remaining balance of a grant at a reset. Balance_After_Reset = MIN(MaxRolloverAmount, MAX(Balance_Before_Reset, MinRolloverAmount))
4526
+ *
4527
+ * Grants cannot be changed once created, only deleted. This is to ensure that balance is deterministic regardless of when it is queried.
4528
+ *
4529
+ * ⚠️ __Deprecated__: Use [`POST /api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}/grants`](#tag/entitlements/post/api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}/grants) instead.
4543
4530
  * @deprecated
4544
4531
  * @summary Create subject entitlement grant
4545
4532
  */
@@ -4582,10 +4569,10 @@ export declare const CreateGrantBody: zod.ZodObject<{
4582
4569
  }, zod.z.core.$strip>;
4583
4570
  /**
4584
4571
  * Overriding an entitlement creates a new entitlement from the provided inputs and soft deletes the previous entitlement for the provided subject-feature pair. If the previous entitlement is already deleted or otherwise doesnt exist, the override will fail.
4585
-
4586
- This endpoint is useful for upgrades, downgrades, or other changes to entitlements that require a new entitlement to be created with zero downtime.
4587
-
4588
- ⚠️ __Deprecated__: Use [`PUT /api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}/override`](#tag/entitlements/put/api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}/override) instead.
4572
+ *
4573
+ * This endpoint is useful for upgrades, downgrades, or other changes to entitlements that require a new entitlement to be created with zero downtime.
4574
+ *
4575
+ * ⚠️ __Deprecated__: Use [`PUT /api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}/override`](#tag/entitlements/put/api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}/override) instead.
4589
4576
  * @deprecated
4590
4577
  * @summary Override subject entitlement
4591
4578
  */
@@ -4672,10 +4659,10 @@ export declare const OverrideEntitlementBody: zod.ZodUnion<readonly [zod.ZodObje
4672
4659
  }, zod.z.core.$strip>]>;
4673
4660
  /**
4674
4661
  * This endpoint should be used for access checks and enforcement. All entitlement types share the hasAccess property in their value response, but multiple other properties are returned based on the entitlement type.
4675
-
4676
- For convenience reasons, /value works with both entitlementId and featureKey.
4677
-
4678
- ⚠️ __Deprecated__: Use [`GET /api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}/value`](#tag/entitlements/get/api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}/value) instead.
4662
+ *
4663
+ * For convenience reasons, /value works with both entitlementId and featureKey.
4664
+ *
4665
+ * ⚠️ __Deprecated__: Use [`GET /api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}/value`](#tag/entitlements/get/api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}/value) instead.
4679
4666
  * @deprecated
4680
4667
  * @summary Get subject entitlement value
4681
4668
  */
@@ -4688,8 +4675,8 @@ export declare const GetEntitlementValueQueryParams: zod.ZodObject<{
4688
4675
  }, zod.z.core.$strip>;
4689
4676
  /**
4690
4677
  * Get entitlement by id. For checking entitlement access, use the /value endpoint instead.
4691
-
4692
- ⚠️ __Deprecated__: Use [`GET /api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}`](#tag/entitlements/get/api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}) instead.
4678
+ *
4679
+ * ⚠️ __Deprecated__: Use [`GET /api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}`](#tag/entitlements/get/api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}) instead.
4693
4680
  * @deprecated
4694
4681
  * @summary Get subject entitlement
4695
4682
  */
@@ -4699,9 +4686,9 @@ export declare const GetEntitlementParams: zod.ZodObject<{
4699
4686
  }, zod.z.core.$strip>;
4700
4687
  /**
4701
4688
  * Deleting an entitlement revokes access to the associated feature. As a single subject can only have one entitlement per featureKey, when "migrating" features you have to delete the old entitlements as well.
4702
- As access and status checks can be historical queries, deleting an entitlement populates the deletedAt timestamp. When queried for a time before that, the entitlement is still considered active, you cannot have retroactive changes to access, which is important for, among other things, auditing.
4703
-
4704
- ⚠️ __Deprecated__: Use [`DELETE /api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}`](#tag/entitlements/delete/api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}) instead.
4689
+ * As access and status checks can be historical queries, deleting an entitlement populates the deletedAt timestamp. When queried for a time before that, the entitlement is still considered active, you cannot have retroactive changes to access, which is important for, among other things, auditing.
4690
+ *
4691
+ * ⚠️ __Deprecated__: Use [`DELETE /api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}`](#tag/entitlements/delete/api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}) instead.
4705
4692
  * @deprecated
4706
4693
  * @summary Delete subject entitlement
4707
4694
  */
@@ -4711,12 +4698,12 @@ export declare const DeleteEntitlementParams: zod.ZodObject<{
4711
4698
  }, zod.z.core.$strip>;
4712
4699
  /**
4713
4700
  * Returns historical balance and usage data for the entitlement. The queried history can span accross multiple reset events.
4714
-
4715
- BurndownHistory returns a continous history of segments, where the segments are seperated by events that changed either the grant burndown priority or the usage period.
4716
-
4717
- WindowedHistory returns windowed usage data for the period enriched with balance information and the list of grants that were being burnt down in that window.
4718
-
4719
- ⚠️ __Deprecated__: Use [`GET /api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}/history`](#tag/entitlements/get/api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}/history) instead.
4701
+ *
4702
+ * BurndownHistory returns a continous history of segments, where the segments are seperated by events that changed either the grant burndown priority or the usage period.
4703
+ *
4704
+ * WindowedHistory returns windowed usage data for the period enriched with balance information and the list of grants that were being burnt down in that window.
4705
+ *
4706
+ * ⚠️ __Deprecated__: Use [`GET /api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}/history`](#tag/entitlements/get/api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}/history) instead.
4720
4707
  * @deprecated
4721
4708
  * @summary Get subject entitlement history
4722
4709
  */
@@ -4738,10 +4725,10 @@ export declare const GetEntitlementHistoryQueryParams: zod.ZodObject<{
4738
4725
  }, zod.z.core.$strip>;
4739
4726
  /**
4740
4727
  * Reset marks the start of a new usage period for the entitlement and initiates grant rollover. At the start of a period usage is zerod out and grants are rolled over based on their rollover settings. It would typically be synced with the subjects billing period to enforce usage based on their subscription.
4741
-
4742
- Usage is automatically reset for metered entitlements based on their usage period, but this endpoint allows to manually reset it at any time. When doing so the period anchor of the entitlement can be changed if needed.
4743
-
4744
- ⚠️ __Deprecated__: Use [`POST /api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}/reset`](#tag/entitlements/post/api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}/reset) instead.
4728
+ *
4729
+ * Usage is automatically reset for metered entitlements based on their usage period, but this endpoint allows to manually reset it at any time. When doing so the period anchor of the entitlement can be changed if needed.
4730
+ *
4731
+ * ⚠️ __Deprecated__: Use [`POST /api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}/reset`](#tag/entitlements/post/api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}/reset) instead.
4745
4732
  * @deprecated
4746
4733
  * @summary Reset subject entitlement
4747
4734
  */
@@ -5075,7 +5062,7 @@ export declare const GetSubscriptionQueryParams: zod.ZodObject<{
5075
5062
  }, zod.z.core.$strip>;
5076
5063
  /**
5077
5064
  * Batch processing commands for manipulating running subscriptions.
5078
- The key format is `/phases/{phaseKey}` or `/phases/{phaseKey}/items/{itemKey}`.
5065
+ * The key format is `/phases/{phaseKey}` or `/phases/{phaseKey}/items/{itemKey}`.
5079
5066
  * @summary Edit subscription
5080
5067
  */
5081
5068
  export declare const editSubscriptionPathSubscriptionIdRegExp: RegExp;
@@ -5440,7 +5427,7 @@ export declare const UpdateSubscriptionAddonBody: zod.ZodObject<{
5440
5427
  }, zod.z.core.$strip>;
5441
5428
  /**
5442
5429
  * Cancels the subscription.
5443
- Will result in a scheduling conflict if there are other subscriptions scheduled to start after the cancellation time.
5430
+ * Will result in a scheduling conflict if there are other subscriptions scheduled to start after the cancellation time.
5444
5431
  * @summary Cancel subscription
5445
5432
  */
5446
5433
  export declare const cancelSubscriptionPathSubscriptionIdRegExp: RegExp;
@@ -5455,7 +5442,7 @@ export declare const CancelSubscriptionBody: zod.ZodObject<{
5455
5442
  }, zod.z.core.$strip>;
5456
5443
  /**
5457
5444
  * Closes a running subscription and starts a new one according to the specification.
5458
- Can be used for upgrades, downgrades, and plan changes.
5445
+ * Can be used for upgrades, downgrades, and plan changes.
5459
5446
  * @summary Change subscription
5460
5447
  */
5461
5448
  export declare const changeSubscriptionPathSubscriptionIdRegExp: RegExp;
@@ -5760,8 +5747,8 @@ export declare const ChangeSubscriptionBody: zod.ZodUnion<readonly [zod.ZodObjec
5760
5747
  }, zod.z.core.$strip>]>;
5761
5748
  /**
5762
5749
  * Migrates the subscripiton to the provided version of the current plan.
5763
- If possible, the migration will be done immediately.
5764
- If not, the migration will be scheduled to the end of the current billing period.
5750
+ * If possible, the migration will be done immediately.
5751
+ * If not, the migration will be scheduled to the end of the current billing period.
5765
5752
  * @summary Migrate subscription
5766
5753
  */
5767
5754
  export declare const migrateSubscriptionPathSubscriptionIdRegExp: RegExp;
@@ -5780,7 +5767,7 @@ export declare const MigrateSubscriptionBody: zod.ZodObject<{
5780
5767
  }, zod.z.core.$strip>;
5781
5768
  /**
5782
5769
  * Restores a canceled subscription.
5783
- Any subscription scheduled to start later will be deleted and this subscription will be continued indefinitely.
5770
+ * Any subscription scheduled to start later will be deleted and this subscription will be continued indefinitely.
5784
5771
  * @deprecated
5785
5772
  * @summary Restore subscription
5786
5773
  */
@@ -5798,14 +5785,14 @@ export declare const UnscheduleCancelationParams: zod.ZodObject<{
5798
5785
  }, zod.z.core.$strip>;
5799
5786
  /**
5800
5787
  * OpenMeter has three types of entitlements: metered, boolean, and static. The type property determines the type of entitlement. The underlying feature has to be compatible with the entitlement type specified in the request (e.g., a metered entitlement needs a feature associated with a meter).
5801
-
5802
- - Boolean entitlements define static feature access, e.g. "Can use SSO authentication".
5803
- - Static entitlements let you pass along a configuration while granting access, e.g. "Using this feature with X Y settings" (passed in the config).
5804
- - Metered entitlements have many use cases, from setting up usage-based access to implementing complex credit systems. Example: The customer can use 10000 AI tokens during the usage period of the entitlement.
5805
-
5806
- A given customer can only have one active (non-deleted) entitlement per featureKey. If you try to create a new entitlement for a featureKey that already has an active entitlement, the request will fail with a 409 error.
5807
-
5808
- Once an entitlement is created you cannot modify it, only delete it.
5788
+ *
5789
+ * - Boolean entitlements define static feature access, e.g. "Can use SSO authentication".
5790
+ * - Static entitlements let you pass along a configuration while granting access, e.g. "Using this feature with X Y settings" (passed in the config).
5791
+ * - Metered entitlements have many use cases, from setting up usage-based access to implementing complex credit systems. Example: The customer can use 10000 AI tokens during the usage period of the entitlement.
5792
+ *
5793
+ * A given customer can only have one active (non-deleted) entitlement per featureKey. If you try to create a new entitlement for a featureKey that already has an active entitlement, the request will fail with a 409 error.
5794
+ *
5795
+ * Once an entitlement is created you cannot modify it, only delete it.
5809
5796
  * @summary Create a customer entitlement
5810
5797
  */
5811
5798
  export declare const createCustomerEntitlementV2PathCustomerIdOrKeyOneRegExp: RegExp;
@@ -5957,7 +5944,7 @@ export declare const ListCustomerEntitlementsV2QueryParams: zod.ZodObject<{
5957
5944
  }, zod.z.core.$strip>;
5958
5945
  /**
5959
5946
  * Get entitlement by feature key. For checking entitlement access, use the /value endpoint instead.
5960
- If featureKey is used, the entitlement is resolved for the current timestamp.
5947
+ * If featureKey is used, the entitlement is resolved for the current timestamp.
5961
5948
  * @summary Get customer entitlement
5962
5949
  */
5963
5950
  export declare const getCustomerEntitlementV2PathCustomerIdOrKeyOneRegExp: RegExp;
@@ -5970,7 +5957,7 @@ export declare const GetCustomerEntitlementV2Params: zod.ZodObject<{
5970
5957
  }, zod.z.core.$strip>;
5971
5958
  /**
5972
5959
  * Deleting an entitlement revokes access to the associated feature. As a single customer can only have one entitlement per featureKey, when "migrating" features you have to delete the old entitlements as well.
5973
- As access and status checks can be historical queries, deleting an entitlement populates the deletedAt timestamp. When queried for a time before that, the entitlement is still considered active, you cannot have retroactive changes to access, which is important for, among other things, auditing.
5960
+ * As access and status checks can be historical queries, deleting an entitlement populates the deletedAt timestamp. When queried for a time before that, the entitlement is still considered active, you cannot have retroactive changes to access, which is important for, among other things, auditing.
5974
5961
  * @summary Delete customer entitlement
5975
5962
  */
5976
5963
  export declare const deleteCustomerEntitlementV2PathCustomerIdOrKeyOneRegExp: RegExp;
@@ -6020,16 +6007,16 @@ export declare const ListCustomerEntitlementGrantsV2QueryParams: zod.ZodObject<{
6020
6007
  }, zod.z.core.$strip>;
6021
6008
  /**
6022
6009
  * Grants define a behavior of granting usage for a metered entitlement. They can have complicated recurrence and rollover rules, thanks to which you can define a wide range of access patterns with a single grant, in most cases you don't have to periodically create new grants. You can only issue grants for active metered entitlements.
6023
-
6024
- A grant defines a given amount of usage that can be consumed for the entitlement. The grant is in effect between its effective date and its expiration date. Specifying both is mandatory for new grants.
6025
-
6026
- Grants have a priority setting that determines their order of use. Lower numbers have higher priority, with 0 being the highest priority.
6027
-
6028
- Grants can have a recurrence setting intended to automate the manual reissuing of grants. For example, a daily recurrence is equal to reissuing that same grant every day (ignoring rollover settings).
6029
-
6030
- Rollover settings define what happens to the remaining balance of a grant at a reset. Balance_After_Reset = MIN(MaxRolloverAmount, MAX(Balance_Before_Reset, MinRolloverAmount))
6031
-
6032
- Grants cannot be changed once created, only deleted. This is to ensure that balance is deterministic regardless of when it is queried.
6010
+ *
6011
+ * A grant defines a given amount of usage that can be consumed for the entitlement. The grant is in effect between its effective date and its expiration date. Specifying both is mandatory for new grants.
6012
+ *
6013
+ * Grants have a priority setting that determines their order of use. Lower numbers have higher priority, with 0 being the highest priority.
6014
+ *
6015
+ * Grants can have a recurrence setting intended to automate the manual reissuing of grants. For example, a daily recurrence is equal to reissuing that same grant every day (ignoring rollover settings).
6016
+ *
6017
+ * Rollover settings define what happens to the remaining balance of a grant at a reset. Balance_After_Reset = MIN(MaxRolloverAmount, MAX(Balance_Before_Reset, MinRolloverAmount))
6018
+ *
6019
+ * Grants cannot be changed once created, only deleted. This is to ensure that balance is deterministic regardless of when it is queried.
6033
6020
  * @summary Create customer entitlement grant
6034
6021
  */
6035
6022
  export declare const createCustomerEntitlementGrantV2PathCustomerIdOrKeyOneRegExp: RegExp;
@@ -6075,10 +6062,10 @@ export declare const CreateCustomerEntitlementGrantV2Body: zod.ZodObject<{
6075
6062
  }, zod.z.core.$strip>;
6076
6063
  /**
6077
6064
  * Returns historical balance and usage data for the entitlement. The queried history can span accross multiple reset events.
6078
-
6079
- BurndownHistory returns a continous history of segments, where the segments are seperated by events that changed either the grant burndown priority or the usage period.
6080
-
6081
- WindowedHistory returns windowed usage data for the period enriched with balance information and the list of grants that were being burnt down in that window.
6065
+ *
6066
+ * BurndownHistory returns a continous history of segments, where the segments are seperated by events that changed either the grant burndown priority or the usage period.
6067
+ *
6068
+ * WindowedHistory returns windowed usage data for the period enriched with balance information and the list of grants that were being burnt down in that window.
6082
6069
  * @summary Get customer entitlement history
6083
6070
  */
6084
6071
  export declare const getCustomerEntitlementHistoryV2PathCustomerIdOrKeyOneRegExp: RegExp;
@@ -6103,8 +6090,8 @@ export declare const GetCustomerEntitlementHistoryV2QueryParams: zod.ZodObject<{
6103
6090
  }, zod.z.core.$strip>;
6104
6091
  /**
6105
6092
  * Overriding an entitlement creates a new entitlement from the provided inputs and soft deletes the previous entitlement for the provided customer-feature pair. If the previous entitlement is already deleted or otherwise doesnt exist, the override will fail.
6106
-
6107
- This endpoint is useful for upgrades, downgrades, or other changes to entitlements that require a new entitlement to be created with zero downtime.
6093
+ *
6094
+ * This endpoint is useful for upgrades, downgrades, or other changes to entitlements that require a new entitlement to be created with zero downtime.
6108
6095
  * @summary Override customer entitlement
6109
6096
  */
6110
6097
  export declare const overrideCustomerEntitlementV2PathCustomerIdOrKeyOneRegExp: RegExp;
@@ -6232,8 +6219,8 @@ export declare const OverrideCustomerEntitlementV2Body: zod.ZodUnion<readonly [z
6232
6219
  }, zod.z.core.$strip>]>;
6233
6220
  /**
6234
6221
  * Reset marks the start of a new usage period for the entitlement and initiates grant rollover. At the start of a period usage is zerod out and grants are rolled over based on their rollover settings. It would typically be synced with the customers billing period to enforce usage based on their subscription.
6235
-
6236
- Usage is automatically reset for metered entitlements based on their usage period, but this endpoint allows to manually reset it at any time. When doing so the period anchor of the entitlement can be changed if needed.
6222
+ *
6223
+ * Usage is automatically reset for metered entitlements based on their usage period, but this endpoint allows to manually reset it at any time. When doing so the period anchor of the entitlement can be changed if needed.
6237
6224
  * @summary Reset customer entitlement
6238
6225
  */
6239
6226
  export declare const resetCustomerEntitlementUsageV2PathCustomerIdOrKeyOneRegExp: RegExp;
@@ -6266,7 +6253,7 @@ export declare const GetCustomerEntitlementValueV2QueryParams: zod.ZodObject<{
6266
6253
  }, zod.z.core.$strip>;
6267
6254
  /**
6268
6255
  * List all entitlements for all the customers and features. This endpoint is intended for administrative purposes only.
6269
- To fetch the entitlements of a specific subject please use the /api/v2/customers/{customerIdOrKey}/entitlements endpoint.
6256
+ * To fetch the entitlements of a specific subject please use the /api/v2/customers/{customerIdOrKey}/entitlements endpoint.
6270
6257
  * @summary List all entitlements
6271
6258
  */
6272
6259
  export declare const listEntitlementsV2QueryExcludeInactiveDefault = false;
@@ -6323,8 +6310,8 @@ export declare const ListEventsV2QueryParams: zod.ZodObject<{
6323
6310
  }, zod.z.core.$strip>;
6324
6311
  /**
6325
6312
  * List all grants for all the customers and entitlements. This endpoint is intended for administrative purposes only.
6326
- To fetch the grants of a specific entitlement please use the /api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}/grants endpoint.
6327
- If page is provided that takes precedence and the paginated response is returned.
6313
+ * To fetch the grants of a specific entitlement please use the /api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}/grants endpoint.
6314
+ * If page is provided that takes precedence and the paginated response is returned.
6328
6315
  * @summary List grants
6329
6316
  */
6330
6317
  export declare const listGrantsV2QueryCustomerItemOneRegExp: RegExp;