line-bot-api 2.8.1 → 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 (117) 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/model/add_liff_app_response.rb +1 -0
  15. data/lib/line/bot/v2/liff/model/get_all_liff_apps_response.rb +1 -0
  16. data/lib/line/bot/v2/liff/model/liff_app.rb +1 -0
  17. data/lib/line/bot/v2/liff/model/liff_features.rb +1 -0
  18. data/lib/line/bot/v2/messaging_api/model/rich_menu_response.rb +1 -0
  19. data/lib/line/bot/v2/module_attach/model/attach_module_response.rb +1 -0
  20. data/lib/line/bot/v2/webhook/model/account_link_event.rb +1 -0
  21. data/lib/line/bot/v2/webhook/model/activated_event.rb +1 -0
  22. data/lib/line/bot/v2/webhook/model/attached_module_content.rb +1 -0
  23. data/lib/line/bot/v2/webhook/model/audio_message_content.rb +1 -0
  24. data/lib/line/bot/v2/webhook/model/beacon_content.rb +1 -0
  25. data/lib/line/bot/v2/webhook/model/beacon_event.rb +1 -0
  26. data/lib/line/bot/v2/webhook/model/bot_resumed_event.rb +1 -0
  27. data/lib/line/bot/v2/webhook/model/bot_suspended_event.rb +1 -0
  28. data/lib/line/bot/v2/webhook/model/chat_control.rb +1 -0
  29. data/lib/line/bot/v2/webhook/model/deactivated_event.rb +1 -0
  30. data/lib/line/bot/v2/webhook/model/detached_module_content.rb +1 -0
  31. data/lib/line/bot/v2/webhook/model/file_message_content.rb +1 -0
  32. data/lib/line/bot/v2/webhook/model/follow_detail.rb +1 -0
  33. data/lib/line/bot/v2/webhook/model/follow_event.rb +1 -0
  34. data/lib/line/bot/v2/webhook/model/image_message_content.rb +1 -0
  35. data/lib/line/bot/v2/webhook/model/join_event.rb +1 -0
  36. data/lib/line/bot/v2/webhook/model/joined_members.rb +1 -0
  37. data/lib/line/bot/v2/webhook/model/leave_event.rb +1 -0
  38. data/lib/line/bot/v2/webhook/model/left_members.rb +1 -0
  39. data/lib/line/bot/v2/webhook/model/link_content.rb +1 -0
  40. data/lib/line/bot/v2/webhook/model/location_message_content.rb +1 -0
  41. data/lib/line/bot/v2/webhook/model/member_joined_event.rb +1 -0
  42. data/lib/line/bot/v2/webhook/model/member_left_event.rb +1 -0
  43. data/lib/line/bot/v2/webhook/model/membership_content.rb +1 -0
  44. data/lib/line/bot/v2/webhook/model/membership_event.rb +1 -0
  45. data/lib/line/bot/v2/webhook/model/message_event.rb +1 -0
  46. data/lib/line/bot/v2/webhook/model/module_content.rb +1 -0
  47. data/lib/line/bot/v2/webhook/model/module_event.rb +1 -0
  48. data/lib/line/bot/v2/webhook/model/pnp_delivery.rb +1 -0
  49. data/lib/line/bot/v2/webhook/model/pnp_delivery_completion_event.rb +1 -0
  50. data/lib/line/bot/v2/webhook/model/postback_content.rb +1 -0
  51. data/lib/line/bot/v2/webhook/model/postback_event.rb +1 -0
  52. data/lib/line/bot/v2/webhook/model/text_message_content.rb +1 -0
  53. data/lib/line/bot/v2/webhook/model/unfollow_event.rb +1 -0
  54. data/lib/line/bot/v2/webhook/model/unsend_detail.rb +1 -0
  55. data/lib/line/bot/v2/webhook/model/unsend_event.rb +1 -0
  56. data/lib/line/bot/v2/webhook/model/video_message_content.rb +1 -0
  57. data/lib/line/bot/v2/webhook/model/video_play_complete.rb +1 -0
  58. data/lib/line/bot/v2/webhook/model/video_play_complete_event.rb +1 -0
  59. data/lib/line/bot/version.rb +1 -1
  60. data/sig/line/bot/v2/channel_access_token/api/channel_access_token_client.rbs +2 -2
  61. data/sig/line/bot/v2/channel_access_token/model/error_response.rbs +1 -0
  62. data/sig/line/bot/v2/channel_access_token/model/verify_channel_access_token_response.rbs +1 -0
  63. data/sig/line/bot/v2/insight/model/age_tile.rbs +1 -0
  64. data/sig/line/bot/v2/insight/model/app_type_tile.rbs +1 -0
  65. data/sig/line/bot/v2/insight/model/area_tile.rbs +1 -0
  66. data/sig/line/bot/v2/insight/model/error_detail.rbs +1 -0
  67. data/sig/line/bot/v2/insight/model/gender_tile.rbs +1 -0
  68. data/sig/line/bot/v2/insight/model/get_message_event_response_click.rbs +1 -0
  69. data/sig/line/bot/v2/insight/model/get_message_event_response_message.rbs +1 -0
  70. data/sig/line/bot/v2/insight/model/get_message_event_response_overview.rbs +1 -0
  71. data/sig/line/bot/v2/insight/model/subscription_period_tile.rbs +1 -0
  72. data/sig/line/bot/v2/liff/model/add_liff_app_response.rbs +1 -0
  73. data/sig/line/bot/v2/liff/model/get_all_liff_apps_response.rbs +1 -0
  74. data/sig/line/bot/v2/liff/model/liff_app.rbs +1 -0
  75. data/sig/line/bot/v2/liff/model/liff_features.rbs +1 -0
  76. data/sig/line/bot/v2/messaging_api/model/rich_menu_response.rbs +1 -0
  77. data/sig/line/bot/v2/module_attach/model/attach_module_response.rbs +1 -0
  78. data/sig/line/bot/v2/webhook/model/account_link_event.rbs +1 -0
  79. data/sig/line/bot/v2/webhook/model/activated_event.rbs +1 -0
  80. data/sig/line/bot/v2/webhook/model/attached_module_content.rbs +1 -0
  81. data/sig/line/bot/v2/webhook/model/audio_message_content.rbs +1 -0
  82. data/sig/line/bot/v2/webhook/model/beacon_content.rbs +1 -0
  83. data/sig/line/bot/v2/webhook/model/beacon_event.rbs +1 -0
  84. data/sig/line/bot/v2/webhook/model/bot_resumed_event.rbs +1 -0
  85. data/sig/line/bot/v2/webhook/model/bot_suspended_event.rbs +1 -0
  86. data/sig/line/bot/v2/webhook/model/chat_control.rbs +1 -0
  87. data/sig/line/bot/v2/webhook/model/deactivated_event.rbs +1 -0
  88. data/sig/line/bot/v2/webhook/model/detached_module_content.rbs +1 -0
  89. data/sig/line/bot/v2/webhook/model/file_message_content.rbs +1 -0
  90. data/sig/line/bot/v2/webhook/model/follow_detail.rbs +1 -0
  91. data/sig/line/bot/v2/webhook/model/follow_event.rbs +1 -0
  92. data/sig/line/bot/v2/webhook/model/image_message_content.rbs +1 -0
  93. data/sig/line/bot/v2/webhook/model/join_event.rbs +1 -0
  94. data/sig/line/bot/v2/webhook/model/joined_members.rbs +1 -0
  95. data/sig/line/bot/v2/webhook/model/leave_event.rbs +1 -0
  96. data/sig/line/bot/v2/webhook/model/left_members.rbs +1 -0
  97. data/sig/line/bot/v2/webhook/model/link_content.rbs +1 -0
  98. data/sig/line/bot/v2/webhook/model/location_message_content.rbs +1 -0
  99. data/sig/line/bot/v2/webhook/model/member_joined_event.rbs +1 -0
  100. data/sig/line/bot/v2/webhook/model/member_left_event.rbs +1 -0
  101. data/sig/line/bot/v2/webhook/model/membership_content.rbs +1 -0
  102. data/sig/line/bot/v2/webhook/model/membership_event.rbs +1 -0
  103. data/sig/line/bot/v2/webhook/model/message_event.rbs +1 -0
  104. data/sig/line/bot/v2/webhook/model/module_content.rbs +1 -0
  105. data/sig/line/bot/v2/webhook/model/module_event.rbs +1 -0
  106. data/sig/line/bot/v2/webhook/model/pnp_delivery.rbs +1 -0
  107. data/sig/line/bot/v2/webhook/model/pnp_delivery_completion_event.rbs +1 -0
  108. data/sig/line/bot/v2/webhook/model/postback_content.rbs +1 -0
  109. data/sig/line/bot/v2/webhook/model/postback_event.rbs +1 -0
  110. data/sig/line/bot/v2/webhook/model/text_message_content.rbs +1 -0
  111. data/sig/line/bot/v2/webhook/model/unfollow_event.rbs +1 -0
  112. data/sig/line/bot/v2/webhook/model/unsend_detail.rbs +1 -0
  113. data/sig/line/bot/v2/webhook/model/unsend_event.rbs +1 -0
  114. data/sig/line/bot/v2/webhook/model/video_message_content.rbs +1 -0
  115. data/sig/line/bot/v2/webhook/model/video_play_complete.rbs +1 -0
  116. data/sig/line/bot/v2/webhook/model/video_play_complete_event.rbs +1 -0
  117. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6ad02a20005fee8a0e8d623b055e9e6f4990470078091977ff5fe975a859e648
