@mongodb-js/mql-typescript 0.4.15 → 0.5.2

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.
@@ -1,18 +1,41 @@
1
1
  import { z } from 'zod';
2
2
  export declare const Operator: z.ZodObject<{
3
3
  name: z.ZodString;
4
+ minVersion: z.ZodString;
4
5
  link: z.ZodString;
5
- type: z.ZodArray<z.ZodEnum<["accumulator", "stage", "query", "fieldQuery", "filter", "window", "geometry", "switchBranch", "resolvesToAny", "resolvesToNumber", "resolvesToDouble", "resolvesToString", "resolvesToObject", "resolvesToArray", "resolvesToBinData", "resolvesToObjectId", "resolvesToBool", "resolvesToDate", "resolvesToNull", "resolvesToRegex", "resolvesToJavascript", "resolvesToInt", "resolvesToTimestamp", "resolvesToLong", "resolvesToDecimal", "searchOperator"]>, "many">;
6
+ generic: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7
+ type: z.ZodArray<z.ZodUnion<[z.ZodEnum<["pipeline", "accumulator", "stage", "updateStage", "inputStage", "outputStage", "query", "update", "fieldQuery", "filter", "window", "geometry", "switchBranch", "resolvesToAny", "resolvesToNumber", "resolvesToDouble", "resolvesToString", "resolvesToObject", "resolvesToArray", "resolvesToBinData", "resolvesToObjectId", "resolvesToBool", "resolvesToDate", "resolvesToNull", "resolvesToRegex", "resolvesToJavascript", "resolvesToInt", "resolvesToTimestamp", "resolvesToLong", "resolvesToDecimal", "searchOperator"]>, z.ZodObject<{
8
+ name: z.ZodEnum<["pipeline", "accumulator", "stage", "updateStage", "inputStage", "outputStage", "query", "update", "fieldQuery", "filter", "window", "geometry", "switchBranch", "resolvesToAny", "resolvesToNumber", "resolvesToDouble", "resolvesToString", "resolvesToObject", "resolvesToArray", "resolvesToBinData", "resolvesToObjectId", "resolvesToBool", "resolvesToDate", "resolvesToNull", "resolvesToRegex", "resolvesToJavascript", "resolvesToInt", "resolvesToTimestamp", "resolvesToLong", "resolvesToDecimal", "searchOperator"]>;
9
+ generic: z.ZodOptional<z.ZodString>;
10
+ }, "strip", z.ZodTypeAny, {
11
+ name: "pipeline" | "filter" | "accumulator" | "stage" | "updateStage" | "inputStage" | "outputStage" | "query" | "update" | "fieldQuery" | "window" | "geometry" | "switchBranch" | "resolvesToAny" | "resolvesToNumber" | "resolvesToDouble" | "resolvesToString" | "resolvesToObject" | "resolvesToArray" | "resolvesToBinData" | "resolvesToObjectId" | "resolvesToBool" | "resolvesToDate" | "resolvesToNull" | "resolvesToRegex" | "resolvesToJavascript" | "resolvesToInt" | "resolvesToTimestamp" | "resolvesToLong" | "resolvesToDecimal" | "searchOperator";
12
+ generic?: string | undefined;
13
+ }, {
14
+ name: "pipeline" | "filter" | "accumulator" | "stage" | "updateStage" | "inputStage" | "outputStage" | "query" | "update" | "fieldQuery" | "window" | "geometry" | "switchBranch" | "resolvesToAny" | "resolvesToNumber" | "resolvesToDouble" | "resolvesToString" | "resolvesToObject" | "resolvesToArray" | "resolvesToBinData" | "resolvesToObjectId" | "resolvesToBool" | "resolvesToDate" | "resolvesToNull" | "resolvesToRegex" | "resolvesToJavascript" | "resolvesToInt" | "resolvesToTimestamp" | "resolvesToLong" | "resolvesToDecimal" | "searchOperator";
15
+ generic?: string | undefined;
16
+ }>]>, "many">;
6
17
  encode: z.ZodEnum<["array", "object", "single"]>;
7
18
  description: z.ZodString;
8
19
  wrapObject: z.ZodDefault<z.ZodBoolean>;
9
20
  arguments: z.ZodOptional<z.ZodArray<z.ZodObject<{
10
21
  name: z.ZodString;
11
- type: z.ZodArray<z.ZodEnum<["accumulator", "query", "fieldQuery", "pipeline", "untypedPipeline", "window", "expression", "expressionMap", "geometry", "fieldPath", "unprefixedFieldPath", "timeUnit", "sortSpec", "any", "granularity", "fullDocument", "fullDocumentBeforeChange", "accumulatorPercentile", "whenMatched", "whenNotMatched", "outCollection", "range", "sortBy", "geoPoint", "resolvesToNumber", "numberFieldPath", "number", "resolvesToDouble", "doubleFieldPath", "double", "resolvesToString", "stringFieldPath", "string", "resolvesToObject", "objectFieldPath", "object", "resolvesToArray", "arrayFieldPath", "array", "resolvesToBinData", "binDataFieldPath", "binData", "resolvesToObjectId", "objectIdFieldPath", "objectId", "resolvesToBool", "boolFieldPath", "bool", "resolvesToDate", "dateFieldPath", "date", "resolvesToNull", "nullFieldPath", "null", "resolvesToRegex", "regexFieldPath", "regex", "resolvesToJavascript", "javascriptFieldPath", "javascript", "resolvesToInt", "intFieldPath", "int", "resolvesToTimestamp", "timestampFieldPath", "timestamp", "resolvesToLong", "longFieldPath", "long", "resolvesToDecimal", "decimalFieldPath", "decimal", "searchPath", "searchScore", "searchOperator", "searchHighlight"]>, "many">;
22
+ minVersion: z.ZodOptional<z.ZodString>;
23
+ type: z.ZodArray<z.ZodUnion<[z.ZodEnum<["stage", "updateStage", "inputStage", "outputStage", "accumulator", "query", "fieldQuery", "pipeline", "updatePipeline", "untypedPipeline", "window", "expression", "expressionMap", "geometry", "unprefixedFieldPath", "timeUnit", "sortSpec", "granularity", "timeGranularity", "fullDocument", "fullDocumentBeforeChange", "accumulatorPercentile", "whenMatched", "whenNotMatched", "scoreNormalization", "outCollection", "range", "sortBy", "geoPoint", "resolvesToAny", "fieldPath", "any", "resolvesToNumber", "numberFieldPath", "number", "resolvesToDouble", "doubleFieldPath", "double", "resolvesToString", "stringFieldPath", "string", "resolvesToObject", "objectFieldPath", "object", "resolvesToArray", "arrayFieldPath", "array", "resolvesToBinData", "binDataFieldPath", "binData", "resolvesToObjectId", "objectIdFieldPath", "objectId", "resolvesToBool", "boolFieldPath", "bool", "resolvesToDate", "dateFieldPath", "date", "resolvesToNull", "nullFieldPath", "null", "resolvesToRegex", "regexFieldPath", "regex", "resolvesToJavascript", "javascriptFieldPath", "javascript", "resolvesToInt", "intFieldPath", "int", "resolvesToTimestamp", "timestampFieldPath", "timestamp", "resolvesToLong", "longFieldPath", "long", "resolvesToDecimal", "decimalFieldPath", "decimal", "searchPath", "searchScore", "bitwiseOperation", "searchOperator"]>, z.ZodObject<{
24
+ name: z.ZodEnum<["stage", "updateStage", "inputStage", "outputStage", "accumulator", "query", "fieldQuery", "pipeline", "updatePipeline", "untypedPipeline", "window", "expression", "expressionMap", "geometry", "unprefixedFieldPath", "timeUnit", "sortSpec", "granularity", "timeGranularity", "fullDocument", "fullDocumentBeforeChange", "accumulatorPercentile", "whenMatched", "whenNotMatched", "scoreNormalization", "outCollection", "range", "sortBy", "geoPoint", "resolvesToAny", "fieldPath", "any", "resolvesToNumber", "numberFieldPath", "number", "resolvesToDouble", "doubleFieldPath", "double", "resolvesToString", "stringFieldPath", "string", "resolvesToObject", "objectFieldPath", "object", "resolvesToArray", "arrayFieldPath", "array", "resolvesToBinData", "binDataFieldPath", "binData", "resolvesToObjectId", "objectIdFieldPath", "objectId", "resolvesToBool", "boolFieldPath", "bool", "resolvesToDate", "dateFieldPath", "date", "resolvesToNull", "nullFieldPath", "null", "resolvesToRegex", "regexFieldPath", "regex", "resolvesToJavascript", "javascriptFieldPath", "javascript", "resolvesToInt", "intFieldPath", "int", "resolvesToTimestamp", "timestampFieldPath", "timestamp", "resolvesToLong", "longFieldPath", "long", "resolvesToDecimal", "decimalFieldPath", "decimal", "searchPath", "searchScore", "bitwiseOperation", "searchOperator"]>;
25
+ generic: z.ZodOptional<z.ZodString>;
26
+ }, "strip", z.ZodTypeAny, {
27
+ name: "string" | "number" | "object" | "pipeline" | "date" | "null" | "array" | "accumulator" | "stage" | "updateStage" | "inputStage" | "outputStage" | "query" | "fieldQuery" | "window" | "geometry" | "resolvesToAny" | "resolvesToNumber" | "resolvesToDouble" | "resolvesToString" | "resolvesToObject" | "resolvesToArray" | "resolvesToBinData" | "resolvesToObjectId" | "resolvesToBool" | "resolvesToDate" | "resolvesToNull" | "resolvesToRegex" | "resolvesToJavascript" | "resolvesToInt" | "resolvesToTimestamp" | "resolvesToLong" | "resolvesToDecimal" | "searchOperator" | "updatePipeline" | "untypedPipeline" | "expression" | "expressionMap" | "unprefixedFieldPath" | "timeUnit" | "sortSpec" | "granularity" | "timeGranularity" | "fullDocument" | "fullDocumentBeforeChange" | "accumulatorPercentile" | "whenMatched" | "whenNotMatched" | "scoreNormalization" | "outCollection" | "range" | "sortBy" | "geoPoint" | "fieldPath" | "any" | "numberFieldPath" | "doubleFieldPath" | "double" | "stringFieldPath" | "objectFieldPath" | "arrayFieldPath" | "binDataFieldPath" | "binData" | "objectIdFieldPath" | "objectId" | "boolFieldPath" | "bool" | "dateFieldPath" | "nullFieldPath" | "regexFieldPath" | "regex" | "javascriptFieldPath" | "javascript" | "intFieldPath" | "int" | "timestampFieldPath" | "timestamp" | "longFieldPath" | "long" | "decimalFieldPath" | "decimal" | "searchPath" | "searchScore" | "bitwiseOperation";
28
+ generic?: string | undefined;
29
+ }, {
30
+ name: "string" | "number" | "object" | "pipeline" | "date" | "null" | "array" | "accumulator" | "stage" | "updateStage" | "inputStage" | "outputStage" | "query" | "fieldQuery" | "window" | "geometry" | "resolvesToAny" | "resolvesToNumber" | "resolvesToDouble" | "resolvesToString" | "resolvesToObject" | "resolvesToArray" | "resolvesToBinData" | "resolvesToObjectId" | "resolvesToBool" | "resolvesToDate" | "resolvesToNull" | "resolvesToRegex" | "resolvesToJavascript" | "resolvesToInt" | "resolvesToTimestamp" | "resolvesToLong" | "resolvesToDecimal" | "searchOperator" | "updatePipeline" | "untypedPipeline" | "expression" | "expressionMap" | "unprefixedFieldPath" | "timeUnit" | "sortSpec" | "granularity" | "timeGranularity" | "fullDocument" | "fullDocumentBeforeChange" | "accumulatorPercentile" | "whenMatched" | "whenNotMatched" | "scoreNormalization" | "outCollection" | "range" | "sortBy" | "geoPoint" | "fieldPath" | "any" | "numberFieldPath" | "doubleFieldPath" | "double" | "stringFieldPath" | "objectFieldPath" | "arrayFieldPath" | "binDataFieldPath" | "binData" | "objectIdFieldPath" | "objectId" | "boolFieldPath" | "bool" | "dateFieldPath" | "nullFieldPath" | "regexFieldPath" | "regex" | "javascriptFieldPath" | "javascript" | "intFieldPath" | "int" | "timestampFieldPath" | "timestamp" | "longFieldPath" | "long" | "decimalFieldPath" | "decimal" | "searchPath" | "searchScore" | "bitwiseOperation";
31
+ generic?: string | undefined;
32
+ }>]>, "many">;
12
33
  description: z.ZodOptional<z.ZodString>;
13
34
  optional: z.ZodOptional<z.ZodBoolean>;
14
35
  valueMin: z.ZodOptional<z.ZodNumber>;
15
36
  valueMax: z.ZodOptional<z.ZodNumber>;
37
+ minItems: z.ZodOptional<z.ZodNumber>;
38
+ maxItems: z.ZodOptional<z.ZodNumber>;
16
39
  variadic: z.ZodOptional<z.ZodEnum<["array", "object"]>>;
17
40
  variadicMin: z.ZodOptional<z.ZodNumber>;
18
41
  default: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodAny, "many">, z.ZodBoolean, z.ZodNumber, z.ZodString]>>;
@@ -27,29 +50,43 @@ export declare const Operator: z.ZodObject<{
27
50
  name: string;
28
51
  description?: string | undefined;
29
52
  }>, "many">>;
53
+ arguments: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
30
54
  }, "strict", z.ZodTypeAny, {
31
55
  name: string;
32
- type: ("string" | "number" | "object" | "date" | "null" | "array" | "accumulator" | "query" | "fieldQuery" | "window" | "geometry" | "resolvesToNumber" | "resolvesToDouble" | "resolvesToString" | "resolvesToObject" | "resolvesToArray" | "resolvesToBinData" | "resolvesToObjectId" | "resolvesToBool" | "resolvesToDate" | "resolvesToNull" | "resolvesToRegex" | "resolvesToJavascript" | "resolvesToInt" | "resolvesToTimestamp" | "resolvesToLong" | "resolvesToDecimal" | "searchOperator" | "pipeline" | "untypedPipeline" | "expression" | "expressionMap" | "fieldPath" | "unprefixedFieldPath" | "timeUnit" | "sortSpec" | "any" | "granularity" | "fullDocument" | "fullDocumentBeforeChange" | "accumulatorPercentile" | "whenMatched" | "whenNotMatched" | "outCollection" | "range" | "sortBy" | "geoPoint" | "numberFieldPath" | "doubleFieldPath" | "double" | "stringFieldPath" | "objectFieldPath" | "arrayFieldPath" | "binDataFieldPath" | "binData" | "objectIdFieldPath" | "objectId" | "boolFieldPath" | "bool" | "dateFieldPath" | "nullFieldPath" | "regexFieldPath" | "regex" | "javascriptFieldPath" | "javascript" | "intFieldPath" | "int" | "timestampFieldPath" | "timestamp" | "longFieldPath" | "long" | "decimalFieldPath" | "decimal" | "searchPath" | "searchScore" | "searchHighlight")[];
56
+ type: ("string" | "number" | "object" | "pipeline" | "date" | "null" | "array" | "accumulator" | "stage" | "updateStage" | "inputStage" | "outputStage" | "query" | "fieldQuery" | "window" | "geometry" | "resolvesToAny" | "resolvesToNumber" | "resolvesToDouble" | "resolvesToString" | "resolvesToObject" | "resolvesToArray" | "resolvesToBinData" | "resolvesToObjectId" | "resolvesToBool" | "resolvesToDate" | "resolvesToNull" | "resolvesToRegex" | "resolvesToJavascript" | "resolvesToInt" | "resolvesToTimestamp" | "resolvesToLong" | "resolvesToDecimal" | "searchOperator" | "updatePipeline" | "untypedPipeline" | "expression" | "expressionMap" | "unprefixedFieldPath" | "timeUnit" | "sortSpec" | "granularity" | "timeGranularity" | "fullDocument" | "fullDocumentBeforeChange" | "accumulatorPercentile" | "whenMatched" | "whenNotMatched" | "scoreNormalization" | "outCollection" | "range" | "sortBy" | "geoPoint" | "fieldPath" | "any" | "numberFieldPath" | "doubleFieldPath" | "double" | "stringFieldPath" | "objectFieldPath" | "arrayFieldPath" | "binDataFieldPath" | "binData" | "objectIdFieldPath" | "objectId" | "boolFieldPath" | "bool" | "dateFieldPath" | "nullFieldPath" | "regexFieldPath" | "regex" | "javascriptFieldPath" | "javascript" | "intFieldPath" | "int" | "timestampFieldPath" | "timestamp" | "longFieldPath" | "long" | "decimalFieldPath" | "decimal" | "searchPath" | "searchScore" | "bitwiseOperation" | {
57
+ name: "string" | "number" | "object" | "pipeline" | "date" | "null" | "array" | "accumulator" | "stage" | "updateStage" | "inputStage" | "outputStage" | "query" | "fieldQuery" | "window" | "geometry" | "resolvesToAny" | "resolvesToNumber" | "resolvesToDouble" | "resolvesToString" | "resolvesToObject" | "resolvesToArray" | "resolvesToBinData" | "resolvesToObjectId" | "resolvesToBool" | "resolvesToDate" | "resolvesToNull" | "resolvesToRegex" | "resolvesToJavascript" | "resolvesToInt" | "resolvesToTimestamp" | "resolvesToLong" | "resolvesToDecimal" | "searchOperator" | "updatePipeline" | "untypedPipeline" | "expression" | "expressionMap" | "unprefixedFieldPath" | "timeUnit" | "sortSpec" | "granularity" | "timeGranularity" | "fullDocument" | "fullDocumentBeforeChange" | "accumulatorPercentile" | "whenMatched" | "whenNotMatched" | "scoreNormalization" | "outCollection" | "range" | "sortBy" | "geoPoint" | "fieldPath" | "any" | "numberFieldPath" | "doubleFieldPath" | "double" | "stringFieldPath" | "objectFieldPath" | "arrayFieldPath" | "binDataFieldPath" | "binData" | "objectIdFieldPath" | "objectId" | "boolFieldPath" | "bool" | "dateFieldPath" | "nullFieldPath" | "regexFieldPath" | "regex" | "javascriptFieldPath" | "javascript" | "intFieldPath" | "int" | "timestampFieldPath" | "timestamp" | "longFieldPath" | "long" | "decimalFieldPath" | "decimal" | "searchPath" | "searchScore" | "bitwiseOperation";
58
+ generic?: string | undefined;
59
+ })[];
33
60
  mergeObject: boolean;
34
61
  default?: string | number | boolean | any[] | undefined;
62
+ minVersion?: string | undefined;
35
63
  description?: string | undefined;
36
64
  optional?: boolean | undefined;
37
65
  valueMin?: number | undefined;
38
66
  valueMax?: number | undefined;
67
+ minItems?: number | undefined;
68
+ maxItems?: number | undefined;
39
69
  variadic?: "object" | "array" | undefined;
40
70
  variadicMin?: number | undefined;
41
71
  syntheticVariables?: {
42
72
  name: string;
43
73
  description?: string | undefined;
44
74
  }[] | undefined;
75
+ arguments?: any[] | undefined;
45
76
  }, {
46
77
  name: string;
47
- type: ("string" | "number" | "object" | "date" | "null" | "array" | "accumulator" | "query" | "fieldQuery" | "window" | "geometry" | "resolvesToNumber" | "resolvesToDouble" | "resolvesToString" | "resolvesToObject" | "resolvesToArray" | "resolvesToBinData" | "resolvesToObjectId" | "resolvesToBool" | "resolvesToDate" | "resolvesToNull" | "resolvesToRegex" | "resolvesToJavascript" | "resolvesToInt" | "resolvesToTimestamp" | "resolvesToLong" | "resolvesToDecimal" | "searchOperator" | "pipeline" | "untypedPipeline" | "expression" | "expressionMap" | "fieldPath" | "unprefixedFieldPath" | "timeUnit" | "sortSpec" | "any" | "granularity" | "fullDocument" | "fullDocumentBeforeChange" | "accumulatorPercentile" | "whenMatched" | "whenNotMatched" | "outCollection" | "range" | "sortBy" | "geoPoint" | "numberFieldPath" | "doubleFieldPath" | "double" | "stringFieldPath" | "objectFieldPath" | "arrayFieldPath" | "binDataFieldPath" | "binData" | "objectIdFieldPath" | "objectId" | "boolFieldPath" | "bool" | "dateFieldPath" | "nullFieldPath" | "regexFieldPath" | "regex" | "javascriptFieldPath" | "javascript" | "intFieldPath" | "int" | "timestampFieldPath" | "timestamp" | "longFieldPath" | "long" | "decimalFieldPath" | "decimal" | "searchPath" | "searchScore" | "searchHighlight")[];
78
+ type: ("string" | "number" | "object" | "pipeline" | "date" | "null" | "array" | "accumulator" | "stage" | "updateStage" | "inputStage" | "outputStage" | "query" | "fieldQuery" | "window" | "geometry" | "resolvesToAny" | "resolvesToNumber" | "resolvesToDouble" | "resolvesToString" | "resolvesToObject" | "resolvesToArray" | "resolvesToBinData" | "resolvesToObjectId" | "resolvesToBool" | "resolvesToDate" | "resolvesToNull" | "resolvesToRegex" | "resolvesToJavascript" | "resolvesToInt" | "resolvesToTimestamp" | "resolvesToLong" | "resolvesToDecimal" | "searchOperator" | "updatePipeline" | "untypedPipeline" | "expression" | "expressionMap" | "unprefixedFieldPath" | "timeUnit" | "sortSpec" | "granularity" | "timeGranularity" | "fullDocument" | "fullDocumentBeforeChange" | "accumulatorPercentile" | "whenMatched" | "whenNotMatched" | "scoreNormalization" | "outCollection" | "range" | "sortBy" | "geoPoint" | "fieldPath" | "any" | "numberFieldPath" | "doubleFieldPath" | "double" | "stringFieldPath" | "objectFieldPath" | "arrayFieldPath" | "binDataFieldPath" | "binData" | "objectIdFieldPath" | "objectId" | "boolFieldPath" | "bool" | "dateFieldPath" | "nullFieldPath" | "regexFieldPath" | "regex" | "javascriptFieldPath" | "javascript" | "intFieldPath" | "int" | "timestampFieldPath" | "timestamp" | "longFieldPath" | "long" | "decimalFieldPath" | "decimal" | "searchPath" | "searchScore" | "bitwiseOperation" | {
79
+ name: "string" | "number" | "object" | "pipeline" | "date" | "null" | "array" | "accumulator" | "stage" | "updateStage" | "inputStage" | "outputStage" | "query" | "fieldQuery" | "window" | "geometry" | "resolvesToAny" | "resolvesToNumber" | "resolvesToDouble" | "resolvesToString" | "resolvesToObject" | "resolvesToArray" | "resolvesToBinData" | "resolvesToObjectId" | "resolvesToBool" | "resolvesToDate" | "resolvesToNull" | "resolvesToRegex" | "resolvesToJavascript" | "resolvesToInt" | "resolvesToTimestamp" | "resolvesToLong" | "resolvesToDecimal" | "searchOperator" | "updatePipeline" | "untypedPipeline" | "expression" | "expressionMap" | "unprefixedFieldPath" | "timeUnit" | "sortSpec" | "granularity" | "timeGranularity" | "fullDocument" | "fullDocumentBeforeChange" | "accumulatorPercentile" | "whenMatched" | "whenNotMatched" | "scoreNormalization" | "outCollection" | "range" | "sortBy" | "geoPoint" | "fieldPath" | "any" | "numberFieldPath" | "doubleFieldPath" | "double" | "stringFieldPath" | "objectFieldPath" | "arrayFieldPath" | "binDataFieldPath" | "binData" | "objectIdFieldPath" | "objectId" | "boolFieldPath" | "bool" | "dateFieldPath" | "nullFieldPath" | "regexFieldPath" | "regex" | "javascriptFieldPath" | "javascript" | "intFieldPath" | "int" | "timestampFieldPath" | "timestamp" | "longFieldPath" | "long" | "decimalFieldPath" | "decimal" | "searchPath" | "searchScore" | "bitwiseOperation";
80
+ generic?: string | undefined;
81
+ })[];
48
82
  default?: string | number | boolean | any[] | undefined;
83
+ minVersion?: string | undefined;
49
84
  description?: string | undefined;
50
85
  optional?: boolean | undefined;
51
86
  valueMin?: number | undefined;
52
87
  valueMax?: number | undefined;
88
+ minItems?: number | undefined;
89
+ maxItems?: number | undefined;
53
90
  variadic?: "object" | "array" | undefined;
54
91
  variadicMin?: number | undefined;
55
92
  mergeObject?: boolean | undefined;
@@ -57,12 +94,13 @@ export declare const Operator: z.ZodObject<{
57
94
  name: string;
58
95
  description?: string | undefined;
59
96
  }[] | undefined;
97
+ arguments?: any[] | undefined;
60
98
  }>, "many">>;
