@workers-community/workers-types 4.20250422.0 → 4.20250424.0

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.
Files changed (3) hide show
  1. package/index.d.ts +10 -0
  2. package/index.ts +10 -0
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -4416,8 +4416,18 @@ declare abstract class AiGateway {
4416
4416
  interface AutoRAGInternalError extends Error {}
4417
4417
  interface AutoRAGNotFoundError extends Error {}
4418
4418
  interface AutoRAGUnauthorizedError extends Error {}
4419
+ type ComparisonFilter = {
4420
+ key: string;
4421
+ type: "eq" | "ne" | "gt" | "gte" | "lt" | "lte";
4422
+ value: string | number | boolean;
4423
+ };
4424
+ type CompoundFilter = {
4425
+ type: "and" | "or";
4426
+ filters: ComparisonFilter[];
4427
+ };
4419
4428
  type AutoRagSearchRequest = {
4420
4429
  query: string;
4430
+ filters?: CompoundFilter | ComparisonFilter;
4421
4431
  max_num_results?: number;
4422
4432
  ranking_options?: {
4423
4433
  ranker?: string;
package/index.ts CHANGED
@@ -4432,8 +4432,18 @@ export declare abstract class AiGateway {
4432
4432
  export interface AutoRAGInternalError extends Error {}
4433
4433
  export interface AutoRAGNotFoundError extends Error {}
4434
4434
  export interface AutoRAGUnauthorizedError extends Error {}
4435
+ export type ComparisonFilter = {
4436
+ key: string;
4437
+ type: "eq" | "ne" | "gt" | "gte" | "lt" | "lte";
4438
+ value: string | number | boolean;
4439
+ };
4440
+ export type CompoundFilter = {
4441
+ type: "and" | "or";
4442
+ filters: ComparisonFilter[];
4443
+ };
4435
4444
  export type AutoRagSearchRequest = {
4436
4445
  query: string;
4446
+ filters?: CompoundFilter | ComparisonFilter;
4437
4447
  max_num_results?: number;
4438
4448
  ranking_options?: {
4439
4449
  ranker?: string;
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  },
8
8
  "author": "Workers Community",
9
9
  "license": "MIT OR Apache-2.0",
10
- "version": "4.20250422.0",
10
+ "version": "4.20250424.0",
11
11
  "exports": {
12
12
  ".": {
13
13
  "types": "./index.d.ts",