Skip to content

Commit 447520f

Browse files
author
ks-release-bot
committed
chore(release): regenerate ksapi v1.157.0 from ks-backend
1 parent 7b43e9e commit 447520f

43 files changed

Lines changed: 379 additions & 29 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.openapi-generator/FILES‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ docs/SectionContentItemOrChunkContentItem.md
297297
docs/SectionResponse.md
298298
docs/SectionSystemMetadata.md
299299
docs/SectionsApi.md
300+
docs/SegmentSpan.md
300301
docs/SendPasswordResetRequest.md
301302
docs/SetApprovalStateRequest.md
302303
docs/SetWorkflowRunApprovalRequest.md
@@ -739,6 +740,7 @@ ksapi/models/section_content_item.py
739740
ksapi/models/section_content_item_or_chunk_content_item.py
740741
ksapi/models/section_response.py
741742
ksapi/models/section_system_metadata.py
743+
ksapi/models/segment_span.py
742744
ksapi/models/send_password_reset_request.py
743745
ksapi/models/set_approval_state_request.py
744746
ksapi/models/set_workflow_run_approval_request.py
@@ -1154,6 +1156,7 @@ test/test_section_content_item_or_chunk_content_item.py
11541156
test/test_section_response.py
11551157
test/test_section_system_metadata.py
11561158
test/test_sections_api.py
1159+
test/test_segment_span.py
11571160
test/test_send_password_reset_request.py
11581161
test/test_set_approval_state_request.py
11591162
test/test_set_workflow_run_approval_request.py

‎docs/ChunkMetadata.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
1414
**secondary_taxonomy** | [**ImageTaxonomy**](ImageTaxonomy.md) | | [optional]
1515
**start_ms** | **int** | Start time of this chunk in the source media (ms from start). | [optional]
1616
**end_ms** | **int** | End time of this chunk in the source media (ms from start). | [optional]
17+
**segments** | [**List[SegmentSpan]**](SegmentSpan.md) | 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. | [optional]
1718
**sheet_name** | **str** | Worksheet name this chunk was extracted from (XLSX only) | [optional]
1819
**block_type** | **str** | XLSXParser block type (e.g. table, calculation_block, chart_anchor) | [optional]
1920
**source_uri** | **str** | Cell range URI reference in the source workbook (XLSX only) | [optional]

‎docs/DocumentVersionMetadata.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Name | Type | Description | Notes
2828
**information_statistics** | [**InformationStatistics**](InformationStatistics.md) | Aggregate statistics for the document version (tokens, chunk counts, depth) | [optional]
2929
**quota_charged** | **bool** | True once the conversion activity successfully consumed PAGE quota | [optional] [default to False]
3030
**quota_page_count** | **int** | Page quantity charged at conversion start; 0 if not yet charged | [optional] [default to 0]
31+
**quota_media_minutes** | **int** | MEDIA_MINUTE quantity charged at media preparation; 0 if not yet charged | [optional] [default to 0]
3132
**quota_idempotency_key** | **str** | Stable consume key (matches workflow_id); 'UNSET' for pre-Phase-2 docs so refund logic short-circuits | [optional] [default to 'UNSET']
3233
**file_md5** | **str** | MD5 of source bytes; 'UNSET' for pre-Phase-2 docs, real hex digest after first prep run | [optional] [default to 'UNSET']
3334
**idempotency_key** | **str** | Opt-in create key. A repeat ingest with the same key at the same (parent, name) replays this document instead of colliding — makes a ZIP fan-out member retry idempotent. | [optional]

‎docs/DocumentVersionMetadataUpdate.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Name | Type | Description | Notes
3131
**information_statistics** | [**InformationStatistics**](InformationStatistics.md) | | [optional]
3232
**quota_charged** | **bool** | | [optional]
3333
**quota_page_count** | **int** | | [optional]
34+
**quota_media_minutes** | **int** | | [optional]
3435
**quota_idempotency_key** | **str** | | [optional]
3536
**file_md5** | **str** | | [optional]
3637

‎docs/DocumentVersionsApi.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ with ksapi.ApiClient(configuration) as api_client:
517517
# Create an instance of the API class
518518
api_instance = ksapi.DocumentVersionsApi(api_client)
519519
version_id = UUID('38400000-8cf0-11bd-b23e-10b96e4ef00d') # UUID | DocumentVersion ID
520-
artifact = ksapi.DownloadArtifact() # DownloadArtifact | Artifact to download: source or fast_plaintext (optional)
520+
artifact = ksapi.DownloadArtifact() # DownloadArtifact | Artifact to download: source, fast_plaintext, or transcript (media only) (optional)
521521

