@knowledge-stack/ksapi 1.156.0 → 1.157.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/.openapi-generator/FILES +2 -0
- package/README.md +3 -2
- package/dist/apis/DocumentVersionsApi.d.ts +2 -2
- package/dist/apis/DocumentsApi.d.ts +2 -2
- package/dist/esm/apis/DocumentVersionsApi.d.ts +2 -2
- package/dist/esm/apis/DocumentsApi.d.ts +2 -2
- package/dist/esm/models/ChunkMetadata.d.ts +7 -0
- package/dist/esm/models/ChunkMetadata.js +3 -0
- package/dist/esm/models/DocumentVersionMetadata.d.ts +12 -0
- package/dist/esm/models/DocumentVersionMetadata.js +4 -0
- package/dist/esm/models/DocumentVersionMetadataUpdate.d.ts +12 -0
- package/dist/esm/models/DocumentVersionMetadataUpdate.js +4 -0
- package/dist/esm/models/DocumentVersionResponse.d.ts +6 -0
- package/dist/esm/models/DocumentVersionResponse.js +2 -0
- package/dist/esm/models/DownloadArtifact.d.ts +1 -0
- package/dist/esm/models/DownloadArtifact.js +2 -1
- package/dist/esm/models/SegmentSpan.d.ts +62 -0
- package/dist/esm/models/SegmentSpan.js +52 -0
- package/dist/esm/models/UploadConstraints.d.ts +12 -0
- package/dist/esm/models/UploadConstraints.js +8 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/ChunkMetadata.d.ts +7 -0
- package/dist/models/ChunkMetadata.js +3 -0
- package/dist/models/DocumentVersionMetadata.d.ts +12 -0
- package/dist/models/DocumentVersionMetadata.js +4 -0
- package/dist/models/DocumentVersionMetadataUpdate.d.ts +12 -0
- package/dist/models/DocumentVersionMetadataUpdate.js +4 -0
- package/dist/models/DocumentVersionResponse.d.ts +6 -0
- package/dist/models/DocumentVersionResponse.js +2 -0
- package/dist/models/DownloadArtifact.d.ts +1 -0
- package/dist/models/DownloadArtifact.js +2 -1
- package/dist/models/SegmentSpan.d.ts +62 -0
- package/dist/models/SegmentSpan.js +60 -0
- package/dist/models/UploadConstraints.d.ts +12 -0
- package/dist/models/UploadConstraints.js +8 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/docs/ChunkMetadata.md +2 -0
- package/docs/DocumentVersionMetadata.md +4 -0
- package/docs/DocumentVersionMetadataUpdate.md +4 -0
- package/docs/DocumentVersionResponse.md +2 -0
- package/docs/DocumentVersionsApi.md +2 -2
- package/docs/DocumentsApi.md +2 -2
- package/docs/SegmentSpan.md +39 -0
- package/docs/UploadConstraints.md +4 -0
- package/package.json +1 -1
- package/src/apis/DocumentVersionsApi.ts +2 -2
- package/src/apis/DocumentsApi.ts +2 -2
- package/src/models/ChunkMetadata.ts +15 -0
- package/src/models/DocumentVersionMetadata.ts +16 -0
- package/src/models/DocumentVersionMetadataUpdate.ts +16 -0
- package/src/models/DocumentVersionResponse.ts +8 -0
- package/src/models/DownloadArtifact.ts +2 -1
- package/src/models/SegmentSpan.ts +104 -0
- package/src/models/UploadConstraints.ts +18 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -295,6 +295,7 @@ docs/SectionContentItemOrChunkContentItem.md
|
|
|
295
295
|
docs/SectionResponse.md
|
|
296
296
|
docs/SectionSystemMetadata.md
|
|
297
297
|
docs/SectionsApi.md
|
|
298
|
+
docs/SegmentSpan.md
|
|
298
299
|
docs/SendPasswordResetRequest.md
|
|
299
300
|
docs/SetApprovalStateRequest.md
|
|
300
301
|
docs/SetWorkflowRunApprovalRequest.md
|
|
@@ -733,6 +734,7 @@ src/models/SectionContentItem.ts
|
|
|
733
734
|
src/models/SectionContentItemOrChunkContentItem.ts
|
|
734
735
|
src/models/SectionResponse.ts
|
|
735
736
|
src/models/SectionSystemMetadata.ts
|
|
737
|
+
src/models/SegmentSpan.ts
|
|
736
738
|
src/models/SendPasswordResetRequest.ts
|
|
737
739
|
src/models/SetApprovalStateRequest.ts
|
|
738
740
|
src/models/SetWorkflowRunApprovalRequest.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @knowledge-stack/ksapi@1.
|
|
1
|
+
# @knowledge-stack/ksapi@1.157.0
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -569,6 +569,7 @@ All URIs are relative to *http://localhost:8000*
|
|
|
569
569
|
- [SectionContentItemOrChunkContentItem](docs/SectionContentItemOrChunkContentItem.md)
|
|
570
570
|
- [SectionResponse](docs/SectionResponse.md)
|
|
571
571
|
- [SectionSystemMetadata](docs/SectionSystemMetadata.md)
|
|
572
|
+
- [SegmentSpan](docs/SegmentSpan.md)
|
|
572
573
|
- [SendPasswordResetRequest](docs/SendPasswordResetRequest.md)
|
|
573
574
|
- [SetApprovalStateRequest](docs/SetApprovalStateRequest.md)
|
|
574
575
|
- [SetWorkflowRunApprovalRequest](docs/SetWorkflowRunApprovalRequest.md)
|
|
@@ -708,7 +709,7 @@ and is automatically generated by the
|
|
|
708
709
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
709
710
|
|
|
710
711
|
- API version: `0.1.0`
|
|
711
|
-
- Package version: `1.
|
|
712
|
+
- Package version: `1.157.0`
|
|
712
713
|
- Generator version: `7.21.0`
|
|
713
714
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
714
715
|
|
|
@@ -182,7 +182,7 @@ export interface DocumentVersionsApiInterface {
|
|
|
182
182
|
/**
|
|
183
183
|
* Creates request options for downloadDocumentVersion without sending the request
|
|
184
184
|
* @param {string} versionId DocumentVersion ID
|
|
185
|
-
* @param {DownloadArtifact} [artifact] Artifact to download: source or
|
|
185
|
+
* @param {DownloadArtifact} [artifact] Artifact to download: source, fast_plaintext, or transcript (media only)
|
|
186
186
|
* @throws {RequiredError}
|
|
187
187
|
* @memberof DocumentVersionsApiInterface
|
|
188
188
|
*/
|
|
@@ -191,7 +191,7 @@ export interface DocumentVersionsApiInterface {
|
|
|
191
191
|
* Issue a short-lived, audited download link for a specific version. Records a ``document.downloaded`` audit event anchored to the document so the customer audit log captures who downloaded which version and when.
|
|
192
192
|
* @summary Download Document Version Handler
|
|
193
193
|
* @param {string} versionId DocumentVersion ID
|
|
194
|
-
* @param {DownloadArtifact} [artifact] Artifact to download: source or
|
|
194
|
+
* @param {DownloadArtifact} [artifact] Artifact to download: source, fast_plaintext, or transcript (media only)
|
|
195
195
|
* @param {*} [options] Override http request option.
|
|
196
196
|
* @throws {RequiredError}
|
|
197
197
|
* @memberof DocumentVersionsApiInterface
|
|
@@ -204,7 +204,7 @@ export interface DocumentsApiInterface {
|
|
|
204
204
|
/**
|
|
205
205
|
* Creates request options for downloadDocument without sending the request
|
|
206
206
|
* @param {string} documentId
|
|
207
|
-
* @param {DownloadArtifact} [artifact] Artifact to download: source or
|
|
207
|
+
* @param {DownloadArtifact} [artifact] Artifact to download: source, fast_plaintext, or transcript (media only)
|
|
208
208
|
* @throws {RequiredError}
|
|
209
209
|
* @memberof DocumentsApiInterface
|
|
210
210
|
*/
|
|
@@ -213,7 +213,7 @@ export interface DocumentsApiInterface {
|
|
|
213
213
|
* Issue a short-lived, audited download link for a document\'s active version. Records a ``document.downloaded`` audit event so the customer audit log captures who downloaded which document/version and when.
|
|
214
214
|
* @summary Download Document Handler
|
|
215
215
|
* @param {string} documentId
|
|
216
|
-
* @param {DownloadArtifact} [artifact] Artifact to download: source or
|
|
216
|
+
* @param {DownloadArtifact} [artifact] Artifact to download: source, fast_plaintext, or transcript (media only)
|
|
217
217
|
* @param {*} [options] Override http request option.
|
|
218
218
|
* @throws {RequiredError}
|
|
219
219
|
* @memberof DocumentsApiInterface
|
|
@@ -182,7 +182,7 @@ export interface DocumentVersionsApiInterface {
|
|
|
182
182
|
/**
|
|
183
183
|
* Creates request options for downloadDocumentVersion without sending the request
|
|
184
184
|
* @param {string} versionId DocumentVersion ID
|
|
185
|
-
* @param {DownloadArtifact} [artifact] Artifact to download: source or
|
|
185
|
+
* @param {DownloadArtifact} [artifact] Artifact to download: source, fast_plaintext, or transcript (media only)
|
|
186
186
|
* @throws {RequiredError}
|
|
187
187
|
* @memberof DocumentVersionsApiInterface
|
|
188
188
|
*/
|
|
@@ -191,7 +191,7 @@ export interface DocumentVersionsApiInterface {
|
|
|
191
191
|
* Issue a short-lived, audited download link for a specific version. Records a ``document.downloaded`` audit event anchored to the document so the customer audit log captures who downloaded which version and when.
|
|
192
192
|
* @summary Download Document Version Handler
|
|
193
193
|
* @param {string} versionId DocumentVersion ID
|
|
194
|
-
* @param {DownloadArtifact} [artifact] Artifact to download: source or
|
|
194
|
+
* @param {DownloadArtifact} [artifact] Artifact to download: source, fast_plaintext, or transcript (media only)
|
|
195
195
|
* @param {*} [options] Override http request option.
|
|
196
196
|
* @throws {RequiredError}
|
|
197
197
|
* @memberof DocumentVersionsApiInterface
|
|
@@ -204,7 +204,7 @@ export interface DocumentsApiInterface {
|
|
|
204
204
|
/**
|
|
205
205
|
* Creates request options for downloadDocument without sending the request
|
|
206
206
|
* @param {string} documentId
|
|
207
|
-
* @param {DownloadArtifact} [artifact] Artifact to download: source or
|
|
207
|
+
* @param {DownloadArtifact} [artifact] Artifact to download: source, fast_plaintext, or transcript (media only)
|
|
208
208
|
* @throws {RequiredError}
|
|
209
209
|
* @memberof DocumentsApiInterface
|
|
210
210
|
*/
|
|
@@ -213,7 +213,7 @@ export interface DocumentsApiInterface {
|
|
|
213
213
|
* Issue a short-lived, audited download link for a document\'s active version. Records a ``document.downloaded`` audit event so the customer audit log captures who downloaded which document/version and when.
|
|
214
214
|
* @summary Download Document Handler
|
|
215
215
|
* @param {string} documentId
|
|
216
|
-
* @param {DownloadArtifact} [artifact] Artifact to download: source or
|
|
216
|
+
* @param {DownloadArtifact} [artifact] Artifact to download: source, fast_plaintext, or transcript (media only)
|
|
217
217
|
* @param {*} [options] Override http request option.
|
|
218
218
|
* @throws {RequiredError}
|
|
219
219
|
* @memberof DocumentsApiInterface
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { SegmentSpan } from './SegmentSpan';
|
|
12
13
|
import type { ImageTaxonomy } from './ImageTaxonomy';
|
|
13
14
|
import type { PolygonReference } from './PolygonReference';
|
|
14
15
|
/**
|
|
@@ -65,6 +66,12 @@ export interface ChunkMetadata {
|
|
|
65
66
|
* @memberof ChunkMetadata
|
|
66
67
|
*/
|
|
67
68
|
endMs?: number | null;
|
|
69
|
+
/**
|
|
70
|
+
* Per-ASR-segment spans inside this media chunk, in order, each carrying its char offset in the chunk content. Lets citation resolution narrow a chunk-level timeframe to the enclosing segment. None for non-media chunks and media ingested before this field existed.
|
|
71
|
+
* @type {Array<SegmentSpan>}
|
|
72
|
+
* @memberof ChunkMetadata
|
|
73
|
+
*/
|
|
74
|
+
segments?: Array<SegmentSpan> | null;
|
|
68
75
|
/**
|
|
69
76
|
* Worksheet name this chunk was extracted from (XLSX only)
|
|
70
77
|
* @type {string}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { SegmentSpanFromJSON, SegmentSpanToJSON, } from './SegmentSpan';
|
|
14
15
|
import { ImageTaxonomyFromJSON, ImageTaxonomyToJSON, } from './ImageTaxonomy';
|
|
15
16
|
import { PolygonReferenceFromJSON, PolygonReferenceToJSON, } from './PolygonReference';
|
|
16
17
|
export const ChunkMetadataPropertyValidationAttributesMap = {};
|
|
@@ -36,6 +37,7 @@ export function ChunkMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
37
|
'secondaryTaxonomy': json['secondary_taxonomy'] == null ? undefined : ImageTaxonomyFromJSON(json['secondary_taxonomy']),
|
|
37
38
|
'startMs': json['start_ms'] == null ? undefined : json['start_ms'],
|
|
38
39
|
'endMs': json['end_ms'] == null ? undefined : json['end_ms'],
|
|
40
|
+
'segments': json['segments'] == null ? undefined : (json['segments'].map(SegmentSpanFromJSON)),
|
|
39
41
|
'sheetName': json['sheet_name'] == null ? undefined : json['sheet_name'],
|
|
40
42
|
'blockType': json['block_type'] == null ? undefined : json['block_type'],
|
|
41
43
|
'sourceUri': json['source_uri'] == null ? undefined : json['source_uri'],
|
|
@@ -63,6 +65,7 @@ export function ChunkMetadataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
63
65
|
'secondary_taxonomy': ImageTaxonomyToJSON(value['secondaryTaxonomy']),
|
|
64
66
|
'start_ms': value['startMs'],
|
|
65
67
|
'end_ms': value['endMs'],
|
|
68
|
+
'segments': value['segments'] == null ? undefined : (value['segments'].map(SegmentSpanToJSON)),
|
|
66
69
|
'sheet_name': value['sheetName'],
|
|
67
70
|
'block_type': value['blockType'],
|
|
68
71
|
'source_uri': value['sourceUri'],
|
|
@@ -57,6 +57,12 @@ export interface DocumentVersionMetadata {
|
|
|
57
57
|
* @memberof DocumentVersionMetadata
|
|
58
58
|
*/
|
|
59
59
|
fastPlaintextS3?: string | null;
|
|
60
|
+
/**
|
|
61
|
+
* S3 URI of the ASR transcript JSON (per-segment start_ms/end_ms/text); null for non-media. Chunks carry timings too, but at merged-chunk granularity, so this is the only per-segment source.
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof DocumentVersionMetadata
|
|
64
|
+
*/
|
|
65
|
+
transcriptS3?: string | null;
|
|
60
66
|
/**
|
|
61
67
|
* Base64-encoded SHA256 hash of the uploaded source file
|
|
62
68
|
* @type {string}
|
|
@@ -157,6 +163,12 @@ export interface DocumentVersionMetadata {
|
|
|
157
163
|
* @memberof DocumentVersionMetadata
|
|
158
164
|
*/
|
|
159
165
|
quotaPageCount?: number;
|
|
166
|
+
/**
|
|
167
|
+
* MEDIA_MINUTE quantity charged at media preparation; 0 if not yet charged
|
|
168
|
+
* @type {number}
|
|
169
|
+
* @memberof DocumentVersionMetadata
|
|
170
|
+
*/
|
|
171
|
+
quotaMediaMinutes?: number;
|
|
160
172
|
/**
|
|
161
173
|
* Stable consume key (matches workflow_id); 'UNSET' for pre-Phase-2 docs so refund logic short-circuits
|
|
162
174
|
* @type {string}
|
|
@@ -34,6 +34,7 @@ export function DocumentVersionMetadataFromJSONTyped(json, ignoreDiscriminator)
|
|
|
34
34
|
'preconversionSourceS3': json['preconversion_source_s3'] == null ? undefined : json['preconversion_source_s3'],
|
|
35
35
|
'citedSourceS3': json['cited_source_s3'] == null ? undefined : json['cited_source_s3'],
|
|
36
36
|
'fastPlaintextS3': json['fast_plaintext_s3'] == null ? undefined : json['fast_plaintext_s3'],
|
|
37
|
+
'transcriptS3': json['transcript_s3'] == null ? undefined : json['transcript_s3'],
|
|
37
38
|
'hash': json['hash'] == null ? undefined : json['hash'],
|
|
38
39
|
'pipelineState': json['pipeline_state'] == null ? undefined : PipelineStateFromJSON(json['pipeline_state']),
|
|
39
40
|
'totalPages': json['total_pages'] == null ? undefined : json['total_pages'],
|
|
@@ -50,6 +51,7 @@ export function DocumentVersionMetadataFromJSONTyped(json, ignoreDiscriminator)
|
|
|
50
51
|
'informationStatistics': json['information_statistics'] == null ? undefined : InformationStatisticsFromJSON(json['information_statistics']),
|
|
51
52
|
'quotaCharged': json['quota_charged'] == null ? undefined : json['quota_charged'],
|
|
52
53
|
'quotaPageCount': json['quota_page_count'] == null ? undefined : json['quota_page_count'],
|
|
54
|
+
'quotaMediaMinutes': json['quota_media_minutes'] == null ? undefined : json['quota_media_minutes'],
|
|
53
55
|
'quotaIdempotencyKey': json['quota_idempotency_key'] == null ? undefined : json['quota_idempotency_key'],
|
|
54
56
|
'fileMd5': json['file_md5'] == null ? undefined : json['file_md5'],
|
|
55
57
|
'idempotencyKey': json['idempotency_key'] == null ? undefined : json['idempotency_key'],
|
|
@@ -68,6 +70,7 @@ export function DocumentVersionMetadataToJSONTyped(value, ignoreDiscriminator =
|
|
|
68
70
|
'preconversion_source_s3': value['preconversionSourceS3'],
|
|
69
71
|
'cited_source_s3': value['citedSourceS3'],
|
|
70
72
|
'fast_plaintext_s3': value['fastPlaintextS3'],
|
|
73
|
+
'transcript_s3': value['transcriptS3'],
|
|
71
74
|
'hash': value['hash'],
|
|
72
75
|
'pipeline_state': PipelineStateToJSON(value['pipelineState']),
|
|
73
76
|
'total_pages': value['totalPages'],
|
|
@@ -84,6 +87,7 @@ export function DocumentVersionMetadataToJSONTyped(value, ignoreDiscriminator =
|
|
|
84
87
|
'information_statistics': InformationStatisticsToJSON(value['informationStatistics']),
|
|
85
88
|
'quota_charged': value['quotaCharged'],
|
|
86
89
|
'quota_page_count': value['quotaPageCount'],
|
|
90
|
+
'quota_media_minutes': value['quotaMediaMinutes'],
|
|
87
91
|
'quota_idempotency_key': value['quotaIdempotencyKey'],
|
|
88
92
|
'file_md5': value['fileMd5'],
|
|
89
93
|
'idempotency_key': value['idempotencyKey'],
|
|
@@ -57,6 +57,12 @@ export interface DocumentVersionMetadataUpdate {
|
|
|
57
57
|
* @memberof DocumentVersionMetadataUpdate
|
|
58
58
|
*/
|
|
59
59
|
fastPlaintextS3?: string | null;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof DocumentVersionMetadataUpdate
|
|
64
|
+
*/
|
|
65
|
+
transcriptS3?: string | null;
|
|
60
66
|
/**
|
|
61
67
|
*
|
|
62
68
|
* @type {string}
|
|
@@ -169,6 +175,12 @@ export interface DocumentVersionMetadataUpdate {
|
|
|
169
175
|
* @memberof DocumentVersionMetadataUpdate
|
|
170
176
|
*/
|
|
171
177
|
quotaPageCount?: number | null;
|
|
178
|
+
/**
|
|
179
|
+
*
|
|
180
|
+
* @type {number}
|
|
181
|
+
* @memberof DocumentVersionMetadataUpdate
|
|
182
|
+
*/
|
|
183
|
+
quotaMediaMinutes?: number | null;
|
|
172
184
|
/**
|
|
173
185
|
*
|
|
174
186
|
* @type {string}
|
|
@@ -35,6 +35,7 @@ export function DocumentVersionMetadataUpdateFromJSONTyped(json, ignoreDiscrimin
|
|
|
35
35
|
'citedSourceS3': json['cited_source_s3'] == null ? undefined : json['cited_source_s3'],
|
|
36
36
|
'standardPipelineJsonS3': json['standard_pipeline_json_s3'] == null ? undefined : json['standard_pipeline_json_s3'],
|
|
37
37
|
'fastPlaintextS3': json['fast_plaintext_s3'] == null ? undefined : json['fast_plaintext_s3'],
|
|
38
|
+
'transcriptS3': json['transcript_s3'] == null ? undefined : json['transcript_s3'],
|
|
38
39
|
'highAccuracyContentListS3': json['high_accuracy_content_list_s3'] == null ? undefined : json['high_accuracy_content_list_s3'],
|
|
39
40
|
'highAccuracyMiddleS3': json['high_accuracy_middle_s3'] == null ? undefined : json['high_accuracy_middle_s3'],
|
|
40
41
|
'hash': json['hash'] == null ? undefined : json['hash'],
|
|
@@ -53,6 +54,7 @@ export function DocumentVersionMetadataUpdateFromJSONTyped(json, ignoreDiscrimin
|
|
|
53
54
|
'informationStatistics': json['information_statistics'] == null ? undefined : InformationStatisticsFromJSON(json['information_statistics']),
|
|
54
55
|
'quotaCharged': json['quota_charged'] == null ? undefined : json['quota_charged'],
|
|
55
56
|
'quotaPageCount': json['quota_page_count'] == null ? undefined : json['quota_page_count'],
|
|
57
|
+
'quotaMediaMinutes': json['quota_media_minutes'] == null ? undefined : json['quota_media_minutes'],
|
|
56
58
|
'quotaIdempotencyKey': json['quota_idempotency_key'] == null ? undefined : json['quota_idempotency_key'],
|
|
57
59
|
'fileMd5': json['file_md5'] == null ? undefined : json['file_md5'],
|
|
58
60
|
};
|
|
@@ -71,6 +73,7 @@ export function DocumentVersionMetadataUpdateToJSONTyped(value, ignoreDiscrimina
|
|
|
71
73
|
'cited_source_s3': value['citedSourceS3'],
|
|
72
74
|
'standard_pipeline_json_s3': value['standardPipelineJsonS3'],
|
|
73
75
|
'fast_plaintext_s3': value['fastPlaintextS3'],
|
|
76
|
+
'transcript_s3': value['transcriptS3'],
|
|
74
77
|
'high_accuracy_content_list_s3': value['highAccuracyContentListS3'],
|
|
75
78
|
'high_accuracy_middle_s3': value['highAccuracyMiddleS3'],
|
|
76
79
|
'hash': value['hash'],
|
|
@@ -89,6 +92,7 @@ export function DocumentVersionMetadataUpdateToJSONTyped(value, ignoreDiscrimina
|
|
|
89
92
|
'information_statistics': InformationStatisticsToJSON(value['informationStatistics']),
|
|
90
93
|
'quota_charged': value['quotaCharged'],
|
|
91
94
|
'quota_page_count': value['quotaPageCount'],
|
|
95
|
+
'quota_media_minutes': value['quotaMediaMinutes'],
|
|
92
96
|
'quota_idempotency_key': value['quotaIdempotencyKey'],
|
|
93
97
|
'file_md5': value['fileMd5'],
|
|
94
98
|
};
|
|
@@ -104,6 +104,12 @@ export interface DocumentVersionResponse {
|
|
|
104
104
|
* @memberof DocumentVersionResponse
|
|
105
105
|
*/
|
|
106
106
|
fastPlaintextUrl?: string | null;
|
|
107
|
+
/**
|
|
108
|
+
* Presigned URL (6-hour validity) to the ASR transcript JSON with per-segment start_ms/end_ms/text; null for non-media. Chunks pack many segments into one, so this is what a client reads to follow a recording line by line.
|
|
109
|
+
* @type {string}
|
|
110
|
+
* @memberof DocumentVersionResponse
|
|
111
|
+
*/
|
|
112
|
+
transcriptUrl?: string | null;
|
|
107
113
|
/**
|
|
108
114
|
* Presigned URLs (6-hour validity) to per-page WEBP screenshots in page order: index 0 is page 1, index N-1 is page N. Populated only when the request includes include_page_screenshots=true; null otherwise.
|
|
109
115
|
* @type {Array<string>}
|
|
@@ -64,6 +64,7 @@ export function DocumentVersionResponseFromJSONTyped(json, ignoreDiscriminator)
|
|
|
64
64
|
'assetS3Url': json['asset_s3_url'] == null ? undefined : json['asset_s3_url'],
|
|
65
65
|
'citedAssetS3Url': json['cited_asset_s3_url'] == null ? undefined : json['cited_asset_s3_url'],
|
|
66
66
|
'fastPlaintextUrl': json['fast_plaintext_url'] == null ? undefined : json['fast_plaintext_url'],
|
|
67
|
+
'transcriptUrl': json['transcript_url'] == null ? undefined : json['transcript_url'],
|
|
67
68
|
'pageScreenshotUrls': json['page_screenshot_urls'] == null ? undefined : json['page_screenshot_urls'],
|
|
68
69
|
'systemMetadata': json['system_metadata'] == null ? undefined : DocumentVersionMetadataFromJSON(json['system_metadata']),
|
|
69
70
|
};
|
|
@@ -90,6 +91,7 @@ export function DocumentVersionResponseToJSONTyped(value, ignoreDiscriminator =
|
|
|
90
91
|
'asset_s3_url': value['assetS3Url'],
|
|
91
92
|
'cited_asset_s3_url': value['citedAssetS3Url'],
|
|
92
93
|
'fast_plaintext_url': value['fastPlaintextUrl'],
|
|
94
|
+
'transcript_url': value['transcriptUrl'],
|
|
93
95
|
'page_screenshot_urls': value['pageScreenshotUrls'],
|
|
94
96
|
'system_metadata': DocumentVersionMetadataToJSON(value['systemMetadata']),
|
|
95
97
|
};
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
export declare const DownloadArtifact: {
|
|
17
17
|
readonly Source: 'source';
|
|
18
18
|
readonly FastPlaintext: 'fast_plaintext';
|
|
19
|
+
readonly Transcript: 'transcript';
|
|
19
20
|
};
|
|
20
21
|
export type DownloadArtifact = typeof DownloadArtifact[keyof typeof DownloadArtifact];
|
|
21
22
|
export declare function instanceOfDownloadArtifact(value: any): boolean;
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
*/
|
|
18
18
|
export const DownloadArtifact = {
|
|
19
19
|
Source: 'source',
|
|
20
|
-
FastPlaintext: 'fast_plaintext'
|
|
20
|
+
FastPlaintext: 'fast_plaintext',
|
|
21
|
+
Transcript: 'transcript'
|
|
21
22
|
};
|
|
22
23
|
export function instanceOfDownloadArtifact(value) {
|
|
23
24
|
for (const key in DownloadArtifact) {
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management. ## Integrating (RPA / machine clients) **Base URL.** Knowledge Stack is self-hosted — point at your own deployment host (see `servers`). The `localhost` entry is for local development only. **Authentication.** Send `Authorization: Bearer <api-key>` on every request. Mint an API key once via `POST /v1/api-keys` from a signed-in browser session; the raw `sk-user-...` secret is returned **only** at creation, so store it then. A key inherits its owning user\'s live tenant role and path permissions — create RPA keys from a least-privilege user, and set `expires_at` for rotation. The `ks_uat` cookie scheme is browser-only and cannot be used by headless clients. **Async work is polled, not pushed.** There are no outbound webhooks. - `POST /v1/documents/ingest` returns `201` immediately with a `workflow_id`; poll `GET /v1/system-jobs/document_versions/{workflow_id}` until `status` is terminal (anything other than `pending`/`processing`). The `Location` response header points at this poll resource. - `POST /v1/workflow-runs/{run_id}/start` returns `202`; poll `GET /v1/workflow-runs/{run_id}` until `execution_state` is `COMPLETED` or `FAILED`. The `Location` header points at the run resource. - `POST /v1/agent/ask` is **synchronous** — it blocks until the agent finishes and returns the answer inline. Use a generous HTTP timeout. **Pagination.** List endpoints accept `limit`/`offset` and return `{items, total, limit, offset}`. **Errors.** Every non-2xx body is `{detail, code, request_id}`. `code` is a stable value from a closed set (see the `ErrorResponse` schema\'s `code` enum) — branch on it rather than parsing `detail`. Quota rejections return `429` with a `Retry-After` header; transient lock contention returns a retryable `503`. Quote `request_id` (also the `x-request-id` response header) to support. **Idempotency.** `POST /v1/workflow-runs` accepts an `idempotency_key` to dedupe retried run creation. `agent/ask` charges one message *before* running and does not refund a client-cancelled call.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
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 ASR segment's span inside a media chunk (media chunks only).
|
|
14
|
+
*
|
|
15
|
+
* Field names are deliberately compact — a media document stores hundreds
|
|
16
|
+
* of chunks x up to ~15 spans each in ``chunk_metadata`` JSONB.
|
|
17
|
+
* @export
|
|
18
|
+
* @interface SegmentSpan
|
|
19
|
+
*/
|
|
20
|
+
export interface SegmentSpan {
|
|
21
|
+
/**
|
|
22
|
+
* Segment start in the media, ms from start.
|
|
23
|
+
* @type {number}
|
|
24
|
+
* @memberof SegmentSpan
|
|
25
|
+
*/
|
|
26
|
+
s: number;
|
|
27
|
+
/**
|
|
28
|
+
* Segment end in the media, ms from start.
|
|
29
|
+
* @type {number}
|
|
30
|
+
* @memberof SegmentSpan
|
|
31
|
+
*/
|
|
32
|
+
e: number;
|
|
33
|
+
/**
|
|
34
|
+
* Character offset of this segment's text within the chunk's joined content — maps a position in the chunk text back to a moment in the recording.
|
|
35
|
+
* @type {number}
|
|
36
|
+
* @memberof SegmentSpan
|
|
37
|
+
*/
|
|
38
|
+
c: number;
|
|
39
|
+
}
|
|
40
|
+
export declare const SegmentSpanPropertyValidationAttributesMap: {
|
|
41
|
+
[property: string]: {
|
|
42
|
+
maxLength?: number;
|
|
43
|
+
minLength?: number;
|
|
44
|
+
pattern?: string;
|
|
45
|
+
maximum?: number;
|
|
46
|
+
exclusiveMaximum?: boolean;
|
|
47
|
+
minimum?: number;
|
|
48
|
+
exclusiveMinimum?: boolean;
|
|
49
|
+
multipleOf?: number;
|
|
50
|
+
maxItems?: number;
|
|
51
|
+
minItems?: number;
|
|
52
|
+
uniqueItems?: boolean;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the SegmentSpan interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfSegmentSpan(value: object): value is SegmentSpan;
|
|
59
|
+
export declare function SegmentSpanFromJSON(json: any): SegmentSpan;
|
|
60
|
+
export declare function SegmentSpanFromJSONTyped(json: any, ignoreDiscriminator: boolean): SegmentSpan;
|
|
61
|
+
export declare function SegmentSpanToJSON(json: any): SegmentSpan;
|
|
62
|
+
export declare function SegmentSpanToJSONTyped(value?: SegmentSpan | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management. ## Integrating (RPA / machine clients) **Base URL.** Knowledge Stack is self-hosted — point at your own deployment host (see `servers`). The `localhost` entry is for local development only. **Authentication.** Send `Authorization: Bearer <api-key>` on every request. Mint an API key once via `POST /v1/api-keys` from a signed-in browser session; the raw `sk-user-...` secret is returned **only** at creation, so store it then. A key inherits its owning user\'s live tenant role and path permissions — create RPA keys from a least-privilege user, and set `expires_at` for rotation. The `ks_uat` cookie scheme is browser-only and cannot be used by headless clients. **Async work is polled, not pushed.** There are no outbound webhooks. - `POST /v1/documents/ingest` returns `201` immediately with a `workflow_id`; poll `GET /v1/system-jobs/document_versions/{workflow_id}` until `status` is terminal (anything other than `pending`/`processing`). The `Location` response header points at this poll resource. - `POST /v1/workflow-runs/{run_id}/start` returns `202`; poll `GET /v1/workflow-runs/{run_id}` until `execution_state` is `COMPLETED` or `FAILED`. The `Location` header points at the run resource. - `POST /v1/agent/ask` is **synchronous** — it blocks until the agent finishes and returns the answer inline. Use a generous HTTP timeout. **Pagination.** List endpoints accept `limit`/`offset` and return `{items, total, limit, offset}`. **Errors.** Every non-2xx body is `{detail, code, request_id}`. `code` is a stable value from a closed set (see the `ErrorResponse` schema\'s `code` enum) — branch on it rather than parsing `detail`. Quota rejections return `429` with a `Retry-After` header; transient lock contention returns a retryable `503`. Quote `request_id` (also the `x-request-id` response header) to support. **Idempotency.** `POST /v1/workflow-runs` accepts an `idempotency_key` to dedupe retried run creation. `agent/ask` charges one message *before* running and does not refund a client-cancelled call.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.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
|
+
export const SegmentSpanPropertyValidationAttributesMap = {};
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the SegmentSpan interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfSegmentSpan(value) {
|
|
19
|
+
if (!('s' in value) || value['s'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('e' in value) || value['e'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('c' in value) || value['c'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
export function SegmentSpanFromJSON(json) {
|
|
28
|
+
return SegmentSpanFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function SegmentSpanFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
's': json['s'],
|
|
36
|
+
'e': json['e'],
|
|
37
|
+
'c': json['c'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export function SegmentSpanToJSON(json) {
|
|
41
|
+
return SegmentSpanToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
export function SegmentSpanToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
's': value['s'],
|
|
49
|
+
'e': value['e'],
|
|
50
|
+
'c': value['c'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -34,6 +34,18 @@ export interface UploadConstraints {
|
|
|
34
34
|
* @memberof UploadConstraints
|
|
35
35
|
*/
|
|
36
36
|
maxImageBytes: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof UploadConstraints
|
|
41
|
+
*/
|
|
42
|
+
maxMediaBytes: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof UploadConstraints
|
|
47
|
+
*/
|
|
48
|
+
maxVideoBytes: number;
|
|
37
49
|
}
|
|
38
50
|
export declare const UploadConstraintsPropertyValidationAttributesMap: {
|
|
39
51
|
[property: string]: {
|
|
@@ -23,6 +23,10 @@ export function instanceOfUploadConstraints(value) {
|
|
|
23
23
|
return false;
|
|
24
24
|
if (!('maxImageBytes' in value) || value['maxImageBytes'] === undefined)
|
|
25
25
|
return false;
|
|
26
|
+
if (!('maxMediaBytes' in value) || value['maxMediaBytes'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('maxVideoBytes' in value) || value['maxVideoBytes'] === undefined)
|
|
29
|
+
return false;
|
|
26
30
|
return true;
|
|
27
31
|
}
|
|
28
32
|
export function UploadConstraintsFromJSON(json) {
|
|
@@ -36,6 +40,8 @@ export function UploadConstraintsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
40
|
'formats': (json['formats'].map(UploadFormatFromJSON)),
|
|
37
41
|
'maxBytes': json['max_bytes'],
|
|
38
42
|
'maxImageBytes': json['max_image_bytes'],
|
|
43
|
+
'maxMediaBytes': json['max_media_bytes'],
|
|
44
|
+
'maxVideoBytes': json['max_video_bytes'],
|
|
39
45
|
};
|
|
40
46
|
}
|
|
41
47
|
export function UploadConstraintsToJSON(json) {
|
|
@@ -49,5 +55,7 @@ export function UploadConstraintsToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
49
55
|
'formats': (value['formats'].map(UploadFormatToJSON)),
|
|
50
56
|
'max_bytes': value['maxBytes'],
|
|
51
57
|
'max_image_bytes': value['maxImageBytes'],
|
|
58
|
+
'max_media_bytes': value['maxMediaBytes'],
|
|
59
|
+
'max_video_bytes': value['maxVideoBytes'],
|
|
52
60
|
};
|
|
53
61
|
}
|
|
@@ -265,6 +265,7 @@ export * from './SectionContentItem';
|
|
|
265
265
|
export * from './SectionContentItemOrChunkContentItem';
|
|
266
266
|
export * from './SectionResponse';
|
|
267
267
|
export * from './SectionSystemMetadata';
|
|
268
|
+
export * from './SegmentSpan';
|
|
268
269
|
export * from './SendPasswordResetRequest';
|
|
269
270
|
export * from './SetApprovalStateRequest';
|
|
270
271
|
export * from './SetWorkflowRunApprovalRequest';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -267,6 +267,7 @@ export * from './SectionContentItem';
|
|
|
267
267
|
export * from './SectionContentItemOrChunkContentItem';
|
|
268
268
|
export * from './SectionResponse';
|
|
269
269
|
export * from './SectionSystemMetadata';
|
|
270
|
+
export * from './SegmentSpan';
|
|
270
271
|
export * from './SendPasswordResetRequest';
|
|
271
272
|
export * from './SetApprovalStateRequest';
|
|
272
273
|
export * from './SetWorkflowRunApprovalRequest';
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { SegmentSpan } from './SegmentSpan';
|
|
12
13
|
import type { ImageTaxonomy } from './ImageTaxonomy';
|
|
13
14
|
import type { PolygonReference } from './PolygonReference';
|
|
14
15
|
/**
|
|
@@ -65,6 +66,12 @@ export interface ChunkMetadata {
|
|
|
65
66
|
* @memberof ChunkMetadata
|
|
66
67
|
*/
|
|
67
68
|
endMs?: number | null;
|
|
69
|
+
/**
|
|
70
|
+
* Per-ASR-segment spans inside this media chunk, in order, each carrying its char offset in the chunk content. Lets citation resolution narrow a chunk-level timeframe to the enclosing segment. None for non-media chunks and media ingested before this field existed.
|
|
71
|
+
* @type {Array<SegmentSpan>}
|
|
72
|
+
* @memberof ChunkMetadata
|
|
73
|
+
*/
|
|
74
|
+
segments?: Array<SegmentSpan> | null;
|
|
68
75
|
/**
|
|
69
76
|
* Worksheet name this chunk was extracted from (XLSX only)
|
|
70
77
|
* @type {string}
|
|
@@ -19,6 +19,7 @@ exports.ChunkMetadataFromJSON = ChunkMetadataFromJSON;
|
|
|
19
19
|
exports.ChunkMetadataFromJSONTyped = ChunkMetadataFromJSONTyped;
|
|
20
20
|
exports.ChunkMetadataToJSON = ChunkMetadataToJSON;
|
|
21
21
|
exports.ChunkMetadataToJSONTyped = ChunkMetadataToJSONTyped;
|
|
22
|
+
const SegmentSpan_1 = require("./SegmentSpan");
|
|
22
23
|
const ImageTaxonomy_1 = require("./ImageTaxonomy");
|
|
23
24
|
const PolygonReference_1 = require("./PolygonReference");
|
|
24
25
|
exports.ChunkMetadataPropertyValidationAttributesMap = {};
|
|
@@ -44,6 +45,7 @@ function ChunkMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
45
|
'secondaryTaxonomy': json['secondary_taxonomy'] == null ? undefined : (0, ImageTaxonomy_1.ImageTaxonomyFromJSON)(json['secondary_taxonomy']),
|
|
45
46
|
'startMs': json['start_ms'] == null ? undefined : json['start_ms'],
|
|
46
47
|
'endMs': json['end_ms'] == null ? undefined : json['end_ms'],
|
|
48
|
+
'segments': json['segments'] == null ? undefined : (json['segments'].map(SegmentSpan_1.SegmentSpanFromJSON)),
|
|
47
49
|
'sheetName': json['sheet_name'] == null ? undefined : json['sheet_name'],
|
|
48
50
|
'blockType': json['block_type'] == null ? undefined : json['block_type'],
|
|
49
51
|
'sourceUri': json['source_uri'] == null ? undefined : json['source_uri'],
|
|
@@ -71,6 +73,7 @@ function ChunkMetadataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
71
73
|
'secondary_taxonomy': (0, ImageTaxonomy_1.ImageTaxonomyToJSON)(value['secondaryTaxonomy']),
|
|
72
74
|
'start_ms': value['startMs'],
|
|
73
75
|
'end_ms': value['endMs'],
|
|
76
|
+
'segments': value['segments'] == null ? undefined : (value['segments'].map(SegmentSpan_1.SegmentSpanToJSON)),
|
|
74
77
|
'sheet_name': value['sheetName'],
|
|
75
78
|
'block_type': value['blockType'],
|
|
76
79
|
'source_uri': value['sourceUri'],
|
|
@@ -57,6 +57,12 @@ export interface DocumentVersionMetadata {
|
|
|
57
57
|
* @memberof DocumentVersionMetadata
|
|
58
58
|
*/
|
|
59
59
|
fastPlaintextS3?: string | null;
|
|
60
|
+
/**
|
|
61
|
+
* S3 URI of the ASR transcript JSON (per-segment start_ms/end_ms/text); null for non-media. Chunks carry timings too, but at merged-chunk granularity, so this is the only per-segment source.
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof DocumentVersionMetadata
|
|
64
|
+
*/
|
|
65
|
+
transcriptS3?: string | null;
|
|
60
66
|
/**
|
|
61
67
|
* Base64-encoded SHA256 hash of the uploaded source file
|
|
62
68
|
* @type {string}
|
|
@@ -157,6 +163,12 @@ export interface DocumentVersionMetadata {
|
|
|
157
163
|
* @memberof DocumentVersionMetadata
|
|
158
164
|
*/
|
|
159
165
|
quotaPageCount?: number;
|
|
166
|
+
/**
|
|
167
|
+
* MEDIA_MINUTE quantity charged at media preparation; 0 if not yet charged
|
|
168
|
+
* @type {number}
|
|
169
|
+
* @memberof DocumentVersionMetadata
|
|
170
|
+
*/
|
|
171
|
+
quotaMediaMinutes?: number;
|
|
160
172
|
/**
|
|
161
173
|
* Stable consume key (matches workflow_id); 'UNSET' for pre-Phase-2 docs so refund logic short-circuits
|
|
162
174
|
* @type {string}
|
|
@@ -42,6 +42,7 @@ function DocumentVersionMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
42
|
'preconversionSourceS3': json['preconversion_source_s3'] == null ? undefined : json['preconversion_source_s3'],
|
|
43
43
|
'citedSourceS3': json['cited_source_s3'] == null ? undefined : json['cited_source_s3'],
|
|
44
44
|
'fastPlaintextS3': json['fast_plaintext_s3'] == null ? undefined : json['fast_plaintext_s3'],
|
|
45
|
+
'transcriptS3': json['transcript_s3'] == null ? undefined : json['transcript_s3'],
|
|
45
46
|
'hash': json['hash'] == null ? undefined : json['hash'],
|
|
46
47
|
'pipelineState': json['pipeline_state'] == null ? undefined : (0, PipelineState_1.PipelineStateFromJSON)(json['pipeline_state']),
|
|
47
48
|
'totalPages': json['total_pages'] == null ? undefined : json['total_pages'],
|
|
@@ -58,6 +59,7 @@ function DocumentVersionMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
59
|
'informationStatistics': json['information_statistics'] == null ? undefined : (0, InformationStatistics_1.InformationStatisticsFromJSON)(json['information_statistics']),
|
|
59
60
|
'quotaCharged': json['quota_charged'] == null ? undefined : json['quota_charged'],
|
|
60
61
|
'quotaPageCount': json['quota_page_count'] == null ? undefined : json['quota_page_count'],
|
|
62
|
+
'quotaMediaMinutes': json['quota_media_minutes'] == null ? undefined : json['quota_media_minutes'],
|
|
61
63
|
'quotaIdempotencyKey': json['quota_idempotency_key'] == null ? undefined : json['quota_idempotency_key'],
|
|
62
64
|
'fileMd5': json['file_md5'] == null ? undefined : json['file_md5'],
|
|
63
65
|
'idempotencyKey': json['idempotency_key'] == null ? undefined : json['idempotency_key'],
|
|
@@ -76,6 +78,7 @@ function DocumentVersionMetadataToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
76
78
|
'preconversion_source_s3': value['preconversionSourceS3'],
|
|
77
79
|
'cited_source_s3': value['citedSourceS3'],
|
|
78
80
|
'fast_plaintext_s3': value['fastPlaintextS3'],
|
|
81
|
+
'transcript_s3': value['transcriptS3'],
|
|
79
82
|
'hash': value['hash'],
|
|
80
83
|
'pipeline_state': (0, PipelineState_1.PipelineStateToJSON)(value['pipelineState']),
|
|
81
84
|
'total_pages': value['totalPages'],
|
|
@@ -92,6 +95,7 @@ function DocumentVersionMetadataToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
92
95
|
'information_statistics': (0, InformationStatistics_1.InformationStatisticsToJSON)(value['informationStatistics']),
|
|
93
96
|
'quota_charged': value['quotaCharged'],
|
|
94
97
|
'quota_page_count': value['quotaPageCount'],
|
|
98
|
+
'quota_media_minutes': value['quotaMediaMinutes'],
|
|
95
99
|
'quota_idempotency_key': value['quotaIdempotencyKey'],
|
|
96
100
|
'file_md5': value['fileMd5'],
|
|
97
101
|
'idempotency_key': value['idempotencyKey'],
|