@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,500 @@
|
|
|
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.EntriesApi = void 0;
|
|
50
|
+
const runtime = __importStar(require("../runtime"));
|
|
51
|
+
const index_1 = require("../models/index");
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
class EntriesApi extends runtime.BaseAPI {
|
|
56
|
+
/**
|
|
57
|
+
* Get processed content for multiple entries in parallel. THIS IS THE MAGIC endpoint for fast vector search results! - Fetches 50+ entries in ~250ms (vs 25 seconds with Parquet)
|
|
58
|
+
* Batch Get Content
|
|
59
|
+
*/
|
|
60
|
+
async batchGetContentApiV1EntriesBatchContentPostRaw(requestParameters, initOverrides) {
|
|
61
|
+
if (requestParameters['batchContentRequest'] == null) {
|
|
62
|
+
throw new runtime.RequiredError('batchContentRequest', 'Required parameter "batchContentRequest" was null or undefined when calling batchGetContentApiV1EntriesBatchContentPost().');
|
|
63
|
+
}
|
|
64
|
+
const queryParameters = {};
|
|
65
|
+
const headerParameters = {};
|
|
66
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
67
|
+
const response = await this.request({
|
|
68
|
+
path: `/api/v1/entries/batch/content`,
|
|
69
|
+
method: 'POST',
|
|
70
|
+
headers: headerParameters,
|
|
71
|
+
query: queryParameters,
|
|
72
|
+
body: (0, index_1.BatchContentRequestToJSON)(requestParameters['batchContentRequest']),
|
|
73
|
+
}, initOverrides);
|
|
74
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BatchContentResponseFromJSON)(jsonValue));
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Get processed content for multiple entries in parallel. THIS IS THE MAGIC endpoint for fast vector search results! - Fetches 50+ entries in ~250ms (vs 25 seconds with Parquet)
|
|
78
|
+
* Batch Get Content
|
|
79
|
+
*/
|
|
80
|
+
async batchGetContentApiV1EntriesBatchContentPost(requestParameters, initOverrides) {
|
|
81
|
+
const response = await this.batchGetContentApiV1EntriesBatchContentPostRaw(requestParameters, initOverrides);
|
|
82
|
+
return await response.value();
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Get multiple entries in batch (with optional content). This is optimized for performance: - Parallel database queries - Parallel S3 content fetching - Efficient for RAG/vector search results
|
|
86
|
+
* Batch Get Entries
|
|
87
|
+
*/
|
|
88
|
+
async batchGetEntriesApiV1EntriesBatchPostRaw(requestParameters, initOverrides) {
|
|
89
|
+
if (requestParameters['batchGetEntriesRequest'] == null) {
|
|
90
|
+
throw new runtime.RequiredError('batchGetEntriesRequest', 'Required parameter "batchGetEntriesRequest" was null or undefined when calling batchGetEntriesApiV1EntriesBatchPost().');
|
|
91
|
+
}
|
|
92
|
+
const queryParameters = {};
|
|
93
|
+
const headerParameters = {};
|
|
94
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
95
|
+
const response = await this.request({
|
|
96
|
+
path: `/api/v1/entries/batch`,
|
|
97
|
+
method: 'POST',
|
|
98
|
+
headers: headerParameters,
|
|
99
|
+
query: queryParameters,
|
|
100
|
+
body: (0, index_1.BatchGetEntriesRequestToJSON)(requestParameters['batchGetEntriesRequest']),
|
|
101
|
+
}, initOverrides);
|
|
102
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BatchGetEntriesResponseFromJSON)(jsonValue));
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Get multiple entries in batch (with optional content). This is optimized for performance: - Parallel database queries - Parallel S3 content fetching - Efficient for RAG/vector search results
|
|
106
|
+
* Batch Get Entries
|
|
107
|
+
*/
|
|
108
|
+
async batchGetEntriesApiV1EntriesBatchPost(requestParameters, initOverrides) {
|
|
109
|
+
const response = await this.batchGetEntriesApiV1EntriesBatchPostRaw(requestParameters, initOverrides);
|
|
110
|
+
return await response.value();
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Create a new entry. This creates the entry record in PostgreSQL but does NOT upload files yet. Use POST /entries/{id}/upload to upload the actual file.
|
|
114
|
+
* Create Entry
|
|
115
|
+
*/
|
|
116
|
+
async createEntryApiV1EntriesPostRaw(requestParameters, initOverrides) {
|
|
117
|
+
if (requestParameters['entryCreateRequest'] == null) {
|
|
118
|
+
throw new runtime.RequiredError('entryCreateRequest', 'Required parameter "entryCreateRequest" was null or undefined when calling createEntryApiV1EntriesPost().');
|
|
119
|
+
}
|
|
120
|
+
const queryParameters = {};
|
|
121
|
+
const headerParameters = {};
|
|
122
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
123
|
+
const response = await this.request({
|
|
124
|
+
path: `/api/v1/entries`,
|
|
125
|
+
method: 'POST',
|
|
126
|
+
headers: headerParameters,
|
|
127
|
+
query: queryParameters,
|
|
128
|
+
body: (0, index_1.EntryCreateRequestToJSON)(requestParameters['entryCreateRequest']),
|
|
129
|
+
}, initOverrides);
|
|
130
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.EntryCreateResponseFromJSON)(jsonValue));
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Create a new entry. This creates the entry record in PostgreSQL but does NOT upload files yet. Use POST /entries/{id}/upload to upload the actual file.
|
|
134
|
+
* Create Entry
|
|
135
|
+
*/
|
|
136
|
+
async createEntryApiV1EntriesPost(requestParameters, initOverrides) {
|
|
137
|
+
const response = await this.createEntryApiV1EntriesPostRaw(requestParameters, initOverrides);
|
|
138
|
+
return await response.value();
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Delete entry and all its files. Warning: This permanently deletes all files from storage. Also deletes associated chunks from Qdrant if they exist. Returns: Dict with deletion status: { \"message\": \"Entry deleted successfully\", \"cleanup_status\": { \"database\": bool, \"webhook\": bool, \"minio\": bool, \"qdrant\": bool, \"meilisearch\": bool }, \"warnings\": [\"component1\", \"component2\"] (optional, if any cleanups failed) }
|
|
142
|
+
* Delete Entry
|
|
143
|
+
*/
|
|
144
|
+
async deleteEntryApiV1EntriesEntryIdDeleteRaw(requestParameters, initOverrides) {
|
|
145
|
+
if (requestParameters['entryId'] == null) {
|
|
146
|
+
throw new runtime.RequiredError('entryId', 'Required parameter "entryId" was null or undefined when calling deleteEntryApiV1EntriesEntryIdDelete().');
|
|
147
|
+
}
|
|
148
|
+
const queryParameters = {};
|
|
149
|
+
const headerParameters = {};
|
|
150
|
+
const response = await this.request({
|
|
151
|
+
path: `/api/v1/entries/{entry_id}`.replace(`{${"entry_id"}}`, encodeURIComponent(String(requestParameters['entryId']))),
|
|
152
|
+
method: 'DELETE',
|
|
153
|
+
headers: headerParameters,
|
|
154
|
+
query: queryParameters,
|
|
155
|
+
}, initOverrides);
|
|
156
|
+
return new runtime.JSONApiResponse(response);
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Delete entry and all its files. Warning: This permanently deletes all files from storage. Also deletes associated chunks from Qdrant if they exist. Returns: Dict with deletion status: { \"message\": \"Entry deleted successfully\", \"cleanup_status\": { \"database\": bool, \"webhook\": bool, \"minio\": bool, \"qdrant\": bool, \"meilisearch\": bool }, \"warnings\": [\"component1\", \"component2\"] (optional, if any cleanups failed) }
|
|
160
|
+
* Delete Entry
|
|
161
|
+
*/
|
|
162
|
+
async deleteEntryApiV1EntriesEntryIdDelete(requestParameters, initOverrides) {
|
|
163
|
+
const response = await this.deleteEntryApiV1EntriesEntryIdDeleteRaw(requestParameters, initOverrides);
|
|
164
|
+
return await response.value();
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Download a file from an entry. Args: entry_id: Entry ID filename: Specific filename (suffix match against S3 key). If omitted, returns the first file in the section. file_type: Manifest section — ``\"original\"`` (default), ``\"processing\"``, or ``\"processed\"`` (figures and other processed outputs).
|
|
168
|
+
* Download File
|
|
169
|
+
*/
|
|
170
|
+
async downloadFileApiV1EntriesEntryIdDownloadGetRaw(requestParameters, initOverrides) {
|
|
171
|
+
if (requestParameters['entryId'] == null) {
|
|
172
|
+
throw new runtime.RequiredError('entryId', 'Required parameter "entryId" was null or undefined when calling downloadFileApiV1EntriesEntryIdDownloadGet().');
|
|
173
|
+
}
|
|
174
|
+
const queryParameters = {};
|
|
175
|
+
if (requestParameters['filename'] != null) {
|
|
176
|
+
queryParameters['filename'] = requestParameters['filename'];
|
|
177
|
+
}
|
|
178
|
+
if (requestParameters['fileType'] != null) {
|
|
179
|
+
queryParameters['file_type'] = requestParameters['fileType'];
|
|
180
|
+
}
|
|
181
|
+
const headerParameters = {};
|
|
182
|
+
const response = await this.request({
|
|
183
|
+
path: `/api/v1/entries/{entry_id}/download`.replace(`{${"entry_id"}}`, encodeURIComponent(String(requestParameters['entryId']))),
|
|
184
|
+
method: 'GET',
|
|
185
|
+
headers: headerParameters,
|
|
186
|
+
query: queryParameters,
|
|
187
|
+
}, initOverrides);
|
|
188
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
189
|
+
return new runtime.JSONApiResponse(response);
|
|
190
|
+
}
|
|
191
|
+
else {
|
|
192
|
+
return new runtime.TextApiResponse(response);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Download a file from an entry. Args: entry_id: Entry ID filename: Specific filename (suffix match against S3 key). If omitted, returns the first file in the section. file_type: Manifest section — ``\"original\"`` (default), ``\"processing\"``, or ``\"processed\"`` (figures and other processed outputs).
|
|
197
|
+
* Download File
|
|
198
|
+
*/
|
|
199
|
+
async downloadFileApiV1EntriesEntryIdDownloadGet(requestParameters, initOverrides) {
|
|
200
|
+
const response = await this.downloadFileApiV1EntriesEntryIdDownloadGetRaw(requestParameters, initOverrides);
|
|
201
|
+
return await response.value();
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* Get entry by ID
|
|
205
|
+
* Get Entry
|
|
206
|
+
*/
|
|
207
|
+
async getEntryApiV1EntriesEntryIdGetRaw(requestParameters, initOverrides) {
|
|
208
|
+
if (requestParameters['entryId'] == null) {
|
|
209
|
+
throw new runtime.RequiredError('entryId', 'Required parameter "entryId" was null or undefined when calling getEntryApiV1EntriesEntryIdGet().');
|
|
210
|
+
}
|
|
211
|
+
const queryParameters = {};
|
|
212
|
+
const headerParameters = {};
|
|
213
|
+
const response = await this.request({
|
|
214
|
+
path: `/api/v1/entries/{entry_id}`.replace(`{${"entry_id"}}`, encodeURIComponent(String(requestParameters['entryId']))),
|
|
215
|
+
method: 'GET',
|
|
216
|
+
headers: headerParameters,
|
|
217
|
+
query: queryParameters,
|
|
218
|
+
}, initOverrides);
|
|
219
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.EntryFromJSON)(jsonValue));
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* Get entry by ID
|
|
223
|
+
* Get Entry
|
|
224
|
+
*/
|
|
225
|
+
async getEntryApiV1EntriesEntryIdGet(requestParameters, initOverrides) {
|
|
226
|
+
const response = await this.getEntryApiV1EntriesEntryIdGetRaw(requestParameters, initOverrides);
|
|
227
|
+
return await response.value();
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Get processed content for a single entry
|
|
231
|
+
* Get Entry Content
|
|
232
|
+
*/
|
|
233
|
+
async getEntryContentApiV1EntriesEntryIdContentGetRaw(requestParameters, initOverrides) {
|
|
234
|
+
if (requestParameters['entryId'] == null) {
|
|
235
|
+
throw new runtime.RequiredError('entryId', 'Required parameter "entryId" was null or undefined when calling getEntryContentApiV1EntriesEntryIdContentGet().');
|
|
236
|
+
}
|
|
237
|
+
const queryParameters = {};
|
|
238
|
+
const headerParameters = {};
|
|
239
|
+
const response = await this.request({
|
|
240
|
+
path: `/api/v1/entries/{entry_id}/content`.replace(`{${"entry_id"}}`, encodeURIComponent(String(requestParameters['entryId']))),
|
|
241
|
+
method: 'GET',
|
|
242
|
+
headers: headerParameters,
|
|
243
|
+
query: queryParameters,
|
|
244
|
+
}, initOverrides);
|
|
245
|
+
return new runtime.JSONApiResponse(response);
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* Get processed content for a single entry
|
|
249
|
+
* Get Entry Content
|
|
250
|
+
*/
|
|
251
|
+
async getEntryContentApiV1EntriesEntryIdContentGet(requestParameters, initOverrides) {
|
|
252
|
+
const response = await this.getEntryContentApiV1EntriesEntryIdContentGetRaw(requestParameters, initOverrides);
|
|
253
|
+
return await response.value();
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* Get workflow status for an entry. Queries Argo Workflows API to get the current status of the pipeline workflow for this entry, including individual task statuses. **Note**: This endpoint queries the Argo API directly. If the workflow is not found or Argo is unavailable, it will return Unknown status. **Returns**: - entry_id: Entry ID - workflow_name: Argo workflow name (if found) - workflow_status: Overall status (Pending, Running, Succeeded, Failed, Error, Unknown) - workflow_phase: Argo workflow phase - start_time: When workflow started - finish_time: When workflow completed (if finished) - tasks: List of individual task statuses - message: Status message or error details **Error Responses**: - 404: Entry not found - 503: Argo Workflows unavailable
|
|
257
|
+
* Get Workflow Status
|
|
258
|
+
*/
|
|
259
|
+
async getWorkflowStatusApiV1EntriesEntryIdWorkflowStatusGetRaw(requestParameters, initOverrides) {
|
|
260
|
+
if (requestParameters['entryId'] == null) {
|
|
261
|
+
throw new runtime.RequiredError('entryId', 'Required parameter "entryId" was null or undefined when calling getWorkflowStatusApiV1EntriesEntryIdWorkflowStatusGet().');
|
|
262
|
+
}
|
|
263
|
+
const queryParameters = {};
|
|
264
|
+
const headerParameters = {};
|
|
265
|
+
const response = await this.request({
|
|
266
|
+
path: `/api/v1/entries/{entry_id}/workflow-status`.replace(`{${"entry_id"}}`, encodeURIComponent(String(requestParameters['entryId']))),
|
|
267
|
+
method: 'GET',
|
|
268
|
+
headers: headerParameters,
|
|
269
|
+
query: queryParameters,
|
|
270
|
+
}, initOverrides);
|
|
271
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
272
|
+
return new runtime.JSONApiResponse(response);
|
|
273
|
+
}
|
|
274
|
+
else {
|
|
275
|
+
return new runtime.TextApiResponse(response);
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* Get workflow status for an entry. Queries Argo Workflows API to get the current status of the pipeline workflow for this entry, including individual task statuses. **Note**: This endpoint queries the Argo API directly. If the workflow is not found or Argo is unavailable, it will return Unknown status. **Returns**: - entry_id: Entry ID - workflow_name: Argo workflow name (if found) - workflow_status: Overall status (Pending, Running, Succeeded, Failed, Error, Unknown) - workflow_phase: Argo workflow phase - start_time: When workflow started - finish_time: When workflow completed (if finished) - tasks: List of individual task statuses - message: Status message or error details **Error Responses**: - 404: Entry not found - 503: Argo Workflows unavailable
|
|
280
|
+
* Get Workflow Status
|
|
281
|
+
*/
|
|
282
|
+
async getWorkflowStatusApiV1EntriesEntryIdWorkflowStatusGet(requestParameters, initOverrides) {
|
|
283
|
+
const response = await this.getWorkflowStatusApiV1EntriesEntryIdWorkflowStatusGetRaw(requestParameters, initOverrides);
|
|
284
|
+
return await response.value();
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* Index chunks for an entry into Qdrant vector database. This endpoint is called by processing pipelines after chunking and embedding. Request body: { \"chunks\": [ { \"chunk_text\": \"...\", \"chunk_index\": 0, \"embedding\": [0.1, 0.2, ...], \"metadata\": {\"page_number\": 1, ...} } ] } Note: Collection name is always determined by the tenant\'s QDRANT_COLLECTION_NAME configuration.
|
|
288
|
+
* Index Entry Chunks
|
|
289
|
+
*/
|
|
290
|
+
async indexEntryChunksApiV1EntriesEntryIdChunksPostRaw(requestParameters, initOverrides) {
|
|
291
|
+
if (requestParameters['entryId'] == null) {
|
|
292
|
+
throw new runtime.RequiredError('entryId', 'Required parameter "entryId" was null or undefined when calling indexEntryChunksApiV1EntriesEntryIdChunksPost().');
|
|
293
|
+
}
|
|
294
|
+
if (requestParameters['requestBody'] == null) {
|
|
295
|
+
throw new runtime.RequiredError('requestBody', 'Required parameter "requestBody" was null or undefined when calling indexEntryChunksApiV1EntriesEntryIdChunksPost().');
|
|
296
|
+
}
|
|
297
|
+
const queryParameters = {};
|
|
298
|
+
const headerParameters = {};
|
|
299
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
300
|
+
const response = await this.request({
|
|
301
|
+
path: `/api/v1/entries/{entry_id}/chunks`.replace(`{${"entry_id"}}`, encodeURIComponent(String(requestParameters['entryId']))),
|
|
302
|
+
method: 'POST',
|
|
303
|
+
headers: headerParameters,
|
|
304
|
+
query: queryParameters,
|
|
305
|
+
body: requestParameters['requestBody'],
|
|
306
|
+
}, initOverrides);
|
|
307
|
+
return new runtime.JSONApiResponse(response);
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* Index chunks for an entry into Qdrant vector database. This endpoint is called by processing pipelines after chunking and embedding. Request body: { \"chunks\": [ { \"chunk_text\": \"...\", \"chunk_index\": 0, \"embedding\": [0.1, 0.2, ...], \"metadata\": {\"page_number\": 1, ...} } ] } Note: Collection name is always determined by the tenant\'s QDRANT_COLLECTION_NAME configuration.
|
|
311
|
+
* Index Entry Chunks
|
|
312
|
+
*/
|
|
313
|
+
async indexEntryChunksApiV1EntriesEntryIdChunksPost(requestParameters, initOverrides) {
|
|
314
|
+
const response = await this.indexEntryChunksApiV1EntriesEntryIdChunksPostRaw(requestParameters, initOverrides);
|
|
315
|
+
return await response.value();
|
|
316
|
+
}
|
|
317
|
+
/**
|
|
318
|
+
* List entries for a dataset with pagination. Query parameters: - dataset_id: Dataset ID (required) - page: Page number (default: 1) - limit: Items per page (default: 20, max: 100) - status_filter: Filter by status (optional) Returns paginated list of entries.
|
|
319
|
+
* List Entries
|
|
320
|
+
*/
|
|
321
|
+
async listEntriesApiV1EntriesGetRaw(requestParameters, initOverrides) {
|
|
322
|
+
if (requestParameters['datasetId'] == null) {
|
|
323
|
+
throw new runtime.RequiredError('datasetId', 'Required parameter "datasetId" was null or undefined when calling listEntriesApiV1EntriesGet().');
|
|
324
|
+
}
|
|
325
|
+
const queryParameters = {};
|
|
326
|
+
if (requestParameters['datasetId'] != null) {
|
|
327
|
+
queryParameters['dataset_id'] = requestParameters['datasetId'];
|
|
328
|
+
}
|
|
329
|
+
if (requestParameters['page'] != null) {
|
|
330
|
+
queryParameters['page'] = requestParameters['page'];
|
|
331
|
+
}
|
|
332
|
+
if (requestParameters['limit'] != null) {
|
|
333
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
334
|
+
}
|
|
335
|
+
if (requestParameters['statusFilter'] != null) {
|
|
336
|
+
queryParameters['status_filter'] = requestParameters['statusFilter'];
|
|
337
|
+
}
|
|
338
|
+
const headerParameters = {};
|
|
339
|
+
const response = await this.request({
|
|
340
|
+
path: `/api/v1/entries`,
|
|
341
|
+
method: 'GET',
|
|
342
|
+
headers: headerParameters,
|
|
343
|
+
query: queryParameters,
|
|
344
|
+
}, initOverrides);
|
|
345
|
+
return new runtime.JSONApiResponse(response);
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* List entries for a dataset with pagination. Query parameters: - dataset_id: Dataset ID (required) - page: Page number (default: 1) - limit: Items per page (default: 20, max: 100) - status_filter: Filter by status (optional) Returns paginated list of entries.
|
|
349
|
+
* List Entries
|
|
350
|
+
*/
|
|
351
|
+
async listEntriesApiV1EntriesGet(requestParameters, initOverrides) {
|
|
352
|
+
const response = await this.listEntriesApiV1EntriesGetRaw(requestParameters, initOverrides);
|
|
353
|
+
return await response.value();
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* Save processed content for an entry. Called by workers/pipelines after processing.
|
|
357
|
+
* Save Processed Content
|
|
358
|
+
*/
|
|
359
|
+
async saveProcessedContentApiV1EntriesEntryIdProcessedPostRaw(requestParameters, initOverrides) {
|
|
360
|
+
if (requestParameters['entryId'] == null) {
|
|
361
|
+
throw new runtime.RequiredError('entryId', 'Required parameter "entryId" was null or undefined when calling saveProcessedContentApiV1EntriesEntryIdProcessedPost().');
|
|
362
|
+
}
|
|
363
|
+
if (requestParameters['saveProcessedContentRequest'] == null) {
|
|
364
|
+
throw new runtime.RequiredError('saveProcessedContentRequest', 'Required parameter "saveProcessedContentRequest" was null or undefined when calling saveProcessedContentApiV1EntriesEntryIdProcessedPost().');
|
|
365
|
+
}
|
|
366
|
+
const queryParameters = {};
|
|
367
|
+
const headerParameters = {};
|
|
368
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
369
|
+
const response = await this.request({
|
|
370
|
+
path: `/api/v1/entries/{entry_id}/processed`.replace(`{${"entry_id"}}`, encodeURIComponent(String(requestParameters['entryId']))),
|
|
371
|
+
method: 'POST',
|
|
372
|
+
headers: headerParameters,
|
|
373
|
+
query: queryParameters,
|
|
374
|
+
body: (0, index_1.SaveProcessedContentRequestToJSON)(requestParameters['saveProcessedContentRequest']),
|
|
375
|
+
}, initOverrides);
|
|
376
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SaveProcessedContentResponseFromJSON)(jsonValue));
|
|
377
|
+
}
|
|
378
|
+
/**
|
|
379
|
+
* Save processed content for an entry. Called by workers/pipelines after processing.
|
|
380
|
+
* Save Processed Content
|
|
381
|
+
*/
|
|
382
|
+
async saveProcessedContentApiV1EntriesEntryIdProcessedPost(requestParameters, initOverrides) {
|
|
383
|
+
const response = await this.saveProcessedContentApiV1EntriesEntryIdProcessedPostRaw(requestParameters, initOverrides);
|
|
384
|
+
return await response.value();
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* Trigger pipeline workflow for an entry. This endpoint: 1. Validates entry exists and is in a triggerable state 2. Validates dataset has a pipeline configured and enabled 3. Builds Argo Workflow from pipeline config using PipelineBuilder 4. Updates entry status to \'processing\' 5. Submits workflow to Argo Workflows 6. Returns workflow metadata **Valid Entry Statuses**: uploaded, error **Requirements**: Dataset must have pipeline_config with enabled=true **Error Responses**: - 404: Entry not found - 400: Invalid entry status, pipeline not configured, or pipeline disabled - 500: Workflow submission failed
|
|
388
|
+
* Trigger Pipeline
|
|
389
|
+
*/
|
|
390
|
+
async triggerPipelineApiV1EntriesEntryIdTriggerPipelinePostRaw(requestParameters, initOverrides) {
|
|
391
|
+
if (requestParameters['entryId'] == null) {
|
|
392
|
+
throw new runtime.RequiredError('entryId', 'Required parameter "entryId" was null or undefined when calling triggerPipelineApiV1EntriesEntryIdTriggerPipelinePost().');
|
|
393
|
+
}
|
|
394
|
+
const queryParameters = {};
|
|
395
|
+
const headerParameters = {};
|
|
396
|
+
const response = await this.request({
|
|
397
|
+
path: `/api/v1/entries/{entry_id}/trigger-pipeline`.replace(`{${"entry_id"}}`, encodeURIComponent(String(requestParameters['entryId']))),
|
|
398
|
+
method: 'POST',
|
|
399
|
+
headers: headerParameters,
|
|
400
|
+
query: queryParameters,
|
|
401
|
+
}, initOverrides);
|
|
402
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
403
|
+
return new runtime.JSONApiResponse(response);
|
|
404
|
+
}
|
|
405
|
+
else {
|
|
406
|
+
return new runtime.TextApiResponse(response);
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* Trigger pipeline workflow for an entry. This endpoint: 1. Validates entry exists and is in a triggerable state 2. Validates dataset has a pipeline configured and enabled 3. Builds Argo Workflow from pipeline config using PipelineBuilder 4. Updates entry status to \'processing\' 5. Submits workflow to Argo Workflows 6. Returns workflow metadata **Valid Entry Statuses**: uploaded, error **Requirements**: Dataset must have pipeline_config with enabled=true **Error Responses**: - 404: Entry not found - 400: Invalid entry status, pipeline not configured, or pipeline disabled - 500: Workflow submission failed
|
|
411
|
+
* Trigger Pipeline
|
|
412
|
+
*/
|
|
413
|
+
async triggerPipelineApiV1EntriesEntryIdTriggerPipelinePost(requestParameters, initOverrides) {
|
|
414
|
+
const response = await this.triggerPipelineApiV1EntriesEntryIdTriggerPipelinePostRaw(requestParameters, initOverrides);
|
|
415
|
+
return await response.value();
|
|
416
|
+
}
|
|
417
|
+
/**
|
|
418
|
+
* Update entry metadata. Allows updating name, description, status, and metadata fields.
|
|
419
|
+
* Update Entry
|
|
420
|
+
*/
|
|
421
|
+
async updateEntryApiV1EntriesEntryIdPatchRaw(requestParameters, initOverrides) {
|
|
422
|
+
if (requestParameters['entryId'] == null) {
|
|
423
|
+
throw new runtime.RequiredError('entryId', 'Required parameter "entryId" was null or undefined when calling updateEntryApiV1EntriesEntryIdPatch().');
|
|
424
|
+
}
|
|
425
|
+
if (requestParameters['entryUpdateRequest'] == null) {
|
|
426
|
+
throw new runtime.RequiredError('entryUpdateRequest', 'Required parameter "entryUpdateRequest" was null or undefined when calling updateEntryApiV1EntriesEntryIdPatch().');
|
|
427
|
+
}
|
|
428
|
+
const queryParameters = {};
|
|
429
|
+
const headerParameters = {};
|
|
430
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
431
|
+
const response = await this.request({
|
|
432
|
+
path: `/api/v1/entries/{entry_id}`.replace(`{${"entry_id"}}`, encodeURIComponent(String(requestParameters['entryId']))),
|
|
433
|
+
method: 'PATCH',
|
|
434
|
+
headers: headerParameters,
|
|
435
|
+
query: queryParameters,
|
|
436
|
+
body: (0, index_1.EntryUpdateRequestToJSON)(requestParameters['entryUpdateRequest']),
|
|
437
|
+
}, initOverrides);
|
|
438
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.EntryFromJSON)(jsonValue));
|
|
439
|
+
}
|
|
440
|
+
/**
|
|
441
|
+
* Update entry metadata. Allows updating name, description, status, and metadata fields.
|
|
442
|
+
* Update Entry
|
|
443
|
+
*/
|
|
444
|
+
async updateEntryApiV1EntriesEntryIdPatch(requestParameters, initOverrides) {
|
|
445
|
+
const response = await this.updateEntryApiV1EntriesEntryIdPatchRaw(requestParameters, initOverrides);
|
|
446
|
+
return await response.value();
|
|
447
|
+
}
|
|
448
|
+
/**
|
|
449
|
+
* Upload a file to an existing entry. This saves the file to MinIO and updates the entry manifest in the appropriate section. **File Types**: - `original`: Original uploaded files (default) - stored in manifest.original.files - `processing`: Intermediate processing artifacts - stored in manifest.processing.files - `processed`: Final processed outputs - stored in manifest.processed.additional_files Can be called multiple times to upload additional files of any type.
|
|
450
|
+
* Upload File To Entry
|
|
451
|
+
*/
|
|
452
|
+
async uploadFileToEntryApiV1EntriesEntryIdUploadPostRaw(requestParameters, initOverrides) {
|
|
453
|
+
if (requestParameters['entryId'] == null) {
|
|
454
|
+
throw new runtime.RequiredError('entryId', 'Required parameter "entryId" was null or undefined when calling uploadFileToEntryApiV1EntriesEntryIdUploadPost().');
|
|
455
|
+
}
|
|
456
|
+
if (requestParameters['file'] == null) {
|
|
457
|
+
throw new runtime.RequiredError('file', 'Required parameter "file" was null or undefined when calling uploadFileToEntryApiV1EntriesEntryIdUploadPost().');
|
|
458
|
+
}
|
|
459
|
+
const queryParameters = {};
|
|
460
|
+
const headerParameters = {};
|
|
461
|
+
const consumes = [
|
|
462
|
+
{ contentType: 'multipart/form-data' },
|
|
463
|
+
];
|
|
464
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
465
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
466
|
+
let formParams;
|
|
467
|
+
let useForm = false;
|
|
468
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
469
|
+
useForm = canConsumeForm;
|
|
470
|
+
if (useForm) {
|
|
471
|
+
formParams = new FormData();
|
|
472
|
+
}
|
|
473
|
+
else {
|
|
474
|
+
formParams = new URLSearchParams();
|
|
475
|
+
}
|
|
476
|
+
if (requestParameters['file'] != null) {
|
|
477
|
+
formParams.append('file', requestParameters['file']);
|
|
478
|
+
}
|
|
479
|
+
if (requestParameters['fileType'] != null) {
|
|
480
|
+
formParams.append('file_type', requestParameters['fileType']);
|
|
481
|
+
}
|
|
482
|
+
const response = await this.request({
|
|
483
|
+
path: `/api/v1/entries/{entry_id}/upload`.replace(`{${"entry_id"}}`, encodeURIComponent(String(requestParameters['entryId']))),
|
|
484
|
+
method: 'POST',
|
|
485
|
+
headers: headerParameters,
|
|
486
|
+
query: queryParameters,
|
|
487
|
+
body: formParams,
|
|
488
|
+
}, initOverrides);
|
|
489
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UploadFileResponseFromJSON)(jsonValue));
|
|
490
|
+
}
|
|
491
|
+
/**
|
|
492
|
+
* Upload a file to an existing entry. This saves the file to MinIO and updates the entry manifest in the appropriate section. **File Types**: - `original`: Original uploaded files (default) - stored in manifest.original.files - `processing`: Intermediate processing artifacts - stored in manifest.processing.files - `processed`: Final processed outputs - stored in manifest.processed.additional_files Can be called multiple times to upload additional files of any type.
|
|
493
|
+
* Upload File To Entry
|
|
494
|
+
*/
|
|
495
|
+
async uploadFileToEntryApiV1EntriesEntryIdUploadPost(requestParameters, initOverrides) {
|
|
496
|
+
const response = await this.uploadFileToEntryApiV1EntriesEntryIdUploadPostRaw(requestParameters, initOverrides);
|
|
497
|
+
return await response.value();
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
exports.EntriesApi = EntriesApi;
|
|
@@ -0,0 +1,118 @@
|
|
|
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
|
+
/**
|
|
14
|
+
* HealthApi - interface
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface HealthApiInterface
|
|
18
|
+
*/
|
|
19
|
+
export interface HealthApiInterface {
|
|
20
|
+
/**
|
|
21
|
+
* 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
|
|
22
|
+
* @summary Health Check
|
|
23
|
+
* @param {*} [options] Override http request option.
|
|
24
|
+
* @throws {RequiredError}
|
|
25
|
+
* @memberof HealthApiInterface
|
|
26
|
+
*/
|
|
27
|
+
healthCheckApiV1HealthGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
|
|
28
|
+
[key: string]: any;
|
|
29
|
+
}>>;
|
|
30
|
+
/**
|
|
31
|
+
* 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
|
|
32
|
+
* Health Check
|
|
33
|
+
*/
|
|
34
|
+
healthCheckApiV1HealthGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
35
|
+
[key: string]: any;
|
|
36
|
+
}>;
|
|
37
|
+
/**
|
|
38
|
+
* Liveness check for Kubernetes. Returns 200 if application is alive (even if dependencies are down).
|
|
39
|
+
* @summary Liveness Check
|
|
40
|
+
* @param {*} [options] Override http request option.
|
|
41
|
+
* @throws {RequiredError}
|
|
42
|
+
* @memberof HealthApiInterface
|
|
43
|
+
*/
|
|
44
|
+
livenessCheckApiV1HealthLiveGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
|
|
45
|
+
[key: string]: string | null;
|
|
46
|
+
}>>;
|
|
47
|
+
/**
|
|
48
|
+
* Liveness check for Kubernetes. Returns 200 if application is alive (even if dependencies are down).
|
|
49
|
+
* Liveness Check
|
|
50
|
+
*/
|
|
51
|
+
livenessCheckApiV1HealthLiveGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
52
|
+
[key: string]: string | null;
|
|
53
|
+
}>;
|
|
54
|
+
/**
|
|
55
|
+
* Readiness check for Kubernetes. Returns 200 if ready to accept traffic.
|
|
56
|
+
* @summary Readiness Check
|
|
57
|
+
* @param {*} [options] Override http request option.
|
|
58
|
+
* @throws {RequiredError}
|
|
59
|
+
* @memberof HealthApiInterface
|
|
60
|
+
*/
|
|
61
|
+
readinessCheckApiV1HealthReadyGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
|
|
62
|
+
[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<{
|
|
69
|
+
[key: string]: string;
|
|
70
|
+
}>;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
*/
|
|
75
|
+
export declare class HealthApi extends runtime.BaseAPI implements HealthApiInterface {
|
|
76
|
+
/**
|
|
77
|
+
* 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
|
|
78
|
+
* Health Check
|
|
79
|
+
*/
|
|
80
|
+
healthCheckApiV1HealthGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
|
|
81
|
+
[key: string]: any;
|
|
82
|
+
}>>;
|
|
83
|
+
/**
|
|
84
|
+
* 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
|
|
85
|
+
* Health Check
|
|
86
|
+
*/
|
|
87
|
+
healthCheckApiV1HealthGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
88
|
+
[key: string]: any;
|
|
89
|
+
}>;
|
|
90
|
+
/**
|
|
91
|
+
* Liveness check for Kubernetes. Returns 200 if application is alive (even if dependencies are down).
|
|
92
|
+
* Liveness Check
|
|
93
|
+
*/
|
|
94
|
+
livenessCheckApiV1HealthLiveGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
|
|
95
|
+
[key: string]: string | null;
|
|
96
|
+
}>>;
|
|
97
|
+
/**
|
|
98
|
+
* Liveness check for Kubernetes. Returns 200 if application is alive (even if dependencies are down).
|
|
99
|
+
* Liveness Check
|
|
100
|
+
*/
|
|
101
|
+
livenessCheckApiV1HealthLiveGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
102
|
+
[key: string]: string | null;
|
|
103
|
+
}>;
|
|
104
|
+
/**
|
|
105
|
+
* Readiness check for Kubernetes. Returns 200 if ready to accept traffic.
|
|
106
|
+
* Readiness Check
|
|
107
|
+
*/
|
|
108
|
+
readinessCheckApiV1HealthReadyGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
|
|
109
|
+
[key: string]: string;
|
|
110
|
+
}>>;
|
|
111
|
+
/**
|
|
112
|
+
* Readiness check for Kubernetes. Returns 200 if ready to accept traffic.
|
|
113
|
+
* Readiness Check
|
|
114
|
+
*/
|
|
115
|
+
readinessCheckApiV1HealthReadyGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
116
|
+
[key: string]: string;
|
|
117
|
+
}>;
|
|
118
|
+
}
|