@amgix/amgix-client 1.1.0 → 1.3.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/dist/apis/AmgixApi.d.ts +123 -6
  2. package/dist/apis/AmgixApi.d.ts.map +1 -1
  3. package/dist/apis/AmgixApi.js +275 -5
  4. package/dist/models/BulkUploadRequest.d.ts +1 -1
  5. package/dist/models/BulkUploadRequest.js +1 -1
  6. package/dist/models/CollectionConfig.d.ts +1 -1
  7. package/dist/models/CollectionConfig.js +1 -1
  8. package/dist/models/CollectionExistsResponse.d.ts +1 -1
  9. package/dist/models/CollectionExistsResponse.js +1 -1
  10. package/dist/models/CollectionStatsResponse.d.ts +40 -0
  11. package/dist/models/CollectionStatsResponse.d.ts.map +1 -0
  12. package/dist/models/CollectionStatsResponse.js +55 -0
  13. package/dist/models/CustomDocumentVector.d.ts +1 -1
  14. package/dist/models/CustomDocumentVector.js +1 -1
  15. package/dist/models/CustomVector.d.ts +1 -1
  16. package/dist/models/CustomVector.js +1 -1
  17. package/dist/models/Document.d.ts +1 -1
  18. package/dist/models/Document.js +1 -1
  19. package/dist/models/DocumentStatus.d.ts +15 -1
  20. package/dist/models/DocumentStatus.d.ts.map +1 -1
  21. package/dist/models/DocumentStatus.js +11 -2
  22. package/dist/models/DocumentStatusResponse.d.ts +1 -1
  23. package/dist/models/DocumentStatusResponse.js +1 -1
  24. package/dist/models/HTTPValidationError.d.ts +1 -1
  25. package/dist/models/HTTPValidationError.js +1 -1
  26. package/dist/models/MetadataFilter.d.ts +1 -1
  27. package/dist/models/MetadataFilter.js +1 -1
  28. package/dist/models/MetadataIndex.d.ts +1 -1
  29. package/dist/models/MetadataIndex.js +1 -1
  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 +1 -1
  49. package/dist/models/OkResponse.js +1 -1
  50. package/dist/models/QueueInfo.d.ts +25 -7
  51. package/dist/models/QueueInfo.d.ts.map +1 -1
  52. package/dist/models/QueueInfo.js +22 -10
  53. package/dist/models/ReadyResponse.d.ts +1 -1
  54. package/dist/models/ReadyResponse.js +1 -1
  55. package/dist/models/SearchQuery.d.ts +1 -1
  56. package/dist/models/SearchQuery.js +1 -1
  57. package/dist/models/SearchResult.d.ts +1 -1
  58. package/dist/models/SearchResult.js +1 -1
  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 +1 -1
  63. package/dist/models/ValidationError.js +1 -1
  64. package/dist/models/ValidationErrorLocItem.d.ts +1 -1
  65. package/dist/models/ValidationErrorLocItem.js +1 -1
  66. package/dist/models/Vector.d.ts +1 -1
  67. package/dist/models/Vector.js +1 -1
  68. package/dist/models/VectorConfig.d.ts +1 -1
  69. package/dist/models/VectorConfig.js +1 -1
  70. package/dist/models/VectorScore.d.ts +1 -1
  71. package/dist/models/VectorScore.js +1 -1
  72. package/dist/models/VectorSearchWeight.d.ts +1 -1
  73. package/dist/models/VectorSearchWeight.js +1 -1
  74. package/dist/models/VersionResponse.d.ts +1 -1
  75. package/dist/models/VersionResponse.js +1 -1
  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 +1 -1
  83. package/dist/runtime.js +1 -1
  84. package/package.json +5 -2
@@ -5,7 +5,7 @@
5
5
  * Amalgam Index API
6
6
  * Amalgam Index (Amgix). Open-Source Hybrid Search System
7
7
  *
