line-bot-api 2.8.0 → 2.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. checksums.yaml +4 -4
  2. data/lib/line/bot/v2/channel_access_token/api/channel_access_token_client.rb +2 -2
  3. data/lib/line/bot/v2/channel_access_token/model/error_response.rb +1 -0
  4. data/lib/line/bot/v2/channel_access_token/model/verify_channel_access_token_response.rb +1 -0
  5. data/lib/line/bot/v2/insight/model/age_tile.rb +1 -0
  6. data/lib/line/bot/v2/insight/model/app_type_tile.rb +1 -0
  7. data/lib/line/bot/v2/insight/model/area_tile.rb +1 -0
  8. data/lib/line/bot/v2/insight/model/error_detail.rb +1 -0
  9. data/lib/line/bot/v2/insight/model/gender_tile.rb +1 -0
  10. data/lib/line/bot/v2/insight/model/get_message_event_response_click.rb +1 -0
  11. data/lib/line/bot/v2/insight/model/get_message_event_response_message.rb +1 -0
  12. data/lib/line/bot/v2/insight/model/get_message_event_response_overview.rb +1 -0
  13. data/lib/line/bot/v2/insight/model/subscription_period_tile.rb +1 -0
  14. data/lib/line/bot/v2/liff/api/liff_client.rb +6 -4
  15. data/lib/line/bot/v2/liff/model/add_liff_app_response.rb +1 -0
  16. data/lib/line/bot/v2/liff/model/get_all_liff_apps_response.rb +1 -0
  17. data/lib/line/bot/v2/liff/model/liff_app.rb +1 -0
  18. data/lib/line/bot/v2/liff/model/liff_features.rb +1 -0
  19. data/lib/line/bot/v2/manage_audience/api/manage_audience_client.rb +12 -8
  20. data/lib/line/bot/v2/messaging_api/api/messaging_api_blob_client.rb +15 -10
  21. data/lib/line/bot/v2/messaging_api/api/messaging_api_client.rb +75 -51
  22. data/lib/line/bot/v2/messaging_api/model/rich_menu_response.rb +1 -0
  23. data/lib/line/bot/v2/module/api/line_module_client.rb +6 -4
  24. data/lib/line/bot/v2/module_attach/model/attach_module_response.rb +1 -0
  25. data/lib/line/bot/v2/utils.rb +25 -0
  26. data/lib/line/bot/v2/webhook/model/account_link_event.rb +1 -0
  27. data/lib/line/bot/v2/webhook/model/activated_event.rb +1 -0
  28. data/lib/line/bot/v2/webhook/model/attached_module_content.rb +1 -0
  29. data/lib/line/bot/v2/webhook/model/audio_message_content.rb +1 -0
  30. data/lib/line/bot/v2/webhook/model/beacon_content.rb +1 -0
  31. data/lib/line/bot/v2/webhook/model/beacon_event.rb +1 -0
  32. data/lib/line/bot/v2/webhook/model/bot_resumed_event.rb +1 -0
  33. data/lib/line/bot/v2/webhook/model/bot_suspended_event.rb +1 -0
  34. data/lib/line/bot/v2/webhook/model/chat_control.rb +1 -0
  35. data/lib/line/bot/v2/webhook/model/deactivated_event.rb +1 -0
  36. data/lib/line/bot/v2/webhook/model/detached_module_content.rb +1 -0
  37. data/lib/line/bot/v2/webhook/model/file_message_content.rb +1 -0
  38. data/lib/line/bot/v2/webhook/model/follow_detail.rb +1 -0
  39. data/lib/line/bot/v2/webhook/model/follow_event.rb +1 -0
  40. data/lib/line/bot/v2/webhook/model/image_message_content.rb +1 -0
  41. data/lib/line/bot/v2/webhook/model/join_event.rb +1 -0
  42. data/lib/line/bot/v2/webhook/model/joined_members.rb +1 -0
  43. data/lib/line/bot/v2/webhook/model/leave_event.rb +1 -0
  44. data/lib/line/bot/v2/webhook/model/left_members.rb +1 -0
  45. data/lib/line/bot/v2/webhook/model/link_content.rb +1 -0
  46. data/lib/line/bot/v2/webhook/model/location_message_content.rb +1 -0
  47. data/lib/line/bot/v2/webhook/model/member_joined_event.rb +1 -0
  48. data/lib/line/bot/v2/webhook/model/member_left_event.rb +1 -0
  49. data/lib/line/bot/v2/webhook/model/membership_content.rb +1 -0
  50. data/lib/line/bot/v2/webhook/model/membership_event.rb +1 -0
  51. data/lib/line/bot/v2/webhook/model/message_event.rb +1 -0
  52. data/lib/line/bot/v2/webhook/model/module_content.rb +1 -0
  53. data/lib/line/bot/v2/webhook/model/module_event.rb +1 -0
  54. data/lib/line/bot/v2/webhook/model/pnp_delivery.rb +1 -0
  55. data/lib/line/bot/v2/webhook/model/pnp_delivery_completion_event.rb +1 -0
  56. data/lib/line/bot/v2/webhook/model/postback_content.rb +1 -0
  57. data/lib/line/bot/v2/webhook/model/postback_event.rb +1 -0
  58. data/lib/line/bot/v2/webhook/model/text_message_content.rb +1 -0
  59. data/lib/line/bot/v2/webhook/model/unfollow_event.rb +1 -0
  60. data/lib/line/bot/v2/webhook/model/unsend_detail.rb +1 -0
  61. data/lib/line/bot/v2/webhook/model/unsend_event.rb +1 -0
  62. data/lib/line/bot/v2/webhook/model/video_message_content.rb +1 -0
  63. data/lib/line/bot/v2/webhook/model/video_play_complete.rb +1 -0
  64. data/lib/line/bot/v2/webhook/model/video_play_complete_event.rb +1 -0
  65. data/lib/line/bot/version.rb +1 -1
  66. data/sig/line/bot/v2/channel_access_token/api/channel_access_token_client.rbs +2 -2
  67. data/sig/line/bot/v2/channel_access_token/model/error_response.rbs +1 -0
  68. data/sig/line/bot/v2/channel_access_token/model/verify_channel_access_token_response.rbs +1 -0
  69. data/sig/line/bot/v2/insight/model/age_tile.rbs +1 -0
  70. data/sig/line/bot/v2/insight/model/app_type_tile.rbs +1 -0
  71. data/sig/line/bot/v2/insight/model/area_tile.rbs +1 -0
  72. data/sig/line/bot/v2/insight/model/error_detail.rbs +1 -0
  73. data/sig/line/bot/v2/insight/model/gender_tile.rbs +1 -0
  74. data/sig/line/bot/v2/insight/model/get_message_event_response_click.rbs +1 -0
  75. data/sig/line/bot/v2/insight/model/get_message_event_response_message.rbs +1 -0
  76. data/sig/line/bot/v2/insight/model/get_message_event_response_overview.rbs +1 -0
  77. data/sig/line/bot/v2/insight/model/subscription_period_tile.rbs +1 -0
  78. data/sig/line/bot/v2/liff/model/add_liff_app_response.rbs +1 -0
  79. data/sig/line/bot/v2/liff/model/get_all_liff_apps_response.rbs +1 -0
  80. data/sig/line/bot/v2/liff/model/liff_app.rbs +1 -0
  81. data/sig/line/bot/v2/liff/model/liff_features.rbs +1 -0
  82. data/sig/line/bot/v2/messaging_api/model/rich_menu_response.rbs +1 -0
  83. data/sig/line/bot/v2/module_attach/model/attach_module_response.rbs +1 -0
  84. data/sig/line/bot/v2/utils.rbs +4 -0
  85. data/sig/line/bot/v2/webhook/model/account_link_event.rbs +1 -0
  86. data/sig/line/bot/v2/webhook/model/activated_event.rbs +1 -0
  87. data/sig/line/bot/v2/webhook/model/attached_module_content.rbs +1 -0
  88. data/sig/line/bot/v2/webhook/model/audio_message_content.rbs +1 -0
  89. data/sig/line/bot/v2/webhook/model/beacon_content.rbs +1 -0
  90. data/sig/line/bot/v2/webhook/model/beacon_event.rbs +1 -0
  91. data/sig/line/bot/v2/webhook/model/bot_resumed_event.rbs +1 -0
  92. data/sig/line/bot/v2/webhook/model/bot_suspended_event.rbs +1 -0
  93. data/sig/line/bot/v2/webhook/model/chat_control.rbs +1 -0
  94. data/sig/line/bot/v2/webhook/model/deactivated_event.rbs +1 -0
  95. data/sig/line/bot/v2/webhook/model/detached_module_content.rbs +1 -0
  96. data/sig/line/bot/v2/webhook/model/file_message_content.rbs +1 -0
  97. data/sig/line/bot/v2/webhook/model/follow_detail.rbs +1 -0
  98. data/sig/line/bot/v2/webhook/model/follow_event.rbs +1 -0
  99. data/sig/line/bot/v2/webhook/model/image_message_content.rbs +1 -0
  100. data/sig/line/bot/v2/webhook/model/join_event.rbs +1 -0
  101. data/sig/line/bot/v2/webhook/model/joined_members.rbs +1 -0
  102. data/sig/line/bot/v2/webhook/model/leave_event.rbs +1 -0
  103. data/sig/line/bot/v2/webhook/model/left_members.rbs +1 -0
  104. data/sig/line/bot/v2/webhook/model/link_content.rbs +1 -0
  105. data/sig/line/bot/v2/webhook/model/location_message_content.rbs +1 -0
  106. data/sig/line/bot/v2/webhook/model/member_joined_event.rbs +1 -0
  107. data/sig/line/bot/v2/webhook/model/member_left_event.rbs +1 -0
  108. data/sig/line/bot/v2/webhook/model/membership_content.rbs +1 -0
  109. data/sig/line/bot/v2/webhook/model/membership_event.rbs +1 -0
  110. data/sig/line/bot/v2/webhook/model/message_event.rbs +1 -0
  111. data/sig/line/bot/v2/webhook/model/module_content.rbs +1 -0
  112. data/sig/line/bot/v2/webhook/model/module_event.rbs +1 -0
  113. data/sig/line/bot/v2/webhook/model/pnp_delivery.rbs +1 -0
  114. data/sig/line/bot/v2/webhook/model/pnp_delivery_completion_event.rbs +1 -0
  115. data/sig/line/bot/v2/webhook/model/postback_content.rbs +1 -0
  116. data/sig/line/bot/v2/webhook/model/postback_event.rbs +1 -0
  117. data/sig/line/bot/v2/webhook/model/text_message_content.rbs +1 -0
  118. data/sig/line/bot/v2/webhook/model/unfollow_event.rbs +1 -0
  119. data/sig/line/bot/v2/webhook/model/unsend_detail.rbs +1 -0
  120. data/sig/line/bot/v2/webhook/model/unsend_event.rbs +1 -0
  121. data/sig/line/bot/v2/webhook/model/video_message_content.rbs +1 -0
  122. data/sig/line/bot/v2/webhook/model/video_play_complete.rbs +1 -0
  123. data/sig/line/bot/v2/webhook/model/video_play_complete_event.rbs +1 -0
  124. metadata +1 -1
