arangojs 10.1.2 → 10.2.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.
- package/CHANGELOG.md +78 -0
- package/cjs/collections.d.ts +2 -1
- package/cjs/collections.d.ts.map +1 -1
- package/cjs/collections.js.map +1 -1
- package/cjs/connection.d.ts +1 -0
- package/cjs/connection.d.ts.map +1 -1
- package/cjs/connection.js +74 -18
- package/cjs/connection.js.map +1 -1
- package/cjs/databases.d.ts +91 -0
- package/cjs/databases.d.ts.map +1 -1
- package/cjs/databases.js +140 -0
- package/cjs/databases.js.map +1 -1
- package/cjs/indexes.d.ts +24 -3
- package/cjs/indexes.d.ts.map +1 -1
- package/cjs/indexes.js.map +1 -1
- package/cjs/users.d.ts +91 -0
- package/cjs/users.d.ts.map +1 -1
- package/cjs/users.js.map +1 -1
- package/cjs/views.d.ts +69 -0
- package/cjs/views.d.ts.map +1 -1
- package/cjs/views.js.map +1 -1
- package/collections.d.ts +2 -1
- package/collections.d.ts.map +1 -1
- package/connection.d.ts +1 -0
- package/connection.d.ts.map +1 -1
- package/databases.d.ts +91 -0
- package/databases.d.ts.map +1 -1
- package/esm/collections.d.ts +2 -1
- package/esm/collections.d.ts.map +1 -1
- package/esm/collections.js.map +1 -1
- package/esm/connection.d.ts +1 -0
- package/esm/connection.d.ts.map +1 -1
- package/esm/connection.js +74 -18
- package/esm/connection.js.map +1 -1
- package/esm/databases.d.ts +91 -0
- package/esm/databases.d.ts.map +1 -1
- package/esm/databases.js +140 -0
- package/esm/databases.js.map +1 -1
- package/esm/indexes.d.ts +24 -3
- package/esm/indexes.d.ts.map +1 -1
- package/esm/indexes.js.map +1 -1
- package/esm/users.d.ts +91 -0
- package/esm/users.d.ts.map +1 -1
- package/esm/users.js.map +1 -1
- package/esm/views.d.ts +69 -0
- package/esm/views.d.ts.map +1 -1
- package/esm/views.js.map +1 -1
- package/indexes.d.ts +24 -3
- package/indexes.d.ts.map +1 -1
- package/package.json +1 -1
- package/users.d.ts +91 -0
- package/users.d.ts.map +1 -1
- package/views.d.ts +69 -0
- package/views.d.ts.map +1 -1
package/cjs/indexes.d.ts
CHANGED
|
@@ -519,14 +519,28 @@ export type EnsureVectorIndexOptions = EnsureIndexOptionsType<"vector", [
|
|
|
519
519
|
* The number of threads to use for indexing. Default is 2.
|
|
520
520
|
*/
|
|
521
521
|
parallelism?: number;
|
|
522
|
+
/**
|
|
523
|
+
* An array of attribute paths that will be stored in the index for
|
|
524
|
+
* efficient filtering. Unlike with other index types, this is not for
|
|
525
|
+
* covering projections with the index but for adding attributes that
|
|
526
|
+
* you filter on. This lets you make the lookup in the vector index
|
|
527
|
+
* more efficient because it avoids materializing documents twice,
|
|
528
|
+
* once for the filtering and once for the matches.
|
|
529
|
+
*
|
|
530
|
+
* The maximum number of attributes that you can use in storedValues is 32.
|
|
531
|
+
*
|
|
532
|
+
* Introduced in: ArangoDB 3.12.7
|
|
533
|
+
*/
|
|
534
|
+
storedValues?: string[];
|
|
522
535
|
/**
|
|
523
536
|
* Vector index parameters, following Faiss configuration.
|
|
524
537
|
*/
|
|
525
538
|
params: {
|
|
526
539
|
/**
|
|
527
|
-
* Whether to use cosine
|
|
540
|
+
* Whether to use cosine, l2 (Euclidean), or innerProduct distance.
|
|
541
|
+
* innerProduct was introduced in ArangoDB 3.12.6.
|
|
528
542
|
*/
|
|
529
|
-
metric: "cosine" | "l2";
|
|
543
|
+
metric: "cosine" | "l2" | "innerProduct";
|
|
530
544
|
/**
|
|
531
545
|
* Vector dimension. Must match the length of vectors in documents.
|
|
532
546
|
*/
|
|
@@ -796,8 +810,15 @@ export type VectorIndexDescription = IndexDescriptionType<"vector", [
|
|
|
796
810
|
], {
|
|
797
811
|
parallelism: number;
|
|
798
812
|
inBackground: boolean;
|
|
813
|
+
/**
|
|
814
|
+
* An array of attribute paths that are stored in the index for
|
|
815
|
+
* efficient filtering.
|
|
816
|
+
*
|
|
817
|
+
* Introduced in: ArangoDB 3.12.7
|
|
818
|
+
*/
|
|
819
|
+
storedValues?: string[];
|
|
799
820
|
params: {
|
|
800
|
-
metric: "cosine" | "l2";
|
|
821
|
+
metric: "cosine" | "l2" | "innerProduct";
|
|
801
822
|
dimension: number;
|
|
802
823
|
nLists: number;
|
|
803
824
|
defaultNProbe?: number;
|
package/cjs/indexes.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"indexes.d.ts","sourceRoot":"","sources":["../../src/indexes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AAGpC;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAEjD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,wBAAwB,CAAC,MAAM,CAAC,CAAC;AAIjE;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;;;;OAQG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAC1B,4BAA4B,GAC5B,qBAAqB,GACrB,qBAAqB,GACrB,qBAAqB,GACrB,6BAA6B,GAC7B,0BAA0B,GAC1B,wBAAwB,CAAC;AAE7B;;GAEG;AACH,MAAM,MAAM,sBAAsB,CAChC,IAAI,SAAS,SAAS,EACtB,MAAM,SAAS,GAAG,EAAE,EACpB,KAAK,SAAS,EAAE,GAAG,EAAE,IACnB;IACF;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,EAAE,IAAI,CAAC;IACX;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,GAAG,KA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Content":["/**\r\n * ```ts\r\n * import type {\r\n * FulltextIndex,\r\n * GeoIndex,\r\n * MdiIndex,\r\n * PersistentIndex,\r\n * PrimaryIndex,\r\n * TtlIndex,\r\n * } from \"arangojs/indexes\";\r\n * ```\r\n *\r\n * The \"indexes\" module provides index-related types for TypeScript.\r\n *\r\n * @packageDocumentation\r\n */\r\n\r\nimport * as analyzers from \"./analyzers.js\";\r\nimport * as views from \"./views.js\";\r\n\r\n//#region Shared types\r\n/**\r\n * Type of an index.\r\n */\r\nexport type IndexType = IndexDescription[\"type\"];\r\n\r\n/**\r\n * Type of an internal index.\r\n */\r\nexport type InternalIndexType = InternalIndexDescription[\"type\"];\r\n//#endregion\r\n\r\n//#region Index operation options\r\n/**\r\n * Options for listing indexes.\r\n */\r\nexport type ListIndexesOptions = {\r\n /**\r\n * If set to `true`, includes additional information about each index.\r\n *\r\n * Default: `false`\r\n */\r\n withStats?: boolean;\r\n /**\r\n * If set to `true`, includes internal indexes as well as indexes that are\r\n * not yet fully built but are in the building phase.\r\n *\r\n * You should cast the resulting indexes to `HiddenIndex` to ensure internal\r\n * and incomplete indexes are accurately represented.\r\n *\r\n * Default: `false`.\r\n */\r\n withHidden?: boolean;\r\n};\r\n\r\n/**\r\n * Options for creating an index.\r\n */\r\nexport type EnsureIndexOptions =\r\n | EnsurePersistentIndexOptions\r\n | EnsureGeoIndexOptions\r\n | EnsureTtlIndexOptions\r\n | EnsureMdiIndexOptions\r\n | EnsureMdiPrefixedIndexOptions\r\n | EnsureInvertedIndexOptions\r\n | EnsureVectorIndexOptions;\r\n\r\n/**\r\n * Shared attributes of all index creation options.\r\n */\r\nexport type EnsureIndexOptionsType<\r\n Type extends IndexType,\r\n Fields extends any[],\r\n Extra extends {} = {},\r\n> = {\r\n /**\r\n * A unique name for this index.\r\n */\r\n name?: string;\r\n /**\r\n * Type of this index.\r\n */\r\n type: Type;\r\n /**\r\n * An array of attribute paths.\r\n */\r\n fields: Fields;\r\n /**\r\n * If set to `true`, the index will be created in the background to reduce\r\n * the write-lock duration for the collection during index creation.\r\n *\r\n * Default: `false`\r\n */\r\n inBackground?: boolean;\r\n} & Extra;\r\n\r\n/**\r\n * Options for creating a persistent index.\r\n */\r\nexport type EnsurePersistentIndexOptions = EnsureIndexOptionsType<\r\n \"persistent\",\r\n string[],\r\n {\r\n /**\r\n * If set to `true`, a unique index will be created.\r\n *\r\n * Default: `false`\r\n */\r\n unique?: boolean;\r\n /**\r\n * If set to `true`, the index will omit documents that do not contain at\r\n * least one of the attribute paths in `fields` and these documents will be\r\n * ignored for uniqueness checks.\r\n *\r\n * Default: `false`\r\n */\r\n sparse?: boolean;\r\n /**\r\n * If set to `false`, inserting duplicate index values from the same\r\n * document will lead to a unique constraint error if this is a unique index.\r\n *\r\n * Default: `true`\r\n */\r\n deduplicate?: boolean;\r\n /**\r\n * If set to `false`, index selectivity estimates will be disabled for this\r\n * index.\r\n *\r\n * Default: `true`\r\n */\r\n estimates?: boolean;\r\n /**\r\n * If set to `true`, an in-memory hash cache will be put in front of the\r\n * persistent index.\r\n *\r\n * Default: `false`\r\n */\r\n cacheEnabled?: boolean;\r\n /**\r\n * An array of attribute paths that will be stored in the index but can not\r\n * be used for index lookups or sorting but can avoid full document lookups.\r\n */\r\n storedValues?: string[];\r\n }\r\n>;\r\n\r\n/**\r\n * Options for creating a geo index.\r\n */\r\nexport type EnsureGeoIndexOptions = EnsureIndexOptionsType<\r\n \"geo\",\r\n [string, string] | [string],\r\n {\r\n /**\r\n * If set to `true`, `fields` must be an array containing a single attribute\r\n * path and the attribute value must be an array with two values, the first\r\n * of which will be interpreted as the longitude and the second of which\r\n * will be interpreted as the latitude of the document.\r\n *\r\n * If set to `false`, `fields` can be either an array containing two\r\n * attribute paths, the first of which will be interpreted as the latitude\r\n * and the second as the longitude, or a single attribute path for an array\r\n * containing two values, the first of which will be interpreted as the\r\n * latitude, the second as the longitude.\r\n *\r\n * Default: `false`\r\n */\r\n geoJson?: boolean;\r\n /**\r\n * If set to `true`, the index will use pre-3.10 rules for parsing\r\n * GeoJSON polygons. This option is always implicitly `true` when using\r\n * ArangoDB 3.9 or lower.\r\n */\r\n legacyPolygons?: boolean;\r\n }\r\n>;\r\n\r\n/**\r\n * Options for creating a TTL index.\r\n */\r\nexport type EnsureTtlIndexOptions = EnsureIndexOptionsType<\r\n \"ttl\",\r\n [string],\r\n {\r\n /**\r\n * Duration in seconds after the attribute value at which the document will\r\n * be considered as expired.\r\n */\r\n expireAfter: number;\r\n }\r\n>;\r\n\r\n/**\r\n * Options for creating a MDI index.\r\n */\r\nexport type EnsureMdiIndexOptions = EnsureIndexOptionsType<\r\n \"mdi\",\r\n string[],\r\n {\r\n /**\r\n * Data type of the dimension attributes.\r\n */\r\n fieldValueTypes: \"double\";\r\n /**\r\n * If set to `true`, a unique index will be created.\r\n *\r\n * Default: `false`\r\n */\r\n unique?: boolean;\r\n /**\r\n * If set to `true`, the index will omit documents that do not contain at\r\n * least one of the attribute paths in `fields` and these documents will be\r\n * ignored for uniqueness checks.\r\n *\r\n * Default: `false`\r\n */\r\n sparse?: boolean;\r\n /**\r\n * If set to `false`, index selectivity estimates will be disabled for this\r\n * index.\r\n *\r\n * Default: `true`\r\n */\r\n estimates?: boolean;\r\n /**\r\n * An array of attribute paths that will be stored in the index but can not\r\n * be used for index lookups or sorting but can avoid full document lookups.\r\n */\r\n storedValues?: string[];\r\n }\r\n>;\r\n\r\n/**\r\n * Options for creating a prefixed MDI index.\r\n */\r\nexport type EnsureMdiPrefixedIndexOptions = EnsureIndexOptionsType<\r\n \"mdi-prefixed\",\r\n string[],\r\n {\r\n /**\r\n * An array of attribute names used as a search prefix.\r\n */\r\n prefixFields: string[];\r\n /**\r\n * Data type of the dimension attributes.\r\n */\r\n fieldValueTypes: \"double\";\r\n /**\r\n * If set to `true`, a unique index will be created.\r\n *\r\n * Default: `false`\r\n */\r\n unique?: boolean;\r\n /**\r\n * If set to `true`, the index will omit documents that do not contain at\r\n * least one of the attribute paths in `fields` and these documents will be\r\n * ignored for uniqueness checks.\r\n *\r\n * Default: `false`\r\n */\r\n sparse?: boolean;\r\n /**\r\n * If set to `false`, index selectivity estimates will be disabled for this\r\n * index.\r\n *\r\n * Default: `true`\r\n */\r\n estimates?: boolean;\r\n /**\r\n * An array of attribute paths that will be stored in the index but can not\r\n * be used for index lookups or sorting but can avoid full document lookups.\r\n */\r\n storedValues?: string[];\r\n }\r\n>;\r\n\r\n/**\r\n * Options for creating an inverted index.\r\n */\r\nexport type EnsureInvertedIndexOptions = EnsureIndexOptionsType<\r\n \"inverted\",\r\n (string | InvertedIndexFieldOptions)[],\r\n {\r\n /**\r\n * If set to `true` array values will by default be indexed using the same\r\n * behavior as ArangoSearch Views. This option only applies when using the\r\n * index in a SearchAlias View.\r\n *\r\n * Default: `false`\r\n */\r\n searchField?: boolean;\r\n /**\r\n * An array of attribute paths that will be stored in the index but can not\r\n * be used for index lookups or sorting but can avoid full document lookups.\r\n */\r\n storedValues?: InvertedIndexStoredValueOptions[];\r\n /**\r\n * Primary sort order to optimize AQL queries using a matching sort order.\r\n */\r\n primarySort?: InvertedIndexPrimarySortOptions;\r\n /**\r\n * (Enterprise Edition only.) If set to `true`, then the primary key column\r\n * will always be cached in memory.\r\n *\r\n * Default: `false`\r\n */\r\n primaryKeyCache?: boolean;\r\n /**\r\n * Name of the default Analyzer to apply to the values of indexed fields.\r\n *\r\n * Default: `\"identity\"`\r\n */\r\n analyzer?: string;\r\n /**\r\n * List of Analyzer features to enable for the default Analyzer.\r\n *\r\n * Defaults to the Analyzer's features.\r\n */\r\n features?: analyzers.AnalyzerFeature[];\r\n /**\r\n * If set to `true`, all document attributes are indexed, excluding any\r\n * sub-attributes configured in the `fields` array. The `analyzer` and\r\n * `features` properties apply to the sub-attributes. This option only\r\n * applies when using the index in a SearchAlias View.\r\n *\r\n * Default: `false`\r\n */\r\n includeAllFields?: boolean;\r\n /**\r\n * If set to `true`, the position of values in array values are tracked and\r\n * need to be specified in queries. Otherwise all values in an array are\r\n * treated as equivalent. This option only applies when using the index in a\r\n * SearchAlias View.\r\n *\r\n * Default: `false`\r\n */\r\n trackListPositions?: boolean;\r\n /**\r\n * The number of threads to use for indexing the fields.\r\n *\r\n * Default: `2`\r\n */\r\n parallelism?: number;\r\n /**\r\n * Wait at least this many commits between removing unused files in the\r\n * ArangoSearch data directory.\r\n *\r\n * Default: `2`\r\n */\r\n cleanupIntervalStep?: number;\r\n /**\r\n * Wait at least this many milliseconds between committing View data store\r\n * changes and making documents visible to queries.\r\n *\r\n * Default: `1000`\r\n */\r\n commitIntervalMsec?: number;\r\n /**\r\n * Wait at least this many milliseconds between applying\r\n * `consolidationPolicy` to consolidate View data store and possibly release\r\n * space on the filesystem.\r\n *\r\n * Default: `1000`\r\n */\r\n consolidationIntervalMsec?: number;\r\n /**\r\n * The consolidation policy to apply for selecting which segments should be\r\n * merged.\r\n *\r\n * Default: `{ type: \"tier\" }`\r\n */\r\n consolidationPolicy?: views.TierConsolidationPolicy;\r\n /**\r\n * Maximum number of writers (segments) cached in the pool.\r\n *\r\n * Default: `64`\r\n */\r\n writeBufferIdle?: number;\r\n /**\r\n * Maximum number of concurrent active writers (segments) that perform a\r\n * transaction.\r\n *\r\n * Default: `0` (disabled)\r\n */\r\n writeBufferActive?: number;\r\n /**\r\n * Maximum memory byte size per writer (segment) before a writer (segment)\r\n * flush is triggered.\r\n *\r\n * Default: `33554432` (32 MiB)\r\n */\r\n writeBufferSizeMax?: number;\r\n /**\r\n * (Enterprise Edition only.) If set to `true`, then field normalization\r\n * values will always be cached in memory.\r\n *\r\n * Default: `false`\r\n */\r\n cache?: boolean;\r\n /**\r\n * An array of strings defining sort expressions to optimize.\r\n */\r\n optimizeTopK?: string[];\r\n }\r\n>;\r\n\r\n/**\r\n * Options for an attribute path in an inverted index.\r\n */\r\nexport type InvertedIndexFieldOptions = {\r\n /**\r\n * An attribute path.\r\n */\r\n name: string;\r\n /**\r\n * Name of the Analyzer to apply to the values of this field.\r\n *\r\n * Defaults to the `analyzer` specified on the index itself.\r\n */\r\n analyzer?: string;\r\n /**\r\n * List of Analyzer features to enable for this field's Analyzer.\r\n *\r\n * Defaults to the features of the Analyzer.\r\n */\r\n features?: analyzers.AnalyzerFeature[];\r\n /**\r\n * If set to `true`, all document attributes are indexed, excluding any\r\n * sub-attributes configured in the `fields` array. The `analyzer` and\r\n * `features` properties apply to the sub-attributes. This option only\r\n * applies when using the index in a SearchAlias View.\r\n *\r\n * Defaults to the value of `includeAllFields` specified on the index itself.\r\n */\r\n includeAllFields?: boolean;\r\n /**\r\n * If set to `true` array values will be indexed using the same behavior as\r\n * ArangoSearch Views. This option only applies when using the index in a\r\n * SearchAlias View.\r\n *\r\n * Defaults to the value of `searchField` specified on the index itself.\r\n */\r\n searchField?: boolean;\r\n /**\r\n * If set to `true`, the position of values in array values are tracked and\r\n * need to be specified in queries. Otherwise all values in an array are\r\n * treated as equivalent. This option only applies when using the index in a\r\n * SearchAlias View.\r\n *\r\n * Defaults to the value of `trackListPositions` specified on the index\r\n * itself.\r\n */\r\n trackListPositions?: boolean;\r\n /**\r\n * (Enterprise Edition only.) Sub-objects to index to allow querying for\r\n * co-occurring values.\r\n */\r\n nested?: (string | InvertedIndexNestedFieldOptions)[];\r\n /**\r\n * (Enterprise Edition only.) If set to `true`, then field normalization\r\n * values will always be cached in memory.\r\n *\r\n * Defaults to the value of `cache` specified on the index itself.\r\n */\r\n cache?: boolean;\r\n};\r\n\r\n/**\r\n * Options for defining a primary sort field on an inverted index.\r\n */\r\nexport type InvertedIndexPrimarySortOptions = {\r\n /**\r\n * An array of fields to sort the index by.\r\n */\r\n fields: InvertedIndexPrimarySortFieldOptions[];\r\n /**\r\n * How the primary sort data should be compressed.\r\n *\r\n * Default: `\"lz4\"`\r\n */\r\n compression?: views.Compression;\r\n /**\r\n * (Enterprise Edition only.) If set to `true`, then primary sort columns\r\n * will always be cached in memory.\r\n *\r\n * Default: `false`\r\n */\r\n cache?: boolean;\r\n};\r\n\r\n/**\r\n * Options for defining a primary sort field on an inverted index.\r\n */\r\nexport type InvertedIndexPrimarySortFieldOptions = {\r\n /**\r\n * The attribute path to sort by.\r\n */\r\n field: string;\r\n /**\r\n * The sorting direction.\r\n */\r\n direction: views.Direction;\r\n};\r\n\r\n/**\r\n * (Enterprise Edition only.) Options for a nested field in an inverted index.\r\n */\r\nexport type InvertedIndexNestedFieldOptions = {\r\n /**\r\n * An attribute path.\r\n */\r\n name: string;\r\n /**\r\n * Name of the Analyzer to apply to the values of this field.\r\n *\r\n * Defaults to the `analyzer` specified on the parent options or on the index\r\n * itself.\r\n */\r\n analyzer?: string;\r\n /**\r\n * List of Analyzer features to enable for this field's Analyzer.\r\n *\r\n * Defaults to the features of the Analyzer.\r\n */\r\n features?: analyzers.AnalyzerFeature[];\r\n /**\r\n * If set to `true` array values will be indexed using the same behavior as\r\n * ArangoSearch Views. This option only applies when using the index in a\r\n * SearchAlias View.\r\n *\r\n * Defaults to the value of `searchField` specified on the index itself.\r\n */\r\n searchField?: boolean;\r\n /**\r\n * Sub-objects to index to allow querying for co-occurring values.\r\n */\r\n nested?: (string | InvertedIndexNestedFieldOptions)[];\r\n};\r\n\r\n/**\r\n * Options for defining a stored value on an inverted index.\r\n */\r\nexport type InvertedIndexStoredValueOptions = {\r\n /**\r\n * The attribute paths to store.\r\n */\r\n fields: string[];\r\n /**\r\n * How the attribute values should be compressed.\r\n *\r\n * Default: `\"lz4\"`\r\n */\r\n compression?: views.Compression;\r\n /**\r\n * (Enterprise Edition only.) If set to `true`, then stored values will\r\n * always be cached in memory.\r\n *\r\n * Default: `false`\r\n */\r\n cache?: boolean;\r\n};\r\n\r\n/**\r\n * Options for creating a vector index.\r\n */\r\nexport type EnsureVectorIndexOptions = EnsureIndexOptionsType<\r\n \"vector\",\r\n [string],\r\n {\r\n /**\r\n * The number of threads to use for indexing. Default is 2.\r\n */\r\n parallelism?: number;\r\n\r\n /**\r\n * Vector index parameters, following Faiss configuration.\r\n */\r\n params: {\r\n /**\r\n * Whether to use cosine or l2 (Euclidean) distance.\r\n */\r\n metric: \"cosine\" | \"l2\";\r\n\r\n /**\r\n * Vector dimension. Must match the length of vectors in documents.\r\n */\r\n dimension: number;\r\n\r\n /**\r\n * Number of Voronoi cells (centroids) for IVF. Affects accuracy and index build time.\r\n */\r\n nLists: number;\r\n\r\n /**\r\n * How many neighboring centroids to probe by default. Higher = slower, better recall.\r\n */\r\n defaultNProbe?: number;\r\n\r\n /**\r\n * Training iterations for index build. Default is 25.\r\n */\r\n trainingIterations?: number;\r\n\r\n /**\r\n * Advanced Faiss index factory string.\r\n * If not specified, defaults to IVF<nLists>,Flat.\r\n */\r\n factory?: string;\r\n };\r\n }\r\n>;\r\n//#endregion\r\n\r\n//#region IndexDescription\r\n/**\r\n * An object representing an index.\r\n */\r\nexport type IndexDescription =\r\n | FulltextIndexDescription\r\n | GeoIndexDescription\r\n | PersistentIndexDescription\r\n | TtlIndexDescription\r\n | MdiIndexDescription\r\n | MdiPrefixedIndexDescription\r\n | InvertedIndexDescription\r\n | SystemIndexDescription\r\n | VectorIndexDescription;\r\n\r\n/**\r\n * An object representing a system index.\r\n */\r\nexport type SystemIndexDescription =\r\n | PrimaryIndexDescription\r\n | EdgeIndexDescription;\r\n\r\n/**\r\n * Shared attributes of all index types.\r\n */\r\nexport type IndexDescriptionType<\r\n Type extends string,\r\n Fields extends any[],\r\n Extra extends {} = {},\r\n> = {\r\n /**\r\n * A unique name for this index.\r\n */\r\n name: string;\r\n /**\r\n * A unique identifier for this index.\r\n */\r\n id: string;\r\n /**\r\n * Type of this index.\r\n */\r\n type: Type;\r\n /**\r\n * An array of attribute paths.\r\n */\r\n fields: Fields;\r\n /**\r\n * Whether documents not containing at least one of the attribute paths\r\n * are omitted by this index.\r\n */\r\n sparse: boolean;\r\n /**\r\n * Whether this index enforces uniqueness for values of its attribute paths.\r\n */\r\n unique: boolean;\r\n /**\r\n * Additional stats about this index.\r\n */\r\n figures?: Record<string, any>;\r\n} & Extra;\r\n\r\n/**\r\n * An object representing a persistent index.\r\n */\r\nexport type PersistentIndexDescription = IndexDescriptionType<\r\n \"persistent\",\r\n string[],\r\n {\r\n cacheEnabled: boolean;\r\n deduplicate: boolean;\r\n estimates: boolean;\r\n selectivityEstimate: number;\r\n storedValues?: string[];\r\n }\r\n>;\r\n\r\n/**\r\n * An object representing a primary index.\r\n */\r\nexport type PrimaryIndexDescription = IndexDescriptionType<\r\n \"primary\",\r\n [\"_key\"],\r\n {\r\n selectivityEstimate: number;\r\n }\r\n>;\r\n\r\n/**\r\n * An object representing an edge index.\r\n */\r\nexport type EdgeIndexDescription = IndexDescriptionType<\r\n \"edge\",\r\n [\"_from\", \"_to\"],\r\n {\r\n selectivityEstimate: number;\r\n }\r\n>;\r\n\r\n/**\r\n * An object representing a fulltext index.\r\n *\r\n * @deprecated The `fulltext` index type was deprecated in ArangoDB 3.10. Use\r\n * {@link views.View}s instead.\r\n */\r\nexport type FulltextIndexDescription = IndexDescriptionType<\r\n \"fulltext\",\r\n [string],\r\n {\r\n minLength: number;\r\n }\r\n>;\r\n\r\n/**\r\n * An object representing an edge index.\r\n */\r\nexport type EdgeIndex = IndexDescriptionType<\r\n \"edge\",\r\n [\"_from\", \"_to\"],\r\n {\r\n selectivityEstimate: number;\r\n }\r\n>;\r\n\r\n/**\r\n * An object representing a fulltext index.\r\n *\r\n * @deprecated The `fulltext` index type was deprecated in ArangoDB 3.10. Use\r\n * {@link views.View} instead.\r\n */\r\nexport type FulltextIndex = IndexDescriptionType<\r\n \"fulltext\",\r\n [string],\r\n {\r\n minLength: number;\r\n }\r\n>;\r\n\r\n/**\r\n * An object representing a geo index.\r\n */\r\nexport type GeoIndexDescription = IndexDescriptionType<\r\n \"geo\",\r\n [string] | [string, string],\r\n {\r\n geoJson: boolean;\r\n legacyPolygons: boolean;\r\n bestIndexedLevel: number;\r\n worstIndexedLevel: number;\r\n maxNumCoverCells: number;\r\n }\r\n>;\r\n\r\n/**\r\n * An object representing a TTL index.\r\n */\r\nexport type TtlIndexDescription = IndexDescriptionType<\r\n \"ttl\",\r\n [string],\r\n {\r\n expireAfter: number;\r\n estimates: boolean;\r\n selectivityEstimate: number;\r\n }\r\n>;\r\n\r\n/**\r\n * An object representing a MDI index.\r\n */\r\nexport type MdiIndexDescription = IndexDescriptionType<\r\n \"mdi\",\r\n string[],\r\n {\r\n fieldValueTypes: \"double\";\r\n estimates: boolean;\r\n selectivityEstimate: number;\r\n storedValues?: string[];\r\n }\r\n>;\r\n\r\n/**\r\n * An object representing a prefixed MDI index.\r\n */\r\nexport type MdiPrefixedIndexDescription = IndexDescriptionType<\r\n \"mdi-prefixed\",\r\n string[],\r\n {\r\n fieldValueTypes: \"double\";\r\n estimates: boolean;\r\n selectivityEstimate: number;\r\n storedValues?: string[];\r\n prefixFields: string[];\r\n }\r\n>;\r\n\r\n/**\r\n * An object representing an inverted index.\r\n */\r\nexport type InvertedIndexDescription = IndexDescriptionType<\r\n \"inverted\",\r\n InvertedIndexField[],\r\n {\r\n searchField: boolean;\r\n cache?: boolean;\r\n storedValues: {\r\n fields: string[];\r\n compression: views.Compression;\r\n cache?: boolean;\r\n }[];\r\n primarySort: {\r\n fields: {\r\n field: string;\r\n direction: views.Direction;\r\n }[];\r\n compression: views.Compression;\r\n cache?: boolean;\r\n };\r\n primaryKeyCache?: boolean;\r\n analyzer: string;\r\n features: analyzers.AnalyzerFeature[];\r\n includeAllFields: boolean;\r\n trackListPositions: boolean;\r\n parallelism: number;\r\n cleanupIntervalStep: number;\r\n commitIntervalMsec: number;\r\n consolidationIntervalMsec: number;\r\n consolidationPolicy: Required<views.TierConsolidationPolicy>;\r\n writeBufferIdle: number;\r\n writeBufferActive: number;\r\n writeBufferSizeMax: number;\r\n optimizeTopK: string[];\r\n }\r\n>;\r\n\r\n/**\r\n * An object representing a field in an inverted index.\r\n */\r\nexport type InvertedIndexField = {\r\n name: string;\r\n analyzer?: string;\r\n features?: analyzers.AnalyzerFeature[];\r\n includeAllFields?: boolean;\r\n searchField?: boolean;\r\n trackListPositions?: boolean;\r\n nested?: InvertedIndexNestedField[];\r\n cache?: boolean;\r\n};\r\n\r\n/**\r\n * (Enterprise Edition only.) An object representing a nested field in an\r\n * inverted index.\r\n */\r\nexport type InvertedIndexNestedField = {\r\n name: string;\r\n analyzer?: string;\r\n features?: analyzers.AnalyzerFeature[];\r\n searchField?: boolean;\r\n nested?: InvertedIndexNestedField[];\r\n};\r\n\r\n/**\r\n * An object representing an arangosearch index.\r\n */\r\nexport type ArangosearchIndexDescription = {\r\n id: string;\r\n type: \"arangosearch\";\r\n view: string;\r\n figures?: Record<string, any>;\r\n analyzers: string[];\r\n fields: Record<string, Record<string, any>>;\r\n includeAllFields: boolean;\r\n trackListPositions: boolean;\r\n storeValues: \"none\" | \"id\";\r\n};\r\n\r\n/**\r\n * An object representing an internal index.\r\n */\r\nexport type InternalIndexDescription = ArangosearchIndexDescription;\r\n\r\n/**\r\n * An object representing a potentially hidden index.\r\n *\r\n * This type can be used to cast the result of `collection.indexes` to better\r\n * reflect the actual data returned by the server when using the `withHidden`\r\n * option:\r\n *\r\n * ```ts\r\n * const indexes = await collection.indexes<HiddenIndex>({\r\n * withHidden: true\r\n * }));\r\n * // indexes may include internal indexes and indexes with a \"progress\"\r\n * // property\r\n * ```\r\n */\r\nexport type HiddenIndexDescription = (\r\n | IndexDescription\r\n | InternalIndexDescription\r\n) & {\r\n /**\r\n * Progress of this index if it is still being created.\r\n */\r\n progress?: number;\r\n};\r\n\r\n/**\r\n * An object representing a vector index.\r\n */\r\nexport type VectorIndexDescription = IndexDescriptionType<\r\n \"vector\",\r\n [string],\r\n {\r\n parallelism: number;\r\n inBackground: boolean;\r\n params: {\r\n metric: \"cosine\" | \"l2\";\r\n dimension: number;\r\n nLists: number;\r\n defaultNProbe?: number;\r\n trainingIterations?: number;\r\n factory?: string;\r\n };\r\n }\r\n>;\r\n//#endregion\r\n\r\n//#region Index selectors\r\n/**\r\n * Index name, id or object with a `name` or `id` property.\r\n */\r\nexport type IndexSelector = ObjectWithIndexId | ObjectWithName | string;\r\n\r\n/**\r\n * An object with an `id` property.\r\n */\r\nexport type ObjectWithIndexId = {\r\n [key: string]: any;\r\n id: string;\r\n};\r\n\r\n/**\r\n * An object with a `name` property.\r\n */\r\nexport type ObjectWithName = {\r\n [key: string]: any;\r\n name: string;\r\n};\r\n\r\n/**\r\n * @internal\r\n */\r\nexport function _indexHandle(\r\n selector: IndexSelector,\r\n collectionName: string\r\n): string {\r\n if (typeof selector !== \"string\") {\r\n if (selector.id) {\r\n return _indexHandle(selector.id, collectionName);\r\n }\r\n throw new Error(\r\n \"Index handle must be a string or an object with an id attribute\"\r\n );\r\n }\r\n if (selector.includes(\"/\")) {\r\n const [head] = selector.split(\"/\");\r\n if (head !== collectionName) {\r\n throw new Error(\r\n `Index ID \"${selector}\" does not match collection name \"${collectionName}\"`\r\n );\r\n }\r\n return selector;\r\n }\r\n return `${collectionName}/${String(selector)}`;\r\n}\r\n//#endregion\r\n"]}
|
|
1
|
+
{"version":3,"file":"indexes.js","sourceRoot":"","sources":["../../src/indexes.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAu8BH;;GAEG;AACH,SAAgB,YAAY,CAC1B,QAAuB,EACvB,cAAsB;IAEtB,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE,CAAC;QACjC,IAAI,QAAQ,CAAC,EAAE,EAAE,CAAC;YAChB,OAAO,YAAY,CAAC,QAAQ,CAAC,EAAE,EAAE,cAAc,CAAC,CAAC;QACnD,CAAC;QACD,MAAM,IAAI,KAAK,CACb,iEAAiE,CAClE,CAAC;IACJ,CAAC;IACD,IAAI,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;QAC3B,MAAM,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACnC,IAAI,IAAI,KAAK,cAAc,EAAE,CAAC;YAC5B,MAAM,IAAI,KAAK,CACb,aAAa,QAAQ,qCAAqC,cAAc,GAAG,CAC5E,CAAC;QACJ,CAAC;QACD,OAAO,QAAQ,CAAC;IAClB,CAAC;IACD,OAAO,GAAG,cAAc,IAAI,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;AACjD,CAAC;AAtBD,oCAsBC;AACD,YAAY","sourcesContent":["/**\r\n * ```ts\r\n * import type {\r\n * FulltextIndex,\r\n * GeoIndex,\r\n * MdiIndex,\r\n * PersistentIndex,\r\n * PrimaryIndex,\r\n * TtlIndex,\r\n * } from \"arangojs/indexes\";\r\n * ```\r\n *\r\n * The \"indexes\" module provides index-related types for TypeScript.\r\n *\r\n * @packageDocumentation\r\n */\r\n\r\nimport * as analyzers from \"./analyzers.js\";\r\nimport * as views from \"./views.js\";\r\n\r\n//#region Shared types\r\n/**\r\n * Type of an index.\r\n */\r\nexport type IndexType = IndexDescription[\"type\"];\r\n\r\n/**\r\n * Type of an internal index.\r\n */\r\nexport type InternalIndexType = InternalIndexDescription[\"type\"];\r\n//#endregion\r\n\r\n//#region Index operation options\r\n/**\r\n * Options for listing indexes.\r\n */\r\nexport type ListIndexesOptions = {\r\n /**\r\n * If set to `true`, includes additional information about each index.\r\n *\r\n * Default: `false`\r\n */\r\n withStats?: boolean;\r\n /**\r\n * If set to `true`, includes internal indexes as well as indexes that are\r\n * not yet fully built but are in the building phase.\r\n *\r\n * You should cast the resulting indexes to `HiddenIndex` to ensure internal\r\n * and incomplete indexes are accurately represented.\r\n *\r\n * Default: `false`.\r\n */\r\n withHidden?: boolean;\r\n};\r\n\r\n/**\r\n * Options for creating an index.\r\n */\r\nexport type EnsureIndexOptions =\r\n | EnsurePersistentIndexOptions\r\n | EnsureGeoIndexOptions\r\n | EnsureTtlIndexOptions\r\n | EnsureMdiIndexOptions\r\n | EnsureMdiPrefixedIndexOptions\r\n | EnsureInvertedIndexOptions\r\n | EnsureVectorIndexOptions;\r\n\r\n/**\r\n * Shared attributes of all index creation options.\r\n */\r\nexport type EnsureIndexOptionsType<\r\n Type extends IndexType,\r\n Fields extends any[],\r\n Extra extends {} = {},\r\n> = {\r\n /**\r\n * A unique name for this index.\r\n */\r\n name?: string;\r\n /**\r\n * Type of this index.\r\n */\r\n type: Type;\r\n /**\r\n * An array of attribute paths.\r\n */\r\n fields: Fields;\r\n /**\r\n * If set to `true`, the index will be created in the background to reduce\r\n * the write-lock duration for the collection during index creation.\r\n *\r\n * Default: `false`\r\n */\r\n inBackground?: boolean;\r\n} & Extra;\r\n\r\n/**\r\n * Options for creating a persistent index.\r\n */\r\nexport type EnsurePersistentIndexOptions = EnsureIndexOptionsType<\r\n \"persistent\",\r\n string[],\r\n {\r\n /**\r\n * If set to `true`, a unique index will be created.\r\n *\r\n * Default: `false`\r\n */\r\n unique?: boolean;\r\n /**\r\n * If set to `true`, the index will omit documents that do not contain at\r\n * least one of the attribute paths in `fields` and these documents will be\r\n * ignored for uniqueness checks.\r\n *\r\n * Default: `false`\r\n */\r\n sparse?: boolean;\r\n /**\r\n * If set to `false`, inserting duplicate index values from the same\r\n * document will lead to a unique constraint error if this is a unique index.\r\n *\r\n * Default: `true`\r\n */\r\n deduplicate?: boolean;\r\n /**\r\n * If set to `false`, index selectivity estimates will be disabled for this\r\n * index.\r\n *\r\n * Default: `true`\r\n */\r\n estimates?: boolean;\r\n /**\r\n * If set to `true`, an in-memory hash cache will be put in front of the\r\n * persistent index.\r\n *\r\n * Default: `false`\r\n */\r\n cacheEnabled?: boolean;\r\n /**\r\n * An array of attribute paths that will be stored in the index but can not\r\n * be used for index lookups or sorting but can avoid full document lookups.\r\n */\r\n storedValues?: string[];\r\n }\r\n>;\r\n\r\n/**\r\n * Options for creating a geo index.\r\n */\r\nexport type EnsureGeoIndexOptions = EnsureIndexOptionsType<\r\n \"geo\",\r\n [string, string] | [string],\r\n {\r\n /**\r\n * If set to `true`, `fields` must be an array containing a single attribute\r\n * path and the attribute value must be an array with two values, the first\r\n * of which will be interpreted as the longitude and the second of which\r\n * will be interpreted as the latitude of the document.\r\n *\r\n * If set to `false`, `fields` can be either an array containing two\r\n * attribute paths, the first of which will be interpreted as the latitude\r\n * and the second as the longitude, or a single attribute path for an array\r\n * containing two values, the first of which will be interpreted as the\r\n * latitude, the second as the longitude.\r\n *\r\n * Default: `false`\r\n */\r\n geoJson?: boolean;\r\n /**\r\n * If set to `true`, the index will use pre-3.10 rules for parsing\r\n * GeoJSON polygons. This option is always implicitly `true` when using\r\n * ArangoDB 3.9 or lower.\r\n */\r\n legacyPolygons?: boolean;\r\n }\r\n>;\r\n\r\n/**\r\n * Options for creating a TTL index.\r\n */\r\nexport type EnsureTtlIndexOptions = EnsureIndexOptionsType<\r\n \"ttl\",\r\n [string],\r\n {\r\n /**\r\n * Duration in seconds after the attribute value at which the document will\r\n * be considered as expired.\r\n */\r\n expireAfter: number;\r\n }\r\n>;\r\n\r\n/**\r\n * Options for creating a MDI index.\r\n */\r\nexport type EnsureMdiIndexOptions = EnsureIndexOptionsType<\r\n \"mdi\",\r\n string[],\r\n {\r\n /**\r\n * Data type of the dimension attributes.\r\n */\r\n fieldValueTypes: \"double\";\r\n /**\r\n * If set to `true`, a unique index will be created.\r\n *\r\n * Default: `false`\r\n */\r\n unique?: boolean;\r\n /**\r\n * If set to `true`, the index will omit documents that do not contain at\r\n * least one of the attribute paths in `fields` and these documents will be\r\n * ignored for uniqueness checks.\r\n *\r\n * Default: `false`\r\n */\r\n sparse?: boolean;\r\n /**\r\n * If set to `false`, index selectivity estimates will be disabled for this\r\n * index.\r\n *\r\n * Default: `true`\r\n */\r\n estimates?: boolean;\r\n /**\r\n * An array of attribute paths that will be stored in the index but can not\r\n * be used for index lookups or sorting but can avoid full document lookups.\r\n */\r\n storedValues?: string[];\r\n }\r\n>;\r\n\r\n/**\r\n * Options for creating a prefixed MDI index.\r\n */\r\nexport type EnsureMdiPrefixedIndexOptions = EnsureIndexOptionsType<\r\n \"mdi-prefixed\",\r\n string[],\r\n {\r\n /**\r\n * An array of attribute names used as a search prefix.\r\n */\r\n prefixFields: string[];\r\n /**\r\n * Data type of the dimension attributes.\r\n */\r\n fieldValueTypes: \"double\";\r\n /**\r\n * If set to `true`, a unique index will be created.\r\n *\r\n * Default: `false`\r\n */\r\n unique?: boolean;\r\n /**\r\n * If set to `true`, the index will omit documents that do not contain at\r\n * least one of the attribute paths in `fields` and these documents will be\r\n * ignored for uniqueness checks.\r\n *\r\n * Default: `false`\r\n */\r\n sparse?: boolean;\r\n /**\r\n * If set to `false`, index selectivity estimates will be disabled for this\r\n * index.\r\n *\r\n * Default: `true`\r\n */\r\n estimates?: boolean;\r\n /**\r\n * An array of attribute paths that will be stored in the index but can not\r\n * be used for index lookups or sorting but can avoid full document lookups.\r\n */\r\n storedValues?: string[];\r\n }\r\n>;\r\n\r\n/**\r\n * Options for creating an inverted index.\r\n */\r\nexport type EnsureInvertedIndexOptions = EnsureIndexOptionsType<\r\n \"inverted\",\r\n (string | InvertedIndexFieldOptions)[],\r\n {\r\n /**\r\n * If set to `true` array values will by default be indexed using the same\r\n * behavior as ArangoSearch Views. This option only applies when using the\r\n * index in a SearchAlias View.\r\n *\r\n * Default: `false`\r\n */\r\n searchField?: boolean;\r\n /**\r\n * An array of attribute paths that will be stored in the index but can not\r\n * be used for index lookups or sorting but can avoid full document lookups.\r\n */\r\n storedValues?: InvertedIndexStoredValueOptions[];\r\n /**\r\n * Primary sort order to optimize AQL queries using a matching sort order.\r\n */\r\n primarySort?: InvertedIndexPrimarySortOptions;\r\n /**\r\n * (Enterprise Edition only.) If set to `true`, then the primary key column\r\n * will always be cached in memory.\r\n *\r\n * Default: `false`\r\n */\r\n primaryKeyCache?: boolean;\r\n /**\r\n * Name of the default Analyzer to apply to the values of indexed fields.\r\n *\r\n * Default: `\"identity\"`\r\n */\r\n analyzer?: string;\r\n /**\r\n * List of Analyzer features to enable for the default Analyzer.\r\n *\r\n * Defaults to the Analyzer's features.\r\n */\r\n features?: analyzers.AnalyzerFeature[];\r\n /**\r\n * If set to `true`, all document attributes are indexed, excluding any\r\n * sub-attributes configured in the `fields` array. The `analyzer` and\r\n * `features` properties apply to the sub-attributes. This option only\r\n * applies when using the index in a SearchAlias View.\r\n *\r\n * Default: `false`\r\n */\r\n includeAllFields?: boolean;\r\n /**\r\n * If set to `true`, the position of values in array values are tracked and\r\n * need to be specified in queries. Otherwise all values in an array are\r\n * treated as equivalent. This option only applies when using the index in a\r\n * SearchAlias View.\r\n *\r\n * Default: `false`\r\n */\r\n trackListPositions?: boolean;\r\n /**\r\n * The number of threads to use for indexing the fields.\r\n *\r\n * Default: `2`\r\n */\r\n parallelism?: number;\r\n /**\r\n * Wait at least this many commits between removing unused files in the\r\n * ArangoSearch data directory.\r\n *\r\n * Default: `2`\r\n */\r\n cleanupIntervalStep?: number;\r\n /**\r\n * Wait at least this many milliseconds between committing View data store\r\n * changes and making documents visible to queries.\r\n *\r\n * Default: `1000`\r\n */\r\n commitIntervalMsec?: number;\r\n /**\r\n * Wait at least this many milliseconds between applying\r\n * `consolidationPolicy` to consolidate View data store and possibly release\r\n * space on the filesystem.\r\n *\r\n * Default: `1000`\r\n */\r\n consolidationIntervalMsec?: number;\r\n /**\r\n * The consolidation policy to apply for selecting which segments should be\r\n * merged.\r\n *\r\n * Default: `{ type: \"tier\" }`\r\n */\r\n consolidationPolicy?: views.TierConsolidationPolicy;\r\n /**\r\n * Maximum number of writers (segments) cached in the pool.\r\n *\r\n * Default: `64`\r\n */\r\n writeBufferIdle?: number;\r\n /**\r\n * Maximum number of concurrent active writers (segments) that perform a\r\n * transaction.\r\n *\r\n * Default: `0` (disabled)\r\n */\r\n writeBufferActive?: number;\r\n /**\r\n * Maximum memory byte size per writer (segment) before a writer (segment)\r\n * flush is triggered.\r\n *\r\n * Default: `33554432` (32 MiB)\r\n */\r\n writeBufferSizeMax?: number;\r\n /**\r\n * (Enterprise Edition only.) If set to `true`, then field normalization\r\n * values will always be cached in memory.\r\n *\r\n * Default: `false`\r\n */\r\n cache?: boolean;\r\n /**\r\n * An array of strings defining sort expressions to optimize.\r\n */\r\n optimizeTopK?: string[];\r\n }\r\n>;\r\n\r\n/**\r\n * Options for an attribute path in an inverted index.\r\n */\r\nexport type InvertedIndexFieldOptions = {\r\n /**\r\n * An attribute path.\r\n */\r\n name: string;\r\n /**\r\n * Name of the Analyzer to apply to the values of this field.\r\n *\r\n * Defaults to the `analyzer` specified on the index itself.\r\n */\r\n analyzer?: string;\r\n /**\r\n * List of Analyzer features to enable for this field's Analyzer.\r\n *\r\n * Defaults to the features of the Analyzer.\r\n */\r\n features?: analyzers.AnalyzerFeature[];\r\n /**\r\n * If set to `true`, all document attributes are indexed, excluding any\r\n * sub-attributes configured in the `fields` array. The `analyzer` and\r\n * `features` properties apply to the sub-attributes. This option only\r\n * applies when using the index in a SearchAlias View.\r\n *\r\n * Defaults to the value of `includeAllFields` specified on the index itself.\r\n */\r\n includeAllFields?: boolean;\r\n /**\r\n * If set to `true` array values will be indexed using the same behavior as\r\n * ArangoSearch Views. This option only applies when using the index in a\r\n * SearchAlias View.\r\n *\r\n * Defaults to the value of `searchField` specified on the index itself.\r\n */\r\n searchField?: boolean;\r\n /**\r\n * If set to `true`, the position of values in array values are tracked and\r\n * need to be specified in queries. Otherwise all values in an array are\r\n * treated as equivalent. This option only applies when using the index in a\r\n * SearchAlias View.\r\n *\r\n * Defaults to the value of `trackListPositions` specified on the index\r\n * itself.\r\n */\r\n trackListPositions?: boolean;\r\n /**\r\n * (Enterprise Edition only.) Sub-objects to index to allow querying for\r\n * co-occurring values.\r\n */\r\n nested?: (string | InvertedIndexNestedFieldOptions)[];\r\n /**\r\n * (Enterprise Edition only.) If set to `true`, then field normalization\r\n * values will always be cached in memory.\r\n *\r\n * Defaults to the value of `cache` specified on the index itself.\r\n */\r\n cache?: boolean;\r\n};\r\n\r\n/**\r\n * Options for defining a primary sort field on an inverted index.\r\n */\r\nexport type InvertedIndexPrimarySortOptions = {\r\n /**\r\n * An array of fields to sort the index by.\r\n */\r\n fields: InvertedIndexPrimarySortFieldOptions[];\r\n /**\r\n * How the primary sort data should be compressed.\r\n *\r\n * Default: `\"lz4\"`\r\n */\r\n compression?: views.Compression;\r\n /**\r\n * (Enterprise Edition only.) If set to `true`, then primary sort columns\r\n * will always be cached in memory.\r\n *\r\n * Default: `false`\r\n */\r\n cache?: boolean;\r\n};\r\n\r\n/**\r\n * Options for defining a primary sort field on an inverted index.\r\n */\r\nexport type InvertedIndexPrimarySortFieldOptions = {\r\n /**\r\n * The attribute path to sort by.\r\n */\r\n field: string;\r\n /**\r\n * The sorting direction.\r\n */\r\n direction: views.Direction;\r\n};\r\n\r\n/**\r\n * (Enterprise Edition only.) Options for a nested field in an inverted index.\r\n */\r\nexport type InvertedIndexNestedFieldOptions = {\r\n /**\r\n * An attribute path.\r\n */\r\n name: string;\r\n /**\r\n * Name of the Analyzer to apply to the values of this field.\r\n *\r\n * Defaults to the `analyzer` specified on the parent options or on the index\r\n * itself.\r\n */\r\n analyzer?: string;\r\n /**\r\n * List of Analyzer features to enable for this field's Analyzer.\r\n *\r\n * Defaults to the features of the Analyzer.\r\n */\r\n features?: analyzers.AnalyzerFeature[];\r\n /**\r\n * If set to `true` array values will be indexed using the same behavior as\r\n * ArangoSearch Views. This option only applies when using the index in a\r\n * SearchAlias View.\r\n *\r\n * Defaults to the value of `searchField` specified on the index itself.\r\n */\r\n searchField?: boolean;\r\n /**\r\n * Sub-objects to index to allow querying for co-occurring values.\r\n */\r\n nested?: (string | InvertedIndexNestedFieldOptions)[];\r\n};\r\n\r\n/**\r\n * Options for defining a stored value on an inverted index.\r\n */\r\nexport type InvertedIndexStoredValueOptions = {\r\n /**\r\n * The attribute paths to store.\r\n */\r\n fields: string[];\r\n /**\r\n * How the attribute values should be compressed.\r\n *\r\n * Default: `\"lz4\"`\r\n */\r\n compression?: views.Compression;\r\n /**\r\n * (Enterprise Edition only.) If set to `true`, then stored values will\r\n * always be cached in memory.\r\n *\r\n * Default: `false`\r\n */\r\n cache?: boolean;\r\n};\r\n\r\n/**\r\n * Options for creating a vector index.\r\n */\r\nexport type EnsureVectorIndexOptions = EnsureIndexOptionsType<\r\n \"vector\",\r\n [string],\r\n {\r\n /**\r\n * The number of threads to use for indexing. Default is 2.\r\n */\r\n parallelism?: number;\r\n\r\n /**\r\n * An array of attribute paths that will be stored in the index for\r\n * efficient filtering. Unlike with other index types, this is not for\r\n * covering projections with the index but for adding attributes that\r\n * you filter on. This lets you make the lookup in the vector index\r\n * more efficient because it avoids materializing documents twice,\r\n * once for the filtering and once for the matches.\r\n *\r\n * The maximum number of attributes that you can use in storedValues is 32.\r\n *\r\n * Introduced in: ArangoDB 3.12.7\r\n */\r\n storedValues?: string[];\r\n\r\n /**\r\n * Vector index parameters, following Faiss configuration.\r\n */\r\n params: {\r\n /**\r\n * Whether to use cosine, l2 (Euclidean), or innerProduct distance.\r\n * innerProduct was introduced in ArangoDB 3.12.6.\r\n */\r\n metric: \"cosine\" | \"l2\" | \"innerProduct\";\r\n\r\n /**\r\n * Vector dimension. Must match the length of vectors in documents.\r\n */\r\n dimension: number;\r\n\r\n /**\r\n * Number of Voronoi cells (centroids) for IVF. Affects accuracy and index build time.\r\n */\r\n nLists: number;\r\n\r\n /**\r\n * How many neighboring centroids to probe by default. Higher = slower, better recall.\r\n */\r\n defaultNProbe?: number;\r\n\r\n /**\r\n * Training iterations for index build. Default is 25.\r\n */\r\n trainingIterations?: number;\r\n\r\n /**\r\n * Advanced Faiss index factory string.\r\n * If not specified, defaults to IVF<nLists>,Flat.\r\n */\r\n factory?: string;\r\n };\r\n }\r\n>;\r\n//#endregion\r\n\r\n//#region IndexDescription\r\n/**\r\n * An object representing an index.\r\n */\r\nexport type IndexDescription =\r\n | FulltextIndexDescription\r\n | GeoIndexDescription\r\n | PersistentIndexDescription\r\n | TtlIndexDescription\r\n | MdiIndexDescription\r\n | MdiPrefixedIndexDescription\r\n | InvertedIndexDescription\r\n | SystemIndexDescription\r\n | VectorIndexDescription;\r\n\r\n/**\r\n * An object representing a system index.\r\n */\r\nexport type SystemIndexDescription =\r\n | PrimaryIndexDescription\r\n | EdgeIndexDescription;\r\n\r\n/**\r\n * Shared attributes of all index types.\r\n */\r\nexport type IndexDescriptionType<\r\n Type extends string,\r\n Fields extends any[],\r\n Extra extends {} = {},\r\n> = {\r\n /**\r\n * A unique name for this index.\r\n */\r\n name: string;\r\n /**\r\n * A unique identifier for this index.\r\n */\r\n id: string;\r\n /**\r\n * Type of this index.\r\n */\r\n type: Type;\r\n /**\r\n * An array of attribute paths.\r\n */\r\n fields: Fields;\r\n /**\r\n * Whether documents not containing at least one of the attribute paths\r\n * are omitted by this index.\r\n */\r\n sparse: boolean;\r\n /**\r\n * Whether this index enforces uniqueness for values of its attribute paths.\r\n */\r\n unique: boolean;\r\n /**\r\n * Additional stats about this index.\r\n */\r\n figures?: Record<string, any>;\r\n} & Extra;\r\n\r\n/**\r\n * An object representing a persistent index.\r\n */\r\nexport type PersistentIndexDescription = IndexDescriptionType<\r\n \"persistent\",\r\n string[],\r\n {\r\n cacheEnabled: boolean;\r\n deduplicate: boolean;\r\n estimates: boolean;\r\n selectivityEstimate: number;\r\n storedValues?: string[];\r\n }\r\n>;\r\n\r\n/**\r\n * An object representing a primary index.\r\n */\r\nexport type PrimaryIndexDescription = IndexDescriptionType<\r\n \"primary\",\r\n [\"_key\"],\r\n {\r\n selectivityEstimate: number;\r\n }\r\n>;\r\n\r\n/**\r\n * An object representing an edge index.\r\n */\r\nexport type EdgeIndexDescription = IndexDescriptionType<\r\n \"edge\",\r\n [\"_from\", \"_to\"],\r\n {\r\n selectivityEstimate: number;\r\n }\r\n>;\r\n\r\n/**\r\n * An object representing a fulltext index.\r\n *\r\n * @deprecated The `fulltext` index type was deprecated in ArangoDB 3.10. Use\r\n * {@link views.View}s instead.\r\n */\r\nexport type FulltextIndexDescription = IndexDescriptionType<\r\n \"fulltext\",\r\n [string],\r\n {\r\n minLength: number;\r\n }\r\n>;\r\n\r\n/**\r\n * An object representing an edge index.\r\n */\r\nexport type EdgeIndex = IndexDescriptionType<\r\n \"edge\",\r\n [\"_from\", \"_to\"],\r\n {\r\n selectivityEstimate: number;\r\n }\r\n>;\r\n\r\n/**\r\n * An object representing a fulltext index.\r\n *\r\n * @deprecated The `fulltext` index type was deprecated in ArangoDB 3.10. Use\r\n * {@link views.View} instead.\r\n */\r\nexport type FulltextIndex = IndexDescriptionType<\r\n \"fulltext\",\r\n [string],\r\n {\r\n minLength: number;\r\n }\r\n>;\r\n\r\n/**\r\n * An object representing a geo index.\r\n */\r\nexport type GeoIndexDescription = IndexDescriptionType<\r\n \"geo\",\r\n [string] | [string, string],\r\n {\r\n geoJson: boolean;\r\n legacyPolygons: boolean;\r\n bestIndexedLevel: number;\r\n worstIndexedLevel: number;\r\n maxNumCoverCells: number;\r\n }\r\n>;\r\n\r\n/**\r\n * An object representing a TTL index.\r\n */\r\nexport type TtlIndexDescription = IndexDescriptionType<\r\n \"ttl\",\r\n [string],\r\n {\r\n expireAfter: number;\r\n estimates: boolean;\r\n selectivityEstimate: number;\r\n }\r\n>;\r\n\r\n/**\r\n * An object representing a MDI index.\r\n */\r\nexport type MdiIndexDescription = IndexDescriptionType<\r\n \"mdi\",\r\n string[],\r\n {\r\n fieldValueTypes: \"double\";\r\n estimates: boolean;\r\n selectivityEstimate: number;\r\n storedValues?: string[];\r\n }\r\n>;\r\n\r\n/**\r\n * An object representing a prefixed MDI index.\r\n */\r\nexport type MdiPrefixedIndexDescription = IndexDescriptionType<\r\n \"mdi-prefixed\",\r\n string[],\r\n {\r\n fieldValueTypes: \"double\";\r\n estimates: boolean;\r\n selectivityEstimate: number;\r\n storedValues?: string[];\r\n prefixFields: string[];\r\n }\r\n>;\r\n\r\n/**\r\n * An object representing an inverted index.\r\n */\r\nexport type InvertedIndexDescription = IndexDescriptionType<\r\n \"inverted\",\r\n InvertedIndexField[],\r\n {\r\n searchField: boolean;\r\n cache?: boolean;\r\n storedValues: {\r\n fields: string[];\r\n compression: views.Compression;\r\n cache?: boolean;\r\n }[];\r\n primarySort: {\r\n fields: {\r\n field: string;\r\n direction: views.Direction;\r\n }[];\r\n compression: views.Compression;\r\n cache?: boolean;\r\n };\r\n primaryKeyCache?: boolean;\r\n analyzer: string;\r\n features: analyzers.AnalyzerFeature[];\r\n includeAllFields: boolean;\r\n trackListPositions: boolean;\r\n parallelism: number;\r\n cleanupIntervalStep: number;\r\n commitIntervalMsec: number;\r\n consolidationIntervalMsec: number;\r\n consolidationPolicy: Required<views.TierConsolidationPolicy>;\r\n writeBufferIdle: number;\r\n writeBufferActive: number;\r\n writeBufferSizeMax: number;\r\n optimizeTopK: string[];\r\n }\r\n>;\r\n\r\n/**\r\n * An object representing a field in an inverted index.\r\n */\r\nexport type InvertedIndexField = {\r\n name: string;\r\n analyzer?: string;\r\n features?: analyzers.AnalyzerFeature[];\r\n includeAllFields?: boolean;\r\n searchField?: boolean;\r\n trackListPositions?: boolean;\r\n nested?: InvertedIndexNestedField[];\r\n cache?: boolean;\r\n};\r\n\r\n/**\r\n * (Enterprise Edition only.) An object representing a nested field in an\r\n * inverted index.\r\n */\r\nexport type InvertedIndexNestedField = {\r\n name: string;\r\n analyzer?: string;\r\n features?: analyzers.AnalyzerFeature[];\r\n searchField?: boolean;\r\n nested?: InvertedIndexNestedField[];\r\n};\r\n\r\n/**\r\n * An object representing an arangosearch index.\r\n */\r\nexport type ArangosearchIndexDescription = {\r\n id: string;\r\n type: \"arangosearch\";\r\n view: string;\r\n figures?: Record<string, any>;\r\n analyzers: string[];\r\n fields: Record<string, Record<string, any>>;\r\n includeAllFields: boolean;\r\n trackListPositions: boolean;\r\n storeValues: \"none\" | \"id\";\r\n};\r\n\r\n/**\r\n * An object representing an internal index.\r\n */\r\nexport type InternalIndexDescription = ArangosearchIndexDescription;\r\n\r\n/**\r\n * An object representing a potentially hidden index.\r\n *\r\n * This type can be used to cast the result of `collection.indexes` to better\r\n * reflect the actual data returned by the server when using the `withHidden`\r\n * option:\r\n *\r\n * ```ts\r\n * const indexes = await collection.indexes<HiddenIndex>({\r\n * withHidden: true\r\n * }));\r\n * // indexes may include internal indexes and indexes with a \"progress\"\r\n * // property\r\n * ```\r\n */\r\nexport type HiddenIndexDescription = (\r\n | IndexDescription\r\n | InternalIndexDescription\r\n) & {\r\n /**\r\n * Progress of this index if it is still being created.\r\n */\r\n progress?: number;\r\n};\r\n\r\n/**\r\n * An object representing a vector index.\r\n */\r\nexport type VectorIndexDescription = IndexDescriptionType<\r\n \"vector\",\r\n [string],\r\n {\r\n parallelism: number;\r\n inBackground: boolean;\r\n /**\r\n * An array of attribute paths that are stored in the index for\r\n * efficient filtering.\r\n *\r\n * Introduced in: ArangoDB 3.12.7\r\n */\r\n storedValues?: string[];\r\n params: {\r\n metric: \"cosine\" | \"l2\" | \"innerProduct\";\r\n dimension: number;\r\n nLists: number;\r\n defaultNProbe?: number;\r\n trainingIterations?: number;\r\n factory?: string;\r\n };\r\n }\r\n>;\r\n//#endregion\r\n\r\n//#region Index selectors\r\n/**\r\n * Index name, id or object with a `name` or `id` property.\r\n */\r\nexport type IndexSelector = ObjectWithIndexId | ObjectWithName | string;\r\n\r\n/**\r\n * An object with an `id` property.\r\n */\r\nexport type ObjectWithIndexId = {\r\n [key: string]: any;\r\n id: string;\r\n};\r\n\r\n/**\r\n * An object with a `name` property.\r\n */\r\nexport type ObjectWithName = {\r\n [key: string]: any;\r\n name: string;\r\n};\r\n\r\n/**\r\n * @internal\r\n */\r\nexport function _indexHandle(\r\n selector: IndexSelector,\r\n collectionName: string\r\n): string {\r\n if (typeof selector !== \"string\") {\r\n if (selector.id) {\r\n return _indexHandle(selector.id, collectionName);\r\n }\r\n throw new Error(\r\n \"Index handle must be a string or an object with an id attribute\"\r\n );\r\n }\r\n if (selector.includes(\"/\")) {\r\n const [head] = selector.split(\"/\");\r\n if (head !== collectionName) {\r\n throw new Error(\r\n `Index ID \"${selector}\" does not match collection name \"${collectionName}\"`\r\n );\r\n }\r\n return selector;\r\n }\r\n return `${collectionName}/${String(selector)}`;\r\n}\r\n//#endregion\r\n"]}
|
package/cjs/users.d.ts
CHANGED
|
@@ -93,4 +93,95 @@ export type ArangoUser = {
|
|
|
93
93
|
*/
|
|
94
94
|
extra: Record<string, any>;
|
|
95
95
|
};
|
|
96
|
+
/**
|
|
97
|
+
* Options for creating an access token.
|
|
98
|
+
*/
|
|
99
|
+
export type CreateAccessTokenOptions = {
|
|
100
|
+
/**
|
|
101
|
+
* Unique name for the access token.
|
|
102
|
+
* Must be unique per user.
|
|
103
|
+
*/
|
|
104
|
+
name: string;
|
|
105
|
+
/**
|
|
106
|
+
* Unix timestamp (in seconds) indicating when the token expires.
|
|
107
|
+
* If not provided, token does not expire.
|
|
108
|
+
*
|
|
109
|
+
* Note: Only Unix timestamp (number) is accepted, not Date objects.
|
|
110
|
+
*/
|
|
111
|
+
valid_until?: number;
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* Access token returned when creating a new token.
|
|
115
|
+
* This is the only time the token value is returned.
|
|
116
|
+
*/
|
|
117
|
+
export type AccessToken = {
|
|
118
|
+
/**
|
|
119
|
+
* Unique identifier for the token.
|
|
120
|
+
*/
|
|
121
|
+
id: number;
|
|
122
|
+
/**
|
|
123
|
+
* Name of the token.
|
|
124
|
+
*/
|
|
125
|
+
name: string;
|
|
126
|
+
/**
|
|
127
|
+
* Unix timestamp (in seconds) when the token expires.
|
|
128
|
+
*/
|
|
129
|
+
valid_until: number;
|
|
130
|
+
/**
|
|
131
|
+
* Unix timestamp (in seconds) when the token was created.
|
|
132
|
+
*/
|
|
133
|
+
created_at: number;
|
|
134
|
+
/**
|
|
135
|
+
* MD5 fingerprint of the token.
|
|
136
|
+
*/
|
|
137
|
+
fingerprint: string;
|
|
138
|
+
/**
|
|
139
|
+
* Whether the token is currently active.
|
|
140
|
+
*/
|
|
141
|
+
active: boolean;
|
|
142
|
+
/**
|
|
143
|
+
* The actual token value.
|
|
144
|
+
* This is only present in the creation response and cannot be retrieved again.
|
|
145
|
+
*/
|
|
146
|
+
token: string;
|
|
147
|
+
};
|
|
148
|
+
/**
|
|
149
|
+
* Access token metadata (without the token value).
|
|
150
|
+
* Returned when listing tokens.
|
|
151
|
+
*/
|
|
152
|
+
export type AccessTokenMetadata = {
|
|
153
|
+
/**
|
|
154
|
+
* Unique identifier for the token.
|
|
155
|
+
*/
|
|
156
|
+
id: number;
|
|
157
|
+
/**
|
|
158
|
+
* Name of the token.
|
|
159
|
+
*/
|
|
160
|
+
name: string;
|
|
161
|
+
/**
|
|
162
|
+
* Unix timestamp (in seconds) when the token expires.
|
|
163
|
+
*/
|
|
164
|
+
valid_until: number;
|
|
165
|
+
/**
|
|
166
|
+
* Unix timestamp (in seconds) when the token was created.
|
|
167
|
+
*/
|
|
168
|
+
created_at: number;
|
|
169
|
+
/**
|
|
170
|
+
* MD5 fingerprint of the token.
|
|
171
|
+
*/
|
|
172
|
+
fingerprint: string;
|
|
173
|
+
/**
|
|
174
|
+
* Whether the token is currently active.
|
|
175
|
+
*/
|
|
176
|
+
active: boolean;
|
|
177
|
+
};
|
|
178
|
+
/**
|
|
179
|
+
* Response from listing access tokens.
|
|
180
|
+
*/
|
|
181
|
+
export type AccessTokenListResponse = {
|
|
182
|
+
/**
|
|
183
|
+
* Array of access token metadata.
|
|
184
|
+
*/
|
|
185
|
+
tokens: AccessTokenMetadata[];
|
|
186
|
+
};
|
|
96
187
|
//# sourceMappingURL=users.d.ts.map
|
package/cjs/users.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/users.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAG5C;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAI/C;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OA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,CAAC;IAChB;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,MAAM,EAAE,mBAAmB,EAAE,CAAC;CAC/B,CAAC"}
|
package/cjs/users.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.js","sourceRoot":"","sources":["../../src/users.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"users.js","sourceRoot":"","sources":["../../src/users.ts"],"names":[],"mappings":";;AA0MA,YAAY","sourcesContent":["/**\r\n * ```ts\r\n * import type { ArangoUser } from \"arangojs/users\";\r\n * ```\r\n *\r\n * The \"users\" module provides types for ArangoDB users.\r\n *\r\n * @packageDocumentation\r\n */\r\nimport * as collections from \"./collections.js\";\r\nimport * as databases from \"./databases.js\";\r\n\r\n//#region Shared types\r\n/**\r\n * Access level for an ArangoDB user's access to a collection or database.\r\n */\r\nexport type AccessLevel = \"rw\" | \"ro\" | \"none\";\r\n//#endregion\r\n\r\n//#region User operation options\r\n/**\r\n * Options for modifying an ArangoDB user.\r\n */\r\nexport type UserOptions = {\r\n /**\r\n * Password the ArangoDB user will use for authentication.\r\n */\r\n passwd: string;\r\n /**\r\n * Whether the ArangoDB user account is enabled and can authenticate.\r\n *\r\n * Default: `true`\r\n */\r\n active?: boolean;\r\n /**\r\n * Additional information to store about this user.\r\n *\r\n * Default: `{}`\r\n */\r\n extra?: Record<string, any>;\r\n};\r\n\r\n/**\r\n * Options for accessing or manipulating access levels.\r\n */\r\nexport type UserAccessLevelOptions = {\r\n /**\r\n * The database to access or manipulate the access level of.\r\n *\r\n * If `collection` is an `ArangoCollection`, this option defaults to the\r\n * database the collection is contained in. Otherwise this option defaults to\r\n * the current database.\r\n */\r\n database?: databases.Database | string;\r\n /**\r\n * The collection to access or manipulate the access level of.\r\n */\r\n collection?: collections.ArangoCollection | string;\r\n};\r\n\r\n/**\r\n * Database user to create with a database.\r\n */\r\nexport type CreateDatabaseUserOptions = {\r\n /**\r\n * Username of the user to create.\r\n */\r\n username: string;\r\n /**\r\n * Password of the user to create.\r\n *\r\n * Default: `\"\"`\r\n */\r\n passwd?: string;\r\n /**\r\n * Whether the user is active.\r\n *\r\n * Default: `true`\r\n */\r\n active?: boolean;\r\n /**\r\n * Additional data to store with the user object.\r\n */\r\n extra?: Record<string, any>;\r\n};\r\n//#endregion\r\n\r\n//#region User operation results\r\n/**\r\n * Properties of an ArangoDB user object.\r\n */\r\nexport type ArangoUser = {\r\n /**\r\n * ArangoDB username of the user.\r\n */\r\n user: string;\r\n /**\r\n * Whether the ArangoDB user account is enabled and can authenticate.\r\n */\r\n active: boolean;\r\n /**\r\n * Additional information to store about this user.\r\n */\r\n extra: Record<string, any>;\r\n};\r\n//#endregion\r\n\r\n//#region Access Token Types\r\n/**\r\n * Options for creating an access token.\r\n */\r\nexport type CreateAccessTokenOptions = {\r\n /**\r\n * Unique name for the access token.\r\n * Must be unique per user.\r\n */\r\n name: string;\r\n /**\r\n * Unix timestamp (in seconds) indicating when the token expires.\r\n * If not provided, token does not expire.\r\n *\r\n * Note: Only Unix timestamp (number) is accepted, not Date objects.\r\n */\r\n valid_until?: number;\r\n};\r\n\r\n/**\r\n * Access token returned when creating a new token.\r\n * This is the only time the token value is returned.\r\n */\r\nexport type AccessToken = {\r\n /**\r\n * Unique identifier for the token.\r\n */\r\n id: number;\r\n /**\r\n * Name of the token.\r\n */\r\n name: string;\r\n /**\r\n * Unix timestamp (in seconds) when the token expires.\r\n */\r\n valid_until: number;\r\n /**\r\n * Unix timestamp (in seconds) when the token was created.\r\n */\r\n created_at: number;\r\n /**\r\n * MD5 fingerprint of the token.\r\n */\r\n fingerprint: string;\r\n /**\r\n * Whether the token is currently active.\r\n */\r\n active: boolean;\r\n /**\r\n * The actual token value.\r\n * This is only present in the creation response and cannot be retrieved again.\r\n */\r\n token: string;\r\n};\r\n\r\n/**\r\n * Access token metadata (without the token value).\r\n * Returned when listing tokens.\r\n */\r\nexport type AccessTokenMetadata = {\r\n /**\r\n * Unique identifier for the token.\r\n */\r\n id: number;\r\n /**\r\n * Name of the token.\r\n */\r\n name: string;\r\n /**\r\n * Unix timestamp (in seconds) when the token expires.\r\n */\r\n valid_until: number;\r\n /**\r\n * Unix timestamp (in seconds) when the token was created.\r\n */\r\n created_at: number;\r\n /**\r\n * MD5 fingerprint of the token.\r\n */\r\n fingerprint: string;\r\n /**\r\n * Whether the token is currently active.\r\n */\r\n active: boolean;\r\n};\r\n\r\n/**\r\n * Response from listing access tokens.\r\n */\r\nexport type AccessTokenListResponse = {\r\n /**\r\n * Array of access token metadata.\r\n */\r\n tokens: AccessTokenMetadata[];\r\n};\r\n//#endregion"]}
|
package/cjs/views.d.ts
CHANGED
|
@@ -45,6 +45,9 @@ export type TierConsolidationPolicy = {
|
|
|
45
45
|
*/
|
|
46
46
|
type: "tier";
|
|
47
47
|
/**
|
|
48
|
+
* @deprecated This option is only available up to v3.12.6.
|
|
49
|
+
* It is ignored by the server from v3.12.7 onwards.
|
|
50
|
+
*
|
|
48
51
|
* Size below which all segments are treated as equivalent.
|
|
49
52
|
*
|
|
50
53
|
* Default: `2097152` (2 MiB)
|
|
@@ -57,6 +60,9 @@ export type TierConsolidationPolicy = {
|
|
|
57
60
|
*/
|
|
58
61
|
segmentsBytesMax?: number;
|
|
59
62
|
/**
|
|
63
|
+
* @deprecated This option is only available up to v3.12.6.
|
|
64
|
+
* It is ignored by the server from v3.12.7 onwards.
|
|
65
|
+
*
|
|
60
66
|
* Maximum number of segments that are evaluated as candidates for
|
|
61
67
|
* consolidation.
|
|
62
68
|
*
|
|
@@ -64,6 +70,9 @@ export type TierConsolidationPolicy = {
|
|
|
64
70
|
*/
|
|
65
71
|
segmentsMax?: number;
|
|
66
72
|
/**
|
|
73
|
+
* @deprecated This option is only available up to v3.12.6.
|
|
74
|
+
* It is ignored by the server from v3.12.7 onwards.
|
|
75
|
+
*
|
|
67
76
|
* Minimum number of segments that are evaluated as candidates for
|
|
68
77
|
* consolidation.
|
|
69
78
|
*
|
|
@@ -71,12 +80,72 @@ export type TierConsolidationPolicy = {
|
|
|
71
80
|
*/
|
|
72
81
|
segmentsMin?: number;
|
|
73
82
|
/**
|
|
83
|
+
* @deprecated This option is only available up to v3.12.6.
|
|
84
|
+
* It is ignored by the server from v3.12.7 onwards.
|
|
85
|
+
*
|
|
74
86
|
* Consolidation candidates with a score less than this value will be
|
|
75
87
|
* filtered out.
|
|
76
88
|
*
|
|
77
89
|
* Default: `0`
|
|
78
90
|
*/
|
|
79
91
|
minScore?: number;
|
|
92
|
+
/**
|
|
93
|
+
* This option is available from v3.12.7 onward.
|
|
94
|
+
*
|
|
95
|
+
* The skew describes how much segment files vary in file size. It is a number
|
|
96
|
+
* between `0.0` and `1.0` and is calculated by dividing the largest file size
|
|
97
|
+
* of a set of segment files by the total size. For example, the skew of a
|
|
98
|
+
* 200 MiB, 300 MiB, and 500 MiB segment file is `0.5` (`500 / 1000`).
|
|
99
|
+
*
|
|
100
|
+
* A large `maxSkewThreshold` value allows merging large segment files with
|
|
101
|
+
* smaller ones, consolidation occurs more frequently, and there are fewer
|
|
102
|
+
* segment files on disk at all times. While this may potentially improve the
|
|
103
|
+
* read performance and use fewer file descriptors, frequent consolidations
|
|
104
|
+
* cause a higher write load and thus a higher write amplification.
|
|
105
|
+
*
|
|
106
|
+
* On the other hand, a small threshold value triggers the consolidation only
|
|
107
|
+
* when there are a large number of segment files that don't vary in size a lot.
|
|
108
|
+
* Consolidation occurs less frequently, reducing the write amplification, but
|
|
109
|
+
* it can result in a greater number of segment files on disk.
|
|
110
|
+
*
|
|
111
|
+
* Multiple combinations of candidate segments are checked and the one with
|
|
112
|
+
* the lowest skew value is selected for consolidation. The selection process
|
|
113
|
+
* picks the greatest number of segments that together have the lowest skew value
|
|
114
|
+
* while ensuring that the size of the new consolidated segment remains under
|
|
115
|
+
* the configured `segmentsBytesMax`.
|
|
116
|
+
*
|
|
117
|
+
* Default: `0.4`
|
|
118
|
+
*/
|
|
119
|
+
maxSkewThreshold?: number;
|
|
120
|
+
/**
|
|
121
|
+
* This option is available from v3.12.7 onward.
|
|
122
|
+
*
|
|
123
|
+
* The `minDeletionRatio` represents the minimum required deletion ratio
|
|
124
|
+
* in one or more segments to perform a cleanup of those segments.
|
|
125
|
+
* It is a number between `0.0` and `1.0`.
|
|
126
|
+
*
|
|
127
|
+
* The deletion ratio is the percentage of deleted documents across one or
|
|
128
|
+
* more segment files and is calculated by dividing the number of deleted
|
|
129
|
+
* documents by the total number of documents in a segment or a group of
|
|
130
|
+
* segments. For example, if there is a segment with 1000 documents of which
|
|
131
|
+
* 300 are deleted and another segment with 1000 documents of which 700 are
|
|
132
|
+
* deleted, the deletion ratio is `0.5` (50%, calculated as `1000 / 2000`).
|
|
133
|
+
*
|
|
134
|
+
* The `minDeletionRatio` threshold must be carefully selected. A smaller
|
|
135
|
+
* value leads to earlier cleanup of deleted documents from segments and
|
|
136
|
+
* thus reclamation of disk space but it generates a higher write load.
|
|
137
|
+
* A very large value lowers the write amplification but at the same time
|
|
138
|
+
* the system can be left with a large number of segment files with a high
|
|
139
|
+
* percentage of deleted documents that occupy disk space unnecessarily.
|
|
140
|
+
*
|
|
141
|
+
* During cleanup, the segment files are first arranged in decreasing
|
|
142
|
+
* order of their individual deletion ratios. Then the largest subset of
|
|
143
|
+
* segments whose collective deletion ratio is greater than or equal to
|
|
144
|
+
* `minDeletionRatio` is picked.
|
|
145
|
+
*
|
|
146
|
+
* Default: `0.5`
|
|
147
|
+
*/
|
|
148
|
+
minDeletionRatio?: number;
|
|
80
149
|
};
|
|
81
150
|
/**
|
|
82
151
|
* Type of a View.
|
package/cjs/views.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"views.d.ts","sourceRoot":"","sources":["../../src/views.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,WAAW,MAAM,iBAAiB,CAAC;AAC/C,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAK5C;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,KAAK,CAAC;AAEvC;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,MAAM,CAAC;AAEzC;;;;;;GAMG;AACH,MAAM,MAAM,6BAA6B,GAAG;IAC1C;;OAEG;IACH,IAAI,EAAE,aAAa,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb
|
|
1
|
+
{"version":3,"file":"views.d.ts","sourceRoot":"","sources":["../../src/views.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,WAAW,MAAM,iBAAiB,CAAC;AAC/C,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAK5C;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,KAAK,CAAC;AAEvC;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,MAAM,CAAC;AAEzC;;;;;;GAMG;AACH,MAAM,MAAM,6BAA6B,GAAG;IAC1C;;OAEG;IACH,IAAI,EAAE,aAAa,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;GAGG;AACH,MAAM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