4
- data.tar.gz: 68f57f3c95489ed50f9b025360fb2a64405dd2007a713867a29b7d571d1e9438
3
+ metadata.gz: 1ab8cdcb8950bc7aeec772f0a9b9bf33ee9f88847a6e03cc6494e31f24f32269
4
+ data.tar.gz: 850bff8627ff17a3eda76608481c95062511da1eafd0c2181735663628fcca74
5
5
  SHA512:
6
- metadata.gz: c619d6ee8fec6ce8414106ed4307efbdbb1b932a8bcb5de22a21d36e51dea1c4587ce8f9c3f31d0b0efb150896468c906b258f7b4ba594fd5399bc62e9a9c1f4
7
- data.tar.gz: 1981d17b472554726c2855f8b2e89efadc015c5de854a001ca701d45b8ce5c23da0fd0d1733db59c3e16867e12bfb22afc88cbcadf6e93f077c369b9a4e9f460
6
+ metadata.gz: 629ccf7854d4afb30029e2ff46dad7ed0089452874d3539c60dc1a47d4a10a22b23de9912588323e80eff8ee474898bdf5947be3ef4cada5fff4b04c8679cc00
7
+ data.tar.gz: e2be6c4428ebab6071ef247623beb330ea7fda13e893c15c31adee66c1e28efba3ab3ef79365c3c3115ee251d07be9aff03d8a44171ae280e52d342003b23388
@@ -326,7 +326,7 @@ module Line
326
326
  # This requests to <code>POST https://api.line.me/v2/oauth/revoke</code>
