@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
|
+
/**
|
|
2
|
+
* Client Data API
|
|
3
|
+
* Client Cluster Data API - Manifest-based storage service
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { ChunkSearchResponse, EntrySearchResponse, KeywordSearchRequest, KeywordSearchResponse, VectorSearchRequest } from '../models/index';
|
|
14
|
+
export interface KeywordSearchApiV1SearchPostRequest {
|
|
15
|
+
keywordSearchRequest: KeywordSearchRequest;
|
|
16
|
+
}
|
|
17
|
+
export interface VectorSearchChunksApiV1VectorChunksPostRequest {
|
|
18
|
+
vectorSearchRequest: VectorSearchRequest;
|
|
19
|
+
}
|
|
20
|
+
export interface VectorSearchEntriesApiV1VectorEntriesPostRequest {
|
|
21
|
+
vectorSearchRequest: VectorSearchRequest;
|
|
22
|
+
maxChunksPerEntry?: number;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* SearchApi - interface
|
|
26
|
+
*
|
|
27
|
+
* @export
|
|
28
|
+
* @interface SearchApiInterface
|
|
29
|
+
*/
|
|
30
|
+
export interface SearchApiInterface {
|
|
31
|
+
/**
|
|
32
|
+
* **Keyword search endpoint** - Search documents using Meilisearch for full-text and faceted search. This endpoint provides fast keyword search with typo tolerance, relevance ranking, and powerful filtering capabilities. **Features**: - Full-text search across title, description, abstract, text content - Typo tolerance (finds \"machnie\" when searching for \"machine\") - Relevance ranking based on TF-IDF and proximity - Faceted filtering by dataset, status, MIME type, tags - Sorting by date, size, relevance - Highlighted search results **Flow**: 1. Query is sent to Meilisearch 2. Full-text search across indexed fields 3. Filters are applied (dataset_id, status, etc.) 4. Results are ranked and highlighted 5. Metadata is returned (no S3 fetching) **Performance**: Typically < 50ms for most queries **Use cases**: - Keyword-based document discovery - Filtering by metadata (tags, type, dataset) - Search with typo tolerance - Faceted search interfaces - Finding documents by title, author, abstract
|
|
33
|
+
* @summary Keyword/faceted search for documents
|
|
34
|
+
* @param {KeywordSearchRequest} keywordSearchRequest
|
|
35
|
+
* @param {*} [options] Override http request option.
|
|
36
|
+
* @throws {RequiredError}
|
|
37
|
+
* @memberof SearchApiInterface
|
|
38
|
+
*/
|
|
39
|
+
keywordSearchApiV1SearchPostRaw(requestParameters: KeywordSearchApiV1SearchPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<KeywordSearchResponse>>;
|
|
40
|
+
/**
|
|
41
|
+
* **Keyword search endpoint** - Search documents using Meilisearch for full-text and faceted search. This endpoint provides fast keyword search with typo tolerance, relevance ranking, and powerful filtering capabilities. **Features**: - Full-text search across title, description, abstract, text content - Typo tolerance (finds \"machnie\" when searching for \"machine\") - Relevance ranking based on TF-IDF and proximity - Faceted filtering by dataset, status, MIME type, tags - Sorting by date, size, relevance - Highlighted search results **Flow**: 1. Query is sent to Meilisearch 2. Full-text search across indexed fields 3. Filters are applied (dataset_id, status, etc.) 4. Results are ranked and highlighted 5. Metadata is returned (no S3 fetching) **Performance**: Typically < 50ms for most queries **Use cases**: - Keyword-based document discovery - Filtering by metadata (tags, type, dataset) - Search with typo tolerance - Faceted search interfaces - Finding documents by title, author, abstract
|
|
42
|
+
* Keyword/faceted search for documents
|
|
43
|
+
*/
|
|
44
|
+
keywordSearchApiV1SearchPost(requestParameters: KeywordSearchApiV1SearchPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<KeywordSearchResponse>;
|
|
45
|
+
/**
|
|
46
|
+
* **Primary vector search endpoint** - Returns matching text chunks directly from Qdrant. This is the FAST search method that returns chunks without fetching full entry content. Use this when you want quick results with snippet-level granularity. **Auto-Embedding Support**: - Provide `query` (text) for automatic embedding generation - OR provide `query_vector` (pre-computed embeddings) - If both provided, `query_vector` takes precedence **Flow**: 1. If `query` provided: Generate embeddings using configured provider 2. Query vector is sent to Qdrant 3. Matching chunks are returned with scores and metadata 4. No database or S3 lookups (very fast!) **Performance**: - With `query_vector`: < 100ms - With `query` (auto-embed): 500ms-2s (includes embedding generation) **Use cases**: - Quick similarity search - Preview/snippet display - Finding relevant passages - High-throughput scenarios
|
|
47
|
+
* @summary Vector search for similar chunks with auto-embedding (PRIMARY)
|
|
48
|
+
* @param {VectorSearchRequest} vectorSearchRequest
|
|
49
|
+
* @param {*} [options] Override http request option.
|
|
50
|
+
* @throws {RequiredError}
|
|
51
|
+
* @memberof SearchApiInterface
|
|
52
|
+
*/
|
|
53
|
+
vectorSearchChunksApiV1VectorChunksPostRaw(requestParameters: VectorSearchChunksApiV1VectorChunksPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkSearchResponse>>;
|
|
54
|
+
/**
|
|
55
|
+
* **Primary vector search endpoint** - Returns matching text chunks directly from Qdrant. This is the FAST search method that returns chunks without fetching full entry content. Use this when you want quick results with snippet-level granularity. **Auto-Embedding Support**: - Provide `query` (text) for automatic embedding generation - OR provide `query_vector` (pre-computed embeddings) - If both provided, `query_vector` takes precedence **Flow**: 1. If `query` provided: Generate embeddings using configured provider 2. Query vector is sent to Qdrant 3. Matching chunks are returned with scores and metadata 4. No database or S3 lookups (very fast!) **Performance**: - With `query_vector`: < 100ms - With `query` (auto-embed): 500ms-2s (includes embedding generation) **Use cases**: - Quick similarity search - Preview/snippet display - Finding relevant passages - High-throughput scenarios
|
|
56
|
+
* Vector search for similar chunks with auto-embedding (PRIMARY)
|
|
57
|
+
*/
|
|
58
|
+
vectorSearchChunksApiV1VectorChunksPost(requestParameters: VectorSearchChunksApiV1VectorChunksPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkSearchResponse>;
|
|
59
|
+
/**
|
|
60
|
+
* **Secondary vector search endpoint** - Returns full entry objects with S3 content. This is the COMPREHENSIVE search method that fetches complete entry content from S3. Use this when you need full documents, not just snippets. **Auto-Embedding Support**: - Provide `query` (text) for automatic embedding generation - OR provide `query_vector` (pre-computed embeddings) - If both provided, `query_vector` takes precedence **Flow**: 1. If `query` provided: Generate embeddings using configured provider 2. Query vector is sent to Qdrant 3. Matching chunks are grouped by entry_id 4. Entry records are fetched from PostgreSQL 5. Full content is retrieved from S3 (parallel batch operation) 6. Results combine entries with their matching chunks **Performance**: - With `query_vector`: 200-500ms - With `query` (auto-embed): 700ms-2.5s (includes embedding generation) **Use cases**: - Retrieving full documents - Document-level results - When you need complete content - Lower-throughput, higher-quality scenarios
|
|
61
|
+
* @summary Vector search entries with full content and auto-embedding (SECONDARY)
|
|
62
|
+
* @param {VectorSearchRequest} vectorSearchRequest
|
|
63
|
+
* @param {number} [maxChunksPerEntry]
|
|
64
|
+
* @param {*} [options] Override http request option.
|
|
65
|
+
* @throws {RequiredError}
|
|
66
|
+
* @memberof SearchApiInterface
|
|
67
|
+
*/
|
|
68
|
+
vectorSearchEntriesApiV1VectorEntriesPostRaw(requestParameters: VectorSearchEntriesApiV1VectorEntriesPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EntrySearchResponse>>;
|
|
69
|
+
/**
|
|
70
|
+
* **Secondary vector search endpoint** - Returns full entry objects with S3 content. This is the COMPREHENSIVE search method that fetches complete entry content from S3. Use this when you need full documents, not just snippets. **Auto-Embedding Support**: - Provide `query` (text) for automatic embedding generation - OR provide `query_vector` (pre-computed embeddings) - If both provided, `query_vector` takes precedence **Flow**: 1. If `query` provided: Generate embeddings using configured provider 2. Query vector is sent to Qdrant 3. Matching chunks are grouped by entry_id 4. Entry records are fetched from PostgreSQL 5. Full content is retrieved from S3 (parallel batch operation) 6. Results combine entries with their matching chunks **Performance**: - With `query_vector`: 200-500ms - With `query` (auto-embed): 700ms-2.5s (includes embedding generation) **Use cases**: - Retrieving full documents - Document-level results - When you need complete content - Lower-throughput, higher-quality scenarios
|
|
71
|
+
* Vector search entries with full content and auto-embedding (SECONDARY)
|
|
72
|
+
*/
|
|
73
|
+
vectorSearchEntriesApiV1VectorEntriesPost(requestParameters: VectorSearchEntriesApiV1VectorEntriesPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EntrySearchResponse>;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
*/
|
|
78
|
+
export declare class SearchApi extends runtime.BaseAPI implements SearchApiInterface {
|
|
79
|
+
/**
|
|
80
|
+
* **Keyword search endpoint** - Search documents using Meilisearch for full-text and faceted search. This endpoint provides fast keyword search with typo tolerance, relevance ranking, and powerful filtering capabilities. **Features**: - Full-text search across title, description, abstract, text content - Typo tolerance (finds \"machnie\" when searching for \"machine\") - Relevance ranking based on TF-IDF and proximity - Faceted filtering by dataset, status, MIME type, tags - Sorting by date, size, relevance - Highlighted search results **Flow**: 1. Query is sent to Meilisearch 2. Full-text search across indexed fields 3. Filters are applied (dataset_id, status, etc.) 4. Results are ranked and highlighted 5. Metadata is returned (no S3 fetching) **Performance**: Typically < 50ms for most queries **Use cases**: - Keyword-based document discovery - Filtering by metadata (tags, type, dataset) - Search with typo tolerance - Faceted search interfaces - Finding documents by title, author, abstract
|
|
81
|
+
* Keyword/faceted search for documents
|
|
82
|
+
*/
|
|
83
|
+
keywordSearchApiV1SearchPostRaw(requestParameters: KeywordSearchApiV1SearchPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<KeywordSearchResponse>>;
|
|
84
|
+
/**
|
|
85
|
+
* **Keyword search endpoint** - Search documents using Meilisearch for full-text and faceted search. This endpoint provides fast keyword search with typo tolerance, relevance ranking, and powerful filtering capabilities. **Features**: - Full-text search across title, description, abstract, text content - Typo tolerance (finds \"machnie\" when searching for \"machine\") - Relevance ranking based on TF-IDF and proximity - Faceted filtering by dataset, status, MIME type, tags - Sorting by date, size, relevance - Highlighted search results **Flow**: 1. Query is sent to Meilisearch 2. Full-text search across indexed fields 3. Filters are applied (dataset_id, status, etc.) 4. Results are ranked and highlighted 5. Metadata is returned (no S3 fetching) **Performance**: Typically < 50ms for most queries **Use cases**: - Keyword-based document discovery - Filtering by metadata (tags, type, dataset) - Search with typo tolerance - Faceted search interfaces - Finding documents by title, author, abstract
|
|
86
|
+
* Keyword/faceted search for documents
|
|
87
|
+
*/
|
|
88
|
+
keywordSearchApiV1SearchPost(requestParameters: KeywordSearchApiV1SearchPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<KeywordSearchResponse>;
|
|
89
|
+
/**
|
|
90
|
+
* **Primary vector search endpoint** - Returns matching text chunks directly from Qdrant. This is the FAST search method that returns chunks without fetching full entry content. Use this when you want quick results with snippet-level granularity. **Auto-Embedding Support**: - Provide `query` (text) for automatic embedding generation - OR provide `query_vector` (pre-computed embeddings) - If both provided, `query_vector` takes precedence **Flow**: 1. If `query` provided: Generate embeddings using configured provider 2. Query vector is sent to Qdrant 3. Matching chunks are returned with scores and metadata 4. No database or S3 lookups (very fast!) **Performance**: - With `query_vector`: < 100ms - With `query` (auto-embed): 500ms-2s (includes embedding generation) **Use cases**: - Quick similarity search - Preview/snippet display - Finding relevant passages - High-throughput scenarios
|
|
91
|
+
* Vector search for similar chunks with auto-embedding (PRIMARY)
|
|
92
|
+
*/
|
|
93
|
+
vectorSearchChunksApiV1VectorChunksPostRaw(requestParameters: VectorSearchChunksApiV1VectorChunksPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkSearchResponse>>;
|
|
94
|
+
/**
|
|
95
|
+
* **Primary vector search endpoint** - Returns matching text chunks directly from Qdrant. This is the FAST search method that returns chunks without fetching full entry content. Use this when you want quick results with snippet-level granularity. **Auto-Embedding Support**: - Provide `query` (text) for automatic embedding generation - OR provide `query_vector` (pre-computed embeddings) - If both provided, `query_vector` takes precedence **Flow**: 1. If `query` provided: Generate embeddings using configured provider 2. Query vector is sent to Qdrant 3. Matching chunks are returned with scores and metadata 4. No database or S3 lookups (very fast!) **Performance**: - With `query_vector`: < 100ms - With `query` (auto-embed): 500ms-2s (includes embedding generation) **Use cases**: - Quick similarity search - Preview/snippet display - Finding relevant passages - High-throughput scenarios
|
|
96
|
+
* Vector search for similar chunks with auto-embedding (PRIMARY)
|
|
97
|
+
*/
|
|
98
|
+
vectorSearchChunksApiV1VectorChunksPost(requestParameters: VectorSearchChunksApiV1VectorChunksPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkSearchResponse>;
|
|
99
|
+
/**
|
|
100
|
+
* **Secondary vector search endpoint** - Returns full entry objects with S3 content. This is the COMPREHENSIVE search method that fetches complete entry content from S3. Use this when you need full documents, not just snippets. **Auto-Embedding Support**: - Provide `query` (text) for automatic embedding generation - OR provide `query_vector` (pre-computed embeddings) - If both provided, `query_vector` takes precedence **Flow**: 1. If `query` provided: Generate embeddings using configured provider 2. Query vector is sent to Qdrant 3. Matching chunks are grouped by entry_id 4. Entry records are fetched from PostgreSQL 5. Full content is retrieved from S3 (parallel batch operation) 6. Results combine entries with their matching chunks **Performance**: - With `query_vector`: 200-500ms - With `query` (auto-embed): 700ms-2.5s (includes embedding generation) **Use cases**: - Retrieving full documents - Document-level results - When you need complete content - Lower-throughput, higher-quality scenarios
|
|
101
|
+
* Vector search entries with full content and auto-embedding (SECONDARY)
|
|
102
|
+
*/
|
|
103
|
+
vectorSearchEntriesApiV1VectorEntriesPostRaw(requestParameters: VectorSearchEntriesApiV1VectorEntriesPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EntrySearchResponse>>;
|
|
104
|
+
/**
|
|
105
|
+
* **Secondary vector search endpoint** - Returns full entry objects with S3 content. This is the COMPREHENSIVE search method that fetches complete entry content from S3. Use this when you need full documents, not just snippets. **Auto-Embedding Support**: - Provide `query` (text) for automatic embedding generation - OR provide `query_vector` (pre-computed embeddings) - If both provided, `query_vector` takes precedence **Flow**: 1. If `query` provided: Generate embeddings using configured provider 2. Query vector is sent to Qdrant 3. Matching chunks are grouped by entry_id 4. Entry records are fetched from PostgreSQL 5. Full content is retrieved from S3 (parallel batch operation) 6. Results combine entries with their matching chunks **Performance**: - With `query_vector`: 200-500ms - With `query` (auto-embed): 700ms-2.5s (includes embedding generation) **Use cases**: - Retrieving full documents - Document-level results - When you need complete content - Lower-throughput, higher-quality scenarios
|
|
106
|
+
* Vector search entries with full content and auto-embedding (SECONDARY)
|
|
107
|
+
*/
|
|
108
|
+
vectorSearchEntriesApiV1VectorEntriesPost(requestParameters: VectorSearchEntriesApiV1VectorEntriesPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EntrySearchResponse>;
|
|
109
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Client Data API
|
|
6
|
+
* Client Cluster Data API - Manifest-based storage service
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
+
}) : function(o, v) {
|
|
29
|
+
o["default"] = v;
|
|
30
|
+
});
|
|
31
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
32
|
+
var ownKeys = function(o) {
|
|
33
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
34
|
+
var ar = [];
|
|
35
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
36
|
+
return ar;
|
|
37
|
+
};
|
|
38
|
+
return ownKeys(o);
|
|
39
|
+
};
|
|
40
|
+
return function (mod) {
|
|
41
|
+
if (mod && mod.__esModule) return mod;
|
|
42
|
+
var result = {};
|
|
43
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
+
__setModuleDefault(result, mod);
|
|
45
|
+
return result;
|
|
46
|
+
};
|
|
47
|
+
})();
|
|
48
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
+
exports.SearchApi = void 0;
|
|
50
|
+
const runtime = __importStar(require("../runtime"));
|
|
51
|
+
const index_1 = require("../models/index");
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
class SearchApi extends runtime.BaseAPI {
|
|
56
|
+
/**
|
|
57
|
+
* **Keyword search endpoint** - Search documents using Meilisearch for full-text and faceted search. This endpoint provides fast keyword search with typo tolerance, relevance ranking, and powerful filtering capabilities. **Features**: - Full-text search across title, description, abstract, text content - Typo tolerance (finds \"machnie\" when searching for \"machine\") - Relevance ranking based on TF-IDF and proximity - Faceted filtering by dataset, status, MIME type, tags - Sorting by date, size, relevance - Highlighted search results **Flow**: 1. Query is sent to Meilisearch 2. Full-text search across indexed fields 3. Filters are applied (dataset_id, status, etc.) 4. Results are ranked and highlighted 5. Metadata is returned (no S3 fetching) **Performance**: Typically < 50ms for most queries **Use cases**: - Keyword-based document discovery - Filtering by metadata (tags, type, dataset) - Search with typo tolerance - Faceted search interfaces - Finding documents by title, author, abstract
|
|
58
|
+
* Keyword/faceted search for documents
|
|
59
|
+
*/
|
|
60
|
+
async keywordSearchApiV1SearchPostRaw(requestParameters, initOverrides) {
|
|
61
|
+
if (requestParameters['keywordSearchRequest'] == null) {
|
|
62
|
+
throw new runtime.RequiredError('keywordSearchRequest', 'Required parameter "keywordSearchRequest" was null or undefined when calling keywordSearchApiV1SearchPost().');
|
|
63
|
+
}
|
|
64
|
+
const queryParameters = {};
|
|
65
|
+
const headerParameters = {};
|
|
66
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
67
|
+
const response = await this.request({
|
|
68
|
+
path: `/api/v1/search`,
|
|
69
|
+
method: 'POST',
|
|
70
|
+
headers: headerParameters,
|
|
71
|
+
query: queryParameters,
|
|
72
|
+
body: (0, index_1.KeywordSearchRequestToJSON)(requestParameters['keywordSearchRequest']),
|
|
73
|
+
}, initOverrides);
|
|
74
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.KeywordSearchResponseFromJSON)(jsonValue));
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* **Keyword search endpoint** - Search documents using Meilisearch for full-text and faceted search. This endpoint provides fast keyword search with typo tolerance, relevance ranking, and powerful filtering capabilities. **Features**: - Full-text search across title, description, abstract, text content - Typo tolerance (finds \"machnie\" when searching for \"machine\") - Relevance ranking based on TF-IDF and proximity - Faceted filtering by dataset, status, MIME type, tags - Sorting by date, size, relevance - Highlighted search results **Flow**: 1. Query is sent to Meilisearch 2. Full-text search across indexed fields 3. Filters are applied (dataset_id, status, etc.) 4. Results are ranked and highlighted 5. Metadata is returned (no S3 fetching) **Performance**: Typically < 50ms for most queries **Use cases**: - Keyword-based document discovery - Filtering by metadata (tags, type, dataset) - Search with typo tolerance - Faceted search interfaces - Finding documents by title, author, abstract
|
|
78
|
+
* Keyword/faceted search for documents
|
|
79
|
+
*/
|
|
80
|
+
async keywordSearchApiV1SearchPost(requestParameters, initOverrides) {
|
|
81
|
+
const response = await this.keywordSearchApiV1SearchPostRaw(requestParameters, initOverrides);
|
|
82
|
+
return await response.value();
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* **Primary vector search endpoint** - Returns matching text chunks directly from Qdrant. This is the FAST search method that returns chunks without fetching full entry content. Use this when you want quick results with snippet-level granularity. **Auto-Embedding Support**: - Provide `query` (text) for automatic embedding generation - OR provide `query_vector` (pre-computed embeddings) - If both provided, `query_vector` takes precedence **Flow**: 1. If `query` provided: Generate embeddings using configured provider 2. Query vector is sent to Qdrant 3. Matching chunks are returned with scores and metadata 4. No database or S3 lookups (very fast!) **Performance**: - With `query_vector`: < 100ms - With `query` (auto-embed): 500ms-2s (includes embedding generation) **Use cases**: - Quick similarity search - Preview/snippet display - Finding relevant passages - High-throughput scenarios
|
|
86
|
+
* Vector search for similar chunks with auto-embedding (PRIMARY)
|
|
87
|
+
*/
|
|
88
|
+
async vectorSearchChunksApiV1VectorChunksPostRaw(requestParameters, initOverrides) {
|
|
89
|
+
if (requestParameters['vectorSearchRequest'] == null) {
|
|
90
|
+
throw new runtime.RequiredError('vectorSearchRequest', 'Required parameter "vectorSearchRequest" was null or undefined when calling vectorSearchChunksApiV1VectorChunksPost().');
|
|
91
|
+
}
|
|
92
|
+
const queryParameters = {};
|
|
93
|
+
const headerParameters = {};
|
|
94
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
95
|
+
const response = await this.request({
|
|
96
|
+
path: `/api/v1/vector/chunks`,
|
|
97
|
+
method: 'POST',
|
|
98
|
+
headers: headerParameters,
|
|
99
|
+
query: queryParameters,
|
|
100
|
+
body: (0, index_1.VectorSearchRequestToJSON)(requestParameters['vectorSearchRequest']),
|
|
101
|
+
}, initOverrides);
|
|
102
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ChunkSearchResponseFromJSON)(jsonValue));
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* **Primary vector search endpoint** - Returns matching text chunks directly from Qdrant. This is the FAST search method that returns chunks without fetching full entry content. Use this when you want quick results with snippet-level granularity. **Auto-Embedding Support**: - Provide `query` (text) for automatic embedding generation - OR provide `query_vector` (pre-computed embeddings) - If both provided, `query_vector` takes precedence **Flow**: 1. If `query` provided: Generate embeddings using configured provider 2. Query vector is sent to Qdrant 3. Matching chunks are returned with scores and metadata 4. No database or S3 lookups (very fast!) **Performance**: - With `query_vector`: < 100ms - With `query` (auto-embed): 500ms-2s (includes embedding generation) **Use cases**: - Quick similarity search - Preview/snippet display - Finding relevant passages - High-throughput scenarios
|
|
106
|
+
* Vector search for similar chunks with auto-embedding (PRIMARY)
|
|
107
|
+
*/
|
|
108
|
+
async vectorSearchChunksApiV1VectorChunksPost(requestParameters, initOverrides) {
|
|
109
|
+
const response = await this.vectorSearchChunksApiV1VectorChunksPostRaw(requestParameters, initOverrides);
|
|
110
|
+
return await response.value();
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* **Secondary vector search endpoint** - Returns full entry objects with S3 content. This is the COMPREHENSIVE search method that fetches complete entry content from S3. Use this when you need full documents, not just snippets. **Auto-Embedding Support**: - Provide `query` (text) for automatic embedding generation - OR provide `query_vector` (pre-computed embeddings) - If both provided, `query_vector` takes precedence **Flow**: 1. If `query` provided: Generate embeddings using configured provider 2. Query vector is sent to Qdrant 3. Matching chunks are grouped by entry_id 4. Entry records are fetched from PostgreSQL 5. Full content is retrieved from S3 (parallel batch operation) 6. Results combine entries with their matching chunks **Performance**: - With `query_vector`: 200-500ms - With `query` (auto-embed): 700ms-2.5s (includes embedding generation) **Use cases**: - Retrieving full documents - Document-level results - When you need complete content - Lower-throughput, higher-quality scenarios
|
|
114
|
+
* Vector search entries with full content and auto-embedding (SECONDARY)
|
|
115
|
+
*/
|
|
116
|
+
async vectorSearchEntriesApiV1VectorEntriesPostRaw(requestParameters, initOverrides) {
|
|
117
|
+
if (requestParameters['vectorSearchRequest'] == null) {
|
|
118
|
+
throw new runtime.RequiredError('vectorSearchRequest', 'Required parameter "vectorSearchRequest" was null or undefined when calling vectorSearchEntriesApiV1VectorEntriesPost().');
|
|
119
|
+
}
|
|
120
|
+
const queryParameters = {};
|
|
121
|
+
if (requestParameters['maxChunksPerEntry'] != null) {
|
|
122
|
+
queryParameters['max_chunks_per_entry'] = requestParameters['maxChunksPerEntry'];
|
|
123
|
+
}
|
|
124
|
+
const headerParameters = {};
|
|
125
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
126
|
+
const response = await this.request({
|
|
127
|
+
path: `/api/v1/vector/entries`,
|
|
128
|
+
method: 'POST',
|
|
129
|
+
headers: headerParameters,
|
|
130
|
+
query: queryParameters,
|
|
131
|
+
body: (0, index_1.VectorSearchRequestToJSON)(requestParameters['vectorSearchRequest']),
|
|
132
|
+
}, initOverrides);
|
|
133
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.EntrySearchResponseFromJSON)(jsonValue));
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* **Secondary vector search endpoint** - Returns full entry objects with S3 content. This is the COMPREHENSIVE search method that fetches complete entry content from S3. Use this when you need full documents, not just snippets. **Auto-Embedding Support**: - Provide `query` (text) for automatic embedding generation - OR provide `query_vector` (pre-computed embeddings) - If both provided, `query_vector` takes precedence **Flow**: 1. If `query` provided: Generate embeddings using configured provider 2. Query vector is sent to Qdrant 3. Matching chunks are grouped by entry_id 4. Entry records are fetched from PostgreSQL 5. Full content is retrieved from S3 (parallel batch operation) 6. Results combine entries with their matching chunks **Performance**: - With `query_vector`: 200-500ms - With `query` (auto-embed): 700ms-2.5s (includes embedding generation) **Use cases**: - Retrieving full documents - Document-level results - When you need complete content - Lower-throughput, higher-quality scenarios
|
|
137
|
+
* Vector search entries with full content and auto-embedding (SECONDARY)
|
|
138
|
+
*/
|
|
139
|
+
async vectorSearchEntriesApiV1VectorEntriesPost(requestParameters, initOverrides) {
|
|
140
|
+
const response = await this.vectorSearchEntriesApiV1VectorEntriesPostRaw(requestParameters, initOverrides);
|
|
141
|
+
return await response.value();
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
exports.SearchApi = SearchApi;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Client Data API
|
|
3
|
+
* Client Cluster Data API - Manifest-based storage service
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { RetryFailedWebhooksResponse } from '../models/index';
|
|
14
|
+
/**
|
|
15
|
+
* SyncApi - interface
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface SyncApiInterface
|
|
19
|
+
*/
|
|
20
|
+
export interface SyncApiInterface {
|
|
21
|
+
/**
|
|
22
|
+
* Get ground truth statistics for reconciliation. The backend calls this endpoint to compare its catalog against the actual state of the cluster\'s database. Returns: - timestamp: Current server time - datasets: List of datasets with entry counts and sizes - totals: Aggregated statistics across all datasets
|
|
23
|
+
* @summary Get Sync Summary
|
|
24
|
+
* @param {*} [options] Override http request option.
|
|
25
|
+
* @throws {RequiredError}
|
|
26
|
+
* @memberof SyncApiInterface
|
|
27
|
+
*/
|
|
28
|
+
getSyncSummaryApiV1SyncSummaryGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
|
|
29
|
+
[key: string]: any;
|
|
30
|
+
}>>;
|
|
31
|
+
/**
|
|
32
|
+
* Get ground truth statistics for reconciliation. The backend calls this endpoint to compare its catalog against the actual state of the cluster\'s database. Returns: - timestamp: Current server time - datasets: List of datasets with entry counts and sizes - totals: Aggregated statistics across all datasets
|
|
33
|
+
* Get Sync Summary
|
|
34
|
+
*/
|
|
35
|
+
getSyncSummaryApiV1SyncSummaryGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
36
|
+
[key: string]: any;
|
|
37
|
+
}>;
|
|
38
|
+
/**
|
|
39
|
+
* Retry all failed webhooks that haven\'t exhausted max retries. This endpoint resets all webhooks with status=\'failed\' and attempt_count < 20 back to \'pending\' status. The background worker will pick them up automatically for processing. **Use cases**: - Backend was temporarily down and webhooks failed - Network issues resolved - Manual intervention after fixing backend issues **Note**: Only webhooks that haven\'t exceeded max retries (20 attempts) will be reset. Permanently failed webhooks (attempt_count >= 20) are not affected.
|
|
40
|
+
* @summary Retry Failed Webhooks
|
|
41
|
+
* @param {*} [options] Override http request option.
|
|
42
|
+
* @throws {RequiredError}
|
|
43
|
+
* @memberof SyncApiInterface
|
|
44
|
+
*/
|
|
45
|
+
retryFailedWebhooksApiV1SyncWebhooksRetryFailedPostRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RetryFailedWebhooksResponse>>;
|
|
46
|
+
/**
|
|
47
|
+
* Retry all failed webhooks that haven\'t exhausted max retries. This endpoint resets all webhooks with status=\'failed\' and attempt_count < 20 back to \'pending\' status. The background worker will pick them up automatically for processing. **Use cases**: - Backend was temporarily down and webhooks failed - Network issues resolved - Manual intervention after fixing backend issues **Note**: Only webhooks that haven\'t exceeded max retries (20 attempts) will be reset. Permanently failed webhooks (attempt_count >= 20) are not affected.
|
|
48
|
+
* Retry Failed Webhooks
|
|
49
|
+
*/
|
|
50
|
+
retryFailedWebhooksApiV1SyncWebhooksRetryFailedPost(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RetryFailedWebhooksResponse>;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
export declare class SyncApi extends runtime.BaseAPI implements SyncApiInterface {
|
|
56
|
+
/**
|
|
57
|
+
* Get ground truth statistics for reconciliation. The backend calls this endpoint to compare its catalog against the actual state of the cluster\'s database. Returns: - timestamp: Current server time - datasets: List of datasets with entry counts and sizes - totals: Aggregated statistics across all datasets
|
|
58
|
+
* Get Sync Summary
|
|
59
|
+
*/
|
|
60
|
+
getSyncSummaryApiV1SyncSummaryGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
|
|
61
|
+
[key: string]: any;
|
|
62
|
+
}>>;
|
|
63
|
+
/**
|
|
64
|
+
* Get ground truth statistics for reconciliation. The backend calls this endpoint to compare its catalog against the actual state of the cluster\'s database. Returns: - timestamp: Current server time - datasets: List of datasets with entry counts and sizes - totals: Aggregated statistics across all datasets
|
|
65
|
+
* Get Sync Summary
|
|
66
|
+
*/
|
|
67
|
+
getSyncSummaryApiV1SyncSummaryGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
68
|
+
[key: string]: any;
|
|
69
|
+
}>;
|
|
70
|
+
/**
|
|
71
|
+
* Retry all failed webhooks that haven\'t exhausted max retries. This endpoint resets all webhooks with status=\'failed\' and attempt_count < 20 back to \'pending\' status. The background worker will pick them up automatically for processing. **Use cases**: - Backend was temporarily down and webhooks failed - Network issues resolved - Manual intervention after fixing backend issues **Note**: Only webhooks that haven\'t exceeded max retries (20 attempts) will be reset. Permanently failed webhooks (attempt_count >= 20) are not affected.
|
|
72
|
+
* Retry Failed Webhooks
|
|
73
|
+
*/
|
|
74
|
+
retryFailedWebhooksApiV1SyncWebhooksRetryFailedPostRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RetryFailedWebhooksResponse>>;
|
|
75
|
+
/**
|
|
76
|
+
* Retry all failed webhooks that haven\'t exhausted max retries. This endpoint resets all webhooks with status=\'failed\' and attempt_count < 20 back to \'pending\' status. The background worker will pick them up automatically for processing. **Use cases**: - Backend was temporarily down and webhooks failed - Network issues resolved - Manual intervention after fixing backend issues **Note**: Only webhooks that haven\'t exceeded max retries (20 attempts) will be reset. Permanently failed webhooks (attempt_count >= 20) are not affected.
|
|
77
|
+
* Retry Failed Webhooks
|
|
78
|
+
*/
|
|
79
|
+
retryFailedWebhooksApiV1SyncWebhooksRetryFailedPost(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RetryFailedWebhooksResponse>;
|
|
80
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Client Data API
|
|
6
|
+
* Client Cluster Data API - Manifest-based storage service
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
+
}) : function(o, v) {
|
|
29
|
+
o["default"] = v;
|
|
30
|
+
});
|
|
31
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
32
|
+
var ownKeys = function(o) {
|
|
33
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
34
|
+
var ar = [];
|
|
35
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
36
|
+
return ar;
|
|
37
|
+
};
|
|
38
|
+
return ownKeys(o);
|
|
39
|
+
};
|
|
40
|
+
return function (mod) {
|
|
41
|
+
if (mod && mod.__esModule) return mod;
|
|
42
|
+
var result = {};
|
|
43
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
+
__setModuleDefault(result, mod);
|
|
45
|
+
return result;
|
|
46
|
+
};
|
|
47
|
+
})();
|
|
48
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
+
exports.SyncApi = void 0;
|
|
50
|
+
const runtime = __importStar(require("../runtime"));
|
|
51
|
+
const index_1 = require("../models/index");
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
class SyncApi extends runtime.BaseAPI {
|
|
56
|
+
/**
|
|
57
|
+
* Get ground truth statistics for reconciliation. The backend calls this endpoint to compare its catalog against the actual state of the cluster\'s database. Returns: - timestamp: Current server time - datasets: List of datasets with entry counts and sizes - totals: Aggregated statistics across all datasets
|
|
58
|
+
* Get Sync Summary
|
|
59
|
+
*/
|
|
60
|
+
async getSyncSummaryApiV1SyncSummaryGetRaw(initOverrides) {
|
|
61
|
+
const queryParameters = {};
|
|
62
|
+
const headerParameters = {};
|
|
63
|
+
const response = await this.request({
|
|
64
|
+
path: `/api/v1/sync/summary`,
|
|
65
|
+
method: 'GET',
|
|
66
|
+
headers: headerParameters,
|
|
67
|
+
query: queryParameters,
|
|
68
|
+
}, initOverrides);
|
|
69
|
+
return new runtime.JSONApiResponse(response);
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Get ground truth statistics for reconciliation. The backend calls this endpoint to compare its catalog against the actual state of the cluster\'s database. Returns: - timestamp: Current server time - datasets: List of datasets with entry counts and sizes - totals: Aggregated statistics across all datasets
|
|
73
|
+
* Get Sync Summary
|
|
74
|
+
*/
|
|
75
|
+
async getSyncSummaryApiV1SyncSummaryGet(initOverrides) {
|
|
76
|
+
const response = await this.getSyncSummaryApiV1SyncSummaryGetRaw(initOverrides);
|
|
77
|
+
return await response.value();
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Retry all failed webhooks that haven\'t exhausted max retries. This endpoint resets all webhooks with status=\'failed\' and attempt_count < 20 back to \'pending\' status. The background worker will pick them up automatically for processing. **Use cases**: - Backend was temporarily down and webhooks failed - Network issues resolved - Manual intervention after fixing backend issues **Note**: Only webhooks that haven\'t exceeded max retries (20 attempts) will be reset. Permanently failed webhooks (attempt_count >= 20) are not affected.
|
|
81
|
+
* Retry Failed Webhooks
|
|
82
|
+
*/
|
|
83
|
+
async retryFailedWebhooksApiV1SyncWebhooksRetryFailedPostRaw(initOverrides) {
|
|
84
|
+
const queryParameters = {};
|
|
85
|
+
const headerParameters = {};
|
|
86
|
+
const response = await this.request({
|
|
87
|
+
path: `/api/v1/sync/webhooks/retry-failed`,
|
|
88
|
+
method: 'POST',
|
|
89
|
+
headers: headerParameters,
|
|
90
|
+
query: queryParameters,
|
|
91
|
+
}, initOverrides);
|
|
92
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.RetryFailedWebhooksResponseFromJSON)(jsonValue));
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Retry all failed webhooks that haven\'t exhausted max retries. This endpoint resets all webhooks with status=\'failed\' and attempt_count < 20 back to \'pending\' status. The background worker will pick them up automatically for processing. **Use cases**: - Backend was temporarily down and webhooks failed - Network issues resolved - Manual intervention after fixing backend issues **Note**: Only webhooks that haven\'t exceeded max retries (20 attempts) will be reset. Permanently failed webhooks (attempt_count >= 20) are not affected.
|
|
96
|
+
* Retry Failed Webhooks
|
|
97
|
+
*/
|
|
98
|
+
async retryFailedWebhooksApiV1SyncWebhooksRetryFailedPost(initOverrides) {
|
|
99
|
+
const response = await this.retryFailedWebhooksApiV1SyncWebhooksRetryFailedPostRaw(initOverrides);
|
|
100
|
+
return await response.value();
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
exports.SyncApi = SyncApi;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Client Data API
|
|
3
|
+
* Client Cluster Data API - Manifest-based storage service
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { WebhookEndpointCreate, WebhookEndpointResponse } from '../models/index';
|
|
14
|
+
export interface CreateWebhookApiV1WebhooksPostRequest {
|
|
15
|
+
webhookEndpointCreate: WebhookEndpointCreate;
|
|
16
|
+
}
|
|
17
|
+
export interface DeleteWebhookApiV1WebhooksWebhookIdDeleteRequest {
|
|
18
|
+
webhookId: number;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* WebhooksApi - interface
|
|
22
|
+
*
|
|
23
|
+
* @export
|
|
24
|
+
* @interface WebhooksApiInterface
|
|
25
|
+
*/
|
|
26
|
+
export interface WebhooksApiInterface {
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @summary Create Webhook
|
|
30
|
+
* @param {WebhookEndpointCreate} webhookEndpointCreate
|
|
31
|
+
* @param {*} [options] Override http request option.
|
|
32
|
+
* @throws {RequiredError}
|
|
33
|
+
* @memberof WebhooksApiInterface
|
|
34
|
+
*/
|
|
35
|
+
createWebhookApiV1WebhooksPostRaw(requestParameters: CreateWebhookApiV1WebhooksPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WebhookEndpointResponse>>;
|
|
36
|
+
/**
|
|
37
|
+
* Create Webhook
|
|
38
|
+
*/
|
|
39
|
+
createWebhookApiV1WebhooksPost(requestParameters: CreateWebhookApiV1WebhooksPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WebhookEndpointResponse>;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @summary Delete Webhook
|
|
43
|
+
* @param {number} webhookId
|
|
44
|
+
* @param {*} [options] Override http request option.
|
|
45
|
+
* @throws {RequiredError}
|
|
46
|
+
* @memberof WebhooksApiInterface
|
|
47
|
+
*/
|
|
48
|
+
deleteWebhookApiV1WebhooksWebhookIdDeleteRaw(requestParameters: DeleteWebhookApiV1WebhooksWebhookIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
49
|
+
/**
|
|
50
|
+
* Delete Webhook
|
|
51
|
+
*/
|
|
52
|
+
deleteWebhookApiV1WebhooksWebhookIdDelete(requestParameters: DeleteWebhookApiV1WebhooksWebhookIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @summary List Webhooks
|
|
56
|
+
* @param {*} [options] Override http request option.
|
|
57
|
+
* @throws {RequiredError}
|
|
58
|
+
* @memberof WebhooksApiInterface
|
|
59
|
+
*/
|
|
60
|
+
listWebhooksApiV1WebhooksGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<WebhookEndpointResponse>>>;
|
|
61
|
+
/**
|
|
62
|
+
* List Webhooks
|
|
63
|
+
*/
|
|
64
|
+
listWebhooksApiV1WebhooksGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<WebhookEndpointResponse>>;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
*/
|
|
69
|
+
export declare class WebhooksApi extends runtime.BaseAPI implements WebhooksApiInterface {
|
|
70
|
+
/**
|
|
71
|
+
* Create Webhook
|
|
72
|
+
*/
|
|
73
|
+
createWebhookApiV1WebhooksPostRaw(requestParameters: CreateWebhookApiV1WebhooksPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WebhookEndpointResponse>>;
|
|
74
|
+
/**
|
|
75
|
+
* Create Webhook
|
|
76
|
+
*/
|
|
77
|
+
createWebhookApiV1WebhooksPost(requestParameters: CreateWebhookApiV1WebhooksPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WebhookEndpointResponse>;
|
|
78
|
+
/**
|
|
79
|
+
* Delete Webhook
|
|
80
|
+
*/
|
|
81
|
+
deleteWebhookApiV1WebhooksWebhookIdDeleteRaw(requestParameters: DeleteWebhookApiV1WebhooksWebhookIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
82
|
+
/**
|
|
83
|
+
* Delete Webhook
|
|
84
|
+
*/
|
|
85
|
+
deleteWebhookApiV1WebhooksWebhookIdDelete(requestParameters: DeleteWebhookApiV1WebhooksWebhookIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
86
|
+
/**
|
|
87
|
+
* List Webhooks
|
|
88
|
+
*/
|
|
89
|
+
listWebhooksApiV1WebhooksGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<WebhookEndpointResponse>>>;
|
|
90
|
+
/**
|
|
91
|
+
* List Webhooks
|
|
92
|
+
*/
|
|
93
|
+
listWebhooksApiV1WebhooksGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<WebhookEndpointResponse>>;
|
|
94
|
+
}
|