@amgix/amgix-client 1.0.0-beta3.3 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/README.md +6 -0
  2. package/dist/apis/AmgixApi.d.ts +102 -5
  3. package/dist/apis/AmgixApi.d.ts.map +1 -1
  4. package/dist/apis/AmgixApi.js +223 -4
  5. package/dist/models/BulkUploadRequest.d.ts +2 -2
  6. package/dist/models/BulkUploadRequest.js +2 -2
  7. package/dist/models/CollectionConfig.d.ts +2 -2
  8. package/dist/models/CollectionConfig.js +2 -2
  9. package/dist/models/CollectionExistsResponse.d.ts +2 -2
  10. package/dist/models/CollectionExistsResponse.js +2 -2
  11. package/dist/models/CollectionStatsResponse.d.ts +40 -0
  12. package/dist/models/CollectionStatsResponse.d.ts.map +1 -0
  13. package/dist/models/CollectionStatsResponse.js +55 -0
  14. package/dist/models/CustomDocumentVector.d.ts +2 -2
  15. package/dist/models/CustomDocumentVector.js +2 -2
  16. package/dist/models/CustomVector.d.ts +2 -2
  17. package/dist/models/CustomVector.js +2 -2
  18. package/dist/models/Document.d.ts +2 -2
  19. package/dist/models/Document.js +2 -2
  20. package/dist/models/DocumentStatus.d.ts +2 -2
  21. package/dist/models/DocumentStatus.js +2 -2
  22. package/dist/models/DocumentStatusResponse.d.ts +2 -2
  23. package/dist/models/DocumentStatusResponse.js +2 -2
  24. package/dist/models/HTTPValidationError.d.ts +2 -2
  25. package/dist/models/HTTPValidationError.js +2 -2
  26. package/dist/models/MetadataFilter.d.ts +2 -2
  27. package/dist/models/MetadataFilter.js +2 -2
  28. package/dist/models/MetadataIndex.d.ts +2 -2
  29. package/dist/models/MetadataIndex.js +2 -2
  30. package/dist/models/MetricDefinitionItem.d.ts +45 -0
  31. package/dist/models/MetricDefinitionItem.d.ts.map +1 -0
  32. package/dist/models/MetricDefinitionItem.js +58 -0
  33. package/dist/models/MetricTrend.d.ts +46 -0
  34. package/dist/models/MetricTrend.d.ts.map +1 -0
  35. package/dist/models/MetricTrend.js +57 -0
  36. package/dist/models/Metrics.d.ts +36 -0
  37. package/dist/models/Metrics.d.ts.map +1 -0
  38. package/dist/models/Metrics.js +50 -0
  39. package/dist/models/MetricsBucket.d.ts +63 -0
  40. package/dist/models/MetricsBucket.d.ts.map +1 -0
  41. package/dist/models/MetricsBucket.js +66 -0
  42. package/dist/models/NodeMetricSeries.d.ts +58 -0
  43. package/dist/models/NodeMetricSeries.d.ts.map +1 -0
  44. package/dist/models/NodeMetricSeries.js +58 -0
  45. package/dist/models/NodeView.d.ts +60 -0
  46. package/dist/models/NodeView.d.ts.map +1 -0
  47. package/dist/models/NodeView.js +61 -0
  48. package/dist/models/OkResponse.d.ts +2 -2
  49. package/dist/models/OkResponse.js +2 -2
  50. package/dist/models/QueueInfo.d.ts +2 -2
  51. package/dist/models/QueueInfo.js +2 -2
  52. package/dist/models/ReadyResponse.d.ts +2 -2
  53. package/dist/models/ReadyResponse.js +2 -2
  54. package/dist/models/SearchQuery.d.ts +22 -2
  55. package/dist/models/SearchQuery.d.ts.map +1 -1
  56. package/dist/models/SearchQuery.js +14 -2
  57. package/dist/models/SearchResult.d.ts +2 -2
  58. package/dist/models/SearchResult.js +2 -2
  59. package/dist/models/SystemInfoResponse.d.ts +65 -0
  60. package/dist/models/SystemInfoResponse.d.ts.map +1 -0
  61. package/dist/models/SystemInfoResponse.js +70 -0
  62. package/dist/models/ValidationError.d.ts +2 -2
  63. package/dist/models/ValidationError.js +2 -2
  64. package/dist/models/ValidationErrorLocItem.d.ts +2 -2
  65. package/dist/models/ValidationErrorLocItem.js +2 -2
  66. package/dist/models/Vector.d.ts +2 -2
  67. package/dist/models/Vector.js +2 -2
  68. package/dist/models/VectorConfig.d.ts +2 -2
  69. package/dist/models/VectorConfig.js +2 -2
  70. package/dist/models/VectorScore.d.ts +2 -2
  71. package/dist/models/VectorScore.js +2 -2
  72. package/dist/models/VectorSearchWeight.d.ts +2 -2
  73. package/dist/models/VectorSearchWeight.js +2 -2
  74. package/dist/models/VersionResponse.d.ts +2 -2
  75. package/dist/models/VersionResponse.js +2 -2
  76. package/dist/models/WindowSample.d.ts +39 -0
  77. package/dist/models/WindowSample.d.ts.map +1 -0
  78. package/dist/models/WindowSample.js +52 -0
  79. package/dist/models/index.d.ts +9 -0
  80. package/dist/models/index.d.ts.map +1 -1
  81. package/dist/models/index.js +9 -0
  82. package/dist/runtime.d.ts +2 -2
  83. package/dist/runtime.js +2 -2
  84. package/package.json +5 -2
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Amalgam Index API
6
+ * Amalgam Index (Amgix). Open-Source Hybrid Search System
7
+ *
8
+ * The version of the OpenAPI document: 1.2.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfMetricsBucket = instanceOfMetricsBucket;
17
+ exports.MetricsBucketFromJSON = MetricsBucketFromJSON;
18
+ exports.MetricsBucketFromJSONTyped = MetricsBucketFromJSONTyped;
19
+ exports.MetricsBucketToJSON = MetricsBucketToJSON;
20
+ exports.MetricsBucketToJSONTyped = MetricsBucketToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the MetricsBucket interface.
23
+ */
24
+ function instanceOfMetricsBucket(value) {
25
+ if (!('key' in value) || value['key'] === undefined)
26
+ return false;
27
+ if (!('bucket_start' in value) || value['bucket_start'] === undefined)
28
+ return false;
29
+ if (!('bucket_seconds' in value) || value['bucket_seconds'] === undefined)
30
+ return false;
31
+ if (!('value' in value) || value['value'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function MetricsBucketFromJSON(json) {
36
+ return MetricsBucketFromJSONTyped(json, false);
37
+ }
38
+ function MetricsBucketFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'key': json['key'],
44
+ 'dims': json['dims'] == null ? undefined : json['dims'],
45
+ 'bucket_start': json['bucket_start'],
46
+ 'bucket_seconds': json['bucket_seconds'],
47
+ 'value': json['value'],
48
+ 'n': json['n'] == null ? undefined : json['n'],
49
+ };
50
+ }
51
+ function MetricsBucketToJSON(json) {
52
+ return MetricsBucketToJSONTyped(json, false);
53
+ }
54
+ function MetricsBucketToJSONTyped(value, ignoreDiscriminator = false) {
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'key': value['key'],
60
+ 'dims': value['dims'],
61
+ 'bucket_start': value['bucket_start'],
62
+ 'bucket_seconds': value['bucket_seconds'],
63
+ 'value': value['value'],
64
+ 'n': value['n'],
65
+ };
66
+ }
@@ -0,0 +1,58 @@
1
+ /**
2
+ * Amalgam Index API
3
+ * Amalgam Index (Amgix). Open-Source Hybrid Search System
4
+ *
5
+ * The version of the OpenAPI document: 1.2.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { WindowSample } from './WindowSample';
13
+ /**
14
+ * One metric stream on a node with mergeable window stats.
15
+ *
16
+ * key is the metric name (e.g. 'batches', 'inference_ms', 'inference_origin_ms', 'hops').
17
+ * dims are optional dimensions (e.g. vector type, model name, revision).
18
+ * windows are keyed by window size in seconds.
19
+ * @export
20
+ * @interface NodeMetricSeries
21
+ */
22
+ export interface NodeMetricSeries {
23
+ /**
24
+ * Metric name
25
+ * @type {string}
26
+ * @memberof NodeMetricSeries
27
+ */
28
+ key: string;
29
+ /**
30
+ * Optional metric dimensions
31
+ * @type {Array<string>}
32
+ * @memberof NodeMetricSeries
33
+ */
34
+ dims?: Array<string>;
35
+ /**
36
+ * Rolling-window snapshots keyed by window size in seconds
37
+ * @type {{ [key: string]: WindowSample; }}
38
+ * @memberof NodeMetricSeries
39
+ */
40
+ windows?: {
41
+ [key: string]: WindowSample;
42
+ };
43
+ /**
44
+ * UTC timestamp (time.time()) of the most recent sample for this series
45
+ * @type {number}
46
+ * @memberof NodeMetricSeries
47
+ */
48
+ last_seen?: number;
49
+ }
50
+ /**
51
+ * Check if a given object implements the NodeMetricSeries interface.
52
+ */
53
+ export declare function instanceOfNodeMetricSeries(value: object): value is NodeMetricSeries;
54
+ export declare function NodeMetricSeriesFromJSON(json: any): NodeMetricSeries;
55
+ export declare function NodeMetricSeriesFromJSONTyped(json: any, ignoreDiscriminator: boolean): NodeMetricSeries;
56
+ export declare function NodeMetricSeriesToJSON(json: any): NodeMetricSeries;
57
+ export declare function NodeMetricSeriesToJSONTyped(value?: NodeMetricSeries | null, ignoreDiscriminator?: boolean): any;
58
+ //# sourceMappingURL=NodeMetricSeries.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NodeMetricSeries.d.ts","sourceRoot":"","sources":["../../models/NodeMetricSeries.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAQnD;;;;;;;;GAQG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACrB;;;;OAIG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,CAAC;KAAE,CAAC;IAC3C;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,gBAAgB,CAGnF;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAEpE;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,gBAAgB,CAWvG;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAElE;AAED,wBAAgB,2BAA2B,CAAC,KAAK,CAAC,EAAE,gBAAgB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAYtH"}
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Amalgam Index API
6
+ * Amalgam Index (Amgix). Open-Source Hybrid Search System
7
+ *
8
+ * The version of the OpenAPI document: 1.2.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfNodeMetricSeries = instanceOfNodeMetricSeries;
17
+ exports.NodeMetricSeriesFromJSON = NodeMetricSeriesFromJSON;
18
+ exports.NodeMetricSeriesFromJSONTyped = NodeMetricSeriesFromJSONTyped;
19
+ exports.NodeMetricSeriesToJSON = NodeMetricSeriesToJSON;
20
+ exports.NodeMetricSeriesToJSONTyped = NodeMetricSeriesToJSONTyped;
21
+ const runtime_1 = require("../runtime");
22
+ const WindowSample_1 = require("./WindowSample");
23
+ /**
24
+ * Check if a given object implements the NodeMetricSeries interface.
25
+ */
26
+ function instanceOfNodeMetricSeries(value) {
27
+ if (!('key' in value) || value['key'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function NodeMetricSeriesFromJSON(json) {
32
+ return NodeMetricSeriesFromJSONTyped(json, false);
33
+ }
34
+ function NodeMetricSeriesFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'key': json['key'],
40
+ 'dims': json['dims'] == null ? undefined : json['dims'],
41
+ 'windows': json['windows'] == null ? undefined : ((0, runtime_1.mapValues)(json['windows'], WindowSample_1.WindowSampleFromJSON)),
42
+ 'last_seen': json['last_seen'] == null ? undefined : json['last_seen'],
43
+ };
44
+ }
45
+ function NodeMetricSeriesToJSON(json) {
46
+ return NodeMetricSeriesToJSONTyped(json, false);
47
+ }
48
+ function NodeMetricSeriesToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'key': value['key'],
54
+ 'dims': value['dims'],
55
+ 'windows': value['windows'] == null ? undefined : ((0, runtime_1.mapValues)(value['windows'], WindowSample_1.WindowSampleToJSON)),
56
+ 'last_seen': value['last_seen'],
57
+ };
58
+ }
@@ -0,0 +1,60 @@
1
+ /**
2
+ * Amalgam Index API
3
+ * Amalgam Index (Amgix). Open-Source Hybrid Search System
4
+ *
5
+ * The version of the OpenAPI document: 1.2.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { NodeMetricSeries } from './NodeMetricSeries';
13
+ /**
14
+ * Snapshot of a single cluster node as last reported to the leader.
15
+ * @export
16
+ * @interface NodeView
17
+ */
18
+ export interface NodeView {
19
+ /**
20
+ * Node role: 'index', 'query', 'all' for encoder nodes; 'api' for API nodes
21
+ * @type {string}
22
+ * @memberof NodeView
23
+ */
24
+ role: string;
25
+ /**
26
+ * Whether this node is the current encoder leader
27
+ * @type {boolean}
28
+ * @memberof NodeView
29
+ */
30
+ is_leader?: boolean;
31
+ /**
32
+ * Unix timestamp of the last heartbeat received from this node
33
+ * @type {number}
34
+ * @memberof NodeView
35
+ */
36
+ last_seen: number;
37
+ /**
38
+ * Forward-compatible node metadata bag (for load/capacity/gpu/memory/model details and future node status values)
39
+ * @type {{ [key: string]: any; }}
40
+ * @memberof NodeView
41
+ */
42
+ meta?: {
43
+ [key: string]: any;
44
+ };
45
+ /**
46
+ * Metric series for this node; empty for API nodes
47
+ * @type {Array<NodeMetricSeries>}
48
+ * @memberof NodeView
49
+ */
50
+ metrics?: Array<NodeMetricSeries>;
51
+ }
52
+ /**
53
+ * Check if a given object implements the NodeView interface.
54
+ */
55
+ export declare function instanceOfNodeView(value: object): value is NodeView;
56
+ export declare function NodeViewFromJSON(json: any): NodeView;
57
+ export declare function NodeViewFromJSONTyped(json: any, ignoreDiscriminator: boolean): NodeView;
58
+ export declare function NodeViewToJSON(json: any): NodeView;
59
+ export declare function NodeViewToJSONTyped(value?: NodeView | null, ignoreDiscriminator?: boolean): any;
60
+ //# sourceMappingURL=NodeView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NodeView.d.ts","sourceRoot":"","sources":["../../models/NodeView.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAQ3D;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACrB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,IAAI,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KAAE,CAAC;IAC/B;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC;CACrC;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,QAAQ,CAInE;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAEpD;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,QAAQ,CAYvF;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAElD;AAED,wBAAgB,mBAAmB,CAAC,KAAK,CAAC,EAAE,QAAQ,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAatG"}
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Amalgam Index API
6
+ * Amalgam Index (Amgix). Open-Source Hybrid Search System
7
+ *
8
+ * The version of the OpenAPI document: 1.2.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfNodeView = instanceOfNodeView;
17
+ exports.NodeViewFromJSON = NodeViewFromJSON;
18
+ exports.NodeViewFromJSONTyped = NodeViewFromJSONTyped;
19
+ exports.NodeViewToJSON = NodeViewToJSON;
20
+ exports.NodeViewToJSONTyped = NodeViewToJSONTyped;
21
+ const NodeMetricSeries_1 = require("./NodeMetricSeries");
22
+ /**
23
+ * Check if a given object implements the NodeView interface.
24
+ */
25
+ function instanceOfNodeView(value) {
26
+ if (!('role' in value) || value['role'] === undefined)
27
+ return false;
28
+ if (!('last_seen' in value) || value['last_seen'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function NodeViewFromJSON(json) {
33
+ return NodeViewFromJSONTyped(json, false);
34
+ }
35
+ function NodeViewFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'role': json['role'],
41
+ 'is_leader': json['is_leader'] == null ? undefined : json['is_leader'],
42
+ 'last_seen': json['last_seen'],
43
+ 'meta': json['meta'] == null ? undefined : json['meta'],
44
+ 'metrics': json['metrics'] == null ? undefined : (json['metrics'].map(NodeMetricSeries_1.NodeMetricSeriesFromJSON)),
45
+ };
46
+ }
47
+ function NodeViewToJSON(json) {
48
+ return NodeViewToJSONTyped(json, false);
49
+ }
50
+ function NodeViewToJSONTyped(value, ignoreDiscriminator = false) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'role': value['role'],
56
+ 'is_leader': value['is_leader'],
57
+ 'last_seen': value['last_seen'],
58
+ 'meta': value['meta'],
59
+ 'metrics': value['metrics'] == null ? undefined : (value['metrics'].map(NodeMetricSeries_1.NodeMetricSeriesToJSON)),
60
+ };
61
+ }
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Amalgam Index API
3
- * Amalgam Index (Amgix). Open-Source Hybrid Search Engine
3
+ * Amalgam Index (Amgix). Open-Source Hybrid Search System
4
4
  *
