Skip to content

Commit ab6edbc

Browse files
author
ks-release-bot
committed
chore(release): regenerate ksapi v3.1.0 from ks-backend
1 parent d21cc8a commit ab6edbc

8 files changed

Lines changed: 15 additions & 6 deletions

File tree

‎docs/UpdateSkillRequest.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Edit working-copy files in place (does NOT cut a version).
66

77
Name | Type | Description | Notes
88
------------ | ------------- | ------------- | -------------
9+
**name** | **str** | New skill name (its folder name), unique within the tenant and never a built-in name; the working copy's SKILL.md frontmatter follows it. | [optional]
910
**skill_md** | **str** | Replacement SKILL.md, written to the working copy in place; null leaves it unchanged. Publish a version to snapshot; the active version is unchanged until then. | [optional]
1011
**files** | [**List[SkillFile]**](SkillFile.md) | Replace the whole bundle below SKILL.md (add/overwrite/remove to match); null leaves the tree unchanged, [] removes every file. | [optional]
1112

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

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

‎ksapi/models/update_skill_request.py‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ class UpdateSkillRequest(BaseModel):
2929
"""
3030
Edit working-copy files in place (does NOT cut a version).
3131
""" # noqa: E501
32+
name: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field(default=None, description="New skill name (its folder name), unique within the tenant and never a built-in name; the working copy's SKILL.md frontmatter follows it.")
3233
skill_md: Optional[StrictStr] = Field(default=None, description="Replacement SKILL.md, written to the working copy in place; null leaves it unchanged. Publish a version to snapshot; the active version is unchanged until then.")
3334
files: Optional[Annotated[List[SkillFile], Field(max_length=2000)]] = Field(default=None, description="Replace the whole bundle below SKILL.md (add/overwrite/remove to match); null leaves the tree unchanged, [] removes every file.")
34-
__properties: ClassVar[List[str]] = ["skill_md", "files"]
35+
__properties: ClassVar[List[str]] = ["name", "skill_md", "files"]
3536

3637
model_config = ConfigDict(
3738
validate_by_name=True,
@@ -79,6 +80,11 @@ def to_dict(self) -> Dict[str, Any]:
7980
if _item_files:
8081
_items.append(_item_files.to_dict())
8182
_dict['files'] = _items
83+
# set to None if name (nullable) is None
84+
# and model_fields_set contains the field
85+
if self.name is None and "name" in self.model_fields_set:
86+
_dict['name'] = None
87+
8288
# set to None if skill_md (nullable) is None
8389
# and model_fields_set contains the field
8490
if self.skill_md is None and "skill_md" in self.model_fields_set:
@@ -101,6 +107,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
101107
return cls.model_validate(obj)
102108

103109
_obj = cls.model_validate({
110+
"name": obj.get("name"),
104111
"skill_md": obj.get("skill_md"),
105112
"files": [SkillFile.from_dict(_item) for _item in obj["files"]] if obj.get("files") is not None else None
106113
})

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

‎test/test_update_skill_request.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ def make_instance(self, include_optional) -> UpdateSkillRequest:
3535
model = UpdateSkillRequest()
3636
if include_optional:
3737
return UpdateSkillRequest(
38+
name = '',
3839
skill_md = '',
3940
files = [
4041
ksapi.models.skill_file.SkillFile(

0 commit comments

Comments
 (0)