@alien_intelligence/data-api-client 1.4.15 → 1.11.0
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 +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/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 +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 +1 -1
- 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 +1 -1
- package/dist/src/models/SnippetContext.js +1 -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 +13 -0
- package/dist/src/models/index.js +13 -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 +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/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 +1 -1
- package/src/src/models/KeywordSearchRequestMetadataFiltersValue.ts +1 -1
- package/src/src/models/KeywordSearchResponse.ts +1 -1
- 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 +1 -1
- 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 +13 -0
- package/src/src/runtime.ts +1 -1
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Client Data API
|
|
5
|
+
* Client Cluster Data API - Manifest-based storage service
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.11.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* How often one dataset has been posted to in one ingest shape.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface IngestContractUsageRow
|
|
20
|
+
*/
|
|
21
|
+
export interface IngestContractUsageRow {
|
|
22
|
+
/**
|
|
23
|
+
* Dataset the content was posted to.
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof IngestContractUsageRow
|
|
26
|
+
*/
|
|
27
|
+
datasetId: number;
|
|
28
|
+
/**
|
|
29
|
+
* 'legacy_text' (no page structure sent), 'transcription' (pages) or 'producer_segments' (offsets).
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof IngestContractUsageRow
|
|
32
|
+
*/
|
|
33
|
+
contentShape: string;
|
|
34
|
+
/**
|
|
35
|
+
* Posts counted in this shape.
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof IngestContractUsageRow
|
|
38
|
+
*/
|
|
39
|
+
postCount: number;
|
|
40
|
+
/**
|
|
41
|
+
* First post counted in this shape.
|
|
42
|
+
* @type {Date}
|
|
43
|
+
* @memberof IngestContractUsageRow
|
|
44
|
+
*/
|
|
45
|
+
firstSeenAt: Date;
|
|
46
|
+
/**
|
|
47
|
+
* Most recent post counted in this shape.
|
|
48
|
+
* @type {Date}
|
|
49
|
+
* @memberof IngestContractUsageRow
|
|
50
|
+
*/
|
|
51
|
+
lastSeenAt: Date;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the IngestContractUsageRow interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfIngestContractUsageRow(value: object): value is IngestContractUsageRow {
|
|
58
|
+
if (!('datasetId' in value) || value['datasetId'] === undefined) return false;
|
|
59
|
+
if (!('contentShape' in value) || value['contentShape'] === undefined) return false;
|
|
60
|
+
if (!('postCount' in value) || value['postCount'] === undefined) return false;
|
|
61
|
+
if (!('firstSeenAt' in value) || value['firstSeenAt'] === undefined) return false;
|
|
62
|
+
if (!('lastSeenAt' in value) || value['lastSeenAt'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function IngestContractUsageRowFromJSON(json: any): IngestContractUsageRow {
|
|
67
|
+
return IngestContractUsageRowFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function IngestContractUsageRowFromJSONTyped(json: any, ignoreDiscriminator: boolean): IngestContractUsageRow {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'datasetId': json['dataset_id'],
|
|
77
|
+
'contentShape': json['content_shape'],
|
|
78
|
+
'postCount': json['post_count'],
|
|
79
|
+
'firstSeenAt': (new Date(json['first_seen_at'])),
|
|
80
|
+
'lastSeenAt': (new Date(json['last_seen_at'])),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function IngestContractUsageRowToJSON(json: any): IngestContractUsageRow {
|
|
85
|
+
return IngestContractUsageRowToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function IngestContractUsageRowToJSONTyped(value?: IngestContractUsageRow | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'dataset_id': value['datasetId'],
|
|
96
|
+
'content_shape': value['contentShape'],
|
|
97
|
+
'post_count': value['postCount'],
|
|
98
|
+
'first_seen_at': ((value['firstSeenAt']).toISOString()),
|
|
99
|
+
'last_seen_at': ((value['lastSeenAt']).toISOString()),
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
@@ -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: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.11.0
|
|
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: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.11.0
|
|
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: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.11.0
|
|
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: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.11.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Client Data API
|
|
5
|
+
* Client Cluster Data API - Manifest-based storage service
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.11.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* A run of source pages that did not come back, and why.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface MissingPageRange
|
|
20
|
+
*/
|
|
21
|
+
export interface MissingPageRange {
|
|
22
|
+
[key: string]: any | any;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof MissingPageRange
|
|
27
|
+
*/
|
|
28
|
+
firstPage?: number | null;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof MissingPageRange
|
|
33
|
+
*/
|
|
34
|
+
lastPage?: number | null;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {number}
|
|
38
|
+
* @memberof MissingPageRange
|
|
39
|
+
*/
|
|
40
|
+
pageCount?: number | null;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof MissingPageRange
|
|
45
|
+
*/
|
|
46
|
+
code?: string | null;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof MissingPageRange
|
|
51
|
+
*/
|
|
52
|
+
reason?: string | null;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the MissingPageRange interface.
|
|
57
|
+
*/
|
|
58
|
+
export function instanceOfMissingPageRange(value: object): value is MissingPageRange {
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function MissingPageRangeFromJSON(json: any): MissingPageRange {
|
|
63
|
+
return MissingPageRangeFromJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function MissingPageRangeFromJSONTyped(json: any, ignoreDiscriminator: boolean): MissingPageRange {
|
|
67
|
+
if (json == null) {
|
|
68
|
+
return json;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
|
|
72
|
+
...json,
|
|
73
|
+
'firstPage': json['first_page'] == null ? undefined : json['first_page'],
|
|
74
|
+
'lastPage': json['last_page'] == null ? undefined : json['last_page'],
|
|
75
|
+
'pageCount': json['page_count'] == null ? undefined : json['page_count'],
|
|
76
|
+
'code': json['code'] == null ? undefined : json['code'],
|
|
77
|
+
'reason': json['reason'] == null ? undefined : json['reason'],
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function MissingPageRangeToJSON(json: any): MissingPageRange {
|
|
82
|
+
return MissingPageRangeToJSONTyped(json, false);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function MissingPageRangeToJSONTyped(value?: MissingPageRange | null, ignoreDiscriminator: boolean = false): any {
|
|
86
|
+
if (value == null) {
|
|
87
|
+
return value;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
return {
|
|
91
|
+
|
|
92
|
+
...value,
|
|
93
|
+
'first_page': value['firstPage'],
|
|
94
|
+
'last_page': value['lastPage'],
|
|
95
|
+
'page_count': value['pageCount'],
|
|
96
|
+
'code': value['code'],
|
|
97
|
+
'reason': value['reason'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
@@ -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: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.11.0
|
|
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: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.11.0
|
|
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: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.11.0
|
|
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: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.11.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Client Data API
|
|
5
|
+
* Client Cluster Data API - Manifest-based storage service
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.11.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Rendered page size in pixels, the space a figure bbox sits in.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PageDimensions
|
|
20
|
+
*/
|
|
21
|
+
export interface PageDimensions {
|
|
22
|
+
/**
|
|
23
|
+
* Rendered page width in pixels.
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof PageDimensions
|
|
26
|
+
*/
|
|
27
|
+
width: number;
|
|
28
|
+
/**
|
|
29
|
+
* Rendered page height in pixels.
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof PageDimensions
|
|
32
|
+
*/
|
|
33
|
+
height: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the PageDimensions interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfPageDimensions(value: object): value is PageDimensions {
|
|
40
|
+
if (!('width' in value) || value['width'] === undefined) return false;
|
|
41
|
+
if (!('height' in value) || value['height'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function PageDimensionsFromJSON(json: any): PageDimensions {
|
|
46
|
+
return PageDimensionsFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function PageDimensionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PageDimensions {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'width': json['width'],
|
|
56
|
+
'height': json['height'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PageDimensionsToJSON(json: any): PageDimensions {
|
|
61
|
+
return PageDimensionsToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PageDimensionsToJSONTyped(value?: PageDimensions | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'width': value['width'],
|
|
72
|
+
'height': value['height'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -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: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.11.0
|
|
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: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.11.0
|
|
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: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.11.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -20,9 +20,20 @@ import {
|
|
|
20
20
|
FileMetadataToJSON,
|
|
21
21
|
FileMetadataToJSONTyped,
|
|
22
22
|
} from './FileMetadata';
|
|
23
|
+
import type { Segment } from './Segment';
|
|
24
|
+
import {
|
|
25
|
+
SegmentFromJSON,
|
|
26
|
+
SegmentFromJSONTyped,
|
|
27
|
+
SegmentToJSON,
|
|
28
|
+
SegmentToJSONTyped,
|
|
29
|
+
} from './Segment';
|
|
23
30
|
|
|
24
31
|
/**
|
|
25
|
-
* Processed content section of entry manifest
|
|
32
|
+
* Processed content section of entry manifest.
|
|
33
|
+
*
|
|
34
|
+
* Carries the segment view of the processed text: where each citable unit begins
|
|
35
|
+
* and ends in ``content.json``'s ``text``. Offsets only - see ``schemas/segment.py``
|
|
36
|
+
* for why the text is not duplicated here.
|
|
26
37
|
* @export
|
|
27
38
|
* @interface ProcessedManifest
|
|
28
39
|
*/
|
|
@@ -40,11 +51,23 @@ export interface ProcessedManifest {
|
|
|
40
51
|
*/
|
|
41
52
|
size?: number | null;
|
|
42
53
|
/**
|
|
43
|
-
* Quick stats for UI (text_length, chunk_count,
|
|
54
|
+
* Quick stats for UI (text_length, chunk_count, figure_count, segment_count). segment_count is derived from segments and kept in step by this model.
|
|
44
55
|
* @type {{ [key: string]: any; }}
|
|
45
56
|
* @memberof ProcessedManifest
|
|
46
57
|
*/
|
|
47
58
|
fieldsSummary?: { [key: string]: any; };
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {Array<Segment>}
|
|
62
|
+
* @memberof ProcessedManifest
|
|
63
|
+
*/
|
|
64
|
+
segments?: Array<Segment> | null;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof ProcessedManifest
|
|
69
|
+
*/
|
|
70
|
+
segmentsSource?: ProcessedManifestSegmentsSourceEnum | null;
|
|
48
71
|
/**
|
|
49
72
|
*
|
|
50
73
|
* @type {Date}
|
|
@@ -59,6 +82,18 @@ export interface ProcessedManifest {
|
|
|
59
82
|
additionalFiles?: Array<FileMetadata> | null;
|
|
60
83
|
}
|
|
61
84
|
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* @export
|
|
88
|
+
*/
|
|
89
|
+
export const ProcessedManifestSegmentsSourceEnum = {
|
|
90
|
+
ProducerPages: 'producer_pages',
|
|
91
|
+
DerivedMarkdown: 'derived_markdown',
|
|
92
|
+
DerivedFixed: 'derived_fixed'
|
|
93
|
+
} as const;
|
|
94
|
+
export type ProcessedManifestSegmentsSourceEnum = typeof ProcessedManifestSegmentsSourceEnum[keyof typeof ProcessedManifestSegmentsSourceEnum];
|
|
95
|
+
|
|
96
|
+
|
|
62
97
|
/**
|
|
63
98
|
* Check if a given object implements the ProcessedManifest interface.
|
|
64
99
|
*/
|
|
@@ -79,6 +114,8 @@ export function ProcessedManifestFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
79
114
|
'contentKey': json['content_key'] == null ? undefined : json['content_key'],
|
|
80
115
|
'size': json['size'] == null ? undefined : json['size'],
|
|
81
116
|
'fieldsSummary': json['fields_summary'] == null ? undefined : json['fields_summary'],
|
|
117
|
+
'segments': json['segments'] == null ? undefined : ((json['segments'] as Array<any>).map(SegmentFromJSON)),
|
|
118
|
+
'segmentsSource': json['segments_source'] == null ? undefined : json['segments_source'],
|
|
82
119
|
'completedAt': json['completed_at'] == null ? undefined : (new Date(json['completed_at'])),
|
|
83
120
|
'additionalFiles': json['additional_files'] == null ? undefined : ((json['additional_files'] as Array<any>).map(FileMetadataFromJSON)),
|
|
84
121
|
};
|
|
@@ -98,6 +135,8 @@ export function ProcessedManifestToJSONTyped(value?: ProcessedManifest | null, i
|
|
|
98
135
|
'content_key': value['contentKey'],
|
|
99
136
|
'size': value['size'],
|
|
100
137
|
'fields_summary': value['fieldsSummary'],
|
|
138
|
+
'segments': value['segments'] == null ? undefined : ((value['segments'] as Array<any>).map(SegmentToJSON)),
|
|
139
|
+
'segments_source': value['segmentsSource'],
|
|
101
140
|
'completed_at': value['completedAt'] == null ? undefined : ((value['completedAt'] as any).toISOString()),
|
|
102
141
|
'additional_files': value['additionalFiles'] == null ? undefined : ((value['additionalFiles'] as Array<any>).map(FileMetadataToJSON)),
|
|
103
142
|
};
|
|
@@ -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: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.11.0
|
|
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: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.11.0
|
|
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: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.11.0
|
|
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: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.11.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -13,8 +13,42 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { Transcription } from './Transcription';
|
|
17
|
+
import {
|
|
18
|
+
TranscriptionFromJSON,
|
|
19
|
+
TranscriptionFromJSONTyped,
|
|
20
|
+
TranscriptionToJSON,
|
|
21
|
+
TranscriptionToJSONTyped,
|
|
22
|
+
} from './Transcription';
|
|
23
|
+
import type { Segment } from './Segment';
|
|
24
|
+
import {
|
|
25
|
+
SegmentFromJSON,
|
|
26
|
+
SegmentFromJSONTyped,
|
|
27
|
+
SegmentToJSON,
|
|
28
|
+
SegmentToJSONTyped,
|
|
29
|
+
} from './Segment';
|
|
30
|
+
|
|
16
31
|
/**
|
|
17
|
-
* Request to save processed content
|
|
32
|
+
* Request to save processed content.
|
|
33
|
+
*
|
|
34
|
+
* ``content`` is the payload stored in ``content.json`` and is deliberately still
|
|
35
|
+
* free-form: producers put their own fields there and always have. Its ``text`` key is
|
|
36
|
+
* the one part this service now reads, because it is the canonical text every segment
|
|
37
|
+
* offset is expressed against.
|
|
38
|
+
*
|
|
39
|
+
* A producer may say where its pages are in either of two ways, and the difference
|
|
40
|
+
* matters:
|
|
41
|
+
*
|
|
42
|
+
* - ``segments`` - offsets computed against ``content["text"]`` itself. **This is the
|
|
43
|
+
* shape to send if anything rewrote the text after transcription.** The figure linker
|
|
44
|
+
* does exactly that, and it shifts every offset past the first figure.
|
|
45
|
+
* - ``transcription`` - the pages themselves, from which offsets are read off the page
|
|
46
|
+
* join. Only correct when ``content["text"]`` *is* that join; the write boundary
|
|
47
|
+
* checks it and refuses the post otherwise rather than storing offsets into a string
|
|
48
|
+
* that no longer exists.
|
|
49
|
+
*
|
|
50
|
+
* Sending neither is the legacy shape. It is still accepted, the boundaries are derived
|
|
51
|
+
* from the markdown, and the response says so.
|
|
18
52
|
* @export
|
|
19
53
|
* @interface SaveProcessedContentRequest
|
|
20
54
|
*/
|
|
@@ -31,6 +65,18 @@ export interface SaveProcessedContentRequest {
|
|
|
31
65
|
* @memberof SaveProcessedContentRequest
|
|
32
66
|
*/
|
|
33
67
|
additionalFiles?: { [key: string]: string; } | null;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {Transcription}
|
|
71
|
+
* @memberof SaveProcessedContentRequest
|
|
72
|
+
*/
|
|
73
|
+
transcription?: Transcription | null;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {Array<Segment>}
|
|
77
|
+
* @memberof SaveProcessedContentRequest
|
|
78
|
+
*/
|
|
79
|
+
segments?: Array<Segment> | null;
|
|
34
80
|
}
|
|
35
81
|
|
|
36
82
|
/**
|
|
@@ -53,6 +99,8 @@ export function SaveProcessedContentRequestFromJSONTyped(json: any, ignoreDiscri
|
|
|
53
99
|
|
|
54
100
|
'content': json['content'],
|
|
55
101
|
'additionalFiles': json['additional_files'] == null ? undefined : json['additional_files'],
|
|
102
|
+
'transcription': json['transcription'] == null ? undefined : TranscriptionFromJSON(json['transcription']),
|
|
103
|
+
'segments': json['segments'] == null ? undefined : ((json['segments'] as Array<any>).map(SegmentFromJSON)),
|
|
56
104
|
};
|
|
57
105
|
}
|
|
58
106
|
|
|
@@ -69,6 +117,8 @@ export function SaveProcessedContentRequestToJSONTyped(value?: SaveProcessedCont
|
|
|
69
117
|
|
|
70
118
|
'content': value['content'],
|
|
71
119
|
'additional_files': value['additionalFiles'],
|
|
120
|
+
'transcription': TranscriptionToJSON(value['transcription']),
|
|
121
|
+
'segments': value['segments'] == null ? undefined : ((value['segments'] as Array<any>).map(SegmentToJSON)),
|
|
72
122
|
};
|
|
73
123
|
}
|
|
74
124
|
|
|
@@ -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: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.11.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { DeprecationNotice } from './DeprecationNotice';
|
|
17
|
+
import {
|
|
18
|
+
DeprecationNoticeFromJSON,
|
|
19
|
+
DeprecationNoticeFromJSONTyped,
|
|
20
|
+
DeprecationNoticeToJSON,
|
|
21
|
+
DeprecationNoticeToJSONTyped,
|
|
22
|
+
} from './DeprecationNotice';
|
|
16
23
|
import type { EntryManifest } from './EntryManifest';
|
|
17
24
|
import {
|
|
18
25
|
EntryManifestFromJSON,
|
|
@@ -45,8 +52,38 @@ export interface SaveProcessedContentResponse {
|
|
|
45
52
|
* @memberof SaveProcessedContentResponse
|
|
46
53
|
*/
|
|
47
54
|
success?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof SaveProcessedContentResponse
|
|
59
|
+
*/
|
|
60
|
+
segmentsSource?: SaveProcessedContentResponseSegmentsSourceEnum | null;
|
|
61
|
+
/**
|
|
62
|
+
* Segments stored for this entry.
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof SaveProcessedContentResponse
|
|
65
|
+
*/
|
|
66
|
+
segmentCount?: number;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {DeprecationNotice}
|
|
70
|
+
* @memberof SaveProcessedContentResponse
|
|
71
|
+
*/
|
|
72
|
+
deprecation?: DeprecationNotice | null;
|
|
48
73
|
}
|
|
49
74
|
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* @export
|
|
78
|
+
*/
|
|
79
|
+
export const SaveProcessedContentResponseSegmentsSourceEnum = {
|
|
80
|
+
ProducerPages: 'producer_pages',
|
|
81
|
+
DerivedMarkdown: 'derived_markdown',
|
|
82
|
+
DerivedFixed: 'derived_fixed'
|
|
83
|
+
} as const;
|
|
84
|
+
export type SaveProcessedContentResponseSegmentsSourceEnum = typeof SaveProcessedContentResponseSegmentsSourceEnum[keyof typeof SaveProcessedContentResponseSegmentsSourceEnum];
|
|
85
|
+
|
|
86
|
+
|
|
50
87
|
/**
|
|
51
88
|
* Check if a given object implements the SaveProcessedContentResponse interface.
|
|
52
89
|
*/
|
|
@@ -69,6 +106,9 @@ export function SaveProcessedContentResponseFromJSONTyped(json: any, ignoreDiscr
|
|
|
69
106
|
'entryId': json['entry_id'],
|
|
70
107
|
'manifest': EntryManifestFromJSON(json['manifest']),
|
|
71
108
|
'success': json['success'] == null ? undefined : json['success'],
|
|
109
|
+
'segmentsSource': json['segments_source'] == null ? undefined : json['segments_source'],
|
|
110
|
+
'segmentCount': json['segment_count'] == null ? undefined : json['segment_count'],
|
|
111
|
+
'deprecation': json['deprecation'] == null ? undefined : DeprecationNoticeFromJSON(json['deprecation']),
|
|
72
112
|
};
|
|
73
113
|
}
|
|
74
114
|
|
|
@@ -86,6 +126,9 @@ export function SaveProcessedContentResponseToJSONTyped(value?: SaveProcessedCon
|
|
|
86
126
|
'entry_id': value['entryId'],
|
|
87
127
|
'manifest': EntryManifestToJSON(value['manifest']),
|
|
88
128
|
'success': value['success'],
|
|
129
|
+
'segments_source': value['segmentsSource'],
|
|
130
|
+
'segment_count': value['segmentCount'],
|
|
131
|
+
'deprecation': DeprecationNoticeToJSON(value['deprecation']),
|
|
89
132
|
};
|
|
90
133
|
}
|
|
91
134
|
|
|
@@ -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: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.11.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|