@alien_intelligence/data-api-client 1.4.15 → 1.16.2
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 +1 -1
- package/dist/src/apis/DatasetsApi.js +1 -1
- 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 +33 -6
- package/dist/src/apis/EntriesApi.js +29 -3
- 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 +1 -1
- package/dist/src/apis/SearchApi.js +1 -1
- package/dist/src/apis/SyncApi.d.ts +1 -1
- package/dist/src/apis/SyncApi.js +1 -1
- 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/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/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 +4 -4
- package/dist/src/models/DatasetCreateRequest.js +4 -4
- 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 +75 -0
- package/dist/src/models/DatasetSchemaDefinitionCreate.js +71 -0
- 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 +42 -0
- package/dist/src/models/DeprecationNotice.js +54 -0
- package/dist/src/models/DerivedPageReport.d.ts +85 -0
- package/dist/src/models/DerivedPageReport.js +74 -0
- package/dist/src/models/EmbeddingProvider.d.ts +1 -1
- package/dist/src/models/EmbeddingProvider.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/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 +7 -1
- package/dist/src/models/EntryUpdateRequest.js +3 -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 +80 -0
- package/dist/src/models/FigureImage.js +62 -0
- 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 +49 -0
- package/dist/src/models/IngestContractUsageResponse.js +59 -0
- package/dist/src/models/IngestContractUsageRow.d.ts +56 -0
- package/dist/src/models/IngestContractUsageRow.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 +19 -1
- package/dist/src/models/KeywordSearchRequest.js +11 -2
- package/dist/src/models/KeywordSearchRequestMetadataFiltersValue.d.ts +1 -1
- package/dist/src/models/KeywordSearchRequestMetadataFiltersValue.js +1 -1
- package/dist/src/models/KeywordSearchResponse.d.ts +6 -2
- package/dist/src/models/KeywordSearchResponse.js +1 -1
- package/dist/src/models/MissingPageRange.d.ts +57 -0
- package/dist/src/models/MissingPageRange.js +58 -0
- 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 +38 -0
- package/dist/src/models/PageDimensions.js +54 -0
- 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 +29 -3
- package/dist/src/models/ProcessedManifest.js +15 -1
- package/dist/src/models/ProcessingManifest.d.ts +1 -1
- package/dist/src/models/ProcessingManifest.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 +35 -2
- package/dist/src/models/SaveProcessedContentRequest.js +7 -1
- package/dist/src/models/SaveProcessedContentResponse.d.ts +29 -1
- package/dist/src/models/SaveProcessedContentResponse.js +17 -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 +93 -0
- package/dist/src/models/Segment.js +93 -0
- package/dist/src/models/SnippetContext.d.ts +14 -2
- package/dist/src/models/SnippetContext.js +5 -1
- package/dist/src/models/Transcription.d.ts +63 -0
- package/dist/src/models/Transcription.js +68 -0
- package/dist/src/models/TranscriptionDocumentInfo.d.ts +66 -0
- package/dist/src/models/TranscriptionDocumentInfo.js +76 -0
- package/dist/src/models/TranscriptionPage.d.ts +82 -0
- package/dist/src/models/TranscriptionPage.js +81 -0
- package/dist/src/models/TranscriptionUsage.d.ts +56 -0
- package/dist/src/models/TranscriptionUsage.js +62 -0
- package/dist/src/models/TranscriptionWarnings.d.ts +113 -0
- package/dist/src/models/TranscriptionWarnings.js +68 -0
- 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 +14 -0
- package/dist/src/models/index.js +14 -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 +1 -1
- package/src/src/apis/DefaultApi.ts +1 -1
- package/src/src/apis/EmbeddingsApi.ts +1 -1
- package/src/src/apis/EntriesApi.ts +60 -5
- package/src/src/apis/HealthApi.ts +1 -1
- package/src/src/apis/PipelinesApi.ts +1 -1
- package/src/src/apis/SearchApi.ts +1 -1
- package/src/src/apis/SyncApi.ts +1 -1
- package/src/src/apis/WebhooksApi.ts +1 -1
- package/src/src/apis/WeightsApi.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/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 +12 -12
- 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 +142 -0
- 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 +79 -0
- package/src/src/models/DerivedPageReport.ts +137 -0
- package/src/src/models/EmbeddingProvider.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/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 +9 -1
- package/src/src/models/EntryWithContent.ts +1 -1
- package/src/src/models/FigureImage.ts +126 -0
- 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 +96 -0
- package/src/src/models/IngestContractUsageRow.ts +102 -0
- package/src/src/models/KeywordSearchHit.ts +1 -1
- package/src/src/models/KeywordSearchRequest.ts +22 -1
- package/src/src/models/KeywordSearchRequestMetadataFiltersValue.ts +1 -1
- package/src/src/models/KeywordSearchResponse.ts +6 -2
- package/src/src/models/MissingPageRange.ts +100 -0
- 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 +75 -0
- package/src/src/models/PipelineStepConfig.ts +1 -1
- package/src/src/models/PresetListResponse.ts +1 -1
- package/src/src/models/ProcessedManifest.ts +42 -3
- package/src/src/models/ProcessingManifest.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 +52 -2
- package/src/src/models/SaveProcessedContentResponse.ts +44 -1
- package/src/src/models/SearchSnippet.ts +1 -1
- package/src/src/models/Segment.ts +148 -0
- package/src/src/models/SnippetContext.ts +18 -2
- package/src/src/models/Transcription.ts +133 -0
- package/src/src/models/TranscriptionDocumentInfo.ts +115 -0
- package/src/src/models/TranscriptionPage.ts +144 -0
- package/src/src/models/TranscriptionUsage.ts +100 -0
- package/src/src/models/TranscriptionWarnings.ts +171 -0
- 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 +14 -0
- package/src/src/runtime.ts +1 -1
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Client Data API
|
|
3
|
+
* Client Cluster Data API - Manifest-based storage service
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.16.2
|
|
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 type { TranscriptionWarnings } from './TranscriptionWarnings';
|
|
13
|
+
import type { TranscriptionPage } from './TranscriptionPage';
|
|
14
|
+
import type { TranscriptionUsage } from './TranscriptionUsage';
|
|
15
|
+
import type { TranscriptionDocumentInfo } from './TranscriptionDocumentInfo';
|
|
16
|
+
/**
|
|
17
|
+
* A transcribed document: its pages, what produced them, and what it cost.
|
|
18
|
+
*
|
|
19
|
+
* Adopted verbatim from ocr-gateway's ``OcrResponse`` (D4). The *ingest* contract
|
|
20
|
+
* wraps this; it does not reshape it.
|
|
21
|
+
* @export
|
|
22
|
+
* @interface Transcription
|
|
23
|
+
*/
|
|
24
|
+
export interface Transcription {
|
|
25
|
+
/**
|
|
26
|
+
* The transcription, ordered by index. Read each page's 'origin' before citing it: 'derived' means the producer drew the boundary, not the document. Never empty - a document with zero pages is the absence of a result, not a degraded one, and must be reported as a failure rather than a 200.
|
|
27
|
+
* @type {Array<TranscriptionPage>}
|
|
28
|
+
* @memberof Transcription
|
|
29
|
+
*/
|
|
30
|
+
pages: Array<TranscriptionPage>;
|
|
31
|
+
/**
|
|
32
|
+
* What produced the text: a model identifier, or the route name.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof Transcription
|
|
35
|
+
*/
|
|
36
|
+
model: string;
|
|
37
|
+
/**
|
|
38
|
+
* What the document turned out to be.
|
|
39
|
+
* @type {TranscriptionDocumentInfo}
|
|
40
|
+
* @memberof Transcription
|
|
41
|
+
*/
|
|
42
|
+
document: TranscriptionDocumentInfo;
|
|
43
|
+
/**
|
|
44
|
+
* What the transcription cost, and whether a GPU was used.
|
|
45
|
+
* @type {TranscriptionUsage}
|
|
46
|
+
* @memberof Transcription
|
|
47
|
+
*/
|
|
48
|
+
usageInfo: TranscriptionUsage;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {TranscriptionWarnings}
|
|
52
|
+
* @memberof Transcription
|
|
53
|
+
*/
|
|
54
|
+
warnings?: TranscriptionWarnings | null;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the Transcription interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfTranscription(value: object): value is Transcription;
|
|
60
|
+
export declare function TranscriptionFromJSON(json: any): Transcription;
|
|
61
|
+
export declare function TranscriptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Transcription;
|
|
62
|
+
export declare function TranscriptionToJSON(json: any): Transcription;
|
|
63
|
+
export declare function TranscriptionToJSONTyped(value?: Transcription | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,68 @@
|
|
|
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.16.2
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfTranscription = instanceOfTranscription;
|
|
17
|
+
exports.TranscriptionFromJSON = TranscriptionFromJSON;
|
|
18
|
+
exports.TranscriptionFromJSONTyped = TranscriptionFromJSONTyped;
|
|
19
|
+
exports.TranscriptionToJSON = TranscriptionToJSON;
|
|
20
|
+
exports.TranscriptionToJSONTyped = TranscriptionToJSONTyped;
|
|
21
|
+
const TranscriptionWarnings_1 = require("./TranscriptionWarnings");
|
|
22
|
+
const TranscriptionPage_1 = require("./TranscriptionPage");
|
|
23
|
+
const TranscriptionUsage_1 = require("./TranscriptionUsage");
|
|
24
|
+
const TranscriptionDocumentInfo_1 = require("./TranscriptionDocumentInfo");
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the Transcription interface.
|
|
27
|
+
*/
|
|
28
|
+
function instanceOfTranscription(value) {
|
|
29
|
+
if (!('pages' in value) || value['pages'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('model' in value) || value['model'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('document' in value) || value['document'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('usageInfo' in value) || value['usageInfo'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function TranscriptionFromJSON(json) {
|
|
40
|
+
return TranscriptionFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function TranscriptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'pages': (json['pages'].map(TranscriptionPage_1.TranscriptionPageFromJSON)),
|
|
48
|
+
'model': json['model'],
|
|
49
|
+
'document': (0, TranscriptionDocumentInfo_1.TranscriptionDocumentInfoFromJSON)(json['document']),
|
|
50
|
+
'usageInfo': (0, TranscriptionUsage_1.TranscriptionUsageFromJSON)(json['usage_info']),
|
|
51
|
+
'warnings': json['warnings'] == null ? undefined : (0, TranscriptionWarnings_1.TranscriptionWarningsFromJSON)(json['warnings']),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function TranscriptionToJSON(json) {
|
|
55
|
+
return TranscriptionToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
function TranscriptionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'pages': (value['pages'].map(TranscriptionPage_1.TranscriptionPageToJSON)),
|
|
63
|
+
'model': value['model'],
|
|
64
|
+
'document': (0, TranscriptionDocumentInfo_1.TranscriptionDocumentInfoToJSON)(value['document']),
|
|
65
|
+
'usage_info': (0, TranscriptionUsage_1.TranscriptionUsageToJSON)(value['usageInfo']),
|
|
66
|
+
'warnings': (0, TranscriptionWarnings_1.TranscriptionWarningsToJSON)(value['warnings']),
|
|
67
|
+
};
|
|
68
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Client Data API
|
|
3
|
+
* Client Cluster Data API - Manifest-based storage service
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.16.2
|
|
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
|
+
/**
|
|
13
|
+
* What the document turned out to be, and how it was handled.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface TranscriptionDocumentInfo
|
|
16
|
+
*/
|
|
17
|
+
export interface TranscriptionDocumentInfo {
|
|
18
|
+
/**
|
|
19
|
+
* Canonical extension, e.g. 'xlsx'.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof TranscriptionDocumentInfo
|
|
22
|
+
*/
|
|
23
|
+
format: string;
|
|
24
|
+
/**
|
|
25
|
+
* Detected MIME type, from the signature rather than the name.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof TranscriptionDocumentInfo
|
|
28
|
+
*/
|
|
29
|
+
mime: string;
|
|
30
|
+
/**
|
|
31
|
+
* Size of the source document as received.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof TranscriptionDocumentInfo
|
|
34
|
+
*/
|
|
35
|
+
sizeBytes: number;
|
|
36
|
+
/**
|
|
37
|
+
* Pages the document is accounted for in. On the OCR route this is the source document's own page count, so a gap left by a failed chunk stays visible; on the extraction routes it is the emitted count, derived pages included.
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof TranscriptionDocumentInfo
|
|
40
|
+
*/
|
|
41
|
+
totalPages: number;
|
|
42
|
+
/**
|
|
43
|
+
* Which path the document took. Anything but 'ocr' never reached a GPU.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof TranscriptionDocumentInfo
|
|
46
|
+
*/
|
|
47
|
+
route: TranscriptionDocumentInfoRouteEnum;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export declare const TranscriptionDocumentInfoRouteEnum: {
|
|
53
|
+
readonly Text: "text";
|
|
54
|
+
readonly Tabular: "tabular";
|
|
55
|
+
readonly Html: "html";
|
|
56
|
+
readonly Ocr: "ocr";
|
|
57
|
+
};
|
|
58
|
+
export type TranscriptionDocumentInfoRouteEnum = typeof TranscriptionDocumentInfoRouteEnum[keyof typeof TranscriptionDocumentInfoRouteEnum];
|
|
59
|
+
/**
|
|
60
|
+
* Check if a given object implements the TranscriptionDocumentInfo interface.
|
|
61
|
+
*/
|
|
62
|
+
export declare function instanceOfTranscriptionDocumentInfo(value: object): value is TranscriptionDocumentInfo;
|
|
63
|
+
export declare function TranscriptionDocumentInfoFromJSON(json: any): TranscriptionDocumentInfo;
|
|
64
|
+
export declare function TranscriptionDocumentInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TranscriptionDocumentInfo;
|
|
65
|
+
export declare function TranscriptionDocumentInfoToJSON(json: any): TranscriptionDocumentInfo;
|
|
66
|
+
export declare function TranscriptionDocumentInfoToJSONTyped(value?: TranscriptionDocumentInfo | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,76 @@
|
|
|
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.16.2
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.TranscriptionDocumentInfoRouteEnum = void 0;
|
|
17
|
+
exports.instanceOfTranscriptionDocumentInfo = instanceOfTranscriptionDocumentInfo;
|
|
18
|
+
exports.TranscriptionDocumentInfoFromJSON = TranscriptionDocumentInfoFromJSON;
|
|
19
|
+
exports.TranscriptionDocumentInfoFromJSONTyped = TranscriptionDocumentInfoFromJSONTyped;
|
|
20
|
+
exports.TranscriptionDocumentInfoToJSON = TranscriptionDocumentInfoToJSON;
|
|
21
|
+
exports.TranscriptionDocumentInfoToJSONTyped = TranscriptionDocumentInfoToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.TranscriptionDocumentInfoRouteEnum = {
|
|
26
|
+
Text: 'text',
|
|
27
|
+
Tabular: 'tabular',
|
|
28
|
+
Html: 'html',
|
|
29
|
+
Ocr: 'ocr'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the TranscriptionDocumentInfo interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfTranscriptionDocumentInfo(value) {
|
|
35
|
+
if (!('format' in value) || value['format'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('mime' in value) || value['mime'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('sizeBytes' in value) || value['sizeBytes'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('totalPages' in value) || value['totalPages'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('route' in value) || value['route'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
function TranscriptionDocumentInfoFromJSON(json) {
|
|
48
|
+
return TranscriptionDocumentInfoFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function TranscriptionDocumentInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'format': json['format'],
|
|
56
|
+
'mime': json['mime'],
|
|
57
|
+
'sizeBytes': json['size_bytes'],
|
|
58
|
+
'totalPages': json['total_pages'],
|
|
59
|
+
'route': json['route'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
function TranscriptionDocumentInfoToJSON(json) {
|
|
63
|
+
return TranscriptionDocumentInfoToJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
function TranscriptionDocumentInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
'format': value['format'],
|
|
71
|
+
'mime': value['mime'],
|
|
72
|
+
'size_bytes': value['sizeBytes'],
|
|
73
|
+
'total_pages': value['totalPages'],
|
|
74
|
+
'route': value['route'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Client Data API
|
|
3
|
+
* Client Cluster Data API - Manifest-based storage service
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.16.2
|
|
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 type { PageDimensions } from './PageDimensions';
|
|
13
|
+
import type { FigureImage } from './FigureImage';
|
|
14
|
+
/**
|
|
15
|
+
* One page of transcribed content, and whether the document drew its edges.
|
|
16
|
+
* @export
|
|
17
|
+
* @interface TranscriptionPage
|
|
18
|
+
*/
|
|
19
|
+
export interface TranscriptionPage {
|
|
20
|
+
/**
|
|
21
|
+
* Zero-indexed page number. Pages keep their source index, so a page lost to a failed chunk leaves a visible gap rather than a silently shorter document.
|
|
22
|
+
* @type {number}
|
|
23
|
+
* @memberof TranscriptionPage
|
|
24
|
+
*/
|
|
25
|
+
index: number;
|
|
26
|
+
/**
|
|
27
|
+
* The page's content. Consumers rebuild the document by joining these with a blank line; the join rule is part of the contract (see PAGE_JOIN).
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof TranscriptionPage
|
|
30
|
+
*/
|
|
31
|
+
markdown: string;
|
|
32
|
+
/**
|
|
33
|
+
* 'source' if the document itself drew this boundary (a PDF page, a worksheet, a folio); 'derived' if the producer split a unit to keep it inside an indexing position budget.
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof TranscriptionPage
|
|
36
|
+
*/
|
|
37
|
+
origin?: TranscriptionPageOriginEnum;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof TranscriptionPage
|
|
42
|
+
*/
|
|
43
|
+
splitRule?: TranscriptionPageSplitRuleEnum | null;
|
|
44
|
+
/**
|
|
45
|
+
* Figure crops with bounding boxes. Always empty on extraction routes.
|
|
46
|
+
* @type {Array<FigureImage>}
|
|
47
|
+
* @memberof TranscriptionPage
|
|
48
|
+
*/
|
|
49
|
+
images?: Array<FigureImage>;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {PageDimensions}
|
|
53
|
+
* @memberof TranscriptionPage
|
|
54
|
+
*/
|
|
55
|
+
dimensions?: PageDimensions | null;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* @export
|
|
59
|
+
*/
|
|
60
|
+
export declare const TranscriptionPageOriginEnum: {
|
|
61
|
+
readonly Source: "source";
|
|
62
|
+
readonly Derived: "derived";
|
|
63
|
+
};
|
|
64
|
+
export type TranscriptionPageOriginEnum = typeof TranscriptionPageOriginEnum[keyof typeof TranscriptionPageOriginEnum];
|
|
65
|
+
/**
|
|
66
|
+
* @export
|
|
67
|
+
*/
|
|
68
|
+
export declare const TranscriptionPageSplitRuleEnum: {
|
|
69
|
+
readonly Paragraph: "paragraph";
|
|
70
|
+
readonly TableRow: "table_row";
|
|
71
|
+
readonly Line: "line";
|
|
72
|
+
readonly Fixed: "fixed";
|
|
73
|
+
};
|
|
74
|
+
export type TranscriptionPageSplitRuleEnum = typeof TranscriptionPageSplitRuleEnum[keyof typeof TranscriptionPageSplitRuleEnum];
|
|
75
|
+
/**
|
|
76
|
+
* Check if a given object implements the TranscriptionPage interface.
|
|
77
|
+
*/
|
|
78
|
+
export declare function instanceOfTranscriptionPage(value: object): value is TranscriptionPage;
|
|
79
|
+
export declare function TranscriptionPageFromJSON(json: any): TranscriptionPage;
|
|
80
|
+
export declare function TranscriptionPageFromJSONTyped(json: any, ignoreDiscriminator: boolean): TranscriptionPage;
|
|
81
|
+
export declare function TranscriptionPageToJSON(json: any): TranscriptionPage;
|
|
82
|
+
export declare function TranscriptionPageToJSONTyped(value?: TranscriptionPage | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,81 @@
|
|
|
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.16.2
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.TranscriptionPageSplitRuleEnum = exports.TranscriptionPageOriginEnum = void 0;
|
|
17
|
+
exports.instanceOfTranscriptionPage = instanceOfTranscriptionPage;
|
|
18
|
+
exports.TranscriptionPageFromJSON = TranscriptionPageFromJSON;
|
|
19
|
+
exports.TranscriptionPageFromJSONTyped = TranscriptionPageFromJSONTyped;
|
|
20
|
+
exports.TranscriptionPageToJSON = TranscriptionPageToJSON;
|
|
21
|
+
exports.TranscriptionPageToJSONTyped = TranscriptionPageToJSONTyped;
|
|
22
|
+
const PageDimensions_1 = require("./PageDimensions");
|
|
23
|
+
const FigureImage_1 = require("./FigureImage");
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.TranscriptionPageOriginEnum = {
|
|
28
|
+
Source: 'source',
|
|
29
|
+
Derived: 'derived'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
exports.TranscriptionPageSplitRuleEnum = {
|
|
35
|
+
Paragraph: 'paragraph',
|
|
36
|
+
TableRow: 'table_row',
|
|
37
|
+
Line: 'line',
|
|
38
|
+
Fixed: 'fixed'
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the TranscriptionPage interface.
|
|
42
|
+
*/
|
|
43
|
+
function instanceOfTranscriptionPage(value) {
|
|
44
|
+
if (!('index' in value) || value['index'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('markdown' in value) || value['markdown'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
function TranscriptionPageFromJSON(json) {
|
|
51
|
+
return TranscriptionPageFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function TranscriptionPageFromJSONTyped(json, ignoreDiscriminator) {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'index': json['index'],
|
|
59
|
+
'markdown': json['markdown'],
|
|
60
|
+
'origin': json['origin'] == null ? undefined : json['origin'],
|
|
61
|
+
'splitRule': json['split_rule'] == null ? undefined : json['split_rule'],
|
|
62
|
+
'images': json['images'] == null ? undefined : (json['images'].map(FigureImage_1.FigureImageFromJSON)),
|
|
63
|
+
'dimensions': json['dimensions'] == null ? undefined : (0, PageDimensions_1.PageDimensionsFromJSON)(json['dimensions']),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
function TranscriptionPageToJSON(json) {
|
|
67
|
+
return TranscriptionPageToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
function TranscriptionPageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
'index': value['index'],
|
|
75
|
+
'markdown': value['markdown'],
|
|
76
|
+
'origin': value['origin'],
|
|
77
|
+
'split_rule': value['splitRule'],
|
|
78
|
+
'images': value['images'] == null ? undefined : (value['images'].map(FigureImage_1.FigureImageToJSON)),
|
|
79
|
+
'dimensions': (0, PageDimensions_1.PageDimensionsToJSON)(value['dimensions']),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Client Data API
|
|
3
|
+
* Client Cluster Data API - Manifest-based storage service
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.16.2
|
|
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
|
+
/**
|
|
13
|
+
* What the transcription cost. ``gpu_used`` is the field that matters.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface TranscriptionUsage
|
|
16
|
+
*/
|
|
17
|
+
export interface TranscriptionUsage {
|
|
18
|
+
/**
|
|
19
|
+
* Pages transcribed and returned.
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof TranscriptionUsage
|
|
22
|
+
*/
|
|
23
|
+
pagesProcessed: number;
|
|
24
|
+
/**
|
|
25
|
+
* Pages that did not survive. Every one of them is named in warnings.missing_page_ranges, and processed + failed == document.total_pages.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof TranscriptionUsage
|
|
28
|
+
*/
|
|
29
|
+
pagesFailed?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Figures actually delivered in pages[].images, not a producer's own tally.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof TranscriptionUsage
|
|
34
|
+
*/
|
|
35
|
+
figuresExtracted?: number;
|
|
36
|
+
/**
|
|
37
|
+
* The caller's wall clock. Chunks run concurrently, so this is not their sum.
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof TranscriptionUsage
|
|
40
|
+
*/
|
|
41
|
+
processingTimeS: number;
|
|
42
|
+
/**
|
|
43
|
+
* False means this document never reached a GPU fleet.
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof TranscriptionUsage
|
|
46
|
+
*/
|
|
47
|
+
gpuUsed: boolean;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the TranscriptionUsage interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfTranscriptionUsage(value: object): value is TranscriptionUsage;
|
|
53
|
+
export declare function TranscriptionUsageFromJSON(json: any): TranscriptionUsage;
|
|
54
|
+
export declare function TranscriptionUsageFromJSONTyped(json: any, ignoreDiscriminator: boolean): TranscriptionUsage;
|
|
55
|
+
export declare function TranscriptionUsageToJSON(json: any): TranscriptionUsage;
|
|
56
|
+
export declare function TranscriptionUsageToJSONTyped(value?: TranscriptionUsage | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
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.16.2
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfTranscriptionUsage = instanceOfTranscriptionUsage;
|
|
17
|
+
exports.TranscriptionUsageFromJSON = TranscriptionUsageFromJSON;
|
|
18
|
+
exports.TranscriptionUsageFromJSONTyped = TranscriptionUsageFromJSONTyped;
|
|
19
|
+
exports.TranscriptionUsageToJSON = TranscriptionUsageToJSON;
|
|
20
|
+
exports.TranscriptionUsageToJSONTyped = TranscriptionUsageToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the TranscriptionUsage interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfTranscriptionUsage(value) {
|
|
25
|
+
if (!('pagesProcessed' in value) || value['pagesProcessed'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('processingTimeS' in value) || value['processingTimeS'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('gpuUsed' in value) || value['gpuUsed'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function TranscriptionUsageFromJSON(json) {
|
|
34
|
+
return TranscriptionUsageFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function TranscriptionUsageFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'pagesProcessed': json['pages_processed'],
|
|
42
|
+
'pagesFailed': json['pages_failed'] == null ? undefined : json['pages_failed'],
|
|
43
|
+
'figuresExtracted': json['figures_extracted'] == null ? undefined : json['figures_extracted'],
|
|
44
|
+
'processingTimeS': json['processing_time_s'],
|
|
45
|
+
'gpuUsed': json['gpu_used'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function TranscriptionUsageToJSON(json) {
|
|
49
|
+
return TranscriptionUsageToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function TranscriptionUsageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'pages_processed': value['pagesProcessed'],
|
|
57
|
+
'pages_failed': value['pagesFailed'],
|
|
58
|
+
'figures_extracted': value['figuresExtracted'],
|
|
59
|
+
'processing_time_s': value['processingTimeS'],
|
|
60
|
+
'gpu_used': value['gpuUsed'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Client Data API
|
|
3
|
+
* Client Cluster Data API - Manifest-based storage service
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.16.2
|
|
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 type { MissingPageRange } from './MissingPageRange';
|
|
13
|
+
import type { DerivedPageReport } from './DerivedPageReport';
|
|
14
|
+
/**
|
|
15
|
+
* The fidelity vocabulary: everything that was truncated, downgraded or dropped.
|
|
16
|
+
*
|
|
17
|
+
* The producer's stated rule is that *a short result must never be indistinguishable
|
|
18
|
+
* from a short document*. This block is how that rule is kept: a transcription that
|
|
19
|
+
* hit a bound says so here rather than silently returning less.
|
|
20
|
+
*
|
|
21
|
+
* ``extra="allow"`` because the vocabulary grows. A key this mirror has not learned
|
|
22
|
+
* yet is still carried into the manifest verbatim, which is the whole point of
|
|
23
|
+
* reporting degradation in the first place.
|
|
24
|
+
*
|
|
25
|
+
* **Empty rather than optional, and that is a generator constraint as much as a
|
|
26
|
+
* design one.** Every category defaults to an empty list (or ``0``), so "the producer
|
|
27
|
+
* reported nothing under this heading" and "this heading is absent" are the same
|
|
28
|
+
* state - which is what the producer already means: ``_build_warnings`` only sets a
|
|
29
|
+
* key when it has something to say, and omits it otherwise. Nothing is lost by
|
|
30
|
+
* collapsing them.
|
|
31
|
+
*
|
|
32
|
+
* The constraint: ``list[X] | None`` renders as ``anyOf: [array, null]``, and
|
|
33
|
+
* openapi-generator's Python target cannot type that inside a model carrying
|
|
34
|
+
* ``additionalProperties: true``. It does not warn - it throws
|
|
35
|
+
* ``Codegen Property not yet supported in getPydanticType`` and the SDK publish job
|
|
36
|
+
* dies. That happened on ``dev`` the moment Track A referenced this model from a
|
|
37
|
+
* route, so the shape here is load-bearing for the client build, not only for
|
|
38
|
+
* readers. A document with nothing to report still omits the whole block:
|
|
39
|
+
* ``Transcription.warnings`` is itself ``| None``.
|
|
40
|
+
* @export
|
|
41
|
+
* @interface TranscriptionWarnings
|
|
42
|
+
*/
|
|
43
|
+
export interface TranscriptionWarnings {
|
|
44
|
+
[key: string]: any | any;
|
|
45
|
+
/**
|
|
46
|
+
* Source pages that did not come back at all, named as retryable ranges.
|
|
47
|
+
* @type {Array<MissingPageRange>}
|
|
48
|
+
* @memberof TranscriptionWarnings
|
|
49
|
+
*/
|
|
50
|
+
missingPageRanges?: Array<MissingPageRange>;
|
|
51
|
+
/**
|
|
52
|
+
* Emitted pages discarded as unreadable. Deliberately not folded into missing_page_ranges: they correspond to no source page, so listing them as missing would claim the document is shorter than it is.
|
|
53
|
+
* @type {Array<{ [key: string]: any; } | null>}
|
|
54
|
+
* @memberof TranscriptionWarnings
|
|
55
|
+
*/
|
|
56
|
+
pagesDropped?: Array<{
|
|
57
|
+
[key: string]: any;
|
|
58
|
+
} | null>;
|
|
59
|
+
/**
|
|
60
|
+
* Individual page indexes the producer could not transcribe.
|
|
61
|
+
* @type {Array<number>}
|
|
62
|
+
* @memberof TranscriptionWarnings
|
|
63
|
+
*/
|
|
64
|
+
failedPageIndexes?: Array<number>;
|
|
65
|
+
/**
|
|
66
|
+
* Page indexes whose content was cut short by a size bound.
|
|
67
|
+
* @type {Array<number>}
|
|
68
|
+
* @memberof TranscriptionWarnings
|
|
69
|
+
*/
|
|
70
|
+
pagesTruncated?: Array<number>;
|
|
71
|
+
/**
|
|
72
|
+
* Figures kept without coordinates. They have an id and a reference.
|
|
73
|
+
* @type {number}
|
|
74
|
+
* @memberof TranscriptionWarnings
|
|
75
|
+
*/
|
|
76
|
+
figuresWithoutBbox?: number;
|
|
77
|
+
/**
|
|
78
|
+
* Figures that could not be kept even with the bbox stripped.
|
|
79
|
+
* @type {Array<{ [key: string]: any; } | null>}
|
|
80
|
+
* @memberof TranscriptionWarnings
|
|
81
|
+
*/
|
|
82
|
+
figuresDropped?: Array<{
|
|
83
|
+
[key: string]: any;
|
|
84
|
+
} | null>;
|
|
85
|
+
/**
|
|
86
|
+
* Each source unit the producer split, and the rules the split needed.
|
|
87
|
+
* @type {Array<DerivedPageReport>}
|
|
88
|
+
* @memberof TranscriptionWarnings
|
|
89
|
+
*/
|
|
90
|
+
derivedPages?: Array<DerivedPageReport>;
|
|
91
|
+
/**
|
|
92
|
+
* Warnings a producer's sub-unit raised that have no document-level key.
|
|
93
|
+
* @type {Array<{ [key: string]: any; } | null>}
|
|
94
|
+
* @memberof TranscriptionWarnings
|
|
95
|
+
*/
|
|
96
|
+
chunkWarnings?: Array<{
|
|
97
|
+
[key: string]: any;
|
|
98
|
+
} | null>;
|
|
99
|
+
/**
|
|
100
|
+
* More than one model produced this document - a fleet upgrade landed mid-run. The response can name only one, so the difference is reported here.
|
|
101
|
+
* @type {Array<string>}
|
|
102
|
+
* @memberof TranscriptionWarnings
|
|
103
|
+
*/
|
|
104
|
+
modelMismatch?: Array<string>;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Check if a given object implements the TranscriptionWarnings interface.
|
|
108
|
+
*/
|
|
109
|
+
export declare function instanceOfTranscriptionWarnings(value: object): value is TranscriptionWarnings;
|
|
110
|
+
export declare function TranscriptionWarningsFromJSON(json: any): TranscriptionWarnings;
|
|
111
|
+
export declare function TranscriptionWarningsFromJSONTyped(json: any, ignoreDiscriminator: boolean): TranscriptionWarnings;
|
|
112
|
+
export declare function TranscriptionWarningsToJSON(json: any): TranscriptionWarnings;
|
|
113
|
+
export declare function TranscriptionWarningsToJSONTyped(value?: TranscriptionWarnings | null, ignoreDiscriminator?: boolean): any;
|