@openmeter/sdk 1.0.0-beta-e90abbfba893 → 1.0.0-beta-9faa11e3ca21
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/features.d.cts +9 -0
- package/dist/cjs/src/client/schemas.d.cts +38 -0
- package/dist/cjs/src/zod/index.cjs +63 -0
- package/dist/cjs/src/zod/index.d.cts +78 -0
- package/dist/cjs/src/zod/index.js.map +1 -1
- package/dist/cjs/{tsconfig.1b268017.tsbuildinfo → tsconfig.7b8df2ad.tsbuildinfo} +1 -1
- package/dist/cjs/{tsconfig.90a8e02d.tsbuildinfo → tsconfig.dcef14bc.tsbuildinfo} +1 -1
- package/dist/src/client/features.d.ts +9 -0
- package/dist/src/client/schemas.d.ts +38 -0
- package/dist/src/zod/index.d.ts +78 -0
- package/dist/src/zod/index.js +63 -0
- package/dist/src/zod/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -26,6 +26,9 @@ export declare class Features {
|
|
|
26
26
|
meterGroupByFilters?: {
|
|
27
27
|
[key: string]: string;
|
|
28
28
|
};
|
|
29
|
+
advancedMeterGroupByFilters?: {
|
|
30
|
+
[key: string]: import("./schemas.cjs").components["schemas"]["FilterString"];
|
|
31
|
+
};
|
|
29
32
|
readonly id: string;
|
|
30
33
|
} | undefined>;
|
|
31
34
|
/**
|
|
@@ -46,6 +49,9 @@ export declare class Features {
|
|
|
46
49
|
meterGroupByFilters?: {
|
|
47
50
|
[key: string]: string;
|
|
48
51
|
};
|
|
52
|
+
advancedMeterGroupByFilters?: {
|
|
53
|
+
[key: string]: import("./schemas.cjs").components["schemas"]["FilterString"];
|
|
54
|
+
};
|
|
49
55
|
readonly id: string;
|
|
50
56
|
} | undefined>;
|
|
51
57
|
/**
|
|
@@ -66,6 +72,9 @@ export declare class Features {
|
|
|
66
72
|
meterGroupByFilters?: {
|
|
67
73
|
[key: string]: string;
|
|
68
74
|
};
|
|
75
|
+
advancedMeterGroupByFilters?: {
|
|
76
|
+
[key: string]: import("./schemas.cjs").components["schemas"]["FilterString"];
|
|
77
|
+
};
|
|
69
78
|
readonly id: string;
|
|
70
79
|
}[]>;
|
|
71
80
|
/**
|
|
@@ -5672,6 +5672,25 @@ export interface components {
|
|
|
5672
5672
|
meterGroupByFilters?: {
|
|
5673
5673
|
[key: string]: string;
|
|
5674
5674
|
};
|
|
5675
|
+
/**
|
|
5676
|
+
* Advanced meter group by filters
|
|
5677
|
+
* @description Optional advanced meter group by filters.
|
|
5678
|
+
* You can use this to filter for values of the meter groupBy fields.
|
|
5679
|
+
* @example {
|
|
5680
|
+
* "model": {
|
|
5681
|
+
* "$in": [
|
|
5682
|
+
* "gpt-4",
|
|
5683
|
+
* "gpt-4o"
|
|
5684
|
+
* ]
|
|
5685
|
+
* },
|
|
5686
|
+
* "type": {
|
|
5687
|
+
* "$eq": "input"
|
|
5688
|
+
* }
|
|
5689
|
+
* }
|
|
5690
|
+
*/
|
|
5691
|
+
advancedMeterGroupByFilters?: {
|
|
5692
|
+
[key: string]: components['schemas']['FilterString'];
|
|
5693
|
+
};
|
|
5675
5694
|
/**
|
|
5676
5695
|
* @description Readonly unique ULID identifier.
|
|
5677
5696
|
* @example 01ARZ3NDEKTSV4RRFFQ69G5FAV
|
|
@@ -5715,6 +5734,25 @@ export interface components {
|
|
|
5715
5734
|
meterGroupByFilters?: {
|
|
5716
5735
|
[key: string]: string;
|
|
5717
5736
|
};
|
|
5737
|
+
/**
|
|
5738
|
+
* Advanced meter group by filters
|
|
5739
|
+
* @description Optional advanced meter group by filters.
|
|
5740
|
+
* You can use this to filter for values of the meter groupBy fields.
|
|
5741
|
+
* @example {
|
|
5742
|
+
* "model": {
|
|
5743
|
+
* "$in": [
|
|
5744
|
+
* "gpt-4",
|
|
5745
|
+
* "gpt-4o"
|
|
5746
|
+
* ]
|
|
5747
|
+
* },
|
|
5748
|
+
* "type": {
|
|
5749
|
+
* "$eq": "input"
|
|
5750
|
+
* }
|
|
5751
|
+
* }
|
|
5752
|
+
*/
|
|
5753
|
+
advancedMeterGroupByFilters?: {
|
|
5754
|
+
[key: string]: components['schemas']['FilterString'];
|
|
5755
|
+
};
|
|
5718
5756
|
};
|
|
5719
5757
|
/** @description Limited representation of a feature resource which includes only its unique identifiers (id, key). */
|
|
5720
5758
|
FeatureMeta: {
|
|
@@ -5487,6 +5487,69 @@ exports.createFeatureBodyMeterSlugMax = 64;
|
|
|
5487
5487
|
exports.createFeatureBodyMeterSlugRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
5488
5488
|
exports.createFeatureBody = zod_1.z
|
|
5489
5489
|
.object({
|
|
5490
|
+
advancedMeterGroupByFilters: zod_1.z
|
|
5491
|
+
.record(zod_1.z.string(), zod_1.z
|
|
5492
|
+
.object({
|
|
5493
|
+
$and: zod_1.z
|
|
5494
|
+
.array(zod_1.z.any())
|
|
5495
|
+
.nullish()
|
|
5496
|
+
.describe('Provide a list of filters to be combined with a logical AND.'),
|
|
5497
|
+
$eq: zod_1.z.coerce
|
|
5498
|
+
.string()
|
|
5499
|
+
.nullish()
|
|
5500
|
+
.describe('The field must be equal to the provided value.'),
|
|
5501
|
+
$gt: zod_1.z.coerce
|
|
5502
|
+
.string()
|
|
5503
|
+
.nullish()
|
|
5504
|
+
.describe('The field must be greater than the provided value.'),
|
|
5505
|
+
$gte: zod_1.z.coerce
|
|
5506
|
+
.string()
|
|
5507
|
+
.nullish()
|
|
5508
|
+
.describe('The field must be greater than or equal to the provided value.'),
|
|
5509
|
+
$ilike: zod_1.z.coerce
|
|
5510
|
+
.string()
|
|
5511
|
+
.nullish()
|
|
5512
|
+
.describe('The field must match the provided value, ignoring case.'),
|
|
5513
|
+
$in: zod_1.z
|
|
5514
|
+
.array(zod_1.z.coerce.string())
|
|
5515
|
+
.nullish()
|
|
5516
|
+
.describe('The field must be in the provided list of values.'),
|
|
5517
|
+
$like: zod_1.z.coerce
|
|
5518
|
+
.string()
|
|
5519
|
+
.nullish()
|
|
5520
|
+
.describe('The field must match the provided value.'),
|
|
5521
|
+
$lt: zod_1.z.coerce
|
|
5522
|
+
.string()
|
|
5523
|
+
.nullish()
|
|
5524
|
+
.describe('The field must be less than the provided value.'),
|
|
5525
|
+
$lte: zod_1.z.coerce
|
|
5526
|
+
.string()
|
|
5527
|
+
.nullish()
|
|
5528
|
+
.describe('The field must be less than or equal to the provided value.'),
|
|
5529
|
+
$ne: zod_1.z.coerce
|
|
5530
|
+
.string()
|
|
5531
|
+
.nullish()
|
|
5532
|
+
.describe('The field must not be equal to the provided value.'),
|
|
5533
|
+
$nilike: zod_1.z.coerce
|
|
5534
|
+
.string()
|
|
5535
|
+
.nullish()
|
|
5536
|
+
.describe('The field must not match the provided value, ignoring case.'),
|
|
5537
|
+
$nin: zod_1.z
|
|
5538
|
+
.array(zod_1.z.coerce.string())
|
|
5539
|
+
.nullish()
|
|
5540
|
+
.describe('The field must not be in the provided list of values.'),
|
|
5541
|
+
$nlike: zod_1.z.coerce
|
|
5542
|
+
.string()
|
|
5543
|
+
.nullish()
|
|
5544
|
+
.describe('The field must not match the provided value.'),
|
|
5545
|
+
$or: zod_1.z
|
|
5546
|
+
.array(zod_1.z.any())
|
|
5547
|
+
.nullish()
|
|
5548
|
+
.describe('Provide a list of filters to be combined with a logical OR.'),
|
|
5549
|
+
})
|
|
5550
|
+
.describe('A filter for a string field.'))
|
|
5551
|
+
.optional()
|
|
5552
|
+
.describe('Optional advanced meter group by filters.\nYou can use this to filter for values of the meter groupBy fields.'),
|
|
5490
5553
|
key: zod_1.z.coerce
|
|
5491
5554
|
.string()
|
|
5492
5555
|
.min(1)
|
|
@@ -8705,6 +8705,52 @@ export declare const createFeatureBodyKeyRegExp: RegExp;
|
|
|
8705
8705
|
export declare const createFeatureBodyMeterSlugMax: 64;
|
|
8706
8706
|
export declare const createFeatureBodyMeterSlugRegExp: RegExp;
|
|
8707
8707
|
export declare const createFeatureBody: zod.ZodObject<{
|
|
8708
|
+
advancedMeterGroupByFilters: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
|
8709
|
+
$and: zod.ZodOptional<zod.ZodNullable<zod.ZodArray<zod.ZodAny, "many">>>;
|
|
8710
|
+
$eq: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
8711
|
+
$gt: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
8712
|
+
$gte: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
8713
|
+
$ilike: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
8714
|
+
$in: zod.ZodOptional<zod.ZodNullable<zod.ZodArray<zod.ZodString, "many">>>;
|
|
8715
|
+
$like: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
8716
|
+
$lt: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
8717
|
+
$lte: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
8718
|
+
$ne: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
8719
|
+
$nilike: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
8720
|
+
$nin: zod.ZodOptional<zod.ZodNullable<zod.ZodArray<zod.ZodString, "many">>>;
|
|
8721
|
+
$nlike: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
8722
|
+
$or: zod.ZodOptional<zod.ZodNullable<zod.ZodArray<zod.ZodAny, "many">>>;
|
|
8723
|
+
}, "strip", zod.ZodTypeAny, {
|
|
8724
|
+
$and?: any[] | null | undefined;
|
|
8725
|
+
$eq?: string | null | undefined;
|
|
8726
|
+
$gt?: string | null | undefined;
|
|
8727
|
+
$gte?: string | null | undefined;
|
|
8728
|
+
$ilike?: string | null | undefined;
|
|
8729
|
+
$in?: string[] | null | undefined;
|
|
8730
|
+
$like?: string | null | undefined;
|
|
8731
|
+
$lt?: string | null | undefined;
|
|
8732
|
+
$lte?: string | null | undefined;
|
|
8733
|
+
$ne?: string | null | undefined;
|
|
8734
|
+
$nilike?: string | null | undefined;
|
|
8735
|
+
$nin?: string[] | null | undefined;
|
|
8736
|
+
$nlike?: string | null | undefined;
|
|
8737
|
+
$or?: any[] | null | undefined;
|
|
8738
|
+
}, {
|
|
8739
|
+
$and?: any[] | null | undefined;
|
|
8740
|
+
$eq?: string | null | undefined;
|
|
8741
|
+
$gt?: string | null | undefined;
|
|
8742
|
+
$gte?: string | null | undefined;
|
|
8743
|
+
$ilike?: string | null | undefined;
|
|
8744
|
+
$in?: string[] | null | undefined;
|
|
8745
|
+
$like?: string | null | undefined;
|
|
8746
|
+
$lt?: string | null | undefined;
|
|
8747
|
+
$lte?: string | null | undefined;
|
|
8748
|
+
$ne?: string | null | undefined;
|
|
8749
|
+
$nilike?: string | null | undefined;
|
|
8750
|
+
$nin?: string[] | null | undefined;
|
|
8751
|
+
$nlike?: string | null | undefined;
|
|
8752
|
+
$or?: any[] | null | undefined;
|
|
8753
|
+
}>>>;
|
|
8708
8754
|
key: zod.ZodString;
|
|
8709
8755
|
metadata: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
|
|
8710
8756
|
meterGroupByFilters: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
|
|
@@ -8715,12 +8761,44 @@ export declare const createFeatureBody: zod.ZodObject<{
|
|
|
8715
8761
|
name: string;
|
|
8716
8762
|
meterSlug?: string | undefined;
|
|
8717
8763
|
metadata?: Record<string, string> | undefined;
|
|
8764
|
+
advancedMeterGroupByFilters?: Record<string, {
|
|
8765
|
+
$and?: any[] | null | undefined;
|
|
8766
|
+
$eq?: string | null | undefined;
|
|
8767
|
+
$gt?: string | null | undefined;
|
|
8768
|
+
$gte?: string | null | undefined;
|
|
8769
|
+
$ilike?: string | null | undefined;
|
|
8770
|
+
$in?: string[] | null | undefined;
|
|
8771
|
+
$like?: string | null | undefined;
|
|
8772
|
+
$lt?: string | null | undefined;
|
|
8773
|
+
$lte?: string | null | undefined;
|
|
8774
|
+
$ne?: string | null | undefined;
|
|
8775
|
+
$nilike?: string | null | undefined;
|
|
8776
|
+
$nin?: string[] | null | undefined;
|
|
8777
|
+
$nlike?: string | null | undefined;
|
|
8778
|
+
$or?: any[] | null | undefined;
|
|
8779
|
+
}> | undefined;
|
|
8718
8780
|
meterGroupByFilters?: Record<string, string> | undefined;
|
|
8719
8781
|
}, {
|
|
8720
8782
|
key: string;
|
|
8721
8783
|
name: string;
|
|
8722
8784
|
meterSlug?: string | undefined;
|
|
8723
8785
|
metadata?: Record<string, string> | undefined;
|
|
8786
|
+
advancedMeterGroupByFilters?: Record<string, {
|
|
8787
|
+
$and?: any[] | null | undefined;
|
|
8788
|
+
$eq?: string | null | undefined;
|
|
8789
|
+
$gt?: string | null | undefined;
|
|
8790
|
+
$gte?: string | null | undefined;
|
|
8791
|
+
$ilike?: string | null | undefined;
|
|
8792
|
+
$in?: string[] | null | undefined;
|
|
8793
|
+
$like?: string | null | undefined;
|
|
8794
|
+
$lt?: string | null | undefined;
|
|
8795
|
+
$lte?: string | null | undefined;
|
|
8796
|
+
$ne?: string | null | undefined;
|
|
8797
|
+
$nilike?: string | null | undefined;
|
|
8798
|
+
$nin?: string[] | null | undefined;
|
|
8799
|
+
$nlike?: string | null | undefined;
|
|
8800
|
+
$or?: any[] | null | undefined;
|
|
8801
|
+
}> | undefined;
|
|
8724
8802
|
meterGroupByFilters?: Record<string, string> | undefined;
|
|
8725
8803
|
}>;
|
|
8726
8804
|
/**
|