@openmeter/client 1.0.0-beta-1480f39df845 → 1.0.0-beta-0c1243e1a664
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/models/schemas.d.ts +30 -0
- package/dist/models/schemas.js +2 -0
- package/dist/models/types.d.ts +27 -0
- package/package.json +1 -1
package/dist/models/schemas.d.ts
CHANGED
|
@@ -1181,6 +1181,18 @@ export declare const listCreditGrantsParamsFilter: z.ZodObject<{
|
|
|
1181
1181
|
voided: "voided";
|
|
1182
1182
|
}>>;
|
|
1183
1183
|
currency: z.ZodOptional<z.ZodString>;
|
|
1184
|
+
key: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1185
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
1186
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
1187
|
+
contains: z.ZodOptional<z.ZodString>;
|
|
1188
|
+
ocontains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1189
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1190
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
1191
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
1192
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
1193
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
1194
|
+
exists: z.ZodOptional<z.ZodBoolean>;
|
|
1195
|
+
}, z.core.$strip>]>>;
|
|
1184
1196
|
}, z.core.$strip>;
|
|
1185
1197
|
export declare const getCreditBalanceParamsFilter: z.ZodObject<{
|
|
1186
1198
|
currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -3052,6 +3064,7 @@ export declare const creditGrant: z.ZodObject<{
|
|
|
3052
3064
|
}, z.core.$strip>>;
|
|
3053
3065
|
priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3054
3066
|
effective_at: z.ZodOptional<z.ZodString>;
|
|
3067
|
+
key: z.ZodOptional<z.ZodString>;
|
|
3055
3068
|
expires_at: z.ZodOptional<z.ZodString>;
|
|
3056
3069
|
voided_at: z.ZodOptional<z.ZodString>;
|
|
3057
3070
|
status: z.ZodEnum<{
|
|
@@ -3996,6 +4009,7 @@ export declare const creditGrantPagePaginatedResponse: z.ZodObject<{
|
|
|
3996
4009
|
}, z.core.$strip>>;
|
|
3997
4010
|
priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3998
4011
|
effective_at: z.ZodOptional<z.ZodString>;
|
|
4012
|
+
key: z.ZodOptional<z.ZodString>;
|
|
3999
4013
|
expires_at: z.ZodOptional<z.ZodString>;
|
|
4000
4014
|
voided_at: z.ZodOptional<z.ZodString>;
|
|
4001
4015
|
status: z.ZodEnum<{
|
|
@@ -9416,6 +9430,7 @@ export declare const createCreditGrantResponse: z.ZodObject<{
|
|
|
9416
9430
|
}, z.core.$strip>>;
|
|
9417
9431
|
priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
9418
9432
|
effective_at: z.ZodOptional<z.ZodString>;
|
|
9433
|
+
key: z.ZodOptional<z.ZodString>;
|
|
9419
9434
|
expires_at: z.ZodOptional<z.ZodString>;
|
|
9420
9435
|
voided_at: z.ZodOptional<z.ZodString>;
|
|
9421
9436
|
status: z.ZodEnum<{
|
|
@@ -9477,6 +9492,7 @@ export declare const getCreditGrantResponse: z.ZodObject<{
|
|
|
9477
9492
|
}, z.core.$strip>>;
|
|
9478
9493
|
priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
9479
9494
|
effective_at: z.ZodOptional<z.ZodString>;
|
|
9495
|
+
key: z.ZodOptional<z.ZodString>;
|
|
9480
9496
|
expires_at: z.ZodOptional<z.ZodString>;
|
|
9481
9497
|
voided_at: z.ZodOptional<z.ZodString>;
|
|
9482
9498
|
status: z.ZodEnum<{
|
|
@@ -9502,6 +9518,18 @@ export declare const listCreditGrantsQueryParams: z.ZodObject<{
|
|
|
9502
9518
|
voided: "voided";
|
|
9503
9519
|
}>>;
|
|
9504
9520
|
currency: z.ZodOptional<z.ZodString>;
|
|
9521
|
+
key: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
9522
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
9523
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
9524
|
+
contains: z.ZodOptional<z.ZodString>;
|
|
9525
|
+
ocontains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9526
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9527
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
9528
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
9529
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
9530
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
9531
|
+
exists: z.ZodOptional<z.ZodBoolean>;
|
|
9532
|
+
}, z.core.$strip>]>>;
|
|
9505
9533
|
}, z.core.$strip>>;
|
|
9506
9534
|
}, z.core.$strip>;
|
|
9507
9535
|
export declare const listCreditGrantsResponse: z.ZodObject<{
|
|
@@ -9553,6 +9581,7 @@ export declare const listCreditGrantsResponse: z.ZodObject<{
|
|
|
9553
9581
|
}, z.core.$strip>>;
|
|
9554
9582
|
priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
9555
9583
|
effective_at: z.ZodOptional<z.ZodString>;
|
|
9584
|
+
key: z.ZodOptional<z.ZodString>;
|
|
9556
9585
|
expires_at: z.ZodOptional<z.ZodString>;
|
|
9557
9586
|
voided_at: z.ZodOptional<z.ZodString>;
|
|
9558
9587
|
status: z.ZodEnum<{
|
|
@@ -9678,6 +9707,7 @@ export declare const updateCreditGrantExternalSettlementResponse: z.ZodObject<{
|
|
|
9678
9707
|
}, z.core.$strip>>;
|
|
9679
9708
|
priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
9680
9709
|
effective_at: z.ZodOptional<z.ZodString>;
|
|
9710
|
+
key: z.ZodOptional<z.ZodString>;
|
|
9681
9711
|
expires_at: z.ZodOptional<z.ZodString>;
|
|
9682
9712
|
voided_at: z.ZodOptional<z.ZodString>;
|
|
9683
9713
|
status: z.ZodEnum<{
|
package/dist/models/schemas.js
CHANGED
|
@@ -1817,6 +1817,7 @@ export const listCreditGrantsParamsFilter = z
|
|
|
1817
1817
|
.object({
|
|
1818
1818
|
status: creditGrantStatus.optional(),
|
|
1819
1819
|
currency: currencyCode.optional(),
|
|
1820
|
+
key: stringFieldFilter.optional(),
|
|
1820
1821
|
})
|
|
1821
1822
|
.describe('Filter options for listing credit grants.');
|
|
1822
1823
|
export const getCreditBalanceParamsFilter = z
|
|
@@ -2969,6 +2970,7 @@ export const creditGrant = z
|
|
|
2969
2970
|
.default(10)
|
|
2970
2971
|
.describe('Draw-down priority of the grant. Lower values have higher priority.'),
|
|
2971
2972
|
effective_at: dateTime.optional(),
|
|
2973
|
+
key: externalResourceKey.optional(),
|
|
2972
2974
|
expires_at: dateTime.optional(),
|
|
2973
2975
|
voided_at: dateTime.optional(),
|
|
2974
2976
|
status: creditGrantStatus,
|
package/dist/models/types.d.ts
CHANGED
|
@@ -1542,6 +1542,19 @@ export interface ListCreditGrantsParamsFilter {
|
|
|
1542
1542
|
status?: 'pending' | 'active' | 'expired' | 'voided';
|
|
1543
1543
|
/** Filter credit grants by currency. */
|
|
1544
1544
|
currency?: string;
|
|
1545
|
+
/** Filter credit grants by key. */
|
|
1546
|
+
key?: string | {
|
|
1547
|
+
eq?: string;
|
|
1548
|
+
neq?: string;
|
|
1549
|
+
contains?: string;
|
|
1550
|
+
ocontains?: string[];
|
|
1551
|
+
oeq?: string[];
|
|
1552
|
+
gt?: string;
|
|
1553
|
+
gte?: string;
|
|
1554
|
+
lt?: string;
|
|
1555
|
+
lte?: string;
|
|
1556
|
+
exists?: boolean;
|
|
1557
|
+
};
|
|
1545
1558
|
}
|
|
1546
1559
|
/** Filter options for getting a credit balance. */
|
|
1547
1560
|
export interface GetCreditBalanceParamsFilter {
|
|
@@ -3450,6 +3463,13 @@ export interface CreditGrant {
|
|
|
3450
3463
|
* Defaults to the current date and time.
|
|
3451
3464
|
*/
|
|
3452
3465
|
effective_at?: string;
|
|
3466
|
+
/**
|
|
3467
|
+
* Idempotency key for the credit grant creation request.
|
|
3468
|
+
*
|
|
3469
|
+
* When provided, reusing the same key returns an HTTP 409 Conflict instead of
|
|
3470
|
+
* creating a duplicate grant, which makes create requests safe to retry.
|
|
3471
|
+
*/
|
|
3472
|
+
key?: string;
|
|
3453
3473
|
/**
|
|
3454
3474
|
* The timestamp when the credit grant expires.
|
|
3455
3475
|
*
|
|
@@ -5213,6 +5233,13 @@ export interface CreditGrantInput {
|
|
|
5213
5233
|
* Defaults to the current date and time.
|
|
5214
5234
|
*/
|
|
5215
5235
|
effective_at?: string;
|
|
5236
|
+
/**
|
|
5237
|
+
* Idempotency key for the credit grant creation request.
|
|
5238
|
+
*
|
|
5239
|
+
* When provided, reusing the same key returns an HTTP 409 Conflict instead of
|
|
5240
|
+
* creating a duplicate grant, which makes create requests safe to retry.
|
|
5241
|
+
*/
|
|
5242
|
+
key?: string;
|
|
5216
5243
|
/**
|
|
5217
5244
|
* The timestamp when the credit grant expires.
|
|
5218
5245
|
*
|