@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
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Client Data API
|
|
6
6
|
* Client Cluster Data API - Manifest-based storage service
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.16.2
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Client Data API
|
|
3
3
|
* Client Cluster Data API - Manifest-based storage service
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.16.2
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -10,8 +10,13 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { FileMetadata } from './FileMetadata';
|
|
13
|
+
import type { Segment } from './Segment';
|
|
13
14
|
/**
|
|
14
|
-
* Processed content section of entry manifest
|
|
15
|
+
* Processed content section of entry manifest.
|
|
16
|
+
*
|
|
17
|
+
* Carries the segment view of the processed text: where each citable unit begins
|
|
18
|
+
* and ends in ``content.json``'s ``text``. Offsets only - see ``schemas/segment.py``
|
|
19
|
+
* for why the text is not duplicated here.
|
|
15
20
|
* @export
|
|
16
21
|
* @interface ProcessedManifest
|
|
17
22
|
*/
|
|
@@ -29,13 +34,25 @@ export interface ProcessedManifest {
|
|
|
29
34
|
*/
|
|
30
35
|
size?: number | null;
|
|
31
36
|
/**
|
|
32
|
-
* Quick stats for UI (text_length, chunk_count,
|
|
37
|
+
* 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.
|
|
33
38
|
* @type {{ [key: string]: any; }}
|
|
34
39
|
* @memberof ProcessedManifest
|
|
35
40
|
*/
|
|
36
41
|
fieldsSummary?: {
|
|
37
42
|
[key: string]: any;
|
|
38
43
|
};
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Array<Segment>}
|
|
47
|
+
* @memberof ProcessedManifest
|
|
48
|
+
*/
|
|
49
|
+
segments?: Array<Segment> | null;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof ProcessedManifest
|
|
54
|
+
*/
|
|
55
|
+
segmentsSource?: ProcessedManifestSegmentsSourceEnum | null;
|
|
39
56
|
/**
|
|
40
57
|
*
|
|
41
58
|
* @type {Date}
|
|
@@ -49,6 +66,15 @@ export interface ProcessedManifest {
|
|
|
49
66
|
*/
|
|
50
67
|
additionalFiles?: Array<FileMetadata> | null;
|
|
51
68
|
}
|
|
69
|
+
/**
|
|
70
|
+
* @export
|
|
71
|
+
*/
|
|
72
|
+
export declare const ProcessedManifestSegmentsSourceEnum: {
|
|
73
|
+
readonly ProducerPages: "producer_pages";
|
|
74
|
+
readonly DerivedMarkdown: "derived_markdown";
|
|
75
|
+
readonly DerivedFixed: "derived_fixed";
|
|
76
|
+
};
|
|
77
|
+
export type ProcessedManifestSegmentsSourceEnum = typeof ProcessedManifestSegmentsSourceEnum[keyof typeof ProcessedManifestSegmentsSourceEnum];
|
|
52
78
|
/**
|
|
53
79
|
* Check if a given object implements the ProcessedManifest interface.
|
|
54
80
|
*/
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Client Data API
|
|
6
6
|
* Client Cluster Data API - Manifest-based storage service
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.16.2
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -13,12 +13,22 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ProcessedManifestSegmentsSourceEnum = void 0;
|
|
16
17
|
exports.instanceOfProcessedManifest = instanceOfProcessedManifest;
|
|
17
18
|
exports.ProcessedManifestFromJSON = ProcessedManifestFromJSON;
|
|
18
19
|
exports.ProcessedManifestFromJSONTyped = ProcessedManifestFromJSONTyped;
|
|
19
20
|
exports.ProcessedManifestToJSON = ProcessedManifestToJSON;
|
|
20
21
|
exports.ProcessedManifestToJSONTyped = ProcessedManifestToJSONTyped;
|
|
21
22
|
const FileMetadata_1 = require("./FileMetadata");
|
|
23
|
+
const Segment_1 = require("./Segment");
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.ProcessedManifestSegmentsSourceEnum = {
|
|
28
|
+
ProducerPages: 'producer_pages',
|
|
29
|
+
DerivedMarkdown: 'derived_markdown',
|
|
30
|
+
DerivedFixed: 'derived_fixed'
|
|
31
|
+
};
|
|
22
32
|
/**
|
|
23
33
|
* Check if a given object implements the ProcessedManifest interface.
|
|
24
34
|
*/
|
|
@@ -36,6 +46,8 @@ function ProcessedManifestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
46
|
'contentKey': json['content_key'] == null ? undefined : json['content_key'],
|
|
37
47
|
'size': json['size'] == null ? undefined : json['size'],
|
|
38
48
|
'fieldsSummary': json['fields_summary'] == null ? undefined : json['fields_summary'],
|
|
49
|
+
'segments': json['segments'] == null ? undefined : (json['segments'].map(Segment_1.SegmentFromJSON)),
|
|
50
|
+
'segmentsSource': json['segments_source'] == null ? undefined : json['segments_source'],
|
|
39
51
|
'completedAt': json['completed_at'] == null ? undefined : (new Date(json['completed_at'])),
|
|
40
52
|
'additionalFiles': json['additional_files'] == null ? undefined : (json['additional_files'].map(FileMetadata_1.FileMetadataFromJSON)),
|
|
41
53
|
};
|
|
@@ -51,6 +63,8 @@ function ProcessedManifestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
51
63
|
'content_key': value['contentKey'],
|
|
52
64
|
'size': value['size'],
|
|
53
65
|
'fields_summary': value['fieldsSummary'],
|
|
66
|
+
'segments': value['segments'] == null ? undefined : (value['segments'].map(Segment_1.SegmentToJSON)),
|
|
67
|
+
'segments_source': value['segmentsSource'],
|
|
54
68
|
'completed_at': value['completedAt'] == null ? undefined : (value['completedAt'].toISOString()),
|
|
55
69
|
'additional_files': value['additionalFiles'] == null ? undefined : (value['additionalFiles'].map(FileMetadata_1.FileMetadataToJSON)),
|
|
56
70
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Client Data API
|
|
3
3
|
* Client Cluster Data API - Manifest-based storage service
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.16.2
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Client Data API
|
|
6
6
|
* Client Cluster Data API - Manifest-based storage service
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.16.2
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Client Data API
|
|
3
3
|
* Client Cluster Data API - Manifest-based storage service
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.16.2
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Client Data API
|
|
6
6
|
* Client Cluster Data API - Manifest-based storage service
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.16.2
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Client Data API
|
|
3
3
|
* Client Cluster Data API - Manifest-based storage service
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.16.2
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Client Data API
|
|
6
6
|
* Client Cluster Data API - Manifest-based storage service
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.16.2
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,15 +2,36 @@
|
|
|
2
2
|
* Client Data API
|
|
3
3
|
* Client Cluster Data API - Manifest-based storage service
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.16.2
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { Transcription } from './Transcription';
|
|
13
|
+
import type { Segment } from './Segment';
|
|
12
14
|
/**
|
|
13
|
-
* Request to save processed content
|
|
15
|
+
* Request to save processed content.
|
|
16
|
+
*
|
|
17
|
+
* ``content`` is the payload stored in ``content.json`` and is deliberately still
|
|
18
|
+
* free-form: producers put their own fields there and always have. Its ``text`` key is
|
|
19
|
+
* the one part this service now reads, because it is the canonical text every segment
|
|
20
|
+
* offset is expressed against.
|
|
21
|
+
*
|
|
22
|
+
* A producer may say where its pages are in either of two ways, and the difference
|
|
23
|
+
* matters:
|
|
24
|
+
*
|
|
25
|
+
* - ``segments`` - offsets computed against ``content["text"]`` itself. **This is the
|
|
26
|
+
* shape to send if anything rewrote the text after transcription.** The figure linker
|
|
27
|
+
* does exactly that, and it shifts every offset past the first figure.
|
|
28
|
+
* - ``transcription`` - the pages themselves, from which offsets are read off the page
|
|
29
|
+
* join. Only correct when ``content["text"]`` *is* that join; the write boundary
|
|
30
|
+
* checks it and refuses the post otherwise rather than storing offsets into a string
|
|
31
|
+
* that no longer exists.
|
|
32
|
+
*
|
|
33
|
+
* Sending neither is the legacy shape. It is still accepted, the boundaries are derived
|
|
34
|
+
* from the markdown, and the response says so.
|
|
14
35
|
* @export
|
|
15
36
|
* @interface SaveProcessedContentRequest
|
|
16
37
|
*/
|
|
@@ -31,6 +52,18 @@ export interface SaveProcessedContentRequest {
|
|
|
31
52
|
additionalFiles?: {
|
|
32
53
|
[key: string]: string;
|
|
33
54
|
} | null;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {Transcription}
|
|
58
|
+
* @memberof SaveProcessedContentRequest
|
|
59
|
+
*/
|
|
60
|
+
transcription?: Transcription | null;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {Array<Segment>}
|
|
64
|
+
* @memberof SaveProcessedContentRequest
|
|
65
|
+
*/
|
|
66
|
+
segments?: Array<Segment> | null;
|
|
34
67
|
}
|
|
35
68
|
/**
|
|
36
69
|
* Check if a given object implements the SaveProcessedContentRequest interface.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Client Data API
|
|
6
6
|
* Client Cluster Data API - Manifest-based storage service
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.16.2
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -18,6 +18,8 @@ exports.SaveProcessedContentRequestFromJSON = SaveProcessedContentRequestFromJSO
|
|
|
18
18
|
exports.SaveProcessedContentRequestFromJSONTyped = SaveProcessedContentRequestFromJSONTyped;
|
|
19
19
|
exports.SaveProcessedContentRequestToJSON = SaveProcessedContentRequestToJSON;
|
|
20
20
|
exports.SaveProcessedContentRequestToJSONTyped = SaveProcessedContentRequestToJSONTyped;
|
|
21
|
+
const Transcription_1 = require("./Transcription");
|
|
22
|
+
const Segment_1 = require("./Segment");
|
|
21
23
|
/**
|
|
22
24
|
* Check if a given object implements the SaveProcessedContentRequest interface.
|
|
23
25
|
*/
|
|
@@ -36,6 +38,8 @@ function SaveProcessedContentRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
38
|
return {
|
|
37
39
|
'content': json['content'],
|
|
38
40
|
'additionalFiles': json['additional_files'] == null ? undefined : json['additional_files'],
|
|
41
|
+
'transcription': json['transcription'] == null ? undefined : (0, Transcription_1.TranscriptionFromJSON)(json['transcription']),
|
|
42
|
+
'segments': json['segments'] == null ? undefined : (json['segments'].map(Segment_1.SegmentFromJSON)),
|
|
39
43
|
};
|
|
40
44
|
}
|
|
41
45
|
function SaveProcessedContentRequestToJSON(json) {
|
|
@@ -48,5 +52,7 @@ function SaveProcessedContentRequestToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
48
52
|
return {
|
|
49
53
|
'content': value['content'],
|
|
50
54
|
'additional_files': value['additionalFiles'],
|
|
55
|
+
'transcription': (0, Transcription_1.TranscriptionToJSON)(value['transcription']),
|
|
56
|
+
'segments': value['segments'] == null ? undefined : (value['segments'].map(Segment_1.SegmentToJSON)),
|
|
51
57
|
};
|
|
52
58
|
}
|
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
* Client Data API
|
|
3
3
|
* Client Cluster Data API - Manifest-based storage service
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.16.2
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { DeprecationNotice } from './DeprecationNotice';
|
|
12
13
|
import type { EntryManifest } from './EntryManifest';
|
|
13
14
|
/**
|
|
14
15
|
* Response after saving processed content
|
|
@@ -34,7 +35,34 @@ export interface SaveProcessedContentResponse {
|
|
|
34
35
|
* @memberof SaveProcessedContentResponse
|
|
35
36
|
*/
|
|
36
37
|
success?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof SaveProcessedContentResponse
|
|
42
|
+
*/
|
|
43
|
+
segmentsSource?: SaveProcessedContentResponseSegmentsSourceEnum | null;
|
|
44
|
+
/**
|
|
45
|
+
* Segments stored for this entry.
|
|
46
|
+
* @type {number}
|
|
47
|
+
* @memberof SaveProcessedContentResponse
|
|
48
|
+
*/
|
|
49
|
+
segmentCount?: number;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {DeprecationNotice}
|
|
53
|
+
* @memberof SaveProcessedContentResponse
|
|
54
|
+
*/
|
|
55
|
+
deprecation?: DeprecationNotice | null;
|
|
37
56
|
}
|
|
57
|
+
/**
|
|
58
|
+
* @export
|
|
59
|
+
*/
|
|
60
|
+
export declare const SaveProcessedContentResponseSegmentsSourceEnum: {
|
|
61
|
+
readonly ProducerPages: "producer_pages";
|
|
62
|
+
readonly DerivedMarkdown: "derived_markdown";
|
|
63
|
+
readonly DerivedFixed: "derived_fixed";
|
|
64
|
+
};
|
|
65
|
+
export type SaveProcessedContentResponseSegmentsSourceEnum = typeof SaveProcessedContentResponseSegmentsSourceEnum[keyof typeof SaveProcessedContentResponseSegmentsSourceEnum];
|
|
38
66
|
/**
|
|
39
67
|
* Check if a given object implements the SaveProcessedContentResponse interface.
|
|
40
68
|
*/
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Client Data API
|
|
6
6
|
* Client Cluster Data API - Manifest-based storage service
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.16.2
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -13,12 +13,22 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SaveProcessedContentResponseSegmentsSourceEnum = void 0;
|
|
16
17
|
exports.instanceOfSaveProcessedContentResponse = instanceOfSaveProcessedContentResponse;
|
|
17
18
|
exports.SaveProcessedContentResponseFromJSON = SaveProcessedContentResponseFromJSON;
|
|
18
19
|
exports.SaveProcessedContentResponseFromJSONTyped = SaveProcessedContentResponseFromJSONTyped;
|
|
19
20
|
exports.SaveProcessedContentResponseToJSON = SaveProcessedContentResponseToJSON;
|
|
20
21
|
exports.SaveProcessedContentResponseToJSONTyped = SaveProcessedContentResponseToJSONTyped;
|
|
22
|
+
const DeprecationNotice_1 = require("./DeprecationNotice");
|
|
21
23
|
const EntryManifest_1 = require("./EntryManifest");
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.SaveProcessedContentResponseSegmentsSourceEnum = {
|
|
28
|
+
ProducerPages: 'producer_pages',
|
|
29
|
+
DerivedMarkdown: 'derived_markdown',
|
|
30
|
+
DerivedFixed: 'derived_fixed'
|
|
31
|
+
};
|
|
22
32
|
/**
|
|
23
33
|
* Check if a given object implements the SaveProcessedContentResponse interface.
|
|
24
34
|
*/
|
|
@@ -40,6 +50,9 @@ function SaveProcessedContentResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
50
|
'entryId': json['entry_id'],
|
|
41
51
|
'manifest': (0, EntryManifest_1.EntryManifestFromJSON)(json['manifest']),
|
|
42
52
|
'success': json['success'] == null ? undefined : json['success'],
|
|
53
|
+
'segmentsSource': json['segments_source'] == null ? undefined : json['segments_source'],
|
|
54
|
+
'segmentCount': json['segment_count'] == null ? undefined : json['segment_count'],
|
|
55
|
+
'deprecation': json['deprecation'] == null ? undefined : (0, DeprecationNotice_1.DeprecationNoticeFromJSON)(json['deprecation']),
|
|
43
56
|
};
|
|
44
57
|
}
|
|
45
58
|
function SaveProcessedContentResponseToJSON(json) {
|
|
@@ -53,5 +66,8 @@ function SaveProcessedContentResponseToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
53
66
|
'entry_id': value['entryId'],
|
|
54
67
|
'manifest': (0, EntryManifest_1.EntryManifestToJSON)(value['manifest']),
|
|
55
68
|
'success': value['success'],
|
|
69
|
+
'segments_source': value['segmentsSource'],
|
|
70
|
+
'segment_count': value['segmentCount'],
|
|
71
|
+
'deprecation': (0, DeprecationNotice_1.DeprecationNoticeToJSON)(value['deprecation']),
|
|
56
72
|
};
|
|
57
73
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Client Data API
|
|
3
3
|
* Client Cluster Data API - Manifest-based storage service
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.16.2
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Client Data API
|
|
6
6
|
* Client Cluster Data API - Manifest-based storage service
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.16.2
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -0,0 +1,93 @@
|
|
|
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
|
+
* One citable unit of a processed document, as a span of the canonical text.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Segment
|
|
16
|
+
*/
|
|
17
|
+
export interface Segment {
|
|
18
|
+
/**
|
|
19
|
+
* Position in this document's segment list, dense from 0. This is the ordering key and half of the page document's primary key; it is not a page number.
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof Segment
|
|
22
|
+
*/
|
|
23
|
+
seq: number;
|
|
24
|
+
/**
|
|
25
|
+
* What this unit is. 'page' covers folios, PDF pages and worksheets.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Segment
|
|
28
|
+
*/
|
|
29
|
+
kind?: SegmentKindEnum;
|
|
30
|
+
/**
|
|
31
|
+
* What the document calls this unit - the string a citation shows. Sparse and not necessarily numeric: BnF folios skip, ocr-gateway reserves the index of a page it lost. Never derive ordering from it.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof Segment
|
|
34
|
+
*/
|
|
35
|
+
label: string;
|
|
36
|
+
/**
|
|
37
|
+
* 'source' if the document itself drew this boundary, 'derived' if it was invented to fit an indexing budget. Required rather than defaulted: a boundary whose provenance was never stated is not a boundary worth citing.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof Segment
|
|
40
|
+
*/
|
|
41
|
+
origin: SegmentOriginEnum;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof Segment
|
|
46
|
+
*/
|
|
47
|
+
splitRule?: SegmentSplitRuleEnum | null;
|
|
48
|
+
/**
|
|
49
|
+
* Offset of this segment's first character in the canonical text.
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof Segment
|
|
52
|
+
*/
|
|
53
|
+
charStart: number;
|
|
54
|
+
/**
|
|
55
|
+
* Offset one past this segment's last character. Exclusive, so text[char_start:char_end] is the segment.
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof Segment
|
|
58
|
+
*/
|
|
59
|
+
charEnd: number;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export declare const SegmentKindEnum: {
|
|
65
|
+
readonly Page: "page";
|
|
66
|
+
};
|
|
67
|
+
export type SegmentKindEnum = typeof SegmentKindEnum[keyof typeof SegmentKindEnum];
|
|
68
|
+
/**
|
|
69
|
+
* @export
|
|
70
|
+
*/
|
|
71
|
+
export declare const SegmentOriginEnum: {
|
|
72
|
+
readonly Source: "source";
|
|
73
|
+
readonly Derived: "derived";
|
|
74
|
+
};
|
|
75
|
+
export type SegmentOriginEnum = typeof SegmentOriginEnum[keyof typeof SegmentOriginEnum];
|
|
76
|
+
/**
|
|
77
|
+
* @export
|
|
78
|
+
*/
|
|
79
|
+
export declare const SegmentSplitRuleEnum: {
|
|
80
|
+
readonly Paragraph: "paragraph";
|
|
81
|
+
readonly TableRow: "table_row";
|
|
82
|
+
readonly Line: "line";
|
|
83
|
+
readonly Fixed: "fixed";
|
|
84
|
+
};
|
|
85
|
+
export type SegmentSplitRuleEnum = typeof SegmentSplitRuleEnum[keyof typeof SegmentSplitRuleEnum];
|
|
86
|
+
/**
|
|
87
|
+
* Check if a given object implements the Segment interface.
|
|
88
|
+
*/
|
|
89
|
+
export declare function instanceOfSegment(value: object): value is Segment;
|
|
90
|
+
export declare function SegmentFromJSON(json: any): Segment;
|
|
91
|
+
export declare function SegmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): Segment;
|
|
92
|
+
export declare function SegmentToJSON(json: any): Segment;
|
|
93
|
+
export declare function SegmentToJSONTyped(value?: Segment | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,93 @@
|
|
|
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.SegmentSplitRuleEnum = exports.SegmentOriginEnum = exports.SegmentKindEnum = void 0;
|
|
17
|
+
exports.instanceOfSegment = instanceOfSegment;
|
|
18
|
+
exports.SegmentFromJSON = SegmentFromJSON;
|
|
19
|
+
exports.SegmentFromJSONTyped = SegmentFromJSONTyped;
|
|
20
|
+
exports.SegmentToJSON = SegmentToJSON;
|
|
21
|
+
exports.SegmentToJSONTyped = SegmentToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.SegmentKindEnum = {
|
|
26
|
+
Page: 'page'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* @export
|
|
30
|
+
*/
|
|
31
|
+
exports.SegmentOriginEnum = {
|
|
32
|
+
Source: 'source',
|
|
33
|
+
Derived: 'derived'
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* @export
|
|
37
|
+
*/
|
|
38
|
+
exports.SegmentSplitRuleEnum = {
|
|
39
|
+
Paragraph: 'paragraph',
|
|
40
|
+
TableRow: 'table_row',
|
|
41
|
+
Line: 'line',
|
|
42
|
+
Fixed: 'fixed'
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the Segment interface.
|
|
46
|
+
*/
|
|
47
|
+
function instanceOfSegment(value) {
|
|
48
|
+
if (!('seq' in value) || value['seq'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('origin' in value) || value['origin'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('charStart' in value) || value['charStart'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('charEnd' in value) || value['charEnd'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
function SegmentFromJSON(json) {
|
|
61
|
+
return SegmentFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
function SegmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'seq': json['seq'],
|
|
69
|
+
'kind': json['kind'] == null ? undefined : json['kind'],
|
|
70
|
+
'label': json['label'],
|
|
71
|
+
'origin': json['origin'],
|
|
72
|
+
'splitRule': json['split_rule'] == null ? undefined : json['split_rule'],
|
|
73
|
+
'charStart': json['char_start'],
|
|
74
|
+
'charEnd': json['char_end'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
function SegmentToJSON(json) {
|
|
78
|
+
return SegmentToJSONTyped(json, false);
|
|
79
|
+
}
|
|
80
|
+
function SegmentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
return {
|
|
85
|
+
'seq': value['seq'],
|
|
86
|
+
'kind': value['kind'],
|
|
87
|
+
'label': value['label'],
|
|
88
|
+
'origin': value['origin'],
|
|
89
|
+
'split_rule': value['splitRule'],
|
|
90
|
+
'char_start': value['charStart'],
|
|
91
|
+
'char_end': value['charEnd'],
|
|
92
|
+
};
|
|
93
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Client Data API
|
|
3
3
|
* Client Cluster Data API - Manifest-based storage service
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.16.2
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -28,7 +28,7 @@ export interface SnippetContext {
|
|
|
28
28
|
*/
|
|
29
29
|
section?: string | null;
|
|
30
30
|
/**
|
|
31
|
-
* Character position of snippet start in full
|
|
31
|
+
* Character position of snippet start in the entry's full processed text - the same string GET /entries/{entry_id}/content returns, and the same coordinates segment boundaries are expressed in. A character index, not a byte offset, on accented text as much as on ASCII.
|
|
32
32
|
* @type {number}
|
|
33
33
|
* @memberof SnippetContext
|
|
34
34
|
*/
|
|
@@ -39,6 +39,18 @@ export interface SnippetContext {
|
|
|
39
39
|
* @memberof SnippetContext
|
|
40
40
|
*/
|
|
41
41
|
croppedAt?: SnippetContextCroppedAtEnum | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof SnippetContext
|
|
46
|
+
*/
|
|
47
|
+
segmentLabel?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof SnippetContext
|
|
52
|
+
*/
|
|
53
|
+
segmentSeq?: number | null;
|
|
42
54
|
}
|
|
43
55
|
/**
|
|
44
56
|
* @export
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Client Data API
|
|
6
6
|
* Client Cluster Data API - Manifest-based storage service
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.16.2
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -57,6 +57,8 @@ function SnippetContextFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
57
|
'section': json['section'] == null ? undefined : json['section'],
|
|
58
58
|
'offset': json['offset'],
|
|
59
59
|
'croppedAt': json['cropped_at'] == null ? undefined : json['cropped_at'],
|
|
60
|
+
'segmentLabel': json['segment_label'] == null ? undefined : json['segment_label'],
|
|
61
|
+
'segmentSeq': json['segment_seq'] == null ? undefined : json['segment_seq'],
|
|
60
62
|
};
|
|
61
63
|
}
|
|
62
64
|
function SnippetContextToJSON(json) {
|
|
@@ -71,5 +73,7 @@ function SnippetContextToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
71
73
|
'section': value['section'],
|
|
72
74
|
'offset': value['offset'],
|
|
73
75
|
'cropped_at': value['croppedAt'],
|
|
76
|
+
'segment_label': value['segmentLabel'],
|
|
77
|
+
'segment_seq': value['segmentSeq'],
|
|
74
78
|
};
|
|
75
79
|
}
|