@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,125 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Client Data API
6
+ * Client Cluster Data API - Manifest-based storage service
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ var desc = Object.getOwnPropertyDescriptor(m, k);
18
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
+ desc = { enumerable: true, get: function() { return m[k]; } };
20
+ }
21
+ Object.defineProperty(o, k2, desc);
22
+ }) : (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ o[k2] = m[k];
25
+ }));
26
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
27
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
28
+ }) : function(o, v) {
29
+ o["default"] = v;
30
+ });
31
+ var __importStar = (this && this.__importStar) || (function () {
32
+ var ownKeys = function(o) {
33
+ ownKeys = Object.getOwnPropertyNames || function (o) {
34
+ var ar = [];
35
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
36
+ return ar;
37
+ };
38
+ return ownKeys(o);
39
+ };
40
+ return function (mod) {
41
+ if (mod && mod.__esModule) return mod;
42
+ var result = {};
43
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
44
+ __setModuleDefault(result, mod);
45
+ return result;
46
+ };
47
+ })();
48
+ Object.defineProperty(exports, "__esModule", { value: true });
49
+ exports.HealthApi = void 0;
50
+ const runtime = __importStar(require("../runtime"));
51
+ /**
52
+ *
53
+ */
54
+ class HealthApi extends runtime.BaseAPI {
55
+ /**
56
+ * Production-level health check endpoint. Checks all dependencies with latency measurements: - Database (PostgreSQL) - SELECT 1 query - Storage (MinIO/S3) - list_objects operation - Qdrant (Vector DB) - health check + collection info Returns: Comprehensive health status with per-service latency and overall status
57
+ * Health Check
58
+ */
59
+ async healthCheckApiV1HealthGetRaw(initOverrides) {
60
+ const queryParameters = {};
61
+ const headerParameters = {};
62
+ const response = await this.request({
63
+ path: `/api/v1/health`,
64
+ method: 'GET',
65
+ headers: headerParameters,
66
+ query: queryParameters,
67
+ }, initOverrides);
68
+ return new runtime.JSONApiResponse(response);
69
+ }
70
+ /**
71
+ * Production-level health check endpoint. Checks all dependencies with latency measurements: - Database (PostgreSQL) - SELECT 1 query - Storage (MinIO/S3) - list_objects operation - Qdrant (Vector DB) - health check + collection info Returns: Comprehensive health status with per-service latency and overall status
72
+ * Health Check
73
+ */
74
+ async healthCheckApiV1HealthGet(initOverrides) {
75
+ const response = await this.healthCheckApiV1HealthGetRaw(initOverrides);
76
+ return await response.value();
77
+ }
78
+ /**
79
+ * Liveness check for Kubernetes. Returns 200 if application is alive (even if dependencies are down).
80
+ * Liveness Check
81
+ */
82
+ async livenessCheckApiV1HealthLiveGetRaw(initOverrides) {
83
+ const queryParameters = {};
84
+ const headerParameters = {};
85
+ const response = await this.request({
86
+ path: `/api/v1/health/live`,
87
+ method: 'GET',
88
+ headers: headerParameters,
89
+ query: queryParameters,
90
+ }, initOverrides);
91
+ return new runtime.JSONApiResponse(response);
92
+ }
93
+ /**
94
+ * Liveness check for Kubernetes. Returns 200 if application is alive (even if dependencies are down).
95
+ * Liveness Check
96
+ */
97
+ async livenessCheckApiV1HealthLiveGet(initOverrides) {
98
+ const response = await this.livenessCheckApiV1HealthLiveGetRaw(initOverrides);
99
+ return await response.value();
100
+ }
101
+ /**
102
+ * Readiness check for Kubernetes. Returns 200 if ready to accept traffic.
103
+ * Readiness Check
104
+ */
105
+ async readinessCheckApiV1HealthReadyGetRaw(initOverrides) {
106
+ const queryParameters = {};
107
+ const headerParameters = {};
108
+ const response = await this.request({
109
+ path: `/api/v1/health/ready`,
110
+ method: 'GET',
111
+ headers: headerParameters,
112
+ query: queryParameters,
113
+ }, initOverrides);
114
+ return new runtime.JSONApiResponse(response);
115
+ }
116
+ /**
117
+ * Readiness check for Kubernetes. Returns 200 if ready to accept traffic.
118
+ * Readiness Check
119
+ */
120
+ async readinessCheckApiV1HealthReadyGet(initOverrides) {
121
+ const response = await this.readinessCheckApiV1HealthReadyGetRaw(initOverrides);
122
+ return await response.value();
123
+ }
124
+ }
125
+ exports.HealthApi = HealthApi;
@@ -0,0 +1,229 @@
1
+ /**
2
+ * Client Data API
3
+ * Client Cluster Data API - Manifest-based storage service
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ import type { ComponentListResponse, Dataset, DatasetPipelineConfigInput, DatasetPipelineConfigOutput, PresetListResponse } from '../models/index';
14
+ export interface ApplyPresetApiV1PipelinesDatasetsDatasetIdApplyPresetPostRequest {
15
+ datasetId: number;
16
+ presetName: string;
17
+ requestBody?: {
18
+ [key: string]: {
19
+ [key: string]: any;
20
+ };
21
+ } | null;
22
+ }
23
+ export interface ConfigurePipelineApiV1PipelinesDatasetsDatasetIdConfigPatchRequest {
24
+ datasetId: number;
25
+ datasetPipelineConfigInput: DatasetPipelineConfigInput;
26
+ }
27
+ export interface DisablePipelineApiV1PipelinesDatasetsDatasetIdConfigDeleteRequest {
28
+ datasetId: number;
29
+ }
30
+ export interface GetPipelineConfigApiV1PipelinesDatasetsDatasetIdConfigGetRequest {
31
+ datasetId: number;
32
+ }
33
+ /**
34
+ * PipelinesApi - interface
35
+ *
36
+ * @export
37
+ * @interface PipelinesApiInterface
38
+ */
39
+ export interface PipelinesApiInterface {
40
+ /**
41
+ * Apply a pre-defined pipeline preset to a dataset. Presets provide common pipeline configurations (e.g., \"pdf_ocr_qdrant\"). You can optionally override parameters for specific steps. Args: dataset_id: Dataset ID preset_name: Name of the preset (e.g., \"pdf_ocr_qdrant\", \"xml_jats_qdrant\") parameters: Optional parameter overrides per step name Example: {\"chunk\": {\"size\": 2048, \"overlap\": 256}} Returns: Updated dataset with pipeline configuration Available Presets: - pdf_ocr_qdrant: Process PDF files with OCR, chunk, embed, store in Qdrant - xml_jats_qdrant: Process XML JATS files, parse, chunk, embed, store in Qdrant Example: POST /pipelines/datasets/123/apply-preset?preset_name=pdf_ocr_qdrant { \"chunk\": {\"size\": 2048, \"overlap\": 256}, \"embed\": {\"batchsize\": 64} }
42
+ * @summary Apply Preset
43
+ * @param {number} datasetId
44
+ * @param {string} presetName
45
+ * @param {{ [key: string]: { [key: string]: any; }; }} [requestBody]
46
+ * @param {*} [options] Override http request option.
47
+ * @throws {RequiredError}
48
+ * @memberof PipelinesApiInterface
49
+ */
50
+ applyPresetApiV1PipelinesDatasetsDatasetIdApplyPresetPostRaw(requestParameters: ApplyPresetApiV1PipelinesDatasetsDatasetIdApplyPresetPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Dataset>>;
51
+ /**
52
+ * Apply a pre-defined pipeline preset to a dataset. Presets provide common pipeline configurations (e.g., \"pdf_ocr_qdrant\"). You can optionally override parameters for specific steps. Args: dataset_id: Dataset ID preset_name: Name of the preset (e.g., \"pdf_ocr_qdrant\", \"xml_jats_qdrant\") parameters: Optional parameter overrides per step name Example: {\"chunk\": {\"size\": 2048, \"overlap\": 256}} Returns: Updated dataset with pipeline configuration Available Presets: - pdf_ocr_qdrant: Process PDF files with OCR, chunk, embed, store in Qdrant - xml_jats_qdrant: Process XML JATS files, parse, chunk, embed, store in Qdrant Example: POST /pipelines/datasets/123/apply-preset?preset_name=pdf_ocr_qdrant { \"chunk\": {\"size\": 2048, \"overlap\": 256}, \"embed\": {\"batchsize\": 64} }
53
+ * Apply Preset
54
+ */
55
+ applyPresetApiV1PipelinesDatasetsDatasetIdApplyPresetPost(requestParameters: ApplyPresetApiV1PipelinesDatasetsDatasetIdApplyPresetPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Dataset>;
56
+ /**
57
+ * Configure or update the pipeline for a dataset. This sets the pipeline_config JSON that defines which Argo workflow steps to execute when entries are uploaded or manually triggered. Args: dataset_id: Dataset ID config: Complete pipeline configuration (enabled, trigger, steps, timeout) Returns: Updated dataset with pipeline configuration Example: PATCH /pipelines/datasets/123/config { \"enabled\": true, \"trigger\": \"on_upload\", \"timeout\": \"30m\", \"steps\": [ { \"name\": \"ocr\", \"component\": \"mistral-ocr-processor-v1\", \"template\": \"mistral-ocr-processor\", \"parameters\": {}, \"depends\": [], \"consumes\": [] } ] }
58
+ * @summary Configure Pipeline
59
+ * @param {number} datasetId
60
+ * @param {DatasetPipelineConfigInput} datasetPipelineConfigInput
61
+ * @param {*} [options] Override http request option.
62
+ * @throws {RequiredError}
63
+ * @memberof PipelinesApiInterface
64
+ */
65
+ configurePipelineApiV1PipelinesDatasetsDatasetIdConfigPatchRaw(requestParameters: ConfigurePipelineApiV1PipelinesDatasetsDatasetIdConfigPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Dataset>>;
66
+ /**
67
+ * Configure or update the pipeline for a dataset. This sets the pipeline_config JSON that defines which Argo workflow steps to execute when entries are uploaded or manually triggered. Args: dataset_id: Dataset ID config: Complete pipeline configuration (enabled, trigger, steps, timeout) Returns: Updated dataset with pipeline configuration Example: PATCH /pipelines/datasets/123/config { \"enabled\": true, \"trigger\": \"on_upload\", \"timeout\": \"30m\", \"steps\": [ { \"name\": \"ocr\", \"component\": \"mistral-ocr-processor-v1\", \"template\": \"mistral-ocr-processor\", \"parameters\": {}, \"depends\": [], \"consumes\": [] } ] }
68
+ * Configure Pipeline
69
+ */
70
+ configurePipelineApiV1PipelinesDatasetsDatasetIdConfigPatch(requestParameters: ConfigurePipelineApiV1PipelinesDatasetsDatasetIdConfigPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Dataset>;
71
+ /**
72
+ * Disable or remove the pipeline configuration for a dataset. This sets pipeline_config to None, preventing automatic pipeline execution. Args: dataset_id: Dataset ID
73
+ * @summary Disable Pipeline
74
+ * @param {number} datasetId
75
+ * @param {*} [options] Override http request option.
76
+ * @throws {RequiredError}
77
+ * @memberof PipelinesApiInterface
78
+ */
79
+ disablePipelineApiV1PipelinesDatasetsDatasetIdConfigDeleteRaw(requestParameters: DisablePipelineApiV1PipelinesDatasetsDatasetIdConfigDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
80
+ /**
81
+ * Disable or remove the pipeline configuration for a dataset. This sets pipeline_config to None, preventing automatic pipeline execution. Args: dataset_id: Dataset ID
82
+ * Disable Pipeline
83
+ */
84
+ disablePipelineApiV1PipelinesDatasetsDatasetIdConfigDelete(requestParameters: DisablePipelineApiV1PipelinesDatasetsDatasetIdConfigDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
85
+ /**
86
+ * Get the current pipeline configuration for a dataset. Returns None if no pipeline is configured. Args: dataset_id: Dataset ID Returns: Pipeline configuration or None
87
+ * @summary Get Pipeline Config
88
+ * @param {number} datasetId
89
+ * @param {*} [options] Override http request option.
90
+ * @throws {RequiredError}
91
+ * @memberof PipelinesApiInterface
92
+ */
93
+ getPipelineConfigApiV1PipelinesDatasetsDatasetIdConfigGetRaw(requestParameters: GetPipelineConfigApiV1PipelinesDatasetsDatasetIdConfigGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DatasetPipelineConfigOutput>>;
94
+ /**
95
+ * Get the current pipeline configuration for a dataset. Returns None if no pipeline is configured. Args: dataset_id: Dataset ID Returns: Pipeline configuration or None
96
+ * Get Pipeline Config
97
+ */
98
+ getPipelineConfigApiV1PipelinesDatasetsDatasetIdConfigGet(requestParameters: GetPipelineConfigApiV1PipelinesDatasetsDatasetIdConfigGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DatasetPipelineConfigOutput>;
99
+ /**
100
+ * Get detailed preset configurations. Returns a dictionary mapping preset names to their full configurations. Use /pipelines/presets for a simple list. Returns: Dictionary of preset configurations Example Response: { \"pdf_ocr_qdrant\": { \"name\": \"pdf_ocr_qdrant\", \"description\": \"Process PDF files: OCR → Markdown → Chunking → Embeddings → Qdrant\", \"config\": { ... } } }
101
+ * @summary Get Preset Details
102
+ * @param {*} [options] Override http request option.
103
+ * @throws {RequiredError}
104
+ * @memberof PipelinesApiInterface
105
+ */
106
+ getPresetDetailsApiV1PipelinesPresetsDetailsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
107
+ [key: string]: {
108
+ [key: string]: any;
109
+ };
110
+ }>>;
111
+ /**
112
+ * Get detailed preset configurations. Returns a dictionary mapping preset names to their full configurations. Use /pipelines/presets for a simple list. Returns: Dictionary of preset configurations Example Response: { \"pdf_ocr_qdrant\": { \"name\": \"pdf_ocr_qdrant\", \"description\": \"Process PDF files: OCR → Markdown → Chunking → Embeddings → Qdrant\", \"config\": { ... } } }
113
+ * Get Preset Details
114
+ */
115
+ getPresetDetailsApiV1PipelinesPresetsDetailsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
116
+ [key: string]: {
117
+ [key: string]: any;
118
+ };
119
+ }>;
120
+ /**
121
+ * Discover available pipeline components from Kubernetes WorkflowTemplates. Queries the Kubernetes API for WorkflowTemplates in the \'argo\' namespace that are labeled with \'managed-by=alienargo\'. Returns component metadata including parameters, inputs, and outputs. Components are cached for 5 minutes to reduce Kubernetes API load. Returns: List of available components with metadata Example Response: { \"components\": [ { \"name\": \"mistral-ocr-processor-v1\", \"type\": \"ocr\", \"version\": \"v1\", \"description\": \"OCR processing using Mistral Vision API\", \"parameters\": [ {\"name\": \"max_pages\", \"default\": 100, \"description\": \"Maximum pages to process\"} ], \"inputs\": [{\"name\": \"input-pdf\", \"path\": \"/tmp/input.pdf\", \"optional\": false}], \"outputs\": [{\"name\": \"output-markdown\", \"path\": \"/tmp/output.md\", \"optional\": false}] } ], \"total\": 1, \"timestamp\": \"2025-01-08T12:00:00Z\" }
122
+ * @summary List Pipeline Components
123
+ * @param {*} [options] Override http request option.
124
+ * @throws {RequiredError}
125
+ * @memberof PipelinesApiInterface
126
+ */
127
+ listPipelineComponentsApiV1PipelinesComponentsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ComponentListResponse>>;
128
+ /**
129
+ * Discover available pipeline components from Kubernetes WorkflowTemplates. Queries the Kubernetes API for WorkflowTemplates in the \'argo\' namespace that are labeled with \'managed-by=alienargo\'. Returns component metadata including parameters, inputs, and outputs. Components are cached for 5 minutes to reduce Kubernetes API load. Returns: List of available components with metadata Example Response: { \"components\": [ { \"name\": \"mistral-ocr-processor-v1\", \"type\": \"ocr\", \"version\": \"v1\", \"description\": \"OCR processing using Mistral Vision API\", \"parameters\": [ {\"name\": \"max_pages\", \"default\": 100, \"description\": \"Maximum pages to process\"} ], \"inputs\": [{\"name\": \"input-pdf\", \"path\": \"/tmp/input.pdf\", \"optional\": false}], \"outputs\": [{\"name\": \"output-markdown\", \"path\": \"/tmp/output.md\", \"optional\": false}] } ], \"total\": 1, \"timestamp\": \"2025-01-08T12:00:00Z\" }
130
+ * List Pipeline Components
131
+ */
132
+ listPipelineComponentsApiV1PipelinesComponentsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ComponentListResponse>;
133
+ /**
134
+ * List all available pipeline presets. Presets are pre-configured pipeline templates that can be applied to datasets with optional parameter customization. Returns: List of preset names and descriptions Example Response: { \"presets\": [ { \"name\": \"pdf_ocr_qdrant\", \"description\": \"Process PDF files: OCR → Markdown → Chunking → Embeddings → Qdrant\" }, { \"name\": \"xml_jats_qdrant\", \"description\": \"Process XML JATS files: Parse → Chunking → Embeddings → Qdrant\" } ], \"total\": 2 }
135
+ * @summary List Pipeline Presets
136
+ * @param {*} [options] Override http request option.
137
+ * @throws {RequiredError}
138
+ * @memberof PipelinesApiInterface
139
+ */
140
+ listPipelinePresetsApiV1PipelinesPresetsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PresetListResponse>>;
141
+ /**
142
+ * List all available pipeline presets. Presets are pre-configured pipeline templates that can be applied to datasets with optional parameter customization. Returns: List of preset names and descriptions Example Response: { \"presets\": [ { \"name\": \"pdf_ocr_qdrant\", \"description\": \"Process PDF files: OCR → Markdown → Chunking → Embeddings → Qdrant\" }, { \"name\": \"xml_jats_qdrant\", \"description\": \"Process XML JATS files: Parse → Chunking → Embeddings → Qdrant\" } ], \"total\": 2 }
143
+ * List Pipeline Presets
144
+ */
145
+ listPipelinePresetsApiV1PipelinesPresetsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PresetListResponse>;
146
+ }
147
+ /**
148
+ *
149
+ */
150
+ export declare class PipelinesApi extends runtime.BaseAPI implements PipelinesApiInterface {
151
+ /**
152
+ * Apply a pre-defined pipeline preset to a dataset. Presets provide common pipeline configurations (e.g., \"pdf_ocr_qdrant\"). You can optionally override parameters for specific steps. Args: dataset_id: Dataset ID preset_name: Name of the preset (e.g., \"pdf_ocr_qdrant\", \"xml_jats_qdrant\") parameters: Optional parameter overrides per step name Example: {\"chunk\": {\"size\": 2048, \"overlap\": 256}} Returns: Updated dataset with pipeline configuration Available Presets: - pdf_ocr_qdrant: Process PDF files with OCR, chunk, embed, store in Qdrant - xml_jats_qdrant: Process XML JATS files, parse, chunk, embed, store in Qdrant Example: POST /pipelines/datasets/123/apply-preset?preset_name=pdf_ocr_qdrant { \"chunk\": {\"size\": 2048, \"overlap\": 256}, \"embed\": {\"batchsize\": 64} }
153
+ * Apply Preset
154
+ */
155
+ applyPresetApiV1PipelinesDatasetsDatasetIdApplyPresetPostRaw(requestParameters: ApplyPresetApiV1PipelinesDatasetsDatasetIdApplyPresetPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Dataset>>;
156
+ /**
157
+ * Apply a pre-defined pipeline preset to a dataset. Presets provide common pipeline configurations (e.g., \"pdf_ocr_qdrant\"). You can optionally override parameters for specific steps. Args: dataset_id: Dataset ID preset_name: Name of the preset (e.g., \"pdf_ocr_qdrant\", \"xml_jats_qdrant\") parameters: Optional parameter overrides per step name Example: {\"chunk\": {\"size\": 2048, \"overlap\": 256}} Returns: Updated dataset with pipeline configuration Available Presets: - pdf_ocr_qdrant: Process PDF files with OCR, chunk, embed, store in Qdrant - xml_jats_qdrant: Process XML JATS files, parse, chunk, embed, store in Qdrant Example: POST /pipelines/datasets/123/apply-preset?preset_name=pdf_ocr_qdrant { \"chunk\": {\"size\": 2048, \"overlap\": 256}, \"embed\": {\"batchsize\": 64} }
158
+ * Apply Preset
159
+ */
160
+ applyPresetApiV1PipelinesDatasetsDatasetIdApplyPresetPost(requestParameters: ApplyPresetApiV1PipelinesDatasetsDatasetIdApplyPresetPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Dataset>;
161
+ /**
162
+ * Configure or update the pipeline for a dataset. This sets the pipeline_config JSON that defines which Argo workflow steps to execute when entries are uploaded or manually triggered. Args: dataset_id: Dataset ID config: Complete pipeline configuration (enabled, trigger, steps, timeout) Returns: Updated dataset with pipeline configuration Example: PATCH /pipelines/datasets/123/config { \"enabled\": true, \"trigger\": \"on_upload\", \"timeout\": \"30m\", \"steps\": [ { \"name\": \"ocr\", \"component\": \"mistral-ocr-processor-v1\", \"template\": \"mistral-ocr-processor\", \"parameters\": {}, \"depends\": [], \"consumes\": [] } ] }
163
+ * Configure Pipeline
164
+ */
165
+ configurePipelineApiV1PipelinesDatasetsDatasetIdConfigPatchRaw(requestParameters: ConfigurePipelineApiV1PipelinesDatasetsDatasetIdConfigPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Dataset>>;
166
+ /**
167
+ * Configure or update the pipeline for a dataset. This sets the pipeline_config JSON that defines which Argo workflow steps to execute when entries are uploaded or manually triggered. Args: dataset_id: Dataset ID config: Complete pipeline configuration (enabled, trigger, steps, timeout) Returns: Updated dataset with pipeline configuration Example: PATCH /pipelines/datasets/123/config { \"enabled\": true, \"trigger\": \"on_upload\", \"timeout\": \"30m\", \"steps\": [ { \"name\": \"ocr\", \"component\": \"mistral-ocr-processor-v1\", \"template\": \"mistral-ocr-processor\", \"parameters\": {}, \"depends\": [], \"consumes\": [] } ] }
168
+ * Configure Pipeline
169
+ */
170
+ configurePipelineApiV1PipelinesDatasetsDatasetIdConfigPatch(requestParameters: ConfigurePipelineApiV1PipelinesDatasetsDatasetIdConfigPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Dataset>;
171
+ /**
172
+ * Disable or remove the pipeline configuration for a dataset. This sets pipeline_config to None, preventing automatic pipeline execution. Args: dataset_id: Dataset ID
173
+ * Disable Pipeline
174
+ */
175
+ disablePipelineApiV1PipelinesDatasetsDatasetIdConfigDeleteRaw(requestParameters: DisablePipelineApiV1PipelinesDatasetsDatasetIdConfigDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
176
+ /**
177
+ * Disable or remove the pipeline configuration for a dataset. This sets pipeline_config to None, preventing automatic pipeline execution. Args: dataset_id: Dataset ID
178
+ * Disable Pipeline
179
+ */
180
+ disablePipelineApiV1PipelinesDatasetsDatasetIdConfigDelete(requestParameters: DisablePipelineApiV1PipelinesDatasetsDatasetIdConfigDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
181
+ /**
182
+ * Get the current pipeline configuration for a dataset. Returns None if no pipeline is configured. Args: dataset_id: Dataset ID Returns: Pipeline configuration or None
183
+ * Get Pipeline Config
184
+ */
185
+ getPipelineConfigApiV1PipelinesDatasetsDatasetIdConfigGetRaw(requestParameters: GetPipelineConfigApiV1PipelinesDatasetsDatasetIdConfigGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DatasetPipelineConfigOutput>>;
186
+ /**
187
+ * Get the current pipeline configuration for a dataset. Returns None if no pipeline is configured. Args: dataset_id: Dataset ID Returns: Pipeline configuration or None
188
+ * Get Pipeline Config
189
+ */
190
+ getPipelineConfigApiV1PipelinesDatasetsDatasetIdConfigGet(requestParameters: GetPipelineConfigApiV1PipelinesDatasetsDatasetIdConfigGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DatasetPipelineConfigOutput>;
191
+ /**
192
+ * Get detailed preset configurations. Returns a dictionary mapping preset names to their full configurations. Use /pipelines/presets for a simple list. Returns: Dictionary of preset configurations Example Response: { \"pdf_ocr_qdrant\": { \"name\": \"pdf_ocr_qdrant\", \"description\": \"Process PDF files: OCR → Markdown → Chunking → Embeddings → Qdrant\", \"config\": { ... } } }
193
+ * Get Preset Details
194
+ */
195
+ getPresetDetailsApiV1PipelinesPresetsDetailsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
196
+ [key: string]: {
197
+ [key: string]: any;
198
+ };
199
+ }>>;
200
+ /**
201
+ * Get detailed preset configurations. Returns a dictionary mapping preset names to their full configurations. Use /pipelines/presets for a simple list. Returns: Dictionary of preset configurations Example Response: { \"pdf_ocr_qdrant\": { \"name\": \"pdf_ocr_qdrant\", \"description\": \"Process PDF files: OCR → Markdown → Chunking → Embeddings → Qdrant\", \"config\": { ... } } }
202
+ * Get Preset Details
203
+ */
204
+ getPresetDetailsApiV1PipelinesPresetsDetailsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
205
+ [key: string]: {
206
+ [key: string]: any;
207
+ };
208
+ }>;
209
+ /**
210
+ * Discover available pipeline components from Kubernetes WorkflowTemplates. Queries the Kubernetes API for WorkflowTemplates in the \'argo\' namespace that are labeled with \'managed-by=alienargo\'. Returns component metadata including parameters, inputs, and outputs. Components are cached for 5 minutes to reduce Kubernetes API load. Returns: List of available components with metadata Example Response: { \"components\": [ { \"name\": \"mistral-ocr-processor-v1\", \"type\": \"ocr\", \"version\": \"v1\", \"description\": \"OCR processing using Mistral Vision API\", \"parameters\": [ {\"name\": \"max_pages\", \"default\": 100, \"description\": \"Maximum pages to process\"} ], \"inputs\": [{\"name\": \"input-pdf\", \"path\": \"/tmp/input.pdf\", \"optional\": false}], \"outputs\": [{\"name\": \"output-markdown\", \"path\": \"/tmp/output.md\", \"optional\": false}] } ], \"total\": 1, \"timestamp\": \"2025-01-08T12:00:00Z\" }
211
+ * List Pipeline Components
212
+ */
213
+ listPipelineComponentsApiV1PipelinesComponentsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ComponentListResponse>>;
214
+ /**
215
+ * Discover available pipeline components from Kubernetes WorkflowTemplates. Queries the Kubernetes API for WorkflowTemplates in the \'argo\' namespace that are labeled with \'managed-by=alienargo\'. Returns component metadata including parameters, inputs, and outputs. Components are cached for 5 minutes to reduce Kubernetes API load. Returns: List of available components with metadata Example Response: { \"components\": [ { \"name\": \"mistral-ocr-processor-v1\", \"type\": \"ocr\", \"version\": \"v1\", \"description\": \"OCR processing using Mistral Vision API\", \"parameters\": [ {\"name\": \"max_pages\", \"default\": 100, \"description\": \"Maximum pages to process\"} ], \"inputs\": [{\"name\": \"input-pdf\", \"path\": \"/tmp/input.pdf\", \"optional\": false}], \"outputs\": [{\"name\": \"output-markdown\", \"path\": \"/tmp/output.md\", \"optional\": false}] } ], \"total\": 1, \"timestamp\": \"2025-01-08T12:00:00Z\" }
216
+ * List Pipeline Components
217
+ */
218
+ listPipelineComponentsApiV1PipelinesComponentsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ComponentListResponse>;
219
+ /**
220
+ * List all available pipeline presets. Presets are pre-configured pipeline templates that can be applied to datasets with optional parameter customization. Returns: List of preset names and descriptions Example Response: { \"presets\": [ { \"name\": \"pdf_ocr_qdrant\", \"description\": \"Process PDF files: OCR → Markdown → Chunking → Embeddings → Qdrant\" }, { \"name\": \"xml_jats_qdrant\", \"description\": \"Process XML JATS files: Parse → Chunking → Embeddings → Qdrant\" } ], \"total\": 2 }
221
+ * List Pipeline Presets
222
+ */
223
+ listPipelinePresetsApiV1PipelinesPresetsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PresetListResponse>>;
224
+ /**
225
+ * List all available pipeline presets. Presets are pre-configured pipeline templates that can be applied to datasets with optional parameter customization. Returns: List of preset names and descriptions Example Response: { \"presets\": [ { \"name\": \"pdf_ocr_qdrant\", \"description\": \"Process PDF files: OCR → Markdown → Chunking → Embeddings → Qdrant\" }, { \"name\": \"xml_jats_qdrant\", \"description\": \"Process XML JATS files: Parse → Chunking → Embeddings → Qdrant\" } ], \"total\": 2 }
226
+ * List Pipeline Presets
227
+ */
228
+ listPipelinePresetsApiV1PipelinesPresetsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PresetListResponse>;
229
+ }
@@ -0,0 +1,242 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Client Data API
6
+ * Client Cluster Data API - Manifest-based storage service
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ var desc = Object.getOwnPropertyDescriptor(m, k);
18
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
+ desc = { enumerable: true, get: function() { return m[k]; } };
20
+ }
21
+ Object.defineProperty(o, k2, desc);
22
+ }) : (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ o[k2] = m[k];
25
+ }));
26
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
27
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
28
+ }) : function(o, v) {
29
+ o["default"] = v;
30
+ });
31
+ var __importStar = (this && this.__importStar) || (function () {
32
+ var ownKeys = function(o) {
33
+ ownKeys = Object.getOwnPropertyNames || function (o) {
34
+ var ar = [];
35
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
36
+ return ar;
37
+ };
38
+ return ownKeys(o);
39
+ };
40
+ return function (mod) {
41
+ if (mod && mod.__esModule) return mod;
42
+ var result = {};
43
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
44
+ __setModuleDefault(result, mod);
45
+ return result;
46
+ };
47
+ })();
48
+ Object.defineProperty(exports, "__esModule", { value: true });
49
+ exports.PipelinesApi = void 0;
50
+ const runtime = __importStar(require("../runtime"));
51
+ const index_1 = require("../models/index");
52
+ /**
53
+ *
54
+ */
55
+ class PipelinesApi extends runtime.BaseAPI {
56
+ /**
57
+ * Apply a pre-defined pipeline preset to a dataset. Presets provide common pipeline configurations (e.g., \"pdf_ocr_qdrant\"). You can optionally override parameters for specific steps. Args: dataset_id: Dataset ID preset_name: Name of the preset (e.g., \"pdf_ocr_qdrant\", \"xml_jats_qdrant\") parameters: Optional parameter overrides per step name Example: {\"chunk\": {\"size\": 2048, \"overlap\": 256}} Returns: Updated dataset with pipeline configuration Available Presets: - pdf_ocr_qdrant: Process PDF files with OCR, chunk, embed, store in Qdrant - xml_jats_qdrant: Process XML JATS files, parse, chunk, embed, store in Qdrant Example: POST /pipelines/datasets/123/apply-preset?preset_name=pdf_ocr_qdrant { \"chunk\": {\"size\": 2048, \"overlap\": 256}, \"embed\": {\"batchsize\": 64} }
58
+ * Apply Preset
59
+ */
60
+ async applyPresetApiV1PipelinesDatasetsDatasetIdApplyPresetPostRaw(requestParameters, initOverrides) {
61
+ if (requestParameters['datasetId'] == null) {
62
+ throw new runtime.RequiredError('datasetId', 'Required parameter "datasetId" was null or undefined when calling applyPresetApiV1PipelinesDatasetsDatasetIdApplyPresetPost().');
63
+ }
64
+ if (requestParameters['presetName'] == null) {
65
+ throw new runtime.RequiredError('presetName', 'Required parameter "presetName" was null or undefined when calling applyPresetApiV1PipelinesDatasetsDatasetIdApplyPresetPost().');
66
+ }
67
+ const queryParameters = {};
68
+ if (requestParameters['presetName'] != null) {
69
+ queryParameters['preset_name'] = requestParameters['presetName'];
70
+ }
71
+ const headerParameters = {};
72
+ headerParameters['Content-Type'] = 'application/json';
73
+ const response = await this.request({
74
+ path: `/api/v1/pipelines/datasets/{dataset_id}/apply-preset`.replace(`{${"dataset_id"}}`, encodeURIComponent(String(requestParameters['datasetId']))),
75
+ method: 'POST',
76
+ headers: headerParameters,
77
+ query: queryParameters,
78
+ body: requestParameters['requestBody'],
79
+ }, initOverrides);
80
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DatasetFromJSON)(jsonValue));
81
+ }
82
+ /**
83
+ * Apply a pre-defined pipeline preset to a dataset. Presets provide common pipeline configurations (e.g., \"pdf_ocr_qdrant\"). You can optionally override parameters for specific steps. Args: dataset_id: Dataset ID preset_name: Name of the preset (e.g., \"pdf_ocr_qdrant\", \"xml_jats_qdrant\") parameters: Optional parameter overrides per step name Example: {\"chunk\": {\"size\": 2048, \"overlap\": 256}} Returns: Updated dataset with pipeline configuration Available Presets: - pdf_ocr_qdrant: Process PDF files with OCR, chunk, embed, store in Qdrant - xml_jats_qdrant: Process XML JATS files, parse, chunk, embed, store in Qdrant Example: POST /pipelines/datasets/123/apply-preset?preset_name=pdf_ocr_qdrant { \"chunk\": {\"size\": 2048, \"overlap\": 256}, \"embed\": {\"batchsize\": 64} }
84
+ * Apply Preset
85
+ */
86
+ async applyPresetApiV1PipelinesDatasetsDatasetIdApplyPresetPost(requestParameters, initOverrides) {
87
+ const response = await this.applyPresetApiV1PipelinesDatasetsDatasetIdApplyPresetPostRaw(requestParameters, initOverrides);
88
+ return await response.value();
89
+ }
90
+ /**
91
+ * Configure or update the pipeline for a dataset. This sets the pipeline_config JSON that defines which Argo workflow steps to execute when entries are uploaded or manually triggered. Args: dataset_id: Dataset ID config: Complete pipeline configuration (enabled, trigger, steps, timeout) Returns: Updated dataset with pipeline configuration Example: PATCH /pipelines/datasets/123/config { \"enabled\": true, \"trigger\": \"on_upload\", \"timeout\": \"30m\", \"steps\": [ { \"name\": \"ocr\", \"component\": \"mistral-ocr-processor-v1\", \"template\": \"mistral-ocr-processor\", \"parameters\": {}, \"depends\": [], \"consumes\": [] } ] }
92
+ * Configure Pipeline
93
+ */
94
+ async configurePipelineApiV1PipelinesDatasetsDatasetIdConfigPatchRaw(requestParameters, initOverrides) {
95
+ if (requestParameters['datasetId'] == null) {
96
+ throw new runtime.RequiredError('datasetId', 'Required parameter "datasetId" was null or undefined when calling configurePipelineApiV1PipelinesDatasetsDatasetIdConfigPatch().');
97
+ }
98
+ if (requestParameters['datasetPipelineConfigInput'] == null) {
99
+ throw new runtime.RequiredError('datasetPipelineConfigInput', 'Required parameter "datasetPipelineConfigInput" was null or undefined when calling configurePipelineApiV1PipelinesDatasetsDatasetIdConfigPatch().');
100
+ }
101
+ const queryParameters = {};
102
+ const headerParameters = {};
103
+ headerParameters['Content-Type'] = 'application/json';
104
+ const response = await this.request({
105
+ path: `/api/v1/pipelines/datasets/{dataset_id}/config`.replace(`{${"dataset_id"}}`, encodeURIComponent(String(requestParameters['datasetId']))),
106
+ method: 'PATCH',
107
+ headers: headerParameters,
108
+ query: queryParameters,
109
+ body: (0, index_1.DatasetPipelineConfigInputToJSON)(requestParameters['datasetPipelineConfigInput']),
110
+ }, initOverrides);
111
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DatasetFromJSON)(jsonValue));
112
+ }
113
+ /**
114
+ * Configure or update the pipeline for a dataset. This sets the pipeline_config JSON that defines which Argo workflow steps to execute when entries are uploaded or manually triggered. Args: dataset_id: Dataset ID config: Complete pipeline configuration (enabled, trigger, steps, timeout) Returns: Updated dataset with pipeline configuration Example: PATCH /pipelines/datasets/123/config { \"enabled\": true, \"trigger\": \"on_upload\", \"timeout\": \"30m\", \"steps\": [ { \"name\": \"ocr\", \"component\": \"mistral-ocr-processor-v1\", \"template\": \"mistral-ocr-processor\", \"parameters\": {}, \"depends\": [], \"consumes\": [] } ] }
115
+ * Configure Pipeline
116
+ */
117
+ async configurePipelineApiV1PipelinesDatasetsDatasetIdConfigPatch(requestParameters, initOverrides) {
118
+ const response = await this.configurePipelineApiV1PipelinesDatasetsDatasetIdConfigPatchRaw(requestParameters, initOverrides);
119
+ return await response.value();
120
+ }
121
+ /**
122
+ * Disable or remove the pipeline configuration for a dataset. This sets pipeline_config to None, preventing automatic pipeline execution. Args: dataset_id: Dataset ID
123
+ * Disable Pipeline
124
+ */
125
+ async disablePipelineApiV1PipelinesDatasetsDatasetIdConfigDeleteRaw(requestParameters, initOverrides) {
126
+ if (requestParameters['datasetId'] == null) {
127
+ throw new runtime.RequiredError('datasetId', 'Required parameter "datasetId" was null or undefined when calling disablePipelineApiV1PipelinesDatasetsDatasetIdConfigDelete().');
128
+ }
129
+ const queryParameters = {};
130
+ const headerParameters = {};
131
+ const response = await this.request({
132
+ path: `/api/v1/pipelines/datasets/{dataset_id}/config`.replace(`{${"dataset_id"}}`, encodeURIComponent(String(requestParameters['datasetId']))),
133
+ method: 'DELETE',
134
+ headers: headerParameters,
135
+ query: queryParameters,
136
+ }, initOverrides);
137
+ return new runtime.VoidApiResponse(response);
138
+ }
139
+ /**
140
+ * Disable or remove the pipeline configuration for a dataset. This sets pipeline_config to None, preventing automatic pipeline execution. Args: dataset_id: Dataset ID
141
+ * Disable Pipeline
142
+ */
143
+ async disablePipelineApiV1PipelinesDatasetsDatasetIdConfigDelete(requestParameters, initOverrides) {
144
+ await this.disablePipelineApiV1PipelinesDatasetsDatasetIdConfigDeleteRaw(requestParameters, initOverrides);
145
+ }
146
+ /**
147
+ * Get the current pipeline configuration for a dataset. Returns None if no pipeline is configured. Args: dataset_id: Dataset ID Returns: Pipeline configuration or None
148
+ * Get Pipeline Config
149
+ */
150
+ async getPipelineConfigApiV1PipelinesDatasetsDatasetIdConfigGetRaw(requestParameters, initOverrides) {
151
+ if (requestParameters['datasetId'] == null) {
152
+ throw new runtime.RequiredError('datasetId', 'Required parameter "datasetId" was null or undefined when calling getPipelineConfigApiV1PipelinesDatasetsDatasetIdConfigGet().');
153
+ }
154
+ const queryParameters = {};
155
+ const headerParameters = {};
156
+ const response = await this.request({
157
+ path: `/api/v1/pipelines/datasets/{dataset_id}/config`.replace(`{${"dataset_id"}}`, encodeURIComponent(String(requestParameters['datasetId']))),
158
+ method: 'GET',
159
+ headers: headerParameters,
160
+ query: queryParameters,
161
+ }, initOverrides);
162
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DatasetPipelineConfigOutputFromJSON)(jsonValue));
163
+ }
164
+ /**
165
+ * Get the current pipeline configuration for a dataset. Returns None if no pipeline is configured. Args: dataset_id: Dataset ID Returns: Pipeline configuration or None
166
+ * Get Pipeline Config
167
+ */
168
+ async getPipelineConfigApiV1PipelinesDatasetsDatasetIdConfigGet(requestParameters, initOverrides) {
169
+ const response = await this.getPipelineConfigApiV1PipelinesDatasetsDatasetIdConfigGetRaw(requestParameters, initOverrides);
170
+ return await response.value();
171
+ }
172
+ /**
173
+ * Get detailed preset configurations. Returns a dictionary mapping preset names to their full configurations. Use /pipelines/presets for a simple list. Returns: Dictionary of preset configurations Example Response: { \"pdf_ocr_qdrant\": { \"name\": \"pdf_ocr_qdrant\", \"description\": \"Process PDF files: OCR → Markdown → Chunking → Embeddings → Qdrant\", \"config\": { ... } } }
174
+ * Get Preset Details
175
+ */
176
+ async getPresetDetailsApiV1PipelinesPresetsDetailsGetRaw(initOverrides) {
177
+ const queryParameters = {};
178
+ const headerParameters = {};
179
+ const response = await this.request({
180
+ path: `/api/v1/pipelines/presets/details`,
181
+ method: 'GET',
182
+ headers: headerParameters,
183
+ query: queryParameters,
184
+ }, initOverrides);
185
+ return new runtime.JSONApiResponse(response);
186
+ }
187
+ /**
188
+ * Get detailed preset configurations. Returns a dictionary mapping preset names to their full configurations. Use /pipelines/presets for a simple list. Returns: Dictionary of preset configurations Example Response: { \"pdf_ocr_qdrant\": { \"name\": \"pdf_ocr_qdrant\", \"description\": \"Process PDF files: OCR → Markdown → Chunking → Embeddings → Qdrant\", \"config\": { ... } } }
189
+ * Get Preset Details
190
+ */
191
+ async getPresetDetailsApiV1PipelinesPresetsDetailsGet(initOverrides) {
192
+ const response = await this.getPresetDetailsApiV1PipelinesPresetsDetailsGetRaw(initOverrides);
193
+ return await response.value();
194
+ }
195
+ /**
196
+ * Discover available pipeline components from Kubernetes WorkflowTemplates. Queries the Kubernetes API for WorkflowTemplates in the \'argo\' namespace that are labeled with \'managed-by=alienargo\'. Returns component metadata including parameters, inputs, and outputs. Components are cached for 5 minutes to reduce Kubernetes API load. Returns: List of available components with metadata Example Response: { \"components\": [ { \"name\": \"mistral-ocr-processor-v1\", \"type\": \"ocr\", \"version\": \"v1\", \"description\": \"OCR processing using Mistral Vision API\", \"parameters\": [ {\"name\": \"max_pages\", \"default\": 100, \"description\": \"Maximum pages to process\"} ], \"inputs\": [{\"name\": \"input-pdf\", \"path\": \"/tmp/input.pdf\", \"optional\": false}], \"outputs\": [{\"name\": \"output-markdown\", \"path\": \"/tmp/output.md\", \"optional\": false}] } ], \"total\": 1, \"timestamp\": \"2025-01-08T12:00:00Z\" }
197
+ * List Pipeline Components
198
+ */
199
+ async listPipelineComponentsApiV1PipelinesComponentsGetRaw(initOverrides) {
200
+ const queryParameters = {};
201
+ const headerParameters = {};
202
+ const response = await this.request({
203
+ path: `/api/v1/pipelines/components`,
204
+ method: 'GET',
205
+ headers: headerParameters,
206
+ query: queryParameters,
207
+ }, initOverrides);
208
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ComponentListResponseFromJSON)(jsonValue));
209
+ }
210
+ /**
211
+ * Discover available pipeline components from Kubernetes WorkflowTemplates. Queries the Kubernetes API for WorkflowTemplates in the \'argo\' namespace that are labeled with \'managed-by=alienargo\'. Returns component metadata including parameters, inputs, and outputs. Components are cached for 5 minutes to reduce Kubernetes API load. Returns: List of available components with metadata Example Response: { \"components\": [ { \"name\": \"mistral-ocr-processor-v1\", \"type\": \"ocr\", \"version\": \"v1\", \"description\": \"OCR processing using Mistral Vision API\", \"parameters\": [ {\"name\": \"max_pages\", \"default\": 100, \"description\": \"Maximum pages to process\"} ], \"inputs\": [{\"name\": \"input-pdf\", \"path\": \"/tmp/input.pdf\", \"optional\": false}], \"outputs\": [{\"name\": \"output-markdown\", \"path\": \"/tmp/output.md\", \"optional\": false}] } ], \"total\": 1, \"timestamp\": \"2025-01-08T12:00:00Z\" }
212
+ * List Pipeline Components
213
+ */
214
+ async listPipelineComponentsApiV1PipelinesComponentsGet(initOverrides) {
215
+ const response = await this.listPipelineComponentsApiV1PipelinesComponentsGetRaw(initOverrides);
216
+ return await response.value();
217
+ }
218
+ /**
219
+ * List all available pipeline presets. Presets are pre-configured pipeline templates that can be applied to datasets with optional parameter customization. Returns: List of preset names and descriptions Example Response: { \"presets\": [ { \"name\": \"pdf_ocr_qdrant\", \"description\": \"Process PDF files: OCR → Markdown → Chunking → Embeddings → Qdrant\" }, { \"name\": \"xml_jats_qdrant\", \"description\": \"Process XML JATS files: Parse → Chunking → Embeddings → Qdrant\" } ], \"total\": 2 }
220
+ * List Pipeline Presets
221
+ */
222
+ async listPipelinePresetsApiV1PipelinesPresetsGetRaw(initOverrides) {
223
+ const queryParameters = {};
224
+ const headerParameters = {};
225
+ const response = await this.request({
226
+ path: `/api/v1/pipelines/presets`,
227
+ method: 'GET',
228
+ headers: headerParameters,
229
+ query: queryParameters,
230
+ }, initOverrides);
231
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PresetListResponseFromJSON)(jsonValue));
232
+ }
233
+ /**
234
+ * List all available pipeline presets. Presets are pre-configured pipeline templates that can be applied to datasets with optional parameter customization. Returns: List of preset names and descriptions Example Response: { \"presets\": [ { \"name\": \"pdf_ocr_qdrant\", \"description\": \"Process PDF files: OCR → Markdown → Chunking → Embeddings → Qdrant\" }, { \"name\": \"xml_jats_qdrant\", \"description\": \"Process XML JATS files: Parse → Chunking → Embeddings → Qdrant\" } ], \"total\": 2 }
235
+ * List Pipeline Presets
236
+ */
237
+ async listPipelinePresetsApiV1PipelinesPresetsGet(initOverrides) {
238
+ const response = await this.listPipelinePresetsApiV1PipelinesPresetsGetRaw(initOverrides);
239
+ return await response.value();
240
+ }
241
+ }
242
+ exports.PipelinesApi = PipelinesApi;