Skip to content

Commit 7b43e9e

Browse files
author
ks-release-bot
committed
chore(release): regenerate ksapi v1.156.1 from ks-backend
1 parent 7462ba5 commit 7b43e9e

18 files changed

Lines changed: 52 additions & 8 deletions

‎docs/DocumentVersionMetadata.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
1111
**preconversion_source_s3** | **str** | S3 URL to the original pre-conversion legacy Office file; null unless this version was converted from a legacy binary format. After conversion source_s3 points at the modern OOXML file and this field preserves the original for traceability. | [optional]
1212
**cited_source_s3** | **str** | S3 URL to the agent's cited copy of the source (KS Citation comments intact); null unless the agent uploaded a file carrying citations. Read only for the agent edit round-trip so a follow-up chat re-extracts citation anchors instead of losing them; source_s3 stays the clean artifact served to chunking, the FE viewer, and downloads. | [optional]
1313
**fast_plaintext_s3** | **str** | S3 URL to the fast plaintext export of the document | [optional]
14+
**transcript_s3** | **str** | 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. | [optional]
1415
**hash** | **str** | Base64-encoded SHA256 hash of the uploaded source file | [optional]
1516
**pipeline_state** | [**PipelineState**](PipelineState.md) | Current state of the ingestion pipeline workflow | [optional]
1617
**total_pages** | **int** | Total number of pages in the document | [optional]

‎docs/DocumentVersionMetadataUpdate.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
1212
**cited_source_s3** | **str** | | [optional]
1313
**standard_pipeline_json_s3** | **str** | | [optional]
1414
**fast_plaintext_s3** | **str** | | [optional]
15+
**transcript_s3** | **str** | | [optional]
1516
**high_accuracy_content_list_s3** | **str** | | [optional]
1617
**high_accuracy_middle_s3** | **str** | | [optional]
1718
**hash** | **str** | | [optional]

‎docs/DocumentVersionResponse.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Name | Type | Description | Notes
2020
**asset_s3_url** | **str** | Presigned URL to download the source document (6-hour validity) | [optional]
2121
**cited_asset_s3_url** | **str** | Presigned URL (6-hour validity) to the agent's cited copy of the source, with KS Citation comments intact; null unless one was stored. For the agent edit round-trip only — human downloads and the FE viewer use asset_s3_url (clean) and render citations from citation_anchors. | [optional]
2222
**fast_plaintext_url** | **str** | Presigned URL to download the fast plaintext export (6-hour validity) | [optional]
23+
**transcript_url** | **str** | 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. | [optional]
2324
**page_screenshot_urls** | **List[str]** | 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. | [optional]
2425
**system_metadata** | [**DocumentVersionMetadata**](DocumentVersionMetadata.md) | | [optional]
2526

‎ksapi/__init__.py‎

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

1616

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