327
327
  # This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
328
328
  #
329
- # @param access_token [String] Channel access token
329
+ # @param access_token [String] A short-lived or long-lived channel access token.
330
330
  # @see https://developers.line.biz/en/reference/messaging-api/#revoke-longlived-or-shortlived-channel-access-token
331
331
  # @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
332
332
  # @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
@@ -356,7 +356,7 @@ module Line
356
356
  # This requests to <code>POST https://api.line.me/v2/oauth/revoke</code>
357
357
  # When you want to get HTTP status code or response headers, use {#revoke_channel_token_with_http_info} instead of this.
358
358
  #
359
- # @param access_token [String] Channel access token
359
+ # @param access_token [String] A short-lived or long-lived channel access token.
360
360
  # @see https://developers.line.biz/en/reference/messaging-api/#revoke-longlived-or-shortlived-channel-access-token
361
361
  # @return [String, nil] when HTTP status code is 200
362
362
  # @return [String, nil] when other HTTP status code is returned. This String is HTTP response body itself.
@@ -12,6 +12,7 @@ module Line
12
12
  module V2
13
13
  module ChannelAccessToken
14
14
  # Error response of the Channel access token
15
+ # @see https://developers.line.biz/en/reference/messaging-api/#error-responses
15
16
  class ErrorResponse
16
17
  # @!attribute [rw] error
17
18
  # @return [String,nil] Error summary
@@ -12,6 +12,7 @@ module Line
12
12
  module V2
13
13
  module ChannelAccessToken
14
14
  # Verification result
