@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,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.instanceOfBulkUploadRequest = instanceOfBulkUploadRequest;
17
+ exports.BulkUploadRequestFromJSON = BulkUploadRequestFromJSON;
18
+ exports.BulkUploadRequestFromJSONTyped = BulkUploadRequestFromJSONTyped;
19
+ exports.BulkUploadRequestToJSON = BulkUploadRequestToJSON;
20
+ exports.BulkUploadRequestToJSONTyped = BulkUploadRequestToJSONTyped;
21
+ const Document_1 = require("./Document");
22
+ /**
23
+ * Check if a given object implements the BulkUploadRequest interface.
24
+ */
25
+ function instanceOfBulkUploadRequest(value) {
26
+ if (!('documents' in value) || value['documents'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function BulkUploadRequestFromJSON(json) {
31
+ return BulkUploadRequestFromJSONTyped(json, false);
32
+ }
33
+ function BulkUploadRequestFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'documents': (json['documents'].map(Document_1.DocumentFromJSON)),
39
+ };
40
+ }
41
+ function BulkUploadRequestToJSON(json) {
42
+ return BulkUploadRequestToJSONTyped(json, false);
43
+ }
44
+ function BulkUploadRequestToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'documents': (value['documents'].map(Document_1.DocumentToJSON)),
50
+ };
51
+ }
@@ -0,0 +1,47 @@
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 { MetadataIndex } from './MetadataIndex';
13
+ import type { VectorConfig } from './VectorConfig';
14
+ /**
15
+ * API model for collection configuration - uses VectorConfig.
16
+ * @export
17
+ * @interface CollectionConfig
18
+ */
19
+ export interface CollectionConfig {
20
+ /**
21
+ * List of vector configurations for this collection
22
+ * @type {Array<VectorConfig>}
23
+ * @memberof CollectionConfig
24
+ */
25
+ vectors: Array<VectorConfig>;
26
+ /**
27
+ * Whether to store document content in the database. Defaults to False for performance and cost reasons.
28
+ * @type {boolean}
29
+ * @memberof CollectionConfig
30
+ */
31
+ store_content?: boolean;
32
+ /**
33
+ * List of metadata fields to index for filtering and sorting
34
+ * @type {Array<MetadataIndex>}
35
+ * @memberof CollectionConfig
36
+ */
37
+ metadata_indexes?: Array<MetadataIndex>;
38
+ }
39
+ /**
40
+ * Check if a given object implements the CollectionConfig interface.
41
+ */
42
+ export declare function instanceOfCollectionConfig(value: object): value is CollectionConfig;
43
+ export declare function CollectionConfigFromJSON(json: any): CollectionConfig;
44
+ export declare function CollectionConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): CollectionConfig;
45
+ export declare function CollectionConfigToJSON(json: any): CollectionConfig;
46
+ export declare function CollectionConfigToJSONTyped(value?: CollectionConfig | null, ignoreDiscriminator?: boolean): any;
47
+ //# sourceMappingURL=CollectionConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CollectionConfig.d.ts","sourceRoot":"","sources":["../../models/CollectionConfig.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAOrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAQnD;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;IAC7B;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;CAC3C;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,CAUvG;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,CAWtH"}
@@ -0,0 +1,56 @@
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.instanceOfCollectionConfig = instanceOfCollectionConfig;
17
+ exports.CollectionConfigFromJSON = CollectionConfigFromJSON;
18
+ exports.CollectionConfigFromJSONTyped = CollectionConfigFromJSONTyped;
19
+ exports.CollectionConfigToJSON = CollectionConfigToJSON;
20
+ exports.CollectionConfigToJSONTyped = CollectionConfigToJSONTyped;
21
+ const MetadataIndex_1 = require("./MetadataIndex");
22
+ const VectorConfig_1 = require("./VectorConfig");
23
+ /**
24
+ * Check if a given object implements the CollectionConfig interface.
25
+ */
26
+ function instanceOfCollectionConfig(value) {
27
+ if (!('vectors' in value) || value['vectors'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function CollectionConfigFromJSON(json) {
32
+ return CollectionConfigFromJSONTyped(json, false);
33
+ }
34
+ function CollectionConfigFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'vectors': (json['vectors'].map(VectorConfig_1.VectorConfigFromJSON)),
40
+ 'store_content': json['store_content'] == null ? undefined : json['store_content'],
41
+ 'metadata_indexes': json['metadata_indexes'] == null ? undefined : (json['metadata_indexes'].map(MetadataIndex_1.MetadataIndexFromJSON)),
42
+ };
43
+ }
44
+ function CollectionConfigToJSON(json) {
45
+ return CollectionConfigToJSONTyped(json, false);
46
+ }
47
+ function CollectionConfigToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'vectors': (value['vectors'].map(VectorConfig_1.VectorConfigToJSON)),
53
+ 'store_content': value['store_content'],
54
+ 'metadata_indexes': value['metadata_indexes'] == null ? undefined : (value['metadata_indexes'].map(MetadataIndex_1.MetadataIndexToJSON)),
55
+ };
56
+ }
@@ -0,0 +1,55 @@
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 { Vector } from './Vector';
13
+ /**
14
+ * Custom vector for documents - adds field specification
15
+ * @export
16
+ * @interface CustomDocumentVector
17
+ */
18
+ export interface CustomDocumentVector {
19
+ /**
20
+ * Name of the vector (must match collection config)
21
+ * @type {string}
22
+ * @memberof CustomDocumentVector
23
+ */
24
+ vector_name: string;
25
+ /**
26
+ *
27
+ * @type {Vector}
28
+ * @memberof CustomDocumentVector
29
+ */
30
+ vector: Vector;
31
+ /**
32
+ * Document field this vector is for (name, description, or content)
33
+ * @type {string}
34
+ * @memberof CustomDocumentVector
35
+ */
36
+ field: CustomDocumentVectorFieldEnum;
37
+ }
38
+ /**
39
+ * @export
40
+ */
41
+ export declare const CustomDocumentVectorFieldEnum: {
42
+ readonly Name: "name";
43
+ readonly Description: "description";
44
+ readonly Content: "content";
45
+ };
46
+ export type CustomDocumentVectorFieldEnum = typeof CustomDocumentVectorFieldEnum[keyof typeof CustomDocumentVectorFieldEnum];
47
+ /**
48
+ * Check if a given object implements the CustomDocumentVector interface.
49
+ */
50
+ export declare function instanceOfCustomDocumentVector(value: object): value is CustomDocumentVector;
51
+ export declare function CustomDocumentVectorFromJSON(json: any): CustomDocumentVector;
52
+ export declare function CustomDocumentVectorFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomDocumentVector;
53
+ export declare function CustomDocumentVectorToJSON(json: any): CustomDocumentVector;
54
+ export declare function CustomDocumentVectorToJSONTyped(value?: CustomDocumentVector | null, ignoreDiscriminator?: boolean): any;
55
+ //# sourceMappingURL=CustomDocumentVector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomDocumentVector.d.ts","sourceRoot":"","sources":["../../models/CustomDocumentVector.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAQvC;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,KAAK,EAAE,6BAA6B,CAAC;CACxC;AAGD;;GAEG;AACH,eAAO,MAAM,6BAA6B;;;;CAIhC,CAAC;AACX,MAAM,MAAM,6BAA6B,GAAG,OAAO,6BAA6B,CAAC,MAAM,OAAO,6BAA6B,CAAC,CAAC;AAG7H;;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,68 @@
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.CustomDocumentVectorFieldEnum = void 0;
17
+ exports.instanceOfCustomDocumentVector = instanceOfCustomDocumentVector;
18
+ exports.CustomDocumentVectorFromJSON = CustomDocumentVectorFromJSON;
19
+ exports.CustomDocumentVectorFromJSONTyped = CustomDocumentVectorFromJSONTyped;
20
+ exports.CustomDocumentVectorToJSON = CustomDocumentVectorToJSON;
21
+ exports.CustomDocumentVectorToJSONTyped = CustomDocumentVectorToJSONTyped;
22
+ const Vector_1 = require("./Vector");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.CustomDocumentVectorFieldEnum = {
27
+ Name: 'name',
28
+ Description: 'description',
29
+ Content: 'content'
30
+ };
31
+ /**
32
+ * Check if a given object implements the CustomDocumentVector interface.
33
+ */
34
+ function instanceOfCustomDocumentVector(value) {
35
+ if (!('vector_name' in value) || value['vector_name'] === undefined)
36
+ return false;
37
+ if (!('vector' in value) || value['vector'] === undefined)
38
+ return false;
39
+ if (!('field' in value) || value['field'] === undefined)
40
+ return false;
41
+ return true;
42
+ }
43
+ function CustomDocumentVectorFromJSON(json) {
44
+ return CustomDocumentVectorFromJSONTyped(json, false);
45
+ }
46
+ function CustomDocumentVectorFromJSONTyped(json, ignoreDiscriminator) {
47
+ if (json == null) {
48
+ return json;
49
+ }
50
+ return {
51
+ 'vector_name': json['vector_name'],
52
+ 'vector': (0, Vector_1.VectorFromJSON)(json['vector']),
53
+ 'field': json['field'],
54
+ };
55
+ }
56
+ function CustomDocumentVectorToJSON(json) {
57
+ return CustomDocumentVectorToJSONTyped(json, false);
58
+ }
59
+ function CustomDocumentVectorToJSONTyped(value, ignoreDiscriminator = false) {
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+ return {
64
+ 'vector_name': value['vector_name'],
65
+ 'vector': (0, Vector_1.VectorToJSON)(value['vector']),
66
+ 'field': value['field'],
67
+ };
68
+ }
@@ -0,0 +1,40 @@
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 { Vector } from './Vector';
13
+ /**
14
+ * Base custom vector model for search queries
15
+ * @export
16
+ * @interface CustomVector
17
+ */
18
+ export interface CustomVector {
19
+ /**
20
+ * Name of the vector (must match collection config)
21
+ * @type {string}
22
+ * @memberof CustomVector
23
+ */
24
+ vector_name: string;
25
+ /**
26
+ *
27
+ * @type {Vector}
28
+ * @memberof CustomVector
29
+ */
30
+ vector: Vector;
31
+ }
32
+ /**
33
+ * Check if a given object implements the CustomVector interface.
34
+ */
35
+ export declare function instanceOfCustomVector(value: object): value is CustomVector;
36
+ export declare function CustomVectorFromJSON(json: any): CustomVector;
37
+ export declare function CustomVectorFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomVector;
38
+ export declare function CustomVectorToJSON(json: any): CustomVector;
39
+ export declare function CustomVectorToJSONTyped(value?: CustomVector | null, ignoreDiscriminator?: boolean): any;
40
+ //# sourceMappingURL=CustomVector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomVector.d.ts","sourceRoot":"","sources":["../../models/CustomVector.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAQvC;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,YAAY,CAI3E;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE5D;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,YAAY,CAS/F;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE1D;AAED,wBAAgB,uBAAuB,CAAC,KAAK,CAAC,EAAE,YAAY,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAU9G"}
@@ -0,0 +1,55 @@
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.instanceOfCustomVector = instanceOfCustomVector;
17
+ exports.CustomVectorFromJSON = CustomVectorFromJSON;
18
+ exports.CustomVectorFromJSONTyped = CustomVectorFromJSONTyped;
19
+ exports.CustomVectorToJSON = CustomVectorToJSON;
20
+ exports.CustomVectorToJSONTyped = CustomVectorToJSONTyped;
21
+ const Vector_1 = require("./Vector");
22
+ /**
23
+ * Check if a given object implements the CustomVector interface.
24
+ */
25
+ function instanceOfCustomVector(value) {
26
+ if (!('vector_name' in value) || value['vector_name'] === undefined)
27
+ return false;
28
+ if (!('vector' in value) || value['vector'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function CustomVectorFromJSON(json) {
33
+ return CustomVectorFromJSONTyped(json, false);
34
+ }
35
+ function CustomVectorFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'vector_name': json['vector_name'],
41
+ 'vector': (0, Vector_1.VectorFromJSON)(json['vector']),
42
+ };
43
+ }
44
+ function CustomVectorToJSON(json) {
45
+ return CustomVectorToJSONTyped(json, false);
46
+ }
47
+ function CustomVectorToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'vector_name': value['vector_name'],
53
+ 'vector': (0, Vector_1.VectorToJSON)(value['vector']),
54
+ };
55
+ }
@@ -0,0 +1,80 @@
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 { CustomDocumentVector } from './CustomDocumentVector';
13
+ /**
14
+ * Document model representing the structure of documents in the system.
15
+ *
16
+ * This model is used for document ingestion, retrieval, and search results.
17
+ * Content is excluded from database storage for performance and cost reasons.
18
+ * @export
19
+ * @interface Document
20
+ */
21
+ export interface Document {
22
+ [key: string]: any | any;
23
+ /**
24
+ * Unique identifier for the document (max 100 characters)
25
+ * @type {string}
26
+ * @memberof Document
27
+ */
28
+ id: string;
29
+ /**
30
+ * UTC timestamp when the document was created/updated
31
+ * @type {Date}
32
+ * @memberof Document
33
+ */
34
+ timestamp: Date;
35
+ /**
36
+ * List of document tags (max 50 items; each max 100 characters; cannot contain pipe characters)
37
+ * @type {Array<string>}
38
+ * @memberof Document
39
+ */
40
+ tags?: Array<string>;
41
+ /**
42
+ * Document name (max 1500 characters)
43
+ * @type {string}
44
+ * @memberof Document
45
+ */
46
+ name?: string;
47
+ /**
48
+ * Brief description of the document (max 3000 characters)
49
+ * @type {string}
50
+ * @memberof Document
51
+ */
52
+ description?: string;
53
+ /**
54
+ * Main content of the document (max 1000000 characters)
55
+ * @type {string}
56
+ * @memberof Document
57
+ */
58
+ content?: string;
59
+ /**
60
+ * Dictionary of metadata key-value pairs. Values can be simple types (string, int, float, bool) or MetaValue objects (required for datetime)
61
+ * @type {object}
62
+ * @memberof Document
63
+ */
64
+ metadata?: object;
65
+ /**
66
+ * Pre-generated custom vectors for this document (optional)
67
+ * @type {Array<CustomDocumentVector>}
68
+ * @memberof Document
69
+ */
70
+ custom_vectors?: Array<CustomDocumentVector>;
71
+ }
72
+ /**
73
+ * Check if a given object implements the Document interface.
74
+ */
75
+ export declare function instanceOfDocument(value: object): value is Document;
76
+ export declare function DocumentFromJSON(json: any): Document;
77
+ export declare function DocumentFromJSONTyped(json: any, ignoreDiscriminator: boolean): Document;
78
+ export declare function DocumentToJSON(json: any): Document;
79
+ export declare function DocumentToJSONTyped(value?: Document | null, ignoreDiscriminator?: boolean): any;
80
+ //# sourceMappingURL=Document.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Document.d.ts","sourceRoot":"","sources":["../../models/Document.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAQnE;;;;;;;GAOG;AACH,MAAM,WAAW,QAAQ;IACrB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,GAAG,GAAG,CAAC;IACzB;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;;;OAIG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACrB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAC;CAChD;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,CAgBvF;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,CAiBtG"}
@@ -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.instanceOfDocument = instanceOfDocument;
17
+ exports.DocumentFromJSON = DocumentFromJSON;
18
+ exports.DocumentFromJSONTyped = DocumentFromJSONTyped;
19
+ exports.DocumentToJSON = DocumentToJSON;
20
+ exports.DocumentToJSONTyped = DocumentToJSONTyped;
21
+ const CustomDocumentVector_1 = require("./CustomDocumentVector");
22
+ /**
23
+ * Check if a given object implements the Document interface.
24
+ */
25
+ function instanceOfDocument(value) {
26
+ if (!('id' in value) || value['id'] === undefined)
27
+ return false;
28
+ if (!('timestamp' in value) || value['timestamp'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function DocumentFromJSON(json) {
33
+ return DocumentFromJSONTyped(json, false);
34
+ }
35
+ function DocumentFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ ...json,
41
+ 'id': json['id'],
42
+ 'timestamp': (new Date(json['timestamp'])),
43
+ 'tags': json['tags'] == null ? undefined : json['tags'],
44
+ 'name': json['name'] == null ? undefined : json['name'],
45
+ 'description': json['description'] == null ? undefined : json['description'],
46
+ 'content': json['content'] == null ? undefined : json['content'],
47
+ 'metadata': json['metadata'] == null ? undefined : json['metadata'],
48
+ 'custom_vectors': json['custom_vectors'] == null ? undefined : (json['custom_vectors'].map(CustomDocumentVector_1.CustomDocumentVectorFromJSON)),
49
+ };
50
+ }
51
+ function DocumentToJSON(json) {
52
+ return DocumentToJSONTyped(json, false);
53
+ }
54
+ function DocumentToJSONTyped(value, ignoreDiscriminator = false) {
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ ...value,
60
+ 'id': value['id'],
61
+ 'timestamp': ((value['timestamp']).toISOString()),
62
+ 'tags': value['tags'],
63
+ 'name': value['name'],
64
+ 'description': value['description'],
65
+ 'content': value['content'],
66
+ 'metadata': value['metadata'],
67
+ 'custom_vectors': value['custom_vectors'] == null ? undefined : (value['custom_vectors'].map(CustomDocumentVector_1.CustomDocumentVectorToJSON)),
68
+ };
69
+ }
@@ -0,0 +1,67 @@
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
+ * Individual status entry for a document.
14
+ * @export
15
+ * @interface DocumentStatus
16
+ */
17
+ export interface DocumentStatus {
18
+ /**
19
+ * Status of the document (queued, requeued, indexed, failed)
20
+ * @type {string}
21
+ * @memberof DocumentStatus
22
+ */
23
+ status: DocumentStatusStatusEnum;
24
+ /**
25
+ * Status information
26
+ * @type {string}
27
+ * @memberof DocumentStatus
28
+ */
29
+ info?: string;
30
+ /**
31
+ * When this status occurred
32
+ * @type {Date}
33
+ * @memberof DocumentStatus
34
+ */
35
+ timestamp: Date;
36
+ /**
37
+ * Queue entry ID (only for queue-related statuses)
38
+ * @type {string}
39
+ * @memberof DocumentStatus
40
+ */
41
+ queue_id?: string;
42
+ /**
43
+ * Number of processing attempts (only for failed statuses)
44
+ * @type {number}
45
+ * @memberof DocumentStatus
46
+ */
47
+ try_count?: number;
48
+ }
49
+ /**
50
+ * @export
51
+ */
52
+ export declare const DocumentStatusStatusEnum: {
53
+ readonly Queued: "queued";
54
+ readonly Requeued: "requeued";
55
+ readonly Indexed: "indexed";
56
+ readonly Failed: "failed";
57
+ };
58
+ export type DocumentStatusStatusEnum = typeof DocumentStatusStatusEnum[keyof typeof DocumentStatusStatusEnum];
59
+ /**
60
+ * Check if a given object implements the DocumentStatus interface.
61
+ */
62
+ export declare function instanceOfDocumentStatus(value: object): value is DocumentStatus;
63
+ export declare function DocumentStatusFromJSON(json: any): DocumentStatus;
64
+ export declare function DocumentStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocumentStatus;
65
+ export declare function DocumentStatusToJSON(json: any): DocumentStatus;
66
+ export declare function DocumentStatusToJSONTyped(value?: DocumentStatus | null, ignoreDiscriminator?: boolean): any;
67
+ //# sourceMappingURL=DocumentStatus.d.ts.map
@@ -0,0 +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"}