5
- * The version of the OpenAPI document: 1.0.0-beta3.3
5
+ * The version of the OpenAPI document: 1.2.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -3,9 +3,9 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Amalgam Index API
6
- * Amalgam Index (Amgix). Open-Source Hybrid Search Engine
6
+ * Amalgam Index (Amgix). Open-Source Hybrid Search System
7
7
  *
8
- * The version of the OpenAPI document: 1.0.0-beta3.3
8
+ * The version of the OpenAPI document: 1.2.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Amalgam Index API
3
- * Amalgam Index (Amgix). Open-Source Hybrid Search Engine
3
+ * Amalgam Index (Amgix). Open-Source Hybrid Search System
4
4
  *
5
- * The version of the OpenAPI document: 1.0.0-beta3.3
5
+ * The version of the OpenAPI document: 1.2.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -3,9 +3,9 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Amalgam Index API
6
- * Amalgam Index (Amgix). Open-Source Hybrid Search Engine
6
+ * Amalgam Index (Amgix). Open-Source Hybrid Search System
7
7
  *
8
- * The version of the OpenAPI document: 1.0.0-beta3.3
8
+ * The version of the OpenAPI document: 1.2.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Amalgam Index API
3
- * Amalgam Index (Amgix). Open-Source Hybrid Search Engine
3
+ * Amalgam Index (Amgix). Open-Source Hybrid Search System
4
4
  *