15
+ # @see https://developers.line.biz/en/reference/messaging-api/#verify-channel-access-token-v2-1
15
16
  class VerifyChannelAccessTokenResponse
16
17
  # @!attribute [rw] client_id
17
18
  # @return [String] The channel ID for which the channel access token was issued.
@@ -11,6 +11,7 @@ module Line
11
11
  module Bot
12
12
  module V2
13
13
  module Insight
14
+ # @see https://developers.line.biz/en/reference/messaging-api/#get-demographic
14
15
  class AgeTile
15
16
  # @!attribute [rw] age
16
17
  # @return [String,nil] ('from0to14'|'from15to19'|'from20to24'|'from25to29'|'from30to34'|'from35to39'|'from40to44'|'from45to49'|'from50'|'from50to54'|'from55to59'|'from60to64'|'from65to69'|'from70'|'unknown') users' age
@@ -11,6 +11,7 @@ module Line
11
11
  module Bot
12
12
  module V2
13
13
  module Insight
14
+ # @see https://developers.line.biz/en/reference/messaging-api/#get-demographic
14
15
  class AppTypeTile
15
16
  # @!attribute [rw] app_type
16
17
  # @return [String,nil] ('ios'|'android'|'others') users' OS
@@ -11,6 +11,7 @@ module Line
11
11
  module Bot
12
12
  module V2
13
13
  module Insight
14
+ # @see https://developers.line.biz/en/reference/messaging-api/#get-demographic
14
15
  class AreaTile
15
16
  # @!attribute [rw] area
16
17
  # @return [String,nil] users' country and region
@@ -11,6 +11,7 @@ module Line
11
11
  module Bot
12
12
  module V2
13
13
  module Insight
14
+ # @see https://developers.line.biz/en/reference/messaging-api/#error-responses
14
15
  class ErrorDetail
15
16
  # @!attribute [rw] message
16
17
  # @return [String,nil] Details of the error. Not included in the response under certain situations.
@@ -11,6 +11,7 @@ module Line
11
11
  module Bot
12
12
  module V2
13
13
  module Insight
14
+ # @see https://developers.line.biz/en/reference/messaging-api/#get-demographic
14
15
  class GenderTile
15
16
  # @!attribute [rw] gender
16
17
  # @return [String,nil] ('male'|'female'|'unknown') users' gender
@@ -11,6 +11,7 @@ module Line
11
11
  module Bot
12
12
  module V2
13
13
  module Insight
14
+ # @see https://developers.line.biz/en/reference/messaging-api/#get-insight-message-event-response
14
15
  class GetMessageEventResponseClick
15
16
  # @!attribute [rw] seq
16
17
  # @return [Integer,nil] The URL's serial number.
@@ -11,6 +11,7 @@ module Line
11
11
  module Bot
12
12
  module V2
13
13
  module Insight
14
+ # @see https://developers.line.biz/en/reference/messaging-api/#get-insight-message-event-response
14
15
  class GetMessageEventResponseMessage
15
16
  # @!attribute [rw] seq
16
17
  # @return [Integer,nil] Bubble's serial number.
@@ -12,6 +12,7 @@ module Line
12
12
  module V2
13
13
  module Insight
14
14
  # Summary of message statistics.
15
+ # @see https://developers.line.biz/en/reference/messaging-api/#get-insight-message-event-response
15
16
  class GetMessageEventResponseOverview
16
17
  # @!attribute [rw] request_id
17
18
  # @return [String,nil] Request ID.
@@ -11,6 +11,7 @@ module Line
11
11
  module Bot
12
12
  module V2
13
13
  module Insight
14
+ # @see https://developers.line.biz/en/reference/messaging-api/#get-demographic
14
15
  class SubscriptionPeriodTile
15
16
  # @!attribute [rw] subscription_period
16
17
  # @return [String,nil] ('within7days'|'within30days'|'within90days'|'within180days'|'within365days'|'over365days'|'unknown') Subscription period. Possible values: `within7days`, `within90days`, `unknown` etc.
@@ -11,6 +11,7 @@ module Line
11
11
  module Bot
12
12
  module V2
13
13
  module Liff
14
+ # @see https://developers.line.biz/en/reference/liff-server/#add-liff-app
14
15
  class AddLiffAppResponse
