@alien_intelligence/data-api-client 2.1.2 → 2.3.1
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/dist/src/apis/AdminApi.d.ts +1 -1
- package/dist/src/apis/AdminApi.js +1 -1
- package/dist/src/apis/DatasetsApi.d.ts +9 -9
- package/dist/src/apis/DatasetsApi.js +5 -5
- package/dist/src/apis/DefaultApi.d.ts +1 -1
- package/dist/src/apis/DefaultApi.js +1 -1
- package/dist/src/apis/EmbeddingsApi.d.ts +1 -1
- package/dist/src/apis/EmbeddingsApi.js +1 -1
- package/dist/src/apis/EntriesApi.d.ts +29 -2
- package/dist/src/apis/EntriesApi.js +46 -1
- package/dist/src/apis/HealthApi.d.ts +1 -1
- package/dist/src/apis/HealthApi.js +1 -1
- package/dist/src/apis/PipelinesApi.d.ts +1 -1
- package/dist/src/apis/PipelinesApi.js +1 -1
- package/dist/src/apis/SearchApi.d.ts +5 -5
- package/dist/src/apis/SearchApi.js +3 -3
- package/dist/src/apis/SyncApi.d.ts +5 -5
- package/dist/src/apis/SyncApi.js +3 -3
- package/dist/src/apis/WebhooksApi.d.ts +1 -1
- package/dist/src/apis/WebhooksApi.js +1 -1
- package/dist/src/apis/WeightsApi.d.ts +1 -1
- package/dist/src/apis/WeightsApi.js +1 -1
- package/dist/src/models/AdmissionLaneHealth.d.ts +1 -1
- package/dist/src/models/AdmissionLaneHealth.js +1 -1
- package/dist/src/models/ArtifactInputConfig.d.ts +1 -1
- package/dist/src/models/ArtifactInputConfig.js +1 -1
- package/dist/src/models/BatchContentRequest.d.ts +1 -1
- package/dist/src/models/BatchContentRequest.js +1 -1
- package/dist/src/models/BatchContentResponse.d.ts +1 -1
- package/dist/src/models/BatchContentResponse.js +1 -1
- package/dist/src/models/BatchGetEntriesRequest.d.ts +1 -1
- package/dist/src/models/BatchGetEntriesRequest.js +1 -1
- package/dist/src/models/BatchGetEntriesResponse.d.ts +1 -1
- package/dist/src/models/BatchGetEntriesResponse.js +1 -1
- package/dist/src/models/BatchIngestError.d.ts +52 -0
- package/dist/src/models/BatchIngestError.js +60 -0
- package/dist/src/models/BatchIngestItemResult.d.ts +64 -0
- package/dist/src/models/BatchIngestItemResult.js +64 -0
- package/dist/src/models/BatchIngestOutcome.d.ts +26 -0
- package/dist/src/models/BatchIngestOutcome.js +52 -0
- package/dist/src/models/BatchIngestResponse.d.ts +57 -0
- package/dist/src/models/BatchIngestResponse.js +65 -0
- package/dist/src/models/ChunkSearchResponse.d.ts +1 -1
- package/dist/src/models/ChunkSearchResponse.js +1 -1
- package/dist/src/models/ChunkSearchResult.d.ts +1 -1
- package/dist/src/models/ChunkSearchResult.js +1 -1
- package/dist/src/models/CollectionInfo.d.ts +1 -1
- package/dist/src/models/CollectionInfo.js +1 -1
- package/dist/src/models/ComponentArtifact.d.ts +1 -1
- package/dist/src/models/ComponentArtifact.js +1 -1
- package/dist/src/models/ComponentListResponse.d.ts +1 -1
- package/dist/src/models/ComponentListResponse.js +1 -1
- package/dist/src/models/ComponentMetadata.d.ts +1 -1
- package/dist/src/models/ComponentMetadata.js +1 -1
- package/dist/src/models/ComponentParameter.d.ts +1 -1
- package/dist/src/models/ComponentParameter.js +1 -1
- package/dist/src/models/Dataset.d.ts +1 -1
- package/dist/src/models/Dataset.js +1 -1
- package/dist/src/models/DatasetCreateRequest.d.ts +1 -1
- package/dist/src/models/DatasetCreateRequest.js +1 -1
- package/dist/src/models/DatasetListResponse.d.ts +1 -1
- package/dist/src/models/DatasetListResponse.js +1 -1
- package/dist/src/models/DatasetPipelineConfig.d.ts +1 -1
- package/dist/src/models/DatasetPipelineConfig.js +1 -1
- package/dist/src/models/DatasetResponse.d.ts +1 -1
- package/dist/src/models/DatasetResponse.js +1 -1
- package/dist/src/models/DatasetSchemaDefinition.d.ts +1 -1
- package/dist/src/models/DatasetSchemaDefinition.js +1 -1
- package/dist/src/models/DatasetSchemaDefinitionCreate.d.ts +1 -1
- package/dist/src/models/DatasetSchemaDefinitionCreate.js +1 -1
- package/dist/src/models/DatasetSchemaOriginal.d.ts +1 -1
- package/dist/src/models/DatasetSchemaOriginal.js +1 -1
- package/dist/src/models/DatasetSchemaProcessed.d.ts +1 -1
- package/dist/src/models/DatasetSchemaProcessed.js +1 -1
- package/dist/src/models/DatasetSchemaProcessing.d.ts +1 -1
- package/dist/src/models/DatasetSchemaProcessing.js +1 -1
- package/dist/src/models/DatasetType.d.ts +1 -1
- package/dist/src/models/DatasetType.js +1 -1
- package/dist/src/models/DatasetUpdateRequest.d.ts +1 -1
- package/dist/src/models/DatasetUpdateRequest.js +1 -1
- package/dist/src/models/DatasetUpdateSchemaRequest.d.ts +1 -1
- package/dist/src/models/DatasetUpdateSchemaRequest.js +1 -1
- package/dist/src/models/Default.d.ts +1 -1
- package/dist/src/models/Default.js +1 -1
- package/dist/src/models/DeprecationNotice.d.ts +1 -1
- package/dist/src/models/DeprecationNotice.js +1 -1
- package/dist/src/models/DerivedPageReport.d.ts +1 -1
- package/dist/src/models/DerivedPageReport.js +1 -1
- package/dist/src/models/EmbeddingProvider.d.ts +1 -1
- package/dist/src/models/EmbeddingProvider.js +1 -1
- package/dist/src/models/EmbeddingPurpose.d.ts +1 -1
- package/dist/src/models/EmbeddingPurpose.js +1 -1
- package/dist/src/models/EmbeddingResponse.d.ts +1 -1
- package/dist/src/models/EmbeddingResponse.js +1 -1
- package/dist/src/models/Entry.d.ts +1 -1
- package/dist/src/models/Entry.js +1 -1
- package/dist/src/models/EntryContentResponse.d.ts +1 -1
- package/dist/src/models/EntryContentResponse.js +1 -1
- package/dist/src/models/EntryCreateRequest.d.ts +1 -1
- package/dist/src/models/EntryCreateRequest.js +1 -1
- package/dist/src/models/EntryCreateResponse.d.ts +1 -1
- package/dist/src/models/EntryCreateResponse.js +1 -1
- package/dist/src/models/EntryListPagination.d.ts +1 -1
- package/dist/src/models/EntryListPagination.js +1 -1
- package/dist/src/models/EntryManifest.d.ts +1 -1
- package/dist/src/models/EntryManifest.js +1 -1
- package/dist/src/models/EntrySearchResponse.d.ts +1 -1
- package/dist/src/models/EntrySearchResponse.js +1 -1
- package/dist/src/models/EntrySearchResult.d.ts +1 -1
- package/dist/src/models/EntrySearchResult.js +1 -1
- package/dist/src/models/EntryStatus.d.ts +1 -1
- package/dist/src/models/EntryStatus.js +1 -1
- package/dist/src/models/EntryUpdateRequest.d.ts +1 -1
- package/dist/src/models/EntryUpdateRequest.js +1 -1
- package/dist/src/models/EntryWithContent.d.ts +1 -1
- package/dist/src/models/EntryWithContent.js +1 -1
- package/dist/src/models/FigureImage.d.ts +1 -1
- package/dist/src/models/FigureImage.js +1 -1
- package/dist/src/models/FileMetadata.d.ts +1 -1
- package/dist/src/models/FileMetadata.js +1 -1
- package/dist/src/models/GenerateEmbeddingsRequest.d.ts +1 -1
- package/dist/src/models/GenerateEmbeddingsRequest.js +1 -1
- package/dist/src/models/HTTPValidationError.d.ts +1 -1
- package/dist/src/models/HTTPValidationError.js +1 -1
- package/dist/src/models/HealthResponse.d.ts +1 -1
- package/dist/src/models/HealthResponse.js +1 -1
- package/dist/src/models/IngestContractUsageResponse.d.ts +1 -1
- package/dist/src/models/IngestContractUsageResponse.js +1 -1
- package/dist/src/models/IngestContractUsageRow.d.ts +1 -1
- package/dist/src/models/IngestContractUsageRow.js +1 -1
- package/dist/src/models/KeywordIndexLag.d.ts +70 -0
- package/dist/src/models/KeywordIndexLag.js +66 -0
- package/dist/src/models/KeywordSearchHit.d.ts +1 -1
- package/dist/src/models/KeywordSearchHit.js +1 -1
- package/dist/src/models/KeywordSearchRequest.d.ts +1 -1
- package/dist/src/models/KeywordSearchRequest.js +1 -1
- package/dist/src/models/KeywordSearchRequestMetadataFiltersValue.d.ts +1 -1
- package/dist/src/models/KeywordSearchRequestMetadataFiltersValue.js +1 -1
- package/dist/src/models/KeywordSearchResponse.d.ts +8 -1
- package/dist/src/models/KeywordSearchResponse.js +4 -1
- package/dist/src/models/MissingPageRange.d.ts +1 -1
- package/dist/src/models/MissingPageRange.js +1 -1
- package/dist/src/models/ModelInfo.d.ts +1 -1
- package/dist/src/models/ModelInfo.js +1 -1
- package/dist/src/models/MoveEntryRequest.d.ts +1 -1
- package/dist/src/models/MoveEntryRequest.js +1 -1
- package/dist/src/models/MoveEntryResponse.d.ts +1 -1
- package/dist/src/models/MoveEntryResponse.js +1 -1
- package/dist/src/models/OriginalManifest.d.ts +1 -1
- package/dist/src/models/OriginalManifest.js +1 -1
- package/dist/src/models/PageDimensions.d.ts +1 -1
- package/dist/src/models/PageDimensions.js +1 -1
- package/dist/src/models/PipelineStepConfig.d.ts +1 -1
- package/dist/src/models/PipelineStepConfig.js +1 -1
- package/dist/src/models/PresetListResponse.d.ts +1 -1
- package/dist/src/models/PresetListResponse.js +1 -1
- package/dist/src/models/ProcessedManifest.d.ts +1 -1
- package/dist/src/models/ProcessedManifest.js +1 -1
- package/dist/src/models/ProcessingManifest.d.ts +1 -1
- package/dist/src/models/ProcessingManifest.js +1 -1
- package/dist/src/models/ProcessingResetResponse.d.ts +1 -1
- package/dist/src/models/ProcessingResetResponse.js +1 -1
- package/dist/src/models/ReconcileSchemaFieldsResponse.d.ts +1 -1
- package/dist/src/models/ReconcileSchemaFieldsResponse.js +1 -1
- package/dist/src/models/RetryFailedWebhooksResponse.d.ts +1 -1
- package/dist/src/models/RetryFailedWebhooksResponse.js +1 -1
- package/dist/src/models/SaveProcessedContentRequest.d.ts +1 -1
- package/dist/src/models/SaveProcessedContentRequest.js +1 -1
- package/dist/src/models/SaveProcessedContentResponse.d.ts +1 -1
- package/dist/src/models/SaveProcessedContentResponse.js +1 -1
- package/dist/src/models/SearchSnippet.d.ts +1 -1
- package/dist/src/models/SearchSnippet.js +1 -1
- package/dist/src/models/Segment.d.ts +1 -1
- package/dist/src/models/Segment.js +1 -1
- package/dist/src/models/SnippetContext.d.ts +1 -1
- package/dist/src/models/SnippetContext.js +1 -1
- package/dist/src/models/Transcription.d.ts +1 -1
- package/dist/src/models/Transcription.js +1 -1
- package/dist/src/models/TranscriptionDocumentInfo.d.ts +1 -1
- package/dist/src/models/TranscriptionDocumentInfo.js +1 -1
- package/dist/src/models/TranscriptionPage.d.ts +1 -1
- package/dist/src/models/TranscriptionPage.js +1 -1
- package/dist/src/models/TranscriptionUsage.d.ts +1 -1
- package/dist/src/models/TranscriptionUsage.js +1 -1
- package/dist/src/models/TranscriptionWarnings.d.ts +1 -1
- package/dist/src/models/TranscriptionWarnings.js +1 -1
- package/dist/src/models/UploadFileResponse.d.ts +1 -1
- package/dist/src/models/UploadFileResponse.js +1 -1
- package/dist/src/models/ValidationError.d.ts +1 -1
- package/dist/src/models/ValidationError.js +1 -1
- package/dist/src/models/ValidationErrorLocInner.d.ts +1 -1
- package/dist/src/models/ValidationErrorLocInner.js +1 -1
- package/dist/src/models/VectorSearchRequest.d.ts +1 -1
- package/dist/src/models/VectorSearchRequest.js +1 -1
- package/dist/src/models/WebhookEndpointCreate.d.ts +1 -1
- package/dist/src/models/WebhookEndpointCreate.js +1 -1
- package/dist/src/models/WebhookEndpointResponse.d.ts +1 -1
- package/dist/src/models/WebhookEndpointResponse.js +1 -1
- package/dist/src/models/Weight.d.ts +1 -1
- package/dist/src/models/Weight.js +1 -1
- package/dist/src/models/WeightListResponse.d.ts +1 -1
- package/dist/src/models/WeightListResponse.js +1 -1
- package/dist/src/models/WeightResponse.d.ts +1 -1
- package/dist/src/models/WeightResponse.js +1 -1
- package/dist/src/models/WeightType.d.ts +1 -1
- package/dist/src/models/WeightType.js +1 -1
- package/dist/src/models/index.d.ts +5 -0
- package/dist/src/models/index.js +5 -0
- package/dist/src/runtime.d.ts +1 -1
- package/dist/src/runtime.js +1 -1
- package/package.json +1 -1
- package/src/README.md +2 -2
- package/src/package.json +1 -1
- package/src/src/apis/AdminApi.ts +1 -1
- package/src/src/apis/DatasetsApi.ts +9 -9
- package/src/src/apis/DefaultApi.ts +1 -1
- package/src/src/apis/EmbeddingsApi.ts +1 -1
- package/src/src/apis/EntriesApi.ts +80 -1
- package/src/src/apis/HealthApi.ts +1 -1
- package/src/src/apis/PipelinesApi.ts +1 -1
- package/src/src/apis/SearchApi.ts +5 -5
- package/src/src/apis/SyncApi.ts +5 -5
- package/src/src/apis/WebhooksApi.ts +1 -1
- package/src/src/apis/WeightsApi.ts +1 -1
- package/src/src/models/AdmissionLaneHealth.ts +1 -1
- package/src/src/models/ArtifactInputConfig.ts +1 -1
- package/src/src/models/BatchContentRequest.ts +1 -1
- package/src/src/models/BatchContentResponse.ts +1 -1
- package/src/src/models/BatchGetEntriesRequest.ts +1 -1
- package/src/src/models/BatchGetEntriesResponse.ts +1 -1
- package/src/src/models/BatchIngestError.ts +92 -0
- package/src/src/models/BatchIngestItemResult.ts +124 -0
- package/src/src/models/BatchIngestOutcome.ts +54 -0
- package/src/src/models/BatchIngestResponse.ts +109 -0
- package/src/src/models/ChunkSearchResponse.ts +1 -1
- package/src/src/models/ChunkSearchResult.ts +1 -1
- package/src/src/models/CollectionInfo.ts +1 -1
- package/src/src/models/ComponentArtifact.ts +1 -1
- package/src/src/models/ComponentListResponse.ts +1 -1
- package/src/src/models/ComponentMetadata.ts +1 -1
- package/src/src/models/ComponentParameter.ts +1 -1
- package/src/src/models/Dataset.ts +1 -1
- package/src/src/models/DatasetCreateRequest.ts +1 -1
- package/src/src/models/DatasetListResponse.ts +1 -1
- package/src/src/models/DatasetPipelineConfig.ts +1 -1
- package/src/src/models/DatasetResponse.ts +1 -1
- package/src/src/models/DatasetSchemaDefinition.ts +1 -1
- package/src/src/models/DatasetSchemaDefinitionCreate.ts +1 -1
- package/src/src/models/DatasetSchemaOriginal.ts +1 -1
- package/src/src/models/DatasetSchemaProcessed.ts +1 -1
- package/src/src/models/DatasetSchemaProcessing.ts +1 -1
- package/src/src/models/DatasetType.ts +1 -1
- package/src/src/models/DatasetUpdateRequest.ts +1 -1
- package/src/src/models/DatasetUpdateSchemaRequest.ts +1 -1
- package/src/src/models/Default.ts +1 -1
- package/src/src/models/DeprecationNotice.ts +1 -1
- package/src/src/models/DerivedPageReport.ts +1 -1
- package/src/src/models/EmbeddingProvider.ts +1 -1
- package/src/src/models/EmbeddingPurpose.ts +1 -1
- package/src/src/models/EmbeddingResponse.ts +1 -1
- package/src/src/models/Entry.ts +1 -1
- package/src/src/models/EntryContentResponse.ts +1 -1
- package/src/src/models/EntryCreateRequest.ts +1 -1
- package/src/src/models/EntryCreateResponse.ts +1 -1
- package/src/src/models/EntryListPagination.ts +1 -1
- package/src/src/models/EntryManifest.ts +1 -1
- package/src/src/models/EntrySearchResponse.ts +1 -1
- package/src/src/models/EntrySearchResult.ts +1 -1
- package/src/src/models/EntryStatus.ts +1 -1
- package/src/src/models/EntryUpdateRequest.ts +1 -1
- package/src/src/models/EntryWithContent.ts +1 -1
- package/src/src/models/FigureImage.ts +1 -1
- package/src/src/models/FileMetadata.ts +1 -1
- package/src/src/models/GenerateEmbeddingsRequest.ts +1 -1
- package/src/src/models/HTTPValidationError.ts +1 -1
- package/src/src/models/HealthResponse.ts +1 -1
- package/src/src/models/IngestContractUsageResponse.ts +1 -1
- package/src/src/models/IngestContractUsageRow.ts +1 -1
- package/src/src/models/KeywordIndexLag.ts +116 -0
- package/src/src/models/KeywordSearchHit.ts +1 -1
- package/src/src/models/KeywordSearchRequest.ts +1 -1
- package/src/src/models/KeywordSearchRequestMetadataFiltersValue.ts +1 -1
- package/src/src/models/KeywordSearchResponse.ts +16 -1
- package/src/src/models/MissingPageRange.ts +1 -1
- package/src/src/models/ModelInfo.ts +1 -1
- package/src/src/models/MoveEntryRequest.ts +1 -1
- package/src/src/models/MoveEntryResponse.ts +1 -1
- package/src/src/models/OriginalManifest.ts +1 -1
- package/src/src/models/PageDimensions.ts +1 -1
- package/src/src/models/PipelineStepConfig.ts +1 -1
- package/src/src/models/PresetListResponse.ts +1 -1
- package/src/src/models/ProcessedManifest.ts +1 -1
- package/src/src/models/ProcessingManifest.ts +1 -1
- package/src/src/models/ProcessingResetResponse.ts +1 -1
- package/src/src/models/ReconcileSchemaFieldsResponse.ts +1 -1
- package/src/src/models/RetryFailedWebhooksResponse.ts +1 -1
- package/src/src/models/SaveProcessedContentRequest.ts +1 -1
- package/src/src/models/SaveProcessedContentResponse.ts +1 -1
- package/src/src/models/SearchSnippet.ts +1 -1
- package/src/src/models/Segment.ts +1 -1
- package/src/src/models/SnippetContext.ts +1 -1
- package/src/src/models/Transcription.ts +1 -1
- package/src/src/models/TranscriptionDocumentInfo.ts +1 -1
- package/src/src/models/TranscriptionPage.ts +1 -1
- package/src/src/models/TranscriptionUsage.ts +1 -1
- package/src/src/models/TranscriptionWarnings.ts +1 -1
- package/src/src/models/UploadFileResponse.ts +1 -1
- package/src/src/models/ValidationError.ts +1 -1
- package/src/src/models/ValidationErrorLocInner.ts +1 -1
- package/src/src/models/VectorSearchRequest.ts +1 -1
- package/src/src/models/WebhookEndpointCreate.ts +1 -1
- package/src/src/models/WebhookEndpointResponse.ts +1 -1
- package/src/src/models/Weight.ts +1 -1
- package/src/src/models/WeightListResponse.ts +1 -1
- package/src/src/models/WeightResponse.ts +1 -1
- package/src/src/models/WeightType.ts +1 -1
- package/src/src/models/index.ts +5 -0
- package/src/src/runtime.ts +1 -1
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Client Data API
|
|
5
5
|
* Client Cluster Data API - Manifest-based storage service
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.1
|
|
7
|
+
* The version of the OpenAPI document: 2.3.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -19,6 +19,7 @@ import type {
|
|
|
19
19
|
BatchContentResponse,
|
|
20
20
|
BatchGetEntriesRequest,
|
|
21
21
|
BatchGetEntriesResponse,
|
|
22
|
+
BatchIngestResponse,
|
|
22
23
|
Entry,
|
|
23
24
|
EntryCreateRequest,
|
|
24
25
|
EntryCreateResponse,
|
|
@@ -42,6 +43,8 @@ import {
|
|
|
42
43
|
BatchGetEntriesRequestToJSON,
|
|
43
44
|
BatchGetEntriesResponseFromJSON,
|
|
44
45
|
BatchGetEntriesResponseToJSON,
|
|
46
|
+
BatchIngestResponseFromJSON,
|
|
47
|
+
BatchIngestResponseToJSON,
|
|
45
48
|
EntryFromJSON,
|
|
46
49
|
EntryToJSON,
|
|
47
50
|
EntryCreateRequestFromJSON,
|
|
@@ -78,6 +81,10 @@ export interface BatchGetEntriesApiV1EntriesBatchPostRequest {
|
|
|
78
81
|
batchGetEntriesRequest: BatchGetEntriesRequest;
|
|
79
82
|
}
|
|
80
83
|
|
|
84
|
+
export interface BatchIngestApiV1EntriesBatchIngestPostRequest {
|
|
85
|
+
items: Blob;
|
|
86
|
+
}
|
|
87
|
+
|
|
81
88
|
export interface CreateEntryApiV1EntriesPostRequest {
|
|
82
89
|
entryCreateRequest: EntryCreateRequest;
|
|
83
90
|
}
|
|
@@ -191,6 +198,22 @@ export interface EntriesApiInterface {
|
|
|
191
198
|
*/
|
|
192
199
|
batchGetEntriesApiV1EntriesBatchPost(requestParameters: BatchGetEntriesApiV1EntriesBatchPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BatchGetEntriesResponse>;
|
|
193
200
|
|
|
201
|
+
/**
|
|
202
|
+
* Create or update many entries in one request, each with its original files, processed content, figures and chunks. Each item is upserted on (dataset_id, slug). Items succeed or fail on their own, and the response says which and why. An item that fails is safe to send again unchanged when its error is ``retryable``. The body is multipart and its parts are named by the client, so it cannot be declared as a FastAPI model. The ``items`` part is validated item by item against ``BatchIngestItem``; every reference an item makes to a binary part is checked before anything is written. Entries are searchable by vector when this returns, and by keyword once the index worker has written them.
|
|
203
|
+
* @summary Batch Ingest
|
|
204
|
+
* @param {Blob} items A file part holding the JSON document described by BatchIngestDocument. Every other part is a binary one an item names.
|
|
205
|
+
* @param {*} [options] Override http request option.
|
|
206
|
+
* @throws {RequiredError}
|
|
207
|
+
* @memberof EntriesApiInterface
|
|
208
|
+
*/
|
|
209
|
+
batchIngestApiV1EntriesBatchIngestPostRaw(requestParameters: BatchIngestApiV1EntriesBatchIngestPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BatchIngestResponse>>;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Create or update many entries in one request, each with its original files, processed content, figures and chunks. Each item is upserted on (dataset_id, slug). Items succeed or fail on their own, and the response says which and why. An item that fails is safe to send again unchanged when its error is ``retryable``. The body is multipart and its parts are named by the client, so it cannot be declared as a FastAPI model. The ``items`` part is validated item by item against ``BatchIngestItem``; every reference an item makes to a binary part is checked before anything is written. Entries are searchable by vector when this returns, and by keyword once the index worker has written them.
|
|
213
|
+
* Batch Ingest
|
|
214
|
+
*/
|
|
215
|
+
batchIngestApiV1EntriesBatchIngestPost(requestParameters: BatchIngestApiV1EntriesBatchIngestPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BatchIngestResponse>;
|
|
216
|
+
|
|
194
217
|
/**
|
|
195
218
|
* Create a new entry. This creates the entry record in PostgreSQL but does NOT upload files yet. Use POST /entries/{id}/upload to upload the actual file.
|
|
196
219
|
* @summary Create Entry
|
|
@@ -528,6 +551,62 @@ export class EntriesApi extends runtime.BaseAPI implements EntriesApiInterface {
|
|
|
528
551
|
return await response.value();
|
|
529
552
|
}
|
|
530
553
|
|
|
554
|
+
/**
|
|
555
|
+
* Create or update many entries in one request, each with its original files, processed content, figures and chunks. Each item is upserted on (dataset_id, slug). Items succeed or fail on their own, and the response says which and why. An item that fails is safe to send again unchanged when its error is ``retryable``. The body is multipart and its parts are named by the client, so it cannot be declared as a FastAPI model. The ``items`` part is validated item by item against ``BatchIngestItem``; every reference an item makes to a binary part is checked before anything is written. Entries are searchable by vector when this returns, and by keyword once the index worker has written them.
|
|
556
|
+
* Batch Ingest
|
|
557
|
+
*/
|
|
558
|
+
async batchIngestApiV1EntriesBatchIngestPostRaw(requestParameters: BatchIngestApiV1EntriesBatchIngestPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BatchIngestResponse>> {
|
|
559
|
+
if (requestParameters['items'] == null) {
|
|
560
|
+
throw new runtime.RequiredError(
|
|
561
|
+
'items',
|
|
562
|
+
'Required parameter "items" was null or undefined when calling batchIngestApiV1EntriesBatchIngestPost().'
|
|
563
|
+
);
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
const queryParameters: any = {};
|
|
567
|
+
|
|
568
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
569
|
+
|
|
570
|
+
const consumes: runtime.Consume[] = [
|
|
571
|
+
{ contentType: 'multipart/form-data' },
|
|
572
|
+
];
|
|
573
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
574
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
575
|
+
|
|
576
|
+
let formParams: { append(param: string, value: any): any };
|
|
577
|
+
let useForm = false;
|
|
578
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
579
|
+
useForm = canConsumeForm;
|
|
580
|
+
if (useForm) {
|
|
581
|
+
formParams = new FormData();
|
|
582
|
+
} else {
|
|
583
|
+
formParams = new URLSearchParams();
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
if (requestParameters['items'] != null) {
|
|
587
|
+
formParams.append('items', requestParameters['items'] as any);
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
const response = await this.request({
|
|
591
|
+
path: `/api/v1/entries/batch-ingest`,
|
|
592
|
+
method: 'POST',
|
|
593
|
+
headers: headerParameters,
|
|
594
|
+
query: queryParameters,
|
|
595
|
+
body: formParams,
|
|
596
|
+
}, initOverrides);
|
|
597
|
+
|
|
598
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BatchIngestResponseFromJSON(jsonValue));
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
/**
|
|
602
|
+
* Create or update many entries in one request, each with its original files, processed content, figures and chunks. Each item is upserted on (dataset_id, slug). Items succeed or fail on their own, and the response says which and why. An item that fails is safe to send again unchanged when its error is ``retryable``. The body is multipart and its parts are named by the client, so it cannot be declared as a FastAPI model. The ``items`` part is validated item by item against ``BatchIngestItem``; every reference an item makes to a binary part is checked before anything is written. Entries are searchable by vector when this returns, and by keyword once the index worker has written them.
|
|
603
|
+
* Batch Ingest
|
|
604
|
+
*/
|
|
605
|
+
async batchIngestApiV1EntriesBatchIngestPost(requestParameters: BatchIngestApiV1EntriesBatchIngestPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BatchIngestResponse> {
|
|
606
|
+
const response = await this.batchIngestApiV1EntriesBatchIngestPostRaw(requestParameters, initOverrides);
|
|
607
|
+
return await response.value();
|
|
608
|
+
}
|
|
609
|
+
|
|
531
610
|
/**
|
|
532
611
|
* Create a new entry. This creates the entry record in PostgreSQL but does NOT upload files yet. Use POST /entries/{id}/upload to upload the actual file.
|
|
533
612
|
* Create Entry
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Client Data API
|
|
5
5
|
* Client Cluster Data API - Manifest-based storage service
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.1
|
|
7
|
+
* The version of the OpenAPI document: 2.3.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Client Data API
|
|
5
5
|
* Client Cluster Data API - Manifest-based storage service
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.1
|
|
7
|
+
* The version of the OpenAPI document: 2.3.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Client Data API
|
|
5
5
|
* Client Cluster Data API - Manifest-based storage service
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.1
|
|
7
|
+
* The version of the OpenAPI document: 2.3.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -58,7 +58,7 @@ export interface VectorSearchEntriesApiV1VectorEntriesPostRequest {
|
|
|
58
58
|
*/
|
|
59
59
|
export interface SearchApiInterface {
|
|
60
60
|
/**
|
|
61
|
-
* **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
|
|
61
|
+
* **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 **503 Service Unavailable** with `Retry-After`: the index this search needs is not ready, because its filterable and sortable attributes are not yet confirmed applied by Meilisearch, for example right after the index was created. Retry after the given number of seconds. **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
|
|
62
62
|
* @summary Keyword/faceted search for documents
|
|
63
63
|
* @param {KeywordSearchRequest} keywordSearchRequest
|
|
64
64
|
* @param {*} [options] Override http request option.
|
|
@@ -68,7 +68,7 @@ export interface SearchApiInterface {
|
|
|
68
68
|
keywordSearchApiV1SearchPostRaw(requestParameters: KeywordSearchApiV1SearchPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<KeywordSearchResponse>>;
|
|
69
69
|
|
|
70
70
|
/**
|
|
71
|
-
* **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
|
|
71
|
+
* **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 **503 Service Unavailable** with `Retry-After`: the index this search needs is not ready, because its filterable and sortable attributes are not yet confirmed applied by Meilisearch, for example right after the index was created. Retry after the given number of seconds. **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
|
|
72
72
|
* Keyword/faceted search for documents
|
|
73
73
|
*/
|
|
74
74
|
keywordSearchApiV1SearchPost(requestParameters: KeywordSearchApiV1SearchPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<KeywordSearchResponse>;
|
|
@@ -114,7 +114,7 @@ export interface SearchApiInterface {
|
|
|
114
114
|
export class SearchApi extends runtime.BaseAPI implements SearchApiInterface {
|
|
115
115
|
|
|
116
116
|
/**
|
|
117
|
-
* **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
|
|
117
|
+
* **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 **503 Service Unavailable** with `Retry-After`: the index this search needs is not ready, because its filterable and sortable attributes are not yet confirmed applied by Meilisearch, for example right after the index was created. Retry after the given number of seconds. **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
|
|
118
118
|
* Keyword/faceted search for documents
|
|
119
119
|
*/
|
|
120
120
|
async keywordSearchApiV1SearchPostRaw(requestParameters: KeywordSearchApiV1SearchPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<KeywordSearchResponse>> {
|
|
@@ -143,7 +143,7 @@ export class SearchApi extends runtime.BaseAPI implements SearchApiInterface {
|
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
/**
|
|
146
|
-
* **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
|
|
146
|
+
* **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 **503 Service Unavailable** with `Retry-After`: the index this search needs is not ready, because its filterable and sortable attributes are not yet confirmed applied by Meilisearch, for example right after the index was created. Retry after the given number of seconds. **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
|
|
147
147
|
* Keyword/faceted search for documents
|
|
148
148
|
*/
|
|
149
149
|
async keywordSearchApiV1SearchPost(requestParameters: KeywordSearchApiV1SearchPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<KeywordSearchResponse> {
|
package/src/src/apis/SyncApi.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Client Data API
|
|
5
5
|
* Client Cluster Data API - Manifest-based storage service
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.1
|
|
7
|
+
* The version of the OpenAPI document: 2.3.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
*/
|
|
31
31
|
export interface SyncApiInterface {
|
|
32
32
|
/**
|
|
33
|
-
* 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 ground truth statistics for reconciliation. The backend calls this endpoint to compare its catalog against the actual state of the cluster\'s database. One query over `datasets`: `entry_count` and `size_bytes` are the stored aggregates a trigger on `entries` keeps current, and `last_modified` is the last time an entry was added to the dataset, removed, moved in or out, or resized (`last_entry_modified_at`), or the dataset\'s own `updated_at` while it has never had one. Other entry updates (status, manifest) do not move it. Returns: - timestamp: Current server time - datasets: List of datasets with entry counts and sizes - totals: Aggregated statistics across all datasets
|
|
34
34
|
* @summary Get Sync Summary
|
|
35
35
|
* @param {*} [options] Override http request option.
|
|
36
36
|
* @throws {RequiredError}
|
|
@@ -39,7 +39,7 @@ export interface SyncApiInterface {
|
|
|
39
39
|
getSyncSummaryApiV1SyncSummaryGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{ [key: string]: any; }>>;
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
|
-
* 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
|
|
42
|
+
* Get ground truth statistics for reconciliation. The backend calls this endpoint to compare its catalog against the actual state of the cluster\'s database. One query over `datasets`: `entry_count` and `size_bytes` are the stored aggregates a trigger on `entries` keeps current, and `last_modified` is the last time an entry was added to the dataset, removed, moved in or out, or resized (`last_entry_modified_at`), or the dataset\'s own `updated_at` while it has never had one. Other entry updates (status, manifest) do not move it. Returns: - timestamp: Current server time - datasets: List of datasets with entry counts and sizes - totals: Aggregated statistics across all datasets
|
|
43
43
|
* Get Sync Summary
|
|
44
44
|
*/
|
|
45
45
|
getSyncSummaryApiV1SyncSummaryGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{ [key: string]: any; }>;
|
|
@@ -67,7 +67,7 @@ export interface SyncApiInterface {
|
|
|
67
67
|
export class SyncApi extends runtime.BaseAPI implements SyncApiInterface {
|
|
68
68
|
|
|
69
69
|
/**
|
|
70
|
-
* 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
|
|
70
|
+
* Get ground truth statistics for reconciliation. The backend calls this endpoint to compare its catalog against the actual state of the cluster\'s database. One query over `datasets`: `entry_count` and `size_bytes` are the stored aggregates a trigger on `entries` keeps current, and `last_modified` is the last time an entry was added to the dataset, removed, moved in or out, or resized (`last_entry_modified_at`), or the dataset\'s own `updated_at` while it has never had one. Other entry updates (status, manifest) do not move it. Returns: - timestamp: Current server time - datasets: List of datasets with entry counts and sizes - totals: Aggregated statistics across all datasets
|
|
71
71
|
* Get Sync Summary
|
|
72
72
|
*/
|
|
73
73
|
async getSyncSummaryApiV1SyncSummaryGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{ [key: string]: any; }>> {
|
|
@@ -86,7 +86,7 @@ export class SyncApi extends runtime.BaseAPI implements SyncApiInterface {
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
/**
|
|
89
|
-
* 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
|
|
89
|
+
* Get ground truth statistics for reconciliation. The backend calls this endpoint to compare its catalog against the actual state of the cluster\'s database. One query over `datasets`: `entry_count` and `size_bytes` are the stored aggregates a trigger on `entries` keeps current, and `last_modified` is the last time an entry was added to the dataset, removed, moved in or out, or resized (`last_entry_modified_at`), or the dataset\'s own `updated_at` while it has never had one. Other entry updates (status, manifest) do not move it. Returns: - timestamp: Current server time - datasets: List of datasets with entry counts and sizes - totals: Aggregated statistics across all datasets
|
|
90
90
|
* Get Sync Summary
|
|
91
91
|
*/
|
|
92
92
|
async getSyncSummaryApiV1SyncSummaryGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{ [key: string]: any; }> {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Client Data API
|
|
5
5
|
* Client Cluster Data API - Manifest-based storage service
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.1
|
|
7
|
+
* The version of the OpenAPI document: 2.3.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Client Data API
|
|
5
5
|
* Client Cluster Data API - Manifest-based storage service
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.1
|
|
7
|
+
* The version of the OpenAPI document: 2.3.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Client Data API
|
|
5
5
|
* Client Cluster Data API - Manifest-based storage service
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.1
|
|
7
|
+
* The version of the OpenAPI document: 2.3.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Client Data API
|
|
5
5
|
* Client Cluster Data API - Manifest-based storage service
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.1
|
|
7
|
+
* The version of the OpenAPI document: 2.3.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Client Data API
|
|
5
5
|
* Client Cluster Data API - Manifest-based storage service
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.1
|
|
7
|
+
* The version of the OpenAPI document: 2.3.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Client Data API
|
|
5
5
|
* Client Cluster Data API - Manifest-based storage service
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.1
|
|
7
|
+
* The version of the OpenAPI document: 2.3.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Client Data API
|
|
5
5
|
* Client Cluster Data API - Manifest-based storage service
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.1
|
|
7
|
+
* The version of the OpenAPI document: 2.3.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Client Data API
|
|
5
5
|
* Client Cluster Data API - Manifest-based storage service
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.1
|
|
7
|
+
* The version of the OpenAPI document: 2.3.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -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: 2.3.1
|
|
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
|
+
* Why an item failed, in the shape the per-entry routes refuse with.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface BatchIngestError
|
|
20
|
+
*/
|
|
21
|
+
export interface BatchIngestError {
|
|
22
|
+
/**
|
|
23
|
+
* A stable name for the kind of failure.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof BatchIngestError
|
|
26
|
+
*/
|
|
27
|
+
code: string;
|
|
28
|
+
/**
|
|
29
|
+
* What went wrong, for a person.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof BatchIngestError
|
|
32
|
+
*/
|
|
33
|
+
message: string;
|
|
34
|
+
/**
|
|
35
|
+
* Which part of the item to fix.
|
|
36
|
+
* @type {{ [key: string]: any; }}
|
|
37
|
+
* @memberof BatchIngestError
|
|
38
|
+
*/
|
|
39
|
+
context?: { [key: string]: any; };
|
|
40
|
+
/**
|
|
41
|
+
* Whether sending the item again unchanged may succeed: true for a failure of a store or a conflicting concurrent write, false for a fault in the item.
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
* @memberof BatchIngestError
|
|
44
|
+
*/
|
|
45
|
+
retryable: boolean;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the BatchIngestError interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfBatchIngestError(value: object): value is BatchIngestError {
|
|
52
|
+
if (!('code' in value) || value['code'] === undefined) return false;
|
|
53
|
+
if (!('message' in value) || value['message'] === undefined) return false;
|
|
54
|
+
if (!('retryable' in value) || value['retryable'] === undefined) return false;
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function BatchIngestErrorFromJSON(json: any): BatchIngestError {
|
|
59
|
+
return BatchIngestErrorFromJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function BatchIngestErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): BatchIngestError {
|
|
63
|
+
if (json == null) {
|
|
64
|
+
return json;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
|
|
68
|
+
'code': json['code'],
|
|
69
|
+
'message': json['message'],
|
|
70
|
+
'context': json['context'] == null ? undefined : json['context'],
|
|
71
|
+
'retryable': json['retryable'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function BatchIngestErrorToJSON(json: any): BatchIngestError {
|
|
76
|
+
return BatchIngestErrorToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function BatchIngestErrorToJSONTyped(value?: BatchIngestError | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'code': value['code'],
|
|
87
|
+
'message': value['message'],
|
|
88
|
+
'context': value['context'],
|
|
89
|
+
'retryable': value['retryable'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
@@ -0,0 +1,124 @@
|
|
|
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: 2.3.1
|
|
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 { BatchIngestError } from './BatchIngestError';
|
|
17
|
+
import {
|
|
18
|
+
BatchIngestErrorFromJSON,
|
|
19
|
+
BatchIngestErrorFromJSONTyped,
|
|
20
|
+
BatchIngestErrorToJSON,
|
|
21
|
+
BatchIngestErrorToJSONTyped,
|
|
22
|
+
} from './BatchIngestError';
|
|
23
|
+
import type { BatchIngestOutcome } from './BatchIngestOutcome';
|
|
24
|
+
import {
|
|
25
|
+
BatchIngestOutcomeFromJSON,
|
|
26
|
+
BatchIngestOutcomeFromJSONTyped,
|
|
27
|
+
BatchIngestOutcomeToJSON,
|
|
28
|
+
BatchIngestOutcomeToJSONTyped,
|
|
29
|
+
} from './BatchIngestOutcome';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* The outcome of one item, at its position in the request.
|
|
33
|
+
* @export
|
|
34
|
+
* @interface BatchIngestItemResult
|
|
35
|
+
*/
|
|
36
|
+
export interface BatchIngestItemResult {
|
|
37
|
+
/**
|
|
38
|
+
* Position of the item in the request.
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof BatchIngestItemResult
|
|
41
|
+
*/
|
|
42
|
+
index: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof BatchIngestItemResult
|
|
47
|
+
*/
|
|
48
|
+
datasetId?: number | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof BatchIngestItemResult
|
|
53
|
+
*/
|
|
54
|
+
slug?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof BatchIngestItemResult
|
|
59
|
+
*/
|
|
60
|
+
entryId?: number | null;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {BatchIngestOutcome}
|
|
64
|
+
* @memberof BatchIngestItemResult
|
|
65
|
+
*/
|
|
66
|
+
outcome: BatchIngestOutcome;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {BatchIngestError}
|
|
70
|
+
* @memberof BatchIngestItemResult
|
|
71
|
+
*/
|
|
72
|
+
error?: BatchIngestError | null;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Check if a given object implements the BatchIngestItemResult interface.
|
|
79
|
+
*/
|
|
80
|
+
export function instanceOfBatchIngestItemResult(value: object): value is BatchIngestItemResult {
|
|
81
|
+
if (!('index' in value) || value['index'] === undefined) return false;
|
|
82
|
+
if (!('outcome' in value) || value['outcome'] === undefined) return false;
|
|
83
|
+
return true;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function BatchIngestItemResultFromJSON(json: any): BatchIngestItemResult {
|
|
87
|
+
return BatchIngestItemResultFromJSONTyped(json, false);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function BatchIngestItemResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): BatchIngestItemResult {
|
|
91
|
+
if (json == null) {
|
|
92
|
+
return json;
|
|
93
|
+
}
|
|
94
|
+
return {
|
|
95
|
+
|
|
96
|
+
'index': json['index'],
|
|
97
|
+
'datasetId': json['dataset_id'] == null ? undefined : json['dataset_id'],
|
|
98
|
+
'slug': json['slug'] == null ? undefined : json['slug'],
|
|
99
|
+
'entryId': json['entry_id'] == null ? undefined : json['entry_id'],
|
|
100
|
+
'outcome': BatchIngestOutcomeFromJSON(json['outcome']),
|
|
101
|
+
'error': json['error'] == null ? undefined : BatchIngestErrorFromJSON(json['error']),
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export function BatchIngestItemResultToJSON(json: any): BatchIngestItemResult {
|
|
106
|
+
return BatchIngestItemResultToJSONTyped(json, false);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export function BatchIngestItemResultToJSONTyped(value?: BatchIngestItemResult | null, ignoreDiscriminator: boolean = false): any {
|
|
110
|
+
if (value == null) {
|
|
111
|
+
return value;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
return {
|
|
115
|
+
|
|
116
|
+
'index': value['index'],
|
|
117
|
+
'dataset_id': value['datasetId'],
|
|
118
|
+
'slug': value['slug'],
|
|
119
|
+
'entry_id': value['entryId'],
|
|
120
|
+
'outcome': BatchIngestOutcomeToJSON(value['outcome']),
|
|
121
|
+
'error': BatchIngestErrorToJSON(value['error']),
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
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: 2.3.1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* What happened to one item.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const BatchIngestOutcome = {
|
|
21
|
+
Created: 'created',
|
|
22
|
+
Updated: 'updated',
|
|
23
|
+
Failed: 'failed'
|
|
24
|
+
} as const;
|
|
25
|
+
export type BatchIngestOutcome = typeof BatchIngestOutcome[keyof typeof BatchIngestOutcome];
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export function instanceOfBatchIngestOutcome(value: any): boolean {
|
|
29
|
+
for (const key in BatchIngestOutcome) {
|
|
30
|
+
if (Object.prototype.hasOwnProperty.call(BatchIngestOutcome, key)) {
|
|
31
|
+
if (BatchIngestOutcome[key as keyof typeof BatchIngestOutcome] === value) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function BatchIngestOutcomeFromJSON(json: any): BatchIngestOutcome {
|
|
40
|
+
return BatchIngestOutcomeFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function BatchIngestOutcomeFromJSONTyped(json: any, ignoreDiscriminator: boolean): BatchIngestOutcome {
|
|
44
|
+
return json as BatchIngestOutcome;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function BatchIngestOutcomeToJSON(value?: BatchIngestOutcome | null): any {
|
|
48
|
+
return value as any;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function BatchIngestOutcomeToJSONTyped(value: any, ignoreDiscriminator: boolean): BatchIngestOutcome {
|
|
52
|
+
return value as BatchIngestOutcome;
|
|
53
|
+
}
|
|
54
|
+
|