From c581c5c819946ff0ee3ff3d5d5fe090add3e5c3d Mon Sep 17 00:00:00 2001 From: github-actions Date: Thu, 23 Oct 2025 08:28:44 +0000 Subject: [PATCH] Code are generated by openapi generator --- line-openapi | 2 +- linebot/v3/messaging/models/limit.py | 6 ++++-- linebot/v3/messaging/models/narrowcast_progress_response.py | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/line-openapi b/line-openapi index 8025f6ccb..9488f69f5 160000 --- a/line-openapi +++ b/line-openapi @@ -1 +1 @@ -Subproject commit 8025f6ccb16d4009d39f6f2163340d0a2d50585b +Subproject commit 9488f69f56b16650e3b20d700efad5f1d5c5635a diff --git a/linebot/v3/messaging/models/limit.py b/linebot/v3/messaging/models/limit.py index 1d5c167cb..68a7d4469 100644 --- a/linebot/v3/messaging/models/limit.py +++ b/linebot/v3/messaging/models/limit.py @@ -28,8 +28,9 @@ class Limit(BaseModel): """ max: Optional[conint(strict=True, ge=1)] = Field(None, description="The maximum number of narrowcast messages to send. Use this parameter to limit the number of narrowcast messages sent. The recipients will be chosen at random. ") up_to_remaining_quota: Optional[StrictBool] = Field(False, alias="upToRemainingQuota", description="If true, the message will be sent within the maximum number of deliverable messages. The default value is `false`. Targets will be selected at random. ") + forbid_partial_delivery: Optional[StrictBool] = Field(False, alias="forbidPartialDelivery", description="This option prevents messages from being delivered to only a subset of the target audience. If true, the narrowcast request success but fails asynchronously. You can check whether message delivery was canceled by retrieving the narrowcast message progress. This property can be set to true only if upToRemainingQuota is set to true. ") - __properties = ["max", "upToRemainingQuota"] + __properties = ["max", "upToRemainingQuota", "forbidPartialDelivery"] class Config: """Pydantic configuration""" @@ -68,7 +69,8 @@ def from_dict(cls, obj: dict) -> Limit: _obj = Limit.parse_obj({ "max": obj.get("max"), - "up_to_remaining_quota": obj.get("upToRemainingQuota") if obj.get("upToRemainingQuota") is not None else False + "up_to_remaining_quota": obj.get("upToRemainingQuota") if obj.get("upToRemainingQuota") is not None else False, + "forbid_partial_delivery": obj.get("forbidPartialDelivery") if obj.get("forbidPartialDelivery") is not None else False }) return _obj diff --git a/linebot/v3/messaging/models/narrowcast_progress_response.py b/linebot/v3/messaging/models/narrowcast_progress_response.py index 74e8349bf..390edac27 100644 --- a/linebot/v3/messaging/models/narrowcast_progress_response.py +++ b/linebot/v3/messaging/models/narrowcast_progress_response.py @@ -31,7 +31,7 @@ class NarrowcastProgressResponse(BaseModel): failure_count: Optional[StrictInt] = Field(None, alias="failureCount", description="The number of users who failed to send the message.") target_count: Optional[StrictInt] = Field(None, alias="targetCount", description="The number of intended recipients of the message.") failed_description: Optional[StrictStr] = Field(None, alias="failedDescription", description="The reason the message failed to be sent. This is only included with a `phase` property value of `failed`.") - error_code: Optional[StrictInt] = Field(None, alias="errorCode", description="Error summary. This is only included with a phase property value of failed. One of: `1`: An internal error occurred. `2`: An error occurred because there weren't enough recipients. `3`: A conflict error of requests occurs because a request that has already been accepted is retried. `4`: An audience of less than 50 recipients is included as a condition of sending. ") + error_code: Optional[StrictInt] = Field(None, alias="errorCode", description="Error summary. This is only included with a phase property value of failed. One of: `1`: An internal error occurred. `2`: An error occurred because there weren't enough recipients. `3`: A conflict error of requests occurs because a request that has already been accepted is retried. `4`: An audience of less than 50 recipients is included as a condition of sending. `5`: Message delivery has been canceled to prevent messages from being delivered only to a subset of the target audience. ") accepted_time: datetime = Field(..., alias="acceptedTime", description="Narrowcast message request accepted time in milliseconds. Format: ISO 8601 (e.g. 2020-12-03T10:15:30.121Z) Timezone: UTC ") completed_time: Optional[datetime] = Field(None, alias="completedTime", description="Processing of narrowcast message request completion time in milliseconds. Returned when the phase property is succeeded or failed. Format: ISO 8601 (e.g. 2020-12-03T10:15:30.121Z) Timezone: UTC ")