@openmeter/sdk 1.0.0-beta-b65470a49644 → 1.0.0-beta-0a63ff29f2e1

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.
@@ -257,9 +257,9 @@ export declare class Entitlements {
257
257
  usagePeriod?: import("./schemas.cjs").components["schemas"]["RecurringPeriod"];
258
258
  } & {
259
259
  readonly id: string;
260
- type: import("./schemas.cjs").components["schemas"]["EntitlementType"];
261
260
  readonly createdAt: Date;
262
261
  readonly updatedAt: Date;
262
+ type: import("./schemas.cjs").components["schemas"]["EntitlementType"];
263
263
  activeFrom: Date;
264
264
  subjectKey: string;
265
265
  featureKey: string;
@@ -377,9 +377,9 @@ export declare class NotificationEvents {
377
377
  readonly id: string;
378
378
  readonly type: import("./schemas.cjs").components["schemas"]["NotificationEventType"];
379
379
  readonly createdAt: Date;
380
- readonly rule: Omit<import("./schemas.cjs").components["schemas"]["NotificationRule"], "type">;
380
+ readonly rule: import("./schemas.cjs").components["schemas"]["NotificationRule"];
381
381
  readonly deliveryStatus: import("./schemas.cjs").components["schemas"]["NotificationEventDeliveryStatus"][];
382
- readonly payload: Omit<import("./schemas.cjs").components["schemas"]["NotificationEventPayload"], "type">;
382
+ readonly payload: import("./schemas.cjs").components["schemas"]["NotificationEventPayload"];
383
383
  readonly annotations?: import("./schemas.cjs").components["schemas"]["Annotations"];
384
384
  }>;
385
385
  /**
@@ -2539,11 +2539,11 @@ export interface components {
2539
2539
  /** @description BillingProfileApps represents the applications used by a billing profile */
2540
2540
  BillingProfileApps: {
2541
2541
  /** @description The tax app used for this workflow */
2542
- readonly tax: Omit<components['schemas']['App'], 'type'>;
2542
+ readonly tax: components['schemas']['App'];
2543
2543
  /** @description The invoicing app used for this workflow */
2544
- readonly invoicing: Omit<components['schemas']['App'], 'type'>;
2544
+ readonly invoicing: components['schemas']['App'];
2545
2545
  /** @description The payment app used for this workflow */
2546
- readonly payment: Omit<components['schemas']['App'], 'type'>;
2546
+ readonly payment: components['schemas']['App'];
2547
2547
  };
2548
2548
  /** @description BillingProfileAppsCreate represents the input for creating a billing profile's apps */
2549
2549
  BillingProfileAppsCreate: {
@@ -5539,7 +5539,7 @@ export interface components {
5539
5539
  */
5540
5540
  readonly id: string;
5541
5541
  /** @description Reason code. */
5542
- readonly reason: Omit<components['schemas']['BillingDiscountReason'], 'type'>;
5542
+ readonly reason: components['schemas']['BillingDiscountReason'];
5543
5543
  /** @description Text description as to why the discount was applied. */
5544
5544
  readonly description?: string;
5545
5545
  /** @description External IDs of the invoice in other apps such as Stripe. */
@@ -5641,7 +5641,7 @@ export interface components {
5641
5641
  */
5642
5642
  readonly id: string;
5643
5643
  /** @description Reason code. */
5644
- readonly reason: Omit<components['schemas']['BillingDiscountReason'], 'type'>;
5644
+ readonly reason: components['schemas']['BillingDiscountReason'];
5645
5645
  /** @description Text description as to why the discount was applied. */
5646
5646
  readonly description?: string;
5647
5647
  /** @description External IDs of the invoice in other apps such as Stripe. */
@@ -5673,7 +5673,7 @@ export interface components {
5673
5673
  * @description InvoiceOrderBy specifies the ordering options for invoice listing.
5674
5674
  * @enum {string}
5675
5675
  */
5676
- InvoiceOrderBy: 'customer.name' | 'issuedAt' | 'status' | 'createdAt' | 'updatedAt';
5676
+ InvoiceOrderBy: 'customer.name' | 'issuedAt' | 'status' | 'createdAt' | 'updatedAt' | 'periodStart';
5677
5677
  /** @description Paginated response */
5678
5678
  InvoicePaginatedResponse: {
5679
5679
  /**
@@ -5906,7 +5906,7 @@ export interface components {
5906
5906
  * @deprecated
5907
5907
  * @description Price of the usage-based item being sold.
5908
5908
  */
5909
- price?: Omit<components['schemas']['RateCardUsageBasedPrice'], 'type'>;
5909
+ price?: components['schemas']['RateCardUsageBasedPrice'];
5910
5910
  /**
5911
5911
  * @deprecated
5912
5912
  * @description The feature that the usage is based on.
@@ -6064,7 +6064,7 @@ export interface components {
6064
6064
  * @deprecated
6065
6065
  * @description Price of the usage-based item being sold.
6066
6066
  */
6067
- price?: Omit<components['schemas']['RateCardUsageBasedPrice'], 'type'>;
6067
+ price?: components['schemas']['RateCardUsageBasedPrice'];
6068
6068
  /**
6069
6069
  * @deprecated
6070
6070
  * @description The feature that the usage is based on.
@@ -6134,7 +6134,7 @@ export interface components {
6134
6134
  * @deprecated
6135
6135
  * @description Price of the usage-based item being sold.
6136
6136
  */
6137
- price?: Omit<components['schemas']['RateCardUsageBasedPrice'], 'type'>;
6137
+ price?: components['schemas']['RateCardUsageBasedPrice'];
6138
6138
  /**
6139
6139
  * @deprecated
6140
6140
  * @description The feature that the usage is based on.
@@ -6191,7 +6191,7 @@ export interface components {
6191
6191
  * @deprecated
6192
6192
  * @description Price of the usage-based item being sold.
6193
6193
  */
6194
- price?: Omit<components['schemas']['RateCardUsageBasedPrice'], 'type'>;
6194
+ price?: components['schemas']['RateCardUsageBasedPrice'];
6195
6195
  /**
6196
6196
  * @deprecated
6197
6197
  * @description The feature that the usage is based on.
@@ -6217,7 +6217,7 @@ export interface components {
6217
6217
  taxConfig?: components['schemas']['TaxConfig'];
6218
6218
  /** @description The price of the rate card.
6219
6219
  * When null, the feature or service is free. */
6220
- price: Omit<components['schemas']['RateCardUsageBasedPrice'], 'type'> | null;
6220
+ price: components['schemas']['RateCardUsageBasedPrice'] | null;
6221
6221
  /** @description The discounts that are applied to the line. */
6222
6222
  discounts?: components['schemas']['BillingDiscounts'];
6223
6223
  };
@@ -6956,14 +6956,14 @@ export interface components {
6956
6956
  */
6957
6957
  readonly createdAt: Date;
6958
6958
  /** @description The nnotification rule which generated this event. */
6959
- readonly rule: Omit<components['schemas']['NotificationRule'], 'type'>;
6959
+ readonly rule: components['schemas']['NotificationRule'];
6960
6960
  /**
6961
6961
  * Delivery Status
6962
6962
  * @description The delivery status of the notification event.
6963
6963
  */
6964
6964
  readonly deliveryStatus: components['schemas']['NotificationEventDeliveryStatus'][];
6965
6965
  /** @description Timestamp when the notification event was created in RFC 3339 format. */
6966
- readonly payload: Omit<components['schemas']['NotificationEventPayload'], 'type'>;
6966
+ readonly payload: components['schemas']['NotificationEventPayload'];
6967
6967
  /**
6968
6968
  * Annotations
6969
6969
  * @description Set of key-value pairs managed by the system. Cannot be modified by user.
@@ -8213,7 +8213,7 @@ export interface components {
8213
8213
  featureKey?: string;
8214
8214
  /** @description The entitlement of the rate card.
8215
8215
  * Only available when featureKey is set. */
8216
- entitlementTemplate?: Omit<components['schemas']['RateCardEntitlement'], 'type'>;
8216
+ entitlementTemplate?: components['schemas']['RateCardEntitlement'];
8217
8217
  /**
8218
8218
  * Tax config
8219
8219
  * @description The tax config of the rate card.
@@ -8340,7 +8340,7 @@ export interface components {
8340
8340
  featureKey?: string;
8341
8341
  /** @description The entitlement of the rate card.
8342
8342
  * Only available when featureKey is set. */
8343
- entitlementTemplate?: Omit<components['schemas']['RateCardEntitlement'], 'type'>;
8343
+ entitlementTemplate?: components['schemas']['RateCardEntitlement'];
8344
8344
  /**
8345
8345
  * Tax config
8346
8346
  * @description The tax config of the rate card.
@@ -8355,7 +8355,7 @@ export interface components {
8355
8355
  billingCadence: string;
8356
8356
  /** @description The price of the rate card.
8357
8357
  * When null, the feature or service is free. */
8358
- price: Omit<components['schemas']['RateCardUsageBasedPrice'], 'type'> | null;
8358
+ price: components['schemas']['RateCardUsageBasedPrice'] | null;
8359
8359
  /**
8360
8360
  * Discounts
8361
8361
  * @description The discounts of the rate card.
@@ -9149,7 +9149,7 @@ export interface components {
9149
9149
  * Rate card
9150
9150
  * @description The rate card.
9151
9151
  */
9152
- rateCard: Omit<components['schemas']['RateCard'], 'type'>;
9152
+ rateCard: components['schemas']['RateCard'];
9153
9153
  /**
9154
9154
  * Affected subscription item IDs
9155
9155
  * @description The IDs of the subscription items that this rate card belongs to.
@@ -9400,7 +9400,7 @@ export interface components {
9400
9400
  * When null, the feature or service is free.
9401
9401
  * @example {}
9402
9402
  */
9403
- price: Omit<components['schemas']['RateCardUsageBasedPrice'], 'type'> | null;
9403
+ price: components['schemas']['RateCardUsageBasedPrice'] | null;
9404
9404
  /**
9405
9405
  * Discounts
9406
9406
  * @description The discounts applied to the rate card.
@@ -9420,7 +9420,7 @@ export interface components {
9420
9420
  /** @description The feature the customer is entitled to use. */
9421
9421
  feature: components['schemas']['Feature'];
9422
9422
  /** @description The entitlement of the Subscription Item. */
9423
- entitlement?: Omit<components['schemas']['Entitlement'], 'type'>;
9423
+ entitlement?: components['schemas']['Entitlement'];
9424
9424
  };
9425
9425
  /** @description Paginated response */
9426
9426
  SubscriptionPaginatedResponse: {
@@ -9769,14 +9769,14 @@ export interface components {
9769
9769
  /** @description How much of the total line items to be voided? (e.g. 100% means all charges are voided) */
9770
9770
  percentage: components['schemas']['Percentage'];
9771
9771
  /** @description The action to take on the line items. */
9772
- action: Omit<components['schemas']['VoidInvoiceLineActionCreate'], 'type'>;
9772
+ action: components['schemas']['VoidInvoiceLineActionCreate'];
9773
9773
  };
9774
9774
  /** @description InvoiceVoidAction describes how to handle the voided line items. */
9775
9775
  VoidInvoiceActionCreateItem: {
9776
9776
  /** @description How much of the total line items to be voided? (e.g. 100% means all charges are voided) */
9777
9777
  percentage: components['schemas']['Percentage'];
9778
9778
  /** @description The action to take on the line items. */
9779
- action: Omit<components['schemas']['VoidInvoiceLineActionCreateItem'], 'type'>;
9779
+ action: components['schemas']['VoidInvoiceLineActionCreateItem'];
9780
9780
  };
9781
9781
  /** @description Request to void an invoice */
9782
9782
  VoidInvoiceActionInput: {
@@ -9931,6 +9931,12 @@ export interface components {
9931
9931
  /** @description Filter by invoice issued time.
9932
9932
  * Inclusive. */
9933
9933
  'InvoiceListParams.issuedBefore': Date | string;
9934
+ /** @description Filter by period start time.
9935
+ * Inclusive. */
9936
+ 'InvoiceListParams.periodStartAfter': Date | string;
9937
+ /** @description Filter by period start time.
9938
+ * Inclusive. */
9939
+ 'InvoiceListParams.periodStartBefore': Date | string;
9934
9940
  /** @description Filter by the invoice status. */
9935
9941
  'InvoiceListParams.statuses': components['schemas']['InvoiceStatus'][];
9936
9942
  /** @description The order direction. */
@@ -10467,6 +10473,8 @@ export type ParameterInvoiceListParamsExtendedStatuses = components['parameters'
10467
10473
  export type ParameterInvoiceListParamsIncludeDeleted = components['parameters']['InvoiceListParams.includeDeleted'];
10468
10474
  export type ParameterInvoiceListParamsIssuedAfter = components['parameters']['InvoiceListParams.issuedAfter'];
10469
10475
  export type ParameterInvoiceListParamsIssuedBefore = components['parameters']['InvoiceListParams.issuedBefore'];
10476
+ export type ParameterInvoiceListParamsPeriodStartAfter = components['parameters']['InvoiceListParams.periodStartAfter'];
10477
+ export type ParameterInvoiceListParamsPeriodStartBefore = components['parameters']['InvoiceListParams.periodStartBefore'];
10470
10478
  export type ParameterInvoiceListParamsStatuses = components['parameters']['InvoiceListParams.statuses'];
10471
10479
  export type ParameterInvoiceOrderByOrderingOrder = components['parameters']['InvoiceOrderByOrdering.order'];
10472
10480
  export type ParameterInvoiceOrderByOrderingOrderBy = components['parameters']['InvoiceOrderByOrdering.orderBy'];
@@ -12608,6 +12616,12 @@ export interface operations {
12608
12616
  /** @description Filter by invoice issued time.
12609
12617
  * Inclusive. */
12610
12618
  issuedBefore?: components['parameters']['InvoiceListParams.issuedBefore'];
12619
+ /** @description Filter by period start time.
12620
+ * Inclusive. */
12621
+ periodStartAfter?: components['parameters']['InvoiceListParams.periodStartAfter'];
12622
+ /** @description Filter by period start time.
12623
+ * Inclusive. */
12624
+ periodStartBefore?: components['parameters']['InvoiceListParams.periodStartBefore'];
12611
12625
  /** @description Filter by invoice created time.
12612
12626
  * Inclusive. */
12613
12627
  createdAfter?: components['parameters']['InvoiceListParams.createdAfter'];
@@ -3236,7 +3236,14 @@ exports.listInvoicesQueryParams = zod_1.z.object({
3236
3236
  .describe('Filter by invoice issued time.\nInclusive.'),
3237
3237
  order: zod_1.z.enum(['ASC', 'DESC']).optional().describe('The order direction.'),
3238
3238
  orderBy: zod_1.z
3239
- .enum(['customer.name', 'issuedAt', 'status', 'createdAt', 'updatedAt'])
3239
+ .enum([
3240
+ 'customer.name',
3241
+ 'issuedAt',
3242
+ 'status',
3243
+ 'createdAt',
3244
+ 'updatedAt',
3245
+ 'periodStart',
3246
+ ])
3240
3247
  .optional()
3241
3248
  .describe('The order by field.'),
3242
3249
  page: zod_1.z
@@ -3250,6 +3257,14 @@ exports.listInvoicesQueryParams = zod_1.z.object({
3250
3257
  .max(exports.listInvoicesQueryPageSizeMax)
3251
3258
  .default(exports.listInvoicesQueryPageSizeDefault)
3252
3259
  .describe('The maximum number of items per page.\n\nDefault is 100.'),
3260
+ periodStartAfter: zod_1.z
3261
+ .date()
3262
+ .optional()
3263
+ .describe('Filter by period start time.\nInclusive.'),
3264
+ periodStartBefore: zod_1.z
3265
+ .date()
3266
+ .optional()
3267
+ .describe('Filter by period start time.\nInclusive.'),
3253
3268
  statuses: zod_1.z
3254
3269
  .array(zod_1.z
3255
3270
  .enum([