@amgix/amgix-client 1.0.0-beta1

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 (80) hide show
  1. package/LICENSE +202 -0
  2. package/dist/apis/AmgixApi.d.ts +236 -0
  3. package/dist/apis/AmgixApi.d.ts.map +1 -0
  4. package/dist/apis/AmgixApi.js +554 -0
  5. package/dist/apis/index.d.ts +2 -0
  6. package/dist/apis/index.d.ts.map +1 -0
  7. package/dist/apis/index.js +19 -0
  8. package/dist/index.d.ts +4 -0
  9. package/dist/index.d.ts.map +1 -0
  10. package/dist/index.js +21 -0
  11. package/dist/models/BulkUploadRequest.d.ts +34 -0
  12. package/dist/models/BulkUploadRequest.d.ts.map +1 -0
  13. package/dist/models/BulkUploadRequest.js +51 -0
  14. package/dist/models/CollectionConfig.d.ts +47 -0
  15. package/dist/models/CollectionConfig.d.ts.map +1 -0
  16. package/dist/models/CollectionConfig.js +56 -0
  17. package/dist/models/CustomDocumentVector.d.ts +55 -0
  18. package/dist/models/CustomDocumentVector.d.ts.map +1 -0
  19. package/dist/models/CustomDocumentVector.js +68 -0
  20. package/dist/models/CustomVector.d.ts +40 -0
  21. package/dist/models/CustomVector.d.ts.map +1 -0
  22. package/dist/models/CustomVector.js +55 -0
  23. package/dist/models/Document.d.ts +80 -0
  24. package/dist/models/Document.d.ts.map +1 -0
  25. package/dist/models/Document.js +69 -0
  26. package/dist/models/DocumentStatus.d.ts +67 -0
  27. package/dist/models/DocumentStatus.d.ts.map +1 -0
  28. package/dist/models/DocumentStatus.js +70 -0
  29. package/dist/models/DocumentStatusResponse.d.ts +34 -0
  30. package/dist/models/DocumentStatusResponse.d.ts.map +1 -0
  31. package/dist/models/DocumentStatusResponse.js +51 -0
  32. package/dist/models/HTTPValidationError.d.ts +34 -0
  33. package/dist/models/HTTPValidationError.d.ts.map +1 -0
  34. package/dist/models/HTTPValidationError.js +49 -0
  35. package/dist/models/MetadataFilter.d.ts +74 -0
  36. package/dist/models/MetadataFilter.d.ts.map +1 -0
  37. package/dist/models/MetadataFilter.js +69 -0
  38. package/dist/models/MetadataIndex.d.ts +50 -0
  39. package/dist/models/MetadataIndex.d.ts.map +1 -0
  40. package/dist/models/MetadataIndex.js +65 -0
  41. package/dist/models/OkResponse.d.ts +33 -0
  42. package/dist/models/OkResponse.d.ts.map +1 -0
  43. package/dist/models/OkResponse.js +50 -0
  44. package/dist/models/QueueInfo.d.ts +52 -0
  45. package/dist/models/QueueInfo.d.ts.map +1 -0
  46. package/dist/models/QueueInfo.js +62 -0
  47. package/dist/models/SearchQuery.d.ts +86 -0
  48. package/dist/models/SearchQuery.d.ts.map +1 -0
  49. package/dist/models/SearchQuery.js +69 -0
  50. package/dist/models/SearchResult.d.ts +87 -0
  51. package/dist/models/SearchResult.d.ts.map +1 -0
  52. package/dist/models/SearchResult.js +74 -0
  53. package/dist/models/ValidationError.d.ts +46 -0
  54. package/dist/models/ValidationError.d.ts.map +1 -0
  55. package/dist/models/ValidationError.js +59 -0
  56. package/dist/models/ValidationErrorLocInner.d.ts +27 -0
  57. package/dist/models/ValidationErrorLocInner.d.ts.map +1 -0
  58. package/dist/models/ValidationErrorLocInner.js +38 -0
  59. package/dist/models/Vector.d.ts +27 -0
  60. package/dist/models/Vector.d.ts.map +1 -0
  61. package/dist/models/Vector.js +38 -0
  62. package/dist/models/VectorConfig.d.ts +154 -0
  63. package/dist/models/VectorConfig.d.ts.map +1 -0
  64. package/dist/models/VectorConfig.js +113 -0
  65. package/dist/models/VectorScore.d.ts +51 -0
  66. package/dist/models/VectorScore.d.ts.map +1 -0
  67. package/dist/models/VectorScore.js +62 -0
  68. package/dist/models/VectorSearchWeight.d.ts +56 -0
  69. package/dist/models/VectorSearchWeight.d.ts.map +1 -0
  70. package/dist/models/VectorSearchWeight.js +67 -0
  71. package/dist/models/VersionResponse.d.ts +33 -0
  72. package/dist/models/VersionResponse.d.ts.map +1 -0
  73. package/dist/models/VersionResponse.js +50 -0
  74. package/dist/models/index.d.ts +22 -0
  75. package/dist/models/index.d.ts.map +1 -0
  76. package/dist/models/index.js +39 -0
  77. package/dist/runtime.d.ts +185 -0
  78. package/dist/runtime.d.ts.map +1 -0
  79. package/dist/runtime.js +338 -0
  80. package/package.json +27 -0
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Amalgam Index API
6
+ * Amalgam Index (Amgix). The Hybrid Semantic Search Platform, API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0-dev
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.DocumentStatusStatusEnum = void 0;
17
+ exports.instanceOfDocumentStatus = instanceOfDocumentStatus;
18
+ exports.DocumentStatusFromJSON = DocumentStatusFromJSON;
19
+ exports.DocumentStatusFromJSONTyped = DocumentStatusFromJSONTyped;
20
+ exports.DocumentStatusToJSON = DocumentStatusToJSON;
21
+ exports.DocumentStatusToJSONTyped = DocumentStatusToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.DocumentStatusStatusEnum = {
26
+ Queued: 'queued',
27
+ Requeued: 'requeued',
28
+ Indexed: 'indexed',
29
+ Failed: 'failed'
30
+ };
31
+ /**
32
+ * Check if a given object implements the DocumentStatus interface.
33
+ */
34
+ function instanceOfDocumentStatus(value) {
35
+ if (!('status' in value) || value['status'] === undefined)
36
+ return false;
37
+ if (!('timestamp' in value) || value['timestamp'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ function DocumentStatusFromJSON(json) {
42
+ return DocumentStatusFromJSONTyped(json, false);
43
+ }
44
+ function DocumentStatusFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'status': json['status'],
50
+ 'info': json['info'] == null ? undefined : json['info'],
51
+ 'timestamp': (new Date(json['timestamp'])),
52
+ 'queue_id': json['queue_id'] == null ? undefined : json['queue_id'],
53
+ 'try_count': json['try_count'] == null ? undefined : json['try_count'],
54
+ };
55
+ }
56
+ function DocumentStatusToJSON(json) {
57
+ return DocumentStatusToJSONTyped(json, false);
58
+ }
59
+ function DocumentStatusToJSONTyped(value, ignoreDiscriminator = false) {
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+ return {
64
+ 'status': value['status'],
65
+ 'info': value['info'],
66
+ 'timestamp': ((value['timestamp']).toISOString()),
67
+ 'queue_id': value['queue_id'],
68
+ 'try_count': value['try_count'],
69
+ };
70
+ }
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Amalgam Index API
3
+ * Amalgam Index (Amgix). The Hybrid Semantic Search Platform, API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0-dev
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 { DocumentStatus } from './DocumentStatus';
13
+ /**
14
+ * Complete status response for a document including queue states.
15
+ * @export
16
+ * @interface DocumentStatusResponse
17
+ */
18
+ export interface DocumentStatusResponse {
19
+ /**
20
+ * List of statuses sorted by timestamp (newest first)
21
+ * @type {Array<DocumentStatus>}
22
+ * @memberof DocumentStatusResponse
23
+ */
24
+ statuses: Array<DocumentStatus>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the DocumentStatusResponse interface.
28
+ */
29
+ export declare function instanceOfDocumentStatusResponse(value: object): value is DocumentStatusResponse;
30
+ export declare function DocumentStatusResponseFromJSON(json: any): DocumentStatusResponse;
31
+ export declare function DocumentStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocumentStatusResponse;
32
+ export declare function DocumentStatusResponseToJSON(json: any): DocumentStatusResponse;
33
+ export declare function DocumentStatusResponseToJSONTyped(value?: DocumentStatusResponse | null, ignoreDiscriminator?: boolean): any;
34
+ //# sourceMappingURL=DocumentStatusResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DocumentStatusResponse.d.ts","sourceRoot":"","sources":["../../models/DocumentStatusResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAQvD;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACnC;;;;OAIG;IACH,QAAQ,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;CACnC;AAED;;GAEG;AACH,wBAAgB,gCAAgC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,sBAAsB,CAG/F;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,GAAG,sBAAsB,CAEhF;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,sBAAsB,CAQnH;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,sBAAsB,CAE9E;AAED,wBAAgB,iCAAiC,CAAC,KAAK,CAAC,EAAE,sBAAsB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CASlI"}
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Amalgam Index API
6
+ * Amalgam Index (Amgix). The Hybrid Semantic Search Platform, API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0-dev
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.instanceOfDocumentStatusResponse = instanceOfDocumentStatusResponse;
17
+ exports.DocumentStatusResponseFromJSON = DocumentStatusResponseFromJSON;
18
+ exports.DocumentStatusResponseFromJSONTyped = DocumentStatusResponseFromJSONTyped;
19
+ exports.DocumentStatusResponseToJSON = DocumentStatusResponseToJSON;
20
+ exports.DocumentStatusResponseToJSONTyped = DocumentStatusResponseToJSONTyped;
21
+ const DocumentStatus_1 = require("./DocumentStatus");
22
+ /**
23
+ * Check if a given object implements the DocumentStatusResponse interface.
24
+ */
25
+ function instanceOfDocumentStatusResponse(value) {
26
+ if (!('statuses' in value) || value['statuses'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function DocumentStatusResponseFromJSON(json) {
31
+ return DocumentStatusResponseFromJSONTyped(json, false);
32
+ }
33
+ function DocumentStatusResponseFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'statuses': (json['statuses'].map(DocumentStatus_1.DocumentStatusFromJSON)),
39
+ };
40
+ }
41
+ function DocumentStatusResponseToJSON(json) {
42
+ return DocumentStatusResponseToJSONTyped(json, false);
43
+ }
44
+ function DocumentStatusResponseToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'statuses': (value['statuses'].map(DocumentStatus_1.DocumentStatusToJSON)),
50
+ };
51
+ }
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Amalgam Index API
3
+ * Amalgam Index (Amgix). The Hybrid Semantic Search Platform, API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0-dev
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 { ValidationError } from './ValidationError';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface HTTPValidationError
17
+ */
18
+ export interface HTTPValidationError {
19
+ /**
20
+ *
21
+ * @type {Array<ValidationError>}
22
+ * @memberof HTTPValidationError
23
+ */
24
+ detail?: Array<ValidationError>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the HTTPValidationError interface.
28
+ */
29
+ export declare function instanceOfHTTPValidationError(value: object): value is HTTPValidationError;
30
+ export declare function HTTPValidationErrorFromJSON(json: any): HTTPValidationError;
31
+ export declare function HTTPValidationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): HTTPValidationError;
32
+ export declare function HTTPValidationErrorToJSON(json: any): HTTPValidationError;
33
+ export declare function HTTPValidationErrorToJSONTyped(value?: HTTPValidationError | null, ignoreDiscriminator?: boolean): any;
34
+ //# sourceMappingURL=HTTPValidationError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HTTPValidationError.d.ts","sourceRoot":"","sources":["../../models/HTTPValidationError.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAQzD;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;CACnC;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,mBAAmB,CAEzF;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAE1E;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,mBAAmB,CAQ7G;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAExE;AAED,wBAAgB,8BAA8B,CAAC,KAAK,CAAC,EAAE,mBAAmB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS5H"}
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Amalgam Index API
6
+ * Amalgam Index (Amgix). The Hybrid Semantic Search Platform, API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0-dev
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.instanceOfHTTPValidationError = instanceOfHTTPValidationError;
17
+ exports.HTTPValidationErrorFromJSON = HTTPValidationErrorFromJSON;
18
+ exports.HTTPValidationErrorFromJSONTyped = HTTPValidationErrorFromJSONTyped;
19
+ exports.HTTPValidationErrorToJSON = HTTPValidationErrorToJSON;
20
+ exports.HTTPValidationErrorToJSONTyped = HTTPValidationErrorToJSONTyped;
21
+ const ValidationError_1 = require("./ValidationError");
22
+ /**
23
+ * Check if a given object implements the HTTPValidationError interface.
24
+ */
25
+ function instanceOfHTTPValidationError(value) {
26
+ return true;
27
+ }
28
+ function HTTPValidationErrorFromJSON(json) {
29
+ return HTTPValidationErrorFromJSONTyped(json, false);
30
+ }
31
+ function HTTPValidationErrorFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'detail': json['detail'] == null ? undefined : (json['detail'].map(ValidationError_1.ValidationErrorFromJSON)),
37
+ };
38
+ }
39
+ function HTTPValidationErrorToJSON(json) {
40
+ return HTTPValidationErrorToJSONTyped(json, false);
41
+ }
42
+ function HTTPValidationErrorToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'detail': value['detail'] == null ? undefined : (value['detail'].map(ValidationError_1.ValidationErrorToJSON)),
48
+ };
49
+ }
@@ -0,0 +1,74 @@
1
+ /**
2
+ * Amalgam Index API
3
+ * Amalgam Index (Amgix). The Hybrid Semantic Search Platform, API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0-dev
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
+ * Recursive metadata filter structure (modeled on Qdrant filter with and/or/not).
14
+ * @export
15
+ * @interface MetadataFilter
16
+ */
17
+ export interface MetadataFilter {
18
+ /**
19
+ * All conditions in this list must match (AND)
20
+ * @type {Array<MetadataFilter>}
21
+ * @memberof MetadataFilter
22
+ */
23
+ and?: Array<MetadataFilter>;
24
+ /**
25
+ * Any condition in this list must match (OR)
26
+ * @type {Array<MetadataFilter>}
27
+ * @memberof MetadataFilter
28
+ */
29
+ or?: Array<MetadataFilter>;
30
+ /**
31
+ * This condition must NOT match (NOT)
32
+ * @type {MetadataFilter}
33
+ * @memberof MetadataFilter
34
+ */
35
+ not?: MetadataFilter;
36
+ /**
37
+ * Metadata field key (for field condition)
38
+ * @type {string}
39
+ * @memberof MetadataFilter
40
+ */
41
+ key?: string;
42
+ /**
43
+ * Comparison operator
44
+ * @type {string}
45
+ * @memberof MetadataFilter
46
+ */
47
+ op?: MetadataFilterOpEnum;
48
+ /**
49
+ *
50
+ * @type {any}
51
+ * @memberof MetadataFilter
52
+ */
53
+ value?: any | null;
54
+ }
55
+ /**
56
+ * @export
57
+ */
58
+ export declare const MetadataFilterOpEnum: {
59
+ readonly Eq: "eq";
60
+ readonly Lt: "lt";
61
+ readonly Gt: "gt";
62
+ readonly Lte: "lte";
63
+ readonly Gte: "gte";
64
+ };
65
+ export type MetadataFilterOpEnum = typeof MetadataFilterOpEnum[keyof typeof MetadataFilterOpEnum];
66
+ /**
67
+ * Check if a given object implements the MetadataFilter interface.
68
+ */
69
+ export declare function instanceOfMetadataFilter(value: object): value is MetadataFilter;
70
+ export declare function MetadataFilterFromJSON(json: any): MetadataFilter;
71
+ export declare function MetadataFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): MetadataFilter;
72
+ export declare function MetadataFilterToJSON(json: any): MetadataFilter;
73
+ export declare function MetadataFilterToJSONTyped(value?: MetadataFilter | null, ignoreDiscriminator?: boolean): any;
74
+ //# sourceMappingURL=MetadataFilter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MetadataFilter.d.ts","sourceRoot":"","sources":["../../models/MetadataFilter.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,GAAG,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;IAC5B;;;;OAIG;IACH,EAAE,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;IAC3B;;;;OAIG;IACH,GAAG,CAAC,EAAE,cAAc,CAAC;IACrB;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,EAAE,CAAC,EAAE,oBAAoB,CAAC;IAC1B;;;;OAIG;IACH,KAAK,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC;CACtB;AAGD;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;CAMvB,CAAC;AACX,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC;AAGlG;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,CAE/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"}
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Amalgam Index API
6
+ * Amalgam Index (Amgix). The Hybrid Semantic Search Platform, API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0-dev
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.MetadataFilterOpEnum = void 0;
17
+ exports.instanceOfMetadataFilter = instanceOfMetadataFilter;
18
+ exports.MetadataFilterFromJSON = MetadataFilterFromJSON;
19
+ exports.MetadataFilterFromJSONTyped = MetadataFilterFromJSONTyped;
20
+ exports.MetadataFilterToJSON = MetadataFilterToJSON;
21
+ exports.MetadataFilterToJSONTyped = MetadataFilterToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.MetadataFilterOpEnum = {
26
+ Eq: 'eq',
27
+ Lt: 'lt',
28
+ Gt: 'gt',
29
+ Lte: 'lte',
30
+ Gte: 'gte'
31
+ };
32
+ /**
33
+ * Check if a given object implements the MetadataFilter interface.
34
+ */
35
+ function instanceOfMetadataFilter(value) {
36
+ return true;
37
+ }
38
+ function MetadataFilterFromJSON(json) {
39
+ return MetadataFilterFromJSONTyped(json, false);
40
+ }
41
+ function MetadataFilterFromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ 'and': json['and'] == null ? undefined : (json['and'].map(MetadataFilterFromJSON)),
47
+ 'or': json['or'] == null ? undefined : (json['or'].map(MetadataFilterFromJSON)),
48
+ 'not': json['not'] == null ? undefined : MetadataFilterFromJSON(json['not']),
49
+ 'key': json['key'] == null ? undefined : json['key'],
50
+ 'op': json['op'] == null ? undefined : json['op'],
51
+ 'value': json['value'] == null ? undefined : json['value'],
52
+ };
53
+ }
54
+ function MetadataFilterToJSON(json) {
55
+ return MetadataFilterToJSONTyped(json, false);
56
+ }
57
+ function MetadataFilterToJSONTyped(value, ignoreDiscriminator = false) {
58
+ if (value == null) {
59
+ return value;
60
+ }
61
+ return {
62
+ 'and': value['and'] == null ? undefined : (value['and'].map(MetadataFilterToJSON)),
63
+ 'or': value['or'] == null ? undefined : (value['or'].map(MetadataFilterToJSON)),
64
+ 'not': MetadataFilterToJSON(value['not']),
65
+ 'key': value['key'],
66
+ 'op': value['op'],
67
+ 'value': value['value'],
68
+ };
69
+ }
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Amalgam Index API
3
+ * Amalgam Index (Amgix). The Hybrid Semantic Search Platform, API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0-dev
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
+ * Metadata field index configuration
14
+ * @export
15
+ * @interface MetadataIndex
16
+ */
17
+ export interface MetadataIndex {
18
+ /**
19
+ * Metadata field key to index
20
+ * @type {string}
21
+ * @memberof MetadataIndex
22
+ */
23
+ key: string;
24
+ /**
25
+ * Type of the metadata value
26
+ * @type {string}
27
+ * @memberof MetadataIndex
28
+ */
29
+ type: MetadataIndexTypeEnum;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const MetadataIndexTypeEnum: {
35
+ readonly String: "string";
36
+ readonly Integer: "integer";
37
+ readonly Float: "float";
38
+ readonly Boolean: "boolean";
39
+ readonly Datetime: "datetime";
40
+ };
41
+ export type MetadataIndexTypeEnum = typeof MetadataIndexTypeEnum[keyof typeof MetadataIndexTypeEnum];
42
+ /**
43
+ * Check if a given object implements the MetadataIndex interface.
44
+ */
45
+ export declare function instanceOfMetadataIndex(value: object): value is MetadataIndex;
46
+ export declare function MetadataIndexFromJSON(json: any): MetadataIndex;
47
+ export declare function MetadataIndexFromJSONTyped(json: any, ignoreDiscriminator: boolean): MetadataIndex;
48
+ export declare function MetadataIndexToJSON(json: any): MetadataIndex;
49
+ export declare function MetadataIndexToJSONTyped(value?: MetadataIndex | null, ignoreDiscriminator?: boolean): any;
50
+ //# sourceMappingURL=MetadataIndex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MetadataIndex.d.ts","sourceRoot":"","sources":["../../models/MetadataIndex.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,IAAI,EAAE,qBAAqB,CAAC;CAC/B;AAGD;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;CAMxB,CAAC;AACX,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC,MAAM,OAAO,qBAAqB,CAAC,CAAC;AAGrG;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAI7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CASjG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE5D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUhH"}
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Amalgam Index API
6
+ * Amalgam Index (Amgix). The Hybrid Semantic Search Platform, API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0-dev
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.MetadataIndexTypeEnum = void 0;
17
+ exports.instanceOfMetadataIndex = instanceOfMetadataIndex;
18
+ exports.MetadataIndexFromJSON = MetadataIndexFromJSON;
19
+ exports.MetadataIndexFromJSONTyped = MetadataIndexFromJSONTyped;
20
+ exports.MetadataIndexToJSON = MetadataIndexToJSON;
21
+ exports.MetadataIndexToJSONTyped = MetadataIndexToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.MetadataIndexTypeEnum = {
26
+ String: 'string',
27
+ Integer: 'integer',
28
+ Float: 'float',
29
+ Boolean: 'boolean',
30
+ Datetime: 'datetime'
31
+ };
32
+ /**
33
+ * Check if a given object implements the MetadataIndex interface.
34
+ */
35
+ function instanceOfMetadataIndex(value) {
36
+ if (!('key' in value) || value['key'] === undefined)
37
+ return false;
38
+ if (!('type' in value) || value['type'] === undefined)
39
+ return false;
40
+ return true;
41
+ }
42
+ function MetadataIndexFromJSON(json) {
43
+ return MetadataIndexFromJSONTyped(json, false);
44
+ }
45
+ function MetadataIndexFromJSONTyped(json, ignoreDiscriminator) {
46
+ if (json == null) {
47
+ return json;
48
+ }
49
+ return {
50
+ 'key': json['key'],
51
+ 'type': json['type'],
52
+ };
53
+ }
54
+ function MetadataIndexToJSON(json) {
55
+ return MetadataIndexToJSONTyped(json, false);
56
+ }
57
+ function MetadataIndexToJSONTyped(value, ignoreDiscriminator = false) {
58
+ if (value == null) {
59
+ return value;
60
+ }
61
+ return {
62
+ 'key': value['key'],
63
+ 'type': value['type'],
64
+ };
65
+ }
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Amalgam Index API
3
+ * Amalgam Index (Amgix). The Hybrid Semantic Search Platform, API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0-dev
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 OkResponse
16
+ */
17
+ export interface OkResponse {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof OkResponse
22
+ */
23
+ ok: boolean;
24
+ }
25
+ /**
26
+ * Check if a given object implements the OkResponse interface.
27
+ */
28
+ export declare function instanceOfOkResponse(value: object): value is OkResponse;
29
+ export declare function OkResponseFromJSON(json: any): OkResponse;
30
+ export declare function OkResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): OkResponse;
31
+ export declare function OkResponseToJSON(json: any): OkResponse;
32
+ export declare function OkResponseToJSONTyped(value?: OkResponse | null, ignoreDiscriminator?: boolean): any;
33
+ //# sourceMappingURL=OkResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OkResponse.d.ts","sourceRoot":"","sources":["../../models/OkResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,EAAE,EAAE,OAAO,CAAC;CACf;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,UAAU,CAGvE;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAExD;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,UAAU,CAQ3F;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAEtD;AAED,wBAAgB,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS1G"}
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Amalgam Index API
6
+ * Amalgam Index (Amgix). The Hybrid Semantic Search Platform, API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0-dev
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.instanceOfOkResponse = instanceOfOkResponse;
17
+ exports.OkResponseFromJSON = OkResponseFromJSON;
18
+ exports.OkResponseFromJSONTyped = OkResponseFromJSONTyped;
19
+ exports.OkResponseToJSON = OkResponseToJSON;
20
+ exports.OkResponseToJSONTyped = OkResponseToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the OkResponse interface.
23
+ */
24
+ function instanceOfOkResponse(value) {
25
+ if (!('ok' in value) || value['ok'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function OkResponseFromJSON(json) {
30
+ return OkResponseFromJSONTyped(json, false);
31
+ }
32
+ function OkResponseFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'ok': json['ok'],
38
+ };
39
+ }
40
+ function OkResponseToJSON(json) {
41
+ return OkResponseToJSONTyped(json, false);
42
+ }
43
+ function OkResponseToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'ok': value['ok'],
49
+ };
50
+ }
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Amalgam Index API
3
+ * Amalgam Index (Amgix). The Hybrid Semantic Search Platform, API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0-dev
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
+ * Queue statistics for a collection.
14
+ * Provides counts of documents in different queue states.
15
+ * @export
16
+ * @interface QueueInfo
17
+ */
18
+ export interface QueueInfo {
19
+ /**
20
+ * Number of documents queued for processing
21
+ * @type {number}
22
+ * @memberof QueueInfo
23
+ */
24
+ queued: number;
25
+ /**
26
+ * Number of documents requeued after failure
27
+ * @type {number}
28
+ * @memberof QueueInfo
29
+ */
30
+ requeued: number;
31
+ /**
32
+ * Number of failed documents
33
+ * @type {number}
34
+ * @memberof QueueInfo
35
+ */
36
+ failed: number;
37
+ /**
38
+ * Total number of queue entries
39
+ * @type {number}
40
+ * @memberof QueueInfo
41
+ */
42
+ total: number;
43
+ }
44
+ /**
45
+ * Check if a given object implements the QueueInfo interface.
46
+ */
47
+ export declare function instanceOfQueueInfo(value: object): value is QueueInfo;
48
+ export declare function QueueInfoFromJSON(json: any): QueueInfo;
49
+ export declare function QueueInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): QueueInfo;
50
+ export declare function QueueInfoToJSON(json: any): QueueInfo;
51
+ export declare function QueueInfoToJSONTyped(value?: QueueInfo | null, ignoreDiscriminator?: boolean): any;
52
+ //# sourceMappingURL=QueueInfo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueueInfo.d.ts","sourceRoot":"","sources":["../../models/QueueInfo.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;;GAKG;AACH,MAAM,WAAW,SAAS;IACtB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,SAAS,CAMrE;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEtD;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,SAAS,CAWzF;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEpD;AAED,wBAAgB,oBAAoB,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAYxG"}