61
- tests: z.ZodOptional<z.ZodArray<z.ZodObject<{
99
+ tests: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
62
100
  name: z.ZodString;
63
101
  link: z.ZodOptional<z.ZodString>;
64
102
  pipeline: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">;
65
- schema: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
103
+ schema: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
66
104
  types: z.ZodArray<z.ZodUnion<[z.ZodObject<{
67
105
  bsonType: z.ZodEnum<["Array", "Binary", "Boolean", "Code", "CodeWScope", "Date", "Decimal128", "Double", "Int32", "Int64", "Long", "MaxKey", "MinKey", "Null", "ObjectId", "BSONRegExp", "String", "BSONSymbol", "Timestamp", "Undefined", "Document", "Number"]>;
68
106
  }, "strict", z.ZodTypeAny, {
@@ -108,7 +146,7 @@ export declare const Operator: z.ZodObject<{
108
146
  bsonType: "Document";
109
147
  fields: Record<string, Record<string, any>>;
110
148
  })[];
111
- }>>>]>>;
149
+ }>>>, z.ZodString]>>;
112
150
  }, "strict", z.ZodTypeAny, {
113
151
  name: string;
114
152
  pipeline: Record<string, any>[];
@@ -139,31 +177,127 @@ export declare const Operator: z.ZodObject<{
139
177
  fields: Record<string, Record<string, any>>;
140
178
  })[];
