@openmeter/client 1.0.0-beta.230 → 1.0.0-beta.231
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/LICENSE +202 -0
- package/README.md +347 -68
- package/dist/core.d.ts +0 -1
- package/dist/core.js +8 -1
- package/dist/funcs/addons.d.ts +49 -1
- package/dist/funcs/addons.js +50 -1
- package/dist/funcs/apps.d.ts +14 -1
- package/dist/funcs/apps.js +15 -1
- package/dist/funcs/billing.d.ts +46 -1
- package/dist/funcs/billing.js +47 -1
- package/dist/funcs/currencies.d.ts +30 -1
- package/dist/funcs/currencies.js +31 -1
- package/dist/funcs/customers.d.ts +165 -2
- package/dist/funcs/customers.js +192 -1
- package/dist/funcs/defaults.d.ts +10 -1
- package/dist/funcs/defaults.js +11 -1
- package/dist/funcs/entitlements.d.ts +5 -1
- package/dist/funcs/entitlements.js +6 -1
- package/dist/funcs/events.d.ts +14 -1
- package/dist/funcs/events.js +15 -1
- package/dist/funcs/features.d.ts +42 -1
- package/dist/funcs/features.js +43 -1
- package/dist/funcs/governance.d.ts +14 -1
- package/dist/funcs/governance.js +15 -1
- package/dist/funcs/index.d.ts +0 -1
- package/dist/funcs/index.js +1 -1
- package/dist/funcs/invoices.d.ts +44 -1
- package/dist/funcs/invoices.js +45 -1
- package/dist/funcs/llmCost.d.ts +36 -1
- package/dist/funcs/llmCost.js +37 -1
- package/dist/funcs/meters.d.ts +53 -1
- package/dist/funcs/meters.js +54 -1
- package/dist/funcs/planAddons.d.ts +35 -1
- package/dist/funcs/planAddons.js +36 -1
- package/dist/funcs/plans.d.ts +49 -1
- package/dist/funcs/plans.js +50 -1
- package/dist/funcs/subscriptions.d.ts +59 -1
- package/dist/funcs/subscriptions.js +60 -1
- package/dist/funcs/tax.d.ts +25 -1
- package/dist/funcs/tax.js +26 -1
- package/dist/index.d.ts +4 -6
- package/dist/index.js +4 -5
- package/dist/lib/config.d.ts +0 -1
- package/dist/lib/config.js +1 -1
- package/dist/lib/encodings.d.ts +0 -1
- package/dist/lib/encodings.js +1 -1
- package/dist/lib/paginate.d.ts +56 -0
- package/dist/lib/paginate.js +60 -0
- package/dist/lib/request.d.ts +0 -1
- package/dist/lib/request.js +1 -1
- package/dist/lib/to-error.d.ts +0 -1
- package/dist/lib/to-error.js +1 -1
- package/dist/lib/types.d.ts +0 -1
- package/dist/lib/types.js +1 -1
- package/dist/lib/version.d.ts +1 -0
- package/dist/lib/version.js +5 -0
- package/dist/lib/wire.d.ts +3 -1
- package/dist/lib/wire.js +93 -4
- package/dist/models/errors.d.ts +13 -2
- package/dist/models/errors.js +31 -4
- package/dist/models/operations/addons.d.ts +0 -1
- package/dist/models/operations/addons.js +1 -1
- package/dist/models/operations/apps.d.ts +2 -5
- package/dist/models/operations/apps.js +1 -1
- package/dist/models/operations/billing.d.ts +0 -1
- package/dist/models/operations/billing.js +1 -1
- package/dist/models/operations/currencies.d.ts +0 -1
- package/dist/models/operations/currencies.js +1 -1
- package/dist/models/operations/customers.d.ts +9 -6
- package/dist/models/operations/customers.js +1 -1
- package/dist/models/operations/defaults.d.ts +0 -1
- package/dist/models/operations/defaults.js +1 -1
- package/dist/models/operations/entitlements.d.ts +0 -1
- package/dist/models/operations/entitlements.js +1 -1
- package/dist/models/operations/events.d.ts +0 -1
- package/dist/models/operations/events.js +1 -1
- package/dist/models/operations/features.d.ts +0 -1
- package/dist/models/operations/features.js +1 -1
- package/dist/models/operations/governance.d.ts +0 -1
- package/dist/models/operations/governance.js +1 -1
- package/dist/models/operations/invoices.d.ts +4 -7
- package/dist/models/operations/invoices.js +1 -1
- package/dist/models/operations/llmCost.d.ts +0 -1
- package/dist/models/operations/llmCost.js +1 -1
- package/dist/models/operations/meters.d.ts +0 -1
- package/dist/models/operations/meters.js +1 -1
- package/dist/models/operations/planAddons.d.ts +0 -1
- package/dist/models/operations/planAddons.js +1 -1
- package/dist/models/operations/plans.d.ts +0 -1
- package/dist/models/operations/plans.js +1 -1
- package/dist/models/operations/subscriptions.d.ts +0 -1
- package/dist/models/operations/subscriptions.js +1 -1
- package/dist/models/operations/tax.d.ts +0 -1
- package/dist/models/operations/tax.js +1 -1
- package/dist/models/schemas.d.ts +162 -1
- package/dist/models/schemas.js +37 -5
- package/dist/models/types.d.ts +464 -577
- package/dist/models/types.js +1 -1
- package/dist/sdk/addons.d.ts +60 -1
- package/dist/sdk/addons.js +63 -1
- package/dist/sdk/apps.d.ts +25 -1
- package/dist/sdk/apps.js +28 -1
- package/dist/sdk/billing.d.ts +57 -1
- package/dist/sdk/billing.js +60 -1
- package/dist/sdk/customers.d.ts +211 -2
- package/dist/sdk/customers.js +222 -2
- package/dist/sdk/defaults.d.ts +10 -1
- package/dist/sdk/defaults.js +11 -1
- package/dist/sdk/entitlements.d.ts +5 -1
- package/dist/sdk/entitlements.js +6 -1
- package/dist/sdk/events.d.ts +25 -1
- package/dist/sdk/events.js +28 -1
- package/dist/sdk/features.d.ts +53 -1
- package/dist/sdk/features.js +56 -1
- package/dist/sdk/internal.d.ts +180 -0
- package/dist/sdk/internal.js +224 -0
- package/dist/sdk/llmCost.d.ts +57 -1
- package/dist/sdk/llmCost.js +62 -1
- package/dist/sdk/meters.d.ts +64 -1
- package/dist/sdk/meters.js +67 -1
- package/dist/sdk/planAddons.d.ts +46 -1
- package/dist/sdk/planAddons.js +49 -1
- package/dist/sdk/plans.d.ts +60 -1
- package/dist/sdk/plans.js +63 -1
- package/dist/sdk/sdk.d.ts +9 -10
- package/dist/sdk/sdk.js +11 -15
- package/dist/sdk/subscriptions.d.ts +72 -3
- package/dist/sdk/subscriptions.js +77 -5
- package/dist/sdk/tax.d.ts +34 -1
- package/dist/sdk/tax.js +37 -1
- package/package.json +28 -4
- package/dist/sdk/currencies.d.ts +0 -12
- package/dist/sdk/currencies.js +0 -21
- package/dist/sdk/governance.d.ts +0 -9
- package/dist/sdk/governance.js +0 -12
- package/dist/sdk/invoices.d.ts +0 -12
- package/dist/sdk/invoices.js +0 -21
package/dist/models/schemas.d.ts
CHANGED
|
@@ -199,8 +199,12 @@ export declare const stringFieldFilterExact: z.ZodUnion<readonly [z.ZodString, z
|
|
|
199
199
|
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
200
200
|
neq: z.ZodOptional<z.ZodString>;
|
|
201
201
|
}, z.core.$strip>]>;
|
|
202
|
+
export declare const creditGrantVoidPaymentAdjustment: z.ZodEnum<{
|
|
203
|
+
none: "none";
|
|
204
|
+
}>;
|
|
202
205
|
export declare const creditTransactionType: z.ZodEnum<{
|
|
203
206
|
expired: "expired";
|
|
207
|
+
voided: "voided";
|
|
204
208
|
funded: "funded";
|
|
205
209
|
consumed: "consumed";
|
|
206
210
|
}>;
|
|
@@ -1303,6 +1307,11 @@ export declare const listPlansParamsFilter: z.ZodObject<{
|
|
|
1303
1307
|
neq: z.ZodOptional<z.ZodString>;
|
|
1304
1308
|
}, z.core.$strip>]>>;
|
|
1305
1309
|
}, z.core.$strip>;
|
|
1310
|
+
export declare const voidCreditGrantRequest: z.ZodObject<{
|
|
1311
|
+
paymentAdjustment: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1312
|
+
none: "none";
|
|
1313
|
+
}>>>;
|
|
1314
|
+
}, z.core.$strip>;
|
|
1306
1315
|
export declare const subscriptionCreate: z.ZodObject<{
|
|
1307
1316
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1308
1317
|
settlementMode: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1575,6 +1584,7 @@ export declare const createCreditAdjustmentRequest: z.ZodObject<{
|
|
|
1575
1584
|
export declare const listCreditTransactionsParamsFilter: z.ZodObject<{
|
|
1576
1585
|
type: z.ZodOptional<z.ZodEnum<{
|
|
1577
1586
|
expired: "expired";
|
|
1587
|
+
voided: "voided";
|
|
1578
1588
|
funded: "funded";
|
|
1579
1589
|
consumed: "consumed";
|
|
1580
1590
|
}>>;
|
|
@@ -1601,6 +1611,7 @@ export declare const creditTransaction: z.ZodObject<{
|
|
|
1601
1611
|
bookedAt: z.ZodDate;
|
|
1602
1612
|
type: z.ZodEnum<{
|
|
1603
1613
|
expired: "expired";
|
|
1614
|
+
voided: "voided";
|
|
1604
1615
|
funded: "funded";
|
|
1605
1616
|
consumed: "consumed";
|
|
1606
1617
|
}>;
|
|
@@ -3049,6 +3060,7 @@ export declare const creditTransactionPaginatedResponse: z.ZodObject<{
|
|
|
3049
3060
|
bookedAt: z.ZodDate;
|
|
3050
3061
|
type: z.ZodEnum<{
|
|
3051
3062
|
expired: "expired";
|
|
3063
|
+
voided: "voided";
|
|
3052
3064
|
funded: "funded";
|
|
3053
3065
|
consumed: "consumed";
|
|
3054
3066
|
}>;
|
|
@@ -11048,6 +11060,73 @@ export declare const createCreditAdjustmentResponse: z.ZodObject<{
|
|
|
11048
11060
|
description: z.ZodOptional<z.ZodString>;
|
|
11049
11061
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
11050
11062
|
}, z.core.$strip>;
|
|
11063
|
+
export declare const voidCreditGrantPathParams: z.ZodObject<{
|
|
11064
|
+
customerId: z.ZodString;
|
|
11065
|
+
creditGrantId: z.ZodString;
|
|
11066
|
+
}, z.core.$strip>;
|
|
11067
|
+
export declare const voidCreditGrantBody: z.ZodObject<{
|
|
11068
|
+
paymentAdjustment: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
11069
|
+
none: "none";
|
|
11070
|
+
}>>>;
|
|
11071
|
+
}, z.core.$strip>;
|
|
11072
|
+
export declare const voidCreditGrantResponse: z.ZodObject<{
|
|
11073
|
+
id: z.ZodString;
|
|
11074
|
+
name: z.ZodString;
|
|
11075
|
+
description: z.ZodOptional<z.ZodString>;
|
|
11076
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
11077
|
+
createdAt: z.ZodDate;
|
|
11078
|
+
updatedAt: z.ZodDate;
|
|
11079
|
+
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
11080
|
+
fundingMethod: z.ZodEnum<{
|
|
11081
|
+
none: "none";
|
|
11082
|
+
external: "external";
|
|
11083
|
+
invoice: "invoice";
|
|
11084
|
+
}>;
|
|
11085
|
+
currency: z.ZodUnion<readonly [z.ZodString]>;
|
|
11086
|
+
amount: z.ZodString;
|
|
11087
|
+
purchase: z.ZodOptional<z.ZodObject<{
|
|
11088
|
+
currency: z.ZodString;
|
|
11089
|
+
perUnitCostBasis: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
11090
|
+
amount: z.ZodString;
|
|
11091
|
+
availabilityPolicy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
11092
|
+
on_creation: "on_creation";
|
|
11093
|
+
}>>>;
|
|
11094
|
+
settlementStatus: z.ZodOptional<z.ZodEnum<{
|
|
11095
|
+
pending: "pending";
|
|
11096
|
+
authorized: "authorized";
|
|
11097
|
+
settled: "settled";
|
|
11098
|
+
}>>;
|
|
11099
|
+
}, z.core.$strip>>;
|
|
11100
|
+
taxConfig: z.ZodOptional<z.ZodObject<{
|
|
11101
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
11102
|
+
exclusive: "exclusive";
|
|
11103
|
+
inclusive: "inclusive";
|
|
11104
|
+
}>>;
|
|
11105
|
+
taxCode: z.ZodOptional<z.ZodObject<{
|
|
11106
|
+
id: z.ZodString;
|
|
11107
|
+
}, z.core.$strip>>;
|
|
11108
|
+
}, z.core.$strip>>;
|
|
11109
|
+
invoice: z.ZodOptional<z.ZodObject<{
|
|
11110
|
+
id: z.ZodOptional<z.ZodString>;
|
|
11111
|
+
line: z.ZodOptional<z.ZodObject<{
|
|
11112
|
+
id: z.ZodString;
|
|
11113
|
+
}, z.core.$strip>>;
|
|
11114
|
+
}, z.core.$strip>>;
|
|
11115
|
+
filters: z.ZodOptional<z.ZodObject<{
|
|
11116
|
+
features: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
11117
|
+
}, z.core.$strip>>;
|
|
11118
|
+
priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
11119
|
+
effectiveAt: z.ZodOptional<z.ZodDate>;
|
|
11120
|
+
key: z.ZodOptional<z.ZodString>;
|
|
11121
|
+
expiresAt: z.ZodOptional<z.ZodDate>;
|
|
11122
|
+
voidedAt: z.ZodOptional<z.ZodDate>;
|
|
11123
|
+
status: z.ZodEnum<{
|
|
11124
|
+
active: "active";
|
|
11125
|
+
pending: "pending";
|
|
11126
|
+
expired: "expired";
|
|
11127
|
+
voided: "voided";
|
|
11128
|
+
}>;
|
|
11129
|
+
}, z.core.$strip>;
|
|
11051
11130
|
export declare const updateCreditGrantExternalSettlementPathParams: z.ZodObject<{
|
|
11052
11131
|
customerId: z.ZodString;
|
|
11053
11132
|
creditGrantId: z.ZodString;
|
|
@@ -11129,6 +11208,7 @@ export declare const listCreditTransactionsQueryParams: z.ZodObject<{
|
|
|
11129
11208
|
filter: z.ZodOptional<z.ZodObject<{
|
|
11130
11209
|
type: z.ZodOptional<z.ZodEnum<{
|
|
11131
11210
|
expired: "expired";
|
|
11211
|
+
voided: "voided";
|
|
11132
11212
|
funded: "funded";
|
|
11133
11213
|
consumed: "consumed";
|
|
11134
11214
|
}>>;
|
|
@@ -11157,6 +11237,7 @@ export declare const listCreditTransactionsResponse: z.ZodObject<{
|
|
|
11157
11237
|
bookedAt: z.ZodDate;
|
|
11158
11238
|
type: z.ZodEnum<{
|
|
11159
11239
|
expired: "expired";
|
|
11240
|
+
voided: "voided";
|
|
11160
11241
|
funded: "funded";
|
|
11161
11242
|
consumed: "consumed";
|
|
11162
11243
|
}>;
|
|
@@ -17983,8 +18064,12 @@ export declare const stringFieldFilterExactWire: z.ZodUnion<readonly [z.ZodStrin
|
|
|
17983
18064
|
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
17984
18065
|
neq: z.ZodOptional<z.ZodString>;
|
|
17985
18066
|
}, z.core.$strict>]>;
|
|
18067
|
+
export declare const creditGrantVoidPaymentAdjustmentWire: z.ZodEnum<{
|
|
18068
|
+
none: "none";
|
|
18069
|
+
}>;
|
|
17986
18070
|
export declare const creditTransactionTypeWire: z.ZodEnum<{
|
|
17987
18071
|
expired: "expired";
|
|
18072
|
+
voided: "voided";
|
|
17988
18073
|
funded: "funded";
|
|
17989
18074
|
consumed: "consumed";
|
|
17990
18075
|
}>;
|
|
@@ -19087,6 +19172,11 @@ export declare const listPlansParamsFilterWire: z.ZodObject<{
|
|
|
19087
19172
|
neq: z.ZodOptional<z.ZodString>;
|
|
19088
19173
|
}, z.core.$strict>]>>;
|
|
19089
19174
|
}, z.core.$strict>;
|
|
19175
|
+
export declare const voidCreditGrantRequestWire: z.ZodObject<{
|
|
19176
|
+
payment_adjustment: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
19177
|
+
none: "none";
|
|
19178
|
+
}>>>;
|
|
19179
|
+
}, z.core.$strict>;
|
|
19090
19180
|
export declare const subscriptionCreateWire: z.ZodObject<{
|
|
19091
19181
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
19092
19182
|
settlement_mode: z.ZodOptional<z.ZodEnum<{
|
|
@@ -19359,6 +19449,7 @@ export declare const createCreditAdjustmentRequestWire: z.ZodObject<{
|
|
|
19359
19449
|
export declare const listCreditTransactionsParamsFilterWire: z.ZodObject<{
|
|
19360
19450
|
type: z.ZodOptional<z.ZodEnum<{
|
|
19361
19451
|
expired: "expired";
|
|
19452
|
+
voided: "voided";
|
|
19362
19453
|
funded: "funded";
|
|
19363
19454
|
consumed: "consumed";
|
|
19364
19455
|
}>>;
|
|
@@ -19385,6 +19476,7 @@ export declare const creditTransactionWire: z.ZodObject<{
|
|
|
19385
19476
|
booked_at: z.ZodString;
|
|
19386
19477
|
type: z.ZodEnum<{
|
|
19387
19478
|
expired: "expired";
|
|
19479
|
+
voided: "voided";
|
|
19388
19480
|
funded: "funded";
|
|
19389
19481
|
consumed: "consumed";
|
|
19390
19482
|
}>;
|
|
@@ -20833,6 +20925,7 @@ export declare const creditTransactionPaginatedResponseWire: z.ZodObject<{
|
|
|
20833
20925
|
booked_at: z.ZodString;
|
|
20834
20926
|
type: z.ZodEnum<{
|
|
20835
20927
|
expired: "expired";
|
|
20928
|
+
voided: "voided";
|
|
20836
20929
|
funded: "funded";
|
|
20837
20930
|
consumed: "consumed";
|
|
20838
20931
|
}>;
|
|
@@ -28832,6 +28925,73 @@ export declare const createCreditAdjustmentResponseWire: z.ZodObject<{
|
|
|
28832
28925
|
description: z.ZodOptional<z.ZodString>;
|
|
28833
28926
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
28834
28927
|
}, z.core.$strict>;
|
|
28928
|
+
export declare const voidCreditGrantPathParamsWire: z.ZodObject<{
|
|
28929
|
+
customerId: z.ZodString;
|
|
28930
|
+
creditGrantId: z.ZodString;
|
|
28931
|
+
}, z.core.$strip>;
|
|
28932
|
+
export declare const voidCreditGrantBodyWire: z.ZodObject<{
|
|
28933
|
+
payment_adjustment: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
28934
|
+
none: "none";
|
|
28935
|
+
}>>>;
|
|
28936
|
+
}, z.core.$strict>;
|
|
28937
|
+
export declare const voidCreditGrantResponseWire: z.ZodObject<{
|
|
28938
|
+
id: z.ZodString;
|
|
28939
|
+
name: z.ZodString;
|
|
28940
|
+
description: z.ZodOptional<z.ZodString>;
|
|
28941
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
28942
|
+
created_at: z.ZodString;
|
|
28943
|
+
updated_at: z.ZodString;
|
|
28944
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
28945
|
+
funding_method: z.ZodEnum<{
|
|
28946
|
+
none: "none";
|
|
28947
|
+
external: "external";
|
|
28948
|
+
invoice: "invoice";
|
|
28949
|
+
}>;
|
|
28950
|
+
currency: z.ZodUnion<readonly [z.ZodString]>;
|
|
28951
|
+
amount: z.ZodString;
|
|
28952
|
+
purchase: z.ZodOptional<z.ZodObject<{
|
|
28953
|
+
currency: z.ZodString;
|
|
28954
|
+
per_unit_cost_basis: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
28955
|
+
amount: z.ZodString;
|
|
28956
|
+
availability_policy: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
28957
|
+
on_creation: "on_creation";
|
|
28958
|
+
}>>>;
|
|
28959
|
+
settlement_status: z.ZodOptional<z.ZodEnum<{
|
|
28960
|
+
pending: "pending";
|
|
28961
|
+
authorized: "authorized";
|
|
28962
|
+
settled: "settled";
|
|
28963
|
+
}>>;
|
|
28964
|
+
}, z.core.$strict>>;
|
|
28965
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
28966
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
28967
|
+
exclusive: "exclusive";
|
|
28968
|
+
inclusive: "inclusive";
|
|
28969
|
+
}>>;
|
|
28970
|
+
tax_code: z.ZodOptional<z.ZodObject<{
|
|
28971
|
+
id: z.ZodString;
|
|
28972
|
+
}, z.core.$strict>>;
|
|
28973
|
+
}, z.core.$strict>>;
|
|
28974
|
+
invoice: z.ZodOptional<z.ZodObject<{
|
|
28975
|
+
id: z.ZodOptional<z.ZodString>;
|
|
28976
|
+
line: z.ZodOptional<z.ZodObject<{
|
|
28977
|
+
id: z.ZodString;
|
|
28978
|
+
}, z.core.$strict>>;
|
|
28979
|
+
}, z.core.$strict>>;
|
|
28980
|
+
filters: z.ZodOptional<z.ZodObject<{
|
|
28981
|
+
features: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
28982
|
+
}, z.core.$strict>>;
|
|
28983
|
+
priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
28984
|
+
effective_at: z.ZodOptional<z.ZodString>;
|
|
28985
|
+
key: z.ZodOptional<z.ZodString>;
|
|
28986
|
+
expires_at: z.ZodOptional<z.ZodString>;
|
|
28987
|
+
voided_at: z.ZodOptional<z.ZodString>;
|
|
28988
|
+
status: z.ZodEnum<{
|
|
28989
|
+
active: "active";
|
|
28990
|
+
pending: "pending";
|
|
28991
|
+
expired: "expired";
|
|
28992
|
+
voided: "voided";
|
|
28993
|
+
}>;
|
|
28994
|
+
}, z.core.$strict>;
|
|
28835
28995
|
export declare const updateCreditGrantExternalSettlementPathParamsWire: z.ZodObject<{
|
|
28836
28996
|
customerId: z.ZodString;
|
|
28837
28997
|
creditGrantId: z.ZodString;
|
|
@@ -28913,6 +29073,7 @@ export declare const listCreditTransactionsQueryParamsWire: z.ZodObject<{
|
|
|
28913
29073
|
filter: z.ZodOptional<z.ZodObject<{
|
|
28914
29074
|
type: z.ZodOptional<z.ZodEnum<{
|
|
28915
29075
|
expired: "expired";
|
|
29076
|
+
voided: "voided";
|
|
28916
29077
|
funded: "funded";
|
|
28917
29078
|
consumed: "consumed";
|
|
28918
29079
|
}>>;
|
|
@@ -28941,6 +29102,7 @@ export declare const listCreditTransactionsResponseWire: z.ZodObject<{
|
|
|
28941
29102
|
booked_at: z.ZodString;
|
|
28942
29103
|
type: z.ZodEnum<{
|
|
28943
29104
|
expired: "expired";
|
|
29105
|
+
voided: "voided";
|
|
28944
29106
|
funded: "funded";
|
|
28945
29107
|
consumed: "consumed";
|
|
28946
29108
|
}>;
|
|
@@ -35567,4 +35729,3 @@ export declare const queryGovernanceAccessResponseWire: z.ZodObject<{
|
|
|
35567
35729
|
}, z.core.$strict>;
|
|
35568
35730
|
}, z.core.$strict>;
|
|
35569
35731
|
}, z.core.$strict>;
|
|
35570
|
-
//# sourceMappingURL=schemas.d.ts.map
|
package/dist/models/schemas.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// Code generated by @openmeter/typespec-typescript. DO NOT EDIT.
|
|
1
2
|
import { z } from 'zod';
|
|
2
3
|
export const labels = z
|
|
3
4
|
.record(z.string(), z.string())
|
|
@@ -410,9 +411,12 @@ export const stringFieldFilterExact = z
|
|
|
410
411
|
}),
|
|
411
412
|
])
|
|
412
413
|
.describe('Filters on the given string field value by exact match. All properties are optional; provide exactly one to specify the comparison.');
|
|
414
|
+
export const creditGrantVoidPaymentAdjustment = z
|
|
415
|
+
.enum(['none'])
|
|
416
|
+
.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.');
|
|
413
417
|
export const creditTransactionType = z
|
|
414
|
-
.enum(['funded', 'consumed', 'expired'])
|
|
415
|
-
.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.');
|
|
418
|
+
.enum(['funded', 'consumed', 'expired', 'voided'])
|
|
419
|
+
.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.');
|
|
416
420
|
export const chargesExpand = z
|
|
417
421
|
.enum(['real_time_usage'])
|
|
418
422
|
.describe("Expands for customer charges. Values: - `real_time_usage`: The charge's real-time usage.");
|
|
@@ -1930,6 +1934,13 @@ export const listPlansParamsFilter = z
|
|
|
1930
1934
|
currency: stringFieldFilterExact.optional(),
|
|
1931
1935
|
})
|
|
1932
1936
|
.describe('Filter options for listing plans.');
|
|
1937
|
+
export const voidCreditGrantRequest = z
|
|
1938
|
+
.object({
|
|
1939
|
+
paymentAdjustment: creditGrantVoidPaymentAdjustment
|
|
1940
|
+
.optional()
|
|
1941
|
+
.default('none'),
|
|
1942
|
+
})
|
|
1943
|
+
.describe('Request body for voiding a credit grant.');
|
|
1933
1944
|
export const subscriptionCreate = z
|
|
1934
1945
|
.object({
|
|
1935
1946
|
labels: labels.optional(),
|
|
@@ -4363,6 +4374,12 @@ export const createCreditAdjustmentPathParams = z.object({
|
|
|
4363
4374
|
});
|
|
4364
4375
|
export const createCreditAdjustmentBody = createCreditAdjustmentRequest;
|
|
4365
4376
|
export const createCreditAdjustmentResponse = creditAdjustment;
|
|
4377
|
+
export const voidCreditGrantPathParams = z.object({
|
|
4378
|
+
customerId: ulid,
|
|
4379
|
+
creditGrantId: ulid,
|
|
4380
|
+
});
|
|
4381
|
+
export const voidCreditGrantBody = voidCreditGrantRequest;
|
|
4382
|
+
export const voidCreditGrantResponse = creditGrant;
|
|
4366
4383
|
export const updateCreditGrantExternalSettlementPathParams = z.object({
|
|
4367
4384
|
customerId: ulid,
|
|
4368
4385
|
creditGrantId: ulid,
|
|
@@ -5272,9 +5289,12 @@ export const stringFieldFilterExactWire = z
|
|
|
5272
5289
|
}),
|
|
5273
5290
|
])
|
|
5274
5291
|
.describe('Filters on the given string field value by exact match. All properties are optional; provide exactly one to specify the comparison.');
|
|
5292
|
+
export const creditGrantVoidPaymentAdjustmentWire = z
|
|
5293
|
+
.enum(['none'])
|
|
5294
|
+
.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.');
|
|
5275
5295
|
export const creditTransactionTypeWire = z
|
|
5276
|
-
.enum(['funded', 'consumed', 'expired'])
|
|
5277
|
-
.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.');
|
|
5296
|
+
.enum(['funded', 'consumed', 'expired', 'voided'])
|
|
5297
|
+
.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.');
|
|
5278
5298
|
export const chargesExpandWire = z
|
|
5279
5299
|
.enum(['real_time_usage'])
|
|
5280
5300
|
.describe("Expands for customer charges. Values: - `real_time_usage`: The charge's real-time usage.");
|
|
@@ -6792,6 +6812,13 @@ export const listPlansParamsFilterWire = z
|
|
|
6792
6812
|
currency: stringFieldFilterExactWire.optional(),
|
|
6793
6813
|
})
|
|
6794
6814
|
.describe('Filter options for listing plans.');
|
|
6815
|
+
export const voidCreditGrantRequestWire = z
|
|
6816
|
+
.strictObject({
|
|
6817
|
+
payment_adjustment: creditGrantVoidPaymentAdjustmentWire
|
|
6818
|
+
.optional()
|
|
6819
|
+
.default('none'),
|
|
6820
|
+
})
|
|
6821
|
+
.describe('Request body for voiding a credit grant.');
|
|
6795
6822
|
export const subscriptionCreateWire = z
|
|
6796
6823
|
.strictObject({
|
|
6797
6824
|
labels: labelsWire.optional(),
|
|
@@ -9243,6 +9270,12 @@ export const createCreditAdjustmentPathParamsWire = z.object({
|
|
|
9243
9270
|
});
|
|
9244
9271
|
export const createCreditAdjustmentBodyWire = createCreditAdjustmentRequestWire;
|
|
9245
9272
|
export const createCreditAdjustmentResponseWire = creditAdjustmentWire;
|
|
9273
|
+
export const voidCreditGrantPathParamsWire = z.object({
|
|
9274
|
+
customerId: ulidWire,
|
|
9275
|
+
creditGrantId: ulidWire,
|
|
9276
|
+
});
|
|
9277
|
+
export const voidCreditGrantBodyWire = voidCreditGrantRequestWire;
|
|
9278
|
+
export const voidCreditGrantResponseWire = creditGrantWire;
|
|
9246
9279
|
export const updateCreditGrantExternalSettlementPathParamsWire = z.object({
|
|
9247
9280
|
customerId: ulidWire,
|
|
9248
9281
|
creditGrantId: ulidWire,
|
|
@@ -9740,4 +9773,3 @@ export const queryGovernanceAccessQueryParamsWire = z.object({
|
|
|
9740
9773
|
});
|
|
9741
9774
|
export const queryGovernanceAccessBodyWire = governanceQueryRequestWire;
|
|
9742
9775
|
export const queryGovernanceAccessResponseWire = governanceQueryResponseWire;
|
|
9743
|
-
//# sourceMappingURL=schemas.js.map
|