@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,86 @@
|
|
|
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
|
+
* Configuration for explicit artifact wiring between pipeline steps.
|
|
18
|
+
*
|
|
19
|
+
* Replaces convention-based wiring with explicit declarations.
|
|
20
|
+
* @export
|
|
21
|
+
* @interface ArtifactInputConfig
|
|
22
|
+
*/
|
|
23
|
+
export interface ArtifactInputConfig {
|
|
24
|
+
/**
|
|
25
|
+
* Input artifact name expected by this step's template
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ArtifactInputConfig
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
* Name of the step that produces this artifact
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ArtifactInputConfig
|
|
34
|
+
*/
|
|
35
|
+
fromStep: string;
|
|
36
|
+
/**
|
|
37
|
+
* Output artifact name from the source step
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ArtifactInputConfig
|
|
40
|
+
*/
|
|
41
|
+
fromArtifact: string;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ArtifactInputConfig interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfArtifactInputConfig(value: object): value is ArtifactInputConfig {
|
|
48
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
49
|
+
if (!('fromStep' in value) || value['fromStep'] === undefined) return false;
|
|
50
|
+
if (!('fromArtifact' in value) || value['fromArtifact'] === undefined) return false;
|
|
51
|
+
return true;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function ArtifactInputConfigFromJSON(json: any): ArtifactInputConfig {
|
|
55
|
+
return ArtifactInputConfigFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function ArtifactInputConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArtifactInputConfig {
|
|
59
|
+
if (json == null) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
|
|
64
|
+
'name': json['name'],
|
|
65
|
+
'fromStep': json['from_step'],
|
|
66
|
+
'fromArtifact': json['from_artifact'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ArtifactInputConfigToJSON(json: any): ArtifactInputConfig {
|
|
71
|
+
return ArtifactInputConfigToJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function ArtifactInputConfigToJSONTyped(value?: ArtifactInputConfig | null, ignoreDiscriminator: boolean = false): any {
|
|
75
|
+
if (value == null) {
|
|
76
|
+
return value;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'name': value['name'],
|
|
82
|
+
'from_step': value['fromStep'],
|
|
83
|
+
'from_artifact': value['fromArtifact'],
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
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 to get content for multiple entries
|
|
18
|
+
* @export
|
|
19
|
+
* @interface BatchContentRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface BatchContentRequest {
|
|
22
|
+
/**
|
|
23
|
+
* List of entry IDs
|
|
24
|
+
* @type {Array<number>}
|
|
25
|
+
* @memberof BatchContentRequest
|
|
26
|
+
*/
|
|
27
|
+
entryIds: Array<number>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the BatchContentRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfBatchContentRequest(value: object): value is BatchContentRequest {
|
|
34
|
+
if (!('entryIds' in value) || value['entryIds'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function BatchContentRequestFromJSON(json: any): BatchContentRequest {
|
|
39
|
+
return BatchContentRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function BatchContentRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): BatchContentRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'entryIds': json['entry_ids'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function BatchContentRequestToJSON(json: any): BatchContentRequest {
|
|
53
|
+
return BatchContentRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function BatchContentRequestToJSONTyped(value?: BatchContentRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'entry_ids': value['entryIds'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
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 { EntryContentResponse } from './EntryContentResponse';
|
|
17
|
+
import {
|
|
18
|
+
EntryContentResponseFromJSON,
|
|
19
|
+
EntryContentResponseFromJSONTyped,
|
|
20
|
+
EntryContentResponseToJSON,
|
|
21
|
+
EntryContentResponseToJSONTyped,
|
|
22
|
+
} from './EntryContentResponse';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Response with content for multiple entries
|
|
26
|
+
* @export
|
|
27
|
+
* @interface BatchContentResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface BatchContentResponse {
|
|
30
|
+
/**
|
|
31
|
+
* List of entry content
|
|
32
|
+
* @type {Array<EntryContentResponse>}
|
|
33
|
+
* @memberof BatchContentResponse
|
|
34
|
+
*/
|
|
35
|
+
entries: Array<EntryContentResponse>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the BatchContentResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfBatchContentResponse(value: object): value is BatchContentResponse {
|
|
42
|
+
if (!('entries' in value) || value['entries'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function BatchContentResponseFromJSON(json: any): BatchContentResponse {
|
|
47
|
+
return BatchContentResponseFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function BatchContentResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BatchContentResponse {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'entries': ((json['entries'] as Array<any>).map(EntryContentResponseFromJSON)),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function BatchContentResponseToJSON(json: any): BatchContentResponse {
|
|
61
|
+
return BatchContentResponseToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function BatchContentResponseToJSONTyped(value?: BatchContentResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'entries': ((value['entries'] as Array<any>).map(EntryContentResponseToJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -0,0 +1,98 @@
|
|
|
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 to get multiple entries
|
|
18
|
+
* @export
|
|
19
|
+
* @interface BatchGetEntriesRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface BatchGetEntriesRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Dataset ID
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof BatchGetEntriesRequest
|
|
26
|
+
*/
|
|
27
|
+
datasetId: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {Array<number>}
|
|
31
|
+
* @memberof BatchGetEntriesRequest
|
|
32
|
+
*/
|
|
33
|
+
entryIds?: Array<number> | null;
|
|
34
|
+
/**
|
|
35
|
+
* Maximum number of entries to return
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof BatchGetEntriesRequest
|
|
38
|
+
*/
|
|
39
|
+
limit?: number;
|
|
40
|
+
/**
|
|
41
|
+
* Offset for pagination
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof BatchGetEntriesRequest
|
|
44
|
+
*/
|
|
45
|
+
offset?: number;
|
|
46
|
+
/**
|
|
47
|
+
* Whether to include processed content
|
|
48
|
+
* @type {boolean}
|
|
49
|
+
* @memberof BatchGetEntriesRequest
|
|
50
|
+
*/
|
|
51
|
+
includeContent?: boolean;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the BatchGetEntriesRequest interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfBatchGetEntriesRequest(value: object): value is BatchGetEntriesRequest {
|
|
58
|
+
if (!('datasetId' in value) || value['datasetId'] === undefined) return false;
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function BatchGetEntriesRequestFromJSON(json: any): BatchGetEntriesRequest {
|
|
63
|
+
return BatchGetEntriesRequestFromJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function BatchGetEntriesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): BatchGetEntriesRequest {
|
|
67
|
+
if (json == null) {
|
|
68
|
+
return json;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
|
|
72
|
+
'datasetId': json['dataset_id'],
|
|
73
|
+
'entryIds': json['entry_ids'] == null ? undefined : json['entry_ids'],
|
|
74
|
+
'limit': json['limit'] == null ? undefined : json['limit'],
|
|
75
|
+
'offset': json['offset'] == null ? undefined : json['offset'],
|
|
76
|
+
'includeContent': json['include_content'] == null ? undefined : json['include_content'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function BatchGetEntriesRequestToJSON(json: any): BatchGetEntriesRequest {
|
|
81
|
+
return BatchGetEntriesRequestToJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function BatchGetEntriesRequestToJSONTyped(value?: BatchGetEntriesRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
85
|
+
if (value == null) {
|
|
86
|
+
return value;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
return {
|
|
90
|
+
|
|
91
|
+
'dataset_id': value['datasetId'],
|
|
92
|
+
'entry_ids': value['entryIds'],
|
|
93
|
+
'limit': value['limit'],
|
|
94
|
+
'offset': value['offset'],
|
|
95
|
+
'include_content': value['includeContent'],
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
|
@@ -0,0 +1,83 @@
|
|
|
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 { EntryWithContent } from './EntryWithContent';
|
|
17
|
+
import {
|
|
18
|
+
EntryWithContentFromJSON,
|
|
19
|
+
EntryWithContentFromJSONTyped,
|
|
20
|
+
EntryWithContentToJSON,
|
|
21
|
+
EntryWithContentToJSONTyped,
|
|
22
|
+
} from './EntryWithContent';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Response with multiple entries
|
|
26
|
+
* @export
|
|
27
|
+
* @interface BatchGetEntriesResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface BatchGetEntriesResponse {
|
|
30
|
+
/**
|
|
31
|
+
* List of entries
|
|
32
|
+
* @type {Array<EntryWithContent>}
|
|
33
|
+
* @memberof BatchGetEntriesResponse
|
|
34
|
+
*/
|
|
35
|
+
entries: Array<EntryWithContent>;
|
|
36
|
+
/**
|
|
37
|
+
* Total number of entries matching criteria
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof BatchGetEntriesResponse
|
|
40
|
+
*/
|
|
41
|
+
total: number;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the BatchGetEntriesResponse interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfBatchGetEntriesResponse(value: object): value is BatchGetEntriesResponse {
|
|
48
|
+
if (!('entries' in value) || value['entries'] === undefined) return false;
|
|
49
|
+
if (!('total' in value) || value['total'] === undefined) return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function BatchGetEntriesResponseFromJSON(json: any): BatchGetEntriesResponse {
|
|
54
|
+
return BatchGetEntriesResponseFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function BatchGetEntriesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BatchGetEntriesResponse {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'entries': ((json['entries'] as Array<any>).map(EntryWithContentFromJSON)),
|
|
64
|
+
'total': json['total'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function BatchGetEntriesResponseToJSON(json: any): BatchGetEntriesResponse {
|
|
69
|
+
return BatchGetEntriesResponseToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function BatchGetEntriesResponseToJSONTyped(value?: BatchGetEntriesResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'entries': ((value['entries'] as Array<any>).map(EntryWithContentToJSON)),
|
|
80
|
+
'total': value['total'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -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 { ChunkSearchResult } from './ChunkSearchResult';
|
|
17
|
+
import {
|
|
18
|
+
ChunkSearchResultFromJSON,
|
|
19
|
+
ChunkSearchResultFromJSONTyped,
|
|
20
|
+
ChunkSearchResultToJSON,
|
|
21
|
+
ChunkSearchResultToJSONTyped,
|
|
22
|
+
} from './ChunkSearchResult';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Response schema for chunk-based vector search.
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ChunkSearchResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface ChunkSearchResponse {
|
|
30
|
+
/**
|
|
31
|
+
* List of matching chunks
|
|
32
|
+
* @type {Array<ChunkSearchResult>}
|
|
33
|
+
* @memberof ChunkSearchResponse
|
|
34
|
+
*/
|
|
35
|
+
results: Array<ChunkSearchResult>;
|
|
36
|
+
/**
|
|
37
|
+
* Total number of results returned
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ChunkSearchResponse
|
|
40
|
+
*/
|
|
41
|
+
total: number;
|
|
42
|
+
/**
|
|
43
|
+
* Query metadata (filters applied, execution time, etc.)
|
|
44
|
+
* @type {{ [key: string]: any; }}
|
|
45
|
+
* @memberof ChunkSearchResponse
|
|
46
|
+
*/
|
|
47
|
+
queryInfo?: { [key: string]: any; };
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the ChunkSearchResponse interface.
|
|
52
|
+
*/
|
|
53
|
+
export function instanceOfChunkSearchResponse(value: object): value is ChunkSearchResponse {
|
|
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 ChunkSearchResponseFromJSON(json: any): ChunkSearchResponse {
|
|
60
|
+
return ChunkSearchResponseFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ChunkSearchResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChunkSearchResponse {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'results': ((json['results'] as Array<any>).map(ChunkSearchResultFromJSON)),
|
|
70
|
+
'total': json['total'],
|
|
71
|
+
'queryInfo': json['query_info'] == null ? undefined : json['query_info'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function ChunkSearchResponseToJSON(json: any): ChunkSearchResponse {
|
|
76
|
+
return ChunkSearchResponseToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function ChunkSearchResponseToJSONTyped(value?: ChunkSearchResponse | 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(ChunkSearchResultToJSON)),
|
|
87
|
+
'total': value['total'],
|
|
88
|
+
'query_info': value['queryInfo'],
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
@@ -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
|
+
/**
|
|
17
|
+
* Single chunk search result.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ChunkSearchResult
|
|
20
|
+
*/
|
|
21
|
+
export interface ChunkSearchResult {
|
|
22
|
+
/**
|
|
23
|
+
* Qdrant point ID
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ChunkSearchResult
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* Similarity score (0.0 to 1.0)
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof ChunkSearchResult
|
|
32
|
+
*/
|
|
33
|
+
score: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ChunkSearchResult
|
|
38
|
+
*/
|
|
39
|
+
chunkText?: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* Chunk metadata (dataset_id, entry_id, chunk_index, etc.)
|
|
42
|
+
* @type {{ [key: string]: any; }}
|
|
43
|
+
* @memberof ChunkSearchResult
|
|
44
|
+
*/
|
|
45
|
+
metadata?: { [key: string]: any; };
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the ChunkSearchResult interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfChunkSearchResult(value: object): value is ChunkSearchResult {
|
|
52
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
53
|
+
if (!('score' in value) || value['score'] === undefined) return false;
|
|
54
|
+
return true;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function ChunkSearchResultFromJSON(json: any): ChunkSearchResult {
|
|
58
|
+
return ChunkSearchResultFromJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function ChunkSearchResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChunkSearchResult {
|
|
62
|
+
if (json == null) {
|
|
63
|
+
return json;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
|
|
67
|
+
'id': json['id'],
|
|
68
|
+
'score': json['score'],
|
|
69
|
+
'chunkText': json['chunk_text'] == null ? undefined : json['chunk_text'],
|
|
70
|
+
'metadata': json['metadata'] == null ? undefined : json['metadata'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function ChunkSearchResultToJSON(json: any): ChunkSearchResult {
|
|
75
|
+
return ChunkSearchResultToJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function ChunkSearchResultToJSONTyped(value?: ChunkSearchResult | null, ignoreDiscriminator: boolean = false): any {
|
|
79
|
+
if (value == null) {
|
|
80
|
+
return value;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return {
|
|
84
|
+
|
|
85
|
+
'id': value['id'],
|
|
86
|
+
'score': value['score'],
|
|
87
|
+
'chunk_text': value['chunkText'],
|
|
88
|
+
'metadata': value['metadata'],
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
@@ -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
|
+
* Collection information.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CollectionInfo
|
|
20
|
+
*/
|
|
21
|
+
export interface CollectionInfo {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CollectionInfo
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof CollectionInfo
|
|
32
|
+
*/
|
|
33
|
+
vectorSize: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof CollectionInfo
|
|
38
|
+
*/
|
|
39
|
+
pointsCount: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof CollectionInfo
|
|
44
|
+
*/
|
|
45
|
+
status: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the CollectionInfo interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfCollectionInfo(value: object): value is CollectionInfo {
|
|
52
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
53
|
+
if (!('vectorSize' in value) || value['vectorSize'] === undefined) return false;
|
|
54
|
+
if (!('pointsCount' in value) || value['pointsCount'] === undefined) return false;
|
|
55
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function CollectionInfoFromJSON(json: any): CollectionInfo {
|
|
60
|
+
return CollectionInfoFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function CollectionInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CollectionInfo {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'name': json['name'],
|
|
70
|
+
'vectorSize': json['vector_size'],
|
|
71
|
+
'pointsCount': json['points_count'],
|
|
72
|
+
'status': json['status'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function CollectionInfoToJSON(json: any): CollectionInfo {
|
|
77
|
+
return CollectionInfoToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function CollectionInfoToJSONTyped(value?: CollectionInfo | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'name': value['name'],
|
|
88
|
+
'vector_size': value['vectorSize'],
|
|
89
|
+
'points_count': value['pointsCount'],
|
|
90
|
+
'status': value['status'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|