@@ -11,6 +11,7 @@ module Line
11
11
  module Bot
12
12
  module V2
13
13
  module Webhook
14
+ # @see https://developers.line.biz/en/reference/messaging-api/#wh-audio
14
15
  class AudioMessageContent < MessageContent
15
16
  attr_reader type: String
16
17
  attr_accessor id: String
@@ -11,6 +11,7 @@ module Line
11
11
  module Bot
12
12
  module V2
13
13
  module Webhook
14
+ # @see https://developers.line.biz/en/reference/messaging-api/#beacon-event
14
15
  class BeaconContent
15
16
  attr_accessor hwid: String
16
17
  attr_accessor type: 'enter'|'banner'|'stay'
@@ -12,6 +12,7 @@ module Line
12
12
  module V2
13
13
  module Webhook
14
14
  # Event object for when a user enters the range of a LINE Beacon. You can reply to beacon events.
15
+ # @see https://developers.line.biz/en/reference/messaging-api/#beacon-event
15
16
  class BeaconEvent < Event
16
17
  attr_reader type: String
17
18
  attr_accessor source: Source?
@@ -12,6 +12,7 @@ module Line
12
12
  module V2
13
13
  module Webhook
14
14
  # This event indicates that the LINE Official Account has returned from the suspended state. Sent to the webhook URL server of the module channel.
