Skip to content

Commit 37be461

Browse files
author
ks-release-bot
committed
chore(release): regenerate ksapi v1.142.2 from ks-backend
1 parent a06c99f commit 37be461

21 files changed

Lines changed: 447 additions & 10 deletions

‎docs/DocumentVersionMetadata.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
99
**source_s3** | **str** | S3 URL to the source document (set by API on upload) | [optional]
1010
**cleaned_source_s3** | **str** | S3 URL to watermark-removed source document | [optional]
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]
12+
**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]
1213
**fast_plaintext_s3** | **str** | S3 URL to the fast plaintext export of the document | [optional]
1314
**hash** | **str** | Base64-encoded SHA256 hash of the uploaded source file | [optional]
1415
**pipeline_state** | [**PipelineState**](PipelineState.md) | Current state of the ingestion pipeline workflow | [optional]

‎docs/DocumentVersionMetadataUpdate.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
99
**source_s3** | **str** | | [optional]
1010
**cleaned_source_s3** | **str** | | [optional]
1111
**preconversion_source_s3** | **str** | | [optional]
12+
**cited_source_s3** | **str** | | [optional]
1213
**standard_pipeline_json_s3** | **str** | | [optional]
1314
**fast_plaintext_s3** | **str** | | [optional]
1415
**high_accuracy_content_list_s3** | **str** | | [optional]

‎docs/DocumentVersionResponse.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Name | Type | Description | Notes
1818
**created_at** | **datetime** | Creation timestamp |
1919
**updated_at** | **datetime** | Last update timestamp |
2020
**asset_s3_url** | **str** | Presigned URL to download the source document (6-hour validity) | [optional]
21+
**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]
2122
**fast_plaintext_url** | **str** | Presigned URL to download the fast plaintext export (6-hour validity) | [optional]
2223
**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]
2324
**system_metadata** | [**DocumentVersionMetadata**](DocumentVersionMetadata.md) | | [optional]

‎docs/DocumentVersionsApi.md‎

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ All URIs are relative to *http://localhost:8000*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7+
[**attach_cited_asset**](DocumentVersionsApi.md#attach_cited_asset) | **POST** /v1/document_versions/{version_id}/cited-asset | Attach Cited Asset Handler
78
[**clear_document_version_contents**](DocumentVersionsApi.md#clear_document_version_contents) | **DELETE** /v1/document_versions/{version_id}/contents | Clear Document Version Contents Handler
89
[**create_document_version**](DocumentVersionsApi.md#create_document_version) | **POST** /v1/documents/{document_id}/versions | Create Document Version Handler
910
[**delete_document_version**](DocumentVersionsApi.md#delete_document_version) | **DELETE** /v1/document_versions/{version_id} | Delete Document Version Handler
@@ -16,6 +17,98 @@ Method | HTTP request | Description
1617
[**update_document_version_metadata**](DocumentVersionsApi.md#update_document_version_metadata) | **PATCH** /v1/document_versions/{version_id}/metadata | Update Document Version Metadata Handler
1718

1819

20+
# **attach_cited_asset**
21+
> attach_cited_asset(version_id, file)
22+
23+
Attach Cited Asset Handler
24+
25+
Store the agent's cited copy of a version's source as its cited_source_s3 sibling.
26+
27+
The clean ``source_s3`` is untouched — chunking, the FE viewer, and downloads
28+
keep using it and render citations from ``citation_anchors``. The cited copy
29+
(KS Citation comments intact) is read only by the agent edit round-trip
30+
(``ks_download_to_sandbox``) so a follow-up chat re-extracts anchors instead
31+
of losing them. Requires write access to the version.
32+
33+
### Example
34+
35+
* Api Key Authentication (cookieAuth):
36+
* Bearer Authentication (bearerAuth):
37+
38+
```python
39+
import ksapi
40+
from ksapi.rest import ApiException
41+
from pprint import pprint
42+
43+
# Defining the host is optional and defaults to http://localhost:8000
44+
# See configuration.py for a list of all supported configuration parameters.
45+
configuration = ksapi.Configuration(
46+
host = "http://localhost:8000"
47+
)
48+
49+
# The client must configure the authentication and authorization parameters
50+
# in accordance with the API server security policy.
51+
# Examples for each auth method are provided below, use the example that
52+
# satisfies your auth use case.
53+
54+
# Configure API key authorization: cookieAuth
55+
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
56+
57+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
58+
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
59+
60+
# Configure Bearer authorization: bearerAuth
61+
configuration = ksapi.Configuration(
62+
access_token = os.environ["BEARER_TOKEN"]
63+
)
64+
65+
# Enter a context with an instance of the API client
66+
with ksapi.ApiClient(configuration) as api_client:
67+
# Create an instance of the API class
68+
api_instance = ksapi.DocumentVersionsApi(api_client)
69+
version_id = UUID('38400000-8cf0-11bd-b23e-10b96e4ef00d') # UUID | DocumentVersion ID
70+
file = None # bytes |
71+
72+
try:
73+
# Attach Cited Asset Handler
74+
api_instance.attach_cited_asset(version_id, file)
75+
except Exception as e:
76+
print("Exception when calling DocumentVersionsApi->attach_cited_asset: %s\n" % e)
77+
```
78+
79+
80+
81+
### Parameters
82+
83+
84+
Name | Type | Description | Notes
85+
------------- | ------------- | ------------- | -------------
86+
**version_id** | **UUID**| DocumentVersion ID |
87+
**file** | **bytes**| |
88+
89+
### Return type
90+
91+
void (empty response body)
92+
93+
### Authorization
94+
95+
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
96+
97+
### HTTP request headers
98+
99+
- **Content-Type**: multipart/form-data
100+
- **Accept**: application/json
101+
102+
### HTTP response details
103+
104+
| Status code | Description | Response headers |
105+
|-------------|-------------|------------------|
106+
**204** | Successful Response | - |
107+
**422** | Validation Error | - |
108+
**0** | Error response. | - |
109+
110+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
111+
19112
# **clear_document_version_contents**
20113
> ClearVersionContentsResponse clear_document_version_contents(version_id)
21114

‎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.142.1"
17+
__version__ = "1.142.2"
1818

1919
# Define package exports
2020
__all__ = [

0 commit comments

Comments
 (0)