8
- * The version of the OpenAPI document: 1.1.0
8
+ * The version of the OpenAPI document: 1.3.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Amalgam Index API
3
+ * Amalgam Index (Amgix). Open-Source Hybrid Search System
4
+ *
5
+ * The version of the OpenAPI document: 1.3.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 { QueueInfo } from './QueueInfo';
13
+ /**
14
+ * Persisted index statistics for a collection (encoder-maintained counts) and queue counts.
15
+ * @export
16
+ * @interface CollectionStatsResponse
17
+ */
18
+ export interface CollectionStatsResponse {
19
+ /**
20
+ * Number of documents reflected in collection stats
21
+ * @type {number}
22
+ * @memberof CollectionStatsResponse
23
+ */
24
+ doc_count: number;
25
+ /**
26
+ * Counts of documents in each queue state
27
+ * @type {QueueInfo}
28
+ * @memberof CollectionStatsResponse
29
+ */
30
+ queue: QueueInfo;
31
+ }
32
+ /**
33
+ * Check if a given object implements the CollectionStatsResponse interface.
34
+ */
35
+ export declare function instanceOfCollectionStatsResponse(value: object): value is CollectionStatsResponse;
36
+ export declare function CollectionStatsResponseFromJSON(json: any): CollectionStatsResponse;
37
+ export declare function CollectionStatsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CollectionStatsResponse;
38
+ export declare function CollectionStatsResponseToJSON(json: any): CollectionStatsResponse;
39
+ export declare function CollectionStatsResponseToJSONTyped(value?: CollectionStatsResponse | null, ignoreDiscriminator?: boolean): any;
40
+ //# sourceMappingURL=CollectionStatsResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CollectionStatsResponse.d.ts","sourceRoot":"","sources":["../../models/CollectionStatsResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQ7C;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACpC;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,KAAK,EAAE,SAAS,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,iCAAiC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,uBAAuB,CAIjG;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,GAAG,uBAAuB,CAElF;AAED,wBAAgB,oCAAoC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,uBAAuB,CASrH;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,uBAAuB,CAEhF;AAED,wBAAgB,kCAAkC,CAAC,KAAK,CAAC,EAAE,uBAAuB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUpI"}
@@ -0,0 +1,55 @@
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.3.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.instanceOfCollectionStatsResponse = instanceOfCollectionStatsResponse;
17
+ exports.CollectionStatsResponseFromJSON = CollectionStatsResponseFromJSON;
18
+ exports.CollectionStatsResponseFromJSONTyped = CollectionStatsResponseFromJSONTyped;
19
+ exports.CollectionStatsResponseToJSON = CollectionStatsResponseToJSON;
20
+ exports.CollectionStatsResponseToJSONTyped = CollectionStatsResponseToJSONTyped;
21
+ const QueueInfo_1 = require("./QueueInfo");
22
+ /**
23
+ * Check if a given object implements the CollectionStatsResponse interface.
24
+ */
25
+ function instanceOfCollectionStatsResponse(value) {
26
+ if (!('doc_count' in value) || value['doc_count'] === undefined)
27
+ return false;
28
+ if (!('queue' in value) || value['queue'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function CollectionStatsResponseFromJSON(json) {
33
+ return CollectionStatsResponseFromJSONTyped(json, false);
34
+ }
35
+ function CollectionStatsResponseFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'doc_count': json['doc_count'],
41
+ 'queue': (0, QueueInfo_1.QueueInfoFromJSON)(json['queue']),
42
+ };
43
+ }
44
+ function CollectionStatsResponseToJSON(json) {
45
+ return CollectionStatsResponseToJSONTyped(json, false);
46
+ }
47
+ function CollectionStatsResponseToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'doc_count': value['doc_count'],
53
+ 'queue': (0, QueueInfo_1.QueueInfoToJSON)(value['queue']),
54
+ };
55
+ }
@@ -2,7 +2,7 @@
2
2
  * Amalgam Index API
3
3
  * Amalgam Index (Amgix). Open-Source Hybrid Search System
4
4
  *
5
- * The version of the OpenAPI document: 1.1.0
5
+ * The version of the OpenAPI document: 1.3.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Amalgam Index API
6
6
  * Amalgam Index (Amgix). Open-Source Hybrid Search System
7
7
  *
8
- * The version of the OpenAPI document: 1.1.0
8
+ * The version of the OpenAPI document: 1.3.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Amalgam Index API
3
3
  * Amalgam Index (Amgix). Open-Source Hybrid Search System
4
4
  *
5
- * The version of the OpenAPI document: 1.1.0
5
+ * The version of the OpenAPI document: 1.3.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Amalgam Index API
6
6
  * Amalgam Index (Amgix). Open-Source Hybrid Search System
7
7
  *
