@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,220 @@
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 with processed content
33
+ * @export
34
+ * @interface EntryWithContent
35
+ */
36
+ export interface EntryWithContent {
37
+ /**
38
+ * Entry name
39
+ * @type {string}
40
+ * @memberof EntryWithContent
41
+ */
42
+ name: string;
43
+ /**
44
+ * URL-friendly slug
45
+ * @type {string}
46
+ * @memberof EntryWithContent
47
+ */
48
+ slug: string;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof EntryWithContent
53
+ */
54
+ description?: string | null;
55
+ /**
56
+ * Current processing status
57
+ * @type {EntryStatus}
58
+ * @memberof EntryWithContent
59
+ */
60
+ status: EntryStatus;
61
+ /**
62
+ * MIME type of primary file
63
+ * @type {string}
64
+ * @memberof EntryWithContent
65
+ */
66
+ mimeType: string;
67
+ /**
68
+ * Entry ID
69
+ * @type {number}
70
+ * @memberof EntryWithContent
71
+ */
72
+ id: number;
73
+ /**
74
+ * Entry manifest with all file locations and metadata
75
+ * @type {EntryManifest}
76
+ * @memberof EntryWithContent
77
+ */
78
+ manifest: EntryManifest;
79
+ /**
80
+ * Base storage path (e.g., 'datasets/123/entries/456')
81
+ * @type {string}
82
+ * @memberof EntryWithContent
83
+ */
84
+ storagePath: string;
85
+ /**
86
+ *
87
+ * @type {string}
88
+ * @memberof EntryWithContent
89
+ */
90
+ primaryFileKey?: string | null;
91
+ /**
92
+ *
93
+ * @type {string}
94
+ * @memberof EntryWithContent
95
+ */
96
+ processedContentKey?: string | null;
97
+ /**
98
+ *
99
+ * @type {number}
100
+ * @memberof EntryWithContent
101
+ */
102
+ fileSizeBytes?: number | null;
103
+ /**
104
+ * Parent dataset ID
105
+ * @type {number}
106
+ * @memberof EntryWithContent
107
+ */
108
+ datasetId: number;
109
+ /**
110
+ * Creation timestamp
111
+ * @type {Date}
112
+ * @memberof EntryWithContent
113
+ */
114
+ createdAt: Date;
115
+ /**
116
+ * Last update timestamp
117
+ * @type {Date}
118
+ * @memberof EntryWithContent
119
+ */
120
+ updatedAt: Date;
121
+ /**
122
+ *
123
+ * @type {Date}
124
+ * @memberof EntryWithContent
125
+ */
126
+ processingCompletedAt?: Date | null;
127
+ /**
128
+ * Version number for optimistic locking
129
+ * @type {number}
130
+ * @memberof EntryWithContent
131
+ */
132
+ version?: number;
133
+ /**
134
+ *
135
+ * @type {{ [key: string]: any; }}
136
+ * @memberof EntryWithContent
137
+ */
138
+ content?: { [key: string]: any; } | null;
139
+ }
140
+
141
+
142
+
143
+ /**
144
+ * Check if a given object implements the EntryWithContent interface.
145
+ */
146
+ export function instanceOfEntryWithContent(value: object): value is EntryWithContent {
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 EntryWithContentFromJSON(json: any): EntryWithContent {
161
+ return EntryWithContentFromJSONTyped(json, false);
162
+ }
163
+
164
+ export function EntryWithContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): EntryWithContent {
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
+ 'content': json['content'] == null ? undefined : json['content'],
187
+ };
188
+ }
189
+
190
+ export function EntryWithContentToJSON(json: any): EntryWithContent {
191
+ return EntryWithContentToJSONTyped(json, false);
192
+ }
193
+
194
+ export function EntryWithContentToJSONTyped(value?: EntryWithContent | null, ignoreDiscriminator: boolean = false): any {
195
+ if (value == null) {
196
+ return value;
197
+ }
198
+
199
+ return {
200
+
201
+ 'name': value['name'],
202
+ 'slug': value['slug'],
203
+ 'description': value['description'],
204
+ 'status': EntryStatusToJSON(value['status']),
205
+ 'mime_type': value['mimeType'],
206
+ 'id': value['id'],
207
+ 'manifest': EntryManifestToJSON(value['manifest']),
208
+ 'storage_path': value['storagePath'],
209
+ 'primary_file_key': value['primaryFileKey'],
210
+ 'processed_content_key': value['processedContentKey'],
211
+ 'file_size_bytes': value['fileSizeBytes'],
212
+ 'dataset_id': value['datasetId'],
213
+ 'created_at': ((value['createdAt']).toISOString()),
214
+ 'updated_at': ((value['updatedAt']).toISOString()),
215
+ 'processing_completed_at': value['processingCompletedAt'] == null ? undefined : ((value['processingCompletedAt'] as any).toISOString()),
216
+ 'version': value['version'],
217
+ 'content': value['content'],
218
+ };
219
+ }
220
+
@@ -0,0 +1,108 @@
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
+ * Metadata for files in manifest
18
+ * @export
19
+ * @interface FileMetadata
20
+ */
21
+ export interface FileMetadata {
22
+ /**
23
+ * S3 key for the file
24
+ * @type {string}
25
+ * @memberof FileMetadata
26
+ */
27
+ key: string;
28
+ /**
29
+ * File size in bytes
30
+ * @type {number}
31
+ * @memberof FileMetadata
32
+ */
33
+ size: number;
34
+ /**
35
+ * MIME type of the file
36
+ * @type {string}
37
+ * @memberof FileMetadata
38
+ */
39
+ mimeType: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof FileMetadata
44
+ */
45
+ hash?: string | null;
46
+ /**
47
+ *
48
+ * @type {Date}
49
+ * @memberof FileMetadata
50
+ */
51
+ createdAt?: Date | null;
52
+ /**
53
+ *
54
+ * @type {Date}
55
+ * @memberof FileMetadata
56
+ */
57
+ expiresAt?: Date | null;
58
+ }
59
+
60
+ /**
61
+ * Check if a given object implements the FileMetadata interface.
62
+ */
63
+ export function instanceOfFileMetadata(value: object): value is FileMetadata {
64
+ if (!('key' in value) || value['key'] === undefined) return false;
65
+ if (!('size' in value) || value['size'] === undefined) return false;
66
+ if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
67
+ return true;
68
+ }
69
+
70
+ export function FileMetadataFromJSON(json: any): FileMetadata {
71
+ return FileMetadataFromJSONTyped(json, false);
72
+ }
73
+
74
+ export function FileMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): FileMetadata {
75
+ if (json == null) {
76
+ return json;
77
+ }
78
+ return {
79
+
80
+ 'key': json['key'],
81
+ 'size': json['size'],
82
+ 'mimeType': json['mime_type'],
83
+ 'hash': json['hash'] == null ? undefined : json['hash'],
84
+ 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
85
+ 'expiresAt': json['expires_at'] == null ? undefined : (new Date(json['expires_at'])),
86
+ };
87
+ }
88
+
89
+ export function FileMetadataToJSON(json: any): FileMetadata {
90
+ return FileMetadataToJSONTyped(json, false);
91
+ }
92
+
93
+ export function FileMetadataToJSONTyped(value?: FileMetadata | null, ignoreDiscriminator: boolean = false): any {
94
+ if (value == null) {
95
+ return value;
96
+ }
97
+
98
+ return {
99
+
100
+ 'key': value['key'],
101
+ 'size': value['size'],
102
+ 'mime_type': value['mimeType'],
103
+ 'hash': value['hash'],
104
+ 'created_at': value['createdAt'] == null ? undefined : ((value['createdAt'] as any).toISOString()),
105
+ 'expires_at': value['expiresAt'] == null ? undefined : ((value['expiresAt'] as any).toISOString()),
106
+ };
107
+ }
108
+
@@ -0,0 +1,82 @@
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 model for generating embeddings
18
+ * @export
19
+ * @interface GenerateEmbeddingsRequest
20
+ */
21
+ export interface GenerateEmbeddingsRequest {
22
+ /**
23
+ * List of texts to generate embeddings for
24
+ * @type {Array<string>}
25
+ * @memberof GenerateEmbeddingsRequest
26
+ */
27
+ texts: Array<string>;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof GenerateEmbeddingsRequest
32
+ */
33
+ model?: string | null;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof GenerateEmbeddingsRequest
38
+ */
39
+ provider?: string | null;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the GenerateEmbeddingsRequest interface.
44
+ */
45
+ export function instanceOfGenerateEmbeddingsRequest(value: object): value is GenerateEmbeddingsRequest {
46
+ if (!('texts' in value) || value['texts'] === undefined) return false;
47
+ return true;
48
+ }
49
+
50
+ export function GenerateEmbeddingsRequestFromJSON(json: any): GenerateEmbeddingsRequest {
51
+ return GenerateEmbeddingsRequestFromJSONTyped(json, false);
52
+ }
53
+
54
+ export function GenerateEmbeddingsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GenerateEmbeddingsRequest {
55
+ if (json == null) {
56
+ return json;
57
+ }
58
+ return {
59
+
60
+ 'texts': json['texts'],
61
+ 'model': json['model'] == null ? undefined : json['model'],
62
+ 'provider': json['provider'] == null ? undefined : json['provider'],
63
+ };
64
+ }
65
+
66
+ export function GenerateEmbeddingsRequestToJSON(json: any): GenerateEmbeddingsRequest {
67
+ return GenerateEmbeddingsRequestToJSONTyped(json, false);
68
+ }
69
+
70
+ export function GenerateEmbeddingsRequestToJSONTyped(value?: GenerateEmbeddingsRequest | null, ignoreDiscriminator: boolean = false): any {
71
+ if (value == null) {
72
+ return value;
73
+ }
74
+
75
+ return {
76
+
77
+ 'texts': value['texts'],
78
+ 'model': value['model'],
79
+ 'provider': value['provider'],
80
+ };
81
+ }
82
+
@@ -0,0 +1,73 @@
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 { ValidationError } from './ValidationError';
17
+ import {
18
+ ValidationErrorFromJSON,
19
+ ValidationErrorFromJSONTyped,
20
+ ValidationErrorToJSON,
21
+ ValidationErrorToJSONTyped,
22
+ } from './ValidationError';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface HTTPValidationError
28
+ */
29
+ export interface HTTPValidationError {
30
+ /**
31
+ *
32
+ * @type {Array<ValidationError>}
33
+ * @memberof HTTPValidationError
34
+ */
35
+ detail?: Array<ValidationError>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the HTTPValidationError interface.
40
+ */
41
+ export function instanceOfHTTPValidationError(value: object): value is HTTPValidationError {
42
+ return true;
43
+ }
44
+
45
+ export function HTTPValidationErrorFromJSON(json: any): HTTPValidationError {
46
+ return HTTPValidationErrorFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function HTTPValidationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): HTTPValidationError {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'detail': json['detail'] == null ? undefined : ((json['detail'] as Array<any>).map(ValidationErrorFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function HTTPValidationErrorToJSON(json: any): HTTPValidationError {
60
+ return HTTPValidationErrorToJSONTyped(json, false);
61
+ }
62
+
63
+ export function HTTPValidationErrorToJSONTyped(value?: HTTPValidationError | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'detail': value['detail'] == null ? undefined : ((value['detail'] as Array<any>).map(ValidationErrorToJSON)),
71
+ };
72
+ }
73
+
@@ -0,0 +1,93 @@
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
+ * Health status of embedding service
18
+ * @export
19
+ * @interface HealthResponse
20
+ */
21
+ export interface HealthResponse {
22
+ /**
23
+ * Service status (healthy, degraded, unhealthy)
24
+ * @type {string}
25
+ * @memberof HealthResponse
26
+ */
27
+ status: string;
28
+ /**
29
+ * List of available providers
30
+ * @type {Array<string>}
31
+ * @memberof HealthResponse
32
+ */
33
+ availableProviders: Array<string>;
34
+ /**
35
+ * Default embedding model
36
+ * @type {string}
37
+ * @memberof HealthResponse
38
+ */
39
+ defaultModel: string;
40
+ /**
41
+ * Default provider
42
+ * @type {string}
43
+ * @memberof HealthResponse
44
+ */
45
+ defaultProvider: string;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the HealthResponse interface.
50
+ */
51
+ export function instanceOfHealthResponse(value: object): value is HealthResponse {
52
+ if (!('status' in value) || value['status'] === undefined) return false;
53
+ if (!('availableProviders' in value) || value['availableProviders'] === undefined) return false;
54
+ if (!('defaultModel' in value) || value['defaultModel'] === undefined) return false;
55
+ if (!('defaultProvider' in value) || value['defaultProvider'] === undefined) return false;
56
+ return true;
57
+ }
58
+
59
+ export function HealthResponseFromJSON(json: any): HealthResponse {
60
+ return HealthResponseFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function HealthResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): HealthResponse {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'status': json['status'],
70
+ 'availableProviders': json['available_providers'],
71
+ 'defaultModel': json['default_model'],
72
+ 'defaultProvider': json['default_provider'],
73
+ };
74
+ }
75
+
76
+ export function HealthResponseToJSON(json: any): HealthResponse {
77
+ return HealthResponseToJSONTyped(json, false);
78
+ }
79
+
80
+ export function HealthResponseToJSONTyped(value?: HealthResponse | null, ignoreDiscriminator: boolean = false): any {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+
85
+ return {
86
+
87
+ 'status': value['status'],
88
+ 'available_providers': value['availableProviders'],
89
+ 'default_model': value['defaultModel'],
90
+ 'default_provider': value['defaultProvider'],
91
+ };
92
+ }
93
+