15
+ # @see https://developers.line.biz/en/reference/partner-docs/#botresumed-event
15
16
  class BotResumedEvent < Event
16
17
  attr_reader type: String
17
18
  attr_accessor source: Source?
@@ -12,6 +12,7 @@ module Line
12
12
  module V2
13
13
  module Webhook
14
14
  # This event indicates that the LINE Official Account has been suspended (Suspend). Sent to the webhook URL server of the module channel.
15
+ # @see https://developers.line.biz/en/reference/partner-docs/#botsuspend-event
15
16
  class BotSuspendedEvent < Event
16
17
  attr_reader type: String
17
18
  attr_accessor source: Source?
@@ -11,6 +11,7 @@ module Line
11
11
  module Bot
12
12
  module V2
13
13
  module Webhook
14
+ # @see https://developers.line.biz/en/reference/partner-docs/#activated-event
14
15
  class ChatControl
15
16
  attr_accessor expire_at: Integer
16
17
 
@@ -12,6 +12,7 @@ module Line
12
12
  module V2
13
13
  module Webhook
14
14
  # 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.
15
+ # @see https://developers.line.biz/en/reference/partner-docs/#deactivated-event
15
16
  class DeactivatedEvent < Event
16
17
  attr_reader type: String
17
18
  attr_accessor source: Source?
