From a9ddd47c26697e42872c40340c6fd1e202717d69 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 16 Oct 2023 10:22:42 +0900 Subject: [PATCH] Codes are generated by openapi generator (#534) Co-authored-by: github-actions --- linebot/v3/webhooks/models/audio_message_content.py | 3 +-- linebot/v3/webhooks/models/file_message_content.py | 1 - linebot/v3/webhooks/models/image_message_content.py | 1 - linebot/v3/webhooks/models/location_message_content.py | 1 - linebot/v3/webhooks/models/message_content.py | 3 ++- linebot/v3/webhooks/models/sticker_message_content.py | 1 - linebot/v3/webhooks/models/text_message_content.py | 1 - linebot/v3/webhooks/models/video_message_content.py | 1 - 8 files changed, 3 insertions(+), 9 deletions(-) diff --git a/linebot/v3/webhooks/models/audio_message_content.py b/linebot/v3/webhooks/models/audio_message_content.py index e3433c35d..1c6e1453d 100644 --- a/linebot/v3/webhooks/models/audio_message_content.py +++ b/linebot/v3/webhooks/models/audio_message_content.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic.v1 import Field, StrictInt, StrictStr +from pydantic.v1 import Field, StrictInt from linebot.v3.webhooks.models.content_provider import ContentProvider from linebot.v3.webhooks.models.message_content import MessageContent @@ -27,7 +27,6 @@ class AudioMessageContent(MessageContent): """ AudioMessageContent """ - id: StrictStr = Field(..., description="Message ID") content_provider: ContentProvider = Field(..., alias="contentProvider") duration: Optional[StrictInt] = Field(None, description="Length of audio file (milliseconds)") type: str = "audio" diff --git a/linebot/v3/webhooks/models/file_message_content.py b/linebot/v3/webhooks/models/file_message_content.py index ebc0bf4cc..0f181c8f8 100644 --- a/linebot/v3/webhooks/models/file_message_content.py +++ b/linebot/v3/webhooks/models/file_message_content.py @@ -26,7 +26,6 @@ class FileMessageContent(MessageContent): """ FileMessageContent """ - id: StrictStr = Field(..., description="Message ID") file_name: StrictStr = Field(..., alias="fileName", description="File name") file_size: StrictInt = Field(..., alias="fileSize", description="File size in bytes") type: str = "file" diff --git a/linebot/v3/webhooks/models/image_message_content.py b/linebot/v3/webhooks/models/image_message_content.py index 126499218..ab2409c03 100644 --- a/linebot/v3/webhooks/models/image_message_content.py +++ b/linebot/v3/webhooks/models/image_message_content.py @@ -28,7 +28,6 @@ class ImageMessageContent(MessageContent): """ ImageMessageContent """ - id: StrictStr = Field(..., description="Message ID") content_provider: ContentProvider = Field(..., alias="contentProvider") image_set: Optional[ImageSet] = Field(None, alias="imageSet") quote_token: StrictStr = Field(..., alias="quoteToken", description="Quote token to quote this message. ") diff --git a/linebot/v3/webhooks/models/location_message_content.py b/linebot/v3/webhooks/models/location_message_content.py index c0726800a..08268270c 100644 --- a/linebot/v3/webhooks/models/location_message_content.py +++ b/linebot/v3/webhooks/models/location_message_content.py @@ -26,7 +26,6 @@ class LocationMessageContent(MessageContent): """ LocationMessageContent """ - id: StrictStr = Field(..., description="Message ID") title: Optional[StrictStr] = Field(None, description="Title") address: Optional[StrictStr] = Field(None, description="Address") latitude: Union[StrictFloat, StrictInt] = Field(..., description="Latitude") diff --git a/linebot/v3/webhooks/models/message_content.py b/linebot/v3/webhooks/models/message_content.py index 698f8b9e1..c5bacb466 100644 --- a/linebot/v3/webhooks/models/message_content.py +++ b/linebot/v3/webhooks/models/message_content.py @@ -28,8 +28,9 @@ class MessageContent(BaseModel): https://developers.line.biz/en/reference/messaging-api/#message-event """ type: Optional[StrictStr] = Field(None, description="Type") + id: StrictStr = Field(..., description="Message ID") - __properties = ["type"] + __properties = ["type", "id"] class Config: """Pydantic configuration""" diff --git a/linebot/v3/webhooks/models/sticker_message_content.py b/linebot/v3/webhooks/models/sticker_message_content.py index cd764996b..e6f32651e 100644 --- a/linebot/v3/webhooks/models/sticker_message_content.py +++ b/linebot/v3/webhooks/models/sticker_message_content.py @@ -27,7 +27,6 @@ class StickerMessageContent(MessageContent): StickerMessageContent https://developers.line.biz/en/reference/messaging-api/#wh-sticker """ - id: StrictStr = Field(..., description="Message ID") package_id: StrictStr = Field(..., alias="packageId", description="Package ID") sticker_id: StrictStr = Field(..., alias="stickerId", description="Sticker ID") sticker_resource_type: StrictStr = Field(..., alias="stickerResourceType") diff --git a/linebot/v3/webhooks/models/text_message_content.py b/linebot/v3/webhooks/models/text_message_content.py index d542dec98..f63a040ad 100644 --- a/linebot/v3/webhooks/models/text_message_content.py +++ b/linebot/v3/webhooks/models/text_message_content.py @@ -28,7 +28,6 @@ class TextMessageContent(MessageContent): """ TextMessageContent """ - id: StrictStr = Field(..., description="Message ID") text: StrictStr = Field(..., description="Message text.") emojis: Optional[conlist(Emoji)] = Field(None, description="Array of one or more LINE emoji objects. Only included in the message event when the text property contains a LINE emoji.") mention: Optional[Mention] = None diff --git a/linebot/v3/webhooks/models/video_message_content.py b/linebot/v3/webhooks/models/video_message_content.py index b55745b7b..659c0183a 100644 --- a/linebot/v3/webhooks/models/video_message_content.py +++ b/linebot/v3/webhooks/models/video_message_content.py @@ -27,7 +27,6 @@ class VideoMessageContent(MessageContent): """ VideoMessageContent """ - id: StrictStr = Field(..., description="Message ID") duration: Optional[StrictInt] = Field(None, description="Length of video file (milliseconds)") content_provider: ContentProvider = Field(..., alias="contentProvider") quote_token: StrictStr = Field(..., alias="quoteToken", description="Quote token to quote this message. ")