@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,969 @@
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
+ import * as runtime from '../runtime';
17
+ import type {
18
+ BatchContentRequest,
19
+ BatchContentResponse,
20
+ BatchGetEntriesRequest,
21
+ BatchGetEntriesResponse,
22
+ Entry,
23
+ EntryCreateRequest,
24
+ EntryCreateResponse,
25
+ EntryUpdateRequest,
26
+ HTTPValidationError,
27
+ SaveProcessedContentRequest,
28
+ SaveProcessedContentResponse,
29
+ UploadFileResponse,
30
+ } from '../models/index';
31
+ import {
32
+ BatchContentRequestFromJSON,
33
+ BatchContentRequestToJSON,
34
+ BatchContentResponseFromJSON,
35
+ BatchContentResponseToJSON,
36
+ BatchGetEntriesRequestFromJSON,
37
+ BatchGetEntriesRequestToJSON,
38
+ BatchGetEntriesResponseFromJSON,
39
+ BatchGetEntriesResponseToJSON,
40
+ EntryFromJSON,
41
+ EntryToJSON,
42
+ EntryCreateRequestFromJSON,
43
+ EntryCreateRequestToJSON,
44
+ EntryCreateResponseFromJSON,
45
+ EntryCreateResponseToJSON,
46
+ EntryUpdateRequestFromJSON,
47
+ EntryUpdateRequestToJSON,
48
+ HTTPValidationErrorFromJSON,
49
+ HTTPValidationErrorToJSON,
50
+ SaveProcessedContentRequestFromJSON,
51
+ SaveProcessedContentRequestToJSON,
52
+ SaveProcessedContentResponseFromJSON,
53
+ SaveProcessedContentResponseToJSON,
54
+ UploadFileResponseFromJSON,
55
+ UploadFileResponseToJSON,
56
+ } from '../models/index';
57
+
58
+ export interface BatchGetContentApiV1EntriesBatchContentPostRequest {
59
+ batchContentRequest: BatchContentRequest;
60
+ }
61
+
62
+ export interface BatchGetEntriesApiV1EntriesBatchPostRequest {
63
+ batchGetEntriesRequest: BatchGetEntriesRequest;
64
+ }
65
+
66
+ export interface CreateEntryApiV1EntriesPostRequest {
67
+ entryCreateRequest: EntryCreateRequest;
68
+ }
69
+
70
+ export interface DeleteEntryApiV1EntriesEntryIdDeleteRequest {
71
+ entryId: number;
72
+ }
73
+
74
+ export interface DownloadFileApiV1EntriesEntryIdDownloadGetRequest {
75
+ entryId: number;
76
+ filename?: string | null;
77
+ fileType?: string;
78
+ }
79
+
80
+ export interface GetEntryApiV1EntriesEntryIdGetRequest {
81
+ entryId: number;
82
+ }
83
+
84
+ export interface GetEntryContentApiV1EntriesEntryIdContentGetRequest {
85
+ entryId: number;
86
+ }
87
+
88
+ export interface GetWorkflowStatusApiV1EntriesEntryIdWorkflowStatusGetRequest {
89
+ entryId: number;
90
+ }
91
+
92
+ export interface IndexEntryChunksApiV1EntriesEntryIdChunksPostRequest {
93
+ entryId: number;
94
+ requestBody: { [key: string]: any; };
95
+ }
96
+
97
+ export interface ListEntriesApiV1EntriesGetRequest {
98
+ datasetId: number;
99
+ page?: number;
100
+ limit?: number;
101
+ statusFilter?: string | null;
102
+ }
103
+
104
+ export interface SaveProcessedContentApiV1EntriesEntryIdProcessedPostRequest {
105
+ entryId: number;
106
+ saveProcessedContentRequest: SaveProcessedContentRequest;
107
+ }
108
+
109
+ export interface TriggerPipelineApiV1EntriesEntryIdTriggerPipelinePostRequest {
110
+ entryId: number;
111
+ }
112
+
113
+ export interface UpdateEntryApiV1EntriesEntryIdPatchRequest {
114
+ entryId: number;
115
+ entryUpdateRequest: EntryUpdateRequest;
116
+ }
117
+
118
+ export interface UploadFileToEntryApiV1EntriesEntryIdUploadPostRequest {
119
+ entryId: number;
120
+ file: Blob;
121
+ fileType?: string;
122
+ }
123
+
124
+ /**
125
+ * EntriesApi - interface
126
+ *
127
+ * @export
128
+ * @interface EntriesApiInterface
129
+ */
130
+ export interface EntriesApiInterface {
131
+ /**
132
+ * Get processed content for multiple entries in parallel. THIS IS THE MAGIC endpoint for fast vector search results! - Fetches 50+ entries in ~250ms (vs 25 seconds with Parquet)
133
+ * @summary Batch Get Content
134
+ * @param {BatchContentRequest} batchContentRequest
135
+ * @param {*} [options] Override http request option.
136
+ * @throws {RequiredError}
137
+ * @memberof EntriesApiInterface
138
+ */
139
+ batchGetContentApiV1EntriesBatchContentPostRaw(requestParameters: BatchGetContentApiV1EntriesBatchContentPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BatchContentResponse>>;
140
+
141
+ /**
142
+ * Get processed content for multiple entries in parallel. THIS IS THE MAGIC endpoint for fast vector search results! - Fetches 50+ entries in ~250ms (vs 25 seconds with Parquet)
143
+ * Batch Get Content
144
+ */
145
+ batchGetContentApiV1EntriesBatchContentPost(requestParameters: BatchGetContentApiV1EntriesBatchContentPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BatchContentResponse>;
146
+
147
+ /**
148
+ * Get multiple entries in batch (with optional content). This is optimized for performance: - Parallel database queries - Parallel S3 content fetching - Efficient for RAG/vector search results
149
+ * @summary Batch Get Entries
150
+ * @param {BatchGetEntriesRequest} batchGetEntriesRequest
151
+ * @param {*} [options] Override http request option.
152
+ * @throws {RequiredError}
153
+ * @memberof EntriesApiInterface
154
+ */
155
+ batchGetEntriesApiV1EntriesBatchPostRaw(requestParameters: BatchGetEntriesApiV1EntriesBatchPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BatchGetEntriesResponse>>;
156
+
157
+ /**
158
+ * Get multiple entries in batch (with optional content). This is optimized for performance: - Parallel database queries - Parallel S3 content fetching - Efficient for RAG/vector search results
159
+ * Batch Get Entries
160
+ */
161
+ batchGetEntriesApiV1EntriesBatchPost(requestParameters: BatchGetEntriesApiV1EntriesBatchPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BatchGetEntriesResponse>;
162
+
163
+ /**
164
+ * Create a new entry. This creates the entry record in PostgreSQL but does NOT upload files yet. Use POST /entries/{id}/upload to upload the actual file.
165
+ * @summary Create Entry
166
+ * @param {EntryCreateRequest} entryCreateRequest
167
+ * @param {*} [options] Override http request option.
168
+ * @throws {RequiredError}
169
+ * @memberof EntriesApiInterface
170
+ */
171
+ createEntryApiV1EntriesPostRaw(requestParameters: CreateEntryApiV1EntriesPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EntryCreateResponse>>;
172
+
173
+ /**
174
+ * Create a new entry. This creates the entry record in PostgreSQL but does NOT upload files yet. Use POST /entries/{id}/upload to upload the actual file.
175
+ * Create Entry
176
+ */
177
+ createEntryApiV1EntriesPost(requestParameters: CreateEntryApiV1EntriesPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EntryCreateResponse>;
178
+
179
+ /**
180
+ * Delete entry and all its files. Warning: This permanently deletes all files from storage. Also deletes associated chunks from Qdrant if they exist. Returns: Dict with deletion status: { \"message\": \"Entry deleted successfully\", \"cleanup_status\": { \"database\": bool, \"webhook\": bool, \"minio\": bool, \"qdrant\": bool, \"meilisearch\": bool }, \"warnings\": [\"component1\", \"component2\"] (optional, if any cleanups failed) }
181
+ * @summary Delete Entry
182
+ * @param {number} entryId
183
+ * @param {*} [options] Override http request option.
184
+ * @throws {RequiredError}
185
+ * @memberof EntriesApiInterface
186
+ */
187
+ deleteEntryApiV1EntriesEntryIdDeleteRaw(requestParameters: DeleteEntryApiV1EntriesEntryIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{ [key: string]: any; }>>;
188
+
189
+ /**
190
+ * Delete entry and all its files. Warning: This permanently deletes all files from storage. Also deletes associated chunks from Qdrant if they exist. Returns: Dict with deletion status: { \"message\": \"Entry deleted successfully\", \"cleanup_status\": { \"database\": bool, \"webhook\": bool, \"minio\": bool, \"qdrant\": bool, \"meilisearch\": bool }, \"warnings\": [\"component1\", \"component2\"] (optional, if any cleanups failed) }
191
+ * Delete Entry
192
+ */
193
+ deleteEntryApiV1EntriesEntryIdDelete(requestParameters: DeleteEntryApiV1EntriesEntryIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{ [key: string]: any; }>;
194
+
195
+ /**
196
+ * Download a file from an entry. Args: entry_id: Entry ID filename: Specific filename (suffix match against S3 key). If omitted, returns the first file in the section. file_type: Manifest section — ``\"original\"`` (default), ``\"processing\"``, or ``\"processed\"`` (figures and other processed outputs).
197
+ * @summary Download File
198
+ * @param {number} entryId
199
+ * @param {string} [filename]
200
+ * @param {string} [fileType]
201
+ * @param {*} [options] Override http request option.
202
+ * @throws {RequiredError}
203
+ * @memberof EntriesApiInterface
204
+ */
205
+ downloadFileApiV1EntriesEntryIdDownloadGetRaw(requestParameters: DownloadFileApiV1EntriesEntryIdDownloadGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>>;
206
+
207
+ /**
208
+ * Download a file from an entry. Args: entry_id: Entry ID filename: Specific filename (suffix match against S3 key). If omitted, returns the first file in the section. file_type: Manifest section — ``\"original\"`` (default), ``\"processing\"``, or ``\"processed\"`` (figures and other processed outputs).
209
+ * Download File
210
+ */
211
+ downloadFileApiV1EntriesEntryIdDownloadGet(requestParameters: DownloadFileApiV1EntriesEntryIdDownloadGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
212
+
213
+ /**
214
+ * Get entry by ID
215
+ * @summary Get Entry
216
+ * @param {number} entryId
217
+ * @param {*} [options] Override http request option.
218
+ * @throws {RequiredError}
219
+ * @memberof EntriesApiInterface
220
+ */
221
+ getEntryApiV1EntriesEntryIdGetRaw(requestParameters: GetEntryApiV1EntriesEntryIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Entry>>;
222
+
223
+ /**
224
+ * Get entry by ID
225
+ * Get Entry
226
+ */
227
+ getEntryApiV1EntriesEntryIdGet(requestParameters: GetEntryApiV1EntriesEntryIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Entry>;
228
+
229
+ /**
230
+ * Get processed content for a single entry
231
+ * @summary Get Entry Content
232
+ * @param {number} entryId
233
+ * @param {*} [options] Override http request option.
234
+ * @throws {RequiredError}
235
+ * @memberof EntriesApiInterface
236
+ */
237
+ getEntryContentApiV1EntriesEntryIdContentGetRaw(requestParameters: GetEntryContentApiV1EntriesEntryIdContentGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{ [key: string]: any; }>>;
238
+
239
+ /**
240
+ * Get processed content for a single entry
241
+ * Get Entry Content
242
+ */
243
+ getEntryContentApiV1EntriesEntryIdContentGet(requestParameters: GetEntryContentApiV1EntriesEntryIdContentGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{ [key: string]: any; }>;
244
+
245
+ /**
246
+ * Get workflow status for an entry. Queries Argo Workflows API to get the current status of the pipeline workflow for this entry, including individual task statuses. **Note**: This endpoint queries the Argo API directly. If the workflow is not found or Argo is unavailable, it will return Unknown status. **Returns**: - entry_id: Entry ID - workflow_name: Argo workflow name (if found) - workflow_status: Overall status (Pending, Running, Succeeded, Failed, Error, Unknown) - workflow_phase: Argo workflow phase - start_time: When workflow started - finish_time: When workflow completed (if finished) - tasks: List of individual task statuses - message: Status message or error details **Error Responses**: - 404: Entry not found - 503: Argo Workflows unavailable
247
+ * @summary Get Workflow Status
248
+ * @param {number} entryId
249
+ * @param {*} [options] Override http request option.
250
+ * @throws {RequiredError}
251
+ * @memberof EntriesApiInterface
252
+ */
253
+ getWorkflowStatusApiV1EntriesEntryIdWorkflowStatusGetRaw(requestParameters: GetWorkflowStatusApiV1EntriesEntryIdWorkflowStatusGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>>;
254
+
255
+ /**
256
+ * Get workflow status for an entry. Queries Argo Workflows API to get the current status of the pipeline workflow for this entry, including individual task statuses. **Note**: This endpoint queries the Argo API directly. If the workflow is not found or Argo is unavailable, it will return Unknown status. **Returns**: - entry_id: Entry ID - workflow_name: Argo workflow name (if found) - workflow_status: Overall status (Pending, Running, Succeeded, Failed, Error, Unknown) - workflow_phase: Argo workflow phase - start_time: When workflow started - finish_time: When workflow completed (if finished) - tasks: List of individual task statuses - message: Status message or error details **Error Responses**: - 404: Entry not found - 503: Argo Workflows unavailable
257
+ * Get Workflow Status
258
+ */
259
+ getWorkflowStatusApiV1EntriesEntryIdWorkflowStatusGet(requestParameters: GetWorkflowStatusApiV1EntriesEntryIdWorkflowStatusGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
260
+
261
+ /**
262
+ * Index chunks for an entry into Qdrant vector database. This endpoint is called by processing pipelines after chunking and embedding. Request body: { \"chunks\": [ { \"chunk_text\": \"...\", \"chunk_index\": 0, \"embedding\": [0.1, 0.2, ...], \"metadata\": {\"page_number\": 1, ...} } ] } Note: Collection name is always determined by the tenant\'s QDRANT_COLLECTION_NAME configuration.
263
+ * @summary Index Entry Chunks
264
+ * @param {number} entryId
265
+ * @param {{ [key: string]: any; }} requestBody
266
+ * @param {*} [options] Override http request option.
267
+ * @throws {RequiredError}
268
+ * @memberof EntriesApiInterface
269
+ */
270
+ indexEntryChunksApiV1EntriesEntryIdChunksPostRaw(requestParameters: IndexEntryChunksApiV1EntriesEntryIdChunksPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{ [key: string]: any; }>>;
271
+
272
+ /**
273
+ * Index chunks for an entry into Qdrant vector database. This endpoint is called by processing pipelines after chunking and embedding. Request body: { \"chunks\": [ { \"chunk_text\": \"...\", \"chunk_index\": 0, \"embedding\": [0.1, 0.2, ...], \"metadata\": {\"page_number\": 1, ...} } ] } Note: Collection name is always determined by the tenant\'s QDRANT_COLLECTION_NAME configuration.
274
+ * Index Entry Chunks
275
+ */
276
+ indexEntryChunksApiV1EntriesEntryIdChunksPost(requestParameters: IndexEntryChunksApiV1EntriesEntryIdChunksPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{ [key: string]: any; }>;
277
+
278
+ /**
279
+ * List entries for a dataset with pagination. Query parameters: - dataset_id: Dataset ID (required) - page: Page number (default: 1) - limit: Items per page (default: 20, max: 100) - status_filter: Filter by status (optional) Returns paginated list of entries.
280
+ * @summary List Entries
281
+ * @param {number} datasetId
282
+ * @param {number} [page]
283
+ * @param {number} [limit]
284
+ * @param {string} [statusFilter]
285
+ * @param {*} [options] Override http request option.
286
+ * @throws {RequiredError}
287
+ * @memberof EntriesApiInterface
288
+ */
289
+ listEntriesApiV1EntriesGetRaw(requestParameters: ListEntriesApiV1EntriesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{ [key: string]: any; }>>;
290
+
291
+ /**
292
+ * List entries for a dataset with pagination. Query parameters: - dataset_id: Dataset ID (required) - page: Page number (default: 1) - limit: Items per page (default: 20, max: 100) - status_filter: Filter by status (optional) Returns paginated list of entries.
293
+ * List Entries
294
+ */
295
+ listEntriesApiV1EntriesGet(requestParameters: ListEntriesApiV1EntriesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{ [key: string]: any; }>;
296
+
297
+ /**
298
+ * Save processed content for an entry. Called by workers/pipelines after processing.
299
+ * @summary Save Processed Content
300
+ * @param {number} entryId
301
+ * @param {SaveProcessedContentRequest} saveProcessedContentRequest
302
+ * @param {*} [options] Override http request option.
303
+ * @throws {RequiredError}
304
+ * @memberof EntriesApiInterface
305
+ */
306
+ saveProcessedContentApiV1EntriesEntryIdProcessedPostRaw(requestParameters: SaveProcessedContentApiV1EntriesEntryIdProcessedPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SaveProcessedContentResponse>>;
307
+
308
+ /**
309
+ * Save processed content for an entry. Called by workers/pipelines after processing.
310
+ * Save Processed Content
311
+ */
312
+ saveProcessedContentApiV1EntriesEntryIdProcessedPost(requestParameters: SaveProcessedContentApiV1EntriesEntryIdProcessedPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SaveProcessedContentResponse>;
313
+
314
+ /**
315
+ * Trigger pipeline workflow for an entry. This endpoint: 1. Validates entry exists and is in a triggerable state 2. Validates dataset has a pipeline configured and enabled 3. Builds Argo Workflow from pipeline config using PipelineBuilder 4. Updates entry status to \'processing\' 5. Submits workflow to Argo Workflows 6. Returns workflow metadata **Valid Entry Statuses**: uploaded, error **Requirements**: Dataset must have pipeline_config with enabled=true **Error Responses**: - 404: Entry not found - 400: Invalid entry status, pipeline not configured, or pipeline disabled - 500: Workflow submission failed
316
+ * @summary Trigger Pipeline
317
+ * @param {number} entryId
318
+ * @param {*} [options] Override http request option.
319
+ * @throws {RequiredError}
320
+ * @memberof EntriesApiInterface
321
+ */
322
+ triggerPipelineApiV1EntriesEntryIdTriggerPipelinePostRaw(requestParameters: TriggerPipelineApiV1EntriesEntryIdTriggerPipelinePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>>;
323
+
324
+ /**
325
+ * Trigger pipeline workflow for an entry. This endpoint: 1. Validates entry exists and is in a triggerable state 2. Validates dataset has a pipeline configured and enabled 3. Builds Argo Workflow from pipeline config using PipelineBuilder 4. Updates entry status to \'processing\' 5. Submits workflow to Argo Workflows 6. Returns workflow metadata **Valid Entry Statuses**: uploaded, error **Requirements**: Dataset must have pipeline_config with enabled=true **Error Responses**: - 404: Entry not found - 400: Invalid entry status, pipeline not configured, or pipeline disabled - 500: Workflow submission failed
326
+ * Trigger Pipeline
327
+ */
328
+ triggerPipelineApiV1EntriesEntryIdTriggerPipelinePost(requestParameters: TriggerPipelineApiV1EntriesEntryIdTriggerPipelinePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
329
+
330
+ /**
331
+ * Update entry metadata. Allows updating name, description, status, and metadata fields.
332
+ * @summary Update Entry
333
+ * @param {number} entryId
334
+ * @param {EntryUpdateRequest} entryUpdateRequest
335
+ * @param {*} [options] Override http request option.
336
+ * @throws {RequiredError}
337
+ * @memberof EntriesApiInterface
338
+ */
339
+ updateEntryApiV1EntriesEntryIdPatchRaw(requestParameters: UpdateEntryApiV1EntriesEntryIdPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Entry>>;
340
+
341
+ /**
342
+ * Update entry metadata. Allows updating name, description, status, and metadata fields.
343
+ * Update Entry
344
+ */
345
+ updateEntryApiV1EntriesEntryIdPatch(requestParameters: UpdateEntryApiV1EntriesEntryIdPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Entry>;
346
+
347
+ /**
348
+ * Upload a file to an existing entry. This saves the file to MinIO and updates the entry manifest in the appropriate section. **File Types**: - `original`: Original uploaded files (default) - stored in manifest.original.files - `processing`: Intermediate processing artifacts - stored in manifest.processing.files - `processed`: Final processed outputs - stored in manifest.processed.additional_files Can be called multiple times to upload additional files of any type.
349
+ * @summary Upload File To Entry
350
+ * @param {number} entryId
351
+ * @param {Blob} file File to upload
352
+ * @param {string} [fileType] File type: original|processing|processed
353
+ * @param {*} [options] Override http request option.
354
+ * @throws {RequiredError}
355
+ * @memberof EntriesApiInterface
356
+ */
357
+ uploadFileToEntryApiV1EntriesEntryIdUploadPostRaw(requestParameters: UploadFileToEntryApiV1EntriesEntryIdUploadPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UploadFileResponse>>;
358
+
359
+ /**
360
+ * Upload a file to an existing entry. This saves the file to MinIO and updates the entry manifest in the appropriate section. **File Types**: - `original`: Original uploaded files (default) - stored in manifest.original.files - `processing`: Intermediate processing artifacts - stored in manifest.processing.files - `processed`: Final processed outputs - stored in manifest.processed.additional_files Can be called multiple times to upload additional files of any type.
361
+ * Upload File To Entry
362
+ */
363
+ uploadFileToEntryApiV1EntriesEntryIdUploadPost(requestParameters: UploadFileToEntryApiV1EntriesEntryIdUploadPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UploadFileResponse>;
364
+
365
+ }
366
+
367
+ /**
368
+ *
369
+ */
370
+ export class EntriesApi extends runtime.BaseAPI implements EntriesApiInterface {
371
+
372
+ /**
373
+ * Get processed content for multiple entries in parallel. THIS IS THE MAGIC endpoint for fast vector search results! - Fetches 50+ entries in ~250ms (vs 25 seconds with Parquet)
374
+ * Batch Get Content
375
+ */
376
+ async batchGetContentApiV1EntriesBatchContentPostRaw(requestParameters: BatchGetContentApiV1EntriesBatchContentPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BatchContentResponse>> {
377
+ if (requestParameters['batchContentRequest'] == null) {
378
+ throw new runtime.RequiredError(
379
+ 'batchContentRequest',
380
+ 'Required parameter "batchContentRequest" was null or undefined when calling batchGetContentApiV1EntriesBatchContentPost().'
381
+ );
382
+ }
383
+
384
+ const queryParameters: any = {};
385
+
386
+ const headerParameters: runtime.HTTPHeaders = {};
387
+
388
+ headerParameters['Content-Type'] = 'application/json';
389
+
390
+ const response = await this.request({
391
+ path: `/api/v1/entries/batch/content`,
392
+ method: 'POST',
393
+ headers: headerParameters,
394
+ query: queryParameters,
395
+ body: BatchContentRequestToJSON(requestParameters['batchContentRequest']),
396
+ }, initOverrides);
397
+
398
+ return new runtime.JSONApiResponse(response, (jsonValue) => BatchContentResponseFromJSON(jsonValue));
399
+ }
400
+
401
+ /**
402
+ * Get processed content for multiple entries in parallel. THIS IS THE MAGIC endpoint for fast vector search results! - Fetches 50+ entries in ~250ms (vs 25 seconds with Parquet)
403
+ * Batch Get Content
404
+ */
405
+ async batchGetContentApiV1EntriesBatchContentPost(requestParameters: BatchGetContentApiV1EntriesBatchContentPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BatchContentResponse> {
406
+ const response = await this.batchGetContentApiV1EntriesBatchContentPostRaw(requestParameters, initOverrides);
407
+ return await response.value();
408
+ }
409
+
410
+ /**
411
+ * Get multiple entries in batch (with optional content). This is optimized for performance: - Parallel database queries - Parallel S3 content fetching - Efficient for RAG/vector search results
412
+ * Batch Get Entries
413
+ */
414
+ async batchGetEntriesApiV1EntriesBatchPostRaw(requestParameters: BatchGetEntriesApiV1EntriesBatchPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BatchGetEntriesResponse>> {
415
+ if (requestParameters['batchGetEntriesRequest'] == null) {
416
+ throw new runtime.RequiredError(
417
+ 'batchGetEntriesRequest',
418
+ 'Required parameter "batchGetEntriesRequest" was null or undefined when calling batchGetEntriesApiV1EntriesBatchPost().'
419
+ );
420
+ }
421
+
422
+ const queryParameters: any = {};
423
+
424
+ const headerParameters: runtime.HTTPHeaders = {};
425
+
426
+ headerParameters['Content-Type'] = 'application/json';
427
+
428
+ const response = await this.request({
429
+ path: `/api/v1/entries/batch`,
430
+ method: 'POST',
431
+ headers: headerParameters,
432
+ query: queryParameters,
433
+ body: BatchGetEntriesRequestToJSON(requestParameters['batchGetEntriesRequest']),
434
+ }, initOverrides);
435
+
436
+ return new runtime.JSONApiResponse(response, (jsonValue) => BatchGetEntriesResponseFromJSON(jsonValue));
437
+ }
438
+
439
+ /**
440
+ * Get multiple entries in batch (with optional content). This is optimized for performance: - Parallel database queries - Parallel S3 content fetching - Efficient for RAG/vector search results
441
+ * Batch Get Entries
442
+ */
443
+ async batchGetEntriesApiV1EntriesBatchPost(requestParameters: BatchGetEntriesApiV1EntriesBatchPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BatchGetEntriesResponse> {
444
+ const response = await this.batchGetEntriesApiV1EntriesBatchPostRaw(requestParameters, initOverrides);
445
+ return await response.value();
446
+ }
447
+
448
+ /**
449
+ * Create a new entry. This creates the entry record in PostgreSQL but does NOT upload files yet. Use POST /entries/{id}/upload to upload the actual file.
450
+ * Create Entry
451
+ */
452
+ async createEntryApiV1EntriesPostRaw(requestParameters: CreateEntryApiV1EntriesPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EntryCreateResponse>> {
453
+ if (requestParameters['entryCreateRequest'] == null) {
454
+ throw new runtime.RequiredError(
455
+ 'entryCreateRequest',
456
+ 'Required parameter "entryCreateRequest" was null or undefined when calling createEntryApiV1EntriesPost().'
457
+ );
458
+ }
459
+
460
+ const queryParameters: any = {};
461
+
462
+ const headerParameters: runtime.HTTPHeaders = {};
463
+
464
+ headerParameters['Content-Type'] = 'application/json';
465
+
466
+ const response = await this.request({
467
+ path: `/api/v1/entries`,
468
+ method: 'POST',
469
+ headers: headerParameters,
470
+ query: queryParameters,
471
+ body: EntryCreateRequestToJSON(requestParameters['entryCreateRequest']),
472
+ }, initOverrides);
473
+
474
+ return new runtime.JSONApiResponse(response, (jsonValue) => EntryCreateResponseFromJSON(jsonValue));
475
+ }
476
+
477
+ /**
478
+ * Create a new entry. This creates the entry record in PostgreSQL but does NOT upload files yet. Use POST /entries/{id}/upload to upload the actual file.
479
+ * Create Entry
480
+ */
481
+ async createEntryApiV1EntriesPost(requestParameters: CreateEntryApiV1EntriesPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EntryCreateResponse> {
482
+ const response = await this.createEntryApiV1EntriesPostRaw(requestParameters, initOverrides);
483
+ return await response.value();
484
+ }
485
+
486
+ /**
487
+ * Delete entry and all its files. Warning: This permanently deletes all files from storage. Also deletes associated chunks from Qdrant if they exist. Returns: Dict with deletion status: { \"message\": \"Entry deleted successfully\", \"cleanup_status\": { \"database\": bool, \"webhook\": bool, \"minio\": bool, \"qdrant\": bool, \"meilisearch\": bool }, \"warnings\": [\"component1\", \"component2\"] (optional, if any cleanups failed) }
488
+ * Delete Entry
489
+ */
490
+ async deleteEntryApiV1EntriesEntryIdDeleteRaw(requestParameters: DeleteEntryApiV1EntriesEntryIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{ [key: string]: any; }>> {
491
+ if (requestParameters['entryId'] == null) {
492
+ throw new runtime.RequiredError(
493
+ 'entryId',
494
+ 'Required parameter "entryId" was null or undefined when calling deleteEntryApiV1EntriesEntryIdDelete().'
495
+ );
496
+ }
497
+
498
+ const queryParameters: any = {};
499
+
500
+ const headerParameters: runtime.HTTPHeaders = {};
501
+
502
+ const response = await this.request({
503
+ path: `/api/v1/entries/{entry_id}`.replace(`{${"entry_id"}}`, encodeURIComponent(String(requestParameters['entryId']))),
504
+ method: 'DELETE',
505
+ headers: headerParameters,
506
+ query: queryParameters,
507
+ }, initOverrides);
508
+
509
+ return new runtime.JSONApiResponse<any>(response);
510
+ }
511
+
512
+ /**
513
+ * Delete entry and all its files. Warning: This permanently deletes all files from storage. Also deletes associated chunks from Qdrant if they exist. Returns: Dict with deletion status: { \"message\": \"Entry deleted successfully\", \"cleanup_status\": { \"database\": bool, \"webhook\": bool, \"minio\": bool, \"qdrant\": bool, \"meilisearch\": bool }, \"warnings\": [\"component1\", \"component2\"] (optional, if any cleanups failed) }
514
+ * Delete Entry
515
+ */
516
+ async deleteEntryApiV1EntriesEntryIdDelete(requestParameters: DeleteEntryApiV1EntriesEntryIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{ [key: string]: any; }> {
517
+ const response = await this.deleteEntryApiV1EntriesEntryIdDeleteRaw(requestParameters, initOverrides);
518
+ return await response.value();
519
+ }
520
+
521
+ /**
522
+ * Download a file from an entry. Args: entry_id: Entry ID filename: Specific filename (suffix match against S3 key). If omitted, returns the first file in the section. file_type: Manifest section — ``\"original\"`` (default), ``\"processing\"``, or ``\"processed\"`` (figures and other processed outputs).
523
+ * Download File
524
+ */
525
+ async downloadFileApiV1EntriesEntryIdDownloadGetRaw(requestParameters: DownloadFileApiV1EntriesEntryIdDownloadGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>> {
526
+ if (requestParameters['entryId'] == null) {
527
+ throw new runtime.RequiredError(
528
+ 'entryId',
529
+ 'Required parameter "entryId" was null or undefined when calling downloadFileApiV1EntriesEntryIdDownloadGet().'
530
+ );
531
+ }
532
+
533
+ const queryParameters: any = {};
534
+
535
+ if (requestParameters['filename'] != null) {
536
+ queryParameters['filename'] = requestParameters['filename'];
537
+ }
538
+
539
+ if (requestParameters['fileType'] != null) {
540
+ queryParameters['file_type'] = requestParameters['fileType'];
541
+ }
542
+
543
+ const headerParameters: runtime.HTTPHeaders = {};
544
+
545
+ const response = await this.request({
546
+ path: `/api/v1/entries/{entry_id}/download`.replace(`{${"entry_id"}}`, encodeURIComponent(String(requestParameters['entryId']))),
547
+ method: 'GET',
548
+ headers: headerParameters,
549
+ query: queryParameters,
550
+ }, initOverrides);
551
+
552
+ if (this.isJsonMime(response.headers.get('content-type'))) {
553
+ return new runtime.JSONApiResponse<any>(response);
554
+ } else {
555
+ return new runtime.TextApiResponse(response) as any;
556
+ }
557
+ }
558
+
559
+ /**
560
+ * Download a file from an entry. Args: entry_id: Entry ID filename: Specific filename (suffix match against S3 key). If omitted, returns the first file in the section. file_type: Manifest section — ``\"original\"`` (default), ``\"processing\"``, or ``\"processed\"`` (figures and other processed outputs).
561
+ * Download File
562
+ */
563
+ async downloadFileApiV1EntriesEntryIdDownloadGet(requestParameters: DownloadFileApiV1EntriesEntryIdDownloadGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any> {
564
+ const response = await this.downloadFileApiV1EntriesEntryIdDownloadGetRaw(requestParameters, initOverrides);
565
+ return await response.value();
566
+ }
567
+
568
+ /**
569
+ * Get entry by ID
570
+ * Get Entry
571
+ */
572
+ async getEntryApiV1EntriesEntryIdGetRaw(requestParameters: GetEntryApiV1EntriesEntryIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Entry>> {
573
+ if (requestParameters['entryId'] == null) {
574
+ throw new runtime.RequiredError(
575
+ 'entryId',
576
+ 'Required parameter "entryId" was null or undefined when calling getEntryApiV1EntriesEntryIdGet().'
577
+ );
578
+ }
579
+
580
+ const queryParameters: any = {};
581
+
582
+ const headerParameters: runtime.HTTPHeaders = {};
583
+
584
+ const response = await this.request({
585
+ path: `/api/v1/entries/{entry_id}`.replace(`{${"entry_id"}}`, encodeURIComponent(String(requestParameters['entryId']))),
586
+ method: 'GET',
587
+ headers: headerParameters,
588
+ query: queryParameters,
589
+ }, initOverrides);
590
+
591
+ return new runtime.JSONApiResponse(response, (jsonValue) => EntryFromJSON(jsonValue));
592
+ }
593
+
594
+ /**
595
+ * Get entry by ID
596
+ * Get Entry
597
+ */
598
+ async getEntryApiV1EntriesEntryIdGet(requestParameters: GetEntryApiV1EntriesEntryIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Entry> {
599
+ const response = await this.getEntryApiV1EntriesEntryIdGetRaw(requestParameters, initOverrides);
600
+ return await response.value();
601
+ }
602
+
603
+ /**
604
+ * Get processed content for a single entry
605
+ * Get Entry Content
606
+ */
607
+ async getEntryContentApiV1EntriesEntryIdContentGetRaw(requestParameters: GetEntryContentApiV1EntriesEntryIdContentGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{ [key: string]: any; }>> {
608
+ if (requestParameters['entryId'] == null) {
609
+ throw new runtime.RequiredError(
610
+ 'entryId',
611
+ 'Required parameter "entryId" was null or undefined when calling getEntryContentApiV1EntriesEntryIdContentGet().'
612
+ );
613
+ }
614
+
615
+ const queryParameters: any = {};
616
+
617
+ const headerParameters: runtime.HTTPHeaders = {};
618
+
619
+ const response = await this.request({
620
+ path: `/api/v1/entries/{entry_id}/content`.replace(`{${"entry_id"}}`, encodeURIComponent(String(requestParameters['entryId']))),
621
+ method: 'GET',
622
+ headers: headerParameters,
623
+ query: queryParameters,
624
+ }, initOverrides);
625
+
626
+ return new runtime.JSONApiResponse<any>(response);
627
+ }
628
+
629
+ /**
630
+ * Get processed content for a single entry
631
+ * Get Entry Content
632
+ */
633
+ async getEntryContentApiV1EntriesEntryIdContentGet(requestParameters: GetEntryContentApiV1EntriesEntryIdContentGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{ [key: string]: any; }> {
634
+ const response = await this.getEntryContentApiV1EntriesEntryIdContentGetRaw(requestParameters, initOverrides);
635
+ return await response.value();
636
+ }
637
+
638
+ /**
639
+ * Get workflow status for an entry. Queries Argo Workflows API to get the current status of the pipeline workflow for this entry, including individual task statuses. **Note**: This endpoint queries the Argo API directly. If the workflow is not found or Argo is unavailable, it will return Unknown status. **Returns**: - entry_id: Entry ID - workflow_name: Argo workflow name (if found) - workflow_status: Overall status (Pending, Running, Succeeded, Failed, Error, Unknown) - workflow_phase: Argo workflow phase - start_time: When workflow started - finish_time: When workflow completed (if finished) - tasks: List of individual task statuses - message: Status message or error details **Error Responses**: - 404: Entry not found - 503: Argo Workflows unavailable
640
+ * Get Workflow Status
641
+ */
642
+ async getWorkflowStatusApiV1EntriesEntryIdWorkflowStatusGetRaw(requestParameters: GetWorkflowStatusApiV1EntriesEntryIdWorkflowStatusGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>> {
643
+ if (requestParameters['entryId'] == null) {
644
+ throw new runtime.RequiredError(
645
+ 'entryId',
646
+ 'Required parameter "entryId" was null or undefined when calling getWorkflowStatusApiV1EntriesEntryIdWorkflowStatusGet().'
647
+ );
648
+ }
649
+
650
+ const queryParameters: any = {};
651
+
652
+ const headerParameters: runtime.HTTPHeaders = {};
653
+
654
+ const response = await this.request({
655
+ path: `/api/v1/entries/{entry_id}/workflow-status`.replace(`{${"entry_id"}}`, encodeURIComponent(String(requestParameters['entryId']))),
656
+ method: 'GET',
657
+ headers: headerParameters,
658
+ query: queryParameters,
659
+ }, initOverrides);
660
+
661
+ if (this.isJsonMime(response.headers.get('content-type'))) {
662
+ return new runtime.JSONApiResponse<any>(response);
663
+ } else {
664
+ return new runtime.TextApiResponse(response) as any;
665
+ }
666
+ }
667
+
668
+ /**
669
+ * Get workflow status for an entry. Queries Argo Workflows API to get the current status of the pipeline workflow for this entry, including individual task statuses. **Note**: This endpoint queries the Argo API directly. If the workflow is not found or Argo is unavailable, it will return Unknown status. **Returns**: - entry_id: Entry ID - workflow_name: Argo workflow name (if found) - workflow_status: Overall status (Pending, Running, Succeeded, Failed, Error, Unknown) - workflow_phase: Argo workflow phase - start_time: When workflow started - finish_time: When workflow completed (if finished) - tasks: List of individual task statuses - message: Status message or error details **Error Responses**: - 404: Entry not found - 503: Argo Workflows unavailable
670
+ * Get Workflow Status
671
+ */
672
+ async getWorkflowStatusApiV1EntriesEntryIdWorkflowStatusGet(requestParameters: GetWorkflowStatusApiV1EntriesEntryIdWorkflowStatusGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any> {
673
+ const response = await this.getWorkflowStatusApiV1EntriesEntryIdWorkflowStatusGetRaw(requestParameters, initOverrides);
674
+ return await response.value();
675
+ }
676
+
677
+ /**
678
+ * Index chunks for an entry into Qdrant vector database. This endpoint is called by processing pipelines after chunking and embedding. Request body: { \"chunks\": [ { \"chunk_text\": \"...\", \"chunk_index\": 0, \"embedding\": [0.1, 0.2, ...], \"metadata\": {\"page_number\": 1, ...} } ] } Note: Collection name is always determined by the tenant\'s QDRANT_COLLECTION_NAME configuration.
679
+ * Index Entry Chunks
680
+ */
681
+ async indexEntryChunksApiV1EntriesEntryIdChunksPostRaw(requestParameters: IndexEntryChunksApiV1EntriesEntryIdChunksPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{ [key: string]: any; }>> {
682
+ if (requestParameters['entryId'] == null) {
683
+ throw new runtime.RequiredError(
684
+ 'entryId',
685
+ 'Required parameter "entryId" was null or undefined when calling indexEntryChunksApiV1EntriesEntryIdChunksPost().'
686
+ );
687
+ }
688
+
689
+ if (requestParameters['requestBody'] == null) {
690
+ throw new runtime.RequiredError(
691
+ 'requestBody',
692
+ 'Required parameter "requestBody" was null or undefined when calling indexEntryChunksApiV1EntriesEntryIdChunksPost().'
693
+ );
694
+ }
695
+
696
+ const queryParameters: any = {};
697
+
698
+ const headerParameters: runtime.HTTPHeaders = {};
699
+
700
+ headerParameters['Content-Type'] = 'application/json';
701
+
702
+ const response = await this.request({
703
+ path: `/api/v1/entries/{entry_id}/chunks`.replace(`{${"entry_id"}}`, encodeURIComponent(String(requestParameters['entryId']))),
704
+ method: 'POST',
705
+ headers: headerParameters,
706
+ query: queryParameters,
707
+ body: requestParameters['requestBody'],
708
+ }, initOverrides);
709
+
710
+ return new runtime.JSONApiResponse<any>(response);
711
+ }
712
+
713
+ /**
714
+ * Index chunks for an entry into Qdrant vector database. This endpoint is called by processing pipelines after chunking and embedding. Request body: { \"chunks\": [ { \"chunk_text\": \"...\", \"chunk_index\": 0, \"embedding\": [0.1, 0.2, ...], \"metadata\": {\"page_number\": 1, ...} } ] } Note: Collection name is always determined by the tenant\'s QDRANT_COLLECTION_NAME configuration.
715
+ * Index Entry Chunks
716
+ */
717
+ async indexEntryChunksApiV1EntriesEntryIdChunksPost(requestParameters: IndexEntryChunksApiV1EntriesEntryIdChunksPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{ [key: string]: any; }> {
718
+ const response = await this.indexEntryChunksApiV1EntriesEntryIdChunksPostRaw(requestParameters, initOverrides);
719
+ return await response.value();
720
+ }
721
+
722
+ /**
723
+ * List entries for a dataset with pagination. Query parameters: - dataset_id: Dataset ID (required) - page: Page number (default: 1) - limit: Items per page (default: 20, max: 100) - status_filter: Filter by status (optional) Returns paginated list of entries.
724
+ * List Entries
725
+ */
726
+ async listEntriesApiV1EntriesGetRaw(requestParameters: ListEntriesApiV1EntriesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{ [key: string]: any; }>> {
727
+ if (requestParameters['datasetId'] == null) {
728
+ throw new runtime.RequiredError(
729
+ 'datasetId',
730
+ 'Required parameter "datasetId" was null or undefined when calling listEntriesApiV1EntriesGet().'
731
+ );
732
+ }
733
+
734
+ const queryParameters: any = {};
735
+
736
+ if (requestParameters['datasetId'] != null) {
737
+ queryParameters['dataset_id'] = requestParameters['datasetId'];
738
+ }
739
+
740
+ if (requestParameters['page'] != null) {
741
+ queryParameters['page'] = requestParameters['page'];
742
+ }
743
+
744
+ if (requestParameters['limit'] != null) {
745
+ queryParameters['limit'] = requestParameters['limit'];
746
+ }
747
+
748
+ if (requestParameters['statusFilter'] != null) {
749
+ queryParameters['status_filter'] = requestParameters['statusFilter'];
750
+ }
751
+
752
+ const headerParameters: runtime.HTTPHeaders = {};
753
+
754
+ const response = await this.request({
755
+ path: `/api/v1/entries`,
756
+ method: 'GET',
757
+ headers: headerParameters,
758
+ query: queryParameters,
759
+ }, initOverrides);
760
+
761
+ return new runtime.JSONApiResponse<any>(response);
762
+ }
763
+
764
+ /**
765
+ * List entries for a dataset with pagination. Query parameters: - dataset_id: Dataset ID (required) - page: Page number (default: 1) - limit: Items per page (default: 20, max: 100) - status_filter: Filter by status (optional) Returns paginated list of entries.
766
+ * List Entries
767
+ */
768
+ async listEntriesApiV1EntriesGet(requestParameters: ListEntriesApiV1EntriesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{ [key: string]: any; }> {
769
+ const response = await this.listEntriesApiV1EntriesGetRaw(requestParameters, initOverrides);
770
+ return await response.value();
771
+ }
772
+
773
+ /**
774
+ * Save processed content for an entry. Called by workers/pipelines after processing.
775
+ * Save Processed Content
776
+ */
777
+ async saveProcessedContentApiV1EntriesEntryIdProcessedPostRaw(requestParameters: SaveProcessedContentApiV1EntriesEntryIdProcessedPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SaveProcessedContentResponse>> {
778
+ if (requestParameters['entryId'] == null) {
779
+ throw new runtime.RequiredError(
780
+ 'entryId',
781
+ 'Required parameter "entryId" was null or undefined when calling saveProcessedContentApiV1EntriesEntryIdProcessedPost().'
782
+ );
783
+ }
784
+
785
+ if (requestParameters['saveProcessedContentRequest'] == null) {
786
+ throw new runtime.RequiredError(
787
+ 'saveProcessedContentRequest',
788
+ 'Required parameter "saveProcessedContentRequest" was null or undefined when calling saveProcessedContentApiV1EntriesEntryIdProcessedPost().'
789
+ );
790
+ }
791
+
792
+ const queryParameters: any = {};
793
+
794
+ const headerParameters: runtime.HTTPHeaders = {};
795
+
796
+ headerParameters['Content-Type'] = 'application/json';
797
+
798
+ const response = await this.request({
799
+ path: `/api/v1/entries/{entry_id}/processed`.replace(`{${"entry_id"}}`, encodeURIComponent(String(requestParameters['entryId']))),
800
+ method: 'POST',
801
+ headers: headerParameters,
802
+ query: queryParameters,
803
+ body: SaveProcessedContentRequestToJSON(requestParameters['saveProcessedContentRequest']),
804
+ }, initOverrides);
805
+
806
+ return new runtime.JSONApiResponse(response, (jsonValue) => SaveProcessedContentResponseFromJSON(jsonValue));
807
+ }
808
+
809
+ /**
810
+ * Save processed content for an entry. Called by workers/pipelines after processing.
811
+ * Save Processed Content
812
+ */
813
+ async saveProcessedContentApiV1EntriesEntryIdProcessedPost(requestParameters: SaveProcessedContentApiV1EntriesEntryIdProcessedPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SaveProcessedContentResponse> {
814
+ const response = await this.saveProcessedContentApiV1EntriesEntryIdProcessedPostRaw(requestParameters, initOverrides);
815
+ return await response.value();
816
+ }
817
+
818
+ /**
819
+ * Trigger pipeline workflow for an entry. This endpoint: 1. Validates entry exists and is in a triggerable state 2. Validates dataset has a pipeline configured and enabled 3. Builds Argo Workflow from pipeline config using PipelineBuilder 4. Updates entry status to \'processing\' 5. Submits workflow to Argo Workflows 6. Returns workflow metadata **Valid Entry Statuses**: uploaded, error **Requirements**: Dataset must have pipeline_config with enabled=true **Error Responses**: - 404: Entry not found - 400: Invalid entry status, pipeline not configured, or pipeline disabled - 500: Workflow submission failed
820
+ * Trigger Pipeline
821
+ */
822
+ async triggerPipelineApiV1EntriesEntryIdTriggerPipelinePostRaw(requestParameters: TriggerPipelineApiV1EntriesEntryIdTriggerPipelinePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>> {
823
+ if (requestParameters['entryId'] == null) {
824
+ throw new runtime.RequiredError(
825
+ 'entryId',
826
+ 'Required parameter "entryId" was null or undefined when calling triggerPipelineApiV1EntriesEntryIdTriggerPipelinePost().'
827
+ );
828
+ }
829
+
830
+ const queryParameters: any = {};
831
+
832
+ const headerParameters: runtime.HTTPHeaders = {};
833
+
834
+ const response = await this.request({
835
+ path: `/api/v1/entries/{entry_id}/trigger-pipeline`.replace(`{${"entry_id"}}`, encodeURIComponent(String(requestParameters['entryId']))),
836
+ method: 'POST',
837
+ headers: headerParameters,
838
+ query: queryParameters,
839
+ }, initOverrides);
840
+
841
+ if (this.isJsonMime(response.headers.get('content-type'))) {
842
+ return new runtime.JSONApiResponse<any>(response);
843
+ } else {
844
+ return new runtime.TextApiResponse(response) as any;
845
+ }
846
+ }
847
+
848
+ /**
849
+ * Trigger pipeline workflow for an entry. This endpoint: 1. Validates entry exists and is in a triggerable state 2. Validates dataset has a pipeline configured and enabled 3. Builds Argo Workflow from pipeline config using PipelineBuilder 4. Updates entry status to \'processing\' 5. Submits workflow to Argo Workflows 6. Returns workflow metadata **Valid Entry Statuses**: uploaded, error **Requirements**: Dataset must have pipeline_config with enabled=true **Error Responses**: - 404: Entry not found - 400: Invalid entry status, pipeline not configured, or pipeline disabled - 500: Workflow submission failed
850
+ * Trigger Pipeline
851
+ */
852
+ async triggerPipelineApiV1EntriesEntryIdTriggerPipelinePost(requestParameters: TriggerPipelineApiV1EntriesEntryIdTriggerPipelinePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any> {
853
+ const response = await this.triggerPipelineApiV1EntriesEntryIdTriggerPipelinePostRaw(requestParameters, initOverrides);
854
+ return await response.value();
855
+ }
856
+
857
+ /**
858
+ * Update entry metadata. Allows updating name, description, status, and metadata fields.
859
+ * Update Entry
860
+ */
861
+ async updateEntryApiV1EntriesEntryIdPatchRaw(requestParameters: UpdateEntryApiV1EntriesEntryIdPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Entry>> {
862
+ if (requestParameters['entryId'] == null) {
863
+ throw new runtime.RequiredError(
864
+ 'entryId',
865
+ 'Required parameter "entryId" was null or undefined when calling updateEntryApiV1EntriesEntryIdPatch().'
866
+ );
867
+ }
868
+
869
+ if (requestParameters['entryUpdateRequest'] == null) {
870
+ throw new runtime.RequiredError(
871
+ 'entryUpdateRequest',
872
+ 'Required parameter "entryUpdateRequest" was null or undefined when calling updateEntryApiV1EntriesEntryIdPatch().'
873
+ );
874
+ }
875
+
876
+ const queryParameters: any = {};
877
+
878
+ const headerParameters: runtime.HTTPHeaders = {};
879
+
880
+ headerParameters['Content-Type'] = 'application/json';
881
+
882
+ const response = await this.request({
883
+ path: `/api/v1/entries/{entry_id}`.replace(`{${"entry_id"}}`, encodeURIComponent(String(requestParameters['entryId']))),
884
+ method: 'PATCH',
885
+ headers: headerParameters,
886
+ query: queryParameters,
887
+ body: EntryUpdateRequestToJSON(requestParameters['entryUpdateRequest']),
888
+ }, initOverrides);
889
+
890
+ return new runtime.JSONApiResponse(response, (jsonValue) => EntryFromJSON(jsonValue));
891
+ }
892
+
893
+ /**
894
+ * Update entry metadata. Allows updating name, description, status, and metadata fields.
895
+ * Update Entry
896
+ */
897
+ async updateEntryApiV1EntriesEntryIdPatch(requestParameters: UpdateEntryApiV1EntriesEntryIdPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Entry> {
898
+ const response = await this.updateEntryApiV1EntriesEntryIdPatchRaw(requestParameters, initOverrides);
899
+ return await response.value();
900
+ }
901
+
902
+ /**
903
+ * Upload a file to an existing entry. This saves the file to MinIO and updates the entry manifest in the appropriate section. **File Types**: - `original`: Original uploaded files (default) - stored in manifest.original.files - `processing`: Intermediate processing artifacts - stored in manifest.processing.files - `processed`: Final processed outputs - stored in manifest.processed.additional_files Can be called multiple times to upload additional files of any type.
904
+ * Upload File To Entry
905
+ */
906
+ async uploadFileToEntryApiV1EntriesEntryIdUploadPostRaw(requestParameters: UploadFileToEntryApiV1EntriesEntryIdUploadPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UploadFileResponse>> {
907
+ if (requestParameters['entryId'] == null) {
908
+ throw new runtime.RequiredError(
909
+ 'entryId',
910
+ 'Required parameter "entryId" was null or undefined when calling uploadFileToEntryApiV1EntriesEntryIdUploadPost().'
911
+ );
912
+ }
913
+
914
+ if (requestParameters['file'] == null) {
915
+ throw new runtime.RequiredError(
916
+ 'file',
917
+ 'Required parameter "file" was null or undefined when calling uploadFileToEntryApiV1EntriesEntryIdUploadPost().'
918
+ );
919
+ }
920
+
921
+ const queryParameters: any = {};
922
+
923
+ const headerParameters: runtime.HTTPHeaders = {};
924
+
925
+ const consumes: runtime.Consume[] = [
926
+ { contentType: 'multipart/form-data' },
927
+ ];
928
+ // @ts-ignore: canConsumeForm may be unused
929
+ const canConsumeForm = runtime.canConsumeForm(consumes);
930
+
931
+ let formParams: { append(param: string, value: any): any };
932
+ let useForm = false;
933
+ // use FormData to transmit files using content-type "multipart/form-data"
934
+ useForm = canConsumeForm;
935
+ if (useForm) {
936
+ formParams = new FormData();
937
+ } else {
938
+ formParams = new URLSearchParams();
939
+ }
940
+
941
+ if (requestParameters['file'] != null) {
942
+ formParams.append('file', requestParameters['file'] as any);
943
+ }
944
+
945
+ if (requestParameters['fileType'] != null) {
946
+ formParams.append('file_type', requestParameters['fileType'] as any);
947
+ }
948
+
949
+ const response = await this.request({
950
+ path: `/api/v1/entries/{entry_id}/upload`.replace(`{${"entry_id"}}`, encodeURIComponent(String(requestParameters['entryId']))),
951
+ method: 'POST',
952
+ headers: headerParameters,
953
+ query: queryParameters,
954
+ body: formParams,
955
+ }, initOverrides);
956
+
957
+ return new runtime.JSONApiResponse(response, (jsonValue) => UploadFileResponseFromJSON(jsonValue));
958
+ }
959
+
960
+ /**
961
+ * Upload a file to an existing entry. This saves the file to MinIO and updates the entry manifest in the appropriate section. **File Types**: - `original`: Original uploaded files (default) - stored in manifest.original.files - `processing`: Intermediate processing artifacts - stored in manifest.processing.files - `processed`: Final processed outputs - stored in manifest.processed.additional_files Can be called multiple times to upload additional files of any type.
962
+ * Upload File To Entry
963
+ */
964
+ async uploadFileToEntryApiV1EntriesEntryIdUploadPost(requestParameters: UploadFileToEntryApiV1EntriesEntryIdUploadPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UploadFileResponse> {
965
+ const response = await this.uploadFileToEntryApiV1EntriesEntryIdUploadPostRaw(requestParameters, initOverrides);
966
+ return await response.value();
967
+ }
968
+
969
+ }