15
16
  # @!attribute [rw] liff_id
16
17
  # @return [String]
@@ -11,6 +11,7 @@ module Line
11
11
  module Bot
12
12
  module V2
13
13
  module Liff
14
+ # @see https://developers.line.biz/en/reference/liff-server/#get-all-liff-apps
14
15
  class GetAllLiffAppsResponse
15
16
  # @!attribute [rw] apps
16
17
  # @return [Array[LiffApp],nil]
@@ -11,6 +11,7 @@ module Line
11
11
  module Bot
12
12
  module V2
13
13
  module Liff
14
+ # @see https://developers.line.biz/en/reference/liff-server/#get-all-liff-apps
14
15
  class LiffApp
15
16
  # @!attribute [rw] liff_id
16
17
  # @return [String,nil] LIFF app ID
@@ -11,6 +11,7 @@ module Line
11
11
  module Bot
12
12
  module V2
13
13
  module Liff
14
+ # @see https://developers.line.biz/en/reference/liff-server/#get-all-liff-apps
14
15
  class LiffFeatures
15
16
  # @!attribute [rw] ble
16
17
  # @return [Boolean,nil] `true` if the LIFF app supports Bluetooth® Low Energy for LINE Things. `false` otherwise.
@@ -11,6 +11,7 @@ module Line
11
11
  module Bot
12
12
  module V2
13
13
  module MessagingApi
14
+ # @see https://developers.line.biz/en/reference/messaging-api/#rich-menu-response-object
14
15
  class RichMenuResponse
15
16
  # @!attribute [rw] rich_menu_id
16
17
  # @return [String] ID of a rich menu
@@ -12,6 +12,7 @@ module Line
12
12
  module V2
13
13
  module ModuleAttach
14
14
  # Attach by operation of the module channel provider
15
+ # @see https://developers.line.biz/en/reference/partner-docs/#link-attach-by-operation-module-channel-provider
15
16
  class AttachModuleResponse
16
17
  # @!attribute [rw] bot_id
17
18
  # @return [String] User ID of the bot on the LINE Official Account.
@@ -14,6 +14,7 @@ module Line
14
14
  module V2
15
15
  module Webhook
16
16
  # Event object for when a user has linked their LINE account with a provider's service account. You can reply to account link events.
17
+ # @see https://developers.line.biz/en/reference/messaging-api/#account-link-event
17
18
  class AccountLinkEvent < Event
18
19
  # @!attribute [r] type
19
20
  # @return [String] Type of the event
@@ -14,6 +14,7 @@ module Line
14
14
  module V2
15
15
  module Webhook
16
16
  # 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.
17
+ # @see https://developers.line.biz/en/reference/partner-docs/#activated-event
17
18
  class ActivatedEvent < Event
18
19
  # @!attribute [r] type
19
20
  # @return [String] Type of the event
@@ -13,6 +13,7 @@ module Line
13
13
  module Bot
14
14
  module V2
15
15
  module Webhook
16
+ # @see https://developers.line.biz/en/reference/partner-docs/#attached-event
16
17
  class AttachedModuleContent < ModuleContent
17
18
  # @!attribute [r] type
18
19
  # @return [String] Type
@@ -13,6 +13,7 @@ module Line
13
13
  module Bot
14
14
  module V2
15
15
  module Webhook
16
+ # @see https://developers.line.biz/en/reference/messaging-api/#wh-audio
16
17
  class AudioMessageContent < MessageContent
17
18
  # @!attribute [r] type
18
19
  # @return [String] Type
@@ -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
  # @!attribute [rw] hwid
16
17
  # @return [String] Hardware ID of the beacon that was detected
@@ -14,6 +14,7 @@ module Line
14
14
  module V2
15
15
  module Webhook
16
16
  # Event object for when a user enters the range of a LINE Beacon. You can reply to beacon events.
17
+ # @see https://developers.line.biz/en/reference/messaging-api/#beacon-event
17
18
  class BeaconEvent < Event
18
19
  # @!attribute [r] type
19
20
  # @return [String] Type of the event
@@ -14,6 +14,7 @@ module Line
14
14
  module V2
15
15
  module Webhook
16
16
  # This event indicates that the LINE Official Account has returned from the suspended state. Sent to the webhook URL server of the module channel.
