Skip to content

Commit

Permalink
Upgrade api specification
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 7, 2024
1 parent 9297c84 commit 4685bbd
Show file tree
Hide file tree
Showing 42 changed files with 7,368 additions and 14,464 deletions.
18,726 changes: 6,783 additions & 11,943 deletions packages/generator/spec.json

Large diffs are not rendered by default.

69 changes: 9 additions & 60 deletions packages/miro-api-python/.openapi-generator/FILES

Large diffs are not rendered by default.

467 changes: 244 additions & 223 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
Expand Up @@ -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.0/python"
self.user_agent = "OpenAPI-Generator/2.2.1/python"
self.client_side_validation = configuration.client_side_validation

def __enter__(self):
Expand Down
2 changes: 1 addition & 1 deletion packages/miro-api-python/miro_api/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.0".format(env=sys.platform, pyversion=sys.version)
"SDK Package Version: 2.2.1".format(env=sys.platform, pyversion=sys.version)
)

def get_host_settings(self):
Expand Down
57 changes: 3 additions & 54 deletions packages/miro-api-python/miro_api/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,9 @@
from miro_api.models.app_card_data import AppCardData
from miro_api.models.app_card_data_changes import AppCardDataChanges
from miro_api.models.app_card_data_response import AppCardDataResponse
from miro_api.models.app_card_data_response_platformcreateitemsinbulkusingfilefromdevice import (
AppCardDataResponsePlatformcreateitemsinbulkusingfilefromdevice,
)
from miro_api.models.app_card_item import AppCardItem
from miro_api.models.app_card_style import AppCardStyle
from miro_api.models.app_card_style_platformbulkcreateoperation import AppCardStylePlatformbulkcreateoperation
from miro_api.models.app_card_style_platformcreateitemsinbulkusingfilefromdevice import (
AppCardStylePlatformcreateitemsinbulkusingfilefromdevice,
)
from miro_api.models.app_card_update_request import AppCardUpdateRequest
from miro_api.models.audit_context import AuditContext
from miro_api.models.audit_created_by import AuditCreatedBy
Expand All @@ -39,7 +33,6 @@
from miro_api.models.audit_team import AuditTeam
from miro_api.models.basic_error import BasicError
from miro_api.models.basic_error_organizations_enterprise_plan import BasicErrorOrganizationsEnterprisePlan
from miro_api.models.basic_error_teams_enterprise_plan import BasicErrorTeamsEnterprisePlan
from miro_api.models.board import Board
from miro_api.models.board_changes import BoardChanges
from miro_api.models.board_content_log_data import BoardContentLogData
Expand Down Expand Up @@ -74,15 +67,9 @@
from miro_api.models.card_create_request import CardCreateRequest
from miro_api.models.card_data import CardData
from miro_api.models.card_data_platformbulkcreateoperation import CardDataPlatformbulkcreateoperation
from miro_api.models.card_data_platformcreateitemsinbulkusingfilefromdevice import (
CardDataPlatformcreateitemsinbulkusingfilefromdevice,
)
from miro_api.models.card_item import CardItem
from miro_api.models.card_style import CardStyle
from miro_api.models.card_style_platformbulkcreateoperation import CardStylePlatformbulkcreateoperation
from miro_api.models.card_style_platformcreateitemsinbulkusingfilefromdevice import (
CardStylePlatformcreateitemsinbulkusingfilefromdevice,
)
from miro_api.models.card_update_request import CardUpdateRequest
from miro_api.models.connector_changes_data import ConnectorChangesData
from miro_api.models.connector_creation_data import ConnectorCreationData
Expand All @@ -95,6 +82,7 @@
from miro_api.models.create_document_item_using_file_from_device_request_data import (
CreateDocumentItemUsingFileFromDeviceRequestData,
)
from miro_api.models.create_frame_item400_response import CreateFrameItem400Response
from miro_api.models.create_project_request import CreateProjectRequest
from miro_api.models.create_team_request import CreateTeamRequest
from miro_api.models.created_by import CreatedBy
Expand All @@ -109,9 +97,6 @@
from miro_api.models.custom_field import CustomField
from miro_api.models.custom_field_platform_tags import CustomFieldPlatformTags
from miro_api.models.custom_field_platformbulkcreateoperation import CustomFieldPlatformbulkcreateoperation
from miro_api.models.custom_field_platformcreateitemsinbulkusingfilefromdevice import (
CustomFieldPlatformcreateitemsinbulkusingfilefromdevice,
)
from miro_api.models.data_classification_label import DataClassificationLabel
from miro_api.models.data_classification_label_id import DataClassificationLabelId
from miro_api.models.data_classification_organization_settings import DataClassificationOrganizationSettings
Expand All @@ -131,9 +116,6 @@
from miro_api.models.embed_create_request import EmbedCreateRequest
from miro_api.models.embed_data import EmbedData
from miro_api.models.embed_data_response import EmbedDataResponse
from miro_api.models.embed_data_response_platformcreateitemsinbulkusingfilefromdevice import (
EmbedDataResponsePlatformcreateitemsinbulkusingfilefromdevice,
)
from miro_api.models.embed_item import EmbedItem
from miro_api.models.embed_update_request import EmbedUpdateRequest
from miro_api.models.embed_url_data import EmbedUrlData
Expand Down Expand Up @@ -181,7 +163,6 @@
from miro_api.models.get_all_groups429_response import GetAllGroups429Response
from miro_api.models.get_board_item_content_logs_response import GetBoardItemContentLogsResponse
from miro_api.models.get_board_user_info_last_opened_by import GetBoardUserInfoLastOpenedBy
from miro_api.models.get_boards400_response import GetBoards400Response
from miro_api.models.get_items_by_group_id200_response import GetItemsByGroupId200Response
from miro_api.models.get_items_by_group_id200_response_data import GetItemsByGroupId200ResponseData
from miro_api.models.get_metrics200_response_inner import GetMetrics200ResponseInner
Expand All @@ -204,10 +185,6 @@
from miro_api.models.image_update_request import ImageUpdateRequest
from miro_api.models.image_url_data import ImageUrlData
from miro_api.models.image_url_data_changes import ImageUrlDataChanges
from miro_api.models.image_url_data_changes_platformbulkcreateoperation import (
ImageUrlDataChangesPlatformbulkcreateoperation,
)
from miro_api.models.image_url_data_platformbulkcreateoperation import ImageUrlDataPlatformbulkcreateoperation
from miro_api.models.invitation_error import InvitationError
from miro_api.models.invitation_result import InvitationResult
from miro_api.models.item import Item
Expand All @@ -219,24 +196,13 @@
from miro_api.models.item_data import ItemData
from miro_api.models.item_data_changes import ItemDataChanges
from miro_api.models.item_data_create import ItemDataCreate
from miro_api.models.item_data_platformcreateitemsinbulkusingfilefromdevice import (
ItemDataPlatformcreateitemsinbulkusingfilefromdevice,
)
from miro_api.models.item_paged_response import ItemPagedResponse
from miro_api.models.item_paged_response_platform_tags import ItemPagedResponsePlatformTags
from miro_api.models.item_platformcreateitemsinbulkusingfilefromdevice import (
ItemPlatformcreateitemsinbulkusingfilefromdevice,
)
from miro_api.models.item_style import ItemStyle
from miro_api.models.item_style_platformcreateitemsinbulkusingfilefromdevice import (
ItemStylePlatformcreateitemsinbulkusingfilefromdevice,
)
from miro_api.models.item_type_change import ItemTypeChange
from miro_api.models.items import Items
from miro_api.models.items_page import ItemsPage
from miro_api.models.items_platformcreateitemsinbulkusingfilefromdevice import (
ItemsPlatformcreateitemsinbulkusingfilefromdevice,
)
from miro_api.models.mind_map_node_geometry import MindMapNodeGeometry
from miro_api.models.mindmap_create_request import MindmapCreateRequest
from miro_api.models.mindmap_cursor_paged import MindmapCursorPaged
from miro_api.models.mindmap_data import MindmapData
Expand Down Expand Up @@ -289,31 +255,19 @@
from miro_api.models.shape_data_for_create import ShapeDataForCreate
from miro_api.models.shape_data_for_update import ShapeDataForUpdate
from miro_api.models.shape_data_platform_tags import ShapeDataPlatformTags
from miro_api.models.shape_data_platformcreateitemsinbulkusingfilefromdevice import (
ShapeDataPlatformcreateitemsinbulkusingfilefromdevice,
)
from miro_api.models.shape_item import ShapeItem
from miro_api.models.shape_style import ShapeStyle
from miro_api.models.shape_style_for_create import ShapeStyleForCreate
from miro_api.models.shape_style_for_update import ShapeStyleForUpdate
from miro_api.models.shape_style_platformcreateitemsinbulkusingfilefromdevice import (
ShapeStylePlatformcreateitemsinbulkusingfilefromdevice,
)
from miro_api.models.shape_update_request import ShapeUpdateRequest
from miro_api.models.sharing_policy_settings import SharingPolicySettings
from miro_api.models.sticky_note_create_request import StickyNoteCreateRequest
from miro_api.models.sticky_note_data import StickyNoteData
from miro_api.models.sticky_note_data_platform_tags import StickyNoteDataPlatformTags
from miro_api.models.sticky_note_data_platformbulkcreateoperation import StickyNoteDataPlatformbulkcreateoperation
from miro_api.models.sticky_note_data_platformcreateitemsinbulkusingfilefromdevice import (
StickyNoteDataPlatformcreateitemsinbulkusingfilefromdevice,
)
from miro_api.models.sticky_note_item import StickyNoteItem
from miro_api.models.sticky_note_style import StickyNoteStyle
from miro_api.models.sticky_note_style_platformbulkcreateoperation import StickyNoteStylePlatformbulkcreateoperation
from miro_api.models.sticky_note_style_platformcreateitemsinbulkusingfilefromdevice import (
StickyNoteStylePlatformcreateitemsinbulkusingfilefromdevice,
)
from miro_api.models.sticky_note_update_request import StickyNoteUpdateRequest
from miro_api.models.subscription_data import SubscriptionData
from miro_api.models.tag import Tag
Expand Down Expand Up @@ -346,14 +300,8 @@
from miro_api.models.text_data import TextData
from miro_api.models.text_data_platform_tags import TextDataPlatformTags
from miro_api.models.text_data_platformbulkcreateoperation import TextDataPlatformbulkcreateoperation
from miro_api.models.text_data_platformcreateitemsinbulkusingfilefromdevice import (
TextDataPlatformcreateitemsinbulkusingfilefromdevice,
)
from miro_api.models.text_item import TextItem
from miro_api.models.text_style import TextStyle
from miro_api.models.text_style_platformcreateitemsinbulkusingfilefromdevice import (
TextStylePlatformcreateitemsinbulkusingfilefromdevice,
)
from miro_api.models.text_update_request import TextUpdateRequest
from miro_api.models.token_information import TokenInformation
from miro_api.models.un_group400_response import UnGroup400Response
Expand All @@ -365,6 +313,7 @@
from miro_api.models.update_boards_data_classification_label_request import UpdateBoardsDataClassificationLabelRequest
from miro_api.models.update_card_style import UpdateCardStyle
from miro_api.models.update_connector_style import UpdateConnectorStyle
from miro_api.models.update_frame_item409_response import UpdateFrameItem409Response
from miro_api.models.update_frame_style import UpdateFrameStyle
from miro_api.models.update_project_member_request import UpdateProjectMemberRequest
from miro_api.models.update_project_request import UpdateProjectRequest
Expand Down
13 changes: 12 additions & 1 deletion packages/miro-api-python/miro_api/models/audit_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,18 @@ class AuditEvent(BaseModel):
details: Optional[Dict[str, Any]] = Field(default=None, description="Details json related to the audit event")
created_by: Optional[AuditCreatedBy] = Field(default=None, alias="createdBy")
event: Optional[StrictStr] = Field(default=None, description="Event type of the audit event")
category: Optional[StrictStr] = Field(default=None, description="Event category of the audit event.")
additional_properties: Dict[str, Any] = {}
__properties: ClassVar[List[str]] = ["id", "context", "object", "createdAt", "details", "createdBy", "event"]
__properties: ClassVar[List[str]] = [
"id",
"context",
"object",
"createdAt",
"details",
"createdBy",
"event",
"category",
]

