Skip to content

Commit c84ee3a

Browse files
author
ks-release-bot
committed
chore(release): regenerate ksapi v1.139.1 from ks-backend
1 parent 79bcef5 commit c84ee3a

13 files changed

Lines changed: 47 additions & 10 deletions

‎docs/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaR.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ Name | Type | Description | Notes
6565
**disclaimer_accepted_by** | **UUID** | |
6666
**skill_md** | **str** | Full SKILL.md content; populated on the detail read and on mutation responses, null on list. | [optional]
6767
**script_names** | **List[str]** | Bundled script file names; populated on the detail read and on mutation responses, empty on list. | [optional]
68+
**scripts** | [**List[SkillScriptFile]**](SkillScriptFile.md) | Bundled scripts with their contents; populated only on the detail read (GET /skills/{id}), null on list. Lets the editor read the current script set so a PATCH can safely resubmit the whole set. | [optional]
6869
**has_unpublished_changes** | **bool** | Whether the working copy differs from the active published version. Always present (incl. list responses) so the UI can flag a skill with an unpublished draft. | [optional] [default to False]
6970

7071
## Example

‎docs/SkillResponse.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Name | Type | Description | Notes
1616
**description** | **str** | One-line 'use when…' routing signal, from the SKILL.md frontmatter. |
1717
**skill_md** | **str** | Full SKILL.md content; populated on the detail read and on mutation responses, null on list. | [optional]
1818
**script_names** | **List[str]** | Bundled script file names; populated on the detail read and on mutation responses, empty on list. | [optional]
19+
**scripts** | [**List[SkillScriptFile]**](SkillScriptFile.md) | Bundled scripts with their contents; populated only on the detail read (GET /skills/{id}), null on list. Lets the editor read the current script set so a PATCH can safely resubmit the whole set. | [optional]
1920
**has_unpublished_changes** | **bool** | Whether the working copy differs from the active published version. Always present (incl. list responses) so the UI can flag a skill with an unpublished draft. | [optional] [default to False]
2021
**approval_state** | [**PathPartApprovalState**](PathPartApprovalState.md) | |
2122
**owner** | [**UserInfo**](UserInfo.md) | Creator, or null. | [optional]

‎docs/SkillsApi.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ Name | Type | Description | Notes
640640
641641
Get Skill Handler
642642

643-
Skill detail: SKILL.md, scripts, has_unpublished_changes, permissions.
643+
Skill detail: SKILL.md, script contents, has_unpublished_changes, perms.
644644

645645
### Example
646646

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

