@openmeter/sdk 1.0.0-beta-867155d65ac6 → 1.0.0-beta-69a20361d109
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 +28 -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.3e4e1f50.tsbuildinfo → tsconfig.031addd8.tsbuildinfo} +1 -1
- package/dist/cjs/{tsconfig.ae348557.tsbuildinfo → tsconfig.61231e2b.tsbuildinfo} +1 -1
- package/dist/src/client/schemas.d.ts +28 -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
|
@@ -7524,6 +7524,24 @@ export interface components {
|
|
|
7524
7524
|
filterGroupBy?: {
|
|
7525
7525
|
[key: string]: string[];
|
|
7526
7526
|
};
|
|
7527
|
+
/**
|
|
7528
|
+
* @description Optional advanced meter group by filters.
|
|
7529
|
+
* You can use this to filter for values of the meter groupBy fields.
|
|
7530
|
+
* @example {
|
|
7531
|
+
* "model": {
|
|
7532
|
+
* "$in": [
|
|
7533
|
+
* "gpt-4",
|
|
7534
|
+
* "gpt-4o"
|
|
7535
|
+
* ]
|
|
7536
|
+
* },
|
|
7537
|
+
* "type": {
|
|
7538
|
+
* "$eq": "input"
|
|
7539
|
+
* }
|
|
7540
|
+
* }
|
|
7541
|
+
*/
|
|
7542
|
+
advancedMeterGroupByFilters?: {
|
|
7543
|
+
[key: string]: components['schemas']['FilterString'];
|
|
7544
|
+
};
|
|
7527
7545
|
/**
|
|
7528
7546
|
* @description If not specified a single aggregate will be returned for each subject and time window.
|
|
7529
7547
|
* `subject` is a reserved group by value.
|
|
@@ -11130,6 +11148,9 @@ export interface components {
|
|
|
11130
11148
|
'MeterOrderByOrdering.order': components['schemas']['SortOrder'];
|
|
11131
11149
|
/** @description The order by field. */
|
|
11132
11150
|
'MeterOrderByOrdering.orderBy': components['schemas']['MeterOrderBy'];
|
|
11151
|
+
/** @description Optional advanced meter group by filters.
|
|
11152
|
+
* You can use this to filter for values of the meter groupBy fields. */
|
|
11153
|
+
'MeterQuery.advancedMeterGroupByFilters': string;
|
|
11133
11154
|
/** @description Client ID
|
|
11134
11155
|
* Useful to track progress of a query. */
|
|
11135
11156
|
'MeterQuery.clientId': string;
|
|
@@ -11675,6 +11696,7 @@ export type ParameterMarketplaceInstallRequestType = components['parameters']['M
|
|
|
11675
11696
|
export type ParameterMarketplaceOAuth2InstallAuthorizeRequestType = components['parameters']['MarketplaceOAuth2InstallAuthorizeRequest.type'];
|
|
11676
11697
|
export type ParameterMeterOrderByOrderingOrder = components['parameters']['MeterOrderByOrdering.order'];
|
|
11677
11698
|
export type ParameterMeterOrderByOrderingOrderBy = components['parameters']['MeterOrderByOrdering.orderBy'];
|
|
11699
|
+
export type ParameterMeterQueryAdvancedMeterGroupByFilters = components['parameters']['MeterQuery.advancedMeterGroupByFilters'];
|
|
11678
11700
|
export type ParameterMeterQueryClientId = components['parameters']['MeterQuery.clientId'];
|
|
11679
11701
|
export type ParameterMeterQueryFilterCustomerId = components['parameters']['MeterQuery.filterCustomerId'];
|
|
11680
11702
|
export type ParameterMeterQueryFilterGroupBy = components['parameters']['MeterQuery.filterGroupBy'];
|
|
@@ -19125,6 +19147,9 @@ export interface operations {
|
|
|
19125
19147
|
*
|
|
19126
19148
|
* For example: ?filterGroupBy[vendor]=openai&filterGroupBy[model]=gpt-4-turbo */
|
|
19127
19149
|
filterGroupBy?: components['parameters']['MeterQuery.filterGroupBy'];
|
|
19150
|
+
/** @description Optional advanced meter group by filters.
|
|
19151
|
+
* You can use this to filter for values of the meter groupBy fields. */
|
|
19152
|
+
advancedMeterGroupByFilters?: components['parameters']['MeterQuery.advancedMeterGroupByFilters'];
|
|
19128
19153
|
/** @description If not specified a single aggregate will be returned for each subject and time window.
|
|
19129
19154
|
* `subject` is a reserved group by value.
|
|
19130
19155
|
*
|
|
@@ -22006,6 +22031,9 @@ export interface operations {
|
|
|
22006
22031
|
*
|
|
22007
22032
|
* For example: ?filterGroupBy[vendor]=openai&filterGroupBy[model]=gpt-4-turbo */
|
|
22008
22033
|
filterGroupBy?: components['parameters']['MeterQuery.filterGroupBy'];
|
|
22034
|
+
/** @description Optional advanced meter group by filters.
|
|
22035
|
+
* You can use this to filter for values of the meter groupBy fields. */
|
|
22036
|
+
advancedMeterGroupByFilters?: components['parameters']['MeterQuery.advancedMeterGroupByFilters'];
|
|
22009
22037
|
/** @description If not specified a single aggregate will be returned for each subject and time window.
|
|
22010
22038
|
* `subject` is a reserved group by value.
|
|
22011
22039
|
*
|
|
@@ -6044,6 +6044,69 @@ exports.queryMeterPostBodyFilterCustomerIdMax = 100;
|
|
|
6044
6044
|
exports.queryMeterPostBodyGroupByMax = 100;
|
|
6045
6045
|
exports.queryMeterPostBody = zod_1.z
|
|
6046
6046
|
.object({
|
|
6047
|
+
advancedMeterGroupByFilters: zod_1.z
|
|
6048
|
+
.record(zod_1.z.string(), zod_1.z
|
|
6049
|
+
.object({
|
|
6050
|
+
$and: zod_1.z
|
|
6051
|
+
.array(zod_1.z.any())
|
|
6052
|
+
.nullish()
|
|
6053
|
+
.describe('Provide a list of filters to be combined with a logical AND.'),
|
|
6054
|
+
$eq: zod_1.z.coerce
|
|
6055
|
+
.string()
|
|
6056
|
+
.nullish()
|
|
6057
|
+
.describe('The field must be equal to the provided value.'),
|
|
6058
|
+
$gt: zod_1.z.coerce
|
|
6059
|
+
.string()
|
|
6060
|
+
.nullish()
|
|
6061
|
+
.describe('The field must be greater than the provided value.'),
|
|
6062
|
+
$gte: zod_1.z.coerce
|
|
6063
|
+
.string()
|
|
6064
|
+
.nullish()
|
|
6065
|
+
.describe('The field must be greater than or equal to the provided value.'),
|
|
6066
|
+
$ilike: zod_1.z.coerce
|
|
6067
|
+
.string()
|
|
6068
|
+
.nullish()
|
|
6069
|
+
.describe('The field must match the provided value, ignoring case.'),
|
|
6070
|
+
$in: zod_1.z
|
|
6071
|
+
.array(zod_1.z.coerce.string())
|
|
6072
|
+
.nullish()
|
|
6073
|
+
.describe('The field must be in the provided list of values.'),
|
|
6074
|
+
$like: zod_1.z.coerce
|
|
6075
|
+
.string()
|
|
6076
|
+
.nullish()
|
|
6077
|
+
.describe('The field must match the provided value.'),
|
|
6078
|
+
$lt: zod_1.z.coerce
|
|
6079
|
+
.string()
|
|
6080
|
+
.nullish()
|
|
6081
|
+
.describe('The field must be less than the provided value.'),
|
|
6082
|
+
$lte: zod_1.z.coerce
|
|
6083
|
+
.string()
|
|
6084
|
+
.nullish()
|
|
6085
|
+
.describe('The field must be less than or equal to the provided value.'),
|
|
6086
|
+
$ne: zod_1.z.coerce
|
|
6087
|
+
.string()
|
|
6088
|
+
.nullish()
|
|
6089
|
+
.describe('The field must not be equal to the provided value.'),
|
|
6090
|
+
$nilike: zod_1.z.coerce
|
|
6091
|
+
.string()
|
|
6092
|
+
.nullish()
|
|
6093
|
+
.describe('The field must not match the provided value, ignoring case.'),
|
|
6094
|
+
$nin: zod_1.z
|
|
6095
|
+
.array(zod_1.z.coerce.string())
|
|
6096
|
+
.nullish()
|
|
6097
|
+
.describe('The field must not be in the provided list of values.'),
|
|
6098
|
+
$nlike: zod_1.z.coerce
|
|
6099
|
+
.string()
|
|
6100
|
+
.nullish()
|
|
6101
|
+
.describe('The field must not match the provided value.'),
|
|
6102
|
+
$or: zod_1.z
|
|
6103
|
+
.array(zod_1.z.any())
|
|
6104
|
+
.nullish()
|
|
6105
|
+
.describe('Provide a list of filters to be combined with a logical OR.'),
|
|
6106
|
+
})
|
|
6107
|
+
.describe('A filter for a string field.'))
|
|
6108
|
+
.optional()
|
|
6109
|
+
.describe('Optional advanced meter group by filters.\nYou can use this to filter for values of the meter groupBy fields.'),
|
|
6047
6110
|
clientId: zod_1.z.coerce
|
|
6048
6111
|
.string()
|
|
6049
6112
|
.min(1)
|
|
@@ -9235,6 +9235,52 @@ export declare const queryMeterPostBodySubjectMax: 100;
|
|
|
9235
9235
|
export declare const queryMeterPostBodyFilterCustomerIdMax: 100;
|
|
9236
9236
|
export declare const queryMeterPostBodyGroupByMax: 100;
|
|
9237
9237
|
export declare const queryMeterPostBody: zod.ZodObject<{
|
|
9238
|
+
advancedMeterGroupByFilters: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
|
9239
|
+
$and: zod.ZodOptional<zod.ZodNullable<zod.ZodArray<zod.ZodAny, "many">>>;
|
|
9240
|
+
$eq: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
9241
|
+
$gt: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
9242
|
+
$gte: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
9243
|
+
$ilike: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
9244
|
+
$in: zod.ZodOptional<zod.ZodNullable<zod.ZodArray<zod.ZodString, "many">>>;
|
|
9245
|
+
$like: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
9246
|
+
$lt: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
9247
|
+
$lte: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
9248
|
+
$ne: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
9249
|
+
$nilike: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
9250
|
+
$nin: zod.ZodOptional<zod.ZodNullable<zod.ZodArray<zod.ZodString, "many">>>;
|
|
9251
|
+
$nlike: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
9252
|
+
$or: zod.ZodOptional<zod.ZodNullable<zod.ZodArray<zod.ZodAny, "many">>>;
|
|
9253
|
+
}, "strip", zod.ZodTypeAny, {
|
|
9254
|
+
$and?: any[] | null | undefined;
|
|
9255
|
+
$eq?: string | null | undefined;
|
|
9256
|
+
$gt?: string | null | undefined;
|
|
9257
|
+
$gte?: string | null | undefined;
|
|
9258
|
+
$ilike?: string | null | undefined;
|
|
9259
|
+
$in?: string[] | null | undefined;
|
|
9260
|
+
$like?: string | null | undefined;
|
|
9261
|
+
$lt?: string | null | undefined;
|
|
9262
|
+
$lte?: string | null | undefined;
|
|
9263
|
+
$ne?: string | null | undefined;
|
|
9264
|
+
$nilike?: string | null | undefined;
|
|
9265
|
+
$nin?: string[] | null | undefined;
|
|
9266
|
+
$nlike?: string | null | undefined;
|
|
9267
|
+
$or?: any[] | null | undefined;
|
|
9268
|
+
}, {
|
|
9269
|
+
$and?: any[] | null | undefined;
|
|
9270
|
+
$eq?: string | null | undefined;
|
|
9271
|
+
$gt?: string | null | undefined;
|
|
9272
|
+
$gte?: string | null | undefined;
|
|
9273
|
+
$ilike?: string | null | undefined;
|
|
9274
|
+
$in?: string[] | null | undefined;
|
|
9275
|
+
$like?: string | null | undefined;
|
|
9276
|
+
$lt?: string | null | undefined;
|
|
9277
|
+
$lte?: string | null | undefined;
|
|
9278
|
+
$ne?: string | null | undefined;
|
|
9279
|
+
$nilike?: string | null | undefined;
|
|
9280
|
+
$nin?: string[] | null | undefined;
|
|
9281
|
+
$nlike?: string | null | undefined;
|
|
9282
|
+
$or?: any[] | null | undefined;
|
|
9283
|
+
}>>>;
|
|
9238
9284
|
clientId: zod.ZodOptional<zod.ZodString>;
|
|
9239
9285
|
filterCustomerId: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
9240
9286
|
filterGroupBy: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodArray<zod.ZodString, "many">>>;
|
|
@@ -9251,6 +9297,22 @@ export declare const queryMeterPostBody: zod.ZodObject<{
|
|
|
9251
9297
|
to?: Date | undefined;
|
|
9252
9298
|
subject?: string[] | undefined;
|
|
9253
9299
|
clientId?: string | undefined;
|
|
9300
|
+
advancedMeterGroupByFilters?: Record<string, {
|
|
9301
|
+
$and?: any[] | null | undefined;
|
|
9302
|
+
$eq?: string | null | undefined;
|
|
9303
|
+
$gt?: string | null | undefined;
|
|
9304
|
+
$gte?: string | null | undefined;
|
|
9305
|
+
$ilike?: string | null | undefined;
|
|
9306
|
+
$in?: string[] | null | undefined;
|
|
9307
|
+
$like?: string | null | undefined;
|
|
9308
|
+
$lt?: string | null | undefined;
|
|
9309
|
+
$lte?: string | null | undefined;
|
|
9310
|
+
$ne?: string | null | undefined;
|
|
9311
|
+
$nilike?: string | null | undefined;
|
|
9312
|
+
$nin?: string[] | null | undefined;
|
|
9313
|
+
$nlike?: string | null | undefined;
|
|
9314
|
+
$or?: any[] | null | undefined;
|
|
9315
|
+
}> | undefined;
|
|
9254
9316
|
groupBy?: string[] | undefined;
|
|
9255
9317
|
filterCustomerId?: string[] | undefined;
|
|
9256
9318
|
filterGroupBy?: Record<string, string[]> | undefined;
|
|
@@ -9261,6 +9323,22 @@ export declare const queryMeterPostBody: zod.ZodObject<{
|
|
|
9261
9323
|
windowTimeZone?: string | undefined;
|
|
9262
9324
|
subject?: string[] | undefined;
|
|
9263
9325
|
clientId?: string | undefined;
|
|
9326
|
+
advancedMeterGroupByFilters?: Record<string, {
|
|
9327
|
+
$and?: any[] | null | undefined;
|
|
9328
|
+
$eq?: string | null | undefined;
|
|
9329
|
+
$gt?: string | null | undefined;
|
|
9330
|
+
$gte?: string | null | undefined;
|
|
9331
|
+
$ilike?: string | null | undefined;
|
|
9332
|
+
$in?: string[] | null | undefined;
|
|
9333
|
+
$like?: string | null | undefined;
|
|
9334
|
+
$lt?: string | null | undefined;
|
|
9335
|
+
$lte?: string | null | undefined;
|
|
9336
|
+
$ne?: string | null | undefined;
|
|
9337
|
+
$nilike?: string | null | undefined;
|
|
9338
|
+
$nin?: string[] | null | undefined;
|
|
9339
|
+
$nlike?: string | null | undefined;
|
|
9340
|
+
$or?: any[] | null | undefined;
|
|
9341
|
+
}> | undefined;
|
|
9264
9342
|
groupBy?: string[] | undefined;
|
|
9265
9343
|
filterCustomerId?: string[] | undefined;
|
|
9266
9344
|
filterGroupBy?: Record<string, string[]> | undefined;
|