@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.
- package/README.md +70 -0
- package/dist/apis/AdminApi.d.ts +84 -0
- package/dist/apis/AdminApi.js +106 -0
- package/dist/apis/DatasetsApi.d.ts +221 -0
- package/dist/apis/DatasetsApi.js +250 -0
- package/dist/apis/DefaultApi.d.ts +48 -0
- package/dist/apis/DefaultApi.js +84 -0
- package/dist/apis/EmbeddingsApi.d.ts +111 -0
- package/dist/apis/EmbeddingsApi.js +134 -0
- package/dist/apis/EntriesApi.d.ts +458 -0
- package/dist/apis/EntriesApi.js +500 -0
- package/dist/apis/HealthApi.d.ts +118 -0
- package/dist/apis/HealthApi.js +125 -0
- package/dist/apis/PipelinesApi.d.ts +229 -0
- package/dist/apis/PipelinesApi.js +242 -0
- package/dist/apis/SearchApi.d.ts +109 -0
- package/dist/apis/SearchApi.js +144 -0
- package/dist/apis/SyncApi.d.ts +80 -0
- package/dist/apis/SyncApi.js +103 -0
- package/dist/apis/WebhooksApi.d.ts +94 -0
- package/dist/apis/WebhooksApi.js +127 -0
- package/dist/apis/WeightsApi.d.ts +276 -0
- package/dist/apis/WeightsApi.js +328 -0
- package/dist/apis/index.d.ts +11 -0
- package/dist/apis/index.js +29 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/ArtifactInputConfig.d.ts +46 -0
- package/dist/models/ArtifactInputConfig.js +58 -0
- package/dist/models/BatchContentRequest.d.ts +32 -0
- package/dist/models/BatchContentRequest.js +50 -0
- package/dist/models/BatchContentResponse.d.ts +33 -0
- package/dist/models/BatchContentResponse.js +51 -0
- package/dist/models/BatchGetEntriesRequest.d.ts +56 -0
- package/dist/models/BatchGetEntriesRequest.js +58 -0
- package/dist/models/BatchGetEntriesResponse.d.ts +39 -0
- package/dist/models/BatchGetEntriesResponse.js +55 -0
- package/dist/models/ChunkSearchResponse.d.ts +47 -0
- package/dist/models/ChunkSearchResponse.js +57 -0
- package/dist/models/ChunkSearchResult.d.ts +52 -0
- package/dist/models/ChunkSearchResult.js +58 -0
- package/dist/models/CollectionInfo.d.ts +50 -0
- package/dist/models/CollectionInfo.js +62 -0
- package/dist/models/ComponentArtifact.d.ts +46 -0
- package/dist/models/ComponentArtifact.js +54 -0
- package/dist/models/ComponentListResponse.d.ts +47 -0
- package/dist/models/ComponentListResponse.js +57 -0
- package/dist/models/ComponentMetadata.d.ts +95 -0
- package/dist/models/ComponentMetadata.js +74 -0
- package/dist/models/ComponentParameter.d.ts +48 -0
- package/dist/models/ComponentParameter.js +55 -0
- package/dist/models/CreateCollectionRequest.d.ts +44 -0
- package/dist/models/CreateCollectionRequest.js +54 -0
- package/dist/models/Dataset.d.ts +117 -0
- package/dist/models/Dataset.js +94 -0
- package/dist/models/DatasetCreateRequest.d.ts +58 -0
- package/dist/models/DatasetCreateRequest.js +68 -0
- package/dist/models/DatasetListResponse.d.ts +51 -0
- package/dist/models/DatasetListResponse.js +59 -0
- package/dist/models/DatasetPipelineConfigInput.d.ts +62 -0
- package/dist/models/DatasetPipelineConfigInput.js +65 -0
- package/dist/models/DatasetPipelineConfigOutput.d.ts +62 -0
- package/dist/models/DatasetPipelineConfigOutput.js +65 -0
- package/dist/models/DatasetResponse.d.ts +124 -0
- package/dist/models/DatasetResponse.js +100 -0
- package/dist/models/DatasetSchemaDefinition.d.ts +65 -0
- package/dist/models/DatasetSchemaDefinition.js +71 -0
- package/dist/models/DatasetSchemaOriginal.d.ts +46 -0
- package/dist/models/DatasetSchemaOriginal.js +52 -0
- package/dist/models/DatasetSchemaProcessed.d.ts +46 -0
- package/dist/models/DatasetSchemaProcessed.js +52 -0
- package/dist/models/DatasetSchemaProcessing.d.ts +38 -0
- package/dist/models/DatasetSchemaProcessing.js +50 -0
- package/dist/models/DatasetType.d.ts +27 -0
- package/dist/models/DatasetType.js +53 -0
- package/dist/models/DatasetUpdateSchemaRequest.d.ts +39 -0
- package/dist/models/DatasetUpdateSchemaRequest.js +55 -0
- package/dist/models/Default.d.ts +26 -0
- package/dist/models/Default.js +38 -0
- package/dist/models/EmbeddingProvider.d.ts +27 -0
- package/dist/models/EmbeddingProvider.js +53 -0
- package/dist/models/EmbeddingResponse.d.ts +57 -0
- package/dist/models/EmbeddingResponse.js +67 -0
- package/dist/models/Entry.d.ts +130 -0
- package/dist/models/Entry.js +100 -0
- package/dist/models/EntryContentResponse.d.ts +40 -0
- package/dist/models/EntryContentResponse.js +54 -0
- package/dist/models/EntryCreateRequest.d.ts +58 -0
- package/dist/models/EntryCreateRequest.js +62 -0
- package/dist/models/EntryCreateResponse.d.ts +39 -0
- package/dist/models/EntryCreateResponse.js +53 -0
- package/dist/models/EntryManifest.d.ts +71 -0
- package/dist/models/EntryManifest.js +65 -0
- package/dist/models/EntryPreview.d.ts +56 -0
- package/dist/models/EntryPreview.js +54 -0
- package/dist/models/EntrySearchResponse.d.ts +47 -0
- package/dist/models/EntrySearchResponse.js +57 -0
- package/dist/models/EntrySearchResult.d.ts +65 -0
- package/dist/models/EntrySearchResult.js +69 -0
- package/dist/models/EntryStatus.d.ts +29 -0
- package/dist/models/EntryStatus.js +55 -0
- package/dist/models/EntryUpdateRequest.d.ts +53 -0
- package/dist/models/EntryUpdateRequest.js +55 -0
- package/dist/models/EntryWithContent.d.ts +132 -0
- package/dist/models/EntryWithContent.js +102 -0
- package/dist/models/FileMetadata.d.ts +62 -0
- package/dist/models/FileMetadata.js +64 -0
- package/dist/models/GenerateEmbeddingsRequest.d.ts +44 -0
- package/dist/models/GenerateEmbeddingsRequest.js +54 -0
- package/dist/models/HTTPValidationError.d.ts +33 -0
- package/dist/models/HTTPValidationError.js +49 -0
- package/dist/models/HealthResponse.d.ts +50 -0
- package/dist/models/HealthResponse.js +62 -0
- package/dist/models/KeywordSearchHit.d.ts +96 -0
- package/dist/models/KeywordSearchHit.js +82 -0
- package/dist/models/KeywordSearchRequest.d.ts +102 -0
- package/dist/models/KeywordSearchRequest.js +80 -0
- package/dist/models/KeywordSearchResponse.d.ts +47 -0
- package/dist/models/KeywordSearchResponse.js +57 -0
- package/dist/models/ModelInfo.d.ts +51 -0
- package/dist/models/ModelInfo.js +63 -0
- package/dist/models/OriginalManifest.d.ts +41 -0
- package/dist/models/OriginalManifest.js +51 -0
- package/dist/models/PipelineStepConfig.d.ts +80 -0
- package/dist/models/PipelineStepConfig.js +69 -0
- package/dist/models/PresetListResponse.d.ts +42 -0
- package/dist/models/PresetListResponse.js +54 -0
- package/dist/models/ProcessedManifest.d.ts +59 -0
- package/dist/models/ProcessedManifest.js +57 -0
- package/dist/models/ProcessingManifest.d.ts +39 -0
- package/dist/models/ProcessingManifest.js +51 -0
- package/dist/models/RetryFailedWebhooksResponse.d.ts +44 -0
- package/dist/models/RetryFailedWebhooksResponse.js +58 -0
- package/dist/models/SaveProcessedContentRequest.d.ts +42 -0
- package/dist/models/SaveProcessedContentRequest.js +52 -0
- package/dist/models/SaveProcessedContentResponse.d.ts +45 -0
- package/dist/models/SaveProcessedContentResponse.js +57 -0
- package/dist/models/SearchSnippet.d.ts +57 -0
- package/dist/models/SearchSnippet.js +65 -0
- package/dist/models/SnippetContext.d.ts +68 -0
- package/dist/models/SnippetContext.js +75 -0
- package/dist/models/UploadFileResponse.d.ts +63 -0
- package/dist/models/UploadFileResponse.js +69 -0
- package/dist/models/ValidationError.d.ts +45 -0
- package/dist/models/ValidationError.js +59 -0
- package/dist/models/ValidationErrorLocInner.d.ts +26 -0
- package/dist/models/ValidationErrorLocInner.js +38 -0
- package/dist/models/VectorSearchRequest.d.ts +71 -0
- package/dist/models/VectorSearchRequest.js +60 -0
- package/dist/models/WebhookEndpointCreate.d.ts +32 -0
- package/dist/models/WebhookEndpointCreate.js +50 -0
- package/dist/models/WebhookEndpointResponse.d.ts +50 -0
- package/dist/models/WebhookEndpointResponse.js +62 -0
- package/dist/models/Weight.d.ts +101 -0
- package/dist/models/Weight.js +85 -0
- package/dist/models/WeightListResponse.d.ts +51 -0
- package/dist/models/WeightListResponse.js +59 -0
- package/dist/models/WeightResponse.d.ts +107 -0
- package/dist/models/WeightResponse.js +87 -0
- package/dist/models/WeightType.d.ts +26 -0
- package/dist/models/WeightType.js +52 -0
- package/dist/models/index.d.ts +66 -0
- package/dist/models/index.js +84 -0
- package/dist/runtime.d.ts +182 -0
- package/dist/runtime.js +334 -0
- package/package.json +38 -0
- package/src/apis/AdminApi.ts +140 -0
- package/src/apis/DatasetsApi.ts +461 -0
- package/src/apis/DefaultApi.ts +79 -0
- package/src/apis/EmbeddingsApi.ts +204 -0
- package/src/apis/EntriesApi.ts +969 -0
- package/src/apis/HealthApi.ts +161 -0
- package/src/apis/PipelinesApi.ts +432 -0
- package/src/apis/SearchApi.ts +234 -0
- package/src/apis/SyncApi.ts +125 -0
- package/src/apis/WebhooksApi.ts +191 -0
- package/src/apis/WeightsApi.ts +600 -0
- package/src/apis/index.ts +13 -0
- package/src/index.ts +5 -0
- package/src/models/ArtifactInputConfig.ts +86 -0
- package/src/models/BatchContentRequest.ts +66 -0
- package/src/models/BatchContentResponse.ts +74 -0
- package/src/models/BatchGetEntriesRequest.ts +98 -0
- package/src/models/BatchGetEntriesResponse.ts +83 -0
- package/src/models/ChunkSearchResponse.ts +91 -0
- package/src/models/ChunkSearchResult.ts +91 -0
- package/src/models/CollectionInfo.ts +93 -0
- package/src/models/ComponentArtifact.ts +84 -0
- package/src/models/ComponentListResponse.ts +93 -0
- package/src/models/ComponentMetadata.ts +158 -0
- package/src/models/ComponentParameter.ts +93 -0
- package/src/models/CreateCollectionRequest.ts +82 -0
- package/src/models/Dataset.ts +200 -0
- package/src/models/DatasetCreateRequest.ts +119 -0
- package/src/models/DatasetListResponse.ts +99 -0
- package/src/models/DatasetPipelineConfigInput.ts +112 -0
- package/src/models/DatasetPipelineConfigOutput.ts +112 -0
- package/src/models/DatasetResponse.ts +212 -0
- package/src/models/DatasetSchemaDefinition.ts +132 -0
- package/src/models/DatasetSchemaOriginal.ts +81 -0
- package/src/models/DatasetSchemaProcessed.ts +81 -0
- package/src/models/DatasetSchemaProcessing.ts +73 -0
- package/src/models/DatasetType.ts +55 -0
- package/src/models/DatasetUpdateSchemaRequest.ts +83 -0
- package/src/models/Default.ts +46 -0
- package/src/models/EmbeddingProvider.ts +55 -0
- package/src/models/EmbeddingResponse.ts +112 -0
- package/src/models/Entry.ts +218 -0
- package/src/models/EntryContentResponse.ts +75 -0
- package/src/models/EntryCreateRequest.ts +100 -0
- package/src/models/EntryCreateResponse.ts +82 -0
- package/src/models/EntryManifest.ts +135 -0
- package/src/models/EntryPreview.ts +89 -0
- package/src/models/EntrySearchResponse.ts +91 -0
- package/src/models/EntrySearchResult.ts +118 -0
- package/src/models/EntryStatus.ts +57 -0
- package/src/models/EntryUpdateRequest.ts +99 -0
- package/src/models/EntryWithContent.ts +220 -0
- package/src/models/FileMetadata.ts +108 -0
- package/src/models/GenerateEmbeddingsRequest.ts +82 -0
- package/src/models/HTTPValidationError.ts +73 -0
- package/src/models/HealthResponse.ts +93 -0
- package/src/models/KeywordSearchHit.ts +166 -0
- package/src/models/KeywordSearchRequest.ts +159 -0
- package/src/models/KeywordSearchResponse.ts +91 -0
- package/src/models/ModelInfo.ts +103 -0
- package/src/models/OriginalManifest.ts +81 -0
- package/src/models/PipelineStepConfig.ts +135 -0
- package/src/models/PresetListResponse.ts +77 -0
- package/src/models/ProcessedManifest.ts +105 -0
- package/src/models/ProcessingManifest.ts +81 -0
- package/src/models/RetryFailedWebhooksResponse.ts +84 -0
- package/src/models/SaveProcessedContentRequest.ts +74 -0
- package/src/models/SaveProcessedContentResponse.ts +91 -0
- package/src/models/SearchSnippet.ts +109 -0
- package/src/models/SnippetContext.ts +113 -0
- package/src/models/UploadFileResponse.ts +118 -0
- package/src/models/ValidationError.ts +92 -0
- package/src/models/ValidationErrorLocInner.ts +46 -0
- package/src/models/VectorSearchRequest.ts +116 -0
- package/src/models/WebhookEndpointCreate.ts +66 -0
- package/src/models/WebhookEndpointResponse.ts +93 -0
- package/src/models/Weight.ts +170 -0
- package/src/models/WeightListResponse.ts +99 -0
- package/src/models/WeightResponse.ts +178 -0
- package/src/models/WeightType.ts +54 -0
- package/src/models/index.ts +68 -0
- package/src/runtime.ts +431 -0
|
@@ -0,0 +1,161 @@
|
|
|
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
|
+
|
|
18
|
+
/**
|
|
19
|
+
* HealthApi - interface
|
|
20
|
+
*
|
|
21
|
+
* @export
|
|
22
|
+
* @interface HealthApiInterface
|
|
23
|
+
*/
|
|
24
|
+
export interface HealthApiInterface {
|
|
25
|
+
/**
|
|
26
|
+
* 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
|
|
27
|
+
* @summary Health Check
|
|
28
|
+
* @param {*} [options] Override http request option.
|
|
29
|
+
* @throws {RequiredError}
|
|
30
|
+
* @memberof HealthApiInterface
|
|
31
|
+
*/
|
|
32
|
+
healthCheckApiV1HealthGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{ [key: string]: any; }>>;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* 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
|
|
36
|
+
* Health Check
|
|
37
|
+
*/
|
|
38
|
+
healthCheckApiV1HealthGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{ [key: string]: any; }>;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Liveness check for Kubernetes. Returns 200 if application is alive (even if dependencies are down).
|
|
42
|
+
* @summary Liveness Check
|
|
43
|
+
* @param {*} [options] Override http request option.
|
|
44
|
+
* @throws {RequiredError}
|
|
45
|
+
* @memberof HealthApiInterface
|
|
46
|
+
*/
|
|
47
|
+
livenessCheckApiV1HealthLiveGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{ [key: string]: string | null; }>>;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Liveness check for Kubernetes. Returns 200 if application is alive (even if dependencies are down).
|
|
51
|
+
* Liveness Check
|
|
52
|
+
*/
|
|
53
|
+
livenessCheckApiV1HealthLiveGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{ [key: string]: string | null; }>;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Readiness check for Kubernetes. Returns 200 if ready to accept traffic.
|
|
57
|
+
* @summary Readiness Check
|
|
58
|
+
* @param {*} [options] Override http request option.
|
|
59
|
+
* @throws {RequiredError}
|
|
60
|
+
* @memberof HealthApiInterface
|
|
61
|
+
*/
|
|
62
|
+
readinessCheckApiV1HealthReadyGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{ [key: string]: string; }>>;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Readiness check for Kubernetes. Returns 200 if ready to accept traffic.
|
|
66
|
+
* Readiness Check
|
|
67
|
+
*/
|
|
68
|
+
readinessCheckApiV1HealthReadyGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{ [key: string]: string; }>;
|
|
69
|
+
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
*/
|
|
75
|
+
export class HealthApi extends runtime.BaseAPI implements HealthApiInterface {
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* 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
|
|
79
|
+
* Health Check
|
|
80
|
+
*/
|
|
81
|
+
async healthCheckApiV1HealthGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{ [key: string]: any; }>> {
|
|
82
|
+
const queryParameters: any = {};
|
|
83
|
+
|
|
84
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
85
|
+
|
|
86
|
+
const response = await this.request({
|
|
87
|
+
path: `/api/v1/health`,
|
|
88
|
+
method: 'GET',
|
|
89
|
+
headers: headerParameters,
|
|
90
|
+
query: queryParameters,
|
|
91
|
+
}, initOverrides);
|
|
92
|
+
|
|
93
|
+
return new runtime.JSONApiResponse<any>(response);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* 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
|
|
98
|
+
* Health Check
|
|
99
|
+
*/
|
|
100
|
+
async healthCheckApiV1HealthGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{ [key: string]: any; }> {
|
|
101
|
+
const response = await this.healthCheckApiV1HealthGetRaw(initOverrides);
|
|
102
|
+
return await response.value();
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Liveness check for Kubernetes. Returns 200 if application is alive (even if dependencies are down).
|
|
107
|
+
* Liveness Check
|
|
108
|
+
*/
|
|
109
|
+
async livenessCheckApiV1HealthLiveGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{ [key: string]: string | null; }>> {
|
|
110
|
+
const queryParameters: any = {};
|
|
111
|
+
|
|
112
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
113
|
+
|
|
114
|
+
const response = await this.request({
|
|
115
|
+
path: `/api/v1/health/live`,
|
|
116
|
+
method: 'GET',
|
|
117
|
+
headers: headerParameters,
|
|
118
|
+
query: queryParameters,
|
|
119
|
+
}, initOverrides);
|
|
120
|
+
|
|
121
|
+
return new runtime.JSONApiResponse<any>(response);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Liveness check for Kubernetes. Returns 200 if application is alive (even if dependencies are down).
|
|
126
|
+
* Liveness Check
|
|
127
|
+
*/
|
|
128
|
+
async livenessCheckApiV1HealthLiveGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{ [key: string]: string | null; }> {
|
|
129
|
+
const response = await this.livenessCheckApiV1HealthLiveGetRaw(initOverrides);
|
|
130
|
+
return await response.value();
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Readiness check for Kubernetes. Returns 200 if ready to accept traffic.
|
|
135
|
+
* Readiness Check
|
|
136
|
+
*/
|
|
137
|
+
async readinessCheckApiV1HealthReadyGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{ [key: string]: string; }>> {
|
|
138
|
+
const queryParameters: any = {};
|
|
139
|
+
|
|
140
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
141
|
+
|
|
142
|
+
const response = await this.request({
|
|
143
|
+
path: `/api/v1/health/ready`,
|
|
144
|
+
method: 'GET',
|
|
145
|
+
headers: headerParameters,
|
|
146
|
+
query: queryParameters,
|
|
147
|
+
}, initOverrides);
|
|
148
|
+
|
|
149
|
+
return new runtime.JSONApiResponse<any>(response);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Readiness check for Kubernetes. Returns 200 if ready to accept traffic.
|
|
154
|
+
* Readiness Check
|
|
155
|
+
*/
|
|
156
|
+
async readinessCheckApiV1HealthReadyGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{ [key: string]: string; }> {
|
|
157
|
+
const response = await this.readinessCheckApiV1HealthReadyGetRaw(initOverrides);
|
|
158
|
+
return await response.value();
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
}
|
|
@@ -0,0 +1,432 @@
|
|
|
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
|
+
ComponentListResponse,
|
|
19
|
+
Dataset,
|
|
20
|
+
DatasetPipelineConfigInput,
|
|
21
|
+
DatasetPipelineConfigOutput,
|
|
22
|
+
HTTPValidationError,
|
|
23
|
+
PresetListResponse,
|
|
24
|
+
} from '../models/index';
|
|
25
|
+
import {
|
|
26
|
+
ComponentListResponseFromJSON,
|
|
27
|
+
ComponentListResponseToJSON,
|
|
28
|
+
DatasetFromJSON,
|
|
29
|
+
DatasetToJSON,
|
|
30
|
+
DatasetPipelineConfigInputFromJSON,
|
|
31
|
+
DatasetPipelineConfigInputToJSON,
|
|
32
|
+
DatasetPipelineConfigOutputFromJSON,
|
|
33
|
+
DatasetPipelineConfigOutputToJSON,
|
|
34
|
+
HTTPValidationErrorFromJSON,
|
|
35
|
+
HTTPValidationErrorToJSON,
|
|
36
|
+
PresetListResponseFromJSON,
|
|
37
|
+
PresetListResponseToJSON,
|
|
38
|
+
} from '../models/index';
|
|
39
|
+
|
|
40
|
+
export interface ApplyPresetApiV1PipelinesDatasetsDatasetIdApplyPresetPostRequest {
|
|
41
|
+
datasetId: number;
|
|
42
|
+
presetName: string;
|
|
43
|
+
requestBody?: { [key: string]: { [key: string]: any; }; } | null;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface ConfigurePipelineApiV1PipelinesDatasetsDatasetIdConfigPatchRequest {
|
|
47
|
+
datasetId: number;
|
|
48
|
+
datasetPipelineConfigInput: DatasetPipelineConfigInput;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface DisablePipelineApiV1PipelinesDatasetsDatasetIdConfigDeleteRequest {
|
|
52
|
+
datasetId: number;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface GetPipelineConfigApiV1PipelinesDatasetsDatasetIdConfigGetRequest {
|
|
56
|
+
datasetId: number;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* PipelinesApi - interface
|
|
61
|
+
*
|
|
62
|
+
* @export
|
|
63
|
+
* @interface PipelinesApiInterface
|
|
64
|
+
*/
|
|
65
|
+
export interface PipelinesApiInterface {
|
|
66
|
+
/**
|
|
67
|
+
* 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} }
|
|
68
|
+
* @summary Apply Preset
|
|
69
|
+
* @param {number} datasetId
|
|
70
|
+
* @param {string} presetName
|
|
71
|
+
* @param {{ [key: string]: { [key: string]: any; }; }} [requestBody]
|
|
72
|
+
* @param {*} [options] Override http request option.
|
|
73
|
+
* @throws {RequiredError}
|
|
74
|
+
* @memberof PipelinesApiInterface
|
|
75
|
+
*/
|
|
76
|
+
applyPresetApiV1PipelinesDatasetsDatasetIdApplyPresetPostRaw(requestParameters: ApplyPresetApiV1PipelinesDatasetsDatasetIdApplyPresetPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Dataset>>;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* 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} }
|
|
80
|
+
* Apply Preset
|
|
81
|
+
*/
|
|
82
|
+
applyPresetApiV1PipelinesDatasetsDatasetIdApplyPresetPost(requestParameters: ApplyPresetApiV1PipelinesDatasetsDatasetIdApplyPresetPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Dataset>;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* 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\": [] } ] }
|
|
86
|
+
* @summary Configure Pipeline
|
|
87
|
+
* @param {number} datasetId
|
|
88
|
+
* @param {DatasetPipelineConfigInput} datasetPipelineConfigInput
|
|
89
|
+
* @param {*} [options] Override http request option.
|
|
90
|
+
* @throws {RequiredError}
|
|
91
|
+
* @memberof PipelinesApiInterface
|
|
92
|
+
*/
|
|
93
|
+
configurePipelineApiV1PipelinesDatasetsDatasetIdConfigPatchRaw(requestParameters: ConfigurePipelineApiV1PipelinesDatasetsDatasetIdConfigPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Dataset>>;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* 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\": [] } ] }
|
|
97
|
+
* Configure Pipeline
|
|
98
|
+
*/
|
|
99
|
+
configurePipelineApiV1PipelinesDatasetsDatasetIdConfigPatch(requestParameters: ConfigurePipelineApiV1PipelinesDatasetsDatasetIdConfigPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Dataset>;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Disable or remove the pipeline configuration for a dataset. This sets pipeline_config to None, preventing automatic pipeline execution. Args: dataset_id: Dataset ID
|
|
103
|
+
* @summary Disable Pipeline
|
|
104
|
+
* @param {number} datasetId
|
|
105
|
+
* @param {*} [options] Override http request option.
|
|
106
|
+
* @throws {RequiredError}
|
|
107
|
+
* @memberof PipelinesApiInterface
|
|
108
|
+
*/
|
|
109
|
+
disablePipelineApiV1PipelinesDatasetsDatasetIdConfigDeleteRaw(requestParameters: DisablePipelineApiV1PipelinesDatasetsDatasetIdConfigDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Disable or remove the pipeline configuration for a dataset. This sets pipeline_config to None, preventing automatic pipeline execution. Args: dataset_id: Dataset ID
|
|
113
|
+
* Disable Pipeline
|
|
114
|
+
*/
|
|
115
|
+
disablePipelineApiV1PipelinesDatasetsDatasetIdConfigDelete(requestParameters: DisablePipelineApiV1PipelinesDatasetsDatasetIdConfigDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* 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
|
|
119
|
+
* @summary Get Pipeline Config
|
|
120
|
+
* @param {number} datasetId
|
|
121
|
+
* @param {*} [options] Override http request option.
|
|
122
|
+
* @throws {RequiredError}
|
|
123
|
+
* @memberof PipelinesApiInterface
|
|
124
|
+
*/
|
|
125
|
+
getPipelineConfigApiV1PipelinesDatasetsDatasetIdConfigGetRaw(requestParameters: GetPipelineConfigApiV1PipelinesDatasetsDatasetIdConfigGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DatasetPipelineConfigOutput>>;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* 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
|
|
129
|
+
* Get Pipeline Config
|
|
130
|
+
*/
|
|
131
|
+
getPipelineConfigApiV1PipelinesDatasetsDatasetIdConfigGet(requestParameters: GetPipelineConfigApiV1PipelinesDatasetsDatasetIdConfigGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DatasetPipelineConfigOutput>;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* 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\": { ... } } }
|
|
135
|
+
* @summary Get Preset Details
|
|
136
|
+
* @param {*} [options] Override http request option.
|
|
137
|
+
* @throws {RequiredError}
|
|
138
|
+
* @memberof PipelinesApiInterface
|
|
139
|
+
*/
|
|
140
|
+
getPresetDetailsApiV1PipelinesPresetsDetailsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{ [key: string]: { [key: string]: any; }; }>>;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* 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\": { ... } } }
|
|
144
|
+
* Get Preset Details
|
|
145
|
+
*/
|
|
146
|
+
getPresetDetailsApiV1PipelinesPresetsDetailsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{ [key: string]: { [key: string]: any; }; }>;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* 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\" }
|
|
150
|
+
* @summary List Pipeline Components
|
|
151
|
+
* @param {*} [options] Override http request option.
|
|
152
|
+
* @throws {RequiredError}
|
|
153
|
+
* @memberof PipelinesApiInterface
|
|
154
|
+
*/
|
|
155
|
+
listPipelineComponentsApiV1PipelinesComponentsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ComponentListResponse>>;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* 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\" }
|
|
159
|
+
* List Pipeline Components
|
|
160
|
+
*/
|
|
161
|
+
listPipelineComponentsApiV1PipelinesComponentsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ComponentListResponse>;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* 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 }
|
|
165
|
+
* @summary List Pipeline Presets
|
|
166
|
+
* @param {*} [options] Override http request option.
|
|
167
|
+
* @throws {RequiredError}
|
|
168
|
+
* @memberof PipelinesApiInterface
|
|
169
|
+
*/
|
|
170
|
+
listPipelinePresetsApiV1PipelinesPresetsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PresetListResponse>>;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* 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 }
|
|
174
|
+
* List Pipeline Presets
|
|
175
|
+
*/
|
|
176
|
+
listPipelinePresetsApiV1PipelinesPresetsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PresetListResponse>;
|
|
177
|
+
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
*
|
|
182
|
+
*/
|
|
183
|
+
export class PipelinesApi extends runtime.BaseAPI implements PipelinesApiInterface {
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* 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} }
|
|
187
|
+
* Apply Preset
|
|
188
|
+
*/
|
|
189
|
+
async applyPresetApiV1PipelinesDatasetsDatasetIdApplyPresetPostRaw(requestParameters: ApplyPresetApiV1PipelinesDatasetsDatasetIdApplyPresetPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Dataset>> {
|
|
190
|
+
if (requestParameters['datasetId'] == null) {
|
|
191
|
+
throw new runtime.RequiredError(
|
|
192
|
+
'datasetId',
|
|
193
|
+
'Required parameter "datasetId" was null or undefined when calling applyPresetApiV1PipelinesDatasetsDatasetIdApplyPresetPost().'
|
|
194
|
+
);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
if (requestParameters['presetName'] == null) {
|
|
198
|
+
throw new runtime.RequiredError(
|
|
199
|
+
'presetName',
|
|
200
|
+
'Required parameter "presetName" was null or undefined when calling applyPresetApiV1PipelinesDatasetsDatasetIdApplyPresetPost().'
|
|
201
|
+
);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
const queryParameters: any = {};
|
|
205
|
+
|
|
206
|
+
if (requestParameters['presetName'] != null) {
|
|
207
|
+
queryParameters['preset_name'] = requestParameters['presetName'];
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
211
|
+
|
|
212
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
213
|
+
|
|
214
|
+
const response = await this.request({
|
|
215
|
+
path: `/api/v1/pipelines/datasets/{dataset_id}/apply-preset`.replace(`{${"dataset_id"}}`, encodeURIComponent(String(requestParameters['datasetId']))),
|
|
216
|
+
method: 'POST',
|
|
217
|
+
headers: headerParameters,
|
|
218
|
+
query: queryParameters,
|
|
219
|
+
body: requestParameters['requestBody'],
|
|
220
|
+
}, initOverrides);
|
|
221
|
+
|
|
222
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DatasetFromJSON(jsonValue));
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* 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} }
|
|
227
|
+
* Apply Preset
|
|
228
|
+
*/
|
|
229
|
+
async applyPresetApiV1PipelinesDatasetsDatasetIdApplyPresetPost(requestParameters: ApplyPresetApiV1PipelinesDatasetsDatasetIdApplyPresetPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Dataset> {
|
|
230
|
+
const response = await this.applyPresetApiV1PipelinesDatasetsDatasetIdApplyPresetPostRaw(requestParameters, initOverrides);
|
|
231
|
+
return await response.value();
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* 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\": [] } ] }
|
|
236
|
+
* Configure Pipeline
|
|
237
|
+
*/
|
|
238
|
+
async configurePipelineApiV1PipelinesDatasetsDatasetIdConfigPatchRaw(requestParameters: ConfigurePipelineApiV1PipelinesDatasetsDatasetIdConfigPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Dataset>> {
|
|
239
|
+
if (requestParameters['datasetId'] == null) {
|
|
240
|
+
throw new runtime.RequiredError(
|
|
241
|
+
'datasetId',
|
|
242
|
+
'Required parameter "datasetId" was null or undefined when calling configurePipelineApiV1PipelinesDatasetsDatasetIdConfigPatch().'
|
|
243
|
+
);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
if (requestParameters['datasetPipelineConfigInput'] == null) {
|
|
247
|
+
throw new runtime.RequiredError(
|
|
248
|
+
'datasetPipelineConfigInput',
|
|
249
|
+
'Required parameter "datasetPipelineConfigInput" was null or undefined when calling configurePipelineApiV1PipelinesDatasetsDatasetIdConfigPatch().'
|
|
250
|
+
);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
const queryParameters: any = {};
|
|
254
|
+
|
|
255
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
256
|
+
|
|
257
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
258
|
+
|
|
259
|
+
const response = await this.request({
|
|
260
|
+
path: `/api/v1/pipelines/datasets/{dataset_id}/config`.replace(`{${"dataset_id"}}`, encodeURIComponent(String(requestParameters['datasetId']))),
|
|
261
|
+
method: 'PATCH',
|
|
262
|
+
headers: headerParameters,
|
|
263
|
+
query: queryParameters,
|
|
264
|
+
body: DatasetPipelineConfigInputToJSON(requestParameters['datasetPipelineConfigInput']),
|
|
265
|
+
}, initOverrides);
|
|
266
|
+
|
|
267
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DatasetFromJSON(jsonValue));
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* 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\": [] } ] }
|
|
272
|
+
* Configure Pipeline
|
|
273
|
+
*/
|
|
274
|
+
async configurePipelineApiV1PipelinesDatasetsDatasetIdConfigPatch(requestParameters: ConfigurePipelineApiV1PipelinesDatasetsDatasetIdConfigPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Dataset> {
|
|
275
|
+
const response = await this.configurePipelineApiV1PipelinesDatasetsDatasetIdConfigPatchRaw(requestParameters, initOverrides);
|
|
276
|
+
return await response.value();
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* Disable or remove the pipeline configuration for a dataset. This sets pipeline_config to None, preventing automatic pipeline execution. Args: dataset_id: Dataset ID
|
|
281
|
+
* Disable Pipeline
|
|
282
|
+
*/
|
|
283
|
+
async disablePipelineApiV1PipelinesDatasetsDatasetIdConfigDeleteRaw(requestParameters: DisablePipelineApiV1PipelinesDatasetsDatasetIdConfigDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
284
|
+
if (requestParameters['datasetId'] == null) {
|
|
285
|
+
throw new runtime.RequiredError(
|
|
286
|
+
'datasetId',
|
|
287
|
+
'Required parameter "datasetId" was null or undefined when calling disablePipelineApiV1PipelinesDatasetsDatasetIdConfigDelete().'
|
|
288
|
+
);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
const queryParameters: any = {};
|
|
292
|
+
|
|
293
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
294
|
+
|
|
295
|
+
const response = await this.request({
|
|
296
|
+
path: `/api/v1/pipelines/datasets/{dataset_id}/config`.replace(`{${"dataset_id"}}`, encodeURIComponent(String(requestParameters['datasetId']))),
|
|
297
|
+
method: 'DELETE',
|
|
298
|
+
headers: headerParameters,
|
|
299
|
+
query: queryParameters,
|
|
300
|
+
}, initOverrides);
|
|
301
|
+
|
|
302
|
+
return new runtime.VoidApiResponse(response);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* Disable or remove the pipeline configuration for a dataset. This sets pipeline_config to None, preventing automatic pipeline execution. Args: dataset_id: Dataset ID
|
|
307
|
+
* Disable Pipeline
|
|
308
|
+
*/
|
|
309
|
+
async disablePipelineApiV1PipelinesDatasetsDatasetIdConfigDelete(requestParameters: DisablePipelineApiV1PipelinesDatasetsDatasetIdConfigDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
310
|
+
await this.disablePipelineApiV1PipelinesDatasetsDatasetIdConfigDeleteRaw(requestParameters, initOverrides);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* 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
|
|
315
|
+
* Get Pipeline Config
|
|
316
|
+
*/
|
|
317
|
+
async getPipelineConfigApiV1PipelinesDatasetsDatasetIdConfigGetRaw(requestParameters: GetPipelineConfigApiV1PipelinesDatasetsDatasetIdConfigGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DatasetPipelineConfigOutput>> {
|
|
318
|
+
if (requestParameters['datasetId'] == null) {
|
|
319
|
+
throw new runtime.RequiredError(
|
|
320
|
+
'datasetId',
|
|
321
|
+
'Required parameter "datasetId" was null or undefined when calling getPipelineConfigApiV1PipelinesDatasetsDatasetIdConfigGet().'
|
|
322
|
+
);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
const queryParameters: any = {};
|
|
326
|
+
|
|
327
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
328
|
+
|
|
329
|
+
const response = await this.request({
|
|
330
|
+
path: `/api/v1/pipelines/datasets/{dataset_id}/config`.replace(`{${"dataset_id"}}`, encodeURIComponent(String(requestParameters['datasetId']))),
|
|
331
|
+
method: 'GET',
|
|
332
|
+
headers: headerParameters,
|
|
333
|
+
query: queryParameters,
|
|
334
|
+
}, initOverrides);
|
|
335
|
+
|
|
336
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DatasetPipelineConfigOutputFromJSON(jsonValue));
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* 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
|
|
341
|
+
* Get Pipeline Config
|
|
342
|
+
*/
|
|
343
|
+
async getPipelineConfigApiV1PipelinesDatasetsDatasetIdConfigGet(requestParameters: GetPipelineConfigApiV1PipelinesDatasetsDatasetIdConfigGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DatasetPipelineConfigOutput> {
|
|
344
|
+
const response = await this.getPipelineConfigApiV1PipelinesDatasetsDatasetIdConfigGetRaw(requestParameters, initOverrides);
|
|
345
|
+
return await response.value();
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* 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\": { ... } } }
|
|
350
|
+
* Get Preset Details
|
|
351
|
+
*/
|
|
352
|
+
async getPresetDetailsApiV1PipelinesPresetsDetailsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{ [key: string]: { [key: string]: any; }; }>> {
|
|
353
|
+
const queryParameters: any = {};
|
|
354
|
+
|
|
355
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
356
|
+
|
|
357
|
+
const response = await this.request({
|
|
358
|
+
path: `/api/v1/pipelines/presets/details`,
|
|
359
|
+
method: 'GET',
|
|
360
|
+
headers: headerParameters,
|
|
361
|
+
query: queryParameters,
|
|
362
|
+
}, initOverrides);
|
|
363
|
+
|
|
364
|
+
return new runtime.JSONApiResponse<any>(response);
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* 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\": { ... } } }
|
|
369
|
+
* Get Preset Details
|
|
370
|
+
*/
|
|
371
|
+
async getPresetDetailsApiV1PipelinesPresetsDetailsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{ [key: string]: { [key: string]: any; }; }> {
|
|
372
|
+
const response = await this.getPresetDetailsApiV1PipelinesPresetsDetailsGetRaw(initOverrides);
|
|
373
|
+
return await response.value();
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* 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\" }
|
|
378
|
+
* List Pipeline Components
|
|
379
|
+
*/
|
|
380
|
+
async listPipelineComponentsApiV1PipelinesComponentsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ComponentListResponse>> {
|
|
381
|
+
const queryParameters: any = {};
|
|
382
|
+
|
|
383
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
384
|
+
|
|
385
|
+
const response = await this.request({
|
|
386
|
+
path: `/api/v1/pipelines/components`,
|
|
387
|
+
method: 'GET',
|
|
388
|
+
headers: headerParameters,
|
|
389
|
+
query: queryParameters,
|
|
390
|
+
}, initOverrides);
|
|
391
|
+
|
|
392
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ComponentListResponseFromJSON(jsonValue));
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* 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\" }
|
|
397
|
+
* List Pipeline Components
|
|
398
|
+
*/
|
|
399
|
+
async listPipelineComponentsApiV1PipelinesComponentsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ComponentListResponse> {
|
|
400
|
+
const response = await this.listPipelineComponentsApiV1PipelinesComponentsGetRaw(initOverrides);
|
|
401
|
+
return await response.value();
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
/**
|
|
405
|
+
* 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 }
|
|
406
|
+
* List Pipeline Presets
|
|
407
|
+
*/
|
|
408
|
+
async listPipelinePresetsApiV1PipelinesPresetsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PresetListResponse>> {
|
|
409
|
+
const queryParameters: any = {};
|
|
410
|
+
|
|
411
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
412
|
+
|
|
413
|
+
const response = await this.request({
|
|
414
|
+
path: `/api/v1/pipelines/presets`,
|
|
415
|
+
method: 'GET',
|
|
416
|
+
headers: headerParameters,
|
|
417
|
+
query: queryParameters,
|
|
418
|
+
}, initOverrides);
|
|
419
|
+
|
|
420
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PresetListResponseFromJSON(jsonValue));
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* 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 }
|
|
425
|
+
* List Pipeline Presets
|
|
426
|
+
*/
|
|
427
|
+
async listPipelinePresetsApiV1PipelinesPresetsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PresetListResponse> {
|
|
428
|
+
const response = await this.listPipelinePresetsApiV1PipelinesPresetsGetRaw(initOverrides);
|
|
429
|
+
return await response.value();
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
}
|