522522
try:
523523
# Download Document Version Handler
@@ -536,7 +536,7 @@ with ksapi.ApiClient(configuration) as api_client:
536536
Name | Type | Description | Notes
537537
------------- | ------------- | ------------- | -------------
538538
**version_id** | **UUID**| DocumentVersion ID |
539-
**artifact** | [**DownloadArtifact**](.md)| Artifact to download: source or fast_plaintext | [optional]
539+
**artifact** | [**DownloadArtifact**](.md)| Artifact to download: source, fast_plaintext, or transcript (media only) | [optional]
540540

541541
### Return type
542542

‎docs/DocumentsApi.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ with ksapi.ApiClient(configuration) as api_client:
513513
# Create an instance of the API class
514514
api_instance = ksapi.DocumentsApi(api_client)
515515
document_id = UUID('38400000-8cf0-11bd-b23e-10b96e4ef00d') # UUID |
516-
artifact = ksapi.DownloadArtifact() # DownloadArtifact | Artifact to download: source or fast_plaintext (optional)
516+
artifact = ksapi.DownloadArtifact() # DownloadArtifact | Artifact to download: source, fast_plaintext, or transcript (media only) (optional)
517517

518518
try:
519519
# Download Document Handler
@@ -532,7 +532,7 @@ with ksapi.ApiClient(configuration) as api_client:
532532
Name | Type | Description | Notes
533533
------------- | ------------- | ------------- | -------------
534534
**document_id** | **UUID**| |
535-
**artifact** | [**DownloadArtifact**](.md)| Artifact to download: source or fast_plaintext | [optional]
535+
**artifact** | [**DownloadArtifact**](.md)| Artifact to download: source, fast_plaintext, or transcript (media only) | [optional]
536536

537537
### Return type
538538

‎docs/DownloadArtifact.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
* `FAST_PLAINTEXT` (value: `'fast_plaintext'`)
99

10+
* `TRANSCRIPT` (value: `'transcript'`)
11+
1012
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1113

1214

‎docs/SegmentSpan.md‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# SegmentSpan
2+
3+
One ASR segment's span inside a media chunk (media chunks only). Field names are deliberately compact — a media document stores hundreds of chunks x up to ~15 spans each in ``chunk_metadata`` JSONB.
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**s** | **int** | Segment start in the media, ms from start. |
10+
**e** | **int** | Segment end in the media, ms from start. |
11+
**c** | **int** | 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. |
12+
13+
## Example
14+
15+
```python
16+
from ksapi.models.segment_span import SegmentSpan
17+
18+
# TODO update the JSON string below
19+
json = "{}"
20+
# create an instance of SegmentSpan from a JSON string
21+
segment_span_instance = SegmentSpan.from_json(json)
22+
# print the JSON string representation of the object
23+
print(SegmentSpan.to_json())
24+
25+
# convert the object into a dict
26+
segment_span_dict = segment_span_instance.to_dict()
27+
# create an instance of SegmentSpan from a dict
28+
segment_span_from_dict = SegmentSpan.from_dict(segment_span_dict)
29+
```
30+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
31+
32+

‎docs/UploadConstraints.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Name | Type | Description | Notes
88
**formats** | [**List[UploadFormat]**](UploadFormat.md) | |
99
**max_bytes** | **int** | |
1010
**max_image_bytes** | **int** | |
11+
**max_media_bytes** | **int** | |
12+
**max_video_bytes** | **int** | |
1113

1214
## Example
1315

‎ksapi/__init__.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
""" # noqa: E501
1515

1616

17-
__version__ = "1.156.1"
17+
__version__ = "1.157.0"
1818

1919
# Define package exports
2020
__all__ = [
@@ -334,6 +334,7 @@
334334
"SectionContentItemOrChunkContentItem",
335335
"SectionResponse",
336336
"SectionSystemMetadata",
337+
"SegmentSpan",
337338
"SendPasswordResetRequest",
338339
"SetApprovalStateRequest",
339340
"SetWorkflowRunApprovalRequest",
@@ -771,6 +772,7 @@
771772
from ksapi.models.section_content_item_or_chunk_content_item import SectionContentItemOrChunkContentItem as SectionContentItemOrChunkContentItem
772773
from ksapi.models.section_response import SectionResponse as SectionResponse
773774
from ksapi.models.section_system_metadata import SectionSystemMetadata as SectionSystemMetadata
775+
from ksapi.models.segment_span import SegmentSpan as SegmentSpan
774776
from ksapi.models.send_password_reset_request import SendPasswordResetRequest as SendPasswordResetRequest
775777
from ksapi.models.set_approval_state_request import SetApprovalStateRequest as SetApprovalStateRequest
776778
from ksapi.models.set_workflow_run_approval_request import SetWorkflowRunApprovalRequest as SetWorkflowRunApprovalRequest

0 commit comments

Comments
 (0)