8
- * The version of the OpenAPI document: 1.1.0
8
+ * The version of the OpenAPI document: 1.3.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Amalgam Index API
3
3
  * Amalgam Index (Amgix). Open-Source Hybrid Search System
4
4
  *
5
- * The version of the OpenAPI document: 1.1.0
5
+ * The version of the OpenAPI document: 1.3.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Amalgam Index API
6
6
  * Amalgam Index (Amgix). Open-Source Hybrid Search System
7
7
  *
8
- * The version of the OpenAPI document: 1.1.0
8
+ * The version of the OpenAPI document: 1.3.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Amalgam Index API
3
3
  * Amalgam Index (Amgix). Open-Source Hybrid Search System
4
4
  *
5
- * The version of the OpenAPI document: 1.1.0
5
+ * The version of the OpenAPI document: 1.3.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -21,6 +21,12 @@ export interface DocumentStatus {
21
21
  * @memberof DocumentStatus
22
22
  */
23
23
  status: DocumentStatusStatusEnum;
24
+ /**
25
+ * Queue operation type (upsert or delete) for queue-related statuses
26
+ * @type {DocumentStatusOpTypeEnum}
27
+ * @memberof DocumentStatus
28
+ */
29
+ op_type?: DocumentStatusOpTypeEnum;
24
30
  /**
25
31
  * Status information
26
32
  * @type {string}
@@ -56,6 +62,14 @@ export declare const DocumentStatusStatusEnum: {
56
62
  readonly Failed: "failed";
57
63
  };
58
64
  export type DocumentStatusStatusEnum = typeof DocumentStatusStatusEnum[keyof typeof DocumentStatusStatusEnum];
65
+ /**
66
+ * @export
67
+ */
68
+ export declare const DocumentStatusOpTypeEnum: {
69
+ readonly Upsert: "upsert";
70
+ readonly Delete: "delete";
71
+ };
72
+ export type DocumentStatusOpTypeEnum = typeof DocumentStatusOpTypeEnum[keyof typeof DocumentStatusOpTypeEnum];
59
73
  /**
60
74
  * Check if a given object implements the DocumentStatus interface.
61
75
  */
@@ -1 +1 @@
1
- {"version":3,"file":"DocumentStatus.d.ts","sourceRoot":"","sources":["../../models/DocumentStatus.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,MAAM,EAAE,wBAAwB,CAAC;IACjC;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAGD;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;CAK3B,CAAC;AACX,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAC,MAAM,OAAO,wBAAwB,CAAC,CAAC;AAG9G;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,CAI/E;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAEhE;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,cAAc,CAYnG;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAE9D;AAED,wBAAgB,yBAAyB,CAAC,KAAK,CAAC,EAAE,cAAc,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAalH"}
1
+ {"version":3,"file":"DocumentStatus.d.ts","sourceRoot":"","sources":["../../models/DocumentStatus.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,MAAM,EAAE,wBAAwB,CAAC;IACjC;;;;OAIG;IACH,OAAO,CAAC,EAAE,wBAAwB,CAAC;IACnC;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAGD;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;CAK3B,CAAC;AACX,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAC,MAAM,OAAO,wBAAwB,CAAC,CAAC;AAE9G;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;CAG3B,CAAC;AACX,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAC,MAAM,OAAO,wBAAwB,CAAC,CAAC;AAG9G;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,CAI/E;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAEhE;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,cAAc,CAanG;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAE9D;AAED,wBAAgB,yBAAyB,CAAC,KAAK,CAAC,EAAE,cAAc,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAclH"}
@@ -5,7 +5,7 @@
5
5
  * Amalgam Index API
6
6
  * Amalgam Index (Amgix). Open-Source Hybrid Search System
7
7
  *
8
- * The version of the OpenAPI document: 1.1.0
8
+ * The version of the OpenAPI document: 1.3.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.DocumentStatusStatusEnum = void 0;
16
+ exports.DocumentStatusOpTypeEnum = exports.DocumentStatusStatusEnum = void 0;
17
17
  exports.instanceOfDocumentStatus = instanceOfDocumentStatus;
18
18
  exports.DocumentStatusFromJSON = DocumentStatusFromJSON;
19
19
  exports.DocumentStatusFromJSONTyped = DocumentStatusFromJSONTyped;
@@ -28,6 +28,13 @@ exports.DocumentStatusStatusEnum = {
28
28
  Indexed: 'indexed',
29
29
  Failed: 'failed'
30
30
  };
31
+ /**
32
+ * @export
33
+ */
34
+ exports.DocumentStatusOpTypeEnum = {
35
+ Upsert: 'upsert',
36
+ Delete: 'delete'
37
+ };
31
38
  /**
32
39
  * Check if a given object implements the DocumentStatus interface.
33
40
  */
@@ -47,6 +54,7 @@ function DocumentStatusFromJSONTyped(json, ignoreDiscriminator) {
47
54
  }
48
55
  return {
49
56
  'status': json['status'],
57
+ 'op_type': json['op_type'] == null ? undefined : json['op_type'],
50
58
  'info': json['info'] == null ? undefined : json['info'],
51
59
  'timestamp': (new Date(json['timestamp'])),
52
60
  'queue_id': json['queue_id'] == null ? undefined : json['queue_id'],
@@ -62,6 +70,7 @@ function DocumentStatusToJSONTyped(value, ignoreDiscriminator = false) {
62
70
  }
63
71
  return {
64
72
  'status': value['status'],
73
+ 'op_type': value['op_type'],
65
74
  'info': value['info'],
66
75
  'timestamp': value['timestamp'].toISOString(),
67
76
  'queue_id': value['queue_id'],
@@ -2,7 +2,7 @@
2
2
  * Amalgam Index API
3
3
  * Amalgam Index (Amgix). Open-Source Hybrid Search System
4
4
  *
5
- * The version of the OpenAPI document: 1.1.0
5
+ * The version of the OpenAPI document: 1.3.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Amalgam Index API
6
6
  * Amalgam Index (Amgix). Open-Source Hybrid Search System
7
7
  *
8
- * The version of the OpenAPI document: 1.1.0
8
+ * The version of the OpenAPI document: 1.3.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Amalgam Index API
3
3
  * Amalgam Index (Amgix). Open-Source Hybrid Search System
4
4
  *
5
- * The version of the OpenAPI document: 1.1.0
5
+ * The version of the OpenAPI document: 1.3.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Amalgam Index API
6
6
  * Amalgam Index (Amgix). Open-Source Hybrid Search System
7
7
  *
8
- * The version of the OpenAPI document: 1.1.0
8
+ * The version of the OpenAPI document: 1.3.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Amalgam Index API
3
3
  * Amalgam Index (Amgix). Open-Source Hybrid Search System
4
4
  *
5
- * The version of the OpenAPI document: 1.1.0
5
+ * The version of the OpenAPI document: 1.3.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Amalgam Index API
6
6
  * Amalgam Index (Amgix). Open-Source Hybrid Search System
7
7
  *
8
- * The version of the OpenAPI document: 1.1.0
8
+ * The version of the OpenAPI document: 1.3.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Amalgam Index API
3
3
  * Amalgam Index (Amgix). Open-Source Hybrid Search System
4
4
  *
5
- * The version of the OpenAPI document: 1.1.0
5
+ * The version of the OpenAPI document: 1.3.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Amalgam Index API
6
6
  * Amalgam Index (Amgix). Open-Source Hybrid Search System
7
7
  *
8
- * The version of the OpenAPI document: 1.1.0
8
+ * The version of the OpenAPI document: 1.3.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Amalgam Index API
3
+ * Amalgam Index (Amgix). Open-Source Hybrid Search System
4
+ *
5
+ * The version of the OpenAPI document: 1.3.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 MetricDefinitionItem
16
+ */
17
+ export interface MetricDefinitionItem {
18
+ /**
19
+ * Stable metric identifier
20
+ * @type {string}
21
+ * @memberof MetricDefinitionItem
22
+ */
23
+ key: string;
24
+ /**
25
+ * Unit label (e.g. req, ms, batch)
26
+ * @type {string}
27
+ * @memberof MetricDefinitionItem
28
+ */
29
+ unit: string;
30
+ /**
31
+ * Description of this metric
32
+ * @type {string}
33
+ * @memberof MetricDefinitionItem
34
+ */
35
+ description: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the MetricDefinitionItem interface.
39
+ */
40
+ export declare function instanceOfMetricDefinitionItem(value: object): value is MetricDefinitionItem;
41
+ export declare function MetricDefinitionItemFromJSON(json: any): MetricDefinitionItem;
42
+ export declare function MetricDefinitionItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): MetricDefinitionItem;
43
+ export declare function MetricDefinitionItemToJSON(json: any): MetricDefinitionItem;
44
+ export declare function MetricDefinitionItemToJSONTyped(value?: MetricDefinitionItem | null, ignoreDiscriminator?: boolean): any;
45
+ //# sourceMappingURL=MetricDefinitionItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MetricDefinitionItem.d.ts","sourceRoot":"","sources":["../../models/MetricDefinitionItem.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,oBAAoB,CAK3F;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE5E;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,CAU/G;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE1E;AAED,wBAAgB,+BAA+B,CAAC,KAAK,CAAC,EAAE,oBAAoB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAW9H"}
@@ -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.3.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.instanceOfMetricDefinitionItem = instanceOfMetricDefinitionItem;
17
+ exports.MetricDefinitionItemFromJSON = MetricDefinitionItemFromJSON;
18
+ exports.MetricDefinitionItemFromJSONTyped = MetricDefinitionItemFromJSONTyped;
19
+ exports.MetricDefinitionItemToJSON = MetricDefinitionItemToJSON;
20
+ exports.MetricDefinitionItemToJSONTyped = MetricDefinitionItemToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the MetricDefinitionItem interface.
23
+ */
24
+ function instanceOfMetricDefinitionItem(value) {
25
+ if (!('key' in value) || value['key'] === undefined)
26
+ return false;
27
+ if (!('unit' in value) || value['unit'] === undefined)
28
+ return false;
29
+ if (!('description' in value) || value['description'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function MetricDefinitionItemFromJSON(json) {
34
+ return MetricDefinitionItemFromJSONTyped(json, false);
35
+ }
36
+ function MetricDefinitionItemFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'key': json['key'],
42
+ 'unit': json['unit'],
43
+ 'description': json['description'],
44
+ };
45
+ }
46
+ function MetricDefinitionItemToJSON(json) {
47
+ return MetricDefinitionItemToJSONTyped(json, false);
48
+ }
49
+ function MetricDefinitionItemToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'key': value['key'],
55
+ 'unit': value['unit'],
56
+ 'description': value['description'],
57
+ };
58
+ }
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Amalgam Index API
3
+ * Amalgam Index (Amgix). Open-Source Hybrid Search System
4
+ *
5
+ * The version of the OpenAPI document: 1.3.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 { MetricsBucket } from './MetricsBucket';
13
+ /**
14
+ * Historical buckets for a single metric key at a given resolution.
15
+ * @export
16
+ * @interface MetricTrend
17
+ */
18
+ export interface MetricTrend {
19
+ /**
20
+ * Metric key
21
+ * @type {string}
22
+ * @memberof MetricTrend
23
+ */
24
+ key: string;
25
+ /**
26
+ * Bucket resolution in seconds
27
+ * @type {number}
28
+ * @memberof MetricTrend
29
+ */
30
+ bucket_seconds: number;
31
+ /**
32
+ * Buckets ordered by bucket_start ascending
33
+ * @type {Array<MetricsBucket>}
34
+ * @memberof MetricTrend
35
+ */
36
+ buckets?: Array<MetricsBucket>;
37
+ }
38
+ /**
39
+ * Check if a given object implements the MetricTrend interface.
40
+ */
41
+ export declare function instanceOfMetricTrend(value: object): value is MetricTrend;
42
+ export declare function MetricTrendFromJSON(json: any): MetricTrend;
43
+ export declare function MetricTrendFromJSONTyped(json: any, ignoreDiscriminator: boolean): MetricTrend;
44
+ export declare function MetricTrendToJSON(json: any): MetricTrend;
45
+ export declare function MetricTrendToJSONTyped(value?: MetricTrend | null, ignoreDiscriminator?: boolean): any;
46
+ //# sourceMappingURL=MetricTrend.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MetricTrend.d.ts","sourceRoot":"","sources":["../../models/MetricTrend.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAQrD;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;CAClC;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,WAAW,CAIzE;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAE1D;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,WAAW,CAU7F;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,CAW5G"}
@@ -0,0 +1,57 @@
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.3.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.instanceOfMetricTrend = instanceOfMetricTrend;
17
+ exports.MetricTrendFromJSON = MetricTrendFromJSON;
18
+ exports.MetricTrendFromJSONTyped = MetricTrendFromJSONTyped;
19
+ exports.MetricTrendToJSON = MetricTrendToJSON;
20
+ exports.MetricTrendToJSONTyped = MetricTrendToJSONTyped;
21
+ const MetricsBucket_1 = require("./MetricsBucket");
22
+ /**
23
+ * Check if a given object implements the MetricTrend interface.
24
+ */
25
+ function instanceOfMetricTrend(value) {
26
+ if (!('key' in value) || value['key'] === undefined)
27
+ return false;
28
+ if (!('bucket_seconds' in value) || value['bucket_seconds'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function MetricTrendFromJSON(json) {
33
+ return MetricTrendFromJSONTyped(json, false);
34
+ }
35
+ function MetricTrendFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'key': json['key'],
41
+ 'bucket_seconds': json['bucket_seconds'],
42
+ 'buckets': json['buckets'] == null ? undefined : (json['buckets'].map(MetricsBucket_1.MetricsBucketFromJSON)),
43
+ };
44
+ }
45
+ function MetricTrendToJSON(json) {
46
+ return MetricTrendToJSONTyped(json, false);
47
+ }
48
+ function MetricTrendToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'key': value['key'],
54
+ 'bucket_seconds': value['bucket_seconds'],
55
+ 'buckets': value['buckets'] == null ? undefined : (value['buckets'].map(MetricsBucket_1.MetricsBucketToJSON)),
56
+ };
57
+ }
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Amalgam Index API
3
+ * Amalgam Index (Amgix). Open-Source Hybrid Search System
4
+ *
5
+ * The version of the OpenAPI document: 1.3.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 { NodeView } from './NodeView';
13
+ /**
14
+ * Latest metrics state as persisted by the encoder leader.
15
+ * @export
16
+ * @interface Metrics
17
+ */
18
+ export interface Metrics {
19
+ /**
20
+ * Map of node ID to node snapshot for all nodes that have reported within the expiry window
21
+ * @type {{ [key: string]: NodeView; }}
22
+ * @memberof Metrics
23
+ */
24
+ nodes?: {
25
+ [key: string]: NodeView;
26
+ };
27
+ }
28
+ /**
29
+ * Check if a given object implements the Metrics interface.
30
+ */
31
+ export declare function instanceOfMetrics(value: object): value is Metrics;
32
+ export declare function MetricsFromJSON(json: any): Metrics;
33
+ export declare function MetricsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Metrics;
34
+ export declare function MetricsToJSON(json: any): Metrics;
35
+ export declare function MetricsToJSONTyped(value?: Metrics | null, ignoreDiscriminator?: boolean): any;
36
+ //# sourceMappingURL=Metrics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Metrics.d.ts","sourceRoot":"","sources":["../../models/Metrics.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAQ3C;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACpB;;;;OAIG;IACH,KAAK,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,QAAQ,CAAC;KAAE,CAAC;CACxC;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,OAAO,CAEjE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAElD;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,OAAO,CAQrF;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAEhD;AAED,wBAAgB,kBAAkB,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CASpG"}
@@ -0,0 +1,50 @@
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.3.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.instanceOfMetrics = instanceOfMetrics;
17
+ exports.MetricsFromJSON = MetricsFromJSON;
18
+ exports.MetricsFromJSONTyped = MetricsFromJSONTyped;
19
+ exports.MetricsToJSON = MetricsToJSON;
20
+ exports.MetricsToJSONTyped = MetricsToJSONTyped;
21
+ const runtime_1 = require("../runtime");
22
+ const NodeView_1 = require("./NodeView");
23
+ /**
24
+ * Check if a given object implements the Metrics interface.
25
+ */
26
+ function instanceOfMetrics(value) {
27
+ return true;
28
+ }
29
+ function MetricsFromJSON(json) {
30
+ return MetricsFromJSONTyped(json, false);
31
+ }
32
+ function MetricsFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'nodes': json['nodes'] == null ? undefined : ((0, runtime_1.mapValues)(json['nodes'], NodeView_1.NodeViewFromJSON)),
38
+ };
39
+ }
40
+ function MetricsToJSON(json) {
41
+ return MetricsToJSONTyped(json, false);
42
+ }
43
+ function MetricsToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'nodes': value['nodes'] == null ? undefined : ((0, runtime_1.mapValues)(value['nodes'], NodeView_1.NodeViewToJSON)),
49
+ };
50
+ }