@openmeter/client 1.0.0-beta-2ef5b869426e → 1.0.0-beta-622df7843cd1
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 +1 -1
- package/dist/lib/version.js +1 -1
- package/dist/models/schemas.d.ts +12 -0
- package/dist/models/schemas.js +4 -0
- package/dist/models/types.d.ts +12 -2
- package/package.json +1 -1
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-622df7843cd1";
|
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-622df7843cd1';
|
package/dist/models/schemas.d.ts
CHANGED
|
@@ -1727,6 +1727,7 @@ export declare const creditAdjustment: z.ZodObject<{
|
|
|
1727
1727
|
}, z.core.$strip>;
|
|
1728
1728
|
export declare const creditBalance: z.ZodObject<{
|
|
1729
1729
|
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
1730
|
+
customCurrencyId: z.ZodOptional<z.ZodString>;
|
|
1730
1731
|
live: z.ZodString;
|
|
1731
1732
|
settled: z.ZodString;
|
|
1732
1733
|
pending: z.ZodString;
|
|
@@ -1773,6 +1774,7 @@ export declare const creditTransaction: z.ZodObject<{
|
|
|
1773
1774
|
voided: "voided";
|
|
1774
1775
|
}>;
|
|
1775
1776
|
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
1777
|
+
customCurrencyId: z.ZodOptional<z.ZodString>;
|
|
1776
1778
|
amount: z.ZodString;
|
|
1777
1779
|
availableBalance: z.ZodObject<{
|
|
1778
1780
|
before: z.ZodString;
|
|
@@ -3240,6 +3242,7 @@ export declare const creditBalances: z.ZodObject<{
|
|
|
3240
3242
|
retrievedAt: z.ZodDate;
|
|
3241
3243
|
balances: z.ZodArray<z.ZodObject<{
|
|
3242
3244
|
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
3245
|
+
customCurrencyId: z.ZodOptional<z.ZodString>;
|
|
3243
3246
|
live: z.ZodString;
|
|
3244
3247
|
settled: z.ZodString;
|
|
3245
3248
|
pending: z.ZodString;
|
|
@@ -3260,6 +3263,7 @@ export declare const creditTransactionPaginatedResponse: z.ZodObject<{
|
|
|
3260
3263
|
voided: "voided";
|
|
3261
3264
|
}>;
|
|
3262
3265
|
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
3266
|
+
customCurrencyId: z.ZodOptional<z.ZodString>;
|
|
3263
3267
|
amount: z.ZodString;
|
|
3264
3268
|
availableBalance: z.ZodObject<{
|
|
3265
3269
|
before: z.ZodString;
|
|
@@ -17782,6 +17786,7 @@ export declare const getCustomerCreditBalanceResponse: z.ZodObject<{
|
|
|
17782
17786
|
retrievedAt: z.ZodDate;
|
|
17783
17787
|
balances: z.ZodArray<z.ZodObject<{
|
|
17784
17788
|
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
17789
|
+
customCurrencyId: z.ZodOptional<z.ZodString>;
|
|
17785
17790
|
live: z.ZodString;
|
|
17786
17791
|
settled: z.ZodString;
|
|
17787
17792
|
pending: z.ZodString;
|
|
@@ -18018,6 +18023,7 @@ export declare const listCreditTransactionsResponse: z.ZodObject<{
|
|
|
18018
18023
|
voided: "voided";
|
|
18019
18024
|
}>;
|
|
18020
18025
|
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
18026
|
+
customCurrencyId: z.ZodOptional<z.ZodString>;
|
|
18021
18027
|
amount: z.ZodString;
|
|
18022
18028
|
availableBalance: z.ZodObject<{
|
|
18023
18029
|
before: z.ZodString;
|
|
@@ -32027,6 +32033,7 @@ export declare const creditAdjustmentWire: z.ZodObject<{
|
|
|
32027
32033
|
}, z.core.$strict>;
|
|
32028
32034
|
export declare const creditBalanceWire: z.ZodObject<{
|
|
32029
32035
|
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
32036
|
+
custom_currency_id: z.ZodOptional<z.ZodString>;
|
|
32030
32037
|
live: z.ZodString;
|
|
32031
32038
|
settled: z.ZodString;
|
|
32032
32039
|
pending: z.ZodString;
|
|
@@ -32073,6 +32080,7 @@ export declare const creditTransactionWire: z.ZodObject<{
|
|
|
32073
32080
|
voided: "voided";
|
|
32074
32081
|
}>;
|
|
32075
32082
|
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
32083
|
+
custom_currency_id: z.ZodOptional<z.ZodString>;
|
|
32076
32084
|
amount: z.ZodString;
|
|
32077
32085
|
available_balance: z.ZodObject<{
|
|
32078
32086
|
before: z.ZodString;
|
|
@@ -33540,6 +33548,7 @@ export declare const creditBalancesWire: z.ZodObject<{
|
|
|
33540
33548
|
retrieved_at: z.ZodString;
|
|
33541
33549
|
balances: z.ZodArray<z.ZodObject<{
|
|
33542
33550
|
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
33551
|
+
custom_currency_id: z.ZodOptional<z.ZodString>;
|
|
33543
33552
|
live: z.ZodString;
|
|
33544
33553
|
settled: z.ZodString;
|
|
33545
33554
|
pending: z.ZodString;
|
|
@@ -33560,6 +33569,7 @@ export declare const creditTransactionPaginatedResponseWire: z.ZodObject<{
|
|
|
33560
33569
|
voided: "voided";
|
|
33561
33570
|
}>;
|
|
33562
33571
|
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
33572
|
+
custom_currency_id: z.ZodOptional<z.ZodString>;
|
|
33563
33573
|
amount: z.ZodString;
|
|
33564
33574
|
available_balance: z.ZodObject<{
|
|
33565
33575
|
before: z.ZodString;
|
|
@@ -48073,6 +48083,7 @@ export declare const getCustomerCreditBalanceResponseWire: z.ZodObject<{
|
|
|
48073
48083
|
retrieved_at: z.ZodString;
|
|
48074
48084
|
balances: z.ZodArray<z.ZodObject<{
|
|
48075
48085
|
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
48086
|
+
custom_currency_id: z.ZodOptional<z.ZodString>;
|
|
48076
48087
|
live: z.ZodString;
|
|
48077
48088
|
settled: z.ZodString;
|
|
48078
48089
|
pending: z.ZodString;
|
|
@@ -48309,6 +48320,7 @@ export declare const listCreditTransactionsResponseWire: z.ZodObject<{
|
|
|
48309
48320
|
voided: "voided";
|
|
48310
48321
|
}>;
|
|
48311
48322
|
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
48323
|
+
custom_currency_id: z.ZodOptional<z.ZodString>;
|
|
48312
48324
|
amount: z.ZodString;
|
|
48313
48325
|
available_balance: z.ZodObject<{
|
|
48314
48326
|
before: z.ZodString;
|
package/dist/models/schemas.js
CHANGED
|
@@ -2538,6 +2538,7 @@ export const creditAdjustment = z
|
|
|
2538
2538
|
export const creditBalance = z
|
|
2539
2539
|
.object({
|
|
2540
2540
|
currency: billingCurrencyCode,
|
|
2541
|
+
customCurrencyId: ulid.optional(),
|
|
2541
2542
|
live: numeric,
|
|
2542
2543
|
settled: numeric,
|
|
2543
2544
|
pending: numeric,
|
|
@@ -2585,6 +2586,7 @@ export const creditTransaction = z
|
|
|
2585
2586
|
bookedAt: dateTime,
|
|
2586
2587
|
type: creditTransactionType,
|
|
2587
2588
|
currency: billingCurrencyCode,
|
|
2589
|
+
customCurrencyId: ulid.optional(),
|
|
2588
2590
|
amount: numeric,
|
|
2589
2591
|
availableBalance: z
|
|
2590
2592
|
.object({
|
|
@@ -8284,6 +8286,7 @@ export const creditAdjustmentWire = z
|
|
|
8284
8286
|
export const creditBalanceWire = z
|
|
8285
8287
|
.strictObject({
|
|
8286
8288
|
currency: billingCurrencyCodeWire,
|
|
8289
|
+
custom_currency_id: ulidWire.optional(),
|
|
8287
8290
|
live: numericWire,
|
|
8288
8291
|
settled: numericWire,
|
|
8289
8292
|
pending: numericWire,
|
|
@@ -8331,6 +8334,7 @@ export const creditTransactionWire = z
|
|
|
8331
8334
|
booked_at: dateTimeWire,
|
|
8332
8335
|
type: creditTransactionTypeWire,
|
|
8333
8336
|
currency: billingCurrencyCodeWire,
|
|
8337
|
+
custom_currency_id: ulidWire.optional(),
|
|
8334
8338
|
amount: numericWire,
|
|
8335
8339
|
available_balance: z
|
|
8336
8340
|
.strictObject({
|
package/dist/models/types.d.ts
CHANGED
|
@@ -1871,7 +1871,10 @@ export interface ValidationIssue {
|
|
|
1871
1871
|
}
|
|
1872
1872
|
/** Filter options for getting a credit balance. */
|
|
1873
1873
|
export interface GetCreditBalanceParamsFilter {
|
|
1874
|
-
/**
|
|
1874
|
+
/**
|
|
1875
|
+
* Filter credit balance by currency code. When historical custom currencies reuse
|
|
1876
|
+
* a code, each managed currency is returned as a separate balance row.
|
|
1877
|
+
*/
|
|
1875
1878
|
currency?: StringFieldFilterExact;
|
|
1876
1879
|
/**
|
|
1877
1880
|
* Filter credit balance by feature key. Omit to return the total portfolio value.
|
|
@@ -2258,6 +2261,8 @@ export interface CreditAdjustment {
|
|
|
2258
2261
|
/** The credit balance by currency. */
|
|
2259
2262
|
export interface CreditBalance {
|
|
2260
2263
|
currency: BillingCurrencyCode;
|
|
2264
|
+
/** Immutable managed currency identifier. Present only for custom currencies. */
|
|
2265
|
+
customCurrencyId?: string;
|
|
2261
2266
|
/**
|
|
2262
2267
|
* Credits available after applying currently live charge impacts.
|
|
2263
2268
|
*
|
|
@@ -2297,7 +2302,10 @@ export interface CreateCreditAdjustmentRequest {
|
|
|
2297
2302
|
export interface ListCreditTransactionsParamsFilter {
|
|
2298
2303
|
/** Filter credit transactions by type. */
|
|
2299
2304
|
type?: 'funded' | 'consumed' | 'expired' | 'voided';
|
|
2300
|
-
/**
|
|
2305
|
+
/**
|
|
2306
|
+
* Filter credit transactions by currency code. Custom-currency rows retain their
|
|
2307
|
+
* managed currency identifier.
|
|
2308
|
+
*/
|
|
2301
2309
|
currency?: BillingCurrencyCode;
|
|
2302
2310
|
/**
|
|
2303
2311
|
* Filter credit transactions by feature key. Omit to return all credit
|
|
@@ -2335,6 +2343,8 @@ export interface CreditTransaction {
|
|
|
2335
2343
|
type: 'funded' | 'consumed' | 'expired' | 'voided';
|
|
2336
2344
|
/** Currency of the balance affected by the transaction. */
|
|
2337
2345
|
currency: BillingCurrencyCode;
|
|
2346
|
+
/** Immutable managed currency identifier. Present only for custom currencies. */
|
|
2347
|
+
customCurrencyId?: string;
|
|
2338
2348
|
/**
|
|
2339
2349
|
* Signed amount of the credit movement. Positive values add balance, negative
|
|
2340
2350
|
* values reduce balance.
|