@@ -11,6 +11,7 @@ module Line
11
11
  module Bot
12
12
  module V2
13
13
  module Webhook
14
+ # @see https://developers.line.biz/en/reference/partner-docs/#detached-event
14
15
  class DetachedModuleContent < ModuleContent
15
16
  attr_reader type: String
16
17
  attr_accessor bot_id: String
@@ -11,6 +11,7 @@ module Line
11
11
  module Bot
12
12
  module V2
13
13
  module Webhook
14
+ # @see https://developers.line.biz/en/reference/messaging-api/#wh-file
14
15
  class FileMessageContent < MessageContent
15
16
  attr_reader type: String
16
17
  attr_accessor id: String
@@ -11,6 +11,7 @@ module Line
11
11
  module Bot
12
12
  module V2
13
13
  module Webhook
14
+ # @see https://developers.line.biz/en/reference/messaging-api/#follow-event
14
15
  class FollowDetail
15
16
  attr_accessor is_unblocked: bool
16
17
 
@@ -12,6 +12,7 @@ module Line
12
12
  module V2
13
13
  module Webhook
14
14
  # Event object for when your LINE Official Account is added as a friend (or unblocked). You can reply to follow events.
15
+ # @see https://developers.line.biz/en/reference/messaging-api/#follow-event
15
16
  class FollowEvent < Event
16
17
  attr_reader type: String
17
18
  attr_accessor source: Source?
@@ -11,6 +11,7 @@ module Line
11
11
  module Bot
12
12
  module V2
13
13
  module Webhook
14
+ # @see https://developers.line.biz/en/reference/messaging-api/#wh-image
14
15
  class ImageMessageContent < MessageContent
15
16
  attr_reader type: String
16
17
  attr_accessor id: String
@@ -12,6 +12,7 @@ module Line
12
12
  module V2
13
13
  module Webhook
14
14
  # Event object for when your LINE Official Account joins a group chat or multi-person chat. You can reply to join events.
15
+ # @see https://developers.line.biz/en/reference/messaging-api/#join-event
15
16
  class JoinEvent < Event
16
17
  attr_reader type: String
17
18
  attr_accessor source: Source?
@@ -11,6 +11,7 @@ module Line
11
11
  module Bot
12
12
  module V2
13
13
  module Webhook
14
+ # @see https://developers.line.biz/en/reference/messaging-api/#member-joined-event
14
15
  class JoinedMembers
