@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,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
|
+
import type { Entry } from './Entry';
|
|
17
|
+
import {
|
|
18
|
+
EntryFromJSON,
|
|
19
|
+
EntryFromJSONTyped,
|
|
20
|
+
EntryToJSON,
|
|
21
|
+
EntryToJSONTyped,
|
|
22
|
+
} from './Entry';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Response after creating an entry.
|
|
26
|
+
* @export
|
|
27
|
+
* @interface EntryCreateResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface EntryCreateResponse {
|
|
30
|
+
/**
|
|
31
|
+
* Created entry
|
|
32
|
+
* @type {Entry}
|
|
33
|
+
* @memberof EntryCreateResponse
|
|
34
|
+
*/
|
|
35
|
+
entry: Entry;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof EntryCreateResponse
|
|
40
|
+
*/
|
|
41
|
+
uploadUrl?: string | null;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the EntryCreateResponse interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfEntryCreateResponse(value: object): value is EntryCreateResponse {
|
|
48
|
+
if (!('entry' in value) || value['entry'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function EntryCreateResponseFromJSON(json: any): EntryCreateResponse {
|
|
53
|
+
return EntryCreateResponseFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function EntryCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): EntryCreateResponse {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'entry': EntryFromJSON(json['entry']),
|
|
63
|
+
'uploadUrl': json['upload_url'] == null ? undefined : json['upload_url'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function EntryCreateResponseToJSON(json: any): EntryCreateResponse {
|
|
68
|
+
return EntryCreateResponseToJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function EntryCreateResponseToJSONTyped(value?: EntryCreateResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
72
|
+
if (value == null) {
|
|
73
|
+
return value;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'entry': EntryToJSON(value['entry']),
|
|
79
|
+
'upload_url': value['uploadUrl'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
@@ -0,0 +1,135 @@
|
|
|
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 { ProcessingManifest } from './ProcessingManifest';
|
|
17
|
+
import {
|
|
18
|
+
ProcessingManifestFromJSON,
|
|
19
|
+
ProcessingManifestFromJSONTyped,
|
|
20
|
+
ProcessingManifestToJSON,
|
|
21
|
+
ProcessingManifestToJSONTyped,
|
|
22
|
+
} from './ProcessingManifest';
|
|
23
|
+
import type { ProcessedManifest } from './ProcessedManifest';
|
|
24
|
+
import {
|
|
25
|
+
ProcessedManifestFromJSON,
|
|
26
|
+
ProcessedManifestFromJSONTyped,
|
|
27
|
+
ProcessedManifestToJSON,
|
|
28
|
+
ProcessedManifestToJSONTyped,
|
|
29
|
+
} from './ProcessedManifest';
|
|
30
|
+
import type { OriginalManifest } from './OriginalManifest';
|
|
31
|
+
import {
|
|
32
|
+
OriginalManifestFromJSON,
|
|
33
|
+
OriginalManifestFromJSONTyped,
|
|
34
|
+
OriginalManifestToJSON,
|
|
35
|
+
OriginalManifestToJSONTyped,
|
|
36
|
+
} from './OriginalManifest';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Complete entry manifest structure.
|
|
40
|
+
*
|
|
41
|
+
* Schema versioning allows incremental migration:
|
|
42
|
+
* - Dataset has current_schema_version (e.g., "v3")
|
|
43
|
+
* - Each entry manifest has schema_version (e.g., "v1", "v2", "v3")
|
|
44
|
+
* - Entries with old versions can be migrated one by one
|
|
45
|
+
* - Query: WHERE manifest->>'schema_version' < dataset.current_schema_version
|
|
46
|
+
* @export
|
|
47
|
+
* @interface EntryManifest
|
|
48
|
+
*/
|
|
49
|
+
export interface EntryManifest {
|
|
50
|
+
/**
|
|
51
|
+
* Schema version (e.g., 'v3')
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof EntryManifest
|
|
54
|
+
*/
|
|
55
|
+
schemaVersion: string;
|
|
56
|
+
/**
|
|
57
|
+
* Dataset schema identifier (e.g., 'arxiv_papers_ocr')
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof EntryManifest
|
|
60
|
+
*/
|
|
61
|
+
datasetSchemaId: string;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {OriginalManifest}
|
|
65
|
+
* @memberof EntryManifest
|
|
66
|
+
*/
|
|
67
|
+
original?: OriginalManifest | null;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {ProcessingManifest}
|
|
71
|
+
* @memberof EntryManifest
|
|
72
|
+
*/
|
|
73
|
+
processing?: ProcessingManifest | null;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {ProcessedManifest}
|
|
77
|
+
* @memberof EntryManifest
|
|
78
|
+
*/
|
|
79
|
+
processed?: ProcessedManifest | null;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof EntryManifest
|
|
84
|
+
*/
|
|
85
|
+
fullManifestKey?: string | null;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Check if a given object implements the EntryManifest interface.
|
|
90
|
+
*/
|
|
91
|
+
export function instanceOfEntryManifest(value: object): value is EntryManifest {
|
|
92
|
+
if (!('schemaVersion' in value) || value['schemaVersion'] === undefined) return false;
|
|
93
|
+
if (!('datasetSchemaId' in value) || value['datasetSchemaId'] === undefined) return false;
|
|
94
|
+
return true;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function EntryManifestFromJSON(json: any): EntryManifest {
|
|
98
|
+
return EntryManifestFromJSONTyped(json, false);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function EntryManifestFromJSONTyped(json: any, ignoreDiscriminator: boolean): EntryManifest {
|
|
102
|
+
if (json == null) {
|
|
103
|
+
return json;
|
|
104
|
+
}
|
|
105
|
+
return {
|
|
106
|
+
|
|
107
|
+
'schemaVersion': json['schema_version'],
|
|
108
|
+
'datasetSchemaId': json['dataset_schema_id'],
|
|
109
|
+
'original': json['original'] == null ? undefined : OriginalManifestFromJSON(json['original']),
|
|
110
|
+
'processing': json['processing'] == null ? undefined : ProcessingManifestFromJSON(json['processing']),
|
|
111
|
+
'processed': json['processed'] == null ? undefined : ProcessedManifestFromJSON(json['processed']),
|
|
112
|
+
'fullManifestKey': json['full_manifest_key'] == null ? undefined : json['full_manifest_key'],
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export function EntryManifestToJSON(json: any): EntryManifest {
|
|
117
|
+
return EntryManifestToJSONTyped(json, false);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export function EntryManifestToJSONTyped(value?: EntryManifest | null, ignoreDiscriminator: boolean = false): any {
|
|
121
|
+
if (value == null) {
|
|
122
|
+
return value;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
return {
|
|
126
|
+
|
|
127
|
+
'schema_version': value['schemaVersion'],
|
|
128
|
+
'dataset_schema_id': value['datasetSchemaId'],
|
|
129
|
+
'original': OriginalManifestToJSON(value['original']),
|
|
130
|
+
'processing': ProcessingManifestToJSON(value['processing']),
|
|
131
|
+
'processed': ProcessedManifestToJSON(value['processed']),
|
|
132
|
+
'full_manifest_key': value['fullManifestKey'],
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
|
|
@@ -0,0 +1,89 @@
|
|
|
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
|
+
* Lightweight entry metadata for search results (without full content).
|
|
18
|
+
* @export
|
|
19
|
+
* @interface EntryPreview
|
|
20
|
+
*/
|
|
21
|
+
export interface EntryPreview {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof EntryPreview
|
|
26
|
+
*/
|
|
27
|
+
doi?: string | null;
|
|
28
|
+
/**
|
|
29
|
+
* Author list (if available)
|
|
30
|
+
* @type {Array<{ [key: string]: string; }>}
|
|
31
|
+
* @memberof EntryPreview
|
|
32
|
+
*/
|
|
33
|
+
authors?: Array<{ [key: string]: string; }>;
|
|
34
|
+
/**
|
|
35
|
+
* Document categories (if available)
|
|
36
|
+
* @type {{ [key: string]: string; }}
|
|
37
|
+
* @memberof EntryPreview
|
|
38
|
+
*/
|
|
39
|
+
categories?: { [key: string]: string; };
|
|
40
|
+
/**
|
|
41
|
+
* Document statistics (contentLength, figureCount, referenceCount)
|
|
42
|
+
* @type {{ [key: string]: number; }}
|
|
43
|
+
* @memberof EntryPreview
|
|
44
|
+
*/
|
|
45
|
+
stats?: { [key: string]: number; };
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the EntryPreview interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfEntryPreview(value: object): value is EntryPreview {
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function EntryPreviewFromJSON(json: any): EntryPreview {
|
|
56
|
+
return EntryPreviewFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function EntryPreviewFromJSONTyped(json: any, ignoreDiscriminator: boolean): EntryPreview {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'doi': json['doi'] == null ? undefined : json['doi'],
|
|
66
|
+
'authors': json['authors'] == null ? undefined : json['authors'],
|
|
67
|
+
'categories': json['categories'] == null ? undefined : json['categories'],
|
|
68
|
+
'stats': json['stats'] == null ? undefined : json['stats'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function EntryPreviewToJSON(json: any): EntryPreview {
|
|
73
|
+
return EntryPreviewToJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function EntryPreviewToJSONTyped(value?: EntryPreview | null, ignoreDiscriminator: boolean = false): any {
|
|
77
|
+
if (value == null) {
|
|
78
|
+
return value;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'doi': value['doi'],
|
|
84
|
+
'authors': value['authors'],
|
|
85
|
+
'categories': value['categories'],
|
|
86
|
+
'stats': value['stats'],
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
@@ -0,0 +1,91 @@
|
|
|
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 { EntrySearchResult } from './EntrySearchResult';
|
|
17
|
+
import {
|
|
18
|
+
EntrySearchResultFromJSON,
|
|
19
|
+
EntrySearchResultFromJSONTyped,
|
|
20
|
+
EntrySearchResultToJSON,
|
|
21
|
+
EntrySearchResultToJSONTyped,
|
|
22
|
+
} from './EntrySearchResult';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Response schema for entry-based vector search.
|
|
26
|
+
* @export
|
|
27
|
+
* @interface EntrySearchResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface EntrySearchResponse {
|
|
30
|
+
/**
|
|
31
|
+
* List of matching entries
|
|
32
|
+
* @type {Array<EntrySearchResult>}
|
|
33
|
+
* @memberof EntrySearchResponse
|
|
34
|
+
*/
|
|
35
|
+
results: Array<EntrySearchResult>;
|
|
36
|
+
/**
|
|
37
|
+
* Total number of entries returned
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof EntrySearchResponse
|
|
40
|
+
*/
|
|
41
|
+
total: number;
|
|
42
|
+
/**
|
|
43
|
+
* Query metadata
|
|
44
|
+
* @type {{ [key: string]: any; }}
|
|
45
|
+
* @memberof EntrySearchResponse
|
|
46
|
+
*/
|
|
47
|
+
queryInfo?: { [key: string]: any; };
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the EntrySearchResponse interface.
|
|
52
|
+
*/
|
|
53
|
+
export function instanceOfEntrySearchResponse(value: object): value is EntrySearchResponse {
|
|
54
|
+
if (!('results' in value) || value['results'] === undefined) return false;
|
|
55
|
+
if (!('total' in value) || value['total'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function EntrySearchResponseFromJSON(json: any): EntrySearchResponse {
|
|
60
|
+
return EntrySearchResponseFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function EntrySearchResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): EntrySearchResponse {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'results': ((json['results'] as Array<any>).map(EntrySearchResultFromJSON)),
|
|
70
|
+
'total': json['total'],
|
|
71
|
+
'queryInfo': json['query_info'] == null ? undefined : json['query_info'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function EntrySearchResponseToJSON(json: any): EntrySearchResponse {
|
|
76
|
+
return EntrySearchResponseToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function EntrySearchResponseToJSONTyped(value?: EntrySearchResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'results': ((value['results'] as Array<any>).map(EntrySearchResultToJSON)),
|
|
87
|
+
'total': value['total'],
|
|
88
|
+
'query_info': value['queryInfo'],
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
@@ -0,0 +1,118 @@
|
|
|
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 { ChunkSearchResult } from './ChunkSearchResult';
|
|
17
|
+
import {
|
|
18
|
+
ChunkSearchResultFromJSON,
|
|
19
|
+
ChunkSearchResultFromJSONTyped,
|
|
20
|
+
ChunkSearchResultToJSON,
|
|
21
|
+
ChunkSearchResultToJSONTyped,
|
|
22
|
+
} from './ChunkSearchResult';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Single entry search result with full content.
|
|
26
|
+
* @export
|
|
27
|
+
* @interface EntrySearchResult
|
|
28
|
+
*/
|
|
29
|
+
export interface EntrySearchResult {
|
|
30
|
+
/**
|
|
31
|
+
* Entry ID
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof EntrySearchResult
|
|
34
|
+
*/
|
|
35
|
+
entryId: number;
|
|
36
|
+
/**
|
|
37
|
+
* Dataset ID
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof EntrySearchResult
|
|
40
|
+
*/
|
|
41
|
+
datasetId: number;
|
|
42
|
+
/**
|
|
43
|
+
* Entry name
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof EntrySearchResult
|
|
46
|
+
*/
|
|
47
|
+
name: string;
|
|
48
|
+
/**
|
|
49
|
+
* Best matching score from chunks
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof EntrySearchResult
|
|
52
|
+
*/
|
|
53
|
+
score: number;
|
|
54
|
+
/**
|
|
55
|
+
* Chunks that matched from this entry
|
|
56
|
+
* @type {Array<ChunkSearchResult>}
|
|
57
|
+
* @memberof EntrySearchResult
|
|
58
|
+
*/
|
|
59
|
+
matchingChunks: Array<ChunkSearchResult>;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {{ [key: string]: any; }}
|
|
63
|
+
* @memberof EntrySearchResult
|
|
64
|
+
*/
|
|
65
|
+
content?: { [key: string]: any; } | null;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Check if a given object implements the EntrySearchResult interface.
|
|
70
|
+
*/
|
|
71
|
+
export function instanceOfEntrySearchResult(value: object): value is EntrySearchResult {
|
|
72
|
+
if (!('entryId' in value) || value['entryId'] === undefined) return false;
|
|
73
|
+
if (!('datasetId' in value) || value['datasetId'] === undefined) return false;
|
|
74
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
75
|
+
if (!('score' in value) || value['score'] === undefined) return false;
|
|
76
|
+
if (!('matchingChunks' in value) || value['matchingChunks'] === undefined) return false;
|
|
77
|
+
return true;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function EntrySearchResultFromJSON(json: any): EntrySearchResult {
|
|
81
|
+
return EntrySearchResultFromJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function EntrySearchResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): EntrySearchResult {
|
|
85
|
+
if (json == null) {
|
|
86
|
+
return json;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'entryId': json['entry_id'],
|
|
91
|
+
'datasetId': json['dataset_id'],
|
|
92
|
+
'name': json['name'],
|
|
93
|
+
'score': json['score'],
|
|
94
|
+
'matchingChunks': ((json['matching_chunks'] as Array<any>).map(ChunkSearchResultFromJSON)),
|
|
95
|
+
'content': json['content'] == null ? undefined : json['content'],
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function EntrySearchResultToJSON(json: any): EntrySearchResult {
|
|
100
|
+
return EntrySearchResultToJSONTyped(json, false);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export function EntrySearchResultToJSONTyped(value?: EntrySearchResult | null, ignoreDiscriminator: boolean = false): any {
|
|
104
|
+
if (value == null) {
|
|
105
|
+
return value;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
return {
|
|
109
|
+
|
|
110
|
+
'entry_id': value['entryId'],
|
|
111
|
+
'dataset_id': value['datasetId'],
|
|
112
|
+
'name': value['name'],
|
|
113
|
+
'score': value['score'],
|
|
114
|
+
'matching_chunks': ((value['matchingChunks'] as Array<any>).map(ChunkSearchResultToJSON)),
|
|
115
|
+
'content': value['content'],
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
/**
|
|
17
|
+
* Entry processing status (aligned with backend database constraint)
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const EntryStatus = {
|
|
21
|
+
Pending: 'pending',
|
|
22
|
+
Uploading: 'uploading',
|
|
23
|
+
Uploaded: 'uploaded',
|
|
24
|
+
Processing: 'processing',
|
|
25
|
+
Processed: 'processed',
|
|
26
|
+
Error: 'error'
|
|
27
|
+
} as const;
|
|
28
|
+
export type EntryStatus = typeof EntryStatus[keyof typeof EntryStatus];
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
export function instanceOfEntryStatus(value: any): boolean {
|
|
32
|
+
for (const key in EntryStatus) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(EntryStatus, key)) {
|
|
34
|
+
if (EntryStatus[key as keyof typeof EntryStatus] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function EntryStatusFromJSON(json: any): EntryStatus {
|
|
43
|
+
return EntryStatusFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function EntryStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): EntryStatus {
|
|
47
|
+
return json as EntryStatus;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function EntryStatusToJSON(value?: EntryStatus | null): any {
|
|
51
|
+
return value as any;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function EntryStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): EntryStatus {
|
|
55
|
+
return value as EntryStatus;
|
|
56
|
+
}
|
|
57
|
+
|
|
@@ -0,0 +1,99 @@
|
|
|
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 { EntryStatus } from './EntryStatus';
|
|
17
|
+
import {
|
|
18
|
+
EntryStatusFromJSON,
|
|
19
|
+
EntryStatusFromJSONTyped,
|
|
20
|
+
EntryStatusToJSON,
|
|
21
|
+
EntryStatusToJSONTyped,
|
|
22
|
+
} from './EntryStatus';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Request to update entry metadata.
|
|
26
|
+
* @export
|
|
27
|
+
* @interface EntryUpdateRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface EntryUpdateRequest {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof EntryUpdateRequest
|
|
34
|
+
*/
|
|
35
|
+
name?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof EntryUpdateRequest
|
|
40
|
+
*/
|
|
41
|
+
description?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {EntryStatus}
|
|
45
|
+
* @memberof EntryUpdateRequest
|
|
46
|
+
*/
|
|
47
|
+
status?: EntryStatus | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {{ [key: string]: any; }}
|
|
51
|
+
* @memberof EntryUpdateRequest
|
|
52
|
+
*/
|
|
53
|
+
metadata?: { [key: string]: any; } | null;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Check if a given object implements the EntryUpdateRequest interface.
|
|
60
|
+
*/
|
|
61
|
+
export function instanceOfEntryUpdateRequest(value: object): value is EntryUpdateRequest {
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function EntryUpdateRequestFromJSON(json: any): EntryUpdateRequest {
|
|
66
|
+
return EntryUpdateRequestFromJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function EntryUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): EntryUpdateRequest {
|
|
70
|
+
if (json == null) {
|
|
71
|
+
return json;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
|
|
75
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
76
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
77
|
+
'status': json['status'] == null ? undefined : EntryStatusFromJSON(json['status']),
|
|
78
|
+
'metadata': json['metadata'] == null ? undefined : json['metadata'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function EntryUpdateRequestToJSON(json: any): EntryUpdateRequest {
|
|
83
|
+
return EntryUpdateRequestToJSONTyped(json, false);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function EntryUpdateRequestToJSONTyped(value?: EntryUpdateRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
87
|
+
if (value == null) {
|
|
88
|
+
return value;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
return {
|
|
92
|
+
|
|
93
|
+
'name': value['name'],
|
|
94
|
+
'description': value['description'],
|
|
95
|
+
'status': EntryStatusToJSON(value['status']),
|
|
96
|
+
'metadata': value['metadata'],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|