5
- * The version of the OpenAPI document: 1.0.0-beta3.3
5
+ * The version of the OpenAPI document: 1.2.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -3,9 +3,9 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Amalgam Index API
6
- * Amalgam Index (Amgix). Open-Source Hybrid Search Engine
6
+ * Amalgam Index (Amgix). Open-Source Hybrid Search System
7
7
  *
8
- * The version of the OpenAPI document: 1.0.0-beta3.3
8
+ * The version of the OpenAPI document: 1.2.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Amalgam Index API
3
- * Amalgam Index (Amgix). Open-Source Hybrid Search Engine
3
+ * Amalgam Index (Amgix). Open-Source Hybrid Search System
4
4
  *
5
- * The version of the OpenAPI document: 1.0.0-beta3.3
5
+ * The version of the OpenAPI document: 1.2.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -74,7 +74,27 @@ export interface SearchQuery {
74
74
  * @memberof SearchQuery
75
75
  */
76
76
  raw_scores?: boolean;
77
+ /**
78
+ * WMTR trigram channel multiplier for this search query.
79
+ * @type {number}
80
+ * @memberof SearchQuery
81
+ */
82
+ wmtr_trigram_weight?: number;
83
+ /**
84
+ * How to combine multi-vector search results. 'rrf' = reciprocal rank fusion (rank-based). 'linear' = min-max normalize each retriever's scores on its prefetch list, then sum weight * normalized score.
85
+ * @type {SearchQueryFusionModeEnum}
86
+ * @memberof SearchQuery
87
+ */
88
+ fusion_mode?: SearchQueryFusionModeEnum;
77
89
  }
