@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,137 @@
|
|
|
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.16.2
|
|
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
|
+
* One source unit the producer had to split, and how far it overshot.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface DerivedPageReport
|
|
20
|
+
*/
|
|
21
|
+
export interface DerivedPageReport {
|
|
22
|
+
[key: string]: any | any;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof DerivedPageReport
|
|
27
|
+
*/
|
|
28
|
+
reason?: string | null;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof DerivedPageReport
|
|
33
|
+
*/
|
|
34
|
+
budgetPositions?: number | null;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {number}
|
|
38
|
+
* @memberof DerivedPageReport
|
|
39
|
+
*/
|
|
40
|
+
sourceIndex?: number | null;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof DerivedPageReport
|
|
45
|
+
*/
|
|
46
|
+
sourcePositions?: number | null;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {number}
|
|
50
|
+
* @memberof DerivedPageReport
|
|
51
|
+
*/
|
|
52
|
+
firstPage?: number | null;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {number}
|
|
56
|
+
* @memberof DerivedPageReport
|
|
57
|
+
*/
|
|
58
|
+
lastPage?: number | null;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {number}
|
|
62
|
+
* @memberof DerivedPageReport
|
|
63
|
+
*/
|
|
64
|
+
pageCount?: number | null;
|
|
65
|
+
/**
|
|
66
|
+
* Every rule the split actually needed, so a unit that fell back to 'fixed' says so instead of quietly claiming a clean paragraph split.
|
|
67
|
+
* @type {Array<string>}
|
|
68
|
+
* @memberof DerivedPageReport
|
|
69
|
+
*/
|
|
70
|
+
rules?: Array<DerivedPageReportRulesEnum>;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* @export
|
|
76
|
+
*/
|
|
77
|
+
export const DerivedPageReportRulesEnum = {
|
|
78
|
+
Paragraph: 'paragraph',
|
|
79
|
+
TableRow: 'table_row',
|
|
80
|
+
Line: 'line',
|
|
81
|
+
Fixed: 'fixed'
|
|
82
|
+
} as const;
|
|
83
|
+
export type DerivedPageReportRulesEnum = typeof DerivedPageReportRulesEnum[keyof typeof DerivedPageReportRulesEnum];
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Check if a given object implements the DerivedPageReport interface.
|
|
88
|
+
*/
|
|
89
|
+
export function instanceOfDerivedPageReport(value: object): value is DerivedPageReport {
|
|
90
|
+
return true;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function DerivedPageReportFromJSON(json: any): DerivedPageReport {
|
|
94
|
+
return DerivedPageReportFromJSONTyped(json, false);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function DerivedPageReportFromJSONTyped(json: any, ignoreDiscriminator: boolean): DerivedPageReport {
|
|
98
|
+
if (json == null) {
|
|
99
|
+
return json;
|
|
100
|
+
}
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
...json,
|
|
104
|
+
'reason': json['reason'] == null ? undefined : json['reason'],
|
|
105
|
+
'budgetPositions': json['budget_positions'] == null ? undefined : json['budget_positions'],
|
|
106
|
+
'sourceIndex': json['source_index'] == null ? undefined : json['source_index'],
|
|
107
|
+
'sourcePositions': json['source_positions'] == null ? undefined : json['source_positions'],
|
|
108
|
+
'firstPage': json['first_page'] == null ? undefined : json['first_page'],
|
|
109
|
+
'lastPage': json['last_page'] == null ? undefined : json['last_page'],
|
|
110
|
+
'pageCount': json['page_count'] == null ? undefined : json['page_count'],
|
|
111
|
+
'rules': json['rules'] == null ? undefined : json['rules'],
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function DerivedPageReportToJSON(json: any): DerivedPageReport {
|
|
116
|
+
return DerivedPageReportToJSONTyped(json, false);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export function DerivedPageReportToJSONTyped(value?: DerivedPageReport | null, ignoreDiscriminator: boolean = false): any {
|
|
120
|
+
if (value == null) {
|
|
121
|
+
return value;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
return {
|
|
125
|
+
|
|
126
|
+
...value,
|
|
127
|
+
'reason': value['reason'],
|
|
128
|
+
'budget_positions': value['budgetPositions'],
|
|
129
|
+
'source_index': value['sourceIndex'],
|
|
130
|
+
'source_positions': value['sourcePositions'],
|
|
131
|
+
'first_page': value['firstPage'],
|
|
132
|
+
'last_page': value['lastPage'],
|
|
133
|
+
'page_count': value['pageCount'],
|
|
134
|
+
'rules': value['rules'],
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
|
|
@@ -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.16.2
|
|
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.16.2
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/src/src/models/Entry.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Client Data API
|
|
5
5
|
* Client Cluster Data API - Manifest-based storage service
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.16.2
|
|
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.16.2
|
|
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.16.2
|
|
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.16.2
|
|
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.16.2
|
|
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.16.2
|
|
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.16.2
|
|
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.16.2
|
|
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.16.2
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -57,6 +57,12 @@ export interface EntryUpdateRequest {
|
|
|
57
57
|
* @memberof EntryUpdateRequest
|
|
58
58
|
*/
|
|
59
59
|
errorMessage?: string | null;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof EntryUpdateRequest
|
|
64
|
+
*/
|
|
65
|
+
ifVersion?: number | null;
|
|
60
66
|
}
|
|
61
67
|
|
|
62
68
|
|
|
@@ -83,6 +89,7 @@ export function EntryUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
83
89
|
'status': json['status'] == null ? undefined : EntryStatusFromJSON(json['status']),
|
|
84
90
|
'metadata': json['metadata'] == null ? undefined : json['metadata'],
|
|
85
91
|
'errorMessage': json['error_message'] == null ? undefined : json['error_message'],
|
|
92
|
+
'ifVersion': json['if_version'] == null ? undefined : json['if_version'],
|
|
86
93
|
};
|
|
87
94
|
}
|
|
88
95
|
|
|
@@ -102,6 +109,7 @@ export function EntryUpdateRequestToJSONTyped(value?: EntryUpdateRequest | null,
|
|
|
102
109
|
'status': EntryStatusToJSON(value['status']),
|
|
103
110
|
'metadata': value['metadata'],
|
|
104
111
|
'error_message': value['errorMessage'],
|
|
112
|
+
'if_version': value['ifVersion'],
|
|
105
113
|
};
|
|
106
114
|
}
|
|
107
115
|
|
|
@@ -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.16.2
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -0,0 +1,126 @@
|
|
|
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.16.2
|
|
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
|
+
* One figure crop: its id, where it sat on the page, and optionally its bytes.
|
|
18
|
+
*
|
|
19
|
+
* Typed rather than ``dict[str, Any]`` because every part of this shape is a contract
|
|
20
|
+
* somebody already depends on and nothing was checking: the figure linker resolves
|
|
21
|
+
* ``id`` with ``img-\d+\.\w+``
|
|
22
|
+
* (``data-pipelines/alienargo/processors/figure_linker/main.py``), and the bbox is
|
|
23
|
+
* what makes the crop locatable on the page it came from.
|
|
24
|
+
*
|
|
25
|
+
* **Divergence 1 of the three listed in the module docstring.** The producer
|
|
26
|
+
* constrains ``id`` only to be non-empty and documents the shape in prose.
|
|
27
|
+
* An id the linker's regex cannot resolve therefore reaches the linker and is
|
|
28
|
+
* dropped there, silently, with the figure's markdown reference left dangling - the
|
|
29
|
+
* failure the global ``img-{N}.{ext}`` renumbering exists to prevent. Refusing it at
|
|
30
|
+
* the write boundary turns that into a 422 naming the id.
|
|
31
|
+
*
|
|
32
|
+
* The pattern is the consumer's regex, anchored - not a tightened version of it.
|
|
33
|
+
* Narrowing it further (to ``[A-Za-z0-9]+``, say) would reject ids the linker would
|
|
34
|
+
* have resolved perfectly well, which trades one silent failure for a loud wrong one.
|
|
35
|
+
* @export
|
|
36
|
+
* @interface FigureImage
|
|
37
|
+
*/
|
|
38
|
+
export interface FigureImage {
|
|
39
|
+
[key: string]: any | any;
|
|
40
|
+
/**
|
|
41
|
+
* Figure id, `img-{N}.{ext}` and globally sequential across the document. The figure linker matches on exactly that shape and breaks silently otherwise.
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof FigureImage
|
|
44
|
+
*/
|
|
45
|
+
id: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof FigureImage
|
|
50
|
+
*/
|
|
51
|
+
topLeftX?: number | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof FigureImage
|
|
56
|
+
*/
|
|
57
|
+
topLeftY?: number | null;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof FigureImage
|
|
62
|
+
*/
|
|
63
|
+
bottomRightX?: number | null;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof FigureImage
|
|
68
|
+
*/
|
|
69
|
+
bottomRightY?: number | null;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof FigureImage
|
|
74
|
+
*/
|
|
75
|
+
imageBase64?: string | null;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Check if a given object implements the FigureImage interface.
|
|
80
|
+
*/
|
|
81
|
+
export function instanceOfFigureImage(value: object): value is FigureImage {
|
|
82
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
83
|
+
return true;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function FigureImageFromJSON(json: any): FigureImage {
|
|
87
|
+
return FigureImageFromJSONTyped(json, false);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function FigureImageFromJSONTyped(json: any, ignoreDiscriminator: boolean): FigureImage {
|
|
91
|
+
if (json == null) {
|
|
92
|
+
return json;
|
|
93
|
+
}
|
|
94
|
+
return {
|
|
95
|
+
|
|
96
|
+
...json,
|
|
97
|
+
'id': json['id'],
|
|
98
|
+
'topLeftX': json['top_left_x'] == null ? undefined : json['top_left_x'],
|
|
99
|
+
'topLeftY': json['top_left_y'] == null ? undefined : json['top_left_y'],
|
|
100
|
+
'bottomRightX': json['bottom_right_x'] == null ? undefined : json['bottom_right_x'],
|
|
101
|
+
'bottomRightY': json['bottom_right_y'] == null ? undefined : json['bottom_right_y'],
|
|
102
|
+
'imageBase64': json['image_base64'] == null ? undefined : json['image_base64'],
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function FigureImageToJSON(json: any): FigureImage {
|
|
107
|
+
return FigureImageToJSONTyped(json, false);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export function FigureImageToJSONTyped(value?: FigureImage | null, ignoreDiscriminator: boolean = false): any {
|
|
111
|
+
if (value == null) {
|
|
112
|
+
return value;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
return {
|
|
116
|
+
|
|
117
|
+
...value,
|
|
118
|
+
'id': value['id'],
|
|
119
|
+
'top_left_x': value['topLeftX'],
|
|
120
|
+
'top_left_y': value['topLeftY'],
|
|
121
|
+
'bottom_right_x': value['bottomRightX'],
|
|
122
|
+
'bottom_right_y': value['bottomRightY'],
|
|
123
|
+
'image_base64': value['imageBase64'],
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
|
|
@@ -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.16.2
|
|
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.16.2
|
|
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.16.2
|
|
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.16.2
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -0,0 +1,96 @@
|
|
|
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.16.2
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { IngestContractUsageRow } from './IngestContractUsageRow';
|
|
17
|
+
import {
|
|
18
|
+
IngestContractUsageRowFromJSON,
|
|
19
|
+
IngestContractUsageRowFromJSONTyped,
|
|
20
|
+
IngestContractUsageRowToJSON,
|
|
21
|
+
IngestContractUsageRowToJSONTyped,
|
|
22
|
+
} from './IngestContractUsageRow';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Which ingest shapes this cluster's producers actually use.
|
|
26
|
+
*
|
|
27
|
+
* Read before setting a date for refusing the legacy shape. The tenant is the cluster
|
|
28
|
+
* itself, so the same query run across clusters gives the per-tenant picture and this
|
|
29
|
+
* one gives the per-dataset detail within a tenant.
|
|
30
|
+
* @export
|
|
31
|
+
* @interface IngestContractUsageResponse
|
|
32
|
+
*/
|
|
33
|
+
export interface IngestContractUsageResponse {
|
|
34
|
+
/**
|
|
35
|
+
* The tenant this cluster serves.
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof IngestContractUsageResponse
|
|
38
|
+
*/
|
|
39
|
+
tenantId: string;
|
|
40
|
+
/**
|
|
41
|
+
* The tenant's slug.
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof IngestContractUsageResponse
|
|
44
|
+
*/
|
|
45
|
+
tenantSlug: string;
|
|
46
|
+
/**
|
|
47
|
+
* One row per dataset and shape. A dataset absent from this list has had no processed content posted to it since counting began.
|
|
48
|
+
* @type {Array<IngestContractUsageRow>}
|
|
49
|
+
* @memberof IngestContractUsageResponse
|
|
50
|
+
*/
|
|
51
|
+
usage: Array<IngestContractUsageRow>;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the IngestContractUsageResponse interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfIngestContractUsageResponse(value: object): value is IngestContractUsageResponse {
|
|
58
|
+
if (!('tenantId' in value) || value['tenantId'] === undefined) return false;
|
|
59
|
+
if (!('tenantSlug' in value) || value['tenantSlug'] === undefined) return false;
|
|
60
|
+
if (!('usage' in value) || value['usage'] === undefined) return false;
|
|
61
|
+
return true;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function IngestContractUsageResponseFromJSON(json: any): IngestContractUsageResponse {
|
|
65
|
+
return IngestContractUsageResponseFromJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function IngestContractUsageResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IngestContractUsageResponse {
|
|
69
|
+
if (json == null) {
|
|
70
|
+
return json;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'tenantId': json['tenant_id'],
|
|
75
|
+
'tenantSlug': json['tenant_slug'],
|
|
76
|
+
'usage': ((json['usage'] as Array<any>).map(IngestContractUsageRowFromJSON)),
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function IngestContractUsageResponseToJSON(json: any): IngestContractUsageResponse {
|
|
81
|
+
return IngestContractUsageResponseToJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function IngestContractUsageResponseToJSONTyped(value?: IngestContractUsageResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
85
|
+
if (value == null) {
|
|
86
|
+
return value;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
return {
|
|
90
|
+
|
|
91
|
+
'tenant_id': value['tenantId'],
|
|
92
|
+
'tenant_slug': value['tenantSlug'],
|
|
93
|
+
'usage': ((value['usage'] as Array<any>).map(IngestContractUsageRowToJSON)),
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
|
|
@@ -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.16.2
|
|
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.16.2
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|