@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,83 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Client Data API
5
+ * Client Cluster Data API - Manifest-based storage service
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { DatasetSchemaDefinition } from './DatasetSchemaDefinition';
17
+ import {
18
+ DatasetSchemaDefinitionFromJSON,
19
+ DatasetSchemaDefinitionFromJSONTyped,
20
+ DatasetSchemaDefinitionToJSON,
21
+ DatasetSchemaDefinitionToJSONTyped,
22
+ } from './DatasetSchemaDefinition';
23
+
24
+ /**
25
+ * Request to update dataset schema
26
+ * @export
27
+ * @interface DatasetUpdateSchemaRequest
28
+ */
29
+ export interface DatasetUpdateSchemaRequest {
30
+ /**
31
+ * New schema definition
32
+ * @type {DatasetSchemaDefinition}
33
+ * @memberof DatasetUpdateSchemaRequest
34
+ */
35
+ schemaDefinition: DatasetSchemaDefinition;
36
+ /**
37
+ * New version string (e.g., 'v4')
38
+ * @type {string}
39
+ * @memberof DatasetUpdateSchemaRequest
40
+ */
41
+ newVersion: string;
42
+ }
43
+
44
+ /**
45
+ * Check if a given object implements the DatasetUpdateSchemaRequest interface.
46
+ */
47
+ export function instanceOfDatasetUpdateSchemaRequest(value: object): value is DatasetUpdateSchemaRequest {
48
+ if (!('schemaDefinition' in value) || value['schemaDefinition'] === undefined) return false;
49
+ if (!('newVersion' in value) || value['newVersion'] === undefined) return false;
50
+ return true;
51
+ }
52
+
53
+ export function DatasetUpdateSchemaRequestFromJSON(json: any): DatasetUpdateSchemaRequest {
54
+ return DatasetUpdateSchemaRequestFromJSONTyped(json, false);
55
+ }
56
+
57
+ export function DatasetUpdateSchemaRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DatasetUpdateSchemaRequest {
58
+ if (json == null) {
59
+ return json;
60
+ }
61
+ return {
62
+
63
+ 'schemaDefinition': DatasetSchemaDefinitionFromJSON(json['schema_definition']),
64
+ 'newVersion': json['new_version'],
65
+ };
66
+ }
67
+
68
+ export function DatasetUpdateSchemaRequestToJSON(json: any): DatasetUpdateSchemaRequest {
69
+ return DatasetUpdateSchemaRequestToJSONTyped(json, false);
70
+ }
71
+
72
+ export function DatasetUpdateSchemaRequestToJSONTyped(value?: DatasetUpdateSchemaRequest | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'schema_definition': DatasetSchemaDefinitionToJSON(value['schemaDefinition']),
80
+ 'new_version': value['newVersion'],
81
+ };
82
+ }
83
+
@@ -0,0 +1,46 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Client Data API
5
+ * Client Cluster Data API - Manifest-based storage service
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ * Default value for the parameter
18
+ * @export
19
+ * @interface Default
20
+ */
21
+ export interface Default {
22
+ }
23
+
24
+ /**
25
+ * Check if a given object implements the Default interface.
26
+ */
27
+ export function instanceOfDefault(value: object): value is Default {
28
+ return true;
29
+ }
30
+
31
+ export function DefaultFromJSON(json: any): Default {
32
+ return DefaultFromJSONTyped(json, false);
33
+ }
34
+
35
+ export function DefaultFromJSONTyped(json: any, ignoreDiscriminator: boolean): Default {
36
+ return json;
37
+ }
38
+
39
+ export function DefaultToJSON(json: any): Default {
40
+ return DefaultToJSONTyped(json, false);
41
+ }
42
+
43
+ export function DefaultToJSONTyped(value?: Default | null, ignoreDiscriminator: boolean = false): any {
44
+ return value;
45
+ }
46
+
@@ -0,0 +1,55 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Client Data API
5
+ * Client Cluster Data API - Manifest-based storage service
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ /**
17
+ * Supported embedding providers
18
+ * @export
19
+ */
20
+ export const EmbeddingProvider = {
21
+ Openai: 'openai',
22
+ Runpod: 'runpod',
23
+ Mistral: 'mistral',
24
+ Google: 'google'
25
+ } as const;
26
+ export type EmbeddingProvider = typeof EmbeddingProvider[keyof typeof EmbeddingProvider];
27
+
28
+
29
+ export function instanceOfEmbeddingProvider(value: any): boolean {
30
+ for (const key in EmbeddingProvider) {
31
+ if (Object.prototype.hasOwnProperty.call(EmbeddingProvider, key)) {
32
+ if (EmbeddingProvider[key as keyof typeof EmbeddingProvider] === value) {
33
+ return true;
34
+ }
35
+ }
36
+ }
37
+ return false;
38
+ }
39
+
40
+ export function EmbeddingProviderFromJSON(json: any): EmbeddingProvider {
41
+ return EmbeddingProviderFromJSONTyped(json, false);
42
+ }
43
+
44
+ export function EmbeddingProviderFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmbeddingProvider {
45
+ return json as EmbeddingProvider;
46
+ }
47
+
48
+ export function EmbeddingProviderToJSON(value?: EmbeddingProvider | null): any {
49
+ return value as any;
50
+ }
51
+
52
+ export function EmbeddingProviderToJSONTyped(value: any, ignoreDiscriminator: boolean): EmbeddingProvider {
53
+ return value as EmbeddingProvider;
54
+ }
55
+
@@ -0,0 +1,112 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Client Data API
5
+ * Client Cluster Data API - Manifest-based storage service
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { EmbeddingProvider } from './EmbeddingProvider';
17
+ import {
18
+ EmbeddingProviderFromJSON,
19
+ EmbeddingProviderFromJSONTyped,
20
+ EmbeddingProviderToJSON,
21
+ EmbeddingProviderToJSONTyped,
22
+ } from './EmbeddingProvider';
23
+
24
+ /**
25
+ * Response model for embedding generation
26
+ * @export
27
+ * @interface EmbeddingResponse
28
+ */
29
+ export interface EmbeddingResponse {
30
+ /**
31
+ * List of embedding vectors
32
+ * @type {Array<Array<number>>}
33
+ * @memberof EmbeddingResponse
34
+ */
35
+ embeddings: Array<Array<number>>;
36
+ /**
37
+ * Total tokens processed
38
+ * @type {number}
39
+ * @memberof EmbeddingResponse
40
+ */
41
+ totalTokens: number;
42
+ /**
43
+ * Provider used
44
+ * @type {EmbeddingProvider}
45
+ * @memberof EmbeddingResponse
46
+ */
47
+ provider: EmbeddingProvider;
48
+ /**
49
+ * Model used
50
+ * @type {string}
51
+ * @memberof EmbeddingResponse
52
+ */
53
+ model: string;
54
+ /**
55
+ * Embedding vector dimensions
56
+ * @type {number}
57
+ * @memberof EmbeddingResponse
58
+ */
59
+ dimensions: number;
60
+ }
61
+
62
+
63
+
64
+ /**
65
+ * Check if a given object implements the EmbeddingResponse interface.
66
+ */
67
+ export function instanceOfEmbeddingResponse(value: object): value is EmbeddingResponse {
68
+ if (!('embeddings' in value) || value['embeddings'] === undefined) return false;
69
+ if (!('totalTokens' in value) || value['totalTokens'] === undefined) return false;
70
+ if (!('provider' in value) || value['provider'] === undefined) return false;
71
+ if (!('model' in value) || value['model'] === undefined) return false;
72
+ if (!('dimensions' in value) || value['dimensions'] === undefined) return false;
73
+ return true;
74
+ }
75
+
76
+ export function EmbeddingResponseFromJSON(json: any): EmbeddingResponse {
77
+ return EmbeddingResponseFromJSONTyped(json, false);
78
+ }
79
+
80
+ export function EmbeddingResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmbeddingResponse {
81
+ if (json == null) {
82
+ return json;
83
+ }
84
+ return {
85
+
86
+ 'embeddings': json['embeddings'],
87
+ 'totalTokens': json['total_tokens'],
88
+ 'provider': EmbeddingProviderFromJSON(json['provider']),
89
+ 'model': json['model'],
90
+ 'dimensions': json['dimensions'],
91
+ };
92
+ }
93
+
94
+ export function EmbeddingResponseToJSON(json: any): EmbeddingResponse {
95
+ return EmbeddingResponseToJSONTyped(json, false);
96
+ }
97
+
98
+ export function EmbeddingResponseToJSONTyped(value?: EmbeddingResponse | null, ignoreDiscriminator: boolean = false): any {
99
+ if (value == null) {
100
+ return value;
101
+ }
102
+
103
+ return {
104
+
105
+ 'embeddings': value['embeddings'],
106
+ 'total_tokens': value['totalTokens'],
107
+ 'provider': EmbeddingProviderToJSON(value['provider']),
108
+ 'model': value['model'],
109
+ 'dimensions': value['dimensions'],
110
+ };
111
+ }
112
+
@@ -0,0 +1,218 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Client Data API
5
+ * Client Cluster Data API - Manifest-based storage service
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { EntryManifest } from './EntryManifest';
17
+ import {
18
+ EntryManifestFromJSON,
19
+ EntryManifestFromJSONTyped,
20
+ EntryManifestToJSON,
21
+ EntryManifestToJSONTyped,
22
+ } from './EntryManifest';
23
+ import type { EntryStatus } from './EntryStatus';
24
+ import {
25
+ EntryStatusFromJSON,
26
+ EntryStatusFromJSONTyped,
27
+ EntryStatusToJSON,
28
+ EntryStatusToJSONTyped,
29
+ } from './EntryStatus';
30
+
31
+ /**
32
+ * Entry schema - client cluster storage.
33
+ *
34
+ * Philosophy:
35
+ * - Manifest-based architecture ONLY
36
+ * - No legacy Parquet fields
37
+ * - All file locations tracked in manifest
38
+ * - Fast queries via denormalized fields
39
+ * @export
40
+ * @interface Entry
41
+ */
42
+ export interface Entry {
43
+ /**
44
+ * Entry name
45
+ * @type {string}
46
+ * @memberof Entry
47
+ */
48
+ name: string;
49
+ /**
50
+ * URL-friendly slug
51
+ * @type {string}
52
+ * @memberof Entry
53
+ */
54
+ slug: string;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof Entry
59
+ */
60
+ description?: string | null;
61
+ /**
62
+ * Current processing status
63
+ * @type {EntryStatus}
64
+ * @memberof Entry
65
+ */
66
+ status: EntryStatus;
67
+ /**
68
+ * MIME type of primary file
69
+ * @type {string}
70
+ * @memberof Entry
71
+ */
72
+ mimeType: string;
73
+ /**
74
+ * Entry ID
75
+ * @type {number}
76
+ * @memberof Entry
77
+ */
78
+ id: number;
79
+ /**
80
+ * Entry manifest with all file locations and metadata
81
+ * @type {EntryManifest}
82
+ * @memberof Entry
83
+ */
84
+ manifest: EntryManifest;
85
+ /**
86
+ * Base storage path (e.g., 'datasets/123/entries/456')
87
+ * @type {string}
88
+ * @memberof Entry
89
+ */
90
+ storagePath: string;
91
+ /**
92
+ *
93
+ * @type {string}
94
+ * @memberof Entry
95
+ */
96
+ primaryFileKey?: string | null;
97
+ /**
98
+ *
99
+ * @type {string}
100
+ * @memberof Entry
101
+ */
102
+ processedContentKey?: string | null;
103
+ /**
104
+ *
105
+ * @type {number}
106
+ * @memberof Entry
107
+ */
108
+ fileSizeBytes?: number | null;
109
+ /**
110
+ * Parent dataset ID
111
+ * @type {number}
112
+ * @memberof Entry
113
+ */
114
+ datasetId: number;
115
+ /**
116
+ * Creation timestamp
117
+ * @type {Date}
118
+ * @memberof Entry
119
+ */
120
+ createdAt: Date;
121
+ /**
122
+ * Last update timestamp
123
+ * @type {Date}
124
+ * @memberof Entry
125
+ */
126
+ updatedAt: Date;
127
+ /**
128
+ *
129
+ * @type {Date}
130
+ * @memberof Entry
131
+ */
132
+ processingCompletedAt?: Date | null;
133
+ /**
134
+ * Version number for optimistic locking
135
+ * @type {number}
136
+ * @memberof Entry
137
+ */
138
+ version?: number;
139
+ }
140
+
141
+
142
+
143
+ /**
144
+ * Check if a given object implements the Entry interface.
145
+ */
146
+ export function instanceOfEntry(value: object): value is Entry {
147
+ if (!('name' in value) || value['name'] === undefined) return false;
148
+ if (!('slug' in value) || value['slug'] === undefined) return false;
149
+ if (!('status' in value) || value['status'] === undefined) return false;
150
+ if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
151
+ if (!('id' in value) || value['id'] === undefined) return false;
152
+ if (!('manifest' in value) || value['manifest'] === undefined) return false;
153
+ if (!('storagePath' in value) || value['storagePath'] === undefined) return false;
154
+ if (!('datasetId' in value) || value['datasetId'] === undefined) return false;
155
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
156
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
157
+ return true;
158
+ }
159
+
160
+ export function EntryFromJSON(json: any): Entry {
161
+ return EntryFromJSONTyped(json, false);
162
+ }
163
+
164
+ export function EntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): Entry {
165
+ if (json == null) {
166
+ return json;
167
+ }
168
+ return {
169
+
170
+ 'name': json['name'],
171
+ 'slug': json['slug'],
172
+ 'description': json['description'] == null ? undefined : json['description'],
173
+ 'status': EntryStatusFromJSON(json['status']),
174
+ 'mimeType': json['mime_type'],
175
+ 'id': json['id'],
176
+ 'manifest': EntryManifestFromJSON(json['manifest']),
177
+ 'storagePath': json['storage_path'],
178
+ 'primaryFileKey': json['primary_file_key'] == null ? undefined : json['primary_file_key'],
179
+ 'processedContentKey': json['processed_content_key'] == null ? undefined : json['processed_content_key'],
180
+ 'fileSizeBytes': json['file_size_bytes'] == null ? undefined : json['file_size_bytes'],
181
+ 'datasetId': json['dataset_id'],
182
+ 'createdAt': (new Date(json['created_at'])),
183
+ 'updatedAt': (new Date(json['updated_at'])),
184
+ 'processingCompletedAt': json['processing_completed_at'] == null ? undefined : (new Date(json['processing_completed_at'])),
185
+ 'version': json['version'] == null ? undefined : json['version'],
186
+ };
187
+ }
188
+
189
+ export function EntryToJSON(json: any): Entry {
190
+ return EntryToJSONTyped(json, false);
191
+ }
192
+
193
+ export function EntryToJSONTyped(value?: Entry | null, ignoreDiscriminator: boolean = false): any {
194
+ if (value == null) {
195
+ return value;
196
+ }
197
+
198
+ return {
199
+
200
+ 'name': value['name'],
201
+ 'slug': value['slug'],
202
+ 'description': value['description'],
203
+ 'status': EntryStatusToJSON(value['status']),
204
+ 'mime_type': value['mimeType'],
205
+ 'id': value['id'],
206
+ 'manifest': EntryManifestToJSON(value['manifest']),
207
+ 'storage_path': value['storagePath'],
208
+ 'primary_file_key': value['primaryFileKey'],
209
+ 'processed_content_key': value['processedContentKey'],
210
+ 'file_size_bytes': value['fileSizeBytes'],
211
+ 'dataset_id': value['datasetId'],
212
+ 'created_at': ((value['createdAt']).toISOString()),
213
+ 'updated_at': ((value['updatedAt']).toISOString()),
214
+ 'processing_completed_at': value['processingCompletedAt'] == null ? undefined : ((value['processingCompletedAt'] as any).toISOString()),
215
+ 'version': value['version'],
216
+ };
217
+ }
218
+
@@ -0,0 +1,75 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Client Data API
5
+ * Client Cluster Data API - Manifest-based storage service
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ * Response for processed content
18
+ * @export
19
+ * @interface EntryContentResponse
20
+ */
21
+ export interface EntryContentResponse {
22
+ /**
23
+ * Entry ID
24
+ * @type {number}
25
+ * @memberof EntryContentResponse
26
+ */
27
+ entryId: number;
28
+ /**
29
+ * Processed content
30
+ * @type {{ [key: string]: any; }}
31
+ * @memberof EntryContentResponse
32
+ */
33
+ content: { [key: string]: any; };
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the EntryContentResponse interface.
38
+ */
39
+ export function instanceOfEntryContentResponse(value: object): value is EntryContentResponse {
40
+ if (!('entryId' in value) || value['entryId'] === undefined) return false;
41
+ if (!('content' in value) || value['content'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function EntryContentResponseFromJSON(json: any): EntryContentResponse {
46
+ return EntryContentResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function EntryContentResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): EntryContentResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'entryId': json['entry_id'],
56
+ 'content': json['content'],
57
+ };
58
+ }
59
+
60
+ export function EntryContentResponseToJSON(json: any): EntryContentResponse {
61
+ return EntryContentResponseToJSONTyped(json, false);
62
+ }
63
+
64
+ export function EntryContentResponseToJSONTyped(value?: EntryContentResponse | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'entry_id': value['entryId'],
72
+ 'content': value['content'],
73
+ };
74
+ }
75
+
@@ -0,0 +1,100 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Client Data API
5
+ * Client Cluster Data API - Manifest-based storage service
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ * Request to create a new entry.
18
+ * @export
19
+ * @interface EntryCreateRequest
20
+ */
21
+ export interface EntryCreateRequest {
22
+ /**
23
+ * Parent dataset ID
24
+ * @type {number}
25
+ * @memberof EntryCreateRequest
26
+ */
27
+ datasetId: number;
28
+ /**
29
+ * Entry name
30
+ * @type {string}
31
+ * @memberof EntryCreateRequest
32
+ */
33
+ name: string;
34
+ /**
35
+ * URL-friendly slug
36
+ * @type {string}
37
+ * @memberof EntryCreateRequest
38
+ */
39
+ slug: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof EntryCreateRequest
44
+ */
45
+ description?: string | null;
46
+ /**
47
+ *
48
+ * @type {{ [key: string]: any; }}
49
+ * @memberof EntryCreateRequest
50
+ */
51
+ metadata?: { [key: string]: any; } | null;
52
+ }
53
+
54
+ /**
55
+ * Check if a given object implements the EntryCreateRequest interface.
56
+ */
57
+ export function instanceOfEntryCreateRequest(value: object): value is EntryCreateRequest {
58
+ if (!('datasetId' in value) || value['datasetId'] === undefined) return false;
59
+ if (!('name' in value) || value['name'] === undefined) return false;
60
+ if (!('slug' in value) || value['slug'] === undefined) return false;
61
+ return true;
62
+ }
63
+
64
+ export function EntryCreateRequestFromJSON(json: any): EntryCreateRequest {
65
+ return EntryCreateRequestFromJSONTyped(json, false);
66
+ }
67
+
68
+ export function EntryCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): EntryCreateRequest {
69
+ if (json == null) {
70
+ return json;
71
+ }
72
+ return {
73
+
74
+ 'datasetId': json['dataset_id'],
75
+ 'name': json['name'],
76
+ 'slug': json['slug'],
77
+ 'description': json['description'] == null ? undefined : json['description'],
78
+ 'metadata': json['metadata'] == null ? undefined : json['metadata'],
79
+ };
80
+ }
81
+
82
+ export function EntryCreateRequestToJSON(json: any): EntryCreateRequest {
83
+ return EntryCreateRequestToJSONTyped(json, false);
84
+ }
85
+
86
+ export function EntryCreateRequestToJSONTyped(value?: EntryCreateRequest | null, ignoreDiscriminator: boolean = false): any {
87
+ if (value == null) {
88
+ return value;
89
+ }
90
+
91
+ return {
92
+
93
+ 'dataset_id': value['datasetId'],
94
+ 'name': value['name'],
95
+ 'slug': value['slug'],
96
+ 'description': value['description'],
97
+ 'metadata': value['metadata'],
98
+ };
99
+ }
100
+