@mongosh/autocomplete 3.29.1 → 5.0.1

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 (2) hide show
  1. package/lib/index.d.ts +196 -24
  2. package/package.json +5 -5
package/lib/index.d.ts CHANGED
@@ -585,6 +585,24 @@ export declare const BASE_COMPLETIONS: ({
585
585
  readonly score: 1;
586
586
  readonly meta: "expr:set";
587
587
  readonly version: "2.6.0";
588
+ } | {
589
+ readonly name: "$similarityCosine";
590
+ readonly value: "$similarityCosine";
591
+ readonly score: 1;
592
+ readonly meta: "expr:arith";
593
+ readonly version: "8.2.0";
594
+ } | {
595
+ readonly name: "$similarityDotProduct";
596
+ readonly value: "$similarityDotProduct";
597
+ readonly score: 1;
598
+ readonly meta: "expr:arith";
599
+ readonly version: "8.2.0";
600
+ } | {
601
+ readonly name: "$similarityEuclidean";
602
+ readonly value: "$similarityEuclidean";
603
+ readonly score: 1;
604
+ readonly meta: "expr:arith";
605
+ readonly version: "8.2.0";
588
606
  } | {
589
607
  readonly name: "$size";
590
608
  readonly value: "$size";
@@ -1133,6 +1151,22 @@ export declare const BASE_COMPLETIONS: ({
1133
1151
  readonly description: "Adds new field(s) to a document with a computed value, or reassigns an existing field(s) with a computed value. Unlike $addFields, $project can also remove fields.";
1134
1152
  readonly comment: "/**\n * specifications: The fields to\n * include or exclude.\n */\n";
1135
1153
  readonly snippet: "{\n ${1:specification(s)}\n}";
1154
+ } | {
1155
+ readonly name: "$rankFusion";
1156
+ readonly value: "$rankFusion";
1157
+ readonly label: "$rankFusion";
1158
+ readonly outputStage: false;
1159
+ readonly fullScan: false;
1160
+ readonly firstStage: false;
1161
+ readonly score: 1;
1162
+ readonly env: readonly ["atlas"];
1163
+ readonly meta: "stage";
1164
+ readonly version: "8.0.14";
1165
+ readonly apiVersions: readonly [];
1166
+ readonly namespaces: readonly ["coll"];
1167
+ readonly description: "Combines multiple pipelines using reciprocal rank fusion to create hybrid search results.";
1168
+ readonly comment: "/**\n * input.pipelines: Required. Map from name to input pipeline. Each pipeline must be a Ranked Selection Pipeline operating on the same collection. Minimum of one pipeline.\n * combination.weights: Optional. Map from pipeline name to numbers (non-negative). If unspecified, default weight is 1 for each pipeline.\n * scoreDetails: Optional. Default false. Set to true to include detailed scoring information in {$meta: \"scoreDetails\"} for debugging and tuning.\n */\n";
1169
+ readonly snippet: "{\n input: {\n pipelines: {\n ${1:searchPipeline}: [\n {$search: {${2:searchStage}}},\n {$limit: ${3:limit}}\n ],\n ${4:vectorPipeline}: [\n {$vectorSearch: {${5:vectorSearchStage}}}\n ]\n }\n },\n combination: {\n weights: {\n ${6:searchPipeline}: ${7:number},\n ${8:vectorPipeline}: ${9:number}\n }\n },\n scoreDetails: ${10:false}\n}";
1136
1170
  } | {
1137
1171
  readonly name: "$redact";
1138
1172
  readonly value: "$redact";
@@ -1197,6 +1231,22 @@ export declare const BASE_COMPLETIONS: ({
1197
1231
  readonly description: "Randomly selects the specified number of documents from its input.";
1198
1232
  readonly comment: "/**\n * size: The number of documents to sample.\n */\n";
1199
1233
  readonly snippet: "{\n size: ${1:number}\n}";
1234
+ } | {
1235
+ readonly name: "$scoreFusion";
1236
+ readonly value: "$scoreFusion";
1237
+ readonly label: "$scoreFusion";
1238
+ readonly outputStage: false;
1239
+ readonly fullScan: false;
1240
+ readonly firstStage: false;
1241
+ readonly score: 1;
1242
+ readonly env: readonly ["atlas"];
1243
+ readonly meta: "stage";
1244
+ readonly version: "8.2.0";
1245
+ readonly apiVersions: readonly [];
1246
+ readonly namespaces: readonly ["coll"];
1247
+ readonly description: "Combines multiple pipelines using relative score fusion to create hybrid search results.";
1248
+ readonly comment: "/**\n * input.pipelines: Required. Map from name to input pipeline. Each pipeline must be operating on the same collection. Minimum of one pipeline.\n * input.normalization: Required. Normalizes the score to the range 0 to 1 before combining the results. Value can be none, sigmoid or minMaxScaler.\n * combination.weights: Optional. Map from pipeline name to numbers (non-negative). If unspecified, default weight is 1 for each pipeline.\n * combination.method: Optional. Specifies method for combining scores. Value can be avg or expression. Default is avg.\n * combination.expression: Optional. This is the custom expression that is used when combination.method is set to expression.\n * scoreDetails: Optional. Default false. Set to true to include detailed scoring information.\n */\n";
1249
+ readonly snippet: "{\n input: {\n pipelines: {\n ${1:searchPipeline}: [\n {$search: {${2:searchStage}}},\n {$limit: ${3:limit}}\n ],\n ${4:vectorPipeline}: [\n {$vectorSearch: {${5:vectorSearchStage}}}\n ]\n },\n normalization: '${6:none|sigmoid|minMaxScaler}'\n },\n combination: {\n weights: {\n ${7:searchPipeline}: ${8:number},\n ${9:vectorPipeline}: ${10:number}\n },\n method: '${11:avg|expression}',\n expression: '${12:expression}'\n },\n scoreDetails: ${13:false}\n}";
1200
1250
  } | {
1201
1251
  readonly name: "$search";
1202
1252
  readonly value: "$search";
@@ -1205,14 +1255,14 @@ export declare const BASE_COMPLETIONS: ({
1205
1255
  readonly fullScan: false;
1206
1256
  readonly firstStage: false;
1207
1257
  readonly score: 1;
1208
- readonly env: readonly ["atlas"];
1258
+ readonly env: readonly ["atlas", "on-prem"];
1209
1259
  readonly meta: "stage";
1210
1260
  readonly version: "4.1.11";
1211
1261
  readonly apiVersions: readonly [];
1212
- readonly namespaces: readonly ["coll"];
1262
+ readonly namespaces: readonly ["coll", "view"];
1213
1263
  readonly description: "Performs a full-text search on the specified field(s).";
1214
- readonly comment: "/**\n * index: The name of the Search index.\n * text: Analyzed search, with required fields of query and path, the analyzed field(s) to search.\n * compound: Combines ops.\n * span: Find in text field regions.\n * exists: Test for presence of a field.\n * near: Find near number or date.\n * range: Find in numeric or date range.\n */\n";
1215
- readonly snippet: "{\n index: '${1:string}',\n text: {\n query: '${2:string}',\n path: '${3:string}'\n }\n}";
1264
+ readonly comment: "/**\n * index: The name of the Search index.\n * text: Analyzed search, with required fields of query and path, the analyzed field(s) to search. Use matchCriteria to match 'any' or 'all' query terms.\n * compound: Combines ops.\n * span: Find in text field regions.\n * exists: Test for presence of a field.\n * near: Find near number or date.\n * range: Find in numeric or date range.\n */\n";
1265
+ readonly snippet: "{\n index: '${1:string}',\n text: {\n query: '${2:string}',\n path: '${3:string}',\n matchCriteria: '${4:any}',\n }\n}";
1216
1266
  } | {
1217
1267
  readonly name: "$searchMeta";
1218
1268
  readonly value: "$searchMeta";
@@ -1221,11 +1271,11 @@ export declare const BASE_COMPLETIONS: ({
1221
1271
  readonly fullScan: false;
1222
1272
  readonly firstStage: false;
1223
1273
  readonly score: 1;
1224
- readonly env: readonly ["atlas"];
1274
+ readonly env: readonly ["atlas", "on-prem"];
1225
1275
  readonly meta: "stage";
1226
1276
  readonly version: "4.4.9";
1227
1277
  readonly apiVersions: readonly [];
1228
- readonly namespaces: readonly ["coll"];
1278
+ readonly namespaces: readonly ["coll", "view"];
1229
1279
  readonly description: "Performs a full-text search on the specified field(s) and gets back only the generated search meta data from a query.";
1230
1280
  readonly comment: "/**\n * index: The name of the Search index.\n * count: The count of the results.\n * facet: {\n * operator: Analyzed search, with required fields of query and path, can either be replaced with the name of a valid operator.\n * facets: {\n * stringFacet: Narrows search results based on unique string values, with required fields of type and path.\n * numberFacet: Narrows search results by breaking them up into separate ranges of numbers, with required fields of type, path, and boundaries.\n * dateFacet: Narrows search results by breaking them up into separate ranges of dates, with required fields of type, path, and boundaries.\n * }\n * }\n */\n";
1231
1281
  readonly snippet: "{\n index: ${1:string},\n facet: {\n operator: {\n text: {\n query: ${2:string},\n path: ${3:string}\n }\n },\n facets: {\n ${4:stringFacet}: {\n type: ${5:string},\n path: ${6:string},\n numBuckets: ${7:integer}\n },\n numberFacet: {\n type: 'number',\n path: ${8:string},\n boundaries: [${9:lowerbound}, ${10:upperbound}, ...],\n default: ${11:string}\n }\n }\n }\n}";
@@ -1365,14 +1415,14 @@ export declare const BASE_COMPLETIONS: ({
1365
1415
  readonly fullScan: false;
1366
1416
  readonly firstStage: true;
1367
1417
  readonly score: 1;
1368
- readonly env: readonly ["atlas"];
1418
+ readonly env: readonly ["atlas", "on-prem"];
1369
1419
  readonly meta: "stage";
1370
1420
  readonly version: ">=6.0.10 <7.0.0 || >=7.0.2";
1371
1421
  readonly apiVersions: readonly [];
1372
- readonly namespaces: readonly ["coll"];
1373
- readonly description: "Performs a kNN search on a vector in the specified field or fields. The field that you want to search must be covered by an Atlas Search index of type `vectorEmbedding`.";
1374
- readonly comment: "/**\n * queryVector: Array of numbers of BSON types `int` or `double` that represent the query vector. The array size must match the number of vector dimensions specified in the index for the field. (Required)\n * path: The field to search. (Required)\n * numCandidates: Number of nearest neighbors to use during the search. You can specify a number higher than the number of documents to return (`limit`) to increase accuracy. (Required)\n * index: Name of the Atlas Search index to use. (Required)\n * limit: Number (of type `int` only) of documents to return in the results. (Required)\n * filter: Any MongoDB Query Language (MQL) match expression that compares an indexed field with a boolean, number (not decimals), or string to use as a prefilter. (Optional)\n */\n";
1375
- readonly snippet: "{\n queryVector: [${1:dimension1}, ${2:dimension2}, ...],\n path: ${3:string},\n numCandidates: ${4:numCandidates},\n index: ${5:string},\n limit: ${6:limit},\n filter: {${7:expression}}\n}";
1422
+ readonly namespaces: readonly ["coll", "view"];
1423
+ readonly description: "Performs a kNN search on embeddings in the specified field(s)";
1424
+ readonly comment: "/**\n * queryVector: Array of numbers of BSON types `int` or `double` that represent the query vector. The array size must match the number of vector dimensions specified in the index for the field. (Required)\n * path: The field to search. (Required)\n * numCandidates: Number of nearest neighbors to use during the search. You can specify a number higher than the number of documents to return (`limit`) to increase accuracy. (Required)\n * index: Name of the Atlas Search index to use. (Required)\n * limit: Number (of type `int` only) of documents to return in the results. (Required)\n * filter: Any MongoDB Query Language (MQL) match expression that compares an indexed field with a boolean, number (not decimals), or string to use as a prefilter. (Optional)\n * exact: Choose between false for ANN (Approximate Nearest Neighbor) and true for ENN (Exact Nearest Neighbor). Defaults to false. (Optional)\n */\n";
1425
+ readonly snippet: "{\n queryVector: [${1:dimension1}, ${2:dimension2}, ...],\n path: ${3:string},\n numCandidates: ${4:numCandidates},\n index: ${5:string},\n limit: ${6:limit},\n filter: {${7:expression}},\n exact: ${8:boolean}\n}";
1376
1426
  } | {
1377
1427
  readonly name: "$all";
1378
1428
  readonly value: "$all";
@@ -1870,7 +1920,7 @@ export declare const BASE_COMPLETIONS: ({
1870
1920
  readonly meta: "bson";
1871
1921
  readonly version: "0.0.0";
1872
1922
  readonly description: "BSON 64 but Integer type";
1873
- readonly snippet: "NumberLong(${1:value})";
1923
+ readonly snippet: "NumberLong('${1:value}')";
1874
1924
  } | {
1875
1925
  readonly name: "NumberDecimal";
1876
1926
  readonly value: "NumberDecimal";
@@ -1916,6 +1966,42 @@ export declare const BASE_COMPLETIONS: ({
1916
1966
  readonly version: "0.0.0";
1917
1967
  readonly description: "BSON Regex type";
1918
1968
  readonly snippet: "RegExp('${1:source}', '${2:opts}')";
1969
+ } | {
1970
+ readonly name: "LegacyJavaUUID";
1971
+ readonly value: "LegacyJavaUUID";
1972
+ readonly label: "LegacyJavaUUID";
1973
+ readonly score: 1;
1974
+ readonly meta: "bson-legacy-uuid";
1975
+ readonly version: "0.0.0";
1976
+ readonly description: "BSON Binary subtype 3 (Java legacy UUID)";
1977
+ readonly snippet: "LegacyJavaUUID('${1:uuid}')";
1978
+ } | {
1979
+ readonly name: "LegacyCSharpUUID";
1980
+ readonly value: "LegacyCSharpUUID";
1981
+ readonly label: "LegacyCSharpUUID";
1982
+ readonly score: 1;
1983
+ readonly meta: "bson-legacy-uuid";
1984
+ readonly version: "0.0.0";
1985
+ readonly description: "BSON Binary subtype 3 (CSharp legacy UUID)";
1986
+ readonly snippet: "LegacyCSharpUUID('${1:uuid}')";
1987
+ } | {
1988
+ readonly name: "LegacyPythonUUID";
1989
+ readonly value: "LegacyPythonUUID";
1990
+ readonly label: "LegacyPythonUUID";
1991
+ readonly score: 1;
1992
+ readonly meta: "bson-legacy-uuid";
1993
+ readonly version: "0.0.0";
1994
+ readonly description: "BSON Binary subtype 3 (Python legacy UUID)";
1995
+ readonly snippet: "LegacyPythonUUID('${1:uuid}')";
1996
+ } | {
1997
+ readonly name: "UUID";
1998
+ readonly value: "UUID";
1999
+ readonly label: "UUID";
2000
+ readonly score: 1;
2001
+ readonly meta: "bson";
2002
+ readonly version: "0.0.0";
2003
+ readonly description: "BSON Binary subtype 4";
2004
+ readonly snippet: "UUID('${1:uuid}')";
1919
2005
  })[];
1920
2006
  export declare const MATCH_COMPLETIONS: ({
1921
2007
  readonly name: "$convert";
@@ -2487,6 +2573,24 @@ export declare const MATCH_COMPLETIONS: ({
2487
2573
  readonly score: 1;
2488
2574
  readonly meta: "expr:set";
2489
2575
  readonly version: "2.6.0";
2576
+ } | {
2577
+ readonly name: "$similarityCosine";
2578
+ readonly value: "$similarityCosine";
2579
+ readonly score: 1;
2580
+ readonly meta: "expr:arith";
2581
+ readonly version: "8.2.0";
2582
+ } | {
2583
+ readonly name: "$similarityDotProduct";
2584
+ readonly value: "$similarityDotProduct";
2585
+ readonly score: 1;
2586
+ readonly meta: "expr:arith";
2587
+ readonly version: "8.2.0";
2588
+ } | {
2589
+ readonly name: "$similarityEuclidean";
2590
+ readonly value: "$similarityEuclidean";
2591
+ readonly score: 1;
2592
+ readonly meta: "expr:arith";
2593
+ readonly version: "8.2.0";
2490
2594
  } | {
2491
2595
  readonly name: "$size";
2492
2596
  readonly value: "$size";
@@ -3035,6 +3139,22 @@ export declare const MATCH_COMPLETIONS: ({
3035
3139
  readonly description: "Adds new field(s) to a document with a computed value, or reassigns an existing field(s) with a computed value. Unlike $addFields, $project can also remove fields.";
3036
3140
  readonly comment: "/**\n * specifications: The fields to\n * include or exclude.\n */\n";
3037
3141
  readonly snippet: "{\n ${1:specification(s)}\n}";
3142
+ } | {
3143
+ readonly name: "$rankFusion";
3144
+ readonly value: "$rankFusion";
3145
+ readonly label: "$rankFusion";
3146
+ readonly outputStage: false;
3147
+ readonly fullScan: false;
3148
+ readonly firstStage: false;
3149
+ readonly score: 1;
3150
+ readonly env: readonly ["atlas"];
3151
+ readonly meta: "stage";
3152
+ readonly version: "8.0.14";
3153
+ readonly apiVersions: readonly [];
3154
+ readonly namespaces: readonly ["coll"];
3155
+ readonly description: "Combines multiple pipelines using reciprocal rank fusion to create hybrid search results.";
3156
+ readonly comment: "/**\n * input.pipelines: Required. Map from name to input pipeline. Each pipeline must be a Ranked Selection Pipeline operating on the same collection. Minimum of one pipeline.\n * combination.weights: Optional. Map from pipeline name to numbers (non-negative). If unspecified, default weight is 1 for each pipeline.\n * scoreDetails: Optional. Default false. Set to true to include detailed scoring information in {$meta: \"scoreDetails\"} for debugging and tuning.\n */\n";
3157
+ readonly snippet: "{\n input: {\n pipelines: {\n ${1:searchPipeline}: [\n {$search: {${2:searchStage}}},\n {$limit: ${3:limit}}\n ],\n ${4:vectorPipeline}: [\n {$vectorSearch: {${5:vectorSearchStage}}}\n ]\n }\n },\n combination: {\n weights: {\n ${6:searchPipeline}: ${7:number},\n ${8:vectorPipeline}: ${9:number}\n }\n },\n scoreDetails: ${10:false}\n}";
3038
3158
  } | {
3039
3159
  readonly name: "$redact";
3040
3160
  readonly value: "$redact";
@@ -3099,6 +3219,22 @@ export declare const MATCH_COMPLETIONS: ({
3099
3219
  readonly description: "Randomly selects the specified number of documents from its input.";
3100
3220
  readonly comment: "/**\n * size: The number of documents to sample.\n */\n";
3101
3221
  readonly snippet: "{\n size: ${1:number}\n}";
3222
+ } | {
3223
+ readonly name: "$scoreFusion";
3224
+ readonly value: "$scoreFusion";
3225
+ readonly label: "$scoreFusion";
3226
+ readonly outputStage: false;
3227
+ readonly fullScan: false;
3228
+ readonly firstStage: false;
3229
+ readonly score: 1;
3230
+ readonly env: readonly ["atlas"];
3231
+ readonly meta: "stage";
3232
+ readonly version: "8.2.0";
3233
+ readonly apiVersions: readonly [];
3234
+ readonly namespaces: readonly ["coll"];
3235
+ readonly description: "Combines multiple pipelines using relative score fusion to create hybrid search results.";
3236
+ readonly comment: "/**\n * input.pipelines: Required. Map from name to input pipeline. Each pipeline must be operating on the same collection. Minimum of one pipeline.\n * input.normalization: Required. Normalizes the score to the range 0 to 1 before combining the results. Value can be none, sigmoid or minMaxScaler.\n * combination.weights: Optional. Map from pipeline name to numbers (non-negative). If unspecified, default weight is 1 for each pipeline.\n * combination.method: Optional. Specifies method for combining scores. Value can be avg or expression. Default is avg.\n * combination.expression: Optional. This is the custom expression that is used when combination.method is set to expression.\n * scoreDetails: Optional. Default false. Set to true to include detailed scoring information.\n */\n";
3237
+ readonly snippet: "{\n input: {\n pipelines: {\n ${1:searchPipeline}: [\n {$search: {${2:searchStage}}},\n {$limit: ${3:limit}}\n ],\n ${4:vectorPipeline}: [\n {$vectorSearch: {${5:vectorSearchStage}}}\n ]\n },\n normalization: '${6:none|sigmoid|minMaxScaler}'\n },\n combination: {\n weights: {\n ${7:searchPipeline}: ${8:number},\n ${9:vectorPipeline}: ${10:number}\n },\n method: '${11:avg|expression}',\n expression: '${12:expression}'\n },\n scoreDetails: ${13:false}\n}";
3102
3238
  } | {
3103
3239
  readonly name: "$search";
3104
3240
  readonly value: "$search";
@@ -3107,14 +3243,14 @@ export declare const MATCH_COMPLETIONS: ({
3107
3243
  readonly fullScan: false;
3108
3244
  readonly firstStage: false;
3109
3245
  readonly score: 1;
3110
- readonly env: readonly ["atlas"];
3246
+ readonly env: readonly ["atlas", "on-prem"];
3111
3247
  readonly meta: "stage";
3112
3248
  readonly version: "4.1.11";
3113
3249
  readonly apiVersions: readonly [];
3114
- readonly namespaces: readonly ["coll"];
3250
+ readonly namespaces: readonly ["coll", "view"];
3115
3251
  readonly description: "Performs a full-text search on the specified field(s).";
3116
- readonly comment: "/**\n * index: The name of the Search index.\n * text: Analyzed search, with required fields of query and path, the analyzed field(s) to search.\n * compound: Combines ops.\n * span: Find in text field regions.\n * exists: Test for presence of a field.\n * near: Find near number or date.\n * range: Find in numeric or date range.\n */\n";
3117
- readonly snippet: "{\n index: '${1:string}',\n text: {\n query: '${2:string}',\n path: '${3:string}'\n }\n}";
3252
+ readonly comment: "/**\n * index: The name of the Search index.\n * text: Analyzed search, with required fields of query and path, the analyzed field(s) to search. Use matchCriteria to match 'any' or 'all' query terms.\n * compound: Combines ops.\n * span: Find in text field regions.\n * exists: Test for presence of a field.\n * near: Find near number or date.\n * range: Find in numeric or date range.\n */\n";
3253
+ readonly snippet: "{\n index: '${1:string}',\n text: {\n query: '${2:string}',\n path: '${3:string}',\n matchCriteria: '${4:any}',\n }\n}";
3118
3254
  } | {
3119
3255
  readonly name: "$searchMeta";
3120
3256
  readonly value: "$searchMeta";
@@ -3123,11 +3259,11 @@ export declare const MATCH_COMPLETIONS: ({
3123
3259
  readonly fullScan: false;
3124
3260
  readonly firstStage: false;
3125
3261
  readonly score: 1;
3126
- readonly env: readonly ["atlas"];
3262
+ readonly env: readonly ["atlas", "on-prem"];
3127
3263
  readonly meta: "stage";
3128
3264
  readonly version: "4.4.9";
3129
3265
  readonly apiVersions: readonly [];
3130
- readonly namespaces: readonly ["coll"];
3266
+ readonly namespaces: readonly ["coll", "view"];
3131
3267
  readonly description: "Performs a full-text search on the specified field(s) and gets back only the generated search meta data from a query.";
3132
3268
  readonly comment: "/**\n * index: The name of the Search index.\n * count: The count of the results.\n * facet: {\n * operator: Analyzed search, with required fields of query and path, can either be replaced with the name of a valid operator.\n * facets: {\n * stringFacet: Narrows search results based on unique string values, with required fields of type and path.\n * numberFacet: Narrows search results by breaking them up into separate ranges of numbers, with required fields of type, path, and boundaries.\n * dateFacet: Narrows search results by breaking them up into separate ranges of dates, with required fields of type, path, and boundaries.\n * }\n * }\n */\n";
3133
3269
  readonly snippet: "{\n index: ${1:string},\n facet: {\n operator: {\n text: {\n query: ${2:string},\n path: ${3:string}\n }\n },\n facets: {\n ${4:stringFacet}: {\n type: ${5:string},\n path: ${6:string},\n numBuckets: ${7:integer}\n },\n numberFacet: {\n type: 'number',\n path: ${8:string},\n boundaries: [${9:lowerbound}, ${10:upperbound}, ...],\n default: ${11:string}\n }\n }\n }\n}";
@@ -3267,14 +3403,14 @@ export declare const MATCH_COMPLETIONS: ({
3267
3403
  readonly fullScan: false;
3268
3404
  readonly firstStage: true;
3269
3405
  readonly score: 1;
3270
- readonly env: readonly ["atlas"];
3406
+ readonly env: readonly ["atlas", "on-prem"];
3271
3407
  readonly meta: "stage";
3272
3408
  readonly version: ">=6.0.10 <7.0.0 || >=7.0.2";
3273
3409
  readonly apiVersions: readonly [];
3274
- readonly namespaces: readonly ["coll"];
3275
- readonly description: "Performs a kNN search on a vector in the specified field or fields. The field that you want to search must be covered by an Atlas Search index of type `vectorEmbedding`.";
3276
- readonly comment: "/**\n * queryVector: Array of numbers of BSON types `int` or `double` that represent the query vector. The array size must match the number of vector dimensions specified in the index for the field. (Required)\n * path: The field to search. (Required)\n * numCandidates: Number of nearest neighbors to use during the search. You can specify a number higher than the number of documents to return (`limit`) to increase accuracy. (Required)\n * index: Name of the Atlas Search index to use. (Required)\n * limit: Number (of type `int` only) of documents to return in the results. (Required)\n * filter: Any MongoDB Query Language (MQL) match expression that compares an indexed field with a boolean, number (not decimals), or string to use as a prefilter. (Optional)\n */\n";
3277
- readonly snippet: "{\n queryVector: [${1:dimension1}, ${2:dimension2}, ...],\n path: ${3:string},\n numCandidates: ${4:numCandidates},\n index: ${5:string},\n limit: ${6:limit},\n filter: {${7:expression}}\n}";
3410
+ readonly namespaces: readonly ["coll", "view"];
3411
+ readonly description: "Performs a kNN search on embeddings in the specified field(s)";
3412
+ readonly comment: "/**\n * queryVector: Array of numbers of BSON types `int` or `double` that represent the query vector. The array size must match the number of vector dimensions specified in the index for the field. (Required)\n * path: The field to search. (Required)\n * numCandidates: Number of nearest neighbors to use during the search. You can specify a number higher than the number of documents to return (`limit`) to increase accuracy. (Required)\n * index: Name of the Atlas Search index to use. (Required)\n * limit: Number (of type `int` only) of documents to return in the results. (Required)\n * filter: Any MongoDB Query Language (MQL) match expression that compares an indexed field with a boolean, number (not decimals), or string to use as a prefilter. (Optional)\n * exact: Choose between false for ANN (Approximate Nearest Neighbor) and true for ENN (Exact Nearest Neighbor). Defaults to false. (Optional)\n */\n";
3413
+ readonly snippet: "{\n queryVector: [${1:dimension1}, ${2:dimension2}, ...],\n path: ${3:string},\n numCandidates: ${4:numCandidates},\n index: ${5:string},\n limit: ${6:limit},\n filter: {${7:expression}},\n exact: ${8:boolean}\n}";
3278
3414
  } | {
3279
3415
  readonly name: "$all";
3280
3416
  readonly value: "$all";
@@ -3772,7 +3908,7 @@ export declare const MATCH_COMPLETIONS: ({
3772
3908
  readonly meta: "bson";
3773
3909
  readonly version: "0.0.0";
3774
3910
  readonly description: "BSON 64 but Integer type";
3775
- readonly snippet: "NumberLong(${1:value})";
3911
+ readonly snippet: "NumberLong('${1:value}')";
3776
3912
  } | {
3777
3913
  readonly name: "NumberDecimal";
3778
3914
  readonly value: "NumberDecimal";
@@ -3818,6 +3954,42 @@ export declare const MATCH_COMPLETIONS: ({
3818
3954
  readonly version: "0.0.0";
3819
3955
  readonly description: "BSON Regex type";
3820
3956
  readonly snippet: "RegExp('${1:source}', '${2:opts}')";
3957
+ } | {
3958
+ readonly name: "LegacyJavaUUID";
3959
+ readonly value: "LegacyJavaUUID";
3960
+ readonly label: "LegacyJavaUUID";
3961
+ readonly score: 1;
3962
+ readonly meta: "bson-legacy-uuid";
3963
+ readonly version: "0.0.0";
3964
+ readonly description: "BSON Binary subtype 3 (Java legacy UUID)";
3965
+ readonly snippet: "LegacyJavaUUID('${1:uuid}')";
3966
+ } | {
3967
+ readonly name: "LegacyCSharpUUID";
3968
+ readonly value: "LegacyCSharpUUID";
3969
+ readonly label: "LegacyCSharpUUID";
3970
+ readonly score: 1;
3971
+ readonly meta: "bson-legacy-uuid";
3972
+ readonly version: "0.0.0";
3973
+ readonly description: "BSON Binary subtype 3 (CSharp legacy UUID)";
3974
+ readonly snippet: "LegacyCSharpUUID('${1:uuid}')";
3975
+ } | {
3976
+ readonly name: "LegacyPythonUUID";
3977
+ readonly value: "LegacyPythonUUID";
3978
+ readonly label: "LegacyPythonUUID";
3979
+ readonly score: 1;
3980
+ readonly meta: "bson-legacy-uuid";
3981
+ readonly version: "0.0.0";
3982
+ readonly description: "BSON Binary subtype 3 (Python legacy UUID)";
3983
+ readonly snippet: "LegacyPythonUUID('${1:uuid}')";
3984
+ } | {
3985
+ readonly name: "UUID";
3986
+ readonly value: "UUID";
3987
+ readonly label: "UUID";
3988
+ readonly score: 1;
3989
+ readonly meta: "bson";
3990
+ readonly version: "0.0.0";
3991
+ readonly description: "BSON Binary subtype 4";
3992
+ readonly snippet: "UUID('${1:uuid}')";
3821
3993
  })[];
3822
3994
  export declare function completer(params: AutocompleteParameters, line: string): Promise<[string[], string, 'exclusive'] | [string[], string]>;
3823
3995
  type AutocompleteShellInstanceState = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mongosh/autocomplete",
3
- "version": "3.29.1",
3
+ "version": "5.0.1",
4
4
  "description": "MongoDB Shell Autocomplete Package",
5
5
  "homepage": "https://github.com/mongodb-js/mongosh",
6
6
  "license": "Apache-2.0",
@@ -41,10 +41,10 @@
41
41
  "prettier": "^2.8.8"
42
42
  },
43
43
  "dependencies": {
44
- "@mongodb-js/mongodb-constants": "^0.10.1",
45
- "@mongodb-js/mongodb-ts-autocomplete": "^0.4.7",
46
- "@mongosh/shell-api": "^3.29.1",
44
+ "@mongodb-js/mongodb-constants": "^0.20.1",
45
+ "@mongodb-js/mongodb-ts-autocomplete": "^0.6.5",
46
+ "@mongosh/shell-api": "^5.0.1",
47
47
  "semver": "^7.5.4"
48
48
  },
49
- "gitHead": "9a7abcedcbd9ae1bbaef46d3bad7713ecfbcee4a"
49
+ "gitHead": "9dcedaf65afcf834fd4bde9bcf1a9248ce764941"
50
50
  }