model_config = {
"populate_by_name": True,
Expand Down Expand Up @@ -120,6 +130,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"details": obj.get("details"),
"createdBy": AuditCreatedBy.from_dict(obj["createdBy"]) if obj.get("createdBy") is not None else None,
"event": obj.get("event"),
"category": obj.get("category"),
}
)
# store additional fields in additional_properties
Expand Down
15 changes: 4 additions & 11 deletions packages/miro-api-python/miro_api/models/item.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@
import json

from datetime import datetime
from pydantic import BaseModel, Field, StrictBool, StrictStr
from pydantic import BaseModel, Field, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
from miro_api.models.created_by import CreatedBy
from miro_api.models.geometry import Geometry
from miro_api.models.item_data import ItemData
from miro_api.models.item_style import ItemStyle
from miro_api.models.modified_by import ModifiedBy
from miro_api.models.parent_with_links import ParentWithLinks
from miro_api.models.position import Position
Expand All @@ -38,12 +37,11 @@ class Item(BaseModel):
""" # noqa: E501

id: StrictStr = Field(description="Unique identifier (ID) of an item.")
type: StrictStr = Field(description="Type of item.")
data: Optional[ItemData] = None
style: Optional[ItemStyle] = None
position: Optional[Position] = None
geometry: Optional[Geometry] = None
parent: Optional[ParentWithLinks] = None
is_supported: Optional[StrictBool] = Field(default=None, alias="isSupported")
created_by: Optional[CreatedBy] = Field(default=None, alias="createdBy")
created_at: Optional[datetime] = Field(
default=None,
Expand All @@ -60,12 +58,11 @@ class Item(BaseModel):
additional_properties: Dict[str, Any] = {}
__properties: ClassVar[List[str]] = [
"id",
"type",
"data",
"style",
"position",
"geometry",
"parent",
"isSupported",
"createdBy",
"createdAt",
"modifiedBy",
Expand Down Expand Up @@ -118,9 +115,6 @@ def to_dict(self) -> Dict[str, Any]:
# override the default output from pydantic by calling `to_dict()` of data
if self.data:
_dict["data"] = self.data.to_dict()
# override the default output from pydantic by calling `to_dict()` of style
if self.style:
_dict["style"] = self.style.to_dict()
# override the default output from pydantic by calling `to_dict()` of position
if self.position:
_dict["position"] = self.position.to_dict()
Expand Down Expand Up @@ -158,12 +152,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
_obj = cls.model_validate(
{
"id": obj.get("id"),
"type": obj.get("type"),
"data": ItemData.from_dict(obj["data"]) if obj.get("data") is not None else None,
"style": ItemStyle.from_dict(obj["style"]) if obj.get("style") is not None else None,
"position": Position.from_dict(obj["position"]) if obj.get("position") is not None else None,
"geometry": Geometry.from_dict(obj["geometry"]) if obj.get("geometry") is not None else None,
"parent": ParentWithLinks.from_dict(obj["parent"]) if obj.get("parent") is not None else None,
"isSupported": obj.get("isSupported"),
"createdBy": CreatedBy.from_dict(obj["createdBy"]) if obj.get("createdBy") is not None else None,
"createdAt": obj.get("createdAt"),
"modifiedBy": ModifiedBy.from_dict(obj["modifiedBy"]) if obj.get("modifiedBy") is not None else None,
Expand Down
Loading

0 comments on commit 4685bbd

Please sign in to comment.