Skip to content

Commit d536245

Browse files
Upgrade api specification
1 parent 98cacb4 commit d536245

13 files changed

+996
-67
lines changed

packages/generator/spec.json

+274-21
Large diffs are not rendered by default.

packages/miro-api-python/miro_api/api/__init__.py

+538-14
Large diffs are not rendered by default.

packages/miro-api-python/miro_api/api_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, cook
8282
self.default_headers[header_name] = header_value
8383
self.cookie = cookie
8484
# Set default User-Agent.
85-
self.user_agent = "OpenAPI-Generator/2.2.3/python"
85+
self.user_agent = "OpenAPI-Generator/2.2.4/python"
8686
self.client_side_validation = configuration.client_side_validation
8787

8888
def __enter__(self):

packages/miro-api-python/miro_api/configuration.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ def to_debug_report(self):
390390
"OS: {env}\n"
391391
"Python Version: {pyversion}\n"
392392
"Version of the API: v2.0\n"
393-
"SDK Package Version: 2.2.3".format(env=sys.platform, pyversion=sys.version)
393+
"SDK Package Version: 2.2.4".format(env=sys.platform, pyversion=sys.version)
394394
)
395395

396396
def get_host_settings(self):

packages/miro-api-python/miro_api/models/board_changes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class BoardChanges(BaseModel):
4242
)
4343
project_id: Optional[StrictStr] = Field(
4444
default=None,
45-
description="Unique identifier (ID) of the project to which the board must be added.",
45+
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.",
4646
alias="projectId",
4747
)
4848
additional_properties: Dict[str, Any] = {}

packages/miro-api-python/miro_api/models/team_member.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class TeamMember(BaseModel):
3131

3232
id: StrictStr = Field(description="Team member id.")
3333
role: StrictStr = Field(
34-
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. '
34+
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. '
3535
)
3636
created_at: Optional[datetime] = Field(
3737
default=None, description="Date and time when member was invited to the team.", alias="createdAt"
@@ -62,8 +62,8 @@ class TeamMember(BaseModel):
6262
@field_validator("role")
6363
def role_validate_enum(cls, value):
6464
"""Validates the enum"""
65-
if value not in set(["non_team", "member", "admin", "team_guest"]):
66-
raise ValueError("must be one of enum values ('non_team', 'member', 'admin', 'team_guest')")
65+
if value not in set(["non_team", "member", "admin"]):
66+
raise ValueError("must be one of enum values ('non_team', 'member', 'admin')")
6767
return value
6868

6969
model_config = {

packages/miro-api-python/miro_api/models/team_member_changes.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class TeamMemberChanges(BaseModel):
3030

3131
role: Optional[StrictStr] = Field(
3232
default=None,
33-
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. ',
33+
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. ',
3434
)
3535
additional_properties: Dict[str, Any] = {}
3636
__properties: ClassVar[List[str]] = ["role"]
@@ -41,8 +41,8 @@ def role_validate_enum(cls, value):
4141
if value is None:
4242
return value
4343

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

4848
model_config = {

packages/miro-api-python/miro_api/models/team_member_invite.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class TeamMemberInvite(BaseModel):
3131
email: StrictStr = Field(description="User email to add to a team")
3232
role: Optional[StrictStr] = Field(
3333
default=None,
34-
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. ',
34+
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. ',
3535
)
3636
additional_properties: Dict[str, Any] = {}
3737
__properties: ClassVar[List[str]] = ["email", "role"]
@@ -42,8 +42,8 @@ def role_validate_enum(cls, value):
4242
if value is None:
4343
return value
4444

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

4949
model_config = {

0 commit comments

Comments
 (0)