Skip to content

Commit 137ea75

Browse files
author
ks-release-bot
committed
chore(release): regenerate ksapi v1.146.0 from ks-backend
1 parent ad68939 commit 137ea75

13 files changed

Lines changed: 38 additions & 7 deletions

‎docs/ChunkContentItem.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
1212
**parent_path_id** | **UUID** | Parent PathPart ID |
1313
**metadata_obj_id** | **UUID** | Chunk ID |
1414
**depth** | **int** | Depth relative to document version root |
15+
**chunk_start_index** | **int** | 0-based ordinal of this chunk, counting CHUNK rows in DFS order from the traversal root. Usable directly as a read start/end coordinate. Null on endpoints that do not compute traversal ordinals. | [optional]
1516
**content** | **str** | Chunk content | [optional]
1617
**chunk_type** | [**ChunkType**](ChunkType.md) | | [optional]
1718
**chunk_metadata** | [**ChunkMetadata**](ChunkMetadata.md) | Chunk metadata | [optional]

‎docs/SectionContentItem.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ Name | Type | Description | Notes
1212
**parent_path_id** | **UUID** | Parent PathPart ID |
1313
**metadata_obj_id** | **UUID** | Section ID |
1414
**depth** | **int** | Depth relative to document version root |
15+
**chunk_start_index** | **int** | 0-based ordinal of the first chunk in this section's subtree, counting CHUNK rows in DFS order from the traversal root. Null when the section has no chunk anywhere below it, and on endpoints that do not compute traversal ordinals. | [optional]
16+
**chunk_end_index** | **int** | 0-based ordinal of the last chunk in this section's subtree, inclusive. Chunks outside the section — a later sibling, or a chunk attached to an ancestor — are excluded, so the span covers only this section's own content. Null under the same conditions as chunk_start_index. | [optional]
1517
**page_number** | **int** | Section page number | [optional]
1618
**materialized_path** | **str** | Full materialized path from root |
1719
**system_managed** | **bool** | Whether this item is system-managed |

‎docs/SectionContentItemOrChunkContentItem.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Name | Type | Description | Notes
1111
**parent_path_id** | **UUID** | Parent PathPart ID |
1212
**metadata_obj_id** | **UUID** | Chunk ID |
1313
**depth** | **int** | Depth relative to document version root |
14+
**chunk_start_index** | **int** | 0-based ordinal of this chunk, counting CHUNK rows in DFS order from the traversal root. Usable directly as a read start/end coordinate. Null on endpoints that do not compute traversal ordinals. | [optional]
15+
**chunk_end_index** | **int** | 0-based ordinal of the last chunk in this section's subtree, inclusive. Chunks outside the section — a later sibling, or a chunk attached to an ancestor — are excluded, so the span covers only this section's own content. Null under the same conditions as chunk_start_index. | [optional]
1416
**page_number** | **int** | Section page number | [optional]
1517
**materialized_path** | **str** | Full materialized path from root |
1618
**system_managed** | **bool** | Whether this item is system-managed |

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

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

‎ksapi/models/chunk_content_item.py‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ class ChunkContentItem(BaseModel):
3838
parent_path_id: UUID = Field(description="Parent PathPart ID")
3939
metadata_obj_id: UUID = Field(description="Chunk ID")
4040
depth: StrictInt = Field(description="Depth relative to document version root")
41+
chunk_start_index: Optional[StrictInt] = Field(default=None, description="0-based ordinal of this chunk, counting CHUNK rows in DFS order from the traversal root. Usable directly as a read start/end coordinate. Null on endpoints that do not compute traversal ordinals.")
4142
content: Optional[StrictStr] = Field(default=None, description="Chunk content")
4243
chunk_type: Optional[ChunkType] = None
4344
chunk_metadata: Optional[ChunkMetadata] = Field(default=None, description="Chunk metadata")
@@ -46,7 +47,7 @@ class ChunkContentItem(BaseModel):
4647
approval_state: PathPartApprovalState
4748
created_at: datetime = Field(description="Creation timestamp")
4849
updated_at: datetime = Field(description="Last update timestamp")
49-
__properties: ClassVar[List[str]] = ["part_type", "path_part_id", "name", "parent_path_id", "metadata_obj_id", "depth", "content", "chunk_type", "chunk_metadata", "materialized_path", "system_managed", "approval_state", "created_at", "updated_at"]
50+
__properties: ClassVar[List[str]] = ["part_type", "path_part_id", "name", "parent_path_id", "metadata_obj_id", "depth", "chunk_start_index", "content", "chunk_type", "chunk_metadata", "materialized_path", "system_managed", "approval_state", "created_at", "updated_at"]
5051

