@openmeter/client 1.0.0-beta-c817ba7663ad → 1.0.0-beta-fcd2968ba8f9
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 +8 -0
- package/dist/models/schemas.js +2 -0
- package/dist/models/types.d.ts +28 -0
- package/package.json +1 -1
package/dist/models/schemas.d.ts
CHANGED
|
@@ -3002,6 +3002,7 @@ export declare const createCreditGrantRequest: z.ZodObject<{
|
|
|
3002
3002
|
}, z.core.$strip>>;
|
|
3003
3003
|
priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3004
3004
|
expires_after: z.ZodOptional<z.ZodString>;
|
|
3005
|
+
key: z.ZodOptional<z.ZodString>;
|
|
3005
3006
|
}, z.core.$strip>;
|
|
3006
3007
|
export declare const creditGrant: z.ZodObject<{
|
|
3007
3008
|
id: z.ZodString;
|
|
@@ -3051,6 +3052,7 @@ export declare const creditGrant: z.ZodObject<{
|
|
|
3051
3052
|
}, z.core.$strip>>;
|
|
3052
3053
|
priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3053
3054
|
expires_after: z.ZodOptional<z.ZodString>;
|
|
3055
|
+
key: z.ZodOptional<z.ZodString>;
|
|
3054
3056
|
expires_at: z.ZodOptional<z.ZodString>;
|
|
3055
3057
|
voided_at: z.ZodOptional<z.ZodString>;
|
|
3056
3058
|
status: z.ZodEnum<{
|
|
@@ -3996,6 +3998,7 @@ export declare const creditGrantPagePaginatedResponse: z.ZodObject<{
|
|
|
3996
3998
|
}, z.core.$strip>>;
|
|
3997
3999
|
priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3998
4000
|
expires_after: z.ZodOptional<z.ZodString>;
|
|
4001
|
+
key: z.ZodOptional<z.ZodString>;
|
|
3999
4002
|
expires_at: z.ZodOptional<z.ZodString>;
|
|
4000
4003
|
voided_at: z.ZodOptional<z.ZodString>;
|
|
4001
4004
|
status: z.ZodEnum<{
|
|
@@ -9389,6 +9392,7 @@ export declare const createCreditGrantBody: z.ZodObject<{
|
|
|
9389
9392
|
}, z.core.$strip>>;
|
|
9390
9393
|
priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
9391
9394
|
expires_after: z.ZodOptional<z.ZodString>;
|
|
9395
|
+
key: z.ZodOptional<z.ZodString>;
|
|
9392
9396
|
}, z.core.$strip>;
|
|
9393
9397
|
export declare const createCreditGrantResponse: z.ZodObject<{
|
|
9394
9398
|
id: z.ZodString;
|
|
@@ -9438,6 +9442,7 @@ export declare const createCreditGrantResponse: z.ZodObject<{
|
|
|
9438
9442
|
}, z.core.$strip>>;
|
|
9439
9443
|
priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
9440
9444
|
expires_after: z.ZodOptional<z.ZodString>;
|
|
9445
|
+
key: z.ZodOptional<z.ZodString>;
|
|
9441
9446
|
expires_at: z.ZodOptional<z.ZodString>;
|
|
9442
9447
|
voided_at: z.ZodOptional<z.ZodString>;
|
|
9443
9448
|
status: z.ZodEnum<{
|
|
@@ -9499,6 +9504,7 @@ export declare const getCreditGrantResponse: z.ZodObject<{
|
|
|
9499
9504
|
}, z.core.$strip>>;
|
|
9500
9505
|
priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
9501
9506
|
expires_after: z.ZodOptional<z.ZodString>;
|
|
9507
|
+
key: z.ZodOptional<z.ZodString>;
|
|
9502
9508
|
expires_at: z.ZodOptional<z.ZodString>;
|
|
9503
9509
|
voided_at: z.ZodOptional<z.ZodString>;
|
|
9504
9510
|
status: z.ZodEnum<{
|
|
@@ -9575,6 +9581,7 @@ export declare const listCreditGrantsResponse: z.ZodObject<{
|
|
|
9575
9581
|
}, z.core.$strip>>;
|
|
9576
9582
|
priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
9577
9583
|
expires_after: z.ZodOptional<z.ZodString>;
|
|
9584
|
+
key: z.ZodOptional<z.ZodString>;
|
|
9578
9585
|
expires_at: z.ZodOptional<z.ZodString>;
|
|
9579
9586
|
voided_at: z.ZodOptional<z.ZodString>;
|
|
9580
9587
|
status: z.ZodEnum<{
|
|
@@ -9701,6 +9708,7 @@ export declare const updateCreditGrantExternalSettlementResponse: z.ZodObject<{
|
|
|
9701
9708
|
}, z.core.$strip>>;
|
|
9702
9709
|
priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
9703
9710
|
expires_after: z.ZodOptional<z.ZodString>;
|
|
9711
|
+
key: z.ZodOptional<z.ZodString>;
|
|
9704
9712
|
expires_at: z.ZodOptional<z.ZodString>;
|
|
9705
9713
|
voided_at: z.ZodOptional<z.ZodString>;
|
|
9706
9714
|
status: z.ZodEnum<{
|
package/dist/models/schemas.js
CHANGED
|
@@ -2937,6 +2937,7 @@ export const createCreditGrantRequest = z
|
|
|
2937
2937
|
.default(10)
|
|
2938
2938
|
.describe('Draw-down priority of the grant. Lower values have higher priority.'),
|
|
2939
2939
|
expires_after: iso8601Duration.optional(),
|
|
2940
|
+
key: externalResourceKey.optional(),
|
|
2940
2941
|
})
|
|
2941
2942
|
.describe('CreditGrant create request.');
|
|
2942
2943
|
export const creditGrant = z
|
|
@@ -2972,6 +2973,7 @@ export const creditGrant = z
|
|
|
2972
2973
|
.default(10)
|
|
2973
2974
|
.describe('Draw-down priority of the grant. Lower values have higher priority.'),
|
|
2974
2975
|
expires_after: iso8601Duration.optional(),
|
|
2976
|
+
key: externalResourceKey.optional(),
|
|
2975
2977
|
expires_at: dateTime.optional(),
|
|
2976
2978
|
voided_at: dateTime.optional(),
|
|
2977
2979
|
status: creditGrantStatus,
|
package/dist/models/types.d.ts
CHANGED
|
@@ -3388,6 +3388,13 @@ export interface CreateCreditGrantRequest {
|
|
|
3388
3388
|
* Defaults to never expiring.
|
|
3389
3389
|
*/
|
|
3390
3390
|
expires_after?: string;
|
|
3391
|
+
/**
|
|
3392
|
+
* Idempotency key for the credit grant creation request.
|
|
3393
|
+
*
|
|
3394
|
+
* When provided, reusing the same key returns an HTTP 409 Conflict instead of
|
|
3395
|
+
* creating a duplicate grant, which makes create requests safe to retry.
|
|
3396
|
+
*/
|
|
3397
|
+
key?: string;
|
|
3391
3398
|
}
|
|
3392
3399
|
/**
|
|
3393
3400
|
* A credit grant allocates credits to a customer.
|
|
@@ -3444,6 +3451,13 @@ export interface CreditGrant {
|
|
|
3444
3451
|
* Defaults to never expiring.
|
|
3445
3452
|
*/
|
|
3446
3453
|
expires_after?: string;
|
|
3454
|
+
/**
|
|
3455
|
+
* Idempotency key for the credit grant creation request.
|
|
3456
|
+
*
|
|
3457
|
+
* When provided, reusing the same key returns an HTTP 409 Conflict instead of
|
|
3458
|
+
* creating a duplicate grant, which makes create requests safe to retry.
|
|
3459
|
+
*/
|
|
3460
|
+
key?: string;
|
|
3447
3461
|
/**
|
|
3448
3462
|
* The timestamp when the credit grant expires.
|
|
3449
3463
|
*
|
|
@@ -5151,6 +5165,13 @@ export interface CreateCreditGrantRequestInput {
|
|
|
5151
5165
|
* Defaults to never expiring.
|
|
5152
5166
|
*/
|
|
5153
5167
|
expires_after?: string;
|
|
5168
|
+
/**
|
|
5169
|
+
* Idempotency key for the credit grant creation request.
|
|
5170
|
+
*
|
|
5171
|
+
* When provided, reusing the same key returns an HTTP 409 Conflict instead of
|
|
5172
|
+
* creating a duplicate grant, which makes create requests safe to retry.
|
|
5173
|
+
*/
|
|
5174
|
+
key?: string;
|
|
5154
5175
|
}
|
|
5155
5176
|
export interface CreditGrantInput {
|
|
5156
5177
|
id: string;
|
|
@@ -5201,6 +5222,13 @@ export interface CreditGrantInput {
|
|
|
5201
5222
|
* Defaults to never expiring.
|
|
5202
5223
|
*/
|
|
5203
5224
|
expires_after?: string;
|
|
5225
|
+
/**
|
|
5226
|
+
* Idempotency key for the credit grant creation request.
|
|
5227
|
+
*
|
|
5228
|
+
* When provided, reusing the same key returns an HTTP 409 Conflict instead of
|
|
5229
|
+
* creating a duplicate grant, which makes create requests safe to retry.
|
|
5230
|
+
*/
|
|
5231
|
+
key?: string;
|
|
5204
5232
|
/**
|
|
5205
5233
|
* The timestamp when the credit grant expires.
|
|
5206
5234
|
*
|