@openmeter/client 1.0.0-beta-a7b69d07330f → 1.0.0-beta-5e1a7099ad75
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.
package/dist/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.0.0-beta-
|
|
1
|
+
export declare const SDK_VERSION = "1.0.0-beta-5e1a7099ad75";
|
package/dist/lib/version.js
CHANGED
|
@@ -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-
|
|
5
|
+
export const SDK_VERSION = '1.0.0-beta-5e1a7099ad75';
|
|
@@ -198,7 +198,9 @@ export type ListCreditGrantsRequest = AcceptDateStrings<ListCreditGrantsQuery &
|
|
|
198
198
|
export type ListCreditGrantsResponse = CreditGrantPagePaginatedResponse;
|
|
199
199
|
export interface GetCustomerCreditBalanceQuery {
|
|
200
200
|
/**
|
|
201
|
-
* Return
|
|
201
|
+
* Return credit balances at this timestamp using all currently recorded postings,
|
|
202
|
+
* including corrections recorded later. This is not a snapshot of what was known
|
|
203
|
+
* at the requested time.
|
|
202
204
|
*
|
|
203
205
|
* Defaults to the current time. Historical responses return `live` as zero because
|
|
204
206
|
* live charge impacts are only available for current balances.
|
package/dist/models/schemas.d.ts
CHANGED
|
@@ -2520,7 +2520,9 @@ export declare const creditBalance: z.ZodObject<{
|
|
|
2520
2520
|
id: z.ZodString;
|
|
2521
2521
|
}, z.core.$strip>>;
|
|
2522
2522
|
live: z.ZodString;
|
|
2523
|
+
booked: z.ZodString;
|
|
2523
2524
|
settled: z.ZodString;
|
|
2525
|
+
spendable: z.ZodString;
|
|
2524
2526
|
pending: z.ZodString;
|
|
2525
2527
|
}, z.core.$strip>;
|
|
2526
2528
|
export declare const creditTransaction: z.ZodObject<{
|
|
@@ -4553,7 +4555,9 @@ export declare const creditBalances: z.ZodObject<{
|
|
|
4553
4555
|
id: z.ZodString;
|
|
4554
4556
|
}, z.core.$strip>>;
|
|
4555
4557
|
live: z.ZodString;
|
|
4558
|
+
booked: z.ZodString;
|
|
4556
4559
|
settled: z.ZodString;
|
|
4560
|
+
spendable: z.ZodString;
|
|
4557
4561
|
pending: z.ZodString;
|
|
4558
4562
|
}, z.core.$strip>>;
|
|
4559
4563
|
}, z.core.$strip>;
|
|
@@ -21237,7 +21241,9 @@ export declare const getCustomerCreditBalanceResponse: z.ZodObject<{
|
|
|
21237
21241
|
id: z.ZodString;
|
|
21238
21242
|
}, z.core.$strip>>;
|
|
21239
21243
|
live: z.ZodString;
|
|
21244
|
+
booked: z.ZodString;
|
|
21240
21245
|
settled: z.ZodString;
|
|
21246
|
+
spendable: z.ZodString;
|
|
21241
21247
|
pending: z.ZodString;
|
|
21242
21248
|
}, z.core.$strip>>;
|
|
21243
21249
|
}, z.core.$strip>;
|
|
@@ -39593,7 +39599,9 @@ export declare const creditBalanceWire: z.ZodObject<{
|
|
|
39593
39599
|
id: z.ZodString;
|
|
39594
39600
|
}, z.core.$strict>>;
|
|
39595
39601
|
live: z.ZodString;
|
|
39602
|
+
booked: z.ZodString;
|
|
39596
39603
|
settled: z.ZodString;
|
|
39604
|
+
spendable: z.ZodString;
|
|
39597
39605
|
pending: z.ZodString;
|
|
39598
39606
|
}, z.core.$strict>;
|
|
39599
39607
|
export declare const creditTransactionWire: z.ZodObject<{
|
|
@@ -41626,7 +41634,9 @@ export declare const creditBalancesWire: z.ZodObject<{
|
|
|
41626
41634
|
id: z.ZodString;
|
|
41627
41635
|
}, z.core.$strict>>;
|
|
41628
41636
|
live: z.ZodString;
|
|
41637
|
+
booked: z.ZodString;
|
|
41629
41638
|
settled: z.ZodString;
|
|
41639
|
+
spendable: z.ZodString;
|
|
41630
41640
|
pending: z.ZodString;
|
|
41631
41641
|
}, z.core.$strict>>;
|
|
41632
41642
|
}, z.core.$strict>;
|
|
@@ -58289,7 +58299,9 @@ export declare const getCustomerCreditBalanceResponseWire: z.ZodObject<{
|
|
|
58289
58299
|
id: z.ZodString;
|
|
58290
58300
|
}, z.core.$strict>>;
|
|
58291
58301
|
live: z.ZodString;
|
|
58302
|
+
booked: z.ZodString;
|
|
58292
58303
|
settled: z.ZodString;
|
|
58304
|
+
spendable: z.ZodString;
|
|
58293
58305
|
pending: z.ZodString;
|
|
58294
58306
|
}, z.core.$strict>>;
|
|
58295
58307
|
}, z.core.$strict>;
|
package/dist/models/schemas.js
CHANGED
|
@@ -3131,7 +3131,9 @@ export const creditBalance = z
|
|
|
3131
3131
|
currency: billingCurrencyCode,
|
|
3132
3132
|
customCurrency: currencyCustomReference.optional(),
|
|
3133
3133
|
live: numeric,
|
|
3134
|
+
booked: numeric,
|
|
3134
3135
|
settled: numeric,
|
|
3136
|
+
spendable: numeric,
|
|
3135
3137
|
pending: numeric,
|
|
3136
3138
|
})
|
|
3137
3139
|
.describe('The credit balance by currency.');
|
|
@@ -3160,7 +3162,7 @@ export const creditTransaction = z
|
|
|
3160
3162
|
before: numeric,
|
|
3161
3163
|
after: numeric,
|
|
3162
3164
|
})
|
|
3163
|
-
.describe('The
|
|
3165
|
+
.describe('The booked credit balance before and after the transaction, including credit-only advance debt.'),
|
|
3164
3166
|
})
|
|
3165
3167
|
.describe("A credit transaction represents a single credit movement on the customer's balance. Credit transactions are immutable.");
|
|
3166
3168
|
export const invoiceWorkflowAppsReferences = z
|
|
@@ -10345,7 +10347,9 @@ export const creditBalanceWire = z
|
|
|
10345
10347
|
currency: billingCurrencyCodeWire,
|
|
10346
10348
|
custom_currency: currencyCustomReferenceWire.optional(),
|
|
10347
10349
|
live: numericWire,
|
|
10350
|
+
booked: numericWire,
|
|
10348
10351
|
settled: numericWire,
|
|
10352
|
+
spendable: numericWire,
|
|
10349
10353
|
pending: numericWire,
|
|
10350
10354
|
})
|
|
10351
10355
|
.describe('The credit balance by currency.');
|
|
@@ -10374,7 +10378,7 @@ export const creditTransactionWire = z
|
|
|
10374
10378
|
before: numericWire,
|
|
10375
10379
|
after: numericWire,
|
|
10376
10380
|
})
|
|
10377
|
-
.describe('The
|
|
10381
|
+
.describe('The booked credit balance before and after the transaction, including credit-only advance debt.'),
|
|
10378
10382
|
})
|
|
10379
10383
|
.describe("A credit transaction represents a single credit movement on the customer's balance. Credit transactions are immutable.");
|
|
10380
10384
|
export const invoiceWorkflowAppsReferencesWire = z
|
package/dist/models/types.d.ts
CHANGED
|
@@ -2985,14 +2985,27 @@ export interface CreditBalance {
|
|
|
2985
2985
|
/** Managed currency reference. Present only for custom currencies. */
|
|
2986
2986
|
customCurrency?: CurrencyCustomReference;
|
|
2987
2987
|
/**
|
|
2988
|
-
*
|
|
2988
|
+
* Spendable balance after applying currently live, unbooked charge impacts. Can be
|
|
2989
|
+
* negative when usage exceeds available credit.
|
|
2989
2990
|
*
|
|
2990
2991
|
* Always zero for historical balance queries using the `timestamp` parameter
|
|
2991
2992
|
* because live charge impacts cannot be reconstructed historically.
|
|
2992
2993
|
*/
|
|
2993
2994
|
live: string;
|
|
2994
|
-
/**
|
|
2995
|
+
/**
|
|
2996
|
+
* Credits that have been booked on the ledger as of the balance timestamp,
|
|
2997
|
+
* including credit-only advance debt. Can be negative.
|
|
2998
|
+
*/
|
|
2999
|
+
booked: string;
|
|
3000
|
+
/** Deprecated alias for `booked`. Always returns the same value. */
|
|
2995
3001
|
settled: string;
|
|
3002
|
+
/**
|
|
3003
|
+
* Spendable credit at the balance timestamp, including any credit-only advance
|
|
3004
|
+
* debt. Preserves credit already committed to later usage. Future grants cannot be
|
|
3005
|
+
* spent early; scheduled expiry reduces availability when it takes effect. Can be
|
|
3006
|
+
* negative when advance debt exceeds spendable credit.
|
|
3007
|
+
*/
|
|
3008
|
+
spendable: string;
|
|
2996
3009
|
/**
|
|
2997
3010
|
* Credits that have been granted but are not yet written to the ledger, or are
|
|
2998
3011
|
* written to the ledger with a future booked time.
|
|
@@ -3035,7 +3048,10 @@ export interface CreditTransaction {
|
|
|
3035
3048
|
* values reduce balance.
|
|
3036
3049
|
*/
|
|
3037
3050
|
amount: string;
|
|
3038
|
-
/**
|
|
3051
|
+
/**
|
|
3052
|
+
* The booked credit balance before and after the transaction, including
|
|
3053
|
+
* credit-only advance debt.
|
|
3054
|
+
*/
|
|
3039
3055
|
availableBalance: {
|
|
3040
3056
|
before: string;
|
|
3041
3057
|
after: string;
|