90
+ /**
91
+ * @export
92
+ */
93
+ export declare const SearchQueryFusionModeEnum: {
94
+ readonly Rrf: "rrf";
95
+ readonly Linear: "linear";
96
+ };
97
+ export type SearchQueryFusionModeEnum = typeof SearchQueryFusionModeEnum[keyof typeof SearchQueryFusionModeEnum];
78
98
  /**
79
99
  * Check if a given object implements the SearchQuery interface.
80
100
  */
@@ -1 +1 @@
1
- {"version":3,"file":"SearchQuery.d.ts","sourceRoot":"","sources":["../../models/SearchQuery.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAO/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAOnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAQvD;;;;;;GAMG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,CAAC;IAC3C;;;;OAIG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;IACrC;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC9B;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC;;;;OAIG;IACH,eAAe,CAAC,EAAE,cAAc,CAAC;IACjC;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,WAAW,CAGzE;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAE1D;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,WAAW,CAgB7F;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAExD;AAED,wBAAgB,sBAAsB,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAiB5G"}
1
+ {"version":3,"file":"SearchQuery.d.ts","sourceRoot":"","sources":["../../models/SearchQuery.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAO/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAOnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAQvD;;;;;;GAMG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,CAAC;IAC3C;;;;OAIG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;IACrC;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC9B;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC;;;;OAIG;IACH,eAAe,CAAC,EAAE,cAAc,CAAC;IACjC;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,WAAW,CAAC,EAAE,yBAAyB,CAAC;CAC3C;AAGD;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;CAG5B,CAAC;AACX,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC,MAAM,OAAO,yBAAyB,CAAC,CAAC;AAGjH;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,WAAW,CAGzE;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAE1D;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,WAAW,CAkB7F;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAExD;AAED,wBAAgB,sBAAsB,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAmB5G"}
@@ -3,9 +3,9 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Amalgam Index API
6
- * Amalgam Index (Amgix). Open-Source Hybrid Search Engine
6
+ * Amalgam Index (Amgix). Open-Source Hybrid Search System
7
7
  *
8
- * The version of the OpenAPI document: 1.0.0-beta3.3
8
+ * The version of the OpenAPI document: 1.2.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -13,6 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.SearchQueryFusionModeEnum = void 0;
16
17
  exports.instanceOfSearchQuery = instanceOfSearchQuery;
17
18
  exports.SearchQueryFromJSON = SearchQueryFromJSON;
18
19
  exports.SearchQueryFromJSONTyped = SearchQueryFromJSONTyped;
@@ -21,6 +22,13 @@ exports.SearchQueryToJSONTyped = SearchQueryToJSONTyped;
21
22
  const VectorSearchWeight_1 = require("./VectorSearchWeight");
22
23
  const CustomVector_1 = require("./CustomVector");
23
24
  const MetadataFilter_1 = require("./MetadataFilter");
25
+ /**
26
+ * @export
27
+ */
28
+ exports.SearchQueryFusionModeEnum = {
29
+ Rrf: 'rrf',
30
+ Linear: 'linear'
31
+ };
24
32
  /**
25
33
  * Check if a given object implements the SearchQuery interface.
26
34
  */
@@ -46,6 +54,8 @@ function SearchQueryFromJSONTyped(json, ignoreDiscriminator) {
46
54
  'document_tags_match_all': json['document_tags_match_all'] == null ? undefined : json['document_tags_match_all'],
47
55
  'metadata_filter': json['metadata_filter'] == null ? undefined : (0, MetadataFilter_1.MetadataFilterFromJSON)(json['metadata_filter']),
48
56
  'raw_scores': json['raw_scores'] == null ? undefined : json['raw_scores'],
57
+ 'wmtr_trigram_weight': json['wmtr_trigram_weight'] == null ? undefined : json['wmtr_trigram_weight'],
58
+ 'fusion_mode': json['fusion_mode'] == null ? undefined : json['fusion_mode'],
49
59
  };
50
60
  }
51
61
  function SearchQueryToJSON(json) {
@@ -65,5 +75,7 @@ function SearchQueryToJSONTyped(value, ignoreDiscriminator = false) {
65
75
  'document_tags_match_all': value['document_tags_match_all'],
66
76
  'metadata_filter': (0, MetadataFilter_1.MetadataFilterToJSON)(value['metadata_filter']),
67
77
  'raw_scores': value['raw_scores'],
78
+ 'wmtr_trigram_weight': value['wmtr_trigram_weight'],
79
+ 'fusion_mode': value['fusion_mode'],
68
80
  };
69
81
  }
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Amalgam Index API
3
- * Amalgam Index (Amgix). Open-Source Hybrid Search Engine
3
+ * Amalgam Index (Amgix). Open-Source Hybrid Search System
4
4
  *
5
- * The version of the OpenAPI document: 1.0.0-beta3.3
5
+ * The version of the OpenAPI document: 1.2.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -3,9 +3,9 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Amalgam Index API
6
- * Amalgam Index (Amgix). Open-Source Hybrid Search Engine
6
+ * Amalgam Index (Amgix). Open-Source Hybrid Search System
7
7
  *
8
- * The version of the OpenAPI document: 1.0.0-beta3.3
8
+ * The version of the OpenAPI document: 1.2.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,65 @@
1
+ /**
2
+ * Amalgam Index API
3
+ * Amalgam Index (Amgix). Open-Source Hybrid Search System
4
+ *
5
+ * The version of the OpenAPI document: 1.2.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface SystemInfoResponse
16
+ */
17
+ export interface SystemInfoResponse {
18
+ /**
19
+ * API / deployment version string
20
+ * @type {string}
21
+ * @memberof SystemInfoResponse
22
+ */
23
+ amgix_version: string;
24
+ /**
25
+ * Database product derived from configured URL scheme (no connection string)
26
+ * @type {string}
27
+ * @memberof SystemInfoResponse
28
+ */
29
+ database_kind: string;
30
+ /**
31
+ * Version reported by the database backend after probe
32
+ * @type {string}
33
+ * @memberof SystemInfoResponse
34
+ */
35
+ database_version: string;
36
+ /**
37
+ * Feature flags detected at probe time (e.g. dense vector support)
38
+ * @type {{ [key: string]: boolean; }}
39
+ * @memberof SystemInfoResponse
40
+ */
41
+ database_features: {
42
+ [key: string]: boolean;
43
+ };
44
+ /**
45
+ * AMQP broker version from Connection.Start server_properties (e.g. RabbitMQ)
46
+ * @type {string}
47
+ * @memberof SystemInfoResponse
48
+ */
49
+ rabbitmq_version: string;
50
+ /**
51
+ * Number of user collections
52
+ * @type {number}
53
+ * @memberof SystemInfoResponse
54
+ */
55
+ collection_count: number;
56
+ }
57
+ /**
58
+ * Check if a given object implements the SystemInfoResponse interface.
59
+ */
60
+ export declare function instanceOfSystemInfoResponse(value: object): value is SystemInfoResponse;
61
+ export declare function SystemInfoResponseFromJSON(json: any): SystemInfoResponse;
62
+ export declare function SystemInfoResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemInfoResponse;
63
+ export declare function SystemInfoResponseToJSON(json: any): SystemInfoResponse;
64
+ export declare function SystemInfoResponseToJSONTyped(value?: SystemInfoResponse | null, ignoreDiscriminator?: boolean): any;
65
+ //# sourceMappingURL=SystemInfoResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SystemInfoResponse.d.ts","sourceRoot":"","sources":["../../models/SystemInfoResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,iBAAiB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KAAE,CAAC;IAC/C;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;CAC5B;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,kBAAkB,CAQvF;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAExE;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,kBAAkB,CAa3G;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAEtE;AAED,wBAAgB,6BAA6B,CAAC,KAAK,CAAC,EAAE,kBAAkB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAc1H"}
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Amalgam Index API
6
+ * Amalgam Index (Amgix). Open-Source Hybrid Search System
7
+ *
8
+ * The version of the OpenAPI document: 1.2.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfSystemInfoResponse = instanceOfSystemInfoResponse;
17
+ exports.SystemInfoResponseFromJSON = SystemInfoResponseFromJSON;
18
+ exports.SystemInfoResponseFromJSONTyped = SystemInfoResponseFromJSONTyped;
19
+ exports.SystemInfoResponseToJSON = SystemInfoResponseToJSON;
20
+ exports.SystemInfoResponseToJSONTyped = SystemInfoResponseToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the SystemInfoResponse interface.
23
+ */
24
+ function instanceOfSystemInfoResponse(value) {
25
+ if (!('amgix_version' in value) || value['amgix_version'] === undefined)
26
+ return false;
27
+ if (!('database_kind' in value) || value['database_kind'] === undefined)
28
+ return false;
29
+ if (!('database_version' in value) || value['database_version'] === undefined)
30
+ return false;
31
+ if (!('database_features' in value) || value['database_features'] === undefined)
32
+ return false;
33
+ if (!('rabbitmq_version' in value) || value['rabbitmq_version'] === undefined)
34
+ return false;
35
+ if (!('collection_count' in value) || value['collection_count'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ function SystemInfoResponseFromJSON(json) {
40
+ return SystemInfoResponseFromJSONTyped(json, false);
41
+ }
42
+ function SystemInfoResponseFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'amgix_version': json['amgix_version'],
48
+ 'database_kind': json['database_kind'],
49
+ 'database_version': json['database_version'],
50
+ 'database_features': json['database_features'],
51
+ 'rabbitmq_version': json['rabbitmq_version'],
52
+ 'collection_count': json['collection_count'],
53
+ };
54
+ }
55
+ function SystemInfoResponseToJSON(json) {
56
+ return SystemInfoResponseToJSONTyped(json, false);
57
+ }
58
+ function SystemInfoResponseToJSONTyped(value, ignoreDiscriminator = false) {
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+ 'amgix_version': value['amgix_version'],
64
+ 'database_kind': value['database_kind'],
65
+ 'database_version': value['database_version'],
66
+ 'database_features': value['database_features'],
67
+ 'rabbitmq_version': value['rabbitmq_version'],
68
+ 'collection_count': value['collection_count'],
69
+ };
70
+ }
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Amalgam Index API
3
- * Amalgam Index (Amgix). Open-Source Hybrid Search Engine
3
+ * Amalgam Index (Amgix). Open-Source Hybrid Search System
4
4
  *
5
- * The version of the OpenAPI document: 1.0.0-beta3.3
5
+ * The version of the OpenAPI document: 1.2.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).