17
+ # @see https://developers.line.biz/en/reference/partner-docs/#botresumed-event
17
18
  class BotResumedEvent < Event
18
19
  # @!attribute [r] type
19
20
  # @return [String] Type of the event
@@ -14,6 +14,7 @@ module Line
14
14
  module V2
15
15
  module Webhook
16
16
  # This event indicates that the LINE Official Account has been suspended (Suspend). Sent to the webhook URL server of the module channel.
17
+ # @see https://developers.line.biz/en/reference/partner-docs/#botsuspend-event
17
18
  class BotSuspendedEvent < Event
18
19
  # @!attribute [r] type
19
20
  # @return [String] Type of the event
@@ -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
  # @!attribute [rw] expire_at
16
17
  # @return [Integer]
@@ -14,6 +14,7 @@ module Line
14
14
  module V2
15
15
  module Webhook
16
16
  # 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.
17
+ # @see https://developers.line.biz/en/reference/partner-docs/#deactivated-event
17
18
  class DeactivatedEvent < Event
18
19
  # @!attribute [r] type
19
20
  # @return [String] Type of the event
@@ -13,6 +13,7 @@ module Line
13
13
  module Bot
14
14
  module V2
15
15
  module Webhook
16
+ # @see https://developers.line.biz/en/reference/partner-docs/#detached-event
16
17
  class DetachedModuleContent < ModuleContent
17
18
  # @!attribute [r] type
18
19
  # @return [String] Type
@@ -13,6 +13,7 @@ module Line
13
13
  module Bot
14
14
  module V2
15
15
  module Webhook
16
+ # @see https://developers.line.biz/en/reference/messaging-api/#wh-file
16
17
  class FileMessageContent < MessageContent
17
18
  # @!attribute [r] type
18
19
  # @return [String] Type
@@ -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
  # @!attribute [rw] is_unblocked
16
17
  # @return [Boolean] Whether a user has added your LINE Official Account as a friend or unblocked.
@@ -14,6 +14,7 @@ module Line
14
14
  module V2
15
15
  module Webhook
16
16
  # Event object for when your LINE Official Account is added as a friend (or unblocked). You can reply to follow events.
17
+ # @see https://developers.line.biz/en/reference/messaging-api/#follow-event
17
18
  class FollowEvent < Event
18
19
  # @!attribute [r] type
19
20
  # @return [String] Type of the event
@@ -13,6 +13,7 @@ module Line
13
13
  module Bot
14
14
  module V2
15
15
  module Webhook
16
+ # @see https://developers.line.biz/en/reference/messaging-api/#wh-image
16
17
  class ImageMessageContent < MessageContent
17
18
  # @!attribute [r] type
18
19
  # @return [String] Type
@@ -14,6 +14,7 @@ module Line
14
14
  module V2
15
15
  module Webhook
16
16
  # Event object for when your LINE Official Account joins a group chat or multi-person chat. You can reply to join events.
17
+ # @see https://developers.line.biz/en/reference/messaging-api/#join-event
17
18
  class JoinEvent < Event
18
19
  # @!attribute [r] type
19
20
  # @return [String] Type of the event
@@ -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
  # @!attribute [rw] members
16
17
  # @return [Array[UserSource]] Users who joined. Array of source user objects.
@@ -14,6 +14,7 @@ module Line
14
14
  module V2
15
15
  module Webhook
16
16
  # 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.
17
+ # @see https://developers.line.biz/en/reference/messaging-api/#leave-event
17
18
  class LeaveEvent < Event
18
19
  # @!attribute [r] type
19
20
  # @return [String] Type of the event
@@ -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
  # @!attribute [rw] members
16
17
  # @return [Array[UserSource]] Users who left. Array of source user objects.
@@ -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
  # @!attribute [rw] result
17
18
  # @return [String] ('ok'|'failed') One of the following values to indicate whether linking the account was successful or not
@@ -13,6 +13,7 @@ module Line
13
13
  module Bot
14
14
  module V2
15
15
  module Webhook
16
+ # @see https://developers.line.biz/en/reference/messaging-api/#wh-location
16
17
  class LocationMessageContent < MessageContent
17
18
  # @!attribute [r] type
18
19
  # @return [String] Type
@@ -14,6 +14,7 @@ module Line
14
14
  module V2
15
15
  module Webhook
16
16
  # Event object for when a user joins a group chat or multi-person chat that the LINE Official Account is in.
17
+ # @see https://developers.line.biz/en/reference/messaging-api/#member-joined-event
17
18
  class MemberJoinedEvent < Event
18
19
  # @!attribute [r] type
19
20
  # @return [String] Type of the event
@@ -14,6 +14,7 @@ module Line
14
14
  module V2
15
15
  module Webhook
16
16
  # Event object for when a user leaves a group chat or multi-person chat that the LINE Official Account is in.
17
+ # @see https://developers.line.biz/en/reference/messaging-api/#member-left-event
17
18
  class MemberLeftEvent < Event
18
19
  # @!attribute [r] type
19
20
  # @return [String] Type of the event
@@ -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
  # @!attribute [rw] type
17
18
  # @return [String] Type of membership event.
@@ -14,6 +14,7 @@ module Line
14
14
  module V2
15
15
  module Webhook
16
16
  # This event indicates that a user has subscribed (joined), unsubscribed (left), or renewed the bot's membership.
17
+ # @see https://developers.line.biz/en/reference/messaging-api/#membership-event
17
18
  class MembershipEvent < Event
18
19
  # @!attribute [r] type
19
20
  # @return [String] Type of the event
@@ -14,6 +14,7 @@ module Line
14
14
  module V2
15
15
  module Webhook
16
16
  # Webhook event object which contains the sent message.
17
+ # @see https://developers.line.biz/en/reference/messaging-api/#message-event
17
18
  class MessageEvent < Event
18
19
  # @!attribute [r] type
19
20
  # @return [String] Type of the event
@@ -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
  # @!attribute [rw] type
16
17
  # @return [String] Type
@@ -14,6 +14,7 @@ module Line
14
14
  module V2
15
15
  module Webhook
16
16
  # 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.
17
+ # @see https://developers.line.biz/en/reference/partner-docs/#module-channel-specific-webhook-events
17
18
  class ModuleEvent < Event
18
19
  # @!attribute [r] type
19
20
  # @return [String] Type of the event
@@ -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
  # @!attribute [rw] data
17
18
  # @return [String] A hashed phone number string or a string specified by `X-Line-Delivery-Tag` header
@@ -14,6 +14,7 @@ module Line
14
14
  module V2
15
15
  module Webhook
16
16
  # 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.
17
+ # @see https://developers.line.biz/en/docs/partner-docs/line-notification-messages/message-sending-complete-webhook-event/#overview-delivery-webhook-event
17
18
  class PnpDeliveryCompletionEvent < Event
18
19
  # @!attribute [r] type
19
20
  # @return [String] Type of the event
@@ -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
  # @!attribute [rw] data
16
17
  # @return [String] Postback data
@@ -14,6 +14,7 @@ module Line
14
14
  module V2
15
15
  module Webhook
16
16
  # Event object for when a user performs a postback action which initiates a postback. You can reply to postback events.
17
+ # @see https://developers.line.biz/en/reference/messaging-api/#postback-event
17
18
  class PostbackEvent < Event
18
19
  # @!attribute [r] type
19
20
  # @return [String] Type of the event
@@ -13,6 +13,7 @@ module Line
13
13
  module Bot
14
14
  module V2
15
15
  module Webhook
16
+ # @see https://developers.line.biz/en/reference/messaging-api/#wh-text
16
17
  class TextMessageContent < MessageContent
17
18
  # @!attribute [r] type
18
19
  # @return [String] Type
@@ -14,6 +14,7 @@ module Line
14
14
  module V2
15
15
  module Webhook
16
16
  # Event object for when your LINE Official Account is blocked.
17
+ # @see https://developers.line.biz/en/reference/messaging-api/#unfollow-event
17
18
  class UnfollowEvent < Event
18
19
  # @!attribute [r] type
19
20
  # @return [String] Type of the event
@@ -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
  # @!attribute [rw] message_id
16
17
  # @return [String] The message ID of the unsent message
@@ -14,6 +14,7 @@ module Line
14
14
  module V2
15
15
  module Webhook
16
16
  # Event object for when the user unsends a message.
17
+ # @see https://developers.line.biz/en/reference/messaging-api/#unsend-event
17
18
  class UnsendEvent < Event
18
19
  # @!attribute [r] type
19
20
  # @return [String] Type of the event
@@ -13,6 +13,7 @@ module Line
13
13
  module Bot
14
14
  module V2
15
15
  module Webhook
16
+ # @see https://developers.line.biz/en/reference/messaging-api/#wh-video
16
17
  class VideoMessageContent < MessageContent
17
18
  # @!attribute [r] type
18
19
  # @return [String] Type
@@ -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
  # @!attribute [rw] tracking_id
16
17
  # @return [String] ID used to identify a video. Returns the same value as the trackingId assigned to the video message.
@@ -14,6 +14,7 @@ module Line
14
14
  module V2
15
15
  module Webhook
16
16
  # Event for when a user finishes viewing a video at least once with the specified trackingId sent by the LINE Official Account.
17
+ # @see https://developers.line.biz/en/reference/messaging-api/#video-viewing-complete
17
18
  class VideoPlayCompleteEvent < Event
18
19
  # @!attribute [r] type
19
20
  # @return [String] Type of the event
@@ -2,6 +2,6 @@ module Line
2
2
  module Bot
3
3
  # This version is updated before releasing a new version in the release process.
4
4
  # You don't have to update this version manually.
5
- VERSION = "2.8.1"
5
+ VERSION = "2.8.3"
6
6
  end
7
7
  end
@@ -199,7 +199,7 @@ module Line
199
199
  # This requests to <code>POST https://api.line.me/v2/oauth/revoke</code>
200
200
  # This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
201
201
  #
202
- # @param access_token [String] Channel access token
202
+ # @param access_token [String] A short-lived or long-lived channel access token.
203
203
  # @see https://developers.line.biz/en/reference/messaging-api/#revoke-longlived-or-shortlived-channel-access-token
204
204
  # @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
205
205
  # @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
@@ -214,7 +214,7 @@ module Line
214
214
  # This requests to <code>POST https://api.line.me/v2/oauth/revoke</code>
215
215
  # When you want to get HTTP status code or response headers, use {#revoke_channel_token_with_http_info} instead of this.
216
216
  #
217
- # @param access_token [String] Channel access token
217
+ # @param access_token [String] A short-lived or long-lived channel access token.
218
218
  # @see https://developers.line.biz/en/reference/messaging-api/#revoke-longlived-or-shortlived-channel-access-token
219
219
  # @return [String, nil] when HTTP status code is 200
220
220
  # @return [String, nil] when other HTTP status code is returned. This String is HTTP response body itself.
@@ -12,6 +12,7 @@ module Line
12
12
  module V2
13
13
  module ChannelAccessToken
14
14
  # Error response of the Channel access token
15
+ # @see https://developers.line.biz/en/reference/messaging-api/#error-responses
15
16
  class ErrorResponse
16
17
  attr_accessor error: String?
17
18
  attr_accessor error_description: String?
@@ -12,6 +12,7 @@ module Line
12
12
  module V2
13
13
  module ChannelAccessToken
14
14
  # Verification result
15
+ # @see https://developers.line.biz/en/reference/messaging-api/#verify-channel-access-token-v2-1
15
16
  class VerifyChannelAccessTokenResponse
16
17
  attr_accessor client_id: String
17
18
  attr_accessor expires_in: Integer
@@ -11,6 +11,7 @@ module Line
11
11
  module Bot
12
12
  module V2
13
13
  module Insight
14
+ # @see https://developers.line.biz/en/reference/messaging-api/#get-demographic
14
15
  class AgeTile
15
16
  attr_accessor age: 'from0to14'|'from15to19'|'from20to24'|'from25to29'|'from30to34'|'from35to39'|'from40to44'|'from45to49'|'from50'|'from50to54'|'from55to59'|'from60to64'|'from65to69'|'from70'|'unknown'?
16
17
  attr_accessor percentage: Float?
@@ -11,6 +11,7 @@ module Line
11
11
  module Bot
12
12
  module V2
13
13
  module Insight
14
+ # @see https://developers.line.biz/en/reference/messaging-api/#get-demographic
14
15
  class AppTypeTile
15
16
  attr_accessor app_type: 'ios'|'android'|'others'?
16
17
  attr_accessor percentage: Float?