15
16
  attr_accessor members: Array[UserSource]
16
17
 
@@ -12,6 +12,7 @@ module Line
12
12
  module V2
13
13
  module Webhook
14
14
  # 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.
15
+ # @see https://developers.line.biz/en/reference/messaging-api/#leave-event
15
16
  class LeaveEvent < Event
16
17
  attr_reader type: String
17
18
  attr_accessor source: Source?
@@ -11,6 +11,7 @@ module Line
11
11
  module Bot
12
12
  module V2
13
13
  module Webhook
14
+ # @see https://developers.line.biz/en/reference/messaging-api/#member-left-event
14
15
  class LeftMembers
15
16
  attr_accessor members: Array[UserSource]
16
17
 
@@ -12,6 +12,7 @@ module Line
12
12
  module V2
13
13
  module Webhook
14
14
  # Content of the account link event.
15
+ # @see https://developers.line.biz/en/reference/messaging-api/#account-link-event
15
16
  class LinkContent
16
17
  attr_accessor result: 'ok'|'failed'
17
18
  attr_accessor nonce: String
@@ -11,6 +11,7 @@ module Line
11
11
  module Bot
12
12
  module V2
13
13
  module Webhook
14
+ # @see https://developers.line.biz/en/reference/messaging-api/#wh-location
14
15
  class LocationMessageContent < MessageContent
15
16
  attr_reader type: String
16
17
  attr_accessor id: String
@@ -12,6 +12,7 @@ module Line
12
12
  module V2
13
13
  module Webhook
14
14
  # Event object for when a user joins a group chat or multi-person chat that the LINE Official Account is in.
15
+ # @see https://developers.line.biz/en/reference/messaging-api/#member-joined-event
15
16
  class MemberJoinedEvent < Event
16
17
  attr_reader type: String
17
18
  attr_accessor source: Source?
@@ -12,6 +12,7 @@ module Line
12
12
  module V2
13
13
  module Webhook
14
14
  # Event object for when a user leaves a group chat or multi-person chat that the LINE Official Account is in.
15
+ # @see https://developers.line.biz/en/reference/messaging-api/#member-left-event
15
16
  class MemberLeftEvent < Event
16
17
  attr_reader type: String
17
18
  attr_accessor source: Source?
@@ -12,6 +12,7 @@ module Line
12
12
  module V2
13
13
  module Webhook
14
14
  # Content of the membership event.
15
+ # @see https://developers.line.biz/en/reference/messaging-api/#membership-event
15
16
  class MembershipContent
16
17
  attr_accessor type: String
17
18
 
@@ -12,6 +12,7 @@ module Line
12
12
  module V2
13
13
  module Webhook
14
14
  # This event indicates that a user has subscribed (joined), unsubscribed (left), or renewed the bot's membership.
15
+ # @see https://developers.line.biz/en/reference/messaging-api/#membership-event
15
16
  class MembershipEvent < Event
16
17
  attr_reader type: String
17
18
  attr_accessor source: Source?
@@ -12,6 +12,7 @@ module Line
12
12
  module V2
13
13
  module Webhook
14
14
  # Webhook event object which contains the sent message.
15
+ # @see https://developers.line.biz/en/reference/messaging-api/#message-event
15
16
  class MessageEvent < Event
16
17
  attr_reader type: String
17
18
  attr_accessor source: Source?
@@ -11,6 +11,7 @@ module Line
11
11
  module Bot
12
12
  module V2
13
13
  module Webhook
14
+ # @see https://developers.line.biz/en/reference/partner-docs/#module-channel-specific-webhook-events
14
15
  class ModuleContent
15
16
  attr_accessor type: String
16
17
 
@@ -12,6 +12,7 @@ module Line
12
12
  module V2
13
13
  module Webhook
14
14
  # 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.
15
+ # @see https://developers.line.biz/en/reference/partner-docs/#module-channel-specific-webhook-events
15
16
  class ModuleEvent < Event
16
17
  attr_reader type: String
17
18
  attr_accessor source: Source?
@@ -12,6 +12,7 @@ module Line
12
12
  module V2