5152
@field_validator('part_type')
5253
def part_type_validate_enum(cls, value):
@@ -97,6 +98,11 @@ def to_dict(self) -> Dict[str, Any]:
9798
# override the default output from pydantic by calling `to_dict()` of chunk_metadata
9899
if self.chunk_metadata:
99100
_dict['chunk_metadata'] = self.chunk_metadata.to_dict()
101+
# set to None if chunk_start_index (nullable) is None
102+
# and model_fields_set contains the field
103+
if self.chunk_start_index is None and "chunk_start_index" in self.model_fields_set:
104+
_dict['chunk_start_index'] = None
105+
100106
# set to None if content (nullable) is None
101107
# and model_fields_set contains the field
102108
if self.content is None and "content" in self.model_fields_set:
@@ -125,6 +131,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
125131
"parent_path_id": obj.get("parent_path_id"),
126132
"metadata_obj_id": obj.get("metadata_obj_id"),
127133
"depth": obj.get("depth"),
134+
"chunk_start_index": obj.get("chunk_start_index"),
128135
"content": obj.get("content"),
129136
"chunk_type": obj.get("chunk_type"),
130137
"chunk_metadata": ChunkMetadata.from_dict(obj["chunk_metadata"]) if obj.get("chunk_metadata") is not None else None,

‎ksapi/models/section_content_item.py‎

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,15 @@ class SectionContentItem(BaseModel):
3636
parent_path_id: UUID = Field(description="Parent PathPart ID")
3737
metadata_obj_id: UUID = Field(description="Section ID")
3838
depth: StrictInt = Field(description="Depth relative to document version root")
39+
chunk_start_index: Optional[StrictInt] = Field(default=None, description="0-based ordinal of the first chunk in this section's subtree, counting CHUNK rows in DFS order from the traversal root. Null when the section has no chunk anywhere below it, and on endpoints that do not compute traversal ordinals.")
40+
chunk_end_index: Optional[StrictInt] = Field(default=None, description="0-based ordinal of the last chunk in this section's subtree, inclusive. Chunks outside the section — a later sibling, or a chunk attached to an ancestor — are excluded, so the span covers only this section's own content. Null under the same conditions as chunk_start_index.")
3941
page_number: Optional[StrictInt] = Field(default=None, description="Section page number")
4042
materialized_path: StrictStr = Field(description="Full materialized path from root")
4143
system_managed: StrictBool = Field(description="Whether this item is system-managed")
4244
approval_state: PathPartApprovalState
4345
created_at: datetime = Field(description="Creation timestamp")
4446
updated_at: datetime = Field(description="Last update timestamp")
45-
__properties: ClassVar[List[str]] = ["part_type", "path_part_id", "name", "parent_path_id", "metadata_obj_id", "depth", "page_number", "materialized_path", "system_managed", "approval_state", "created_at", "updated_at"]
47+
__properties: ClassVar[List[str]] = ["part_type", "path_part_id", "name", "parent_path_id", "metadata_obj_id", "depth", "chunk_start_index", "chunk_end_index", "page_number", "materialized_path", "system_managed", "approval_state", "created_at", "updated_at"]
4648

4749
@field_validator('part_type')
4850
def part_type_validate_enum(cls, value):
@@ -90,6 +92,16 @@ def to_dict(self) -> Dict[str, Any]:
9092
exclude=excluded_fields,
9193
exclude_none=True,
9294
)
95+
# set to None if chunk_start_index (nullable) is None
96+
# and model_fields_set contains the field
97+
if self.chunk_start_index is None and "chunk_start_index" in self.model_fields_set:
98+
_dict['chunk_start_index'] = None
99+
100+
# set to None if chunk_end_index (nullable) is None
101+
# and model_fields_set contains the field
102+
if self.chunk_end_index is None and "chunk_end_index" in self.model_fields_set:
103+
_dict['chunk_end_index'] = None
104+
93105
# set to None if page_number (nullable) is None
94106
# and model_fields_set contains the field
95107
if self.page_number is None and "page_number" in self.model_fields_set:
@@ -113,6 +125,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
113125
"parent_path_id": obj.get("parent_path_id"),
114126
"metadata_obj_id": obj.get("metadata_obj_id"),
115127
"depth": obj.get("depth"),
128+
"chunk_start_index": obj.get("chunk_start_index"),
129+
"chunk_end_index": obj.get("chunk_end_index"),
116130
"page_number": obj.get("page_number"),
117131
"materialized_path": obj.get("materialized_path"),
118132
"system_managed": obj.get("system_managed"),

‎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.145.1"
3+
version = "1.146.0"
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.145.1"
22+
VERSION = "1.146.0"
2323
PYTHON_REQUIRES = ">= 3.9"
2424
REQUIRES = [
2525
"urllib3 >= 2.1.0, < 3.0.0",

0 commit comments

Comments
 (0)