@alien_intelligence/data-api-client 1.2.5

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 (248) hide show
  1. package/README.md +70 -0
  2. package/dist/apis/AdminApi.d.ts +84 -0
  3. package/dist/apis/AdminApi.js +106 -0
  4. package/dist/apis/DatasetsApi.d.ts +221 -0
  5. package/dist/apis/DatasetsApi.js +250 -0
  6. package/dist/apis/DefaultApi.d.ts +48 -0
  7. package/dist/apis/DefaultApi.js +84 -0
  8. package/dist/apis/EmbeddingsApi.d.ts +111 -0
  9. package/dist/apis/EmbeddingsApi.js +134 -0
  10. package/dist/apis/EntriesApi.d.ts +458 -0
  11. package/dist/apis/EntriesApi.js +500 -0
  12. package/dist/apis/HealthApi.d.ts +118 -0
  13. package/dist/apis/HealthApi.js +125 -0
  14. package/dist/apis/PipelinesApi.d.ts +229 -0
  15. package/dist/apis/PipelinesApi.js +242 -0
  16. package/dist/apis/SearchApi.d.ts +109 -0
  17. package/dist/apis/SearchApi.js +144 -0
  18. package/dist/apis/SyncApi.d.ts +80 -0
  19. package/dist/apis/SyncApi.js +103 -0
  20. package/dist/apis/WebhooksApi.d.ts +94 -0
  21. package/dist/apis/WebhooksApi.js +127 -0
  22. package/dist/apis/WeightsApi.d.ts +276 -0
  23. package/dist/apis/WeightsApi.js +328 -0
  24. package/dist/apis/index.d.ts +11 -0
  25. package/dist/apis/index.js +29 -0
  26. package/dist/index.d.ts +3 -0
  27. package/dist/index.js +21 -0
  28. package/dist/models/ArtifactInputConfig.d.ts +46 -0
  29. package/dist/models/ArtifactInputConfig.js +58 -0
  30. package/dist/models/BatchContentRequest.d.ts +32 -0
  31. package/dist/models/BatchContentRequest.js +50 -0
  32. package/dist/models/BatchContentResponse.d.ts +33 -0
  33. package/dist/models/BatchContentResponse.js +51 -0
  34. package/dist/models/BatchGetEntriesRequest.d.ts +56 -0
  35. package/dist/models/BatchGetEntriesRequest.js +58 -0
  36. package/dist/models/BatchGetEntriesResponse.d.ts +39 -0
  37. package/dist/models/BatchGetEntriesResponse.js +55 -0
  38. package/dist/models/ChunkSearchResponse.d.ts +47 -0
  39. package/dist/models/ChunkSearchResponse.js +57 -0
  40. package/dist/models/ChunkSearchResult.d.ts +52 -0
  41. package/dist/models/ChunkSearchResult.js +58 -0
  42. package/dist/models/CollectionInfo.d.ts +50 -0
  43. package/dist/models/CollectionInfo.js +62 -0
  44. package/dist/models/ComponentArtifact.d.ts +46 -0
  45. package/dist/models/ComponentArtifact.js +54 -0
  46. package/dist/models/ComponentListResponse.d.ts +47 -0
  47. package/dist/models/ComponentListResponse.js +57 -0
  48. package/dist/models/ComponentMetadata.d.ts +95 -0
  49. package/dist/models/ComponentMetadata.js +74 -0
  50. package/dist/models/ComponentParameter.d.ts +48 -0
  51. package/dist/models/ComponentParameter.js +55 -0
  52. package/dist/models/CreateCollectionRequest.d.ts +44 -0
  53. package/dist/models/CreateCollectionRequest.js +54 -0
  54. package/dist/models/Dataset.d.ts +117 -0
  55. package/dist/models/Dataset.js +94 -0
  56. package/dist/models/DatasetCreateRequest.d.ts +58 -0
  57. package/dist/models/DatasetCreateRequest.js +68 -0
  58. package/dist/models/DatasetListResponse.d.ts +51 -0
  59. package/dist/models/DatasetListResponse.js +59 -0
  60. package/dist/models/DatasetPipelineConfigInput.d.ts +62 -0
  61. package/dist/models/DatasetPipelineConfigInput.js +65 -0
  62. package/dist/models/DatasetPipelineConfigOutput.d.ts +62 -0
  63. package/dist/models/DatasetPipelineConfigOutput.js +65 -0
  64. package/dist/models/DatasetResponse.d.ts +124 -0
  65. package/dist/models/DatasetResponse.js +100 -0
  66. package/dist/models/DatasetSchemaDefinition.d.ts +65 -0
  67. package/dist/models/DatasetSchemaDefinition.js +71 -0
  68. package/dist/models/DatasetSchemaOriginal.d.ts +46 -0
  69. package/dist/models/DatasetSchemaOriginal.js +52 -0
  70. package/dist/models/DatasetSchemaProcessed.d.ts +46 -0
  71. package/dist/models/DatasetSchemaProcessed.js +52 -0
  72. package/dist/models/DatasetSchemaProcessing.d.ts +38 -0
  73. package/dist/models/DatasetSchemaProcessing.js +50 -0
  74. package/dist/models/DatasetType.d.ts +27 -0
  75. package/dist/models/DatasetType.js +53 -0
  76. package/dist/models/DatasetUpdateSchemaRequest.d.ts +39 -0
  77. package/dist/models/DatasetUpdateSchemaRequest.js +55 -0
  78. package/dist/models/Default.d.ts +26 -0
  79. package/dist/models/Default.js +38 -0
  80. package/dist/models/EmbeddingProvider.d.ts +27 -0
  81. package/dist/models/EmbeddingProvider.js +53 -0
  82. package/dist/models/EmbeddingResponse.d.ts +57 -0
  83. package/dist/models/EmbeddingResponse.js +67 -0
  84. package/dist/models/Entry.d.ts +130 -0
  85. package/dist/models/Entry.js +100 -0
  86. package/dist/models/EntryContentResponse.d.ts +40 -0
  87. package/dist/models/EntryContentResponse.js +54 -0
  88. package/dist/models/EntryCreateRequest.d.ts +58 -0
  89. package/dist/models/EntryCreateRequest.js +62 -0
  90. package/dist/models/EntryCreateResponse.d.ts +39 -0
  91. package/dist/models/EntryCreateResponse.js +53 -0
  92. package/dist/models/EntryManifest.d.ts +71 -0
  93. package/dist/models/EntryManifest.js +65 -0
  94. package/dist/models/EntryPreview.d.ts +56 -0
  95. package/dist/models/EntryPreview.js +54 -0
  96. package/dist/models/EntrySearchResponse.d.ts +47 -0
  97. package/dist/models/EntrySearchResponse.js +57 -0
  98. package/dist/models/EntrySearchResult.d.ts +65 -0
  99. package/dist/models/EntrySearchResult.js +69 -0
  100. package/dist/models/EntryStatus.d.ts +29 -0
  101. package/dist/models/EntryStatus.js +55 -0
  102. package/dist/models/EntryUpdateRequest.d.ts +53 -0
  103. package/dist/models/EntryUpdateRequest.js +55 -0
  104. package/dist/models/EntryWithContent.d.ts +132 -0
  105. package/dist/models/EntryWithContent.js +102 -0
  106. package/dist/models/FileMetadata.d.ts +62 -0
  107. package/dist/models/FileMetadata.js +64 -0
  108. package/dist/models/GenerateEmbeddingsRequest.d.ts +44 -0
  109. package/dist/models/GenerateEmbeddingsRequest.js +54 -0
  110. package/dist/models/HTTPValidationError.d.ts +33 -0
  111. package/dist/models/HTTPValidationError.js +49 -0
  112. package/dist/models/HealthResponse.d.ts +50 -0
  113. package/dist/models/HealthResponse.js +62 -0
  114. package/dist/models/KeywordSearchHit.d.ts +96 -0
  115. package/dist/models/KeywordSearchHit.js +82 -0
  116. package/dist/models/KeywordSearchRequest.d.ts +102 -0
  117. package/dist/models/KeywordSearchRequest.js +80 -0
  118. package/dist/models/KeywordSearchResponse.d.ts +47 -0
  119. package/dist/models/KeywordSearchResponse.js +57 -0
  120. package/dist/models/ModelInfo.d.ts +51 -0
  121. package/dist/models/ModelInfo.js +63 -0
  122. package/dist/models/OriginalManifest.d.ts +41 -0
  123. package/dist/models/OriginalManifest.js +51 -0
  124. package/dist/models/PipelineStepConfig.d.ts +80 -0
  125. package/dist/models/PipelineStepConfig.js +69 -0
  126. package/dist/models/PresetListResponse.d.ts +42 -0
  127. package/dist/models/PresetListResponse.js +54 -0
  128. package/dist/models/ProcessedManifest.d.ts +59 -0
  129. package/dist/models/ProcessedManifest.js +57 -0
  130. package/dist/models/ProcessingManifest.d.ts +39 -0
  131. package/dist/models/ProcessingManifest.js +51 -0
  132. package/dist/models/RetryFailedWebhooksResponse.d.ts +44 -0
  133. package/dist/models/RetryFailedWebhooksResponse.js +58 -0
  134. package/dist/models/SaveProcessedContentRequest.d.ts +42 -0
  135. package/dist/models/SaveProcessedContentRequest.js +52 -0
  136. package/dist/models/SaveProcessedContentResponse.d.ts +45 -0
  137. package/dist/models/SaveProcessedContentResponse.js +57 -0
  138. package/dist/models/SearchSnippet.d.ts +57 -0
  139. package/dist/models/SearchSnippet.js +65 -0
  140. package/dist/models/SnippetContext.d.ts +68 -0
  141. package/dist/models/SnippetContext.js +75 -0
  142. package/dist/models/UploadFileResponse.d.ts +63 -0
  143. package/dist/models/UploadFileResponse.js +69 -0
  144. package/dist/models/ValidationError.d.ts +45 -0
  145. package/dist/models/ValidationError.js +59 -0
  146. package/dist/models/ValidationErrorLocInner.d.ts +26 -0
  147. package/dist/models/ValidationErrorLocInner.js +38 -0
  148. package/dist/models/VectorSearchRequest.d.ts +71 -0
  149. package/dist/models/VectorSearchRequest.js +60 -0
  150. package/dist/models/WebhookEndpointCreate.d.ts +32 -0
  151. package/dist/models/WebhookEndpointCreate.js +50 -0
  152. package/dist/models/WebhookEndpointResponse.d.ts +50 -0
  153. package/dist/models/WebhookEndpointResponse.js +62 -0
  154. package/dist/models/Weight.d.ts +101 -0
  155. package/dist/models/Weight.js +85 -0
  156. package/dist/models/WeightListResponse.d.ts +51 -0
  157. package/dist/models/WeightListResponse.js +59 -0
  158. package/dist/models/WeightResponse.d.ts +107 -0
  159. package/dist/models/WeightResponse.js +87 -0
  160. package/dist/models/WeightType.d.ts +26 -0
  161. package/dist/models/WeightType.js +52 -0
  162. package/dist/models/index.d.ts +66 -0
  163. package/dist/models/index.js +84 -0
  164. package/dist/runtime.d.ts +182 -0
  165. package/dist/runtime.js +334 -0
  166. package/package.json +38 -0
  167. package/src/apis/AdminApi.ts +140 -0
  168. package/src/apis/DatasetsApi.ts +461 -0
  169. package/src/apis/DefaultApi.ts +79 -0
  170. package/src/apis/EmbeddingsApi.ts +204 -0
  171. package/src/apis/EntriesApi.ts +969 -0
  172. package/src/apis/HealthApi.ts +161 -0
  173. package/src/apis/PipelinesApi.ts +432 -0
  174. package/src/apis/SearchApi.ts +234 -0
  175. package/src/apis/SyncApi.ts +125 -0
  176. package/src/apis/WebhooksApi.ts +191 -0
  177. package/src/apis/WeightsApi.ts +600 -0
  178. package/src/apis/index.ts +13 -0
  179. package/src/index.ts +5 -0
  180. package/src/models/ArtifactInputConfig.ts +86 -0
  181. package/src/models/BatchContentRequest.ts +66 -0
  182. package/src/models/BatchContentResponse.ts +74 -0
  183. package/src/models/BatchGetEntriesRequest.ts +98 -0
  184. package/src/models/BatchGetEntriesResponse.ts +83 -0
  185. package/src/models/ChunkSearchResponse.ts +91 -0
  186. package/src/models/ChunkSearchResult.ts +91 -0
  187. package/src/models/CollectionInfo.ts +93 -0
  188. package/src/models/ComponentArtifact.ts +84 -0
  189. package/src/models/ComponentListResponse.ts +93 -0
  190. package/src/models/ComponentMetadata.ts +158 -0
  191. package/src/models/ComponentParameter.ts +93 -0
  192. package/src/models/CreateCollectionRequest.ts +82 -0
  193. package/src/models/Dataset.ts +200 -0
  194. package/src/models/DatasetCreateRequest.ts +119 -0
  195. package/src/models/DatasetListResponse.ts +99 -0
  196. package/src/models/DatasetPipelineConfigInput.ts +112 -0
  197. package/src/models/DatasetPipelineConfigOutput.ts +112 -0
  198. package/src/models/DatasetResponse.ts +212 -0
  199. package/src/models/DatasetSchemaDefinition.ts +132 -0
  200. package/src/models/DatasetSchemaOriginal.ts +81 -0
  201. package/src/models/DatasetSchemaProcessed.ts +81 -0
  202. package/src/models/DatasetSchemaProcessing.ts +73 -0
  203. package/src/models/DatasetType.ts +55 -0
  204. package/src/models/DatasetUpdateSchemaRequest.ts +83 -0
  205. package/src/models/Default.ts +46 -0
  206. package/src/models/EmbeddingProvider.ts +55 -0
  207. package/src/models/EmbeddingResponse.ts +112 -0
  208. package/src/models/Entry.ts +218 -0
  209. package/src/models/EntryContentResponse.ts +75 -0
  210. package/src/models/EntryCreateRequest.ts +100 -0
  211. package/src/models/EntryCreateResponse.ts +82 -0
  212. package/src/models/EntryManifest.ts +135 -0
  213. package/src/models/EntryPreview.ts +89 -0
  214. package/src/models/EntrySearchResponse.ts +91 -0
  215. package/src/models/EntrySearchResult.ts +118 -0
  216. package/src/models/EntryStatus.ts +57 -0
  217. package/src/models/EntryUpdateRequest.ts +99 -0
  218. package/src/models/EntryWithContent.ts +220 -0
  219. package/src/models/FileMetadata.ts +108 -0
  220. package/src/models/GenerateEmbeddingsRequest.ts +82 -0
  221. package/src/models/HTTPValidationError.ts +73 -0
  222. package/src/models/HealthResponse.ts +93 -0
  223. package/src/models/KeywordSearchHit.ts +166 -0
  224. package/src/models/KeywordSearchRequest.ts +159 -0
  225. package/src/models/KeywordSearchResponse.ts +91 -0
  226. package/src/models/ModelInfo.ts +103 -0
  227. package/src/models/OriginalManifest.ts +81 -0
  228. package/src/models/PipelineStepConfig.ts +135 -0
  229. package/src/models/PresetListResponse.ts +77 -0
  230. package/src/models/ProcessedManifest.ts +105 -0
  231. package/src/models/ProcessingManifest.ts +81 -0
  232. package/src/models/RetryFailedWebhooksResponse.ts +84 -0
  233. package/src/models/SaveProcessedContentRequest.ts +74 -0
  234. package/src/models/SaveProcessedContentResponse.ts +91 -0
  235. package/src/models/SearchSnippet.ts +109 -0
  236. package/src/models/SnippetContext.ts +113 -0
  237. package/src/models/UploadFileResponse.ts +118 -0
  238. package/src/models/ValidationError.ts +92 -0
  239. package/src/models/ValidationErrorLocInner.ts +46 -0
  240. package/src/models/VectorSearchRequest.ts +116 -0
  241. package/src/models/WebhookEndpointCreate.ts +66 -0
  242. package/src/models/WebhookEndpointResponse.ts +93 -0
  243. package/src/models/Weight.ts +170 -0
  244. package/src/models/WeightListResponse.ts +99 -0
  245. package/src/models/WeightResponse.ts +178 -0
  246. package/src/models/WeightType.ts +54 -0
  247. package/src/models/index.ts +68 -0
  248. package/src/runtime.ts +431 -0
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Client Data API
6
+ * Client Cluster Data API - Manifest-based storage service
7
+ *
8
+ * The version of the OpenAPI document: 1.0.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.instanceOfEntrySearchResult = instanceOfEntrySearchResult;
17
+ exports.EntrySearchResultFromJSON = EntrySearchResultFromJSON;
18
+ exports.EntrySearchResultFromJSONTyped = EntrySearchResultFromJSONTyped;
19
+ exports.EntrySearchResultToJSON = EntrySearchResultToJSON;
20
+ exports.EntrySearchResultToJSONTyped = EntrySearchResultToJSONTyped;
21
+ const ChunkSearchResult_1 = require("./ChunkSearchResult");
22
+ /**
23
+ * Check if a given object implements the EntrySearchResult interface.
24
+ */
25
+ function instanceOfEntrySearchResult(value) {
26
+ if (!('entryId' in value) || value['entryId'] === undefined)
27
+ return false;
28
+ if (!('datasetId' in value) || value['datasetId'] === undefined)
29
+ return false;
30
+ if (!('name' in value) || value['name'] === undefined)
31
+ return false;
32
+ if (!('score' in value) || value['score'] === undefined)
33
+ return false;
34
+ if (!('matchingChunks' in value) || value['matchingChunks'] === undefined)
35
+ return false;
36
+ return true;
37
+ }
38
+ function EntrySearchResultFromJSON(json) {
39
+ return EntrySearchResultFromJSONTyped(json, false);
40
+ }
41
+ function EntrySearchResultFromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ 'entryId': json['entry_id'],
47
+ 'datasetId': json['dataset_id'],
48
+ 'name': json['name'],
49
+ 'score': json['score'],
50
+ 'matchingChunks': (json['matching_chunks'].map(ChunkSearchResult_1.ChunkSearchResultFromJSON)),
51
+ 'content': json['content'] == null ? undefined : json['content'],
52
+ };
53
+ }
54
+ function EntrySearchResultToJSON(json) {
55
+ return EntrySearchResultToJSONTyped(json, false);
56
+ }
57
+ function EntrySearchResultToJSONTyped(value, ignoreDiscriminator = false) {
58
+ if (value == null) {
59
+ return value;
60
+ }
61
+ return {
62
+ 'entry_id': value['entryId'],
63
+ 'dataset_id': value['datasetId'],
64
+ 'name': value['name'],
65
+ 'score': value['score'],
66
+ 'matching_chunks': (value['matchingChunks'].map(ChunkSearchResult_1.ChunkSearchResultToJSON)),
67
+ 'content': value['content'],
68
+ };
69
+ }
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Client Data API
3
+ * Client Cluster Data API - Manifest-based storage service
4
+ *
5
+ * The version of the OpenAPI document: 1.0.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
+ * Entry processing status (aligned with backend database constraint)
14
+ * @export
15
+ */
16
+ export declare const EntryStatus: {
17
+ readonly Pending: "pending";
18
+ readonly Uploading: "uploading";
19
+ readonly Uploaded: "uploaded";
20
+ readonly Processing: "processing";
21
+ readonly Processed: "processed";
22
+ readonly Error: "error";
23
+ };
24
+ export type EntryStatus = typeof EntryStatus[keyof typeof EntryStatus];
25
+ export declare function instanceOfEntryStatus(value: any): boolean;
26
+ export declare function EntryStatusFromJSON(json: any): EntryStatus;
27
+ export declare function EntryStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): EntryStatus;
28
+ export declare function EntryStatusToJSON(value?: EntryStatus | null): any;
29
+ export declare function EntryStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): EntryStatus;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Client Data API
6
+ * Client Cluster Data API - Manifest-based storage service
7
+ *
8
+ * The version of the OpenAPI document: 1.0.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.EntryStatus = void 0;
17
+ exports.instanceOfEntryStatus = instanceOfEntryStatus;
18
+ exports.EntryStatusFromJSON = EntryStatusFromJSON;
19
+ exports.EntryStatusFromJSONTyped = EntryStatusFromJSONTyped;
20
+ exports.EntryStatusToJSON = EntryStatusToJSON;
21
+ exports.EntryStatusToJSONTyped = EntryStatusToJSONTyped;
22
+ /**
23
+ * Entry processing status (aligned with backend database constraint)
24
+ * @export
25
+ */
26
+ exports.EntryStatus = {
27
+ Pending: 'pending',
28
+ Uploading: 'uploading',
29
+ Uploaded: 'uploaded',
30
+ Processing: 'processing',
31
+ Processed: 'processed',
32
+ Error: 'error'
33
+ };
34
+ function instanceOfEntryStatus(value) {
35
+ for (const key in exports.EntryStatus) {
36
+ if (Object.prototype.hasOwnProperty.call(exports.EntryStatus, key)) {
37
+ if (exports.EntryStatus[key] === value) {
38
+ return true;
39
+ }
40
+ }
41
+ }
42
+ return false;
43
+ }
44
+ function EntryStatusFromJSON(json) {
45
+ return EntryStatusFromJSONTyped(json, false);
46
+ }
47
+ function EntryStatusFromJSONTyped(json, ignoreDiscriminator) {
48
+ return json;
49
+ }
50
+ function EntryStatusToJSON(value) {
51
+ return value;
52
+ }
53
+ function EntryStatusToJSONTyped(value, ignoreDiscriminator) {
54
+ return value;
55
+ }
@@ -0,0 +1,53 @@
1
+ /**
2
+ * Client Data API
3
+ * Client Cluster Data API - Manifest-based storage service
4
+ *
5
+ * The version of the OpenAPI document: 1.0.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 { EntryStatus } from './EntryStatus';
13
+ /**
14
+ * Request to update entry metadata.
15
+ * @export
16
+ * @interface EntryUpdateRequest
17
+ */
18
+ export interface EntryUpdateRequest {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof EntryUpdateRequest
23
+ */
24
+ name?: string | null;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof EntryUpdateRequest
29
+ */
30
+ description?: string | null;
31
+ /**
32
+ *
33
+ * @type {EntryStatus}
34
+ * @memberof EntryUpdateRequest
35
+ */
36
+ status?: EntryStatus | null;
37
+ /**
38
+ *
39
+ * @type {{ [key: string]: any; }}
40
+ * @memberof EntryUpdateRequest
41
+ */
42
+ metadata?: {
43
+ [key: string]: any;
44
+ } | null;
45
+ }
46
+ /**
47
+ * Check if a given object implements the EntryUpdateRequest interface.
48
+ */
49
+ export declare function instanceOfEntryUpdateRequest(value: object): value is EntryUpdateRequest;
50
+ export declare function EntryUpdateRequestFromJSON(json: any): EntryUpdateRequest;
51
+ export declare function EntryUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): EntryUpdateRequest;
52
+ export declare function EntryUpdateRequestToJSON(json: any): EntryUpdateRequest;
53
+ export declare function EntryUpdateRequestToJSONTyped(value?: EntryUpdateRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Client Data API
6
+ * Client Cluster Data API - Manifest-based storage service
7
+ *
8
+ * The version of the OpenAPI document: 1.0.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.instanceOfEntryUpdateRequest = instanceOfEntryUpdateRequest;
17
+ exports.EntryUpdateRequestFromJSON = EntryUpdateRequestFromJSON;
18
+ exports.EntryUpdateRequestFromJSONTyped = EntryUpdateRequestFromJSONTyped;
19
+ exports.EntryUpdateRequestToJSON = EntryUpdateRequestToJSON;
20
+ exports.EntryUpdateRequestToJSONTyped = EntryUpdateRequestToJSONTyped;
21
+ const EntryStatus_1 = require("./EntryStatus");
22
+ /**
23
+ * Check if a given object implements the EntryUpdateRequest interface.
24
+ */
25
+ function instanceOfEntryUpdateRequest(value) {
26
+ return true;
27
+ }
28
+ function EntryUpdateRequestFromJSON(json) {
29
+ return EntryUpdateRequestFromJSONTyped(json, false);
30
+ }
31
+ function EntryUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'name': json['name'] == null ? undefined : json['name'],
37
+ 'description': json['description'] == null ? undefined : json['description'],
38
+ 'status': json['status'] == null ? undefined : (0, EntryStatus_1.EntryStatusFromJSON)(json['status']),
39
+ 'metadata': json['metadata'] == null ? undefined : json['metadata'],
40
+ };
41
+ }
42
+ function EntryUpdateRequestToJSON(json) {
43
+ return EntryUpdateRequestToJSONTyped(json, false);
44
+ }
45
+ function EntryUpdateRequestToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'name': value['name'],
51
+ 'description': value['description'],
52
+ 'status': (0, EntryStatus_1.EntryStatusToJSON)(value['status']),
53
+ 'metadata': value['metadata'],
54
+ };
55
+ }
@@ -0,0 +1,132 @@
1
+ /**
2
+ * Client Data API
3
+ * Client Cluster Data API - Manifest-based storage service
4
+ *
5
+ * The version of the OpenAPI document: 1.0.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 { EntryManifest } from './EntryManifest';
13
+ import type { EntryStatus } from './EntryStatus';
14
+ /**
15
+ * Entry with processed content
16
+ * @export
17
+ * @interface EntryWithContent
18
+ */
19
+ export interface EntryWithContent {
20
+ /**
21
+ * Entry name
22
+ * @type {string}
23
+ * @memberof EntryWithContent
24
+ */
25
+ name: string;
26
+ /**
27
+ * URL-friendly slug
28
+ * @type {string}
29
+ * @memberof EntryWithContent
30
+ */
31
+ slug: string;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof EntryWithContent
36
+ */
37
+ description?: string | null;
38
+ /**
39
+ * Current processing status
40
+ * @type {EntryStatus}
41
+ * @memberof EntryWithContent
42
+ */
43
+ status: EntryStatus;
44
+ /**
45
+ * MIME type of primary file
46
+ * @type {string}
47
+ * @memberof EntryWithContent
48
+ */
49
+ mimeType: string;
50
+ /**
51
+ * Entry ID
52
+ * @type {number}
53
+ * @memberof EntryWithContent
54
+ */
55
+ id: number;
56
+ /**
57
+ * Entry manifest with all file locations and metadata
58
+ * @type {EntryManifest}
59
+ * @memberof EntryWithContent
60
+ */
61
+ manifest: EntryManifest;
62
+ /**
63
+ * Base storage path (e.g., 'datasets/123/entries/456')
64
+ * @type {string}
65
+ * @memberof EntryWithContent
66
+ */
67
+ storagePath: string;
68
+ /**
69
+ *
70
+ * @type {string}
71
+ * @memberof EntryWithContent
72
+ */
73
+ primaryFileKey?: string | null;
74
+ /**
75
+ *
76
+ * @type {string}
77
+ * @memberof EntryWithContent
78
+ */
79
+ processedContentKey?: string | null;
80
+ /**
81
+ *
82
+ * @type {number}
83
+ * @memberof EntryWithContent
84
+ */
85
+ fileSizeBytes?: number | null;
86
+ /**
87
+ * Parent dataset ID
88
+ * @type {number}
89
+ * @memberof EntryWithContent
90
+ */
91
+ datasetId: number;
92
+ /**
93
+ * Creation timestamp
94
+ * @type {Date}
95
+ * @memberof EntryWithContent
96
+ */
97
+ createdAt: Date;
98
+ /**
99
+ * Last update timestamp
100
+ * @type {Date}
101
+ * @memberof EntryWithContent
102
+ */
103
+ updatedAt: Date;
104
+ /**
105
+ *
106
+ * @type {Date}
107
+ * @memberof EntryWithContent
108
+ */
109
+ processingCompletedAt?: Date | null;
110
+ /**
111
+ * Version number for optimistic locking
112
+ * @type {number}
113
+ * @memberof EntryWithContent
114
+ */
115
+ version?: number;
116
+ /**
117
+ *
118
+ * @type {{ [key: string]: any; }}
119
+ * @memberof EntryWithContent
120
+ */
121
+ content?: {
122
+ [key: string]: any;
123
+ } | null;
124
+ }
125
+ /**
126
+ * Check if a given object implements the EntryWithContent interface.
127
+ */
128
+ export declare function instanceOfEntryWithContent(value: object): value is EntryWithContent;
129
+ export declare function EntryWithContentFromJSON(json: any): EntryWithContent;
130
+ export declare function EntryWithContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): EntryWithContent;
131
+ export declare function EntryWithContentToJSON(json: any): EntryWithContent;
132
+ export declare function EntryWithContentToJSONTyped(value?: EntryWithContent | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,102 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Client Data API
6
+ * Client Cluster Data API - Manifest-based storage service
7
+ *
8
+ * The version of the OpenAPI document: 1.0.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.instanceOfEntryWithContent = instanceOfEntryWithContent;
17
+ exports.EntryWithContentFromJSON = EntryWithContentFromJSON;
18
+ exports.EntryWithContentFromJSONTyped = EntryWithContentFromJSONTyped;
19
+ exports.EntryWithContentToJSON = EntryWithContentToJSON;
20
+ exports.EntryWithContentToJSONTyped = EntryWithContentToJSONTyped;
21
+ const EntryManifest_1 = require("./EntryManifest");
22
+ const EntryStatus_1 = require("./EntryStatus");
23
+ /**
24
+ * Check if a given object implements the EntryWithContent interface.
25
+ */
26
+ function instanceOfEntryWithContent(value) {
27
+ if (!('name' in value) || value['name'] === undefined)
28
+ return false;
29
+ if (!('slug' in value) || value['slug'] === undefined)
30
+ return false;
31
+ if (!('status' in value) || value['status'] === undefined)
32
+ return false;
33
+ if (!('mimeType' in value) || value['mimeType'] === undefined)
34
+ return false;
35
+ if (!('id' in value) || value['id'] === undefined)
36
+ return false;
37
+ if (!('manifest' in value) || value['manifest'] === undefined)
38
+ return false;
39
+ if (!('storagePath' in value) || value['storagePath'] === undefined)
40
+ return false;
41
+ if (!('datasetId' in value) || value['datasetId'] === undefined)
42
+ return false;
43
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
44
+ return false;
45
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
46
+ return false;
47
+ return true;
48
+ }
49
+ function EntryWithContentFromJSON(json) {
50
+ return EntryWithContentFromJSONTyped(json, false);
51
+ }
52
+ function EntryWithContentFromJSONTyped(json, ignoreDiscriminator) {
53
+ if (json == null) {
54
+ return json;
55
+ }
56
+ return {
57
+ 'name': json['name'],
58
+ 'slug': json['slug'],
59
+ 'description': json['description'] == null ? undefined : json['description'],
60
+ 'status': (0, EntryStatus_1.EntryStatusFromJSON)(json['status']),
61
+ 'mimeType': json['mime_type'],
62
+ 'id': json['id'],
63
+ 'manifest': (0, EntryManifest_1.EntryManifestFromJSON)(json['manifest']),
64
+ 'storagePath': json['storage_path'],
65
+ 'primaryFileKey': json['primary_file_key'] == null ? undefined : json['primary_file_key'],
66
+ 'processedContentKey': json['processed_content_key'] == null ? undefined : json['processed_content_key'],
67
+ 'fileSizeBytes': json['file_size_bytes'] == null ? undefined : json['file_size_bytes'],
68
+ 'datasetId': json['dataset_id'],
69
+ 'createdAt': (new Date(json['created_at'])),
70
+ 'updatedAt': (new Date(json['updated_at'])),
71
+ 'processingCompletedAt': json['processing_completed_at'] == null ? undefined : (new Date(json['processing_completed_at'])),
72
+ 'version': json['version'] == null ? undefined : json['version'],
73
+ 'content': json['content'] == null ? undefined : json['content'],
74
+ };
75
+ }
76
+ function EntryWithContentToJSON(json) {
77
+ return EntryWithContentToJSONTyped(json, false);
78
+ }
79
+ function EntryWithContentToJSONTyped(value, ignoreDiscriminator = false) {
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+ return {
84
+ 'name': value['name'],
85
+ 'slug': value['slug'],
86
+ 'description': value['description'],
87
+ 'status': (0, EntryStatus_1.EntryStatusToJSON)(value['status']),
88
+ 'mime_type': value['mimeType'],
89
+ 'id': value['id'],
90
+ 'manifest': (0, EntryManifest_1.EntryManifestToJSON)(value['manifest']),
91
+ 'storage_path': value['storagePath'],
92
+ 'primary_file_key': value['primaryFileKey'],
93
+ 'processed_content_key': value['processedContentKey'],
94
+ 'file_size_bytes': value['fileSizeBytes'],
95
+ 'dataset_id': value['datasetId'],
96
+ 'created_at': ((value['createdAt']).toISOString()),
97
+ 'updated_at': ((value['updatedAt']).toISOString()),
98
+ 'processing_completed_at': value['processingCompletedAt'] == null ? undefined : (value['processingCompletedAt'].toISOString()),
99
+ 'version': value['version'],
100
+ 'content': value['content'],
101
+ };
102
+ }
@@ -0,0 +1,62 @@
1
+ /**
2
+ * Client Data API
3
+ * Client Cluster Data API - Manifest-based storage service
4
+ *
5
+ * The version of the OpenAPI document: 1.0.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
+ * Metadata for files in manifest
14
+ * @export
15
+ * @interface FileMetadata
16
+ */
17
+ export interface FileMetadata {
18
+ /**
19
+ * S3 key for the file
20
+ * @type {string}
21
+ * @memberof FileMetadata
22
+ */
23
+ key: string;
24
+ /**
25
+ * File size in bytes
26
+ * @type {number}
27
+ * @memberof FileMetadata
28
+ */
29
+ size: number;
30
+ /**
31
+ * MIME type of the file
32
+ * @type {string}
33
+ * @memberof FileMetadata
34
+ */
35
+ mimeType: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof FileMetadata
40
+ */
41
+ hash?: string | null;
42
+ /**
43
+ *
44
+ * @type {Date}
45
+ * @memberof FileMetadata
46
+ */
47
+ createdAt?: Date | null;
48
+ /**
49
+ *
50
+ * @type {Date}
51
+ * @memberof FileMetadata
52
+ */
53
+ expiresAt?: Date | null;
54
+ }
55
+ /**
56
+ * Check if a given object implements the FileMetadata interface.
57
+ */
58
+ export declare function instanceOfFileMetadata(value: object): value is FileMetadata;
59
+ export declare function FileMetadataFromJSON(json: any): FileMetadata;
60
+ export declare function FileMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): FileMetadata;
61
+ export declare function FileMetadataToJSON(json: any): FileMetadata;
62
+ export declare function FileMetadataToJSONTyped(value?: FileMetadata | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Client Data API
6
+ * Client Cluster Data API - Manifest-based storage service
7
+ *
8
+ * The version of the OpenAPI document: 1.0.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.instanceOfFileMetadata = instanceOfFileMetadata;
17
+ exports.FileMetadataFromJSON = FileMetadataFromJSON;
18
+ exports.FileMetadataFromJSONTyped = FileMetadataFromJSONTyped;
19
+ exports.FileMetadataToJSON = FileMetadataToJSON;
20
+ exports.FileMetadataToJSONTyped = FileMetadataToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the FileMetadata interface.
23
+ */
24
+ function instanceOfFileMetadata(value) {
25
+ if (!('key' in value) || value['key'] === undefined)
26
+ return false;
27
+ if (!('size' in value) || value['size'] === undefined)
28
+ return false;
29
+ if (!('mimeType' in value) || value['mimeType'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function FileMetadataFromJSON(json) {
34
+ return FileMetadataFromJSONTyped(json, false);
35
+ }
36
+ function FileMetadataFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'key': json['key'],
42
+ 'size': json['size'],
43
+ 'mimeType': json['mime_type'],
44
+ 'hash': json['hash'] == null ? undefined : json['hash'],
45
+ 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
46
+ 'expiresAt': json['expires_at'] == null ? undefined : (new Date(json['expires_at'])),
47
+ };
48
+ }
49
+ function FileMetadataToJSON(json) {
50
+ return FileMetadataToJSONTyped(json, false);
51
+ }
52
+ function FileMetadataToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'key': value['key'],
58
+ 'size': value['size'],
59
+ 'mime_type': value['mimeType'],
60
+ 'hash': value['hash'],
61
+ 'created_at': value['createdAt'] == null ? undefined : (value['createdAt'].toISOString()),
62
+ 'expires_at': value['expiresAt'] == null ? undefined : (value['expiresAt'].toISOString()),
63
+ };
64
+ }
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Client Data API
3
+ * Client Cluster Data API - Manifest-based storage service
4
+ *
5
+ * The version of the OpenAPI document: 1.0.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
+ * Request model for generating embeddings
14
+ * @export
15
+ * @interface GenerateEmbeddingsRequest
16
+ */
17
+ export interface GenerateEmbeddingsRequest {
18
+ /**
19
+ * List of texts to generate embeddings for
20
+ * @type {Array<string>}
21
+ * @memberof GenerateEmbeddingsRequest
22
+ */
23
+ texts: Array<string>;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof GenerateEmbeddingsRequest
28
+ */
29
+ model?: string | null;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof GenerateEmbeddingsRequest
34
+ */
35
+ provider?: string | null;
36
+ }
37
+ /**
38
+ * Check if a given object implements the GenerateEmbeddingsRequest interface.
39
+ */
40
+ export declare function instanceOfGenerateEmbeddingsRequest(value: object): value is GenerateEmbeddingsRequest;
41
+ export declare function GenerateEmbeddingsRequestFromJSON(json: any): GenerateEmbeddingsRequest;
42
+ export declare function GenerateEmbeddingsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GenerateEmbeddingsRequest;
43
+ export declare function GenerateEmbeddingsRequestToJSON(json: any): GenerateEmbeddingsRequest;
44
+ export declare function GenerateEmbeddingsRequestToJSONTyped(value?: GenerateEmbeddingsRequest | null, ignoreDiscriminator?: boolean): any;