1919
# Define package exports
2020
__all__ = [

‎ksapi/api_client.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def __init__(
9191
self.default_headers[header_name] = header_value
9292
self.cookie = cookie
9393
# Set default User-Agent.
94-
self.user_agent = 'OpenAPI-Generator/1.156.0/python'
94+
self.user_agent = 'OpenAPI-Generator/1.156.1/python'
9595
self.client_side_validation = configuration.client_side_validation
9696

9797
def __enter__(self):

‎ksapi/configuration.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ def to_debug_report(self) -> str:
562562
"OS: {env}\n"\
563563
"Python Version: {pyversion}\n"\
564564
"Version of the API: 0.1.0\n"\
565-
"SDK Package Version: 1.156.0".\
565+
"SDK Package Version: 1.156.1".\
566566
format(env=sys.platform, pyversion=sys.version)
567567

568568
def get_host_settings(self) -> List[HostSetting]:

‎ksapi/models/document_version_metadata.py‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ class DocumentVersionMetadata(BaseModel):
3535
preconversion_source_s3: Optional[StrictStr] = Field(default=None, description="S3 URL to the original pre-conversion legacy Office file; null unless this version was converted from a legacy binary format. After conversion source_s3 points at the modern OOXML file and this field preserves the original for traceability.")
3636
cited_source_s3: Optional[StrictStr] = Field(default=None, description="S3 URL to the agent's cited copy of the source (KS Citation comments intact); null unless the agent uploaded a file carrying citations. Read only for the agent edit round-trip so a follow-up chat re-extracts citation anchors instead of losing them; source_s3 stays the clean artifact served to chunking, the FE viewer, and downloads.")
3737
fast_plaintext_s3: Optional[StrictStr] = Field(default=None, description="S3 URL to the fast plaintext export of the document")
38+
transcript_s3: Optional[StrictStr] = Field(default=None, description="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.")
3839
hash: Optional[StrictStr] = Field(default=None, description="Base64-encoded SHA256 hash of the uploaded source file")
3940
pipeline_state: Optional[PipelineState] = Field(default=None, description="Current state of the ingestion pipeline workflow")
4041
total_pages: Optional[StrictInt] = Field(default=None, description="Total number of pages in the document")
@@ -55,7 +56,7 @@ class DocumentVersionMetadata(BaseModel):
5556
file_md5: Optional[StrictStr] = Field(default='UNSET', description="MD5 of source bytes; 'UNSET' for pre-Phase-2 docs, real hex digest after first prep run")
5657
idempotency_key: Optional[StrictStr] = Field(default=None, description="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.")
5758
additional_properties: Dict[str, Any] = {}
58-
__properties: ClassVar[List[str]] = ["source_s3", "cleaned_source_s3", "preconversion_source_s3", "cited_source_s3", "fast_plaintext_s3", "hash", "pipeline_state", "total_pages", "total_sections", "total_chunks", "duration_ms", "language", "segment_count", "total_formulas", "xlsx_parse_result_s3", "xlsx_named_ranges", "xlsx_kpi_catalog", "citation_anchors", "information_statistics", "quota_charged", "quota_page_count", "quota_idempotency_key", "file_md5", "idempotency_key"]
59+
__properties: ClassVar[List[str]] = ["source_s3", "cleaned_source_s3", "preconversion_source_s3", "cited_source_s3", "fast_plaintext_s3", "transcript_s3", "hash", "pipeline_state", "total_pages", "total_sections", "total_chunks", "duration_ms", "language", "segment_count", "total_formulas", "xlsx_parse_result_s3", "xlsx_named_ranges", "xlsx_kpi_catalog", "citation_anchors", "information_statistics", "quota_charged", "quota_page_count", "quota_idempotency_key", "file_md5", "idempotency_key"]
5960

6061
model_config = ConfigDict(
6162
validate_by_name=True,
@@ -141,6 +142,11 @@ def to_dict(self) -> Dict[str, Any]:
141142
if self.fast_plaintext_s3 is None and "fast_plaintext_s3" in self.model_fields_set:
142143
_dict['fast_plaintext_s3'] = None
143144

145+
# set to None if transcript_s3 (nullable) is None
146+
# and model_fields_set contains the field
147+
if self.transcript_s3 is None and "transcript_s3" in self.model_fields_set:
148+
_dict['transcript_s3'] = None
149+
144150
# set to None if hash (nullable) is None
145151
# and model_fields_set contains the field
146152
if self.hash is None and "hash" in self.model_fields_set:
@@ -233,6 +239,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
233239
"preconversion_source_s3": obj.get("preconversion_source_s3"),
234240
"cited_source_s3": obj.get("cited_source_s3"),
235241
"fast_plaintext_s3": obj.get("fast_plaintext_s3"),
242+
"transcript_s3": obj.get("transcript_s3"),
236243
"hash": obj.get("hash"),
237244
"pipeline_state": PipelineState.from_dict(obj["pipeline_state"]) if obj.get("pipeline_state") is not None else None,
238245
"total_pages": obj.get("total_pages"),

‎ksapi/models/document_version_metadata_update.py‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class DocumentVersionMetadataUpdate(BaseModel):
3636
cited_source_s3: Optional[StrictStr] = None
3737
standard_pipeline_json_s3: Optional[StrictStr] = None
3838
fast_plaintext_s3: Optional[StrictStr] = None
39+
transcript_s3: Optional[StrictStr] = None
3940
high_accuracy_content_list_s3: Optional[StrictStr] = None
4041
high_accuracy_middle_s3: Optional[StrictStr] = None
4142
hash: Optional[StrictStr] = None
@@ -56,7 +57,7 @@ class DocumentVersionMetadataUpdate(BaseModel):
5657
quota_page_count: Optional[StrictInt] = None
5758
quota_idempotency_key: Optional[StrictStr] = None
5859
file_md5: Optional[StrictStr] = None
59-
__properties: ClassVar[List[str]] = ["source_s3", "cleaned_source_s3", "preconversion_source_s3", "cited_source_s3", "standard_pipeline_json_s3", "fast_plaintext_s3", "high_accuracy_content_list_s3", "high_accuracy_middle_s3", "hash", "pipeline_state", "total_pages", "total_sections", "total_chunks", "duration_ms", "language", "segment_count", "total_formulas", "xlsx_parse_result_s3", "xlsx_named_ranges", "xlsx_kpi_catalog", "citation_anchors", "information_statistics", "quota_charged", "quota_page_count", "quota_idempotency_key", "file_md5"]
60+
__properties: ClassVar[List[str]] = ["source_s3", "cleaned_source_s3", "preconversion_source_s3", "cited_source_s3", "standard_pipeline_json_s3", "fast_plaintext_s3", "transcript_s3", "high_accuracy_content_list_s3", "high_accuracy_middle_s3", "hash", "pipeline_state", "total_pages", "total_sections", "total_chunks", "duration_ms", "language", "segment_count", "total_formulas", "xlsx_parse_result_s3", "xlsx_named_ranges", "xlsx_kpi_catalog", "citation_anchors", "information_statistics", "quota_charged", "quota_page_count", "quota_idempotency_key", "file_md5"]
6061

6162
model_config = ConfigDict(
6263
validate_by_name=True,
@@ -140,6 +141,11 @@ def to_dict(self) -> Dict[str, Any]:
140141
if self.fast_plaintext_s3 is None and "fast_plaintext_s3" in self.model_fields_set:
141142
_dict['fast_plaintext_s3'] = None
142143

144+
# set to None if transcript_s3 (nullable) is None
145+
# and model_fields_set contains the field
146+
if self.transcript_s3 is None and "transcript_s3" in self.model_fields_set:
147+
_dict['transcript_s3'] = None
148+
143149
# set to None if high_accuracy_content_list_s3 (nullable) is None
144150
# and model_fields_set contains the field
145151
if self.high_accuracy_content_list_s3 is None and "high_accuracy_content_list_s3" in self.model_fields_set:
@@ -258,6 +264,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
258264
"cited_source_s3": obj.get("cited_source_s3"),
259265
"standard_pipeline_json_s3": obj.get("standard_pipeline_json_s3"),
260266
"fast_plaintext_s3": obj.get("fast_plaintext_s3"),
267+
"transcript_s3": obj.get("transcript_s3"),
261268
"high_accuracy_content_list_s3": obj.get("high_accuracy_content_list_s3"),
262269
"high_accuracy_middle_s3": obj.get("high_accuracy_middle_s3"),
263270
"hash": obj.get("hash"),

‎ksapi/models/document_version_response.py‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,10 @@ class DocumentVersionResponse(BaseModel):
4545
asset_s3_url: Optional[StrictStr] = Field(default=None, description="Presigned URL to download the source document (6-hour validity)")
4646
cited_asset_s3_url: Optional[StrictStr] = Field(default=None, description="Presigned URL (6-hour validity) to the agent's cited copy of the source, with KS Citation comments intact; null unless one was stored. For the agent edit round-trip only — human downloads and the FE viewer use asset_s3_url (clean) and render citations from citation_anchors.")
4747
fast_plaintext_url: Optional[StrictStr] = Field(default=None, description="Presigned URL to download the fast plaintext export (6-hour validity)")
48+
transcript_url: Optional[StrictStr] = Field(default=None, description="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.")
4849
page_screenshot_urls: Optional[List[StrictStr]] = Field(default=None, description="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.")
4950
system_metadata: Optional[DocumentVersionMetadata] = None
50-
__properties: ClassVar[List[str]] = ["id", "path_part_id", "version", "name", "parent_path_id", "materialized_path", "system_managed", "tenant_id", "uploader", "created_at", "updated_at", "asset_s3_url", "cited_asset_s3_url", "fast_plaintext_url", "page_screenshot_urls", "system_metadata"]
51+
__properties: ClassVar[List[str]] = ["id", "path_part_id", "version", "name", "parent_path_id", "materialized_path", "system_managed", "tenant_id", "uploader", "created_at", "updated_at", "asset_s3_url", "cited_asset_s3_url", "fast_plaintext_url", "transcript_url", "page_screenshot_urls", "system_metadata"]
5152

5253
model_config = ConfigDict(
5354
validate_by_name=True,
@@ -114,6 +115,11 @@ def to_dict(self) -> Dict[str, Any]:
114115
if self.fast_plaintext_url is None and "fast_plaintext_url" in self.model_fields_set:
115116
_dict['fast_plaintext_url'] = None
116117

118+
# set to None if transcript_url (nullable) is None
119+
# and model_fields_set contains the field
120+
if self.transcript_url is None and "transcript_url" in self.model_fields_set:
121+
_dict['transcript_url'] = None
122+
117123
# set to None if page_screenshot_urls (nullable) is None
118124
# and model_fields_set contains the field
119125
if self.page_screenshot_urls is None and "page_screenshot_urls" in self.model_fields_set:
@@ -145,6 +151,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
145151
"asset_s3_url": obj.get("asset_s3_url"),
146152
"cited_asset_s3_url": obj.get("cited_asset_s3_url"),
147153
"fast_plaintext_url": obj.get("fast_plaintext_url"),
154+
"transcript_url": obj.get("transcript_url"),
148155
"page_screenshot_urls": obj.get("page_screenshot_urls"),
149156
"system_metadata": DocumentVersionMetadata.from_dict(obj["system_metadata"]) if obj.get("system_metadata") is not None else None
150157
})

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "ksapi"
3-
version = "1.156.0"
3+
version = "1.156.1"
44
description = "Knowledge Stack API"
55
authors = [
66
{name = "OpenAPI Generator Community",email = "team@openapitools.org"},

0 commit comments

Comments
 (0)