@openmeter/sdk 1.0.0-beta-e728f3a1d4ee → 1.0.0-beta-8daddaa2afed
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/cjs/src/client/schemas.d.cts +10 -5
- package/dist/cjs/src/zod/index.cjs +17 -5
- package/dist/cjs/src/zod/index.d.cts +10 -10
- package/dist/cjs/src/zod/index.js.map +1 -1
- package/dist/cjs/{tsconfig.a363cba5.tsbuildinfo → tsconfig.0f5cb85e.tsbuildinfo} +1 -1
- package/dist/cjs/{tsconfig.a50a52a7.tsbuildinfo → tsconfig.5bdc0a71.tsbuildinfo} +1 -1
- package/dist/src/client/schemas.d.ts +10 -5
- package/dist/src/zod/index.d.ts +10 -10
- package/dist/src/zod/index.js +17 -5
- package/dist/src/zod/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -7497,16 +7497,21 @@ export interface components {
|
|
|
7497
7497
|
value: number;
|
|
7498
7498
|
/**
|
|
7499
7499
|
* @description Type of the threshold.
|
|
7500
|
-
* @example
|
|
7500
|
+
* @example usage_value
|
|
7501
7501
|
*/
|
|
7502
7502
|
type: components['schemas']['NotificationRuleBalanceThresholdValueType'];
|
|
7503
7503
|
};
|
|
7504
7504
|
/**
|
|
7505
7505
|
* Notification balance threshold type
|
|
7506
|
-
* @description Type of the rule in the balance threshold specification
|
|
7506
|
+
* @description Type of the rule in the balance threshold specification:
|
|
7507
|
+
* * `balance_value`: threshold defined by the remaining balance value based on usage and the total of grants in the current usage period
|
|
7508
|
+
* * `usage_percentage`: threshold defined by the usage percentage compared to the total of grants in the current usage period
|
|
7509
|
+
* * `usage_value`: threshold defined by the usage value in the current usage period
|
|
7510
|
+
* * `NUMBER` (**deprecated**): see `usage_value`
|
|
7511
|
+
* * `PERCENT` (**deprecated**): see `usage_percentage`
|
|
7507
7512
|
* @enum {string}
|
|
7508
7513
|
*/
|
|
7509
|
-
NotificationRuleBalanceThresholdValueType: 'PERCENT' | 'NUMBER';
|
|
7514
|
+
NotificationRuleBalanceThresholdValueType: 'PERCENT' | 'NUMBER' | 'balance_value' | 'usage_percentage' | 'usage_value';
|
|
7510
7515
|
/** @description Union type for requests creating new notification rule with certain type. */
|
|
7511
7516
|
NotificationRuleCreateRequest: components['schemas']['NotificationRuleBalanceThresholdCreateRequest'] | components['schemas']['NotificationRuleEntitlementResetCreateRequest'] | components['schemas']['NotificationRuleInvoiceCreatedCreateRequest'] | components['schemas']['NotificationRuleInvoiceUpdatedCreateRequest'];
|
|
7512
7517
|
/** @description Notification rule with entitlements.reset type. */
|
|
@@ -10525,7 +10530,7 @@ export interface components {
|
|
|
10525
10530
|
/** @description Include deleted customers. */
|
|
10526
10531
|
'queryCustomerList.includeDeleted': boolean;
|
|
10527
10532
|
/** @description Filter customers by key.
|
|
10528
|
-
* Case-
|
|
10533
|
+
* Case-insensitive partial match. */
|
|
10529
10534
|
'queryCustomerList.key': string;
|
|
10530
10535
|
/** @description Filter customers by name.
|
|
10531
10536
|
* Case-insensitive partial match. */
|
|
@@ -14634,7 +14639,7 @@ export interface operations {
|
|
|
14634
14639
|
/** @description Include deleted customers. */
|
|
14635
14640
|
includeDeleted?: components['parameters']['queryCustomerList.includeDeleted'];
|
|
14636
14641
|
/** @description Filter customers by key.
|
|
14637
|
-
* Case-
|
|
14642
|
+
* Case-insensitive partial match. */
|
|
14638
14643
|
key?: components['parameters']['queryCustomerList.key'];
|
|
14639
14644
|
/** @description Filter customers by name.
|
|
14640
14645
|
* Case-insensitive partial match. */
|
|
@@ -4525,7 +4525,7 @@ exports.listCustomersQueryParams = zod_1.z.object({
|
|
|
4525
4525
|
key: zod_1.z.coerce
|
|
4526
4526
|
.string()
|
|
4527
4527
|
.optional()
|
|
4528
|
-
.describe('Filter customers by key.\nCase-
|
|
4528
|
+
.describe('Filter customers by key.\nCase-insensitive partial match.'),
|
|
4529
4529
|
name: zod_1.z.coerce
|
|
4530
4530
|
.string()
|
|
4531
4531
|
.optional()
|
|
@@ -6948,8 +6948,14 @@ exports.createNotificationRuleBody = zod_1.z
|
|
|
6948
6948
|
.array(zod_1.z
|
|
6949
6949
|
.object({
|
|
6950
6950
|
type: zod_1.z
|
|
6951
|
-
.enum([
|
|
6952
|
-
|
|
6951
|
+
.enum([
|
|
6952
|
+
'PERCENT',
|
|
6953
|
+
'NUMBER',
|
|
6954
|
+
'balance_value',
|
|
6955
|
+
'usage_percentage',
|
|
6956
|
+
'usage_value',
|
|
6957
|
+
])
|
|
6958
|
+
.describe('Type of the rule in the balance threshold specification:\n* `balance_value`: threshold defined by the remaining balance value based on usage and the total of grants in the current usage period\n* `usage_percentage`: threshold defined by the usage percentage compared to the total of grants in the current usage period\n* `usage_value`: threshold defined by the usage value in the current usage period\n* `NUMBER` (**deprecated**): see `usage_value`\n* `PERCENT` (**deprecated**): see `usage_percentage`')
|
|
6953
6959
|
.describe('Type of the threshold.'),
|
|
6954
6960
|
value: zod_1.z.coerce.number().describe('Value of the threshold.'),
|
|
6955
6961
|
})
|
|
@@ -7082,8 +7088,14 @@ exports.updateNotificationRuleBody = zod_1.z
|
|
|
7082
7088
|
.array(zod_1.z
|
|
7083
7089
|
.object({
|
|
7084
7090
|
type: zod_1.z
|
|
7085
|
-
.enum([
|
|
7086
|
-
|
|
7091
|
+
.enum([
|
|
7092
|
+
'PERCENT',
|
|
7093
|
+
'NUMBER',
|
|
7094
|
+
'balance_value',
|
|
7095
|
+
'usage_percentage',
|
|
7096
|
+
'usage_value',
|
|
7097
|
+
])
|
|
7098
|
+
.describe('Type of the rule in the balance threshold specification:\n* `balance_value`: threshold defined by the remaining balance value based on usage and the total of grants in the current usage period\n* `usage_percentage`: threshold defined by the usage percentage compared to the total of grants in the current usage period\n* `usage_value`: threshold defined by the usage value in the current usage period\n* `NUMBER` (**deprecated**): see `usage_value`\n* `PERCENT` (**deprecated**): see `usage_percentage`')
|
|
7087
7099
|
.describe('Type of the threshold.'),
|
|
7088
7100
|
value: zod_1.z.coerce.number().describe('Value of the threshold.'),
|
|
7089
7101
|
})
|
|
@@ -9915,13 +9915,13 @@ export declare const createNotificationRuleBody: zod.ZodUnion<[zod.ZodObject<{
|
|
|
9915
9915
|
features: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
9916
9916
|
name: zod.ZodString;
|
|
9917
9917
|
thresholds: zod.ZodArray<zod.ZodObject<{
|
|
9918
|
-
type: zod.ZodEnum<["PERCENT", "NUMBER"]>;
|
|
9918
|
+
type: zod.ZodEnum<["PERCENT", "NUMBER", "balance_value", "usage_percentage", "usage_value"]>;
|
|
9919
9919
|
value: zod.ZodNumber;
|
|
9920
9920
|
}, "strip", zod.ZodTypeAny, {
|
|
9921
|
-
type: "PERCENT" | "NUMBER";
|
|
9921
|
+
type: "PERCENT" | "NUMBER" | "balance_value" | "usage_percentage" | "usage_value";
|
|
9922
9922
|
value: number;
|
|
9923
9923
|
}, {
|
|
9924
|
-
type: "PERCENT" | "NUMBER";
|
|
9924
|
+
type: "PERCENT" | "NUMBER" | "balance_value" | "usage_percentage" | "usage_value";
|
|
9925
9925
|
value: number;
|
|
9926
9926
|
}>, "many">;
|
|
9927
9927
|
type: zod.ZodEnum<["entitlements.balance.threshold"]>;
|
|
@@ -9930,7 +9930,7 @@ export declare const createNotificationRuleBody: zod.ZodUnion<[zod.ZodObject<{
|
|
|
9930
9930
|
type: "entitlements.balance.threshold";
|
|
9931
9931
|
channels: string[];
|
|
9932
9932
|
thresholds: {
|
|
9933
|
-
type: "PERCENT" | "NUMBER";
|
|
9933
|
+
type: "PERCENT" | "NUMBER" | "balance_value" | "usage_percentage" | "usage_value";
|
|
9934
9934
|
value: number;
|
|
9935
9935
|
}[];
|
|
9936
9936
|
disabled?: boolean | undefined;
|
|
@@ -9940,7 +9940,7 @@ export declare const createNotificationRuleBody: zod.ZodUnion<[zod.ZodObject<{
|
|
|
9940
9940
|
type: "entitlements.balance.threshold";
|
|
9941
9941
|
channels: string[];
|
|
9942
9942
|
thresholds: {
|
|
9943
|
-
type: "PERCENT" | "NUMBER";
|
|
9943
|
+
type: "PERCENT" | "NUMBER" | "balance_value" | "usage_percentage" | "usage_value";
|
|
9944
9944
|
value: number;
|
|
9945
9945
|
}[];
|
|
9946
9946
|
disabled?: boolean | undefined;
|
|
@@ -10025,13 +10025,13 @@ export declare const updateNotificationRuleBody: zod.ZodUnion<[zod.ZodObject<{
|
|
|
10025
10025
|
features: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
10026
10026
|
name: zod.ZodString;
|
|
10027
10027
|
thresholds: zod.ZodArray<zod.ZodObject<{
|
|
10028
|
-
type: zod.ZodEnum<["PERCENT", "NUMBER"]>;
|
|
10028
|
+
type: zod.ZodEnum<["PERCENT", "NUMBER", "balance_value", "usage_percentage", "usage_value"]>;
|
|
10029
10029
|
value: zod.ZodNumber;
|
|
10030
10030
|
}, "strip", zod.ZodTypeAny, {
|
|
10031
|
-
type: "PERCENT" | "NUMBER";
|
|
10031
|
+
type: "PERCENT" | "NUMBER" | "balance_value" | "usage_percentage" | "usage_value";
|
|
10032
10032
|
value: number;
|
|
10033
10033
|
}, {
|
|
10034
|
-
type: "PERCENT" | "NUMBER";
|
|
10034
|
+
type: "PERCENT" | "NUMBER" | "balance_value" | "usage_percentage" | "usage_value";
|
|
10035
10035
|
value: number;
|
|
10036
10036
|
}>, "many">;
|
|
10037
10037
|
type: zod.ZodEnum<["entitlements.balance.threshold"]>;
|
|
@@ -10040,7 +10040,7 @@ export declare const updateNotificationRuleBody: zod.ZodUnion<[zod.ZodObject<{
|
|
|
10040
10040
|
type: "entitlements.balance.threshold";
|
|
10041
10041
|
channels: string[];
|
|
10042
10042
|
thresholds: {
|
|
10043
|
-
type: "PERCENT" | "NUMBER";
|
|
10043
|
+
type: "PERCENT" | "NUMBER" | "balance_value" | "usage_percentage" | "usage_value";
|
|
10044
10044
|
value: number;
|
|
10045
10045
|
}[];
|
|
10046
10046
|
disabled?: boolean | undefined;
|
|
@@ -10050,7 +10050,7 @@ export declare const updateNotificationRuleBody: zod.ZodUnion<[zod.ZodObject<{
|
|
|
10050
10050
|
type: "entitlements.balance.threshold";
|
|
10051
10051
|
channels: string[];
|
|
10052
10052
|
thresholds: {
|
|
10053
|
-
type: "PERCENT" | "NUMBER";
|
|
10053
|
+
type: "PERCENT" | "NUMBER" | "balance_value" | "usage_percentage" | "usage_value";
|
|
10054
10054
|
value: number;
|
|
10055
10055
|
}[];
|
|
10056
10056
|
disabled?: boolean | undefined;
|