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