Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion line-openapi
1 change: 1 addition & 0 deletions linebot/v3/insight/models/age_tile.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
class AgeTile(BaseModel):
"""
AgeTile
https://developers.line.biz/en/reference/messaging-api/#get-demographic
"""
age: Optional[StrictStr] = Field(None, description="users' age")
percentage: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Percentage")
Expand Down
1 change: 1 addition & 0 deletions linebot/v3/insight/models/app_type_tile.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
class AppTypeTile(BaseModel):
"""
AppTypeTile
https://developers.line.biz/en/reference/messaging-api/#get-demographic
"""
app_type: Optional[StrictStr] = Field(None, alias="appType", description="users' OS")
percentage: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Percentage")
Expand Down
1 change: 1 addition & 0 deletions linebot/v3/insight/models/area_tile.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
class AreaTile(BaseModel):
"""
AreaTile
https://developers.line.biz/en/reference/messaging-api/#get-demographic
"""
area: Optional[StrictStr] = Field(None, description="users' country and region")
percentage: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Percentage")
Expand Down
1 change: 1 addition & 0 deletions linebot/v3/insight/models/error_detail.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
class ErrorDetail(BaseModel):
"""
ErrorDetail
https://developers.line.biz/en/reference/messaging-api/#error-responses
"""
message: Optional[StrictStr] = Field(None, description="Details of the error. Not included in the response under certain situations.")
var_property: Optional[StrictStr] = Field(None, alias="property", description="Location of where the error occurred. Returns the JSON field name or query parameter name of the request. Not included in the response under certain situations.")
Expand Down
1 change: 1 addition & 0 deletions linebot/v3/insight/models/gender_tile.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
class GenderTile(BaseModel):
"""
GenderTile
https://developers.line.biz/en/reference/messaging-api/#get-demographic
"""
gender: Optional[StrictStr] = Field(None, description="users' gender")
percentage: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Percentage")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
class GetMessageEventResponseClick(BaseModel):
"""
GetMessageEventResponseClick
https://developers.line.biz/en/reference/messaging-api/#get-insight-message-event-response
"""
seq: Optional[StrictInt] = Field(None, description="The URL's serial number.")
url: Optional[StrictStr] = Field(None, description="URL.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
class GetMessageEventResponseMessage(BaseModel):
"""
GetMessageEventResponseMessage
https://developers.line.biz/en/reference/messaging-api/#get-insight-message-event-response
"""
seq: Optional[StrictInt] = Field(None, description="Bubble's serial number.")
impression: Optional[StrictInt] = Field(None, description="Number of times the bubble was displayed.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
class GetMessageEventResponseOverview(BaseModel):
"""
Summary of message statistics.
https://developers.line.biz/en/reference/messaging-api/#get-insight-message-event-response
"""
request_id: Optional[StrictStr] = Field(None, alias="requestId", description="Request ID.")
timestamp: Optional[StrictInt] = Field(None, description="UNIX timestamp for message delivery time in seconds.")
Expand Down
1 change: 1 addition & 0 deletions linebot/v3/insight/models/subscription_period_tile.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
class SubscriptionPeriodTile(BaseModel):
"""
SubscriptionPeriodTile
https://developers.line.biz/en/reference/messaging-api/#get-demographic
"""
subscription_period: Optional[StrictStr] = Field(None, alias="subscriptionPeriod", description="Subscription period. Possible values: `within7days`, `within90days`, `unknown` etc.")
percentage: Optional[Union[StrictFloat, StrictInt]] = Field(None, description="Percentage. Possible values: [0.0,100.0] e.g. 0, 2.9, 37.6.")
Expand Down
1 change: 1 addition & 0 deletions linebot/v3/liff/models/add_liff_app_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
class AddLiffAppResponse(BaseModel):
"""
AddLiffAppResponse
https://developers.line.biz/en/reference/liff-server/#add-liff-app
"""
liff_id: StrictStr = Field(..., alias="liffId")

Expand Down
1 change: 1 addition & 0 deletions linebot/v3/liff/models/get_all_liff_apps_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
class GetAllLiffAppsResponse(BaseModel):
"""
GetAllLiffAppsResponse
https://developers.line.biz/en/reference/liff-server/#get-all-liff-apps
"""
apps: Optional[conlist(LiffApp)] = None

Expand Down
1 change: 1 addition & 0 deletions linebot/v3/liff/models/liff_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
class LiffApp(BaseModel):
"""
LiffApp
https://developers.line.biz/en/reference/liff-server/#get-all-liff-apps
"""
liff_id: Optional[StrictStr] = Field(None, alias="liffId", description="LIFF app ID")
view: Optional[LiffView] = None
Expand Down
1 change: 1 addition & 0 deletions linebot/v3/liff/models/liff_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
class LiffFeatures(BaseModel):
"""
LiffFeatures
https://developers.line.biz/en/reference/liff-server/#get-all-liff-apps
"""
ble: Optional[StrictBool] = Field(None, description="`true` if the LIFF app supports Bluetooth® Low Energy for LINE Things. `false` otherwise. ")
qr_code: Optional[StrictBool] = Field(False, alias="qrCode", description="`true` to use the 2D code reader in the LIFF app. false otherwise. The default value is `false`. ")
Expand Down
1 change: 1 addition & 0 deletions linebot/v3/messaging/models/rich_menu_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
class RichMenuResponse(BaseModel):
"""
RichMenuResponse
https://developers.line.biz/en/reference/messaging-api/#rich-menu-response-object
"""
rich_menu_id: StrictStr = Field(..., alias="richMenuId", description="ID of a rich menu")
size: RichMenuSize = Field(...)
Expand Down
1 change: 1 addition & 0 deletions linebot/v3/moduleattach/models/attach_module_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
class AttachModuleResponse(BaseModel):
"""
Attach by operation of the module channel provider
https://developers.line.biz/en/reference/partner-docs/#link-attach-by-operation-module-channel-provider
"""
bot_id: StrictStr = Field(..., description="User ID of the bot on the LINE Official Account.")
scopes: conlist(StrictStr) = Field(..., description="Permissions (scope) granted by the LINE Official Account admin.")
Expand Down
1 change: 1 addition & 0 deletions linebot/v3/oauth/models/error_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
class ErrorResponse(BaseModel):
"""
Error response of the Channel access token
https://developers.line.biz/en/reference/messaging-api/#error-responses
"""
error: Optional[StrictStr] = Field(None, description="Error summary")
error_description: Optional[StrictStr] = Field(None, description="Details of the error. Not returned in certain situations.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
class VerifyChannelAccessTokenResponse(BaseModel):
"""
Verification result
https://developers.line.biz/en/reference/messaging-api/#verify-channel-access-token-v2-1
"""
client_id: StrictStr = Field(..., description="The channel ID for which the channel access token was issued.")
expires_in: StrictInt = Field(..., description="Number of seconds before the channel access token expires.")
Expand Down
1 change: 1 addition & 0 deletions linebot/v3/webhooks/models/account_link_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
class AccountLinkEvent(Event):
"""
Event object for when a user has linked their LINE account with a provider's service account. You can reply to account link events.
https://developers.line.biz/en/reference/messaging-api/#account-link-event
"""
reply_token: Optional[StrictStr] = Field(None, alias="replyToken", description="Reply token used to send reply message to this event. This property won't be included if linking the account has failed.")
link: LinkContent = Field(...)
Expand Down
1 change: 1 addition & 0 deletions linebot/v3/webhooks/models/activated_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
class ActivatedEvent(Event):
"""
This event indicates that the module channel has been switched to Active Channel by calling the Acquire Control API. Sent to the webhook URL server of the module channel.
https://developers.line.biz/en/reference/partner-docs/#activated-event
"""
chat_control: ChatControl = Field(..., alias="chatControl")
type: str = "activated"
Expand Down
1 change: 1 addition & 0 deletions linebot/v3/webhooks/models/attached_module_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
class AttachedModuleContent(ModuleContent):
"""
AttachedModuleContent
https://developers.line.biz/en/reference/partner-docs/#attached-event
"""
bot_id: StrictStr = Field(..., alias="botId", description="User ID of the bot on the attached LINE Official Account")
scopes: conlist(StrictStr) = Field(..., description="An array of strings indicating the scope permitted by the admin of the LINE Official Account.")
Expand Down
1 change: 1 addition & 0 deletions linebot/v3/webhooks/models/audio_message_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
class AudioMessageContent(MessageContent):
"""
AudioMessageContent
https://developers.line.biz/en/reference/messaging-api/#wh-audio
"""
content_provider: ContentProvider = Field(..., alias="contentProvider")
duration: Optional[StrictInt] = Field(None, description="Length of audio file (milliseconds)")
Expand Down
1 change: 1 addition & 0 deletions linebot/v3/webhooks/models/beacon_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
class BeaconContent(BaseModel):
"""
BeaconContent
https://developers.line.biz/en/reference/messaging-api/#beacon-event
"""
hwid: StrictStr = Field(..., description="Hardware ID of the beacon that was detected")
type: StrictStr = Field(..., description="Type of beacon event.")
Expand Down
1 change: 1 addition & 0 deletions linebot/v3/webhooks/models/beacon_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
class BeaconEvent(Event):
"""
Event object for when a user enters the range of a LINE Beacon. You can reply to beacon events.
https://developers.line.biz/en/reference/messaging-api/#beacon-event
"""
reply_token: StrictStr = Field(..., alias="replyToken", description="Reply token used to send reply message to this event")
beacon: BeaconContent = Field(...)
Expand Down
1 change: 1 addition & 0 deletions linebot/v3/webhooks/models/bot_resumed_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
class BotResumedEvent(Event):
"""
This event indicates that the LINE Official Account has returned from the suspended state. Sent to the webhook URL server of the module channel.
https://developers.line.biz/en/reference/partner-docs/#botresumed-event
"""
type: str = "botResumed"

Expand Down
1 change: 1 addition & 0 deletions linebot/v3/webhooks/models/bot_suspended_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
class BotSuspendedEvent(Event):
"""
This event indicates that the LINE Official Account has been suspended (Suspend). Sent to the webhook URL server of the module channel.
https://developers.line.biz/en/reference/partner-docs/#botsuspend-event
"""
type: str = "botSuspended"

Expand Down
1 change: 1 addition & 0 deletions linebot/v3/webhooks/models/chat_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
class ChatControl(BaseModel):
"""
ChatControl
https://developers.line.biz/en/reference/partner-docs/#activated-event
"""
expire_at: StrictInt = Field(..., alias="expireAt")

Expand Down
1 change: 1 addition & 0 deletions linebot/v3/webhooks/models/deactivated_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
class DeactivatedEvent(Event):
"""
This event indicates that the module channel has been switched to Standby Channel by calling Acquire Control API or Release Control API. Sent to the webhook URL server of the module channel.
https://developers.line.biz/en/reference/partner-docs/#deactivated-event
"""
type: str = "deactivated"

Expand Down
1 change: 1 addition & 0 deletions linebot/v3/webhooks/models/detached_module_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
class DetachedModuleContent(ModuleContent):
"""
DetachedModuleContent
https://developers.line.biz/en/reference/partner-docs/#detached-event
"""
bot_id: StrictStr = Field(..., alias="botId", description="Detached LINE Official Account bot user ID")
reason: StrictStr = Field(..., description="Reason for detaching")
Expand Down
1 change: 1 addition & 0 deletions linebot/v3/webhooks/models/file_message_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
class FileMessageContent(MessageContent):
"""
FileMessageContent
https://developers.line.biz/en/reference/messaging-api/#wh-file
"""
file_name: StrictStr = Field(..., alias="fileName", description="File name")
file_size: StrictInt = Field(..., alias="fileSize", description="File size in bytes")
Expand Down
1 change: 1 addition & 0 deletions linebot/v3/webhooks/models/follow_detail.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
class FollowDetail(BaseModel):
"""
FollowDetail
https://developers.line.biz/en/reference/messaging-api/#follow-event
"""
is_unblocked: StrictBool = Field(..., alias="isUnblocked", description="Whether a user has added your LINE Official Account as a friend or unblocked.")

Expand Down
1 change: 1 addition & 0 deletions linebot/v3/webhooks/models/follow_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
class FollowEvent(Event):
"""
Event object for when your LINE Official Account is added as a friend (or unblocked). You can reply to follow events.
https://developers.line.biz/en/reference/messaging-api/#follow-event
"""
reply_token: StrictStr = Field(..., alias="replyToken", description="Reply token used to send reply message to this event")
follow: FollowDetail = Field(...)
Expand Down
1 change: 1 addition & 0 deletions linebot/v3/webhooks/models/image_message_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
class ImageMessageContent(MessageContent):
"""
ImageMessageContent
https://developers.line.biz/en/reference/messaging-api/#wh-image
"""
content_provider: ContentProvider = Field(..., alias="contentProvider")
image_set: Optional[ImageSet] = Field(None, alias="imageSet")
Expand Down
1 change: 1 addition & 0 deletions linebot/v3/webhooks/models/join_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
class JoinEvent(Event):
"""
Event object for when your LINE Official Account joins a group chat or multi-person chat. You can reply to join events.
https://developers.line.biz/en/reference/messaging-api/#join-event
"""
reply_token: StrictStr = Field(..., alias="replyToken", description="Reply token used to send reply message to this event")
type: str = "join"
Expand Down
1 change: 1 addition & 0 deletions linebot/v3/webhooks/models/joined_members.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
class JoinedMembers(BaseModel):
"""
JoinedMembers
https://developers.line.biz/en/reference/messaging-api/#member-joined-event
"""
members: conlist(UserSource) = Field(..., description="Users who joined. Array of source user objects.")

Expand Down
1 change: 1 addition & 0 deletions linebot/v3/webhooks/models/leave_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
class LeaveEvent(Event):
"""
Event object for when a user removes your LINE Official Account from a group chat or when your LINE Official Account leaves a group chat or multi-person chat.
https://developers.line.biz/en/reference/messaging-api/#leave-event
"""
type: str = "leave"

Expand Down
1 change: 1 addition & 0 deletions linebot/v3/webhooks/models/left_members.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
class LeftMembers(BaseModel):
"""
LeftMembers
https://developers.line.biz/en/reference/messaging-api/#member-left-event
"""
members: conlist(UserSource) = Field(..., description="Users who left. Array of source user objects.")

Expand Down
1 change: 1 addition & 0 deletions linebot/v3/webhooks/models/link_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
class LinkContent(BaseModel):
"""
Content of the account link event.
https://developers.line.biz/en/reference/messaging-api/#account-link-event
"""
result: StrictStr = Field(..., description="One of the following values to indicate whether linking the account was successful or not")
nonce: StrictStr = Field(..., description="Specified nonce (number used once) when verifying the user ID.")
Expand Down
1 change: 1 addition & 0 deletions linebot/v3/webhooks/models/location_message_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
class LocationMessageContent(MessageContent):
"""
LocationMessageContent
https://developers.line.biz/en/reference/messaging-api/#wh-location
"""
title: Optional[StrictStr] = Field(None, description="Title")
address: Optional[StrictStr] = Field(None, description="Address")
Expand Down
1 change: 1 addition & 0 deletions linebot/v3/webhooks/models/member_joined_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
class MemberJoinedEvent(Event):
"""
Event object for when a user joins a group chat or multi-person chat that the LINE Official Account is in.
https://developers.line.biz/en/reference/messaging-api/#member-joined-event
"""
reply_token: StrictStr = Field(..., alias="replyToken", description="Reply token used to send reply message to this event")
joined: JoinedMembers = Field(...)
Expand Down
1 change: 1 addition & 0 deletions linebot/v3/webhooks/models/member_left_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
class MemberLeftEvent(Event):
"""
Event object for when a user leaves a group chat or multi-person chat that the LINE Official Account is in.
https://developers.line.biz/en/reference/messaging-api/#member-left-event
"""
left: LeftMembers = Field(...)
type: str = "memberLeft"
Expand Down
1 change: 1 addition & 0 deletions linebot/v3/webhooks/models/membership_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
class MembershipContent(BaseModel):
"""
Content of the membership event.
https://developers.line.biz/en/reference/messaging-api/#membership-event
"""
type: StrictStr = Field(..., description="Type of membership event.")

Expand Down
1 change: 1 addition & 0 deletions linebot/v3/webhooks/models/membership_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
class MembershipEvent(Event):
"""
This event indicates that a user has subscribed (joined), unsubscribed (left), or renewed the bot's membership.
https://developers.line.biz/en/reference/messaging-api/#membership-event
"""
reply_token: StrictStr = Field(..., alias="replyToken", description="Reply token used to send reply message to this event")
membership: MembershipContent = Field(...)
Expand Down
1 change: 1 addition & 0 deletions linebot/v3/webhooks/models/message_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
class MessageEvent(Event):
"""
Webhook event object which contains the sent message.
https://developers.line.biz/en/reference/messaging-api/#message-event
"""
reply_token: Optional[StrictStr] = Field(None, alias="replyToken")
message: MessageContent = Field(...)
Expand Down
1 change: 1 addition & 0 deletions linebot/v3/webhooks/models/module_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
class ModuleContent(BaseModel):
"""
ModuleContent
https://developers.line.biz/en/reference/partner-docs/#module-channel-specific-webhook-events
"""
type: StrictStr = Field(..., description="Type")

Expand Down
1 change: 1 addition & 0 deletions linebot/v3/webhooks/models/module_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
class ModuleEvent(Event):
"""
This event indicates that the module channel has been attached to the LINE Official Account. Sent to the webhook URL server of the module channel.
https://developers.line.biz/en/reference/partner-docs/#module-channel-specific-webhook-events
"""
module: ModuleContent = Field(...)
type: str = "module"
Expand Down
1 change: 1 addition & 0 deletions linebot/v3/webhooks/models/pnp_delivery.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
class PnpDelivery(BaseModel):
"""
A delivery object containing a hashed phone number string or a string specified by `X-Line-Delivery-Tag` header
https://developers.line.biz/en/docs/partner-docs/line-notification-messages/message-sending-complete-webhook-event/#overview-delivery-webhook-event
"""
data: StrictStr = Field(..., description="A hashed phone number string or a string specified by `X-Line-Delivery-Tag` header")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
class PnpDeliveryCompletionEvent(Event):
"""
When a request is made to the LINE notification messages API and delivery of the LINE notification message to the user is completed, a dedicated webhook event (delivery completion event) is sent from the LINE Platform to the webhook URL of the bot server.
https://developers.line.biz/en/docs/partner-docs/line-notification-messages/message-sending-complete-webhook-event/#overview-delivery-webhook-event
"""
delivery: PnpDelivery = Field(...)
type: str = "delivery"
Expand Down
1 change: 1 addition & 0 deletions linebot/v3/webhooks/models/postback_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
class PostbackContent(BaseModel):
"""
PostbackContent
https://developers.line.biz/en/reference/messaging-api/#postback-event
"""
data: StrictStr = Field(..., description="Postback data")
params: Optional[Dict[str, StrictStr]] = None
Expand Down
1 change: 1 addition & 0 deletions linebot/v3/webhooks/models/postback_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
class PostbackEvent(Event):
"""
Event object for when a user performs a postback action which initiates a postback. You can reply to postback events.
https://developers.line.biz/en/reference/messaging-api/#postback-event
"""
reply_token: Optional[StrictStr] = Field(None, alias="replyToken", description="Reply token used to send reply message to this event")
postback: PostbackContent = Field(...)
Expand Down
Loading