Skip to content

Commit 57e69fc

Browse files
author
ks-release-bot
committed
chore(release): regenerate ksapi v1.122.1 from ks-backend
1 parent 84fe9e8 commit 57e69fc

9 files changed

Lines changed: 9 additions & 29 deletions

‎docs/ThreadMessageResponse.md‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ Name | Type | Description | Notes
1010
**sequence** | **int** | Sequence number (from path_part.name) |
1111
**role** | [**MessageRole**](MessageRole.md) | |
1212
**content** | [**EnrichedThreadMessageContent**](EnrichedThreadMessageContent.md) | |
13-
**details** | [**ThreadMessageDetails**](ThreadMessageDetails.md) | Message details (None when not requested via with_details) | [optional]
14-
**parts** | [**List[TextPartOrReasoningPartOrToolPartOrDocEditPart]**](TextPartOrReasoningPartOrToolPartOrDocEditPart.md) | Ordered content parts (text/reasoning/tool/doc_edit). Native rows return details.parts; legacy rows return a best-effort read-time projection of details.steps. Empty when details are not requested. | [optional]
13+
**details** | [**ThreadMessageDetails**](ThreadMessageDetails.md) | Message details (None when not requested via with_details). Ordered content parts live on details.parts; native rows also carry an old-format details.steps back-fill for the deployed frontend. | [optional]
1514
**parent_path_id** | **UUID** | Thread's PathPart ID |
1615
**materialized_path** | **str** | Full materialized path from root |
1716
**tenant_id** | **UUID** | Tenant ID |

‎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.122.0"
17+
__version__ = "1.122.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.122.0/python'
94+
self.user_agent = 'OpenAPI-Generator/1.122.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.122.0".\
565+
"SDK Package Version: 1.122.1".\
566566
format(env=sys.platform, pyversion=sys.version)
567567

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

‎ksapi/models/thread_message_response.py‎

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,10 @@
1919

2020
from datetime import datetime
2121
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
22-
from typing import Any, ClassVar, Dict, List, Optional
22+
from typing import Any, ClassVar, Dict, Optional
2323
from uuid import UUID
2424
from ksapi.models.enriched_thread_message_content import EnrichedThreadMessageContent
2525
from ksapi.models.message_role import MessageRole
26-
from ksapi.models.text_part_or_reasoning_part_or_tool_part_or_doc_edit_part import TextPartOrReasoningPartOrToolPartOrDocEditPart
2726
from ksapi.models.thread_message_details import ThreadMessageDetails
2827
from typing import Optional, Set
2928
from typing_extensions import Self
@@ -38,15 +37,14 @@ class ThreadMessageResponse(BaseModel):
3837
sequence: StrictInt = Field(description="Sequence number (from path_part.name)")
3938
role: MessageRole
4039
content: EnrichedThreadMessageContent
41-
details: Optional[ThreadMessageDetails] = Field(default=None, description="Message details (None when not requested via with_details)")
42-
parts: Optional[List[TextPartOrReasoningPartOrToolPartOrDocEditPart]] = Field(default=None, description="Ordered content parts (text/reasoning/tool/doc_edit). Native rows return details.parts; legacy rows return a best-effort read-time projection of details.steps. Empty when details are not requested.")
40+
details: Optional[ThreadMessageDetails] = Field(default=None, description="Message details (None when not requested via with_details). Ordered content parts live on details.parts; native rows also carry an old-format details.steps back-fill for the deployed frontend.")
4341
parent_path_id: UUID = Field(description="Thread's PathPart ID")
4442
materialized_path: StrictStr = Field(description="Full materialized path from root")
4543
tenant_id: UUID = Field(description="Tenant ID")
4644
author_tenant_user_id: Optional[UUID] = Field(default=None, description="tenant_user.user_id of the sender for USER messages. NULL for ASSISTANT / SYSTEM rows and for legacy USER rows written before multi-user thread support landed.")
4745
created_at: datetime = Field(description="Creation timestamp")
4846
updated_at: datetime = Field(description="Last update timestamp")
49-
__properties: ClassVar[List[str]] = ["id", "path_part_id", "sequence", "role", "content", "details", "parts", "parent_path_id", "materialized_path", "tenant_id", "author_tenant_user_id", "created_at", "updated_at"]
47+
__properties: ClassVar[List[str]] = ["id", "path_part_id", "sequence", "role", "content", "details", "parent_path_id", "materialized_path", "tenant_id", "author_tenant_user_id", "created_at", "updated_at"]
5048

5149
model_config = ConfigDict(
5250
validate_by_name=True,
@@ -93,13 +91,6 @@ def to_dict(self) -> Dict[str, Any]:
9391
# override the default output from pydantic by calling `to_dict()` of details
9492
if self.details:
9593
_dict['details'] = self.details.to_dict()
96-
# override the default output from pydantic by calling `to_dict()` of each item in parts (list)
97-
_items = []
98-
if self.parts:
99-
for _item_parts in self.parts:
100-
if _item_parts:
101-
_items.append(_item_parts.to_dict())
102-
_dict['parts'] = _items
10394
# set to None if details (nullable) is None
10495
# and model_fields_set contains the field
10596
if self.details is None and "details" in self.model_fields_set:
@@ -128,7 +119,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
128119
"role": obj.get("role"),
129120
"content": EnrichedThreadMessageContent.from_dict(obj["content"]) if obj.get("content") is not None else None,
130121
"details": ThreadMessageDetails.from_dict(obj["details"]) if obj.get("details") is not None else None,
131-
"parts": [TextPartOrReasoningPartOrToolPartOrDocEditPart.from_dict(_item) for _item in obj["parts"]] if obj.get("parts") is not None else None,
132122
"parent_path_id": obj.get("parent_path_id"),
133123
"materialized_path": obj.get("materialized_path"),
134124
"tenant_id": obj.get("tenant_id"),

‎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.122.0"
3+
version = "1.122.1"
44
description = "Knowledge Stack API"
55
authors = [
66
{name = "OpenAPI Generator Community",email = "team@openapitools.org"},

‎setup.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# prerequisite: setuptools
2020
# http://pypi.python.org/pypi/setuptools
2121
NAME = "ksapi"
22-
VERSION = "1.122.0"
22+
VERSION = "1.122.1"
2323
PYTHON_REQUIRES = ">= 3.9"
2424
REQUIRES = [
2525
"urllib3 >= 2.1.0, < 3.0.0",

‎test/test_paginated_response_thread_message_response.py‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,6 @@ def make_instance(self, include_optional) -> PaginatedResponseThreadMessageRespo
6565
materialized_path = '', )
6666
], ),
6767
details = null,
68-
parts = [
69-
null
70-
],
7168
parent_path_id = '',
7269
materialized_path = '',
7370
tenant_id = '',
@@ -111,9 +108,6 @@ def make_instance(self, include_optional) -> PaginatedResponseThreadMessageRespo
111108
materialized_path = '', )
112109
], ),
113110
details = null,
114-
parts = [
115-
null
116-
],
117111
parent_path_id = '',
118112
materialized_path = '',
119113
tenant_id = '',

‎test/test_thread_message_response.py‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,6 @@ def make_instance(self, include_optional) -> ThreadMessageResponse:
7979
],
8080
checkpoint = null,
8181
model_id = '', ),
82-
parts = [
83-
null
84-
],
8582
parent_path_id = '',
8683
materialized_path = '',
8784
tenant_id = '',

0 commit comments

Comments
 (0)