141
179
  }>> | undefined;
142
- }>, "many">>;
180
+ }>, z.ZodObject<{
181
+ name: z.ZodString;
182
+ link: z.ZodOptional<z.ZodString>;
183
+ filter: z.ZodRecord<z.ZodString, z.ZodAny>;
184
+ update: z.ZodRecord<z.ZodString, z.ZodAny>;
185
+ schema: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
186
+ types: z.ZodArray<z.ZodUnion<[z.ZodObject<{
187
+ bsonType: z.ZodEnum<["Array", "Binary", "Boolean", "Code", "CodeWScope", "Date", "Decimal128", "Double", "Int32", "Int64", "Long", "MaxKey", "MinKey", "Null", "ObjectId", "BSONRegExp", "String", "BSONSymbol", "Timestamp", "Undefined", "Document", "Number"]>;
188
+ }, "strict", z.ZodTypeAny, {
189
+ bsonType: "Array" | "Binary" | "Boolean" | "Code" | "CodeWScope" | "Date" | "Decimal128" | "Double" | "Int32" | "Int64" | "Long" | "MaxKey" | "MinKey" | "Null" | "ObjectId" | "BSONRegExp" | "String" | "BSONSymbol" | "Timestamp" | "Undefined" | "Document" | "Number";
190
+ }, {
191
+ bsonType: "Array" | "Binary" | "Boolean" | "Code" | "CodeWScope" | "Date" | "Decimal128" | "Double" | "Int32" | "Int64" | "Long" | "MaxKey" | "MinKey" | "Null" | "ObjectId" | "BSONRegExp" | "String" | "BSONSymbol" | "Timestamp" | "Undefined" | "Document" | "Number";
192
+ }>, z.ZodObject<{
193
+ bsonType: z.ZodLiteral<"Array">;
194
+ types: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">;
195
+ }, "strict", z.ZodTypeAny, {
196
+ types: Record<string, any>[];
197
+ bsonType: "Array";
198
+ }, {
199
+ types: Record<string, any>[];
200
+ bsonType: "Array";
201
+ }>, z.ZodObject<{
202
+ bsonType: z.ZodLiteral<"Document">;
203
+ fields: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>;
204
+ }, "strict", z.ZodTypeAny, {
205
+ bsonType: "Document";
206
+ fields: Record<string, Record<string, any>>;
207
+ }, {
208
+ bsonType: "Document";
209
+ fields: Record<string, Record<string, any>>;
210
+ }>]>, "many">;
211
+ }, "strict", z.ZodTypeAny, {
212
+ types: ({
213
+ bsonType: "Array" | "Binary" | "Boolean" | "Code" | "CodeWScope" | "Date" | "Decimal128" | "Double" | "Int32" | "Int64" | "Long" | "MaxKey" | "MinKey" | "Null" | "ObjectId" | "BSONRegExp" | "String" | "BSONSymbol" | "Timestamp" | "Undefined" | "Document" | "Number";
214
+ } | {
215
+ types: Record<string, any>[];
216
+ bsonType: "Array";
217
+ } | {
218
+ bsonType: "Document";
219
+ fields: Record<string, Record<string, any>>;
220
+ })[];
221
+ }, {
222
+ types: ({
223
+ bsonType: "Array" | "Binary" | "Boolean" | "Code" | "CodeWScope" | "Date" | "Decimal128" | "Double" | "Int32" | "Int64" | "Long" | "MaxKey" | "MinKey" | "Null" | "ObjectId" | "BSONRegExp" | "String" | "BSONSymbol" | "Timestamp" | "Undefined" | "Document" | "Number";
224
+ } | {
225
+ types: Record<string, any>[];
226
+ bsonType: "Array";
227
+ } | {
228
+ bsonType: "Document";
229
+ fields: Record<string, Record<string, any>>;
230
+ })[];
231
+ }>>>, z.ZodString]>>;
232
+ }, "strict", z.ZodTypeAny, {
233
+ name: string;
234
+ filter: Record<string, any>;
235
+ update: Record<string, any>;
236
+ link?: string | undefined;
237
+ schema?: string | Record<string, Record<string, {
238
+ types: ({
239
+ bsonType: "Array" | "Binary" | "Boolean" | "Code" | "CodeWScope" | "Date" | "Decimal128" | "Double" | "Int32" | "Int64" | "Long" | "MaxKey" | "MinKey" | "Null" | "ObjectId" | "BSONRegExp" | "String" | "BSONSymbol" | "Timestamp" | "Undefined" | "Document" | "Number";
240
+ } | {
241
+ types: Record<string, any>[];
242
+ bsonType: "Array";
243
+ } | {
244
+ bsonType: "Document";
245
+ fields: Record<string, Record<string, any>>;
246
+ })[];
247
+ }>> | undefined;
248
+ }, {
249
+ name: string;
250
+ filter: Record<string, any>;
251
+ update: Record<string, any>;
252
+ link?: string | undefined;
253
+ schema?: string | Record<string, Record<string, {
254
+ types: ({
255
+ bsonType: "Array" | "Binary" | "Boolean" | "Code" | "CodeWScope" | "Date" | "Decimal128" | "Double" | "Int32" | "Int64" | "Long" | "MaxKey" | "MinKey" | "Null" | "ObjectId" | "BSONRegExp" | "String" | "BSONSymbol" | "Timestamp" | "Undefined" | "Document" | "Number";
256
+ } | {
257
+ types: Record<string, any>[];
258
+ bsonType: "Array";
259
+ } | {
260
+ bsonType: "Document";
261
+ fields: Record<string, Record<string, any>>;
262
+ })[];
263
+ }>> | undefined;
264
+ }>]>, "many">>;
143
265
  }, "strict", z.ZodTypeAny, {
144
266
  link: string;
145
267
  name: string;
146
- type: ("filter" | "accumulator" | "stage" | "query" | "fieldQuery" | "window" | "geometry" | "switchBranch" | "resolvesToAny" | "resolvesToNumber" | "resolvesToDouble" | "resolvesToString" | "resolvesToObject" | "resolvesToArray" | "resolvesToBinData" | "resolvesToObjectId" | "resolvesToBool" | "resolvesToDate" | "resolvesToNull" | "resolvesToRegex" | "resolvesToJavascript" | "resolvesToInt" | "resolvesToTimestamp" | "resolvesToLong" | "resolvesToDecimal" | "searchOperator")[];
268
+ minVersion: string;
269
+ type: ("pipeline" | "filter" | "accumulator" | "stage" | "updateStage" | "inputStage" | "outputStage" | "query" | "update" | "fieldQuery" | "window" | "geometry" | "switchBranch" | "resolvesToAny" | "resolvesToNumber" | "resolvesToDouble" | "resolvesToString" | "resolvesToObject" | "resolvesToArray" | "resolvesToBinData" | "resolvesToObjectId" | "resolvesToBool" | "resolvesToDate" | "resolvesToNull" | "resolvesToRegex" | "resolvesToJavascript" | "resolvesToInt" | "resolvesToTimestamp" | "resolvesToLong" | "resolvesToDecimal" | "searchOperator" | {
270
+ name: "pipeline" | "filter" | "accumulator" | "stage" | "updateStage" | "inputStage" | "outputStage" | "query" | "update" | "fieldQuery" | "window" | "geometry" | "switchBranch" | "resolvesToAny" | "resolvesToNumber" | "resolvesToDouble" | "resolvesToString" | "resolvesToObject" | "resolvesToArray" | "resolvesToBinData" | "resolvesToObjectId" | "resolvesToBool" | "resolvesToDate" | "resolvesToNull" | "resolvesToRegex" | "resolvesToJavascript" | "resolvesToInt" | "resolvesToTimestamp" | "resolvesToLong" | "resolvesToDecimal" | "searchOperator";
271
+ generic?: string | undefined;
272
+ })[];
147
273
  encode: "object" | "array" | "single";
148
274
  description: string;
149
275
  wrapObject: boolean;
276
+ generic?: string[] | undefined;
150
277
  arguments?: {
151
278
  name: string;
152
- type: ("string" | "number" | "object" | "date" | "null" | "array" | "accumulator" | "query" | "fieldQuery" | "window" | "geometry" | "resolvesToNumber" | "resolvesToDouble" | "resolvesToString" | "resolvesToObject" | "resolvesToArray" | "resolvesToBinData" | "resolvesToObjectId" | "resolvesToBool" | "resolvesToDate" | "resolvesToNull" | "resolvesToRegex" | "resolvesToJavascript" | "resolvesToInt" | "resolvesToTimestamp" | "resolvesToLong" | "resolvesToDecimal" | "searchOperator" | "pipeline" | "untypedPipeline" | "expression" | "expressionMap" | "fieldPath" | "unprefixedFieldPath" | "timeUnit" | "sortSpec" | "any" | "granularity" | "fullDocument" | "fullDocumentBeforeChange" | "accumulatorPercentile" | "whenMatched" | "whenNotMatched" | "outCollection" | "range" | "sortBy" | "geoPoint" | "numberFieldPath" | "doubleFieldPath" | "double" | "stringFieldPath" | "objectFieldPath" | "arrayFieldPath" | "binDataFieldPath" | "binData" | "objectIdFieldPath" | "objectId" | "boolFieldPath" | "bool" | "dateFieldPath" | "nullFieldPath" | "regexFieldPath" | "regex" | "javascriptFieldPath" | "javascript" | "intFieldPath" | "int" | "timestampFieldPath" | "timestamp" | "longFieldPath" | "long" | "decimalFieldPath" | "decimal" | "searchPath" | "searchScore" | "searchHighlight")[];
279
+ type: ("string" | "number" | "object" | "pipeline" | "date" | "null" | "array" | "accumulator" | "stage" | "updateStage" | "inputStage" | "outputStage" | "query" | "fieldQuery" | "window" | "geometry" | "resolvesToAny" | "resolvesToNumber" | "resolvesToDouble" | "resolvesToString" | "resolvesToObject" | "resolvesToArray" | "resolvesToBinData" | "resolvesToObjectId" | "resolvesToBool" | "resolvesToDate" | "resolvesToNull" | "resolvesToRegex" | "resolvesToJavascript" | "resolvesToInt" | "resolvesToTimestamp" | "resolvesToLong" | "resolvesToDecimal" | "searchOperator" | "updatePipeline" | "untypedPipeline" | "expression" | "expressionMap" | "unprefixedFieldPath" | "timeUnit" | "sortSpec" | "granularity" | "timeGranularity" | "fullDocument" | "fullDocumentBeforeChange" | "accumulatorPercentile" | "whenMatched" | "whenNotMatched" | "scoreNormalization" | "outCollection" | "range" | "sortBy" | "geoPoint" | "fieldPath" | "any" | "numberFieldPath" | "doubleFieldPath" | "double" | "stringFieldPath" | "objectFieldPath" | "arrayFieldPath" | "binDataFieldPath" | "binData" | "objectIdFieldPath" | "objectId" | "boolFieldPath" | "bool" | "dateFieldPath" | "nullFieldPath" | "regexFieldPath" | "regex" | "javascriptFieldPath" | "javascript" | "intFieldPath" | "int" | "timestampFieldPath" | "timestamp" | "longFieldPath" | "long" | "decimalFieldPath" | "decimal" | "searchPath" | "searchScore" | "bitwiseOperation" | {
280
+ name: "string" | "number" | "object" | "pipeline" | "date" | "null" | "array" | "accumulator" | "stage" | "updateStage" | "inputStage" | "outputStage" | "query" | "fieldQuery" | "window" | "geometry" | "resolvesToAny" | "resolvesToNumber" | "resolvesToDouble" | "resolvesToString" | "resolvesToObject" | "resolvesToArray" | "resolvesToBinData" | "resolvesToObjectId" | "resolvesToBool" | "resolvesToDate" | "resolvesToNull" | "resolvesToRegex" | "resolvesToJavascript" | "resolvesToInt" | "resolvesToTimestamp" | "resolvesToLong" | "resolvesToDecimal" | "searchOperator" | "updatePipeline" | "untypedPipeline" | "expression" | "expressionMap" | "unprefixedFieldPath" | "timeUnit" | "sortSpec" | "granularity" | "timeGranularity" | "fullDocument" | "fullDocumentBeforeChange" | "accumulatorPercentile" | "whenMatched" | "whenNotMatched" | "scoreNormalization" | "outCollection" | "range" | "sortBy" | "geoPoint" | "fieldPath" | "any" | "numberFieldPath" | "doubleFieldPath" | "double" | "stringFieldPath" | "objectFieldPath" | "arrayFieldPath" | "binDataFieldPath" | "binData" | "objectIdFieldPath" | "objectId" | "boolFieldPath" | "bool" | "dateFieldPath" | "nullFieldPath" | "regexFieldPath" | "regex" | "javascriptFieldPath" | "javascript" | "intFieldPath" | "int" | "timestampFieldPath" | "timestamp" | "longFieldPath" | "long" | "decimalFieldPath" | "decimal" | "searchPath" | "searchScore" | "bitwiseOperation";
281
+ generic?: string | undefined;
282
+ })[];
153
283
  mergeObject: boolean;
154
284
  default?: string | number | boolean | any[] | undefined;
285
+ minVersion?: string | undefined;
155
286
  description?: string | undefined;
156
287
  optional?: boolean | undefined;
157
288
  valueMin?: number | undefined;
158
289
  valueMax?: number | undefined;
290
+ minItems?: number | undefined;
291
+ maxItems?: number | undefined;
159
292
  variadic?: "object" | "array" | undefined;
160
293
  variadicMin?: number | undefined;
161
294
  syntheticVariables?: {
162
295
  name: string;
163
296
  description?: string | undefined;
164
297
  }[] | undefined;
298
+ arguments?: any[] | undefined;
165
299
  }[] | undefined;
166
- tests?: {
300
+ tests?: ({
167
301
  name: string;
168
302
  pipeline: Record<string, any>[];
169
303
  link?: string | undefined;
@@ -178,22 +312,49 @@ export declare const Operator: z.ZodObject<{
178
312
  fields: Record<string, Record<string, any>>;
179
313
  })[];
180
314
  }>> | undefined;
181
- }[] | undefined;
315
+ } | {
316
+ name: string;
317
+ filter: Record<string, any>;
318
+ update: Record<string, any>;
319
+ link?: string | undefined;
320
+ schema?: string | Record<string, Record<string, {
321
+ types: ({
322
+ bsonType: "Array" | "Binary" | "Boolean" | "Code" | "CodeWScope" | "Date" | "Decimal128" | "Double" | "Int32" | "Int64" | "Long" | "MaxKey" | "MinKey" | "Null" | "ObjectId" | "BSONRegExp" | "String" | "BSONSymbol" | "Timestamp" | "Undefined" | "Document" | "Number";
323
+ } | {
324
+ types: Record<string, any>[];
325
+ bsonType: "Array";
326
+ } | {
327
+ bsonType: "Document";
328
+ fields: Record<string, Record<string, any>>;
329
+ })[];
330
+ }>> | undefined;
331
+ })[] | undefined;
182
332
  }, {
183
333
  link: string;
184
334
  name: string;
185
- type: ("filter" | "accumulator" | "stage" | "query" | "fieldQuery" | "window" | "geometry" | "switchBranch" | "resolvesToAny" | "resolvesToNumber" | "resolvesToDouble" | "resolvesToString" | "resolvesToObject" | "resolvesToArray" | "resolvesToBinData" | "resolvesToObjectId" | "resolvesToBool" | "resolvesToDate" | "resolvesToNull" | "resolvesToRegex" | "resolvesToJavascript" | "resolvesToInt" | "resolvesToTimestamp" | "resolvesToLong" | "resolvesToDecimal" | "searchOperator")[];
335
+ minVersion: string;
336
+ type: ("pipeline" | "filter" | "accumulator" | "stage" | "updateStage" | "inputStage" | "outputStage" | "query" | "update" | "fieldQuery" | "window" | "geometry" | "switchBranch" | "resolvesToAny" | "resolvesToNumber" | "resolvesToDouble" | "resolvesToString" | "resolvesToObject" | "resolvesToArray" | "resolvesToBinData" | "resolvesToObjectId" | "resolvesToBool" | "resolvesToDate" | "resolvesToNull" | "resolvesToRegex" | "resolvesToJavascript" | "resolvesToInt" | "resolvesToTimestamp" | "resolvesToLong" | "resolvesToDecimal" | "searchOperator" | {
337
+ name: "pipeline" | "filter" | "accumulator" | "stage" | "updateStage" | "inputStage" | "outputStage" | "query" | "update" | "fieldQuery" | "window" | "geometry" | "switchBranch" | "resolvesToAny" | "resolvesToNumber" | "resolvesToDouble" | "resolvesToString" | "resolvesToObject" | "resolvesToArray" | "resolvesToBinData" | "resolvesToObjectId" | "resolvesToBool" | "resolvesToDate" | "resolvesToNull" | "resolvesToRegex" | "resolvesToJavascript" | "resolvesToInt" | "resolvesToTimestamp" | "resolvesToLong" | "resolvesToDecimal" | "searchOperator";
338
+ generic?: string | undefined;
339
+ })[];
186
340
  encode: "object" | "array" | "single";
187
341
  description: string;
342
+ generic?: string[] | undefined;
188
343
  wrapObject?: boolean | undefined;
189
344
  arguments?: {
190
345
  name: string;
191
- type: ("string" | "number" | "object" | "date" | "null" | "array" | "accumulator" | "query" | "fieldQuery" | "window" | "geometry" | "resolvesToNumber" | "resolvesToDouble" | "resolvesToString" | "resolvesToObject" | "resolvesToArray" | "resolvesToBinData" | "resolvesToObjectId" | "resolvesToBool" | "resolvesToDate" | "resolvesToNull" | "resolvesToRegex" | "resolvesToJavascript" | "resolvesToInt" | "resolvesToTimestamp" | "resolvesToLong" | "resolvesToDecimal" | "searchOperator" | "pipeline" | "untypedPipeline" | "expression" | "expressionMap" | "fieldPath" | "unprefixedFieldPath" | "timeUnit" | "sortSpec" | "any" | "granularity" | "fullDocument" | "fullDocumentBeforeChange" | "accumulatorPercentile" | "whenMatched" | "whenNotMatched" | "outCollection" | "range" | "sortBy" | "geoPoint" | "numberFieldPath" | "doubleFieldPath" | "double" | "stringFieldPath" | "objectFieldPath" | "arrayFieldPath" | "binDataFieldPath" | "binData" | "objectIdFieldPath" | "objectId" | "boolFieldPath" | "bool" | "dateFieldPath" | "nullFieldPath" | "regexFieldPath" | "regex" | "javascriptFieldPath" | "javascript" | "intFieldPath" | "int" | "timestampFieldPath" | "timestamp" | "longFieldPath" | "long" | "decimalFieldPath" | "decimal" | "searchPath" | "searchScore" | "searchHighlight")[];
346
+ type: ("string" | "number" | "object" | "pipeline" | "date" | "null" | "array" | "accumulator" | "stage" | "updateStage" | "inputStage" | "outputStage" | "query" | "fieldQuery" | "window" | "geometry" | "resolvesToAny" | "resolvesToNumber" | "resolvesToDouble" | "resolvesToString" | "resolvesToObject" | "resolvesToArray" | "resolvesToBinData" | "resolvesToObjectId" | "resolvesToBool" | "resolvesToDate" | "resolvesToNull" | "resolvesToRegex" | "resolvesToJavascript" | "resolvesToInt" | "resolvesToTimestamp" | "resolvesToLong" | "resolvesToDecimal" | "searchOperator" | "updatePipeline" | "untypedPipeline" | "expression" | "expressionMap" | "unprefixedFieldPath" | "timeUnit" | "sortSpec" | "granularity" | "timeGranularity" | "fullDocument" | "fullDocumentBeforeChange" | "accumulatorPercentile" | "whenMatched" | "whenNotMatched" | "scoreNormalization" | "outCollection" | "range" | "sortBy" | "geoPoint" | "fieldPath" | "any" | "numberFieldPath" | "doubleFieldPath" | "double" | "stringFieldPath" | "objectFieldPath" | "arrayFieldPath" | "binDataFieldPath" | "binData" | "objectIdFieldPath" | "objectId" | "boolFieldPath" | "bool" | "dateFieldPath" | "nullFieldPath" | "regexFieldPath" | "regex" | "javascriptFieldPath" | "javascript" | "intFieldPath" | "int" | "timestampFieldPath" | "timestamp" | "longFieldPath" | "long" | "decimalFieldPath" | "decimal" | "searchPath" | "searchScore" | "bitwiseOperation" | {
347
+ name: "string" | "number" | "object" | "pipeline" | "date" | "null" | "array" | "accumulator" | "stage" | "updateStage" | "inputStage" | "outputStage" | "query" | "fieldQuery" | "window" | "geometry" | "resolvesToAny" | "resolvesToNumber" | "resolvesToDouble" | "resolvesToString" | "resolvesToObject" | "resolvesToArray" | "resolvesToBinData" | "resolvesToObjectId" | "resolvesToBool" | "resolvesToDate" | "resolvesToNull" | "resolvesToRegex" | "resolvesToJavascript" | "resolvesToInt" | "resolvesToTimestamp" | "resolvesToLong" | "resolvesToDecimal" | "searchOperator" | "updatePipeline" | "untypedPipeline" | "expression" | "expressionMap" | "unprefixedFieldPath" | "timeUnit" | "sortSpec" | "granularity" | "timeGranularity" | "fullDocument" | "fullDocumentBeforeChange" | "accumulatorPercentile" | "whenMatched" | "whenNotMatched" | "scoreNormalization" | "outCollection" | "range" | "sortBy" | "geoPoint" | "fieldPath" | "any" | "numberFieldPath" | "doubleFieldPath" | "double" | "stringFieldPath" | "objectFieldPath" | "arrayFieldPath" | "binDataFieldPath" | "binData" | "objectIdFieldPath" | "objectId" | "boolFieldPath" | "bool" | "dateFieldPath" | "nullFieldPath" | "regexFieldPath" | "regex" | "javascriptFieldPath" | "javascript" | "intFieldPath" | "int" | "timestampFieldPath" | "timestamp" | "longFieldPath" | "long" | "decimalFieldPath" | "decimal" | "searchPath" | "searchScore" | "bitwiseOperation";
348
+ generic?: string | undefined;
349
+ })[];
192
350
  default?: string | number | boolean | any[] | undefined;
351
+ minVersion?: string | undefined;
193
352
  description?: string | undefined;
194
353
  optional?: boolean | undefined;
195
354
  valueMin?: number | undefined;
196
355
  valueMax?: number | undefined;
356
+ minItems?: number | undefined;
357
+ maxItems?: number | undefined;
197
358
  variadic?: "object" | "array" | undefined;
198
359
  variadicMin?: number | undefined;
199
360
  mergeObject?: boolean | undefined;
@@ -201,8 +362,9 @@ export declare const Operator: z.ZodObject<{
201
362
  name: string;
202
363
  description?: string | undefined;
203
364
  }[] | undefined;
365
+ arguments?: any[] | undefined;
204
366
  }[] | undefined;
205
- tests?: {
367
+ tests?: ({
206
368
  name: string;
207
369
  pipeline: Record<string, any>[];
208
370
  link?: string | undefined;
@@ -217,6 +379,22 @@ export declare const Operator: z.ZodObject<{
217
379
  fields: Record<string, Record<string, any>>;
218
380
  })[];
219
381
  }>> | undefined;
220
- }[] | undefined;
382
+ } | {
383
+ name: string;
384
+ filter: Record<string, any>;
385
+ update: Record<string, any>;
386
+ link?: string | undefined;
387
+ schema?: string | Record<string, Record<string, {
388
+ types: ({
389
+ bsonType: "Array" | "Binary" | "Boolean" | "Code" | "CodeWScope" | "Date" | "Decimal128" | "Double" | "Int32" | "Int64" | "Long" | "MaxKey" | "MinKey" | "Null" | "ObjectId" | "BSONRegExp" | "String" | "BSONSymbol" | "Timestamp" | "Undefined" | "Document" | "Number";
390
+ } | {
391
+ types: Record<string, any>[];
392
+ bsonType: "Array";
393
+ } | {
394
+ bsonType: "Document";
395
+ fields: Record<string, Record<string, any>>;
396
+ })[];
397
+ }>> | undefined;
398
+ })[] | undefined;
221
399
  }>;
222
400
  //# sourceMappingURL=metaschema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"metaschema.d.ts","sourceRoot":"","sources":["../src/metaschema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqNV,CAAC"}
1
+ {"version":3,"file":"metaschema.d.ts","sourceRoot":"","sources":["../src/metaschema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAibV,CAAC"}