1919
# Define package exports
2020
__all__ = [

‎ksapi/api/skills_api.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1978,7 +1978,7 @@ def get_skill(
19781978
) -> SkillResponse:
19791979
"""Get Skill Handler
19801980
1981-
Skill detail: SKILL.md, scripts, has_unpublished_changes, permissions.
1981+
Skill detail: SKILL.md, script contents, has_unpublished_changes, perms.
19821982
19831983
:param skill_id: (required)
19841984
:type skill_id: UUID
@@ -2046,7 +2046,7 @@ def get_skill_with_http_info(
20462046
) -> ApiResponse[SkillResponse]:
20472047
"""Get Skill Handler
20482048
2049-
Skill detail: SKILL.md, scripts, has_unpublished_changes, permissions.
2049+
Skill detail: SKILL.md, script contents, has_unpublished_changes, perms.
20502050
20512051
:param skill_id: (required)
20522052
:type skill_id: UUID
@@ -2114,7 +2114,7 @@ def get_skill_without_preload_content(
21142114
) -> RESTResponseType:
21152115
"""Get Skill Handler
21162116
2117-
Skill detail: SKILL.md, scripts, has_unpublished_changes, permissions.
2117+
Skill detail: SKILL.md, script contents, has_unpublished_changes, perms.
21182118
21192119
:param skill_id: (required)
21202120
:type skill_id: UUID

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

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

‎ksapi/models/skill_response.py‎

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
from uuid import UUID
2424
from ksapi.models.item_permissions import ItemPermissions
2525
from ksapi.models.path_part_approval_state import PathPartApprovalState
26+
from ksapi.models.skill_script_file import SkillScriptFile
2627
from ksapi.models.user_info import UserInfo
2728
from typing import Optional, Set
2829
from typing_extensions import Self
@@ -42,13 +43,14 @@ class SkillResponse(BaseModel):
4243
description: StrictStr = Field(description="One-line 'use when…' routing signal, from the SKILL.md frontmatter.")
4344
skill_md: Optional[StrictStr] = Field(default=None, description="Full SKILL.md content; populated on the detail read and on mutation responses, null on list.")
4445
script_names: Optional[List[StrictStr]] = Field(default=None, description="Bundled script file names; populated on the detail read and on mutation responses, empty on list.")
46+
scripts: Optional[List[SkillScriptFile]] = Field(default=None, description="Bundled scripts with their contents; populated only on the detail read (GET /skills/{id}), null on list. Lets the editor read the current script set so a PATCH can safely resubmit the whole set.")
4547
has_unpublished_changes: Optional[StrictBool] = Field(default=False, description="Whether the working copy differs from the active published version. Always present (incl. list responses) so the UI can flag a skill with an unpublished draft.")
4648
approval_state: PathPartApprovalState
4749
owner: Optional[UserInfo] = Field(default=None, description="Creator, or null.")
4850
created_at: datetime
4951
updated_at: datetime
5052
permissions: Optional[ItemPermissions] = Field(default=None, description="Caller's effective rights; populated on the list, detail read, and mutation responses.")
51-
__properties: ClassVar[List[str]] = ["part_type", "id", "path_part_id", "parent_path_part_id", "materialized_path", "tenant_id", "name", "description", "skill_md", "script_names", "has_unpublished_changes", "approval_state", "owner", "created_at", "updated_at", "permissions"]
53+
__properties: ClassVar[List[str]] = ["part_type", "id", "path_part_id", "parent_path_part_id", "materialized_path", "tenant_id", "name", "description", "skill_md", "script_names", "scripts", "has_unpublished_changes", "approval_state", "owner", "created_at", "updated_at", "permissions"]
5254

5355
@field_validator('part_type')
5456
def part_type_validate_enum(cls, value):
@@ -99,6 +101,13 @@ def to_dict(self) -> Dict[str, Any]:
99101
exclude=excluded_fields,
100102
exclude_none=True,
101103
)
104+
# override the default output from pydantic by calling `to_dict()` of each item in scripts (list)
105+
_items = []
106+
if self.scripts:
107+
for _item_scripts in self.scripts:
108+
if _item_scripts:
109+
_items.append(_item_scripts.to_dict())
110+
_dict['scripts'] = _items
102111
# override the default output from pydantic by calling `to_dict()` of owner
103112
if self.owner:
104113
_dict['owner'] = self.owner.to_dict()
@@ -115,6 +124,11 @@ def to_dict(self) -> Dict[str, Any]:
115124
if self.skill_md is None and "skill_md" in self.model_fields_set:
116125
_dict['skill_md'] = None
117126

127+
# set to None if scripts (nullable) is None
128+
# and model_fields_set contains the field
129+
if self.scripts is None and "scripts" in self.model_fields_set:
130+
_dict['scripts'] = None
131+
118132
# set to None if owner (nullable) is None
119133
# and model_fields_set contains the field
120134
if self.owner is None and "owner" in self.model_fields_set:
@@ -147,6 +161,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
147161
"description": obj.get("description"),
148162
"skill_md": obj.get("skill_md"),
149163
"script_names": obj.get("script_names"),
164+
"scripts": [SkillScriptFile.from_dict(_item) for _item in obj["scripts"]] if obj.get("scripts") is not None else None,
150165
"has_unpublished_changes": obj.get("has_unpublished_changes") if obj.get("has_unpublished_changes") is not None else False,
151166
"approval_state": obj.get("approval_state"),
152167
"owner": UserInfo.from_dict(obj["owner"]) if obj.get("owner") is not None else None,

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

0 commit comments

Comments
 (0)