Skip to content

Upgrade api-specification #438

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
560 changes: 407 additions & 153 deletions packages/generator/spec.json

Large diffs are not rendered by default.

812 changes: 668 additions & 144 deletions packages/miro-api-python/miro_api/api/__init__.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/miro-api-python/miro_api/api_client.py
Original file line number Diff line number Diff line change
@@ -82,7 +82,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, cook
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = "OpenAPI-Generator/2.2.3/python"
self.user_agent = "OpenAPI-Generator/2.2.4/python"
self.client_side_validation = configuration.client_side_validation

def __enter__(self):
2 changes: 1 addition & 1 deletion packages/miro-api-python/miro_api/configuration.py
Original file line number Diff line number Diff line change
@@ -390,7 +390,7 @@ def to_debug_report(self):
"OS: {env}\n"
"Python Version: {pyversion}\n"
"Version of the API: v2.0\n"
"SDK Package Version: 2.2.3".format(env=sys.platform, pyversion=sys.version)
"SDK Package Version: 2.2.4".format(env=sys.platform, pyversion=sys.version)
)

def get_host_settings(self):
2 changes: 1 addition & 1 deletion packages/miro-api-python/miro_api/models/board_changes.py
Original file line number Diff line number Diff line change
@@ -42,7 +42,7 @@ class BoardChanges(BaseModel):
)
project_id: Optional[StrictStr] = Field(
default=None,
description="Unique identifier (ID) of the project to which the board must be added.",
description="Unique identifier (ID) of the project to which the board must be added. Note that Projects have been renamed to Spaces. Use this parameter to update the space.",
alias="projectId",
)
additional_properties: Dict[str, Any] = {}
6 changes: 3 additions & 3 deletions packages/miro-api-python/miro_api/models/team_member.py
Original file line number Diff line number Diff line change
@@ -31,7 +31,7 @@ class TeamMember(BaseModel):

id: StrictStr = Field(description="Team member id.")
role: StrictStr = Field(
description=' Role of the team member. * "member": Team member with full member permissions. * "admin": Admin of a team. Team member with permission to manage team. * "non_team": External user, non-team user. * "team_guest": Team-guest user, user with access only to a team without access to organization. '
description=' Role of the team member. * "member": Team member with full member permissions. * "admin": Admin of a team. Team member with permission to manage team. * "non_team": External user, non-team user. * "team_guest": (Deprecated) Team-guest user, user with access only to a team without access to organization. '
)
created_at: Optional[datetime] = Field(
default=None, description="Date and time when member was invited to the team.", alias="createdAt"
@@ -62,8 +62,8 @@ class TeamMember(BaseModel):
@field_validator("role")
def role_validate_enum(cls, value):
"""Validates the enum"""
if value not in set(["non_team", "member", "admin", "team_guest"]):
raise ValueError("must be one of enum values ('non_team', 'member', 'admin', 'team_guest')")
if value not in set(["non_team", "member", "admin"]):
raise ValueError("must be one of enum values ('non_team', 'member', 'admin')")
return value

model_config = {
Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@ class TeamMemberChanges(BaseModel):

role: Optional[StrictStr] = Field(
default=None,
description=' Role of the team member. * "member": Team member with full member permissions. * "admin": Admin of a team. Team member with permission to manage team. * "team_guest": Team-guest user, user with access only to a team without access to organization. ',
description=' Role of the team member. * "member": Team member with full member permissions. * "admin": Admin of a team. Team member with permission to manage team. ',
)
additional_properties: Dict[str, Any] = {}
__properties: ClassVar[List[str]] = ["role"]
@@ -41,8 +41,8 @@ def role_validate_enum(cls, value):
if value is None:
return value

if value not in set(["member", "admin", "team_guest"]):
raise ValueError("must be one of enum values ('member', 'admin', 'team_guest')")
if value not in set(["member", "admin"]):
raise ValueError("must be one of enum values ('member', 'admin')")
return value

model_config = {
Original file line number Diff line number Diff line change
@@ -31,7 +31,7 @@ class TeamMemberInvite(BaseModel):
email: StrictStr = Field(description="User email to add to a team")
role: Optional[StrictStr] = Field(
default=None,
description=' Role of the team member. * "member": Team member with full member permissions. * "admin": Admin of a team. Team member with permission to manage team. * "team_guest": Team-guest user, user with access only to a team without access to organization. ',
description=' Role of the team member. * "member": Team member with full member permissions. * "admin": Admin of a team. Team member with permission to manage team. ',
)
additional_properties: Dict[str, Any] = {}
__properties: ClassVar[List[str]] = ["email", "role"]
@@ -42,8 +42,8 @@ def role_validate_enum(cls, value):
if value is None:
return value

if value not in set(["member", "admin", "team_guest"]):
raise ValueError("must be one of enum values ('member', 'admin', 'team_guest')")
if value not in set(["member", "admin"]):
raise ValueError("must be one of enum values ('member', 'admin')")
return value

model_config = {
Loading