13
13
  module Webhook
14
14
  # A delivery object containing a hashed phone number string or a string specified by `X-Line-Delivery-Tag` header
15
+ # @see https://developers.line.biz/en/docs/partner-docs/line-notification-messages/message-sending-complete-webhook-event/#overview-delivery-webhook-event
15
16
  class PnpDelivery
16
17
  attr_accessor data: String
17
18
 
@@ -12,6 +12,7 @@ module Line
12
12
  module V2
13
13
  module Webhook
14
14
  # 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.
15
+ # @see https://developers.line.biz/en/docs/partner-docs/line-notification-messages/message-sending-complete-webhook-event/#overview-delivery-webhook-event
15
16
  class PnpDeliveryCompletionEvent < Event
16
17
  attr_reader type: String
17
18
  attr_accessor source: Source?
@@ -11,6 +11,7 @@ module Line
11
11
  module Bot
12
12
  module V2
13
13
  module Webhook
14
+ # @see https://developers.line.biz/en/reference/messaging-api/#postback-event
14
15
  class PostbackContent
15
16
  attr_accessor data: String
16
17
  attr_accessor params: Object?
@@ -12,6 +12,7 @@ module Line
12
12
  module V2
13
13
  module Webhook
14
14
  # Event object for when a user performs a postback action which initiates a postback. You can reply to postback events.
15
+ # @see https://developers.line.biz/en/reference/messaging-api/#postback-event
15
16
  class PostbackEvent < Event
16
17
  attr_reader type: String
17
18
  attr_accessor source: Source?
@@ -11,6 +11,7 @@ module Line
11
11
  module Bot
12
12
  module V2
13
13
  module Webhook
14
+ # @see https://developers.line.biz/en/reference/messaging-api/#wh-text
14
15
  class TextMessageContent < MessageContent
15
16
  attr_reader type: String
16
17
  attr_accessor id: String
@@ -12,6 +12,7 @@ module Line
12
12
  module V2
13
13
  module Webhook
14
14
  # Event object for when your LINE Official Account is blocked.
15
+ # @see https://developers.line.biz/en/reference/messaging-api/#unfollow-event
15
16
  class UnfollowEvent < Event
16
17
  attr_reader type: String
17
18
  attr_accessor source: Source?
@@ -11,6 +11,7 @@ module Line
11
11
  module Bot
12
12
  module V2
13
13
  module Webhook
14
+ # @see https://developers.line.biz/en/reference/messaging-api/#unsend-event
14
15
  class UnsendDetail
15
16
  attr_accessor message_id: String
16
17
 
@@ -12,6 +12,7 @@ module Line
12
12
  module V2
13
13
  module Webhook
14
14
  # Event object for when the user unsends a message.
15
+ # @see https://developers.line.biz/en/reference/messaging-api/#unsend-event
15
16
  class UnsendEvent < Event
16
17
  attr_reader type: String
17
18
  attr_accessor source: Source?
@@ -11,6 +11,7 @@ module Line
11
11
  module Bot
12
12
  module V2
13
13
  module Webhook
14
+ # @see https://developers.line.biz/en/reference/messaging-api/#wh-video
14
15
  class VideoMessageContent < MessageContent
15
16
  attr_reader type: String
16
17
  attr_accessor id: String
@@ -11,6 +11,7 @@ module Line
11
11
  module Bot
12
12
  module V2
13
13
  module Webhook
14
+ # @see https://developers.line.biz/en/reference/messaging-api/#video-viewing-complete
14
15
  class VideoPlayComplete
15
16
  attr_accessor tracking_id: String
16
17
 
@@ -12,6 +12,7 @@ module Line
12
12
  module V2
13
13
  module Webhook
14
14
  # Event for when a user finishes viewing a video at least once with the specified trackingId sent by the LINE Official Account.
15
+ # @see https://developers.line.biz/en/reference/messaging-api/#video-viewing-complete
15
16
  class VideoPlayCompleteEvent < Event
16
17
  attr_reader type: String
17
18
  attr_accessor source: Source?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: line-bot-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.0
4
+ version: 2.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - LINE Corporation