@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,109 @@
|
|
|
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 { SnippetContext } from './SnippetContext';
|
|
17
|
+
import {
|
|
18
|
+
SnippetContextFromJSON,
|
|
19
|
+
SnippetContextFromJSONTyped,
|
|
20
|
+
SnippetContextToJSON,
|
|
21
|
+
SnippetContextToJSONTyped,
|
|
22
|
+
} from './SnippetContext';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* A single contextual snippet from a search result.
|
|
26
|
+
* @export
|
|
27
|
+
* @interface SearchSnippet
|
|
28
|
+
*/
|
|
29
|
+
export interface SearchSnippet {
|
|
30
|
+
/**
|
|
31
|
+
* Source field name (e.g., 'text_content')
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SearchSnippet
|
|
34
|
+
*/
|
|
35
|
+
field: string;
|
|
36
|
+
/**
|
|
37
|
+
* Snippet text with <em> tags around matched terms
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SearchSnippet
|
|
40
|
+
*/
|
|
41
|
+
text: string;
|
|
42
|
+
/**
|
|
43
|
+
* Terms that matched in this snippet
|
|
44
|
+
* @type {Array<string>}
|
|
45
|
+
* @memberof SearchSnippet
|
|
46
|
+
*/
|
|
47
|
+
matchedTerms: Array<string>;
|
|
48
|
+
/**
|
|
49
|
+
* Context information for this snippet
|
|
50
|
+
* @type {SnippetContext}
|
|
51
|
+
* @memberof SearchSnippet
|
|
52
|
+
*/
|
|
53
|
+
context: SnippetContext;
|
|
54
|
+
/**
|
|
55
|
+
* Snippet relevance score (0.0-1.0)
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof SearchSnippet
|
|
58
|
+
*/
|
|
59
|
+
relevanceScore?: number;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the SearchSnippet interface.
|
|
64
|
+
*/
|
|
65
|
+
export function instanceOfSearchSnippet(value: object): value is SearchSnippet {
|
|
66
|
+
if (!('field' in value) || value['field'] === undefined) return false;
|
|
67
|
+
if (!('text' in value) || value['text'] === undefined) return false;
|
|
68
|
+
if (!('matchedTerms' in value) || value['matchedTerms'] === undefined) return false;
|
|
69
|
+
if (!('context' in value) || value['context'] === undefined) return false;
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function SearchSnippetFromJSON(json: any): SearchSnippet {
|
|
74
|
+
return SearchSnippetFromJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function SearchSnippetFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchSnippet {
|
|
78
|
+
if (json == null) {
|
|
79
|
+
return json;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'field': json['field'],
|
|
84
|
+
'text': json['text'],
|
|
85
|
+
'matchedTerms': json['matched_terms'],
|
|
86
|
+
'context': SnippetContextFromJSON(json['context']),
|
|
87
|
+
'relevanceScore': json['relevance_score'] == null ? undefined : json['relevance_score'],
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function SearchSnippetToJSON(json: any): SearchSnippet {
|
|
92
|
+
return SearchSnippetToJSONTyped(json, false);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function SearchSnippetToJSONTyped(value?: SearchSnippet | null, ignoreDiscriminator: boolean = false): any {
|
|
96
|
+
if (value == null) {
|
|
97
|
+
return value;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
return {
|
|
101
|
+
|
|
102
|
+
'field': value['field'],
|
|
103
|
+
'text': value['text'],
|
|
104
|
+
'matched_terms': value['matchedTerms'],
|
|
105
|
+
'context': SnippetContextToJSON(value['context']),
|
|
106
|
+
'relevance_score': value['relevanceScore'],
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
|
|
@@ -0,0 +1,113 @@
|
|
|
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
|
+
* Context information for a search result snippet.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SnippetContext
|
|
20
|
+
*/
|
|
21
|
+
export interface SnippetContext {
|
|
22
|
+
/**
|
|
23
|
+
* Boundary type used for snippet extraction
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SnippetContext
|
|
26
|
+
*/
|
|
27
|
+
type: SnippetContextTypeEnum;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof SnippetContext
|
|
32
|
+
*/
|
|
33
|
+
section?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
* Character position of snippet start in full document
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof SnippetContext
|
|
38
|
+
*/
|
|
39
|
+
offset: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof SnippetContext
|
|
44
|
+
*/
|
|
45
|
+
croppedAt?: SnippetContextCroppedAtEnum | null;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export const SnippetContextTypeEnum = {
|
|
53
|
+
Sentence: 'sentence',
|
|
54
|
+
Paragraph: 'paragraph',
|
|
55
|
+
Section: 'section',
|
|
56
|
+
Cropped: 'cropped'
|
|
57
|
+
} as const;
|
|
58
|
+
export type SnippetContextTypeEnum = typeof SnippetContextTypeEnum[keyof typeof SnippetContextTypeEnum];
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @export
|
|
62
|
+
*/
|
|
63
|
+
export const SnippetContextCroppedAtEnum = {
|
|
64
|
+
MaxLength: 'maxLength',
|
|
65
|
+
Boundary: 'boundary'
|
|
66
|
+
} as const;
|
|
67
|
+
export type SnippetContextCroppedAtEnum = typeof SnippetContextCroppedAtEnum[keyof typeof SnippetContextCroppedAtEnum];
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Check if a given object implements the SnippetContext interface.
|
|
72
|
+
*/
|
|
73
|
+
export function instanceOfSnippetContext(value: object): value is SnippetContext {
|
|
74
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
75
|
+
if (!('offset' in value) || value['offset'] === undefined) return false;
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function SnippetContextFromJSON(json: any): SnippetContext {
|
|
80
|
+
return SnippetContextFromJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function SnippetContextFromJSONTyped(json: any, ignoreDiscriminator: boolean): SnippetContext {
|
|
84
|
+
if (json == null) {
|
|
85
|
+
return json;
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
|
|
89
|
+
'type': json['type'],
|
|
90
|
+
'section': json['section'] == null ? undefined : json['section'],
|
|
91
|
+
'offset': json['offset'],
|
|
92
|
+
'croppedAt': json['cropped_at'] == null ? undefined : json['cropped_at'],
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function SnippetContextToJSON(json: any): SnippetContext {
|
|
97
|
+
return SnippetContextToJSONTyped(json, false);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function SnippetContextToJSONTyped(value?: SnippetContext | null, ignoreDiscriminator: boolean = false): any {
|
|
101
|
+
if (value == null) {
|
|
102
|
+
return value;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
return {
|
|
106
|
+
|
|
107
|
+
'type': value['type'],
|
|
108
|
+
'section': value['section'],
|
|
109
|
+
'offset': value['offset'],
|
|
110
|
+
'cropped_at': value['croppedAt'],
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
|
|
@@ -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 { EntryManifest } from './EntryManifest';
|
|
17
|
+
import {
|
|
18
|
+
EntryManifestFromJSON,
|
|
19
|
+
EntryManifestFromJSONTyped,
|
|
20
|
+
EntryManifestToJSON,
|
|
21
|
+
EntryManifestToJSONTyped,
|
|
22
|
+
} from './EntryManifest';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Response after uploading file to entry.
|
|
26
|
+
* @export
|
|
27
|
+
* @interface UploadFileResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface UploadFileResponse {
|
|
30
|
+
/**
|
|
31
|
+
* Entry ID
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof UploadFileResponse
|
|
34
|
+
*/
|
|
35
|
+
entryId: number;
|
|
36
|
+
/**
|
|
37
|
+
* File type (original/processing/processed)
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof UploadFileResponse
|
|
40
|
+
*/
|
|
41
|
+
fileType: string;
|
|
42
|
+
/**
|
|
43
|
+
* S3 key where file was stored
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof UploadFileResponse
|
|
46
|
+
*/
|
|
47
|
+
fileKey: string;
|
|
48
|
+
/**
|
|
49
|
+
* File size in bytes
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof UploadFileResponse
|
|
52
|
+
*/
|
|
53
|
+
fileSize: number;
|
|
54
|
+
/**
|
|
55
|
+
* Updated manifest
|
|
56
|
+
* @type {EntryManifest}
|
|
57
|
+
* @memberof UploadFileResponse
|
|
58
|
+
*/
|
|
59
|
+
manifest: EntryManifest;
|
|
60
|
+
/**
|
|
61
|
+
* Operation success
|
|
62
|
+
* @type {boolean}
|
|
63
|
+
* @memberof UploadFileResponse
|
|
64
|
+
*/
|
|
65
|
+
success?: boolean;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Check if a given object implements the UploadFileResponse interface.
|
|
70
|
+
*/
|
|
71
|
+
export function instanceOfUploadFileResponse(value: object): value is UploadFileResponse {
|
|
72
|
+
if (!('entryId' in value) || value['entryId'] === undefined) return false;
|
|
73
|
+
if (!('fileType' in value) || value['fileType'] === undefined) return false;
|
|
74
|
+
if (!('fileKey' in value) || value['fileKey'] === undefined) return false;
|
|
75
|
+
if (!('fileSize' in value) || value['fileSize'] === undefined) return false;
|
|
76
|
+
if (!('manifest' in value) || value['manifest'] === undefined) return false;
|
|
77
|
+
return true;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function UploadFileResponseFromJSON(json: any): UploadFileResponse {
|
|
81
|
+
return UploadFileResponseFromJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function UploadFileResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UploadFileResponse {
|
|
85
|
+
if (json == null) {
|
|
86
|
+
return json;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'entryId': json['entry_id'],
|
|
91
|
+
'fileType': json['file_type'],
|
|
92
|
+
'fileKey': json['file_key'],
|
|
93
|
+
'fileSize': json['file_size'],
|
|
94
|
+
'manifest': EntryManifestFromJSON(json['manifest']),
|
|
95
|
+
'success': json['success'] == null ? undefined : json['success'],
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function UploadFileResponseToJSON(json: any): UploadFileResponse {
|
|
100
|
+
return UploadFileResponseToJSONTyped(json, false);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export function UploadFileResponseToJSONTyped(value?: UploadFileResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
104
|
+
if (value == null) {
|
|
105
|
+
return value;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
return {
|
|
109
|
+
|
|
110
|
+
'entry_id': value['entryId'],
|
|
111
|
+
'file_type': value['fileType'],
|
|
112
|
+
'file_key': value['fileKey'],
|
|
113
|
+
'file_size': value['fileSize'],
|
|
114
|
+
'manifest': EntryManifestToJSON(value['manifest']),
|
|
115
|
+
'success': value['success'],
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
|
|
@@ -0,0 +1,92 @@
|
|
|
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 { ValidationErrorLocInner } from './ValidationErrorLocInner';
|
|
17
|
+
import {
|
|
18
|
+
ValidationErrorLocInnerFromJSON,
|
|
19
|
+
ValidationErrorLocInnerFromJSONTyped,
|
|
20
|
+
ValidationErrorLocInnerToJSON,
|
|
21
|
+
ValidationErrorLocInnerToJSONTyped,
|
|
22
|
+
} from './ValidationErrorLocInner';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ValidationError
|
|
28
|
+
*/
|
|
29
|
+
export interface ValidationError {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<ValidationErrorLocInner>}
|
|
33
|
+
* @memberof ValidationError
|
|
34
|
+
*/
|
|
35
|
+
loc: Array<ValidationErrorLocInner>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ValidationError
|
|
40
|
+
*/
|
|
41
|
+
msg: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ValidationError
|
|
46
|
+
*/
|
|
47
|
+
type: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the ValidationError interface.
|
|
52
|
+
*/
|
|
53
|
+
export function instanceOfValidationError(value: object): value is ValidationError {
|
|
54
|
+
if (!('loc' in value) || value['loc'] === undefined) return false;
|
|
55
|
+
if (!('msg' in value) || value['msg'] === undefined) return false;
|
|
56
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function ValidationErrorFromJSON(json: any): ValidationError {
|
|
61
|
+
return ValidationErrorFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function ValidationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationError {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'loc': ((json['loc'] as Array<any>).map(ValidationErrorLocInnerFromJSON)),
|
|
71
|
+
'msg': json['msg'],
|
|
72
|
+
'type': json['type'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function ValidationErrorToJSON(json: any): ValidationError {
|
|
77
|
+
return ValidationErrorToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function ValidationErrorToJSONTyped(value?: ValidationError | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'loc': ((value['loc'] as Array<any>).map(ValidationErrorLocInnerToJSON)),
|
|
88
|
+
'msg': value['msg'],
|
|
89
|
+
'type': value['type'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ValidationErrorLocInner
|
|
20
|
+
*/
|
|
21
|
+
export interface ValidationErrorLocInner {
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the ValidationErrorLocInner interface.
|
|
26
|
+
*/
|
|
27
|
+
export function instanceOfValidationErrorLocInner(value: object): value is ValidationErrorLocInner {
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export function ValidationErrorLocInnerFromJSON(json: any): ValidationErrorLocInner {
|
|
32
|
+
return ValidationErrorLocInnerFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export function ValidationErrorLocInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationErrorLocInner {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function ValidationErrorLocInnerToJSON(json: any): ValidationErrorLocInner {
|
|
40
|
+
return ValidationErrorLocInnerToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function ValidationErrorLocInnerToJSONTyped(value?: ValidationErrorLocInner | null, ignoreDiscriminator: boolean = false): any {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
|
|
@@ -0,0 +1,116 @@
|
|
|
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 schema for vector search with auto-embedding support.
|
|
18
|
+
*
|
|
19
|
+
* Either `query` (text) or `query_vector` (pre-computed embeddings) must be provided.
|
|
20
|
+
* If both are provided, `query_vector` takes precedence.
|
|
21
|
+
* @export
|
|
22
|
+
* @interface VectorSearchRequest
|
|
23
|
+
*/
|
|
24
|
+
export interface VectorSearchRequest {
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof VectorSearchRequest
|
|
29
|
+
*/
|
|
30
|
+
query?: string | null;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {Array<number>}
|
|
34
|
+
* @memberof VectorSearchRequest
|
|
35
|
+
*/
|
|
36
|
+
queryVector?: Array<number> | null;
|
|
37
|
+
/**
|
|
38
|
+
* Maximum number of results to return
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof VectorSearchRequest
|
|
41
|
+
*/
|
|
42
|
+
limit?: number;
|
|
43
|
+
/**
|
|
44
|
+
* Number of results to skip (for pagination)
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof VectorSearchRequest
|
|
47
|
+
*/
|
|
48
|
+
offset?: number;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof VectorSearchRequest
|
|
53
|
+
*/
|
|
54
|
+
scoreThreshold?: number | null;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {Array<number>}
|
|
58
|
+
* @memberof VectorSearchRequest
|
|
59
|
+
*/
|
|
60
|
+
datasetIds?: Array<number> | null;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {Array<number>}
|
|
64
|
+
* @memberof VectorSearchRequest
|
|
65
|
+
*/
|
|
66
|
+
entryIds?: Array<number> | null;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Check if a given object implements the VectorSearchRequest interface.
|
|
71
|
+
*/
|
|
72
|
+
export function instanceOfVectorSearchRequest(value: object): value is VectorSearchRequest {
|
|
73
|
+
return true;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function VectorSearchRequestFromJSON(json: any): VectorSearchRequest {
|
|
77
|
+
return VectorSearchRequestFromJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function VectorSearchRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): VectorSearchRequest {
|
|
81
|
+
if (json == null) {
|
|
82
|
+
return json;
|
|
83
|
+
}
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'query': json['query'] == null ? undefined : json['query'],
|
|
87
|
+
'queryVector': json['query_vector'] == null ? undefined : json['query_vector'],
|
|
88
|
+
'limit': json['limit'] == null ? undefined : json['limit'],
|
|
89
|
+
'offset': json['offset'] == null ? undefined : json['offset'],
|
|
90
|
+
'scoreThreshold': json['score_threshold'] == null ? undefined : json['score_threshold'],
|
|
91
|
+
'datasetIds': json['dataset_ids'] == null ? undefined : json['dataset_ids'],
|
|
92
|
+
'entryIds': json['entry_ids'] == null ? undefined : json['entry_ids'],
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function VectorSearchRequestToJSON(json: any): VectorSearchRequest {
|
|
97
|
+
return VectorSearchRequestToJSONTyped(json, false);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function VectorSearchRequestToJSONTyped(value?: VectorSearchRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
101
|
+
if (value == null) {
|
|
102
|
+
return value;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
return {
|
|
106
|
+
|
|
107
|
+
'query': value['query'],
|
|
108
|
+
'query_vector': value['queryVector'],
|
|
109
|
+
'limit': value['limit'],
|
|
110
|
+
'offset': value['offset'],
|
|
111
|
+
'score_threshold': value['scoreThreshold'],
|
|
112
|
+
'dataset_ids': value['datasetIds'],
|
|
113
|
+
'entry_ids': value['entryIds'],
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
|
|
@@ -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
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface WebhookEndpointCreate
|
|
20
|
+
*/
|
|
21
|
+
export interface WebhookEndpointCreate {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof WebhookEndpointCreate
|
|
26
|
+
*/
|
|
27
|
+
url: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the WebhookEndpointCreate interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfWebhookEndpointCreate(value: object): value is WebhookEndpointCreate {
|
|
34
|
+
if (!('url' in value) || value['url'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function WebhookEndpointCreateFromJSON(json: any): WebhookEndpointCreate {
|
|
39
|
+
return WebhookEndpointCreateFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function WebhookEndpointCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookEndpointCreate {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'url': json['url'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function WebhookEndpointCreateToJSON(json: any): WebhookEndpointCreate {
|
|
53
|
+
return WebhookEndpointCreateToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function WebhookEndpointCreateToJSONTyped(value?: WebhookEndpointCreate | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'url': value['url'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|