@openmeter/client 1.0.0-beta-e148f75da27a → 1.0.0-beta-b51eb34318c8

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 +1 @@
1
- export declare const SDK_VERSION = "1.0.0-beta-e148f75da27a";
1
+ export declare const SDK_VERSION = "1.0.0-beta-b51eb34318c8";
@@ -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 = '1.0.0-beta-e148f75da27a';
5
+ export const SDK_VERSION = '1.0.0-beta-b51eb34318c8';
@@ -229,6 +229,7 @@ export declare const creditGrantVoidPaymentAdjustment: z.ZodEnum<{
229
229
  }>;
230
230
  export declare const creditTransactionType: z.ZodEnum<{
231
231
  consumed: "consumed";
232
+ correction: "correction";
232
233
  expired: "expired";
233
234
  funded: "funded";
234
235
  voided: "voided";
@@ -1951,6 +1952,7 @@ export declare const createCreditAdjustmentRequest: z.ZodObject<{
1951
1952
  export declare const listCreditTransactionsParamsFilter: z.ZodObject<{
1952
1953
  type: z.ZodOptional<z.ZodEnum<{
1953
1954
  consumed: "consumed";
1955
+ correction: "correction";
1954
1956
  expired: "expired";
1955
1957
  funded: "funded";
1956
1958
  voided: "voided";
@@ -2496,6 +2498,7 @@ export declare const creditTransaction: z.ZodObject<{
2496
2498
  bookedAt: z.ZodDate;
2497
2499
  type: z.ZodEnum<{
2498
2500
  consumed: "consumed";
2501
+ correction: "correction";
2499
2502
  expired: "expired";
2500
2503
  funded: "funded";
2501
2504
  voided: "voided";
@@ -4479,6 +4482,7 @@ export declare const creditTransactionPaginatedResponse: z.ZodObject<{
4479
4482
  bookedAt: z.ZodDate;
4480
4483
  type: z.ZodEnum<{
4481
4484
  consumed: "consumed";
4485
+ correction: "correction";
4482
4486
  expired: "expired";
4483
4487
  funded: "funded";
4484
4488
  voided: "voided";
@@ -21875,6 +21879,7 @@ export declare const listCreditTransactionsQueryParams: z.ZodObject<{
21875
21879
  filter: z.ZodOptional<z.ZodObject<{
21876
21880
  type: z.ZodOptional<z.ZodEnum<{
21877
21881
  consumed: "consumed";
21882
+ correction: "correction";
21878
21883
  expired: "expired";
21879
21884
  funded: "funded";
21880
21885
  voided: "voided";
@@ -21904,6 +21909,7 @@ export declare const listCreditTransactionsResponse: z.ZodObject<{
21904
21909
  bookedAt: z.ZodDate;
21905
21910
  type: z.ZodEnum<{
21906
21911
  consumed: "consumed";
21912
+ correction: "correction";
21907
21913
  expired: "expired";
21908
21914
  funded: "funded";
21909
21915
  voided: "voided";
@@ -38083,6 +38089,7 @@ export declare const creditGrantVoidPaymentAdjustmentWire: z.ZodEnum<{
38083
38089
  }>;
38084
38090
  export declare const creditTransactionTypeWire: z.ZodEnum<{
38085
38091
  consumed: "consumed";
38092
+ correction: "correction";
38086
38093
  expired: "expired";
38087
38094
  funded: "funded";
38088
38095
  voided: "voided";
@@ -39805,6 +39812,7 @@ export declare const createCreditAdjustmentRequestWire: z.ZodObject<{
39805
39812
  export declare const listCreditTransactionsParamsFilterWire: z.ZodObject<{
39806
39813
  type: z.ZodOptional<z.ZodEnum<{
39807
39814
  consumed: "consumed";
39815
+ correction: "correction";
39808
39816
  expired: "expired";
39809
39817
  funded: "funded";
39810
39818
  voided: "voided";
@@ -40350,6 +40358,7 @@ export declare const creditTransactionWire: z.ZodObject<{
40350
40358
  booked_at: z.ZodString;
40351
40359
  type: z.ZodEnum<{
40352
40360
  consumed: "consumed";
40361
+ correction: "correction";
40353
40362
  expired: "expired";
40354
40363
  funded: "funded";
40355
40364
  voided: "voided";
@@ -42333,6 +42342,7 @@ export declare const creditTransactionPaginatedResponseWire: z.ZodObject<{
42333
42342
  booked_at: z.ZodString;
42334
42343
  type: z.ZodEnum<{
42335
42344
  consumed: "consumed";
42345
+ correction: "correction";
42336
42346
  expired: "expired";
42337
42347
  funded: "funded";
42338
42348
  voided: "voided";
@@ -59705,6 +59715,7 @@ export declare const listCreditTransactionsQueryParamsWire: z.ZodObject<{
59705
59715
  filter: z.ZodOptional<z.ZodObject<{
59706
59716
  type: z.ZodOptional<z.ZodEnum<{
59707
59717
  consumed: "consumed";
59718
+ correction: "correction";
59708
59719
  expired: "expired";
59709
59720
  funded: "funded";
59710
59721
  voided: "voided";
@@ -59734,6 +59745,7 @@ export declare const listCreditTransactionsResponseWire: z.ZodObject<{
59734
59745
  booked_at: z.ZodString;
59735
59746
  type: z.ZodEnum<{
59736
59747
  consumed: "consumed";
59748
+ correction: "correction";
59737
59749
  expired: "expired";
59738
59750
  funded: "funded";
59739
59751
  voided: "voided";
@@ -494,8 +494,8 @@ export const creditGrantVoidPaymentAdjustment = z
494
494
  .enum(['none'])
495
495
  .describe('Describes how voiding a credit grant adjusts related payment state. - `none`: Voiding does not adjust invoices, payment authorization, settlement, payment intents, or external collection state.');
496
496
  export const creditTransactionType = z
497
- .enum(['funded', 'consumed', 'expired', 'voided'])
498
- .describe('The type of the credit transaction. - `funded`: Credit granted and available for consumption. - `consumed`: Credit consumed by usage or fees. - `expired`: Credit removed because it expired before being used. - `voided`: Credit removed because the grant was voided before being used.');
497
+ .enum(['funded', 'consumed', 'correction', 'expired', 'voided'])
498
+ .describe('The type of the credit transaction. - `funded`: Credit granted and available for consumption. - `consumed`: Credit consumed by usage or fees. - `correction`: A balance adjustment reversing previously recorded usage. - `expired`: Credit removed because it expired before being used. - `voided`: Credit removed because the grant was voided before being used.');
499
499
  export const chargesExpand = z
500
500
  .enum([
501
501
  'real_time_usage',
@@ -7790,8 +7790,8 @@ export const creditGrantVoidPaymentAdjustmentWire = z
7790
7790
  .enum(['none'])
7791
7791
  .describe('Describes how voiding a credit grant adjusts related payment state. - `none`: Voiding does not adjust invoices, payment authorization, settlement, payment intents, or external collection state.');
7792
7792
  export const creditTransactionTypeWire = z
7793
- .enum(['funded', 'consumed', 'expired', 'voided'])
7794
- .describe('The type of the credit transaction. - `funded`: Credit granted and available for consumption. - `consumed`: Credit consumed by usage or fees. - `expired`: Credit removed because it expired before being used. - `voided`: Credit removed because the grant was voided before being used.');
7793
+ .enum(['funded', 'consumed', 'correction', 'expired', 'voided'])
7794
+ .describe('The type of the credit transaction. - `funded`: Credit granted and available for consumption. - `consumed`: Credit consumed by usage or fees. - `correction`: A balance adjustment reversing previously recorded usage. - `expired`: Credit removed because it expired before being used. - `voided`: Credit removed because the grant was voided before being used.');
7795
7795
  export const chargesExpandWire = z
7796
7796
  .enum([
7797
7797
  'real_time_usage',
@@ -2604,7 +2604,7 @@ export interface CreateCreditAdjustmentRequest {
2604
2604
  /** Filter options for listing credit transactions. */
2605
2605
  export interface ListCreditTransactionsParamsFilter {
2606
2606
  /** Filter credit transactions by type. */
2607
- type?: 'funded' | 'consumed' | 'expired' | 'voided';
2607
+ type?: 'funded' | 'consumed' | 'correction' | 'expired' | 'voided';
2608
2608
  /**
2609
2609
  * Filter credit transactions by currency code. Custom-currency rows retain their
2610
2610
  * managed currency identifier.
@@ -3006,7 +3006,7 @@ export interface CreditTransaction {
3006
3006
  /** The date and time the transaction was booked. */
3007
3007
  bookedAt: Date;
3008
3008
  /** The type of credit transaction. */
3009
- type: 'funded' | 'consumed' | 'expired' | 'voided';
3009
+ type: 'funded' | 'consumed' | 'correction' | 'expired' | 'voided';
3010
3010
  /** Currency of the balance affected by the transaction. */
3011
3011
  currency: BillingCurrencyCode;
3012
3012
  /** Managed currency reference. Present only for custom currencies. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmeter/client",
3
- "version": "1.0.0-beta-e148f75da27a",
3
+ "version": "1.0.0-beta-b51eb34318c8",
4
4
  "description": "Official TypeScript SDK for the OpenMeter API — usage metering and billing",
5
5
  "keywords": [
6
6
  "openmeter",