line-bot-api 1.29.1 → 1.30.0
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.
- checksums.yaml +4 -4
- data/CONTRIBUTING.md +38 -8
- data/README.md +1 -1
- data/lib/line/bot/{api → v1/api}/errors.rb +2 -0
- data/lib/line/bot/{api → v1/api}/version.rb +3 -1
- data/lib/line/bot/{api.rb → v1/api.rb} +3 -1
- data/lib/line/bot/{client.rb → v1/client.rb} +563 -3
- data/lib/line/bot/{event → v1/event}/account_link.rb +4 -0
- data/lib/line/bot/{event → v1/event}/base.rb +6 -0
- data/lib/line/bot/{event → v1/event}/beacon.rb +4 -0
- data/lib/line/bot/{event → v1/event}/follow.rb +4 -0
- data/lib/line/bot/{event → v1/event}/join.rb +4 -0
- data/lib/line/bot/{event → v1/event}/leave.rb +4 -0
- data/lib/line/bot/{event → v1/event}/member_joined.rb +4 -0
- data/lib/line/bot/{event → v1/event}/member_left.rb +4 -0
- data/lib/line/bot/{event → v1/event}/message.rb +6 -0
- data/lib/line/bot/{event → v1/event}/postback.rb +4 -0
- data/lib/line/bot/{event → v1/event}/things.rb +6 -0
- data/lib/line/bot/{event → v1/event}/unfollow.rb +4 -0
- data/lib/line/bot/{event → v1/event}/unsend.rb +4 -0
- data/lib/line/bot/{event → v1/event}/video_play_complete.rb +4 -0
- data/lib/line/bot/{event.rb → v1/event.rb} +14 -14
- data/lib/line/bot/{httpclient.rb → v1/httpclient.rb} +22 -0
- data/lib/line/bot/{util.rb → v1/util.rb} +4 -0
- data/lib/line/bot/v2/channel_access_token/api/channel_access_token_client.rb +533 -0
- data/lib/line/bot/v2/channel_access_token/core.rb +20 -0
- data/lib/line/bot/v2/channel_access_token/model/channel_access_token_key_ids_response.rb +68 -0
- data/lib/line/bot/v2/channel_access_token/model/error_response.rb +73 -0
- data/lib/line/bot/v2/channel_access_token/model/issue_channel_access_token_response.rb +86 -0
- data/lib/line/bot/v2/channel_access_token/model/issue_short_lived_channel_access_token_response.rb +80 -0
- data/lib/line/bot/v2/channel_access_token/model/issue_stateless_channel_access_token_response.rb +80 -0
- data/lib/line/bot/v2/channel_access_token/model/verify_channel_access_token_response.rb +79 -0
- data/lib/line/bot/v2/http_client.rb +165 -0
- data/lib/line/bot/v2/insight/api/insight_client.rb +314 -0
- data/lib/line/bot/v2/insight/core.rb +32 -0
- data/lib/line/bot/v2/insight/model/age_tile.rb +72 -0
- data/lib/line/bot/v2/insight/model/app_type_tile.rb +72 -0
- data/lib/line/bot/v2/insight/model/area_tile.rb +72 -0
- data/lib/line/bot/v2/insight/model/error_detail.rb +72 -0
- data/lib/line/bot/v2/insight/model/error_response.rb +79 -0
- data/lib/line/bot/v2/insight/model/gender_tile.rb +72 -0
- data/lib/line/bot/v2/insight/model/get_friends_demographics_response.rb +128 -0
- data/lib/line/bot/v2/insight/model/get_message_event_response.rb +92 -0
- data/lib/line/bot/v2/insight/model/get_message_event_response_click.rb +90 -0
- data/lib/line/bot/v2/insight/model/get_message_event_response_message.rb +132 -0
- data/lib/line/bot/v2/insight/model/get_message_event_response_overview.rb +103 -0
- data/lib/line/bot/v2/insight/model/get_number_of_followers_response.rb +86 -0
- data/lib/line/bot/v2/insight/model/get_number_of_message_deliveries_response.rb +128 -0
- data/lib/line/bot/v2/insight/model/get_statistics_per_unit_response.rb +92 -0
- data/lib/line/bot/v2/insight/model/get_statistics_per_unit_response_click.rb +91 -0
- data/lib/line/bot/v2/insight/model/get_statistics_per_unit_response_message.rb +139 -0
- data/lib/line/bot/v2/insight/model/get_statistics_per_unit_response_overview.rb +86 -0
- data/lib/line/bot/v2/insight/model/subscription_period_tile.rb +72 -0
- data/lib/line/bot/v2/liff/api/liff_client.rb +273 -0
- data/lib/line/bot/v2/liff/core.rb +24 -0
- data/lib/line/bot/v2/liff/model/add_liff_app_request.rb +97 -0
- data/lib/line/bot/v2/liff/model/add_liff_app_response.rb +66 -0
- data/lib/line/bot/v2/liff/model/get_all_liff_apps_response.rb +72 -0
- data/lib/line/bot/v2/liff/model/liff_app.rb +102 -0
- data/lib/line/bot/v2/liff/model/liff_bot_prompt.rb +21 -0
- data/lib/line/bot/v2/liff/model/liff_features.rb +72 -0
- data/lib/line/bot/v2/liff/model/liff_scope.rb +21 -0
- data/lib/line/bot/v2/liff/model/liff_view.rb +79 -0
- data/lib/line/bot/v2/liff/model/update_liff_app_request.rb +97 -0
- data/lib/line/bot/v2/liff/model/update_liff_view.rb +79 -0
- data/lib/line/bot/v2/manage_audience/api/manage_audience_blob_client.rb +182 -0
- data/lib/line/bot/v2/manage_audience/api/manage_audience_client.rb +616 -0
- data/lib/line/bot/v2/manage_audience/core.rb +42 -0
- data/lib/line/bot/v2/manage_audience/model/adaccount.rb +67 -0
- data/lib/line/bot/v2/manage_audience/model/add_audience_to_audience_group_request.rb +86 -0
- data/lib/line/bot/v2/manage_audience/model/audience.rb +67 -0
- data/lib/line/bot/v2/manage_audience/model/audience_group.rb +133 -0
- data/lib/line/bot/v2/manage_audience/model/audience_group_create_route.rb +21 -0
- data/lib/line/bot/v2/manage_audience/model/audience_group_failed_type.rb +21 -0
- data/lib/line/bot/v2/manage_audience/model/audience_group_job.rb +110 -0
- data/lib/line/bot/v2/manage_audience/model/audience_group_job_failed_type.rb +21 -0
- data/lib/line/bot/v2/manage_audience/model/audience_group_job_status.rb +21 -0
- data/lib/line/bot/v2/manage_audience/model/audience_group_job_type.rb +21 -0
- data/lib/line/bot/v2/manage_audience/model/audience_group_permission.rb +21 -0
- data/lib/line/bot/v2/manage_audience/model/audience_group_status.rb +21 -0
- data/lib/line/bot/v2/manage_audience/model/audience_group_type.rb +21 -0
- data/lib/line/bot/v2/manage_audience/model/create_audience_group_request.rb +92 -0
- data/lib/line/bot/v2/manage_audience/model/create_audience_group_response.rb +110 -0
- data/lib/line/bot/v2/manage_audience/model/create_click_based_audience_group_request.rb +80 -0
- data/lib/line/bot/v2/manage_audience/model/create_click_based_audience_group_response.rb +122 -0
- data/lib/line/bot/v2/manage_audience/model/create_imp_based_audience_group_request.rb +74 -0
- data/lib/line/bot/v2/manage_audience/model/create_imp_based_audience_group_response.rb +92 -0
- data/lib/line/bot/v2/manage_audience/model/detailed_owner.rb +79 -0
- data/lib/line/bot/v2/manage_audience/model/error_detail.rb +72 -0
- data/lib/line/bot/v2/manage_audience/model/error_response.rb +79 -0
- data/lib/line/bot/v2/manage_audience/model/get_audience_data_response.rb +86 -0
- data/lib/line/bot/v2/manage_audience/model/get_audience_groups_response.rb +104 -0
- data/lib/line/bot/v2/manage_audience/model/get_shared_audience_data_response.rb +86 -0
- data/lib/line/bot/v2/manage_audience/model/get_shared_audience_groups_response.rb +104 -0
- data/lib/line/bot/v2/manage_audience/model/update_audience_group_description_request.rb +68 -0
- data/lib/line/bot/v2/messaging_api/api/messaging_api_blob_client.rb +282 -0
- data/lib/line/bot/v2/messaging_api/api/messaging_api_client.rb +3354 -0
- data/lib/line/bot/v2/messaging_api/core.rb +173 -0
- data/lib/line/bot/v2/messaging_api/model/action.rb +92 -0
- data/lib/line/bot/v2/messaging_api/model/age_demographic.rb +20 -0
- data/lib/line/bot/v2/messaging_api/model/age_demographic_filter.rb +78 -0
- data/lib/line/bot/v2/messaging_api/model/all_mention_target.rb +67 -0
- data/lib/line/bot/v2/messaging_api/model/alt_uri.rb +66 -0
- data/lib/line/bot/v2/messaging_api/model/app_type_demographic.rb +20 -0
- data/lib/line/bot/v2/messaging_api/model/app_type_demographic_filter.rb +72 -0
- data/lib/line/bot/v2/messaging_api/model/area_demographic.rb +21 -0
- data/lib/line/bot/v2/messaging_api/model/area_demographic_filter.rb +72 -0
- data/lib/line/bot/v2/messaging_api/model/audience_recipient.rb +72 -0
- data/lib/line/bot/v2/messaging_api/model/audio_message.rb +91 -0
- data/lib/line/bot/v2/messaging_api/model/bot_info_response.rb +103 -0
- data/lib/line/bot/v2/messaging_api/model/broadcast_request.rb +79 -0
- data/lib/line/bot/v2/messaging_api/model/buttons_template.rb +120 -0
- data/lib/line/bot/v2/messaging_api/model/camera_action.rb +72 -0
- data/lib/line/bot/v2/messaging_api/model/camera_roll_action.rb +72 -0
- data/lib/line/bot/v2/messaging_api/model/carousel_column.rb +103 -0
- data/lib/line/bot/v2/messaging_api/model/carousel_template.rb +90 -0
- data/lib/line/bot/v2/messaging_api/model/chat_reference.rb +68 -0
- data/lib/line/bot/v2/messaging_api/model/clipboard_action.rb +79 -0
- data/lib/line/bot/v2/messaging_api/model/clipboard_imagemap_action.rb +85 -0
- data/lib/line/bot/v2/messaging_api/model/confirm_template.rb +84 -0
- data/lib/line/bot/v2/messaging_api/model/create_rich_menu_alias_request.rb +73 -0
- data/lib/line/bot/v2/messaging_api/model/datetime_picker_action.rb +103 -0
- data/lib/line/bot/v2/messaging_api/model/demographic_filter.rb +82 -0
- data/lib/line/bot/v2/messaging_api/model/emoji.rb +78 -0
- data/lib/line/bot/v2/messaging_api/model/emoji_substitution_object.rb +80 -0
- data/lib/line/bot/v2/messaging_api/model/error_detail.rb +72 -0
- data/lib/line/bot/v2/messaging_api/model/error_response.rb +91 -0
- data/lib/line/bot/v2/messaging_api/model/filter.rb +67 -0
- data/lib/line/bot/v2/messaging_api/model/flex_block_style.rb +78 -0
- data/lib/line/bot/v2/messaging_api/model/flex_box.rb +234 -0
- data/lib/line/bot/v2/messaging_api/model/flex_box_background.rb +76 -0
- data/lib/line/bot/v2/messaging_api/model/flex_box_border_width.rb +21 -0
- data/lib/line/bot/v2/messaging_api/model/flex_box_corner_radius.rb +21 -0
- data/lib/line/bot/v2/messaging_api/model/flex_box_linear_gradient.rb +96 -0
- data/lib/line/bot/v2/messaging_api/model/flex_box_padding.rb +21 -0
- data/lib/line/bot/v2/messaging_api/model/flex_box_spacing.rb +21 -0
- data/lib/line/bot/v2/messaging_api/model/flex_bubble.rb +114 -0
- data/lib/line/bot/v2/messaging_api/model/flex_bubble_styles.rb +84 -0
- data/lib/line/bot/v2/messaging_api/model/flex_button.rb +150 -0
- data/lib/line/bot/v2/messaging_api/model/flex_carousel.rb +78 -0
- data/lib/line/bot/v2/messaging_api/model/flex_component.rb +84 -0
- data/lib/line/bot/v2/messaging_api/model/flex_container.rb +77 -0
- data/lib/line/bot/v2/messaging_api/model/flex_filler.rb +72 -0
- data/lib/line/bot/v2/messaging_api/model/flex_icon.rb +127 -0
- data/lib/line/bot/v2/messaging_api/model/flex_icon_size.rb +21 -0
- data/lib/line/bot/v2/messaging_api/model/flex_image.rb +163 -0
- data/lib/line/bot/v2/messaging_api/model/flex_image_size.rb +21 -0
- data/lib/line/bot/v2/messaging_api/model/flex_margin.rb +21 -0
- data/lib/line/bot/v2/messaging_api/model/flex_message.rb +91 -0
- data/lib/line/bot/v2/messaging_api/model/flex_offset.rb +21 -0
- data/lib/line/bot/v2/messaging_api/model/flex_separator.rb +78 -0
- data/lib/line/bot/v2/messaging_api/model/flex_span.rb +102 -0
- data/lib/line/bot/v2/messaging_api/model/flex_span_size.rb +21 -0
- data/lib/line/bot/v2/messaging_api/model/flex_text.rb +204 -0
- data/lib/line/bot/v2/messaging_api/model/flex_text_font_size.rb +21 -0
- data/lib/line/bot/v2/messaging_api/model/flex_video.rb +96 -0
- data/lib/line/bot/v2/messaging_api/model/gender_demographic.rb +20 -0
- data/lib/line/bot/v2/messaging_api/model/gender_demographic_filter.rb +72 -0
- data/lib/line/bot/v2/messaging_api/model/get_aggregation_unit_name_list_response.rb +73 -0
- data/lib/line/bot/v2/messaging_api/model/get_aggregation_unit_usage_response.rb +67 -0
- data/lib/line/bot/v2/messaging_api/model/get_followers_response.rb +73 -0
- data/lib/line/bot/v2/messaging_api/model/get_joined_membership_users_response.rb +74 -0
- data/lib/line/bot/v2/messaging_api/model/get_membership_subscription_response.rb +74 -0
- data/lib/line/bot/v2/messaging_api/model/get_message_content_transcoding_response.rb +68 -0
- data/lib/line/bot/v2/messaging_api/model/get_webhook_endpoint_response.rb +73 -0
- data/lib/line/bot/v2/messaging_api/model/group_member_count_response.rb +67 -0
- data/lib/line/bot/v2/messaging_api/model/group_summary_response.rb +79 -0
- data/lib/line/bot/v2/messaging_api/model/group_user_profile_response.rb +79 -0
- data/lib/line/bot/v2/messaging_api/model/image_carousel_column.rb +72 -0
- data/lib/line/bot/v2/messaging_api/model/image_carousel_template.rb +78 -0
- data/lib/line/bot/v2/messaging_api/model/image_message.rb +91 -0
- data/lib/line/bot/v2/messaging_api/model/imagemap_action.rb +85 -0
- data/lib/line/bot/v2/messaging_api/model/imagemap_area.rb +84 -0
- data/lib/line/bot/v2/messaging_api/model/imagemap_base_size.rb +72 -0
- data/lib/line/bot/v2/messaging_api/model/imagemap_external_link.rb +72 -0
- data/lib/line/bot/v2/messaging_api/model/imagemap_message.rb +115 -0
- data/lib/line/bot/v2/messaging_api/model/imagemap_video.rb +84 -0
- data/lib/line/bot/v2/messaging_api/model/issue_link_token_response.rb +67 -0
- data/lib/line/bot/v2/messaging_api/model/limit.rb +74 -0
- data/lib/line/bot/v2/messaging_api/model/location_action.rb +72 -0
- data/lib/line/bot/v2/messaging_api/model/location_message.rb +103 -0
- data/lib/line/bot/v2/messaging_api/model/mark_messages_as_read_request.rb +67 -0
- data/lib/line/bot/v2/messaging_api/model/members_ids_response.rb +72 -0
- data/lib/line/bot/v2/messaging_api/model/membership.rb +120 -0
- data/lib/line/bot/v2/messaging_api/model/membership_list_response.rb +73 -0
- data/lib/line/bot/v2/messaging_api/model/mention_substitution_object.rb +74 -0
- data/lib/line/bot/v2/messaging_api/model/mention_target.rb +77 -0
- data/lib/line/bot/v2/messaging_api/model/message.rb +98 -0
- data/lib/line/bot/v2/messaging_api/model/message_action.rb +78 -0
- data/lib/line/bot/v2/messaging_api/model/message_imagemap_action.rb +84 -0
- data/lib/line/bot/v2/messaging_api/model/message_quota_response.rb +73 -0
- data/lib/line/bot/v2/messaging_api/model/multicast_request.rb +91 -0
- data/lib/line/bot/v2/messaging_api/model/narrowcast_progress_response.rb +109 -0
- data/lib/line/bot/v2/messaging_api/model/narrowcast_request.rb +97 -0
- data/lib/line/bot/v2/messaging_api/model/number_of_messages_response.rb +72 -0
- data/lib/line/bot/v2/messaging_api/model/operator_demographic_filter.rb +96 -0
- data/lib/line/bot/v2/messaging_api/model/operator_recipient.rb +96 -0
- data/lib/line/bot/v2/messaging_api/model/pnp_messages_request.rb +85 -0
- data/lib/line/bot/v2/messaging_api/model/postback_action.rb +102 -0
- data/lib/line/bot/v2/messaging_api/model/push_message_request.rb +91 -0
- data/lib/line/bot/v2/messaging_api/model/push_message_response.rb +73 -0
- data/lib/line/bot/v2/messaging_api/model/quick_reply.rb +74 -0
- data/lib/line/bot/v2/messaging_api/model/quick_reply_item.rb +79 -0
- data/lib/line/bot/v2/messaging_api/model/quota_consumption_response.rb +67 -0
- data/lib/line/bot/v2/messaging_api/model/quota_type.rb +22 -0
- data/lib/line/bot/v2/messaging_api/model/recipient.rb +79 -0
- data/lib/line/bot/v2/messaging_api/model/redelivery_recipient.rb +72 -0
- data/lib/line/bot/v2/messaging_api/model/reply_message_request.rb +85 -0
- data/lib/line/bot/v2/messaging_api/model/reply_message_response.rb +73 -0
- data/lib/line/bot/v2/messaging_api/model/rich_menu_alias_list_response.rb +73 -0
- data/lib/line/bot/v2/messaging_api/model/rich_menu_alias_response.rb +72 -0
- data/lib/line/bot/v2/messaging_api/model/rich_menu_area.rb +73 -0
- data/lib/line/bot/v2/messaging_api/model/rich_menu_batch_link_operation.rb +79 -0
- data/lib/line/bot/v2/messaging_api/model/rich_menu_batch_operation.rb +80 -0
- data/lib/line/bot/v2/messaging_api/model/rich_menu_batch_progress_phase.rb +21 -0
- data/lib/line/bot/v2/messaging_api/model/rich_menu_batch_progress_response.rb +79 -0
- data/lib/line/bot/v2/messaging_api/model/rich_menu_batch_request.rb +78 -0
- data/lib/line/bot/v2/messaging_api/model/rich_menu_batch_unlink_all_operation.rb +67 -0
- data/lib/line/bot/v2/messaging_api/model/rich_menu_batch_unlink_operation.rb +73 -0
- data/lib/line/bot/v2/messaging_api/model/rich_menu_bounds.rb +86 -0
- data/lib/line/bot/v2/messaging_api/model/rich_menu_bulk_link_request.rb +73 -0
- data/lib/line/bot/v2/messaging_api/model/rich_menu_bulk_unlink_request.rb +67 -0
- data/lib/line/bot/v2/messaging_api/model/rich_menu_id_response.rb +66 -0
- data/lib/line/bot/v2/messaging_api/model/rich_menu_list_response.rb +73 -0
- data/lib/line/bot/v2/messaging_api/model/rich_menu_request.rb +96 -0
- data/lib/line/bot/v2/messaging_api/model/rich_menu_response.rb +102 -0
- data/lib/line/bot/v2/messaging_api/model/rich_menu_size.rb +73 -0
- data/lib/line/bot/v2/messaging_api/model/rich_menu_switch_action.rb +84 -0
- data/lib/line/bot/v2/messaging_api/model/room_member_count_response.rb +67 -0
- data/lib/line/bot/v2/messaging_api/model/room_user_profile_response.rb +79 -0
- data/lib/line/bot/v2/messaging_api/model/sender.rb +73 -0
- data/lib/line/bot/v2/messaging_api/model/sent_message.rb +72 -0
- data/lib/line/bot/v2/messaging_api/model/set_webhook_endpoint_request.rb +67 -0
- data/lib/line/bot/v2/messaging_api/model/show_loading_animation_request.rb +73 -0
- data/lib/line/bot/v2/messaging_api/model/sticker_message.rb +97 -0
- data/lib/line/bot/v2/messaging_api/model/subscribed_membership_plan.rb +97 -0
- data/lib/line/bot/v2/messaging_api/model/subscribed_membership_user.rb +85 -0
- data/lib/line/bot/v2/messaging_api/model/subscription.rb +73 -0
- data/lib/line/bot/v2/messaging_api/model/subscription_period_demographic.rb +20 -0
- data/lib/line/bot/v2/messaging_api/model/subscription_period_demographic_filter.rb +78 -0
- data/lib/line/bot/v2/messaging_api/model/substitution_object.rb +78 -0
- data/lib/line/bot/v2/messaging_api/model/template.rb +79 -0
- data/lib/line/bot/v2/messaging_api/model/template_image_aspect_ratio.rb +21 -0
- data/lib/line/bot/v2/messaging_api/model/template_image_size.rb +21 -0
- data/lib/line/bot/v2/messaging_api/model/template_message.rb +91 -0
- data/lib/line/bot/v2/messaging_api/model/test_webhook_endpoint_request.rb +67 -0
- data/lib/line/bot/v2/messaging_api/model/test_webhook_endpoint_response.rb +91 -0
- data/lib/line/bot/v2/messaging_api/model/text_message.rb +103 -0
- data/lib/line/bot/v2/messaging_api/model/text_message_v2.rb +97 -0
- data/lib/line/bot/v2/messaging_api/model/update_rich_menu_alias_request.rb +67 -0
- data/lib/line/bot/v2/messaging_api/model/uri_action.rb +84 -0
- data/lib/line/bot/v2/messaging_api/model/uri_imagemap_action.rb +84 -0
- data/lib/line/bot/v2/messaging_api/model/user_mention_target.rb +73 -0
- data/lib/line/bot/v2/messaging_api/model/user_profile_response.rb +91 -0
- data/lib/line/bot/v2/messaging_api/model/validate_message_request.rb +72 -0
- data/lib/line/bot/v2/messaging_api/model/video_message.rb +97 -0
- data/lib/line/bot/v2/module/api/line_module_client.rb +247 -0
- data/lib/line/bot/v2/module/core.rb +18 -0
- data/lib/line/bot/v2/module/model/acquire_chat_control_request.rb +74 -0
- data/lib/line/bot/v2/module/model/detach_module_request.rb +68 -0
- data/lib/line/bot/v2/module/model/get_modules_response.rb +80 -0
- data/lib/line/bot/v2/module/model/module_bot.rb +92 -0
- data/lib/line/bot/v2/module_attach/api/line_module_attach_client.rb +160 -0
- data/lib/line/bot/v2/module_attach/core.rb +15 -0
- data/lib/line/bot/v2/module_attach/model/attach_module_response.rb +73 -0
- data/lib/line/bot/v2/reserved_words.rb +50 -0
- data/lib/line/bot/v2/shop/api/shop_client.rb +95 -0
- data/lib/line/bot/v2/shop/core.rb +16 -0
- data/lib/line/bot/v2/shop/model/error_response.rb +67 -0
- data/lib/line/bot/v2/shop/model/mission_sticker_request.rb +86 -0
- data/lib/line/bot/v2/utils.rb +143 -0
- data/lib/line/bot/v2/webhook/core.rb +77 -0
- data/lib/line/bot/v2/webhook/model/account_link_event.rb +109 -0
- data/lib/line/bot/v2/webhook/model/action_result.rb +72 -0
- data/lib/line/bot/v2/webhook/model/activated_event.rb +103 -0
- data/lib/line/bot/v2/webhook/model/all_mentionee.rb +79 -0
- data/lib/line/bot/v2/webhook/model/attached_module_content.rb +78 -0
- data/lib/line/bot/v2/webhook/model/audio_message_content.rb +84 -0
- data/lib/line/bot/v2/webhook/model/beacon_content.rb +78 -0
- data/lib/line/bot/v2/webhook/model/beacon_event.rb +109 -0
- data/lib/line/bot/v2/webhook/model/bot_resumed_event.rb +97 -0
- data/lib/line/bot/v2/webhook/model/bot_suspended_event.rb +97 -0
- data/lib/line/bot/v2/webhook/model/callback_request.rb +80 -0
- data/lib/line/bot/v2/webhook/model/chat_control.rb +66 -0
- data/lib/line/bot/v2/webhook/model/content_provider.rb +79 -0
- data/lib/line/bot/v2/webhook/model/deactivated_event.rb +97 -0
- data/lib/line/bot/v2/webhook/model/delivery_context.rb +67 -0
- data/lib/line/bot/v2/webhook/model/detached_module_content.rb +78 -0
- data/lib/line/bot/v2/webhook/model/emoji.rb +84 -0
- data/lib/line/bot/v2/webhook/model/event.rb +126 -0
- data/lib/line/bot/v2/webhook/model/event_mode.rb +21 -0
- data/lib/line/bot/v2/webhook/model/file_message_content.rb +84 -0
- data/lib/line/bot/v2/webhook/model/follow_detail.rb +66 -0
- data/lib/line/bot/v2/webhook/model/follow_event.rb +109 -0
- data/lib/line/bot/v2/webhook/model/group_source.rb +78 -0
- data/lib/line/bot/v2/webhook/model/image_message_content.rb +90 -0
- data/lib/line/bot/v2/webhook/model/image_set.rb +78 -0
- data/lib/line/bot/v2/webhook/model/join_event.rb +103 -0
- data/lib/line/bot/v2/webhook/model/joined_members.rb +72 -0
- data/lib/line/bot/v2/webhook/model/joined_membership_content.rb +72 -0
- data/lib/line/bot/v2/webhook/model/leave_event.rb +97 -0
- data/lib/line/bot/v2/webhook/model/left_members.rb +72 -0
- data/lib/line/bot/v2/webhook/model/left_membership_content.rb +72 -0
- data/lib/line/bot/v2/webhook/model/link_content.rb +73 -0
- data/lib/line/bot/v2/webhook/model/link_things_content.rb +72 -0
- data/lib/line/bot/v2/webhook/model/location_message_content.rb +96 -0
- data/lib/line/bot/v2/webhook/model/member_joined_event.rb +109 -0
- data/lib/line/bot/v2/webhook/model/member_left_event.rb +103 -0
- data/lib/line/bot/v2/webhook/model/membership_content.rb +79 -0
- data/lib/line/bot/v2/webhook/model/membership_event.rb +109 -0
- data/lib/line/bot/v2/webhook/model/mention.rb +72 -0
- data/lib/line/bot/v2/webhook/model/mentionee.rb +90 -0
- data/lib/line/bot/v2/webhook/model/message_content.rb +89 -0
- data/lib/line/bot/v2/webhook/model/message_event.rb +109 -0
- data/lib/line/bot/v2/webhook/model/module_content.rb +77 -0
- data/lib/line/bot/v2/webhook/model/module_event.rb +103 -0
- data/lib/line/bot/v2/webhook/model/pnp_delivery.rb +67 -0
- data/lib/line/bot/v2/webhook/model/pnp_delivery_completion_event.rb +103 -0
- data/lib/line/bot/v2/webhook/model/postback_content.rb +72 -0
- data/lib/line/bot/v2/webhook/model/postback_event.rb +109 -0
- data/lib/line/bot/v2/webhook/model/renewed_membership_content.rb +72 -0
- data/lib/line/bot/v2/webhook/model/room_source.rb +78 -0
- data/lib/line/bot/v2/webhook/model/scenario_result.rb +115 -0
- data/lib/line/bot/v2/webhook/model/scenario_result_things_content.rb +78 -0
- data/lib/line/bot/v2/webhook/model/source.rb +80 -0
- data/lib/line/bot/v2/webhook/model/sticker_message_content.rb +115 -0
- data/lib/line/bot/v2/webhook/model/text_message_content.rb +108 -0
- data/lib/line/bot/v2/webhook/model/things_content.rb +78 -0
- data/lib/line/bot/v2/webhook/model/things_event.rb +109 -0
- data/lib/line/bot/v2/webhook/model/unfollow_event.rb +97 -0
- data/lib/line/bot/v2/webhook/model/unlink_things_content.rb +72 -0
- data/lib/line/bot/v2/webhook/model/unsend_detail.rb +66 -0
- data/lib/line/bot/v2/webhook/model/unsend_event.rb +103 -0
- data/lib/line/bot/v2/webhook/model/user_mentionee.rb +91 -0
- data/lib/line/bot/v2/webhook/model/user_source.rb +72 -0
- data/lib/line/bot/v2/webhook/model/video_message_content.rb +90 -0
- data/lib/line/bot/v2/webhook/model/video_play_complete.rb +66 -0
- data/lib/line/bot/v2/webhook/model/video_play_complete_event.rb +109 -0
- data/lib/line/bot/v2/webhook_parser.rb +94 -0
- data/lib/line/bot/version.rb +7 -0
- data/lib/line/bot.rb +24 -9
- data/line-bot-api.gemspec +23 -18
- data/sig/line/bot/v2/channel_access_token/api/channel_access_token_client.rbs +327 -0
- data/sig/line/bot/v2/channel_access_token/model/channel_access_token_key_ids_response.rbs +41 -0
- data/sig/line/bot/v2/channel_access_token/model/error_response.rbs +43 -0
- data/sig/line/bot/v2/channel_access_token/model/issue_channel_access_token_response.rbs +50 -0
- data/sig/line/bot/v2/channel_access_token/model/issue_short_lived_channel_access_token_response.rbs +47 -0
- data/sig/line/bot/v2/channel_access_token/model/issue_stateless_channel_access_token_response.rbs +47 -0
- data/sig/line/bot/v2/channel_access_token/model/verify_channel_access_token_response.rbs +46 -0
- data/sig/line/bot/v2/http_client.rbs +111 -0
- data/sig/line/bot/v2/insight/api/insight_client.rbs +196 -0
- data/sig/line/bot/v2/insight/model/age_tile.rbs +42 -0
- data/sig/line/bot/v2/insight/model/app_type_tile.rbs +42 -0
- data/sig/line/bot/v2/insight/model/area_tile.rbs +42 -0
- data/sig/line/bot/v2/insight/model/error_detail.rbs +42 -0
- data/sig/line/bot/v2/insight/model/error_response.rbs +43 -0
- data/sig/line/bot/v2/insight/model/gender_tile.rbs +42 -0
- data/sig/line/bot/v2/insight/model/get_friends_demographics_response.rbs +56 -0
- data/sig/line/bot/v2/insight/model/get_message_event_response.rbs +47 -0
- data/sig/line/bot/v2/insight/model/get_message_event_response_click.rbs +51 -0
- data/sig/line/bot/v2/insight/model/get_message_event_response_message.rbs +72 -0
- data/sig/line/bot/v2/insight/model/get_message_event_response_overview.rbs +58 -0
- data/sig/line/bot/v2/insight/model/get_number_of_followers_response.rbs +50 -0
- data/sig/line/bot/v2/insight/model/get_number_of_message_deliveries_response.rbs +71 -0
- data/sig/line/bot/v2/insight/model/get_statistics_per_unit_response.rbs +47 -0
- data/sig/line/bot/v2/insight/model/get_statistics_per_unit_response_click.rbs +52 -0
- data/sig/line/bot/v2/insight/model/get_statistics_per_unit_response_message.rbs +76 -0
- data/sig/line/bot/v2/insight/model/get_statistics_per_unit_response_overview.rbs +50 -0
- data/sig/line/bot/v2/insight/model/subscription_period_tile.rbs +42 -0
- data/sig/line/bot/v2/liff/api/liff_client.rbs +198 -0
- data/sig/line/bot/v2/liff/model/add_liff_app_request.rbs +55 -0
- data/sig/line/bot/v2/liff/model/add_liff_app_response.rbs +39 -0
- data/sig/line/bot/v2/liff/model/get_all_liff_apps_response.rbs +39 -0
- data/sig/line/bot/v2/liff/model/liff_app.rbs +57 -0
- data/sig/line/bot/v2/liff/model/liff_bot_prompt.rbs +21 -0
- data/sig/line/bot/v2/liff/model/liff_features.rbs +42 -0
- data/sig/line/bot/v2/liff/model/liff_scope.rbs +21 -0
- data/sig/line/bot/v2/liff/model/liff_view.rbs +46 -0
- data/sig/line/bot/v2/liff/model/update_liff_app_request.rbs +55 -0
- data/sig/line/bot/v2/liff/model/update_liff_view.rbs +46 -0
- data/sig/line/bot/v2/manage_audience/api/manage_audience_blob_client.rbs +122 -0
- data/sig/line/bot/v2/manage_audience/api/manage_audience_client.rbs +394 -0
- data/sig/line/bot/v2/manage_audience/model/adaccount.rbs +40 -0
- data/sig/line/bot/v2/manage_audience/model/add_audience_to_audience_group_request.rbs +47 -0
- data/sig/line/bot/v2/manage_audience/model/audience.rbs +40 -0
- data/sig/line/bot/v2/manage_audience/model/audience_group.rbs +73 -0
- data/sig/line/bot/v2/manage_audience/model/audience_group_create_route.rbs +21 -0
- data/sig/line/bot/v2/manage_audience/model/audience_group_failed_type.rbs +21 -0
- data/sig/line/bot/v2/manage_audience/model/audience_group_job.rbs +62 -0
- data/sig/line/bot/v2/manage_audience/model/audience_group_job_failed_type.rbs +21 -0
- data/sig/line/bot/v2/manage_audience/model/audience_group_job_status.rbs +21 -0
- data/sig/line/bot/v2/manage_audience/model/audience_group_job_type.rbs +21 -0
- data/sig/line/bot/v2/manage_audience/model/audience_group_permission.rbs +21 -0
- data/sig/line/bot/v2/manage_audience/model/audience_group_status.rbs +21 -0
- data/sig/line/bot/v2/manage_audience/model/audience_group_type.rbs +21 -0
- data/sig/line/bot/v2/manage_audience/model/create_audience_group_request.rbs +50 -0
- data/sig/line/bot/v2/manage_audience/model/create_audience_group_response.rbs +62 -0
- data/sig/line/bot/v2/manage_audience/model/create_click_based_audience_group_request.rbs +47 -0
- data/sig/line/bot/v2/manage_audience/model/create_click_based_audience_group_response.rbs +68 -0
- data/sig/line/bot/v2/manage_audience/model/create_imp_based_audience_group_request.rbs +44 -0
- data/sig/line/bot/v2/manage_audience/model/create_imp_based_audience_group_response.rbs +53 -0
- data/sig/line/bot/v2/manage_audience/model/detailed_owner.rbs +46 -0
- data/sig/line/bot/v2/manage_audience/model/error_detail.rbs +42 -0
- data/sig/line/bot/v2/manage_audience/model/error_response.rbs +43 -0
- data/sig/line/bot/v2/manage_audience/model/get_audience_data_response.rbs +47 -0
- data/sig/line/bot/v2/manage_audience/model/get_audience_groups_response.rbs +56 -0
- data/sig/line/bot/v2/manage_audience/model/get_shared_audience_data_response.rbs +47 -0
- data/sig/line/bot/v2/manage_audience/model/get_shared_audience_groups_response.rbs +56 -0
- data/sig/line/bot/v2/manage_audience/model/update_audience_group_description_request.rbs +41 -0
- data/sig/line/bot/v2/messaging_api/api/messaging_api_blob_client.rbs +196 -0
- data/sig/line/bot/v2/messaging_api/api/messaging_api_client.rbs +2072 -0
- data/sig/line/bot/v2/messaging_api/model/action.rbs +48 -0
- data/sig/line/bot/v2/messaging_api/model/age_demographic.rbs +20 -0
- data/sig/line/bot/v2/messaging_api/model/age_demographic_filter.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/all_mention_target.rbs +38 -0
- data/sig/line/bot/v2/messaging_api/model/alt_uri.rbs +39 -0
- data/sig/line/bot/v2/messaging_api/model/app_type_demographic.rbs +20 -0
- data/sig/line/bot/v2/messaging_api/model/app_type_demographic_filter.rbs +40 -0
- data/sig/line/bot/v2/messaging_api/model/area_demographic.rbs +21 -0
- data/sig/line/bot/v2/messaging_api/model/area_demographic_filter.rbs +40 -0
- data/sig/line/bot/v2/messaging_api/model/audience_recipient.rbs +40 -0
- data/sig/line/bot/v2/messaging_api/model/audio_message.rbs +50 -0
- data/sig/line/bot/v2/messaging_api/model/bot_info_response.rbs +58 -0
- data/sig/line/bot/v2/messaging_api/model/broadcast_request.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/buttons_template.rbs +61 -0
- data/sig/line/bot/v2/messaging_api/model/camera_action.rbs +40 -0
- data/sig/line/bot/v2/messaging_api/model/camera_roll_action.rbs +40 -0
- data/sig/line/bot/v2/messaging_api/model/carousel_column.rbs +55 -0
- data/sig/line/bot/v2/messaging_api/model/carousel_template.rbs +46 -0
- data/sig/line/bot/v2/messaging_api/model/chat_reference.rbs +41 -0
- data/sig/line/bot/v2/messaging_api/model/clipboard_action.rbs +44 -0
- data/sig/line/bot/v2/messaging_api/model/clipboard_imagemap_action.rbs +47 -0
- data/sig/line/bot/v2/messaging_api/model/confirm_template.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/create_rich_menu_alias_request.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/datetime_picker_action.rbs +56 -0
- data/sig/line/bot/v2/messaging_api/model/demographic_filter.rbs +44 -0
- data/sig/line/bot/v2/messaging_api/model/emoji.rbs +45 -0
- data/sig/line/bot/v2/messaging_api/model/emoji_substitution_object.rbs +45 -0
- data/sig/line/bot/v2/messaging_api/model/error_detail.rbs +42 -0
- data/sig/line/bot/v2/messaging_api/model/error_response.rbs +46 -0
- data/sig/line/bot/v2/messaging_api/model/filter.rbs +40 -0
- data/sig/line/bot/v2/messaging_api/model/flex_block_style.rbs +45 -0
- data/sig/line/bot/v2/messaging_api/model/flex_box.rbs +118 -0
- data/sig/line/bot/v2/messaging_api/model/flex_box_background.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/flex_box_border_width.rbs +21 -0
- data/sig/line/bot/v2/messaging_api/model/flex_box_corner_radius.rbs +21 -0
- data/sig/line/bot/v2/messaging_api/model/flex_box_linear_gradient.rbs +52 -0
- data/sig/line/bot/v2/messaging_api/model/flex_box_padding.rbs +21 -0
- data/sig/line/bot/v2/messaging_api/model/flex_box_spacing.rbs +21 -0
- data/sig/line/bot/v2/messaging_api/model/flex_bubble.rbs +61 -0
- data/sig/line/bot/v2/messaging_api/model/flex_bubble_styles.rbs +48 -0
- data/sig/line/bot/v2/messaging_api/model/flex_button.rbs +79 -0
- data/sig/line/bot/v2/messaging_api/model/flex_carousel.rbs +40 -0
- data/sig/line/bot/v2/messaging_api/model/flex_component.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/flex_container.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/flex_filler.rbs +40 -0
- data/sig/line/bot/v2/messaging_api/model/flex_icon.rbs +68 -0
- data/sig/line/bot/v2/messaging_api/model/flex_icon_size.rbs +21 -0
- data/sig/line/bot/v2/messaging_api/model/flex_image.rbs +86 -0
- data/sig/line/bot/v2/messaging_api/model/flex_image_size.rbs +21 -0
- data/sig/line/bot/v2/messaging_api/model/flex_margin.rbs +21 -0
- data/sig/line/bot/v2/messaging_api/model/flex_message.rbs +50 -0
- data/sig/line/bot/v2/messaging_api/model/flex_offset.rbs +21 -0
- data/sig/line/bot/v2/messaging_api/model/flex_separator.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/flex_span.rbs +55 -0
- data/sig/line/bot/v2/messaging_api/model/flex_span_size.rbs +21 -0
- data/sig/line/bot/v2/messaging_api/model/flex_text.rbs +103 -0
- data/sig/line/bot/v2/messaging_api/model/flex_text_font_size.rbs +21 -0
- data/sig/line/bot/v2/messaging_api/model/flex_video.rbs +52 -0
- data/sig/line/bot/v2/messaging_api/model/gender_demographic.rbs +20 -0
- data/sig/line/bot/v2/messaging_api/model/gender_demographic_filter.rbs +40 -0
- data/sig/line/bot/v2/messaging_api/model/get_aggregation_unit_name_list_response.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/get_aggregation_unit_usage_response.rbs +40 -0
- data/sig/line/bot/v2/messaging_api/model/get_followers_response.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/get_joined_membership_users_response.rbs +44 -0
- data/sig/line/bot/v2/messaging_api/model/get_membership_subscription_response.rbs +41 -0
- data/sig/line/bot/v2/messaging_api/model/get_message_content_transcoding_response.rbs +41 -0
- data/sig/line/bot/v2/messaging_api/model/get_webhook_endpoint_response.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/group_member_count_response.rbs +40 -0
- data/sig/line/bot/v2/messaging_api/model/group_summary_response.rbs +46 -0
- data/sig/line/bot/v2/messaging_api/model/group_user_profile_response.rbs +46 -0
- data/sig/line/bot/v2/messaging_api/model/image_carousel_column.rbs +42 -0
- data/sig/line/bot/v2/messaging_api/model/image_carousel_template.rbs +40 -0
- data/sig/line/bot/v2/messaging_api/model/image_message.rbs +50 -0
- data/sig/line/bot/v2/messaging_api/model/imagemap_action.rbs +47 -0
- data/sig/line/bot/v2/messaging_api/model/imagemap_area.rbs +48 -0
- data/sig/line/bot/v2/messaging_api/model/imagemap_base_size.rbs +42 -0
- data/sig/line/bot/v2/messaging_api/model/imagemap_external_link.rbs +42 -0
- data/sig/line/bot/v2/messaging_api/model/imagemap_message.rbs +59 -0
- data/sig/line/bot/v2/messaging_api/model/imagemap_video.rbs +48 -0
- data/sig/line/bot/v2/messaging_api/model/issue_link_token_response.rbs +40 -0
- data/sig/line/bot/v2/messaging_api/model/limit.rbs +44 -0
- data/sig/line/bot/v2/messaging_api/model/location_action.rbs +40 -0
- data/sig/line/bot/v2/messaging_api/model/location_message.rbs +56 -0
- data/sig/line/bot/v2/messaging_api/model/mark_messages_as_read_request.rbs +40 -0
- data/sig/line/bot/v2/messaging_api/model/members_ids_response.rbs +42 -0
- data/sig/line/bot/v2/messaging_api/model/membership.rbs +66 -0
- data/sig/line/bot/v2/messaging_api/model/membership_list_response.rbs +40 -0
- data/sig/line/bot/v2/messaging_api/model/mention_substitution_object.rbs +42 -0
- data/sig/line/bot/v2/messaging_api/model/mention_target.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/message.rbs +50 -0
- data/sig/line/bot/v2/messaging_api/model/message_action.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/message_imagemap_action.rbs +46 -0
- data/sig/line/bot/v2/messaging_api/model/message_quota_response.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/multicast_request.rbs +49 -0
- data/sig/line/bot/v2/messaging_api/model/narrowcast_progress_response.rbs +61 -0
- data/sig/line/bot/v2/messaging_api/model/narrowcast_request.rbs +52 -0
- data/sig/line/bot/v2/messaging_api/model/number_of_messages_response.rbs +42 -0
- data/sig/line/bot/v2/messaging_api/model/operator_demographic_filter.rbs +46 -0
- data/sig/line/bot/v2/messaging_api/model/operator_recipient.rbs +46 -0
- data/sig/line/bot/v2/messaging_api/model/pnp_messages_request.rbs +46 -0
- data/sig/line/bot/v2/messaging_api/model/postback_action.rbs +55 -0
- data/sig/line/bot/v2/messaging_api/model/push_message_request.rbs +49 -0
- data/sig/line/bot/v2/messaging_api/model/push_message_response.rbs +40 -0
- data/sig/line/bot/v2/messaging_api/model/quick_reply.rbs +41 -0
- data/sig/line/bot/v2/messaging_api/model/quick_reply_item.rbs +46 -0
- data/sig/line/bot/v2/messaging_api/model/quota_consumption_response.rbs +40 -0
- data/sig/line/bot/v2/messaging_api/model/quota_type.rbs +22 -0
- data/sig/line/bot/v2/messaging_api/model/recipient.rbs +44 -0
- data/sig/line/bot/v2/messaging_api/model/redelivery_recipient.rbs +40 -0
- data/sig/line/bot/v2/messaging_api/model/reply_message_request.rbs +46 -0
- data/sig/line/bot/v2/messaging_api/model/reply_message_response.rbs +40 -0
- data/sig/line/bot/v2/messaging_api/model/rich_menu_alias_list_response.rbs +40 -0
- data/sig/line/bot/v2/messaging_api/model/rich_menu_alias_response.rbs +42 -0
- data/sig/line/bot/v2/messaging_api/model/rich_menu_area.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/rich_menu_batch_link_operation.rbs +44 -0
- data/sig/line/bot/v2/messaging_api/model/rich_menu_batch_operation.rbs +45 -0
- data/sig/line/bot/v2/messaging_api/model/rich_menu_batch_progress_phase.rbs +21 -0
- data/sig/line/bot/v2/messaging_api/model/rich_menu_batch_progress_response.rbs +46 -0
- data/sig/line/bot/v2/messaging_api/model/rich_menu_batch_request.rbs +42 -0
- data/sig/line/bot/v2/messaging_api/model/rich_menu_batch_unlink_all_operation.rbs +38 -0
- data/sig/line/bot/v2/messaging_api/model/rich_menu_batch_unlink_operation.rbs +41 -0
- data/sig/line/bot/v2/messaging_api/model/rich_menu_bounds.rbs +50 -0
- data/sig/line/bot/v2/messaging_api/model/rich_menu_bulk_link_request.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/rich_menu_bulk_unlink_request.rbs +40 -0
- data/sig/line/bot/v2/messaging_api/model/rich_menu_id_response.rbs +39 -0
- data/sig/line/bot/v2/messaging_api/model/rich_menu_list_response.rbs +40 -0
- data/sig/line/bot/v2/messaging_api/model/rich_menu_request.rbs +51 -0
- data/sig/line/bot/v2/messaging_api/model/rich_menu_response.rbs +54 -0
- data/sig/line/bot/v2/messaging_api/model/rich_menu_size.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/rich_menu_switch_action.rbs +46 -0
- data/sig/line/bot/v2/messaging_api/model/room_member_count_response.rbs +40 -0
- data/sig/line/bot/v2/messaging_api/model/room_user_profile_response.rbs +46 -0
- data/sig/line/bot/v2/messaging_api/model/sender.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/sent_message.rbs +42 -0
- data/sig/line/bot/v2/messaging_api/model/set_webhook_endpoint_request.rbs +40 -0
- data/sig/line/bot/v2/messaging_api/model/show_loading_animation_request.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/sticker_message.rbs +53 -0
- data/sig/line/bot/v2/messaging_api/model/subscribed_membership_plan.rbs +55 -0
- data/sig/line/bot/v2/messaging_api/model/subscribed_membership_user.rbs +49 -0
- data/sig/line/bot/v2/messaging_api/model/subscription.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/subscription_period_demographic.rbs +20 -0
- data/sig/line/bot/v2/messaging_api/model/subscription_period_demographic_filter.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/substitution_object.rbs +44 -0
- data/sig/line/bot/v2/messaging_api/model/template.rbs +43 -0
- data/sig/line/bot/v2/messaging_api/model/template_image_aspect_ratio.rbs +21 -0
- data/sig/line/bot/v2/messaging_api/model/template_image_size.rbs +21 -0
- data/sig/line/bot/v2/messaging_api/model/template_message.rbs +50 -0
- data/sig/line/bot/v2/messaging_api/model/test_webhook_endpoint_request.rbs +40 -0
- data/sig/line/bot/v2/messaging_api/model/test_webhook_endpoint_response.rbs +52 -0
- data/sig/line/bot/v2/messaging_api/model/text_message.rbs +53 -0
- data/sig/line/bot/v2/messaging_api/model/text_message_v2.rbs +53 -0
- data/sig/line/bot/v2/messaging_api/model/update_rich_menu_alias_request.rbs +40 -0
- data/sig/line/bot/v2/messaging_api/model/uri_action.rbs +46 -0
- data/sig/line/bot/v2/messaging_api/model/uri_imagemap_action.rbs +46 -0
- data/sig/line/bot/v2/messaging_api/model/user_mention_target.rbs +41 -0
- data/sig/line/bot/v2/messaging_api/model/user_profile_response.rbs +52 -0
- data/sig/line/bot/v2/messaging_api/model/validate_message_request.rbs +39 -0
- data/sig/line/bot/v2/messaging_api/model/video_message.rbs +53 -0
- data/sig/line/bot/v2/module/api/line_module_client.rbs +170 -0
- data/sig/line/bot/v2/module/model/acquire_chat_control_request.rbs +44 -0
- data/sig/line/bot/v2/module/model/detach_module_request.rbs +41 -0
- data/sig/line/bot/v2/module/model/get_modules_response.rbs +44 -0
- data/sig/line/bot/v2/module/model/module_bot.rbs +53 -0
- data/sig/line/bot/v2/module_attach/api/line_module_attach_client.rbs +111 -0
- data/sig/line/bot/v2/module_attach/model/attach_module_response.rbs +43 -0
- data/sig/line/bot/v2/reserved_words.rbs +7 -0
- data/sig/line/bot/v2/shop/api/shop_client.rbs +72 -0
- data/sig/line/bot/v2/shop/model/error_response.rbs +40 -0
- data/sig/line/bot/v2/shop/model/mission_sticker_request.rbs +50 -0
- data/sig/line/bot/v2/utils.rbs +25 -0
- data/sig/line/bot/v2/webhook/model/account_link_event.rbs +59 -0
- data/sig/line/bot/v2/webhook/model/action_result.rbs +42 -0
- data/sig/line/bot/v2/webhook/model/activated_event.rbs +56 -0
- data/sig/line/bot/v2/webhook/model/all_mentionee.rbs +44 -0
- data/sig/line/bot/v2/webhook/model/attached_module_content.rbs +43 -0
- data/sig/line/bot/v2/webhook/model/audio_message_content.rbs +46 -0
- data/sig/line/bot/v2/webhook/model/beacon_content.rbs +45 -0
- data/sig/line/bot/v2/webhook/model/beacon_event.rbs +59 -0
- data/sig/line/bot/v2/webhook/model/bot_resumed_event.rbs +53 -0
- data/sig/line/bot/v2/webhook/model/bot_suspended_event.rbs +53 -0
- data/sig/line/bot/v2/webhook/model/callback_request.rbs +44 -0
- data/sig/line/bot/v2/webhook/model/chat_control.rbs +39 -0
- data/sig/line/bot/v2/webhook/model/content_provider.rbs +46 -0
- data/sig/line/bot/v2/webhook/model/deactivated_event.rbs +53 -0
- data/sig/line/bot/v2/webhook/model/delivery_context.rbs +40 -0
- data/sig/line/bot/v2/webhook/model/detached_module_content.rbs +43 -0
- data/sig/line/bot/v2/webhook/model/emoji.rbs +48 -0
- data/sig/line/bot/v2/webhook/model/event.rbs +59 -0
- data/sig/line/bot/v2/webhook/model/event_mode.rbs +21 -0
- data/sig/line/bot/v2/webhook/model/file_message_content.rbs +46 -0
- data/sig/line/bot/v2/webhook/model/follow_detail.rbs +39 -0
- data/sig/line/bot/v2/webhook/model/follow_event.rbs +59 -0
- data/sig/line/bot/v2/webhook/model/group_source.rbs +43 -0
- data/sig/line/bot/v2/webhook/model/image_message_content.rbs +49 -0
- data/sig/line/bot/v2/webhook/model/image_set.rbs +45 -0
- data/sig/line/bot/v2/webhook/model/join_event.rbs +56 -0
- data/sig/line/bot/v2/webhook/model/joined_members.rbs +39 -0
- data/sig/line/bot/v2/webhook/model/joined_membership_content.rbs +40 -0
- data/sig/line/bot/v2/webhook/model/leave_event.rbs +53 -0
- data/sig/line/bot/v2/webhook/model/left_members.rbs +39 -0
- data/sig/line/bot/v2/webhook/model/left_membership_content.rbs +40 -0
- data/sig/line/bot/v2/webhook/model/link_content.rbs +43 -0
- data/sig/line/bot/v2/webhook/model/link_things_content.rbs +40 -0
- data/sig/line/bot/v2/webhook/model/location_message_content.rbs +52 -0
- data/sig/line/bot/v2/webhook/model/member_joined_event.rbs +59 -0
- data/sig/line/bot/v2/webhook/model/member_left_event.rbs +56 -0
- data/sig/line/bot/v2/webhook/model/membership_content.rbs +44 -0
- data/sig/line/bot/v2/webhook/model/membership_event.rbs +59 -0
- data/sig/line/bot/v2/webhook/model/mention.rbs +39 -0
- data/sig/line/bot/v2/webhook/model/mentionee.rbs +50 -0
- data/sig/line/bot/v2/webhook/model/message_content.rbs +47 -0
- data/sig/line/bot/v2/webhook/model/message_event.rbs +59 -0
- data/sig/line/bot/v2/webhook/model/module_content.rbs +43 -0
- data/sig/line/bot/v2/webhook/model/module_event.rbs +56 -0
- data/sig/line/bot/v2/webhook/model/pnp_delivery.rbs +40 -0
- data/sig/line/bot/v2/webhook/model/pnp_delivery_completion_event.rbs +56 -0
- data/sig/line/bot/v2/webhook/model/postback_content.rbs +42 -0
- data/sig/line/bot/v2/webhook/model/postback_event.rbs +59 -0
- data/sig/line/bot/v2/webhook/model/renewed_membership_content.rbs +40 -0
- data/sig/line/bot/v2/webhook/model/room_source.rbs +43 -0
- data/sig/line/bot/v2/webhook/model/scenario_result.rbs +61 -0
- data/sig/line/bot/v2/webhook/model/scenario_result_things_content.rbs +43 -0
- data/sig/line/bot/v2/webhook/model/source.rbs +45 -0
- data/sig/line/bot/v2/webhook/model/sticker_message_content.rbs +62 -0
- data/sig/line/bot/v2/webhook/model/text_message_content.rbs +55 -0
- data/sig/line/bot/v2/webhook/model/things_content.rbs +43 -0
- data/sig/line/bot/v2/webhook/model/things_event.rbs +59 -0
- data/sig/line/bot/v2/webhook/model/unfollow_event.rbs +53 -0
- data/sig/line/bot/v2/webhook/model/unlink_things_content.rbs +40 -0
- data/sig/line/bot/v2/webhook/model/unsend_detail.rbs +39 -0
- data/sig/line/bot/v2/webhook/model/unsend_event.rbs +56 -0
- data/sig/line/bot/v2/webhook/model/user_mentionee.rbs +50 -0
- data/sig/line/bot/v2/webhook/model/user_source.rbs +40 -0
- data/sig/line/bot/v2/webhook/model/video_message_content.rbs +49 -0
- data/sig/line/bot/v2/webhook/model/video_play_complete.rbs +39 -0
- data/sig/line/bot/v2/webhook/model/video_play_complete_event.rbs +59 -0
- data/sig/line/bot/v2/webhook_parser.rbs +26 -0
- data/sig/line/bot/version.rbs +5 -0
- metadata +666 -69
@@ -0,0 +1,97 @@
|
|
1
|
+
# LINE Messaging API
|
2
|
+
# This document describes LINE Messaging API.
|
3
|
+
#
|
4
|
+
# The version of the OpenAPI document: 0.0.1
|
5
|
+
#
|
6
|
+
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
7
|
+
# https://openapi-generator.tech
|
8
|
+
# Do not edit the class manually.
|
9
|
+
|
10
|
+
module Line
|
11
|
+
module Bot
|
12
|
+
module V2
|
13
|
+
module MessagingApi
|
14
|
+
# @see https://developers.line.biz/en/reference/messaging-api/#send-narrowcast-message
|
15
|
+
class NarrowcastRequest
|
16
|
+
# @!attribute [rw] messages
|
17
|
+
# @return [Array[Message]] List of Message objects.
|
18
|
+
attr_accessor :messages
|
19
|
+
# @!attribute [rw] recipient
|
20
|
+
# @return [Recipient,nil]
|
21
|
+
attr_accessor :recipient
|
22
|
+
# @!attribute [rw] filter
|
23
|
+
# @return [Filter,nil]
|
24
|
+
attr_accessor :filter
|
25
|
+
# @!attribute [rw] limit
|
26
|
+
# @return [Limit,nil]
|
27
|
+
attr_accessor :limit
|
28
|
+
# @!attribute [rw] notification_disabled
|
29
|
+
# @return [Boolean,nil] `true`: The user doesn’t receive a push notification when a message is sent. `false`: The user receives a push notification when the message is sent (unless they have disabled push notifications in LINE and/or their device). The default value is false.
|
30
|
+
attr_accessor :notification_disabled
|
31
|
+
|
32
|
+
# @param messages [Array[Message, Hash[Symbol, untyped]]] List of Message objects.
|
33
|
+
# @param recipient [Recipient, Hash[Symbol, untyped], nil]
|
34
|
+
# @param filter [Filter, Hash[Symbol, untyped], nil]
|
35
|
+
# @param limit [Limit, Hash[Symbol, untyped], nil]
|
36
|
+
# @param notification_disabled [Boolean,nil] `true`: The user doesn’t receive a push notification when a message is sent. `false`: The user receives a push notification when the message is sent (unless they have disabled push notifications in LINE and/or their device). The default value is false.
|
37
|
+
def initialize(
|
38
|
+
messages:,
|
39
|
+
recipient: nil,
|
40
|
+
filter: nil,
|
41
|
+
limit: nil,
|
42
|
+
notification_disabled: false,
|
43
|
+
**dynamic_attributes
|
44
|
+
)
|
45
|
+
|
46
|
+
@messages = messages.map do |item|
|
47
|
+
if item.is_a?(Hash)
|
48
|
+
Line::Bot::V2::MessagingApi::Message.create(**item) # steep:ignore InsufficientKeywordArguments
|
49
|
+
else
|
50
|
+
item
|
51
|
+
end
|
52
|
+
end
|
53
|
+
@recipient = recipient.is_a?(Line::Bot::V2::MessagingApi::Recipient) || recipient.nil? ? recipient : Line::Bot::V2::MessagingApi::Recipient.create(**recipient) # steep:ignore
|
54
|
+
@filter = filter.is_a?(Line::Bot::V2::MessagingApi::Filter) || filter.nil? ? filter : Line::Bot::V2::MessagingApi::Filter.create(**filter) # steep:ignore
|
55
|
+
@limit = limit.is_a?(Line::Bot::V2::MessagingApi::Limit) || limit.nil? ? limit : Line::Bot::V2::MessagingApi::Limit.create(**limit) # steep:ignore
|
56
|
+
@notification_disabled = notification_disabled
|
57
|
+
|
58
|
+
dynamic_attributes.each do |key, value|
|
59
|
+
self.class.attr_accessor key
|
60
|
+
|
61
|
+
if value.is_a?(Hash)
|
62
|
+
struct_klass = Struct.new(*value.keys.map(&:to_sym))
|
63
|
+
struct_values = value.map { |_k, v| v.is_a?(Hash) ? Line::Bot::V2::Utils.hash_to_struct(v) : v }
|
64
|
+
instance_variable_set("@#{key}", struct_klass.new(*struct_values))
|
65
|
+
else
|
66
|
+
instance_variable_set("@#{key}", value)
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
# Create an instance of the class from a hash
|
72
|
+
# @param args [Hash] Hash containing all the required attributes
|
73
|
+
# @return [Line::Bot::V2::MessagingApi::NarrowcastRequest] Instance of the class
|
74
|
+
def self.create(args) # steep:ignore
|
75
|
+
symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args)
|
76
|
+
return new(**symbolized_args) # steep:ignore
|
77
|
+
end
|
78
|
+
|
79
|
+
# @param other [Object] Object to compare
|
80
|
+
# @return [Boolean] true if the objects are equal, false otherwise
|
81
|
+
def ==(other)
|
82
|
+
return false unless self.class == other.class
|
83
|
+
|
84
|
+
instance_variables.all? do |var|
|
85
|
+
instance_variable_get(var) == other.instance_variable_get(var)
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
# @return [Integer] Hash code of the object
|
90
|
+
def hash
|
91
|
+
[self.class, *instance_variables.map { |var| instance_variable_get(var) }].hash
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
@@ -0,0 +1,72 @@
|
|
1
|
+
# LINE Messaging API
|
2
|
+
# This document describes LINE Messaging API.
|
3
|
+
#
|
4
|
+
# The version of the OpenAPI document: 0.0.1
|
5
|
+
#
|
6
|
+
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
7
|
+
# https://openapi-generator.tech
|
8
|
+
# Do not edit the class manually.
|
9
|
+
|
10
|
+
module Line
|
11
|
+
module Bot
|
12
|
+
module V2
|
13
|
+
module MessagingApi
|
14
|
+
class NumberOfMessagesResponse
|
15
|
+
# @!attribute [rw] status
|
16
|
+
# @return [String] ('ready'|'unready'|'unavailable_for_privacy'|'out_of_service') Aggregation process status. One of: `ready`: The number of messages can be obtained. `unready`: We haven't finished calculating the number of sent messages for the specified in date. For example, this property is returned when the delivery date or a future date is specified. Calculation usually takes about a day. `unavailable_for_privacy`: The total number of messages on the specified day is less than 20. `out_of_service`: The specified date is earlier than the date on which we first started calculating sent messages (March 31, 2018).
|
17
|
+
attr_accessor :status
|
18
|
+
# @!attribute [rw] success
|
19
|
+
# @return [Integer,nil] The number of messages delivered using the phone number on the date specified in `date`. The response has this property only when the value of `status` is `ready`.
|
20
|
+
attr_accessor :success
|
21
|
+
|
22
|
+
# @param status [String] ('ready'|'unready'|'unavailable_for_privacy'|'out_of_service') Aggregation process status. One of: `ready`: The number of messages can be obtained. `unready`: We haven't finished calculating the number of sent messages for the specified in date. For example, this property is returned when the delivery date or a future date is specified. Calculation usually takes about a day. `unavailable_for_privacy`: The total number of messages on the specified day is less than 20. `out_of_service`: The specified date is earlier than the date on which we first started calculating sent messages (March 31, 2018).
|
23
|
+
# @param success [Integer,nil] The number of messages delivered using the phone number on the date specified in `date`. The response has this property only when the value of `status` is `ready`.
|
24
|
+
def initialize(
|
25
|
+
status:,
|
26
|
+
success: nil,
|
27
|
+
**dynamic_attributes
|
28
|
+
)
|
29
|
+
|
30
|
+
@status = status
|
31
|
+
@success = success
|
32
|
+
|
33
|
+
dynamic_attributes.each do |key, value|
|
34
|
+
self.class.attr_accessor key
|
35
|
+
|
36
|
+
if value.is_a?(Hash)
|
37
|
+
struct_klass = Struct.new(*value.keys.map(&:to_sym))
|
38
|
+
struct_values = value.map { |_k, v| v.is_a?(Hash) ? Line::Bot::V2::Utils.hash_to_struct(v) : v }
|
39
|
+
instance_variable_set("@#{key}", struct_klass.new(*struct_values))
|
40
|
+
else
|
41
|
+
instance_variable_set("@#{key}", value)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# Create an instance of the class from a hash
|
47
|
+
# @param args [Hash] Hash containing all the required attributes
|
48
|
+
# @return [Line::Bot::V2::MessagingApi::NumberOfMessagesResponse] Instance of the class
|
49
|
+
def self.create(args) # steep:ignore
|
50
|
+
symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args)
|
51
|
+
return new(**symbolized_args) # steep:ignore
|
52
|
+
end
|
53
|
+
|
54
|
+
# @param other [Object] Object to compare
|
55
|
+
# @return [Boolean] true if the objects are equal, false otherwise
|
56
|
+
def ==(other)
|
57
|
+
return false unless self.class == other.class
|
58
|
+
|
59
|
+
instance_variables.all? do |var|
|
60
|
+
instance_variable_get(var) == other.instance_variable_get(var)
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
# @return [Integer] Hash code of the object
|
65
|
+
def hash
|
66
|
+
[self.class, *instance_variables.map { |var| instance_variable_get(var) }].hash
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
@@ -0,0 +1,96 @@
|
|
1
|
+
# LINE Messaging API
|
2
|
+
# This document describes LINE Messaging API.
|
3
|
+
#
|
4
|
+
# The version of the OpenAPI document: 0.0.1
|
5
|
+
#
|
6
|
+
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
7
|
+
# https://openapi-generator.tech
|
8
|
+
# Do not edit the class manually.
|
9
|
+
|
10
|
+
require_relative './demographic_filter'
|
11
|
+
|
12
|
+
module Line
|
13
|
+
module Bot
|
14
|
+
module V2
|
15
|
+
module MessagingApi
|
16
|
+
class OperatorDemographicFilter < DemographicFilter
|
17
|
+
# @!attribute [r] type
|
18
|
+
# @return [String,nil] Type of demographic filter
|
19
|
+
attr_reader :type
|
20
|
+
# @!attribute [rw] _and
|
21
|
+
# @return [Array[DemographicFilter],nil]
|
22
|
+
attr_accessor :_and
|
23
|
+
# @!attribute [rw] _or
|
24
|
+
# @return [Array[DemographicFilter],nil]
|
25
|
+
attr_accessor :_or
|
26
|
+
# @!attribute [rw] _not
|
27
|
+
# @return [DemographicFilter,nil]
|
28
|
+
attr_accessor :_not
|
29
|
+
|
30
|
+
# @param _and [Array[DemographicFilter, Hash[Symbol, untyped]],nil]
|
31
|
+
# @param _or [Array[DemographicFilter, Hash[Symbol, untyped]],nil]
|
32
|
+
# @param _not [DemographicFilter, Hash[Symbol, untyped], nil]
|
33
|
+
def initialize(
|
34
|
+
_and: nil,
|
35
|
+
_or: nil,
|
36
|
+
_not: nil,
|
37
|
+
**dynamic_attributes
|
38
|
+
)
|
39
|
+
@type = "operator"
|
40
|
+
|
41
|
+
@_and = _and&.map do |item|
|
42
|
+
if item.is_a?(Hash)
|
43
|
+
Line::Bot::V2::MessagingApi::DemographicFilter.create(**item) # steep:ignore InsufficientKeywordArguments
|
44
|
+
else
|
45
|
+
item
|
46
|
+
end
|
47
|
+
end
|
48
|
+
@_or = _or&.map do |item|
|
49
|
+
if item.is_a?(Hash)
|
50
|
+
Line::Bot::V2::MessagingApi::DemographicFilter.create(**item) # steep:ignore InsufficientKeywordArguments
|
51
|
+
else
|
52
|
+
item
|
53
|
+
end
|
54
|
+
end
|
55
|
+
@_not = _not.is_a?(Line::Bot::V2::MessagingApi::DemographicFilter) || _not.nil? ? _not : Line::Bot::V2::MessagingApi::DemographicFilter.create(**_not) # steep:ignore
|
56
|
+
|
57
|
+
dynamic_attributes.each do |key, value|
|
58
|
+
self.class.attr_accessor key
|
59
|
+
|
60
|
+
if value.is_a?(Hash)
|
61
|
+
struct_klass = Struct.new(*value.keys.map(&:to_sym))
|
62
|
+
struct_values = value.map { |_k, v| v.is_a?(Hash) ? Line::Bot::V2::Utils.hash_to_struct(v) : v }
|
63
|
+
instance_variable_set("@#{key}", struct_klass.new(*struct_values))
|
64
|
+
else
|
65
|
+
instance_variable_set("@#{key}", value)
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
# Create an instance of the class from a hash
|
71
|
+
# @param args [Hash] Hash containing all the required attributes
|
72
|
+
# @return [Line::Bot::V2::MessagingApi::OperatorDemographicFilter] Instance of the class
|
73
|
+
def self.create(args) # steep:ignore
|
74
|
+
symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args)
|
75
|
+
return new(**symbolized_args) # steep:ignore
|
76
|
+
end
|
77
|
+
|
78
|
+
# @param other [Object] Object to compare
|
79
|
+
# @return [Boolean] true if the objects are equal, false otherwise
|
80
|
+
def ==(other)
|
81
|
+
return false unless self.class == other.class
|
82
|
+
|
83
|
+
instance_variables.all? do |var|
|
84
|
+
instance_variable_get(var) == other.instance_variable_get(var)
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
# @return [Integer] Hash code of the object
|
89
|
+
def hash
|
90
|
+
[self.class, *instance_variables.map { |var| instance_variable_get(var) }].hash
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
@@ -0,0 +1,96 @@
|
|
1
|
+
# LINE Messaging API
|
2
|
+
# This document describes LINE Messaging API.
|
3
|
+
#
|
4
|
+
# The version of the OpenAPI document: 0.0.1
|
5
|
+
#
|
6
|
+
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
7
|
+
# https://openapi-generator.tech
|
8
|
+
# Do not edit the class manually.
|
9
|
+
|
10
|
+
require_relative './recipient'
|
11
|
+
|
12
|
+
module Line
|
13
|
+
module Bot
|
14
|
+
module V2
|
15
|
+
module MessagingApi
|
16
|
+
class OperatorRecipient < Recipient
|
17
|
+
# @!attribute [r] type
|
18
|
+
# @return [String,nil] Type of recipient
|
19
|
+
attr_reader :type
|
20
|
+
# @!attribute [rw] _and
|
21
|
+
# @return [Array[Recipient],nil] Create a new recipient object by taking the logical conjunction (AND) of the specified array of recipient objects.
|
22
|
+
attr_accessor :_and
|
23
|
+
# @!attribute [rw] _or
|
24
|
+
# @return [Array[Recipient],nil] Create a new recipient object by taking the logical disjunction (OR) of the specified array of recipient objects.
|
25
|
+
attr_accessor :_or
|
26
|
+
# @!attribute [rw] _not
|
27
|
+
# @return [Recipient,nil]
|
28
|
+
attr_accessor :_not
|
29
|
+
|
30
|
+
# @param _and [Array[Recipient, Hash[Symbol, untyped]],nil] Create a new recipient object by taking the logical conjunction (AND) of the specified array of recipient objects.
|
31
|
+
# @param _or [Array[Recipient, Hash[Symbol, untyped]],nil] Create a new recipient object by taking the logical disjunction (OR) of the specified array of recipient objects.
|
32
|
+
# @param _not [Recipient, Hash[Symbol, untyped], nil]
|
33
|
+
def initialize(
|
34
|
+
_and: nil,
|
35
|
+
_or: nil,
|
36
|
+
_not: nil,
|
37
|
+
**dynamic_attributes
|
38
|
+
)
|
39
|
+
@type = "operator"
|
40
|
+
|
41
|
+
@_and = _and&.map do |item|
|
42
|
+
if item.is_a?(Hash)
|
43
|
+
Line::Bot::V2::MessagingApi::Recipient.create(**item) # steep:ignore InsufficientKeywordArguments
|
44
|
+
else
|
45
|
+
item
|
46
|
+
end
|
47
|
+
end
|
48
|
+
@_or = _or&.map do |item|
|
49
|
+
if item.is_a?(Hash)
|
50
|
+
Line::Bot::V2::MessagingApi::Recipient.create(**item) # steep:ignore InsufficientKeywordArguments
|
51
|
+
else
|
52
|
+
item
|
53
|
+
end
|
54
|
+
end
|
55
|
+
@_not = _not.is_a?(Line::Bot::V2::MessagingApi::Recipient) || _not.nil? ? _not : Line::Bot::V2::MessagingApi::Recipient.create(**_not) # steep:ignore
|
56
|
+
|
57
|
+
dynamic_attributes.each do |key, value|
|
58
|
+
self.class.attr_accessor key
|
59
|
+
|
60
|
+
if value.is_a?(Hash)
|
61
|
+
struct_klass = Struct.new(*value.keys.map(&:to_sym))
|
62
|
+
struct_values = value.map { |_k, v| v.is_a?(Hash) ? Line::Bot::V2::Utils.hash_to_struct(v) : v }
|
63
|
+
instance_variable_set("@#{key}", struct_klass.new(*struct_values))
|
64
|
+
else
|
65
|
+
instance_variable_set("@#{key}", value)
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
# Create an instance of the class from a hash
|
71
|
+
# @param args [Hash] Hash containing all the required attributes
|
72
|
+
# @return [Line::Bot::V2::MessagingApi::OperatorRecipient] Instance of the class
|
73
|
+
def self.create(args) # steep:ignore
|
74
|
+
symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args)
|
75
|
+
return new(**symbolized_args) # steep:ignore
|
76
|
+
end
|
77
|
+
|
78
|
+
# @param other [Object] Object to compare
|
79
|
+
# @return [Boolean] true if the objects are equal, false otherwise
|
80
|
+
def ==(other)
|
81
|
+
return false unless self.class == other.class
|
82
|
+
|
83
|
+
instance_variables.all? do |var|
|
84
|
+
instance_variable_get(var) == other.instance_variable_get(var)
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
# @return [Integer] Hash code of the object
|
89
|
+
def hash
|
90
|
+
[self.class, *instance_variables.map { |var| instance_variable_get(var) }].hash
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
@@ -0,0 +1,85 @@
|
|
1
|
+
# LINE Messaging API
|
2
|
+
# This document describes LINE Messaging API.
|
3
|
+
#
|
4
|
+
# The version of the OpenAPI document: 0.0.1
|
5
|
+
#
|
6
|
+
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
7
|
+
# https://openapi-generator.tech
|
8
|
+
# Do not edit the class manually.
|
9
|
+
|
10
|
+
module Line
|
11
|
+
module Bot
|
12
|
+
module V2
|
13
|
+
module MessagingApi
|
14
|
+
# @see https://developers.line.biz/en/reference/partner-docs/#send-line-notification-message
|
15
|
+
class PnpMessagesRequest
|
16
|
+
# @!attribute [rw] messages
|
17
|
+
# @return [Array[Message]] Message to be sent.
|
18
|
+
attr_accessor :messages
|
19
|
+
# @!attribute [rw] to
|
20
|
+
# @return [String] Message destination. Specify a phone number that has been normalized to E.164 format and hashed with SHA256.
|
21
|
+
attr_accessor :to
|
22
|
+
# @!attribute [rw] notification_disabled
|
23
|
+
# @return [Boolean,nil] `true`: The user doesn’t receive a push notification when a message is sent. `false`: The user receives a push notification when the message is sent (unless they have disabled push notifications in LINE and/or their device). The default value is false.
|
24
|
+
attr_accessor :notification_disabled
|
25
|
+
|
26
|
+
# @param messages [Array[Message, Hash[Symbol, untyped]]] Message to be sent.
|
27
|
+
# @param to [String] Message destination. Specify a phone number that has been normalized to E.164 format and hashed with SHA256.
|
28
|
+
# @param notification_disabled [Boolean,nil] `true`: The user doesn’t receive a push notification when a message is sent. `false`: The user receives a push notification when the message is sent (unless they have disabled push notifications in LINE and/or their device). The default value is false.
|
29
|
+
def initialize(
|
30
|
+
messages:,
|
31
|
+
to:,
|
32
|
+
notification_disabled: false,
|
33
|
+
**dynamic_attributes
|
34
|
+
)
|
35
|
+
|
36
|
+
@messages = messages.map do |item|
|
37
|
+
if item.is_a?(Hash)
|
38
|
+
Line::Bot::V2::MessagingApi::Message.create(**item) # steep:ignore InsufficientKeywordArguments
|
39
|
+
else
|
40
|
+
item
|
41
|
+
end
|
42
|
+
end
|
43
|
+
@to = to
|
44
|
+
@notification_disabled = notification_disabled
|
45
|
+
|
46
|
+
dynamic_attributes.each do |key, value|
|
47
|
+
self.class.attr_accessor key
|
48
|
+
|
49
|
+
if value.is_a?(Hash)
|
50
|
+
struct_klass = Struct.new(*value.keys.map(&:to_sym))
|
51
|
+
struct_values = value.map { |_k, v| v.is_a?(Hash) ? Line::Bot::V2::Utils.hash_to_struct(v) : v }
|
52
|
+
instance_variable_set("@#{key}", struct_klass.new(*struct_values))
|
53
|
+
else
|
54
|
+
instance_variable_set("@#{key}", value)
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
# Create an instance of the class from a hash
|
60
|
+
# @param args [Hash] Hash containing all the required attributes
|
61
|
+
# @return [Line::Bot::V2::MessagingApi::PnpMessagesRequest] Instance of the class
|
62
|
+
def self.create(args) # steep:ignore
|
63
|
+
symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args)
|
64
|
+
return new(**symbolized_args) # steep:ignore
|
65
|
+
end
|
66
|
+
|
67
|
+
# @param other [Object] Object to compare
|
68
|
+
# @return [Boolean] true if the objects are equal, false otherwise
|
69
|
+
def ==(other)
|
70
|
+
return false unless self.class == other.class
|
71
|
+
|
72
|
+
instance_variables.all? do |var|
|
73
|
+
instance_variable_get(var) == other.instance_variable_get(var)
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
# @return [Integer] Hash code of the object
|
78
|
+
def hash
|
79
|
+
[self.class, *instance_variables.map { |var| instance_variable_get(var) }].hash
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
@@ -0,0 +1,102 @@
|
|
1
|
+
# LINE Messaging API
|
2
|
+
# This document describes LINE Messaging API.
|
3
|
+
#
|
4
|
+
# The version of the OpenAPI document: 0.0.1
|
5
|
+
#
|
6
|
+
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
7
|
+
# https://openapi-generator.tech
|
8
|
+
# Do not edit the class manually.
|
9
|
+
|
10
|
+
require_relative './action'
|
11
|
+
|
12
|
+
module Line
|
13
|
+
module Bot
|
14
|
+
module V2
|
15
|
+
module MessagingApi
|
16
|
+
class PostbackAction < Action
|
17
|
+
# @!attribute [r] type
|
18
|
+
# @return [String,nil] Type of action
|
19
|
+
attr_reader :type
|
20
|
+
# @!attribute [rw] label
|
21
|
+
# @return [String,nil] Label for the action.
|
22
|
+
attr_accessor :label
|
23
|
+
# @!attribute [rw] data
|
24
|
+
# @return [String,nil]
|
25
|
+
attr_accessor :data
|
26
|
+
# @!attribute [rw] display_text
|
27
|
+
# @return [String,nil]
|
28
|
+
attr_accessor :display_text
|
29
|
+
# @!attribute [rw] text
|
30
|
+
# @return [String,nil]
|
31
|
+
attr_accessor :text
|
32
|
+
# @!attribute [rw] input_option
|
33
|
+
# @return [String,nil] ('closeRichMenu'|'openRichMenu'|'openKeyboard'|'openVoice')
|
34
|
+
attr_accessor :input_option
|
35
|
+
# @!attribute [rw] fill_in_text
|
36
|
+
# @return [String,nil]
|
37
|
+
attr_accessor :fill_in_text
|
38
|
+
|
39
|
+
# @param label [String,nil] Label for the action.
|
40
|
+
# @param data [String,nil]
|
41
|
+
# @param display_text [String,nil]
|
42
|
+
# @param text [String,nil]
|
43
|
+
# @param input_option [String,nil] ('closeRichMenu'|'openRichMenu'|'openKeyboard'|'openVoice')
|
44
|
+
# @param fill_in_text [String,nil]
|
45
|
+
def initialize(
|
46
|
+
label: nil,
|
47
|
+
data: nil,
|
48
|
+
display_text: nil,
|
49
|
+
text: nil,
|
50
|
+
input_option: nil,
|
51
|
+
fill_in_text: nil,
|
52
|
+
**dynamic_attributes
|
53
|
+
)
|
54
|
+
@type = "postback"
|
55
|
+
|
56
|
+
@label = label
|
57
|
+
@data = data
|
58
|
+
@display_text = display_text
|
59
|
+
@text = text
|
60
|
+
@input_option = input_option
|
61
|
+
@fill_in_text = fill_in_text
|
62
|
+
|
63
|
+
dynamic_attributes.each do |key, value|
|
64
|
+
self.class.attr_accessor key
|
65
|
+
|
66
|
+
if value.is_a?(Hash)
|
67
|
+
struct_klass = Struct.new(*value.keys.map(&:to_sym))
|
68
|
+
struct_values = value.map { |_k, v| v.is_a?(Hash) ? Line::Bot::V2::Utils.hash_to_struct(v) : v }
|
69
|
+
instance_variable_set("@#{key}", struct_klass.new(*struct_values))
|
70
|
+
else
|
71
|
+
instance_variable_set("@#{key}", value)
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
# Create an instance of the class from a hash
|
77
|
+
# @param args [Hash] Hash containing all the required attributes
|
78
|
+
# @return [Line::Bot::V2::MessagingApi::PostbackAction] Instance of the class
|
79
|
+
def self.create(args) # steep:ignore
|
80
|
+
symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args)
|
81
|
+
return new(**symbolized_args) # steep:ignore
|
82
|
+
end
|
83
|
+
|
84
|
+
# @param other [Object] Object to compare
|
85
|
+
# @return [Boolean] true if the objects are equal, false otherwise
|
86
|
+
def ==(other)
|
87
|
+
return false unless self.class == other.class
|
88
|
+
|
89
|
+
instance_variables.all? do |var|
|
90
|
+
instance_variable_get(var) == other.instance_variable_get(var)
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
# @return [Integer] Hash code of the object
|
95
|
+
def hash
|
96
|
+
[self.class, *instance_variables.map { |var| instance_variable_get(var) }].hash
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
@@ -0,0 +1,91 @@
|
|
1
|
+
# LINE Messaging API
|
2
|
+
# This document describes LINE Messaging API.
|
3
|
+
#
|
4
|
+
# The version of the OpenAPI document: 0.0.1
|
5
|
+
#
|
6
|
+
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
7
|
+
# https://openapi-generator.tech
|
8
|
+
# Do not edit the class manually.
|
9
|
+
|
10
|
+
module Line
|
11
|
+
module Bot
|
12
|
+
module V2
|
13
|
+
module MessagingApi
|
14
|
+
# @see https://developers.line.biz/en/reference/messaging-api/#send-push-message
|
15
|
+
class PushMessageRequest
|
16
|
+
# @!attribute [rw] to
|
17
|
+
# @return [String] ID of the receiver.
|
18
|
+
attr_accessor :to
|
19
|
+
# @!attribute [rw] messages
|
20
|
+
# @return [Array[Message]] List of Message objects.
|
21
|
+
attr_accessor :messages
|
22
|
+
# @!attribute [rw] notification_disabled
|
23
|
+
# @return [Boolean,nil] `true`: The user doesn’t receive a push notification when a message is sent. `false`: The user receives a push notification when the message is sent (unless they have disabled push notifications in LINE and/or their device). The default value is false.
|
24
|
+
attr_accessor :notification_disabled
|
25
|
+
# @!attribute [rw] custom_aggregation_units
|
26
|
+
# @return [Array[String],nil] List of aggregation unit name. Case-sensitive. This functions can only be used by corporate users who have submitted the required applications.
|
27
|
+
attr_accessor :custom_aggregation_units
|
28
|
+
|
29
|
+
# @param to [String] ID of the receiver.
|
30
|
+
# @param messages [Array[Message, Hash[Symbol, untyped]]] List of Message objects.
|
31
|
+
# @param notification_disabled [Boolean,nil] `true`: The user doesn’t receive a push notification when a message is sent. `false`: The user receives a push notification when the message is sent (unless they have disabled push notifications in LINE and/or their device). The default value is false.
|
32
|
+
# @param custom_aggregation_units [Array[String],nil] List of aggregation unit name. Case-sensitive. This functions can only be used by corporate users who have submitted the required applications.
|
33
|
+
def initialize(
|
34
|
+
to:,
|
35
|
+
messages:,
|
36
|
+
notification_disabled: false,
|
37
|
+
custom_aggregation_units: nil,
|
38
|
+
**dynamic_attributes
|
39
|
+
)
|
40
|
+
|
41
|
+
@to = to
|
42
|
+
@messages = messages.map do |item|
|
43
|
+
if item.is_a?(Hash)
|
44
|
+
Line::Bot::V2::MessagingApi::Message.create(**item) # steep:ignore InsufficientKeywordArguments
|
45
|
+
else
|
46
|
+
item
|
47
|
+
end
|
48
|
+
end
|
49
|
+
@notification_disabled = notification_disabled
|
50
|
+
@custom_aggregation_units = custom_aggregation_units
|
51
|
+
|
52
|
+
dynamic_attributes.each do |key, value|
|
53
|
+
self.class.attr_accessor key
|
54
|
+
|
55
|
+
if value.is_a?(Hash)
|
56
|
+
struct_klass = Struct.new(*value.keys.map(&:to_sym))
|
57
|
+
struct_values = value.map { |_k, v| v.is_a?(Hash) ? Line::Bot::V2::Utils.hash_to_struct(v) : v }
|
58
|
+
instance_variable_set("@#{key}", struct_klass.new(*struct_values))
|
59
|
+
else
|
60
|
+
instance_variable_set("@#{key}", value)
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
# Create an instance of the class from a hash
|
66
|
+
# @param args [Hash] Hash containing all the required attributes
|
67
|
+
# @return [Line::Bot::V2::MessagingApi::PushMessageRequest] Instance of the class
|
68
|
+
def self.create(args) # steep:ignore
|
69
|
+
symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args)
|
70
|
+
return new(**symbolized_args) # steep:ignore
|
71
|
+
end
|
72
|
+
|
73
|
+
# @param other [Object] Object to compare
|
74
|
+
# @return [Boolean] true if the objects are equal, false otherwise
|
75
|
+
def ==(other)
|
76
|
+
return false unless self.class == other.class
|
77
|
+
|
78
|
+
instance_variables.all? do |var|
|
79
|
+
instance_variable_get(var) == other.instance_variable_get(var)
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
# @return [Integer] Hash code of the object
|
84
|
+
def hash
|
85
|
+
[self.class, *instance_variables.map { |var| instance_variable_get(var) }].hash
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|