├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── question.md ├── dependabot.yml ├── release.yml ├── scripts │ └── check-eol-newrelease.cjs └── workflows │ ├── check-eol-newrelease.yml │ ├── close-issue.yml │ ├── create-draft-release.yml │ ├── deploy-doc.yml │ ├── generate-code.yml │ ├── label-issue.yml │ ├── publish.yml │ └── pull_request.yml ├── .gitignore ├── .gitmodules ├── .rspec ├── .rubocop.yml ├── .yardopts ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── Gemfile ├── Gemfile.lock ├── LICENSE ├── README.md ├── Rakefile ├── Steepfile ├── examples └── v2 │ ├── audience │ ├── Gemfile │ ├── Gemfile.lock │ ├── README.md │ ├── app.rb │ └── audience.txt │ ├── channel_access_token │ ├── Gemfile │ ├── Gemfile.lock │ ├── README.md │ └── app.rb │ ├── echobot │ ├── Gemfile │ ├── Gemfile.lock │ ├── README.md │ └── app.rb │ ├── kitchensink │ ├── Gemfile │ ├── Gemfile.lock │ ├── README.md │ ├── app.rb │ ├── public │ │ ├── imagemap │ │ │ ├── preview.jpg │ │ │ └── video.mp4 │ │ └── statics │ │ │ └── .gitkeep │ └── richmenu │ │ ├── richmenu-a.png │ │ └── richmenu-b.png │ └── rich_menu │ ├── Gemfile │ ├── Gemfile.lock │ ├── README.md │ ├── app.rb │ └── public │ ├── richmenu-a.png │ └── richmenu-b.png ├── generate-code.py ├── generator ├── .gitignore ├── pom.xml └── src │ └── main │ ├── java │ └── line │ │ └── bot │ │ └── generator │ │ ├── LineBotSdkRubyGenerator.java │ │ ├── LineBotSdkRubyRbsGenerator.java │ │ └── pebble │ │ ├── CamelizeFilter.java │ │ ├── EndpointFunction.java │ │ ├── MyPebbleExtension.java │ │ ├── PebbleTemplateAdapter.java │ │ └── UnderscoreFilter.java │ └── resources │ ├── META-INF │ └── services │ │ ├── org.openapitools.codegen.CodegenConfig │ │ └── org.openapitools.codegen.api.TemplatingEngineAdapter │ ├── line-bot-sdk-ruby-generator │ ├── api.pebble │ ├── core.pebble │ ├── license.pebble │ └── model.pebble │ └── line-bot-sdk-ruby-rbs-generator │ ├── api.pebble │ ├── license.pebble │ └── model.pebble ├── lib ├── line-bot-api.rb └── line │ ├── bot.rb │ └── bot │ ├── v2 │ ├── channel_access_token │ │ ├── .openapi-generator-ignore │ │ ├── .openapi-generator │ │ │ ├── FILES │ │ │ └── VERSION │ │ ├── api │ │ │ └── channel_access_token_client.rb │ │ ├── core.rb │ │ └── model │ │ │ ├── channel_access_token_key_ids_response.rb │ │ │ ├── error_response.rb │ │ │ ├── issue_channel_access_token_response.rb │ │ │ ├── issue_short_lived_channel_access_token_response.rb │ │ │ ├── issue_stateless_channel_access_token_response.rb │ │ │ └── verify_channel_access_token_response.rb │ ├── http_client.rb │ ├── insight │ │ ├── .openapi-generator-ignore │ │ ├── .openapi-generator │ │ │ ├── FILES │ │ │ └── VERSION │ │ ├── api │ │ │ └── insight_client.rb │ │ ├── core.rb │ │ └── model │ │ │ ├── age_tile.rb │ │ │ ├── app_type_tile.rb │ │ │ ├── area_tile.rb │ │ │ ├── error_detail.rb │ │ │ ├── error_response.rb │ │ │ ├── gender_tile.rb │ │ │ ├── get_friends_demographics_response.rb │ │ │ ├── get_message_event_response.rb │ │ │ ├── get_message_event_response_click.rb │ │ │ ├── get_message_event_response_message.rb │ │ │ ├── get_message_event_response_overview.rb │ │ │ ├── get_number_of_followers_response.rb │ │ │ ├── get_number_of_message_deliveries_response.rb │ │ │ ├── get_statistics_per_unit_response.rb │ │ │ ├── get_statistics_per_unit_response_click.rb │ │ │ ├── get_statistics_per_unit_response_message.rb │ │ │ ├── get_statistics_per_unit_response_overview.rb │ │ │ └── subscription_period_tile.rb │ ├── liff │ │ ├── .openapi-generator-ignore │ │ ├── .openapi-generator │ │ │ ├── FILES │ │ │ └── VERSION │ │ ├── api │ │ │ └── liff_client.rb │ │ ├── core.rb │ │ └── model │ │ │ ├── add_liff_app_request.rb │ │ │ ├── add_liff_app_response.rb │ │ │ ├── get_all_liff_apps_response.rb │ │ │ ├── liff_app.rb │ │ │ ├── liff_bot_prompt.rb │ │ │ ├── liff_features.rb │ │ │ ├── liff_scope.rb │ │ │ ├── liff_view.rb │ │ │ ├── update_liff_app_request.rb │ │ │ └── update_liff_view.rb │ ├── manage_audience │ │ ├── .openapi-generator-ignore │ │ ├── .openapi-generator │ │ │ ├── FILES │ │ │ └── VERSION │ │ ├── api │ │ │ ├── manage_audience_blob_client.rb │ │ │ └── manage_audience_client.rb │ │ ├── core.rb │ │ └── model │ │ │ ├── adaccount.rb │ │ │ ├── add_audience_to_audience_group_request.rb │ │ │ ├── audience.rb │ │ │ ├── audience_group.rb │ │ │ ├── audience_group_create_route.rb │ │ │ ├── audience_group_failed_type.rb │ │ │ ├── audience_group_job.rb │ │ │ ├── audience_group_job_failed_type.rb │ │ │ ├── audience_group_job_status.rb │ │ │ ├── audience_group_job_type.rb │ │ │ ├── audience_group_permission.rb │ │ │ ├── audience_group_status.rb │ │ │ ├── audience_group_type.rb │ │ │ ├── create_audience_group_request.rb │ │ │ ├── create_audience_group_response.rb │ │ │ ├── create_click_based_audience_group_request.rb │ │ │ ├── create_click_based_audience_group_response.rb │ │ │ ├── create_imp_based_audience_group_request.rb │ │ │ ├── create_imp_based_audience_group_response.rb │ │ │ ├── detailed_owner.rb │ │ │ ├── error_detail.rb │ │ │ ├── error_response.rb │ │ │ ├── get_audience_data_response.rb │ │ │ ├── get_audience_groups_response.rb │ │ │ ├── get_shared_audience_data_response.rb │ │ │ ├── get_shared_audience_groups_response.rb │ │ │ └── update_audience_group_description_request.rb │ ├── messaging_api │ │ ├── .openapi-generator-ignore │ │ ├── .openapi-generator │ │ │ ├── FILES │ │ │ └── VERSION │ │ ├── api │ │ │ ├── messaging_api_blob_client.rb │ │ │ └── messaging_api_client.rb │ │ ├── core.rb │ │ └── model │ │ │ ├── action.rb │ │ │ ├── age_demographic.rb │ │ │ ├── age_demographic_filter.rb │ │ │ ├── all_mention_target.rb │ │ │ ├── alt_uri.rb │ │ │ ├── app_type_demographic.rb │ │ │ ├── app_type_demographic_filter.rb │ │ │ ├── area_demographic.rb │ │ │ ├── area_demographic_filter.rb │ │ │ ├── audience_recipient.rb │ │ │ ├── audio_message.rb │ │ │ ├── bot_info_response.rb │ │ │ ├── broadcast_request.rb │ │ │ ├── buttons_template.rb │ │ │ ├── camera_action.rb │ │ │ ├── camera_roll_action.rb │ │ │ ├── carousel_column.rb │ │ │ ├── carousel_template.rb │ │ │ ├── chat_reference.rb │ │ │ ├── clipboard_action.rb │ │ │ ├── clipboard_imagemap_action.rb │ │ │ ├── confirm_template.rb │ │ │ ├── create_rich_menu_alias_request.rb │ │ │ ├── datetime_picker_action.rb │ │ │ ├── demographic_filter.rb │ │ │ ├── emoji.rb │ │ │ ├── emoji_substitution_object.rb │ │ │ ├── error_detail.rb │ │ │ ├── error_response.rb │ │ │ ├── filter.rb │ │ │ ├── flex_block_style.rb │ │ │ ├── flex_box.rb │ │ │ ├── flex_box_background.rb │ │ │ ├── flex_box_border_width.rb │ │ │ ├── flex_box_corner_radius.rb │ │ │ ├── flex_box_linear_gradient.rb │ │ │ ├── flex_box_padding.rb │ │ │ ├── flex_box_spacing.rb │ │ │ ├── flex_bubble.rb │ │ │ ├── flex_bubble_styles.rb │ │ │ ├── flex_button.rb │ │ │ ├── flex_carousel.rb │ │ │ ├── flex_component.rb │ │ │ ├── flex_container.rb │ │ │ ├── flex_filler.rb │ │ │ ├── flex_icon.rb │ │ │ ├── flex_icon_size.rb │ │ │ ├── flex_image.rb │ │ │ ├── flex_image_size.rb │ │ │ ├── flex_margin.rb │ │ │ ├── flex_message.rb │ │ │ ├── flex_offset.rb │ │ │ ├── flex_separator.rb │ │ │ ├── flex_span.rb │ │ │ ├── flex_span_size.rb │ │ │ ├── flex_text.rb │ │ │ ├── flex_text_font_size.rb │ │ │ ├── flex_video.rb │ │ │ ├── gender_demographic.rb │ │ │ ├── gender_demographic_filter.rb │ │ │ ├── get_aggregation_unit_name_list_response.rb │ │ │ ├── get_aggregation_unit_usage_response.rb │ │ │ ├── get_followers_response.rb │ │ │ ├── get_joined_membership_users_response.rb │ │ │ ├── get_membership_subscription_response.rb │ │ │ ├── get_message_content_transcoding_response.rb │ │ │ ├── get_webhook_endpoint_response.rb │ │ │ ├── group_member_count_response.rb │ │ │ ├── group_summary_response.rb │ │ │ ├── group_user_profile_response.rb │ │ │ ├── image_carousel_column.rb │ │ │ ├── image_carousel_template.rb │ │ │ ├── image_message.rb │ │ │ ├── imagemap_action.rb │ │ │ ├── imagemap_area.rb │ │ │ ├── imagemap_base_size.rb │ │ │ ├── imagemap_external_link.rb │ │ │ ├── imagemap_message.rb │ │ │ ├── imagemap_video.rb │ │ │ ├── issue_link_token_response.rb │ │ │ ├── limit.rb │ │ │ ├── location_action.rb │ │ │ ├── location_message.rb │ │ │ ├── mark_messages_as_read_request.rb │ │ │ ├── members_ids_response.rb │ │ │ ├── membership.rb │ │ │ ├── membership_list_response.rb │ │ │ ├── mention_substitution_object.rb │ │ │ ├── mention_target.rb │ │ │ ├── message.rb │ │ │ ├── message_action.rb │ │ │ ├── message_imagemap_action.rb │ │ │ ├── message_quota_response.rb │ │ │ ├── multicast_request.rb │ │ │ ├── narrowcast_progress_response.rb │ │ │ ├── narrowcast_request.rb │ │ │ ├── number_of_messages_response.rb │ │ │ ├── operator_demographic_filter.rb │ │ │ ├── operator_recipient.rb │ │ │ ├── pnp_messages_request.rb │ │ │ ├── postback_action.rb │ │ │ ├── push_message_request.rb │ │ │ ├── push_message_response.rb │ │ │ ├── quick_reply.rb │ │ │ ├── quick_reply_item.rb │ │ │ ├── quota_consumption_response.rb │ │ │ ├── quota_type.rb │ │ │ ├── recipient.rb │ │ │ ├── redelivery_recipient.rb │ │ │ ├── reply_message_request.rb │ │ │ ├── reply_message_response.rb │ │ │ ├── rich_menu_alias_list_response.rb │ │ │ ├── rich_menu_alias_response.rb │ │ │ ├── rich_menu_area.rb │ │ │ ├── rich_menu_batch_link_operation.rb │ │ │ ├── rich_menu_batch_operation.rb │ │ │ ├── rich_menu_batch_progress_phase.rb │ │ │ ├── rich_menu_batch_progress_response.rb │ │ │ ├── rich_menu_batch_request.rb │ │ │ ├── rich_menu_batch_unlink_all_operation.rb │ │ │ ├── rich_menu_batch_unlink_operation.rb │ │ │ ├── rich_menu_bounds.rb │ │ │ ├── rich_menu_bulk_link_request.rb │ │ │ ├── rich_menu_bulk_unlink_request.rb │ │ │ ├── rich_menu_id_response.rb │ │ │ ├── rich_menu_list_response.rb │ │ │ ├── rich_menu_request.rb │ │ │ ├── rich_menu_response.rb │ │ │ ├── rich_menu_size.rb │ │ │ ├── rich_menu_switch_action.rb │ │ │ ├── room_member_count_response.rb │ │ │ ├── room_user_profile_response.rb │ │ │ ├── sender.rb │ │ │ ├── sent_message.rb │ │ │ ├── set_webhook_endpoint_request.rb │ │ │ ├── show_loading_animation_request.rb │ │ │ ├── sticker_message.rb │ │ │ ├── subscribed_membership_plan.rb │ │ │ ├── subscribed_membership_user.rb │ │ │ ├── subscription.rb │ │ │ ├── subscription_period_demographic.rb │ │ │ ├── subscription_period_demographic_filter.rb │ │ │ ├── substitution_object.rb │ │ │ ├── template.rb │ │ │ ├── template_image_aspect_ratio.rb │ │ │ ├── template_image_size.rb │ │ │ ├── template_message.rb │ │ │ ├── test_webhook_endpoint_request.rb │ │ │ ├── test_webhook_endpoint_response.rb │ │ │ ├── text_message.rb │ │ │ ├── text_message_v2.rb │ │ │ ├── update_rich_menu_alias_request.rb │ │ │ ├── uri_action.rb │ │ │ ├── uri_imagemap_action.rb │ │ │ ├── user_mention_target.rb │ │ │ ├── user_profile_response.rb │ │ │ ├── validate_message_request.rb │ │ │ └── video_message.rb │ ├── module │ │ ├── .openapi-generator-ignore │ │ ├── .openapi-generator │ │ │ ├── FILES │ │ │ └── VERSION │ │ ├── api │ │ │ └── line_module_client.rb │ │ ├── core.rb │ │ └── model │ │ │ ├── acquire_chat_control_request.rb │ │ │ ├── detach_module_request.rb │ │ │ ├── get_modules_response.rb │ │ │ └── module_bot.rb │ ├── module_attach │ │ ├── .openapi-generator-ignore │ │ ├── .openapi-generator │ │ │ ├── FILES │ │ │ └── VERSION │ │ ├── api │ │ │ └── line_module_attach_client.rb │ │ ├── core.rb │ │ └── model │ │ │ └── attach_module_response.rb │ ├── reserved_words.rb │ ├── shop │ │ ├── .openapi-generator-ignore │ │ ├── .openapi-generator │ │ │ ├── FILES │ │ │ └── VERSION │ │ ├── api │ │ │ └── shop_client.rb │ │ ├── core.rb │ │ └── model │ │ │ ├── error_response.rb │ │ │ └── mission_sticker_request.rb │ ├── utils.rb │ ├── webhook │ │ ├── .openapi-generator-ignore │ │ ├── .openapi-generator │ │ │ ├── FILES │ │ │ └── VERSION │ │ ├── core.rb │ │ └── model │ │ │ ├── account_link_event.rb │ │ │ ├── action_result.rb │ │ │ ├── activated_event.rb │ │ │ ├── all_mentionee.rb │ │ │ ├── attached_module_content.rb │ │ │ ├── audio_message_content.rb │ │ │ ├── beacon_content.rb │ │ │ ├── beacon_event.rb │ │ │ ├── bot_resumed_event.rb │ │ │ ├── bot_suspended_event.rb │ │ │ ├── callback_request.rb │ │ │ ├── chat_control.rb │ │ │ ├── content_provider.rb │ │ │ ├── deactivated_event.rb │ │ │ ├── delivery_context.rb │ │ │ ├── detached_module_content.rb │ │ │ ├── emoji.rb │ │ │ ├── event.rb │ │ │ ├── event_mode.rb │ │ │ ├── file_message_content.rb │ │ │ ├── follow_detail.rb │ │ │ ├── follow_event.rb │ │ │ ├── group_source.rb │ │ │ ├── image_message_content.rb │ │ │ ├── image_set.rb │ │ │ ├── join_event.rb │ │ │ ├── joined_members.rb │ │ │ ├── joined_membership_content.rb │ │ │ ├── leave_event.rb │ │ │ ├── left_members.rb │ │ │ ├── left_membership_content.rb │ │ │ ├── link_content.rb │ │ │ ├── link_things_content.rb │ │ │ ├── location_message_content.rb │ │ │ ├── member_joined_event.rb │ │ │ ├── member_left_event.rb │ │ │ ├── membership_content.rb │ │ │ ├── membership_event.rb │ │ │ ├── mention.rb │ │ │ ├── mentionee.rb │ │ │ ├── message_content.rb │ │ │ ├── message_event.rb │ │ │ ├── module_content.rb │ │ │ ├── module_event.rb │ │ │ ├── pnp_delivery.rb │ │ │ ├── pnp_delivery_completion_event.rb │ │ │ ├── postback_content.rb │ │ │ ├── postback_event.rb │ │ │ ├── renewed_membership_content.rb │ │ │ ├── room_source.rb │ │ │ ├── scenario_result.rb │ │ │ ├── scenario_result_things_content.rb │ │ │ ├── source.rb │ │ │ ├── sticker_message_content.rb │ │ │ ├── text_message_content.rb │ │ │ ├── things_content.rb │ │ │ ├── things_event.rb │ │ │ ├── unfollow_event.rb │ │ │ ├── unlink_things_content.rb │ │ │ ├── unsend_detail.rb │ │ │ ├── unsend_event.rb │ │ │ ├── user_mentionee.rb │ │ │ ├── user_source.rb │ │ │ ├── video_message_content.rb │ │ │ ├── video_play_complete.rb │ │ │ └── video_play_complete_event.rb │ └── webhook_parser.rb │ └── version.rb ├── line-bot-api.gemspec ├── migration_from_v1_to_v2_guide.md ├── rbs_collection.lock.yaml ├── rbs_collection.yaml ├── renovate.json5 ├── sig-vendor └── multipart-post │ └── sig.rbs ├── sig └── line │ └── bot │ ├── v2 │ ├── channel_access_token │ │ ├── .openapi-generator-ignore │ │ ├── .openapi-generator │ │ │ ├── FILES │ │ │ └── VERSION │ │ ├── api │ │ │ └── channel_access_token_client.rbs │ │ └── model │ │ │ ├── channel_access_token_key_ids_response.rbs │ │ │ ├── error_response.rbs │ │ │ ├── issue_channel_access_token_response.rbs │ │ │ ├── issue_short_lived_channel_access_token_response.rbs │ │ │ ├── issue_stateless_channel_access_token_response.rbs │ │ │ └── verify_channel_access_token_response.rbs │ ├── http_client.rbs │ ├── insight │ │ ├── .openapi-generator-ignore │ │ ├── .openapi-generator │ │ │ ├── FILES │ │ │ └── VERSION │ │ ├── api │ │ │ └── insight_client.rbs │ │ └── model │ │ │ ├── age_tile.rbs │ │ │ ├── app_type_tile.rbs │ │ │ ├── area_tile.rbs │ │ │ ├── error_detail.rbs │ │ │ ├── error_response.rbs │ │ │ ├── gender_tile.rbs │ │ │ ├── get_friends_demographics_response.rbs │ │ │ ├── get_message_event_response.rbs │ │ │ ├── get_message_event_response_click.rbs │ │ │ ├── get_message_event_response_message.rbs │ │ │ ├── get_message_event_response_overview.rbs │ │ │ ├── get_number_of_followers_response.rbs │ │ │ ├── get_number_of_message_deliveries_response.rbs │ │ │ ├── get_statistics_per_unit_response.rbs │ │ │ ├── get_statistics_per_unit_response_click.rbs │ │ │ ├── get_statistics_per_unit_response_message.rbs │ │ │ ├── get_statistics_per_unit_response_overview.rbs │ │ │ └── subscription_period_tile.rbs │ ├── liff │ │ ├── .openapi-generator-ignore │ │ ├── .openapi-generator │ │ │ ├── FILES │ │ │ └── VERSION │ │ ├── api │ │ │ └── liff_client.rbs │ │ └── model │ │ │ ├── add_liff_app_request.rbs │ │ │ ├── add_liff_app_response.rbs │ │ │ ├── get_all_liff_apps_response.rbs │ │ │ ├── liff_app.rbs │ │ │ ├── liff_bot_prompt.rbs │ │ │ ├── liff_features.rbs │ │ │ ├── liff_scope.rbs │ │ │ ├── liff_view.rbs │ │ │ ├── update_liff_app_request.rbs │ │ │ └── update_liff_view.rbs │ ├── manage_audience │ │ ├── .openapi-generator-ignore │ │ ├── .openapi-generator │ │ │ ├── FILES │ │ │ └── VERSION │ │ ├── api │ │ │ ├── manage_audience_blob_client.rbs │ │ │ └── manage_audience_client.rbs │ │ └── model │ │ │ ├── adaccount.rbs │ │ │ ├── add_audience_to_audience_group_request.rbs │ │ │ ├── audience.rbs │ │ │ ├── audience_group.rbs │ │ │ ├── audience_group_create_route.rbs │ │ │ ├── audience_group_failed_type.rbs │ │ │ ├── audience_group_job.rbs │ │ │ ├── audience_group_job_failed_type.rbs │ │ │ ├── audience_group_job_status.rbs │ │ │ ├── audience_group_job_type.rbs │ │ │ ├── audience_group_permission.rbs │ │ │ ├── audience_group_status.rbs │ │ │ ├── audience_group_type.rbs │ │ │ ├── create_audience_group_request.rbs │ │ │ ├── create_audience_group_response.rbs │ │ │ ├── create_click_based_audience_group_request.rbs │ │ │ ├── create_click_based_audience_group_response.rbs │ │ │ ├── create_imp_based_audience_group_request.rbs │ │ │ ├── create_imp_based_audience_group_response.rbs │ │ │ ├── detailed_owner.rbs │ │ │ ├── error_detail.rbs │ │ │ ├── error_response.rbs │ │ │ ├── get_audience_data_response.rbs │ │ │ ├── get_audience_groups_response.rbs │ │ │ ├── get_shared_audience_data_response.rbs │ │ │ ├── get_shared_audience_groups_response.rbs │ │ │ └── update_audience_group_description_request.rbs │ ├── messaging_api │ │ ├── .openapi-generator-ignore │ │ ├── .openapi-generator │ │ │ ├── FILES │ │ │ └── VERSION │ │ ├── api │ │ │ ├── messaging_api_blob_client.rbs │ │ │ └── messaging_api_client.rbs │ │ └── model │ │ │ ├── action.rbs │ │ │ ├── age_demographic.rbs │ │ │ ├── age_demographic_filter.rbs │ │ │ ├── all_mention_target.rbs │ │ │ ├── alt_uri.rbs │ │ │ ├── app_type_demographic.rbs │ │ │ ├── app_type_demographic_filter.rbs │ │ │ ├── area_demographic.rbs │ │ │ ├── area_demographic_filter.rbs │ │ │ ├── audience_recipient.rbs │ │ │ ├── audio_message.rbs │ │ │ ├── bot_info_response.rbs │ │ │ ├── broadcast_request.rbs │ │ │ ├── buttons_template.rbs │ │ │ ├── camera_action.rbs │ │ │ ├── camera_roll_action.rbs │ │ │ ├── carousel_column.rbs │ │ │ ├── carousel_template.rbs │ │ │ ├── chat_reference.rbs │ │ │ ├── clipboard_action.rbs │ │ │ ├── clipboard_imagemap_action.rbs │ │ │ ├── confirm_template.rbs │ │ │ ├── create_rich_menu_alias_request.rbs │ │ │ ├── datetime_picker_action.rbs │ │ │ ├── demographic_filter.rbs │ │ │ ├── emoji.rbs │ │ │ ├── emoji_substitution_object.rbs │ │ │ ├── error_detail.rbs │ │ │ ├── error_response.rbs │ │ │ ├── filter.rbs │ │ │ ├── flex_block_style.rbs │ │ │ ├── flex_box.rbs │ │ │ ├── flex_box_background.rbs │ │ │ ├── flex_box_border_width.rbs │ │ │ ├── flex_box_corner_radius.rbs │ │ │ ├── flex_box_linear_gradient.rbs │ │ │ ├── flex_box_padding.rbs │ │ │ ├── flex_box_spacing.rbs │ │ │ ├── flex_bubble.rbs │ │ │ ├── flex_bubble_styles.rbs │ │ │ ├── flex_button.rbs │ │ │ ├── flex_carousel.rbs │ │ │ ├── flex_component.rbs │ │ │ ├── flex_container.rbs │ │ │ ├── flex_filler.rbs │ │ │ ├── flex_icon.rbs │ │ │ ├── flex_icon_size.rbs │ │ │ ├── flex_image.rbs │ │ │ ├── flex_image_size.rbs │ │ │ ├── flex_margin.rbs │ │ │ ├── flex_message.rbs │ │ │ ├── flex_offset.rbs │ │ │ ├── flex_separator.rbs │ │ │ ├── flex_span.rbs │ │ │ ├── flex_span_size.rbs │ │ │ ├── flex_text.rbs │ │ │ ├── flex_text_font_size.rbs │ │ │ ├── flex_video.rbs │ │ │ ├── gender_demographic.rbs │ │ │ ├── gender_demographic_filter.rbs │ │ │ ├── get_aggregation_unit_name_list_response.rbs │ │ │ ├── get_aggregation_unit_usage_response.rbs │ │ │ ├── get_followers_response.rbs │ │ │ ├── get_joined_membership_users_response.rbs │ │ │ ├── get_membership_subscription_response.rbs │ │ │ ├── get_message_content_transcoding_response.rbs │ │ │ ├── get_webhook_endpoint_response.rbs │ │ │ ├── group_member_count_response.rbs │ │ │ ├── group_summary_response.rbs │ │ │ ├── group_user_profile_response.rbs │ │ │ ├── image_carousel_column.rbs │ │ │ ├── image_carousel_template.rbs │ │ │ ├── image_message.rbs │ │ │ ├── imagemap_action.rbs │ │ │ ├── imagemap_area.rbs │ │ │ ├── imagemap_base_size.rbs │ │ │ ├── imagemap_external_link.rbs │ │ │ ├── imagemap_message.rbs │ │ │ ├── imagemap_video.rbs │ │ │ ├── issue_link_token_response.rbs │ │ │ ├── limit.rbs │ │ │ ├── location_action.rbs │ │ │ ├── location_message.rbs │ │ │ ├── mark_messages_as_read_request.rbs │ │ │ ├── members_ids_response.rbs │ │ │ ├── membership.rbs │ │ │ ├── membership_list_response.rbs │ │ │ ├── mention_substitution_object.rbs │ │ │ ├── mention_target.rbs │ │ │ ├── message.rbs │ │ │ ├── message_action.rbs │ │ │ ├── message_imagemap_action.rbs │ │ │ ├── message_quota_response.rbs │ │ │ ├── multicast_request.rbs │ │ │ ├── narrowcast_progress_response.rbs │ │ │ ├── narrowcast_request.rbs │ │ │ ├── number_of_messages_response.rbs │ │ │ ├── operator_demographic_filter.rbs │ │ │ ├── operator_recipient.rbs │ │ │ ├── pnp_messages_request.rbs │ │ │ ├── postback_action.rbs │ │ │ ├── push_message_request.rbs │ │ │ ├── push_message_response.rbs │ │ │ ├── quick_reply.rbs │ │ │ ├── quick_reply_item.rbs │ │ │ ├── quota_consumption_response.rbs │ │ │ ├── quota_type.rbs │ │ │ ├── recipient.rbs │ │ │ ├── redelivery_recipient.rbs │ │ │ ├── reply_message_request.rbs │ │ │ ├── reply_message_response.rbs │ │ │ ├── rich_menu_alias_list_response.rbs │ │ │ ├── rich_menu_alias_response.rbs │ │ │ ├── rich_menu_area.rbs │ │ │ ├── rich_menu_batch_link_operation.rbs │ │ │ ├── rich_menu_batch_operation.rbs │ │ │ ├── rich_menu_batch_progress_phase.rbs │ │ │ ├── rich_menu_batch_progress_response.rbs │ │ │ ├── rich_menu_batch_request.rbs │ │ │ ├── rich_menu_batch_unlink_all_operation.rbs │ │ │ ├── rich_menu_batch_unlink_operation.rbs │ │ │ ├── rich_menu_bounds.rbs │ │ │ ├── rich_menu_bulk_link_request.rbs │ │ │ ├── rich_menu_bulk_unlink_request.rbs │ │ │ ├── rich_menu_id_response.rbs │ │ │ ├── rich_menu_list_response.rbs │ │ │ ├── rich_menu_request.rbs │ │ │ ├── rich_menu_response.rbs │ │ │ ├── rich_menu_size.rbs │ │ │ ├── rich_menu_switch_action.rbs │ │ │ ├── room_member_count_response.rbs │ │ │ ├── room_user_profile_response.rbs │ │ │ ├── sender.rbs │ │ │ ├── sent_message.rbs │ │ │ ├── set_webhook_endpoint_request.rbs │ │ │ ├── show_loading_animation_request.rbs │ │ │ ├── sticker_message.rbs │ │ │ ├── subscribed_membership_plan.rbs │ │ │ ├── subscribed_membership_user.rbs │ │ │ ├── subscription.rbs │ │ │ ├── subscription_period_demographic.rbs │ │ │ ├── subscription_period_demographic_filter.rbs │ │ │ ├── substitution_object.rbs │ │ │ ├── template.rbs │ │ │ ├── template_image_aspect_ratio.rbs │ │ │ ├── template_image_size.rbs │ │ │ ├── template_message.rbs │ │ │ ├── test_webhook_endpoint_request.rbs │ │ │ ├── test_webhook_endpoint_response.rbs │ │ │ ├── text_message.rbs │ │ │ ├── text_message_v2.rbs │ │ │ ├── update_rich_menu_alias_request.rbs │ │ │ ├── uri_action.rbs │ │ │ ├── uri_imagemap_action.rbs │ │ │ ├── user_mention_target.rbs │ │ │ ├── user_profile_response.rbs │ │ │ ├── validate_message_request.rbs │ │ │ └── video_message.rbs │ ├── module │ │ ├── .openapi-generator-ignore │ │ ├── .openapi-generator │ │ │ ├── FILES │ │ │ └── VERSION │ │ ├── api │ │ │ └── line_module_client.rbs │ │ └── model │ │ │ ├── acquire_chat_control_request.rbs │ │ │ ├── detach_module_request.rbs │ │ │ ├── get_modules_response.rbs │ │ │ └── module_bot.rbs │ ├── module_attach │ │ ├── .openapi-generator-ignore │ │ ├── .openapi-generator │ │ │ ├── FILES │ │ │ └── VERSION │ │ ├── api │ │ │ └── line_module_attach_client.rbs │ │ └── model │ │ │ └── attach_module_response.rbs │ ├── reserved_words.rbs │ ├── shop │ │ ├── .openapi-generator-ignore │ │ ├── .openapi-generator │ │ │ ├── FILES │ │ │ └── VERSION │ │ ├── api │ │ │ └── shop_client.rbs │ │ └── model │ │ │ ├── error_response.rbs │ │ │ └── mission_sticker_request.rbs │ ├── utils.rbs │ ├── webhook │ │ ├── .openapi-generator-ignore │ │ ├── .openapi-generator │ │ │ ├── FILES │ │ │ └── VERSION │ │ └── model │ │ │ ├── account_link_event.rbs │ │ │ ├── action_result.rbs │ │ │ ├── activated_event.rbs │ │ │ ├── all_mentionee.rbs │ │ │ ├── attached_module_content.rbs │ │ │ ├── audio_message_content.rbs │ │ │ ├── beacon_content.rbs │ │ │ ├── beacon_event.rbs │ │ │ ├── bot_resumed_event.rbs │ │ │ ├── bot_suspended_event.rbs │ │ │ ├── callback_request.rbs │ │ │ ├── chat_control.rbs │ │ │ ├── content_provider.rbs │ │ │ ├── deactivated_event.rbs │ │ │ ├── delivery_context.rbs │ │ │ ├── detached_module_content.rbs │ │ │ ├── emoji.rbs │ │ │ ├── event.rbs │ │ │ ├── event_mode.rbs │ │ │ ├── file_message_content.rbs │ │ │ ├── follow_detail.rbs │ │ │ ├── follow_event.rbs │ │ │ ├── group_source.rbs │ │ │ ├── image_message_content.rbs │ │ │ ├── image_set.rbs │ │ │ ├── join_event.rbs │ │ │ ├── joined_members.rbs │ │ │ ├── joined_membership_content.rbs │ │ │ ├── leave_event.rbs │ │ │ ├── left_members.rbs │ │ │ ├── left_membership_content.rbs │ │ │ ├── link_content.rbs │ │ │ ├── link_things_content.rbs │ │ │ ├── location_message_content.rbs │ │ │ ├── member_joined_event.rbs │ │ │ ├── member_left_event.rbs │ │ │ ├── membership_content.rbs │ │ │ ├── membership_event.rbs │ │ │ ├── mention.rbs │ │ │ ├── mentionee.rbs │ │ │ ├── message_content.rbs │ │ │ ├── message_event.rbs │ │ │ ├── module_content.rbs │ │ │ ├── module_event.rbs │ │ │ ├── pnp_delivery.rbs │ │ │ ├── pnp_delivery_completion_event.rbs │ │ │ ├── postback_content.rbs │ │ │ ├── postback_event.rbs │ │ │ ├── renewed_membership_content.rbs │ │ │ ├── room_source.rbs │ │ │ ├── scenario_result.rbs │ │ │ ├── scenario_result_things_content.rbs │ │ │ ├── source.rbs │ │ │ ├── sticker_message_content.rbs │ │ │ ├── text_message_content.rbs │ │ │ ├── things_content.rbs │ │ │ ├── things_event.rbs │ │ │ ├── unfollow_event.rbs │ │ │ ├── unlink_things_content.rbs │ │ │ ├── unsend_detail.rbs │ │ │ ├── unsend_event.rbs │ │ │ ├── user_mentionee.rbs │ │ │ ├── user_source.rbs │ │ │ ├── video_message_content.rbs │ │ │ ├── video_play_complete.rbs │ │ │ └── video_play_complete_event.rbs │ └── webhook_parser.rbs │ └── version.rbs └── spec ├── fixtures └── line │ └── bot │ └── v2 │ ├── sample_user_ids.txt │ └── test-image.jpeg ├── line └── bot │ ├── api │ └── spec.rb │ ├── line_bot_api_gem_spec.rb │ ├── line_bot_gem_spec.rb │ └── v2 │ ├── messaging_api │ └── model │ │ └── flex_container_spec.rb │ ├── misc_spec.rb │ ├── utils_spec.rb │ └── webhook_parser_spec.rb ├── shared └── no_missing_require_spec.rb └── spec_helper.rb /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | updates: 3 | - package-ecosystem: bundler 4 | directory: "/" 5 | schedule: 6 | interval: daily 7 | time: "20:00" 8 | open-pull-requests-limit: 10 9 | -------------------------------------------------------------------------------- /.github/release.yml: -------------------------------------------------------------------------------- 1 | # https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes 2 | changelog: 3 | categories: 4 | - title: Breaking Changes 5 | labels: 6 | - breaking-change 7 | - title: line-openapi updates 8 | labels: 9 | - line-openapi-update 10 | - title: New Features 11 | labels: 12 | - new-features 13 | - title: Bug fix 14 | labels: 15 | - bug-fix 16 | - title: Dependency updates 17 | labels: 18 | - dependency upgrade 19 | exclude: 20 | labels: 21 | - line-openapi-update 22 | - title: Other Changes 23 | labels: 24 | - "*" 25 | -------------------------------------------------------------------------------- /.github/workflows/check-eol-newrelease.yml: -------------------------------------------------------------------------------- 1 | name: "Check EoL & New Releases" 2 | 3 | on: 4 | schedule: 5 | # Every day at 22:00 UTC -> 07:00 JST 6 | - cron: '0 22 * * *' 7 | workflow_dispatch: 8 | 9 | jobs: 10 | check-eol-newrelease: 11 | runs-on: ubuntu-latest 12 | permissions: 13 | contents: read 14 | issues: write 15 | if: github.repository == 'line/line-bot-sdk-ruby' 16 | steps: 17 | - name: Check out code 18 | uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 19 | 20 | - name: Run EoL & NewRelease check 21 | uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 22 | with: 23 | script: | 24 | const checkEolAndNewReleases = require('.github/scripts/check-eol-newrelease.cjs'); 25 | await checkEolAndNewReleases({ github, context, core }, { 26 | languageName: 'Ruby', 27 | eolJsonUrl: 'https://endoflife.date/api/ruby.json', 28 | eolViewUrl: 'https://endoflife.date/ruby', 29 | eolLookbackDays: 100, 30 | newReleaseThresholdDays: 100, 31 | ltsOnly: false, 32 | retryCount: 3, 33 | retryIntervalSec: 30 34 | }); 35 | github-token: ${{ secrets.GITHUB_TOKEN }} 36 | -------------------------------------------------------------------------------- /.github/workflows/close-issue.yml: -------------------------------------------------------------------------------- 1 | # https://docs.github.com/en/actions/managing-issues-and-pull-requests/closing-inactive-issues 2 | # https://github.com/marketplace/actions/close-stale-issues 3 | name: Close inactive issues 4 | on: 5 | schedule: 6 | - cron: "30 1 * * *" 7 | 8 | jobs: 9 | close-issues: 10 | runs-on: ubuntu-latest 11 | permissions: 12 | issues: write 13 | pull-requests: write 14 | if: github.repository == 'line/line-bot-sdk-ruby' 15 | steps: 16 | - uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0 17 | with: 18 | days-before-issue-stale: 14 19 | days-before-issue-close: 0 20 | stale-issue-label: "no-activity" 21 | close-issue-message: "This issue was closed because it has been inactive for 14 days." 22 | exempt-issue-labels: "bug,enhancement,keep,untriaged" 23 | days-before-pr-stale: -1 24 | days-before-pr-close: 14 25 | stale-pr-label: "no-activity" 26 | close-pr-message: "This pull request was closed because it has been inactive for 14 days. Please reopen if you still intend to submit this pull request." 27 | repo-token: ${{ secrets.GITHUB_TOKEN }} 28 | -------------------------------------------------------------------------------- /.github/workflows/label-issue.yml: -------------------------------------------------------------------------------- 1 | name: Label issue 2 | 3 | on: 4 | issues: 5 | types: 6 | - opened 7 | - reopened 8 | - closed 9 | 10 | jobs: 11 | label-issues: 12 | runs-on: ubuntu-latest 13 | permissions: 14 | issues: write 15 | steps: 16 | - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 17 | 18 | - name: Add label on issue open 19 | if: github.event.action == 'opened' || github.event.action == 'reopened' 20 | run: | 21 | gh issue edit ${{ github.event.issue.number }} \ 22 | --add-label "untriaged" \ 23 | env: 24 | GH_TOKEN: ${{ github.token }} 25 | 26 | - name: Remove label on issue close 27 | if: github.event.action == 'closed' 28 | run: | 29 | gh issue edit ${{ github.event.issue.number }} \ 30 | --remove-label "untriaged" 31 | env: 32 | GH_TOKEN: ${{ github.token }} 33 | -------------------------------------------------------------------------------- /.github/workflows/pull_request.yml: -------------------------------------------------------------------------------- 1 | name: Pull Request CI 2 | 3 | on: 4 | push: 5 | pull_request: 6 | merge_group: 7 | workflow_dispatch: 8 | 9 | jobs: 10 | build: 11 | runs-on: ubuntu-latest 12 | permissions: 13 | contents: read 14 | strategy: 15 | matrix: 16 | # https://www.ruby-lang.org/en/downloads/branches/ 17 | ruby: 18 | - '3.2' 19 | - '3.3' 20 | - '3.4' 21 | name: Ruby v${{ matrix.ruby }} 22 | steps: 23 | - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 24 | with: 25 | submodules: true 26 | - uses: ruby/setup-ruby@13e7a03dc3ac6c3798f4570bfead2aed4d96abfb # v1.244.0 27 | with: 28 | ruby-version: ${{ matrix.ruby }} 29 | - uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1 30 | with: 31 | distribution: 'temurin' 32 | java-version: 17 33 | architecture: x64 34 | - run: bundle install 35 | - run: python3 generate-code.py 36 | - run: bundle exec rake ci 37 | 38 | pinact: 39 | runs-on: ubuntu-latest 40 | permissions: 41 | contents: read 42 | steps: 43 | - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 44 | - name: Run pinact 45 | uses: suzuki-shunsuke/pinact-action@49cbd6acd0dbab6a6be2585d1dbdaa43b4410133 # v1.0.0 46 | with: 47 | skip_push: "true" 48 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /.bundle/ 2 | /.yardoc 3 | /_yardoc/ 4 | /coverage/ 5 | /doc/ 6 | /pkg/ 7 | /spec/reports/ 8 | /tmp/ 9 | .DS_Store 10 | .idea 11 | .gem_rbs_collection 12 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "line-openapi"] 2 | path = line-openapi 3 | url = git@github.com:line/line-openapi.git 4 | -------------------------------------------------------------------------------- /.rspec: -------------------------------------------------------------------------------- 1 | --format documentation 2 | --color 3 | --pattern 'spec/**/*.rb' 4 | --exclude-pattern 'spec/fixtures/**/*.rb' 5 | -------------------------------------------------------------------------------- /.yardopts: -------------------------------------------------------------------------------- 1 | - 2 | *.md 3 | LICENSE 4 | -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- 1 | source 'https://rubygems.org' 2 | 3 | # Write actual dependencies for library to line-bot-api.gemspec 4 | gemspec 5 | 6 | group :development, :test do 7 | gem 'rack', '~> 3.1' # for yard server 8 | gem 'rackup', '~> 2.1' # for yard server 9 | gem 'rbs', '~> 3.9.3' 10 | gem 'rubocop', '~> 1.76.0', require: false 11 | gem 'steep', '~> 1.10.0' 12 | gem 'webrick', '~> 1.9.1' 13 | gem 'yard', '~> 0.9.20' # for yard server 14 | end 15 | 16 | group :test do 17 | gem 'rake', '~> 13.0' 18 | gem 'rspec', '~> 3.13.0' 19 | gem 'webmock', '~> 3.25.0' 20 | end 21 | -------------------------------------------------------------------------------- /Steepfile: -------------------------------------------------------------------------------- 1 | D = Steep::Diagnostic 2 | 3 | target :lib do 4 | signature "sig" 5 | signature "sig-vendor" 6 | 7 | check "lib" 8 | 9 | library "net-http" 10 | 11 | configure_code_diagnostics(D::Ruby.strict) 12 | # configure_code_diagnostics(D::Ruby.all_error) # TODO: Enable all error checking 13 | end 14 | 15 | target :test do 16 | unreferenced! # Skip type checking the `lib` code when types in `test` target is changed 17 | signature "sig/test" # Put RBS files for tests under `sig/test` 18 | check "test" # Type check Ruby scripts under `test` 19 | 20 | configure_code_diagnostics(D::Ruby.lenient) # Weak type checking for test code 21 | 22 | # library "pathname" # Standard libraries 23 | end 24 | -------------------------------------------------------------------------------- /examples/v2/audience/Gemfile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | source "https://rubygems.org" 4 | git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } 5 | 6 | gem 'line-bot-api', path: '../../..' # delete this `path: ...`, and specify the latest version of line-bot-api when you want to use this example out side of this repository. 7 | -------------------------------------------------------------------------------- /examples/v2/audience/Gemfile.lock: -------------------------------------------------------------------------------- 1 | PATH 2 | remote: ../../.. 3 | specs: 4 | line-bot-api (0.0.1.pre.test) 5 | base64 (~> 0.2) 6 | multipart-post (~> 2.4) 7 | 8 | GEM 9 | remote: https://rubygems.org/ 10 | specs: 11 | base64 (0.2.0) 12 | multipart-post (2.4.1) 13 | 14 | PLATFORMS 15 | arm64-darwin-21 16 | arm64-darwin-22 17 | 18 | DEPENDENCIES 19 | line-bot-api! 20 | 21 | BUNDLED WITH 22 | 2.4.10 23 | -------------------------------------------------------------------------------- /examples/v2/audience/README.md: -------------------------------------------------------------------------------- 1 | # Audience 2 | 3 | [Use Audiences](https://developers.line.biz/en/docs/messaging-api/using-audience/) 4 | 5 | ## Getting started 6 | Update User ID of `app.rb` and `audience.txt' to your own. 7 | 8 | ```sh 9 | $ export LINE_CHANNEL_SECRET=YOUR_CHANNEL_SECRET 10 | $ export LINE_CHANNEL_ACCESS_TOKEN=YOUR_CHANNEL_ACCESS_TOKEN 11 | $ bundle install 12 | $ bundle exec ruby app.rb 13 | ``` 14 | -------------------------------------------------------------------------------- /examples/v2/audience/audience.txt: -------------------------------------------------------------------------------- 1 | U1234567890abcdef1234567890abcdef 2 | -------------------------------------------------------------------------------- /examples/v2/channel_access_token/Gemfile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | source "https://rubygems.org" 4 | git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } 5 | 6 | gem 'line-bot-api', path: '../../..' # delete this `path: ...`, and specify the latest version of line-bot-api when you want to use this example out side of this repository. 7 | -------------------------------------------------------------------------------- /examples/v2/channel_access_token/Gemfile.lock: -------------------------------------------------------------------------------- 1 | PATH 2 | remote: ../../.. 3 | specs: 4 | line-bot-api (0.0.1.pre.test) 5 | base64 (~> 0.2) 6 | multipart-post (~> 2.4) 7 | 8 | GEM 9 | remote: https://rubygems.org/ 10 | specs: 11 | base64 (0.2.0) 12 | multipart-post (2.4.1) 13 | 14 | PLATFORMS 15 | arm64-darwin-21 16 | arm64-darwin-22 17 | 18 | DEPENDENCIES 19 | line-bot-api! 20 | 21 | BUNDLED WITH 22 | 2.4.10 23 | -------------------------------------------------------------------------------- /examples/v2/channel_access_token/README.md: -------------------------------------------------------------------------------- 1 | # Channel access token example 2 | 3 | [Issue channel access token](https://developers.line.biz/en/docs/messaging-api/generate-json-web-token/) 4 | 5 | ## Getting started 6 | 7 | ```sh 8 | $ export LINE_CHANNEL_ID=YOUR_CHANNEL_ID 9 | $ export LINE_CHANNEL_SECRET=YOUR_CHANNEL_SECRET 10 | $ bundle install 11 | $ bundle exec ruby app.rb 12 | ``` 13 | -------------------------------------------------------------------------------- /examples/v2/echobot/Gemfile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | source "https://rubygems.org" 4 | git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } 5 | 6 | 7 | gem 'line-bot-api', path: '../../..' # delete this `path: ...`, and specify the latest version of line-bot-api when you want to use this example out side of this repository. 8 | gem "puma" 9 | gem "rackup" 10 | gem "sinatra" 11 | gem "webrick" 12 | -------------------------------------------------------------------------------- /examples/v2/echobot/Gemfile.lock: -------------------------------------------------------------------------------- 1 | PATH 2 | remote: ../../.. 3 | specs: 4 | line-bot-api (0.0.1.pre.test) 5 | base64 (~> 0.2) 6 | multipart-post (~> 2.4) 7 | 8 | GEM 9 | remote: https://rubygems.org/ 10 | specs: 11 | base64 (0.2.0) 12 | logger (1.7.0) 13 | multipart-post (2.4.1) 14 | mustermann (3.0.3) 15 | ruby2_keywords (~> 0.0.1) 16 | nio4r (2.7.4) 17 | puma (6.6.0) 18 | nio4r (~> 2.0) 19 | rack (3.1.13) 20 | rack-protection (4.1.1) 21 | base64 (>= 0.1.0) 22 | logger (>= 1.6.0) 23 | rack (>= 3.0.0, < 4) 24 | rack-session (2.1.0) 25 | base64 (>= 0.1.0) 26 | rack (>= 3.0.0) 27 | rackup (2.2.1) 28 | rack (>= 3) 29 | ruby2_keywords (0.0.5) 30 | sinatra (4.1.1) 31 | logger (>= 1.6.0) 32 | mustermann (~> 3.0) 33 | rack (>= 3.0.0, < 4) 34 | rack-protection (= 4.1.1) 35 | rack-session (>= 2.0.0, < 3) 36 | tilt (~> 2.0) 37 | tilt (2.6.0) 38 | webrick (1.9.1) 39 | 40 | PLATFORMS 41 | arm64-darwin-21 42 | arm64-darwin-22 43 | x86_64-linux 44 | 45 | DEPENDENCIES 46 | line-bot-api! 47 | puma 48 | rackup 49 | sinatra 50 | webrick 51 | 52 | BUNDLED WITH 53 | 2.4.10 54 | -------------------------------------------------------------------------------- /examples/v2/echobot/README.md: -------------------------------------------------------------------------------- 1 | # Echo Bot 2 | An example LINE bot just to echo messages 3 | 4 | ## Getting started 5 | This projects tries to set `${APP_BASE_URL}/callback` as webhook URL automatically on starting app. 6 | 7 | ```sh 8 | $ export LINE_CHANNEL_SECRET=YOUR_CHANNEL_SECRET 9 | $ export LINE_CHANNEL_ACCESS_TOKEN=YOUR_CHANNEL_ACCESS_TOKEN 10 | $ bundle install 11 | $ export APP_BASE_URL="https://your.base.url:4567" 12 | $ bundle exec ruby app.rb 13 | ``` 14 | 15 | -------------------------------------------------------------------------------- /examples/v2/kitchensink/Gemfile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | source "https://rubygems.org" 4 | git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } 5 | 6 | gem 'line-bot-api', path: '../../..' # delete this `path: ...`, and specify the latest version of line-bot-api when you want to use this example out side of this repository. 7 | gem "puma" 8 | gem "rackup" 9 | gem "sinatra" 10 | gem "webrick" 11 | -------------------------------------------------------------------------------- /examples/v2/kitchensink/Gemfile.lock: -------------------------------------------------------------------------------- 1 | PATH 2 | remote: ../../.. 3 | specs: 4 | line-bot-api (0.0.1.pre.test) 5 | base64 (~> 0.2) 6 | multipart-post (~> 2.4) 7 | 8 | GEM 9 | remote: https://rubygems.org/ 10 | specs: 11 | base64 (0.2.0) 12 | logger (1.7.0) 13 | multipart-post (2.4.1) 14 | mustermann (3.0.3) 15 | ruby2_keywords (~> 0.0.1) 16 | nio4r (2.7.4) 17 | puma (6.6.0) 18 | nio4r (~> 2.0) 19 | rack (3.1.13) 20 | rack-protection (4.1.1) 21 | base64 (>= 0.1.0) 22 | logger (>= 1.6.0) 23 | rack (>= 3.0.0, < 4) 24 | rack-session (2.1.0) 25 | base64 (>= 0.1.0) 26 | rack (>= 3.0.0) 27 | rackup (2.2.1) 28 | rack (>= 3) 29 | ruby2_keywords (0.0.5) 30 | sinatra (4.1.1) 31 | logger (>= 1.6.0) 32 | mustermann (~> 3.0) 33 | rack (>= 3.0.0, < 4) 34 | rack-protection (= 4.1.1) 35 | rack-session (>= 2.0.0, < 3) 36 | tilt (~> 2.0) 37 | tilt (2.6.0) 38 | webrick (1.9.1) 39 | 40 | PLATFORMS 41 | arm64-darwin-21 42 | arm64-darwin-22 43 | x86_64-linux 44 | 45 | DEPENDENCIES 46 | line-bot-api! 47 | puma 48 | rackup 49 | sinatra 50 | webrick 51 | 52 | BUNDLED WITH 53 | 2.4.10 54 | -------------------------------------------------------------------------------- /examples/v2/kitchensink/README.md: -------------------------------------------------------------------------------- 1 | # Kitchen Sink Bot 2 | 3 | A kitchen-sink LINE bot example. This contains many examples of line-bot-api gem's features. 4 | 5 | ## Getting started 6 | This projects tries to set `${APP_BASE_URL}/callback` as webhook URL automatically on starting app. 7 | 8 | ```sh 9 | $ export LINE_CHANNEL_SECRET=YOUR_CHANNEL_SECRET 10 | $ export LINE_CHANNEL_ACCESS_TOKEN=YOUR_CHANNEL_ACCESS_TOKEN 11 | $ bundle install 12 | $ export APP_BASE_URL="https://your.base.url:4567" 13 | $ bundle exec ruby app.rb 14 | ``` 15 | -------------------------------------------------------------------------------- /examples/v2/kitchensink/public/imagemap/preview.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/line/line-bot-sdk-ruby/82dca15b40406333f06bc158a8e0deb92333b3ce/examples/v2/kitchensink/public/imagemap/preview.jpg -------------------------------------------------------------------------------- /examples/v2/kitchensink/public/imagemap/video.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/line/line-bot-sdk-ruby/82dca15b40406333f06bc158a8e0deb92333b3ce/examples/v2/kitchensink/public/imagemap/video.mp4 -------------------------------------------------------------------------------- /examples/v2/kitchensink/public/statics/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/line/line-bot-sdk-ruby/82dca15b40406333f06bc158a8e0deb92333b3ce/examples/v2/kitchensink/public/statics/.gitkeep -------------------------------------------------------------------------------- /examples/v2/kitchensink/richmenu/richmenu-a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/line/line-bot-sdk-ruby/82dca15b40406333f06bc158a8e0deb92333b3ce/examples/v2/kitchensink/richmenu/richmenu-a.png -------------------------------------------------------------------------------- /examples/v2/kitchensink/richmenu/richmenu-b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/line/line-bot-sdk-ruby/82dca15b40406333f06bc158a8e0deb92333b3ce/examples/v2/kitchensink/richmenu/richmenu-b.png -------------------------------------------------------------------------------- /examples/v2/rich_menu/Gemfile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | source "https://rubygems.org" 4 | git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } 5 | 6 | gem 'line-bot-api', path: '../../..' # delete this `path: ...`, and specify the latest version of line-bot-api when you want to use this example out side of this repository. 7 | -------------------------------------------------------------------------------- /examples/v2/rich_menu/Gemfile.lock: -------------------------------------------------------------------------------- 1 | PATH 2 | remote: ../../.. 3 | specs: 4 | line-bot-api (0.0.1.pre.test) 5 | multipart-post (~> 2.4.1) 6 | 7 | GEM 8 | remote: https://rubygems.org/ 9 | specs: 10 | multipart-post (2.4.1) 11 | 12 | PLATFORMS 13 | arm64-darwin-21 14 | arm64-darwin-22 15 | 16 | DEPENDENCIES 17 | line-bot-api! 18 | 19 | BUNDLED WITH 20 | 2.4.10 21 | -------------------------------------------------------------------------------- /examples/v2/rich_menu/README.md: -------------------------------------------------------------------------------- 1 | # rich menu 2 | 3 | [Using rich menus](https://developers.line.biz/en/docs/messaging-api/using-rich-menus/) 4 | 5 | ## Getting started 6 | 7 | ```sh 8 | $ export LINE_CHANNEL_SECRET=YOUR_CHANNEL_SECRET 9 | $ export LINE_CHANNEL_ACCESS_TOKEN=YOUR_CHANNEL_ACCESS_TOKEN 10 | $ bundle install 11 | $ bundle exec ruby app.rb 12 | ``` 13 | -------------------------------------------------------------------------------- /examples/v2/rich_menu/public/richmenu-a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/line/line-bot-sdk-ruby/82dca15b40406333f06bc158a8e0deb92333b3ce/examples/v2/rich_menu/public/richmenu-a.png -------------------------------------------------------------------------------- /examples/v2/rich_menu/public/richmenu-b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/line/line-bot-sdk-ruby/82dca15b40406333f06bc158a8e0deb92333b3ce/examples/v2/rich_menu/public/richmenu-b.png -------------------------------------------------------------------------------- /generator/.gitignore: -------------------------------------------------------------------------------- 1 | target/ 2 | /dependency-reduced-pom.xml 3 | -------------------------------------------------------------------------------- /generator/src/main/java/line/bot/generator/pebble/CamelizeFilter.java: -------------------------------------------------------------------------------- 1 | package line.bot.generator.pebble; 2 | 3 | import io.pebbletemplates.pebble.extension.Filter; 4 | import io.pebbletemplates.pebble.template.EvaluationContext; 5 | import io.pebbletemplates.pebble.template.PebbleTemplate; 6 | import org.openapitools.codegen.utils.StringUtils; 7 | 8 | import java.util.Collections; 9 | import java.util.List; 10 | import java.util.Map; 11 | 12 | public class CamelizeFilter implements Filter { 13 | 14 | @Override 15 | public List getArgumentNames() { 16 | return Collections.emptyList(); 17 | } 18 | 19 | @Override 20 | public Object apply(Object input, Map args, PebbleTemplate self, EvaluationContext context, int lineNumber) { 21 | if (!(input instanceof String)) { 22 | return input; 23 | } 24 | 25 | String inputStr = (String) input; 26 | return StringUtils.camelize(inputStr); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /generator/src/main/java/line/bot/generator/pebble/EndpointFunction.java: -------------------------------------------------------------------------------- 1 | package line.bot.generator.pebble; 2 | 3 | import io.pebbletemplates.pebble.extension.Function; 4 | import io.pebbletemplates.pebble.template.EvaluationContext; 5 | import io.pebbletemplates.pebble.template.PebbleTemplate; 6 | 7 | import java.util.Collections; 8 | import java.util.List; 9 | import java.util.Map; 10 | 11 | public class EndpointFunction implements Function { 12 | @Override 13 | public List getArgumentNames() { 14 | return Collections.singletonList("className"); 15 | } 16 | 17 | @Override 18 | public Object execute(Map args, PebbleTemplate self, EvaluationContext context, int lineNumber) { 19 | String className = (String) args.get("className"); 20 | if (className.equals("LineModuleAttachClient")) { 21 | return "https://manager.line.biz"; 22 | } else if (className.contains("Blob")) { 23 | return "https://api-data.line.me"; 24 | } else { 25 | return "https://api.line.me"; 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /generator/src/main/java/line/bot/generator/pebble/MyPebbleExtension.java: -------------------------------------------------------------------------------- 1 | package line.bot.generator.pebble; 2 | 3 | import io.pebbletemplates.pebble.extension.AbstractExtension; 4 | import io.pebbletemplates.pebble.extension.Filter; 5 | import io.pebbletemplates.pebble.extension.Function; 6 | 7 | import java.util.HashMap; 8 | import java.util.Map; 9 | 10 | public class MyPebbleExtension extends AbstractExtension { 11 | @Override 12 | public Map getFunctions() { 13 | final HashMap map = new HashMap<>(); 14 | map.put("endpoint", new EndpointFunction()); 15 | return map; 16 | } 17 | 18 | @Override 19 | public Map getFilters() { 20 | final HashMap filters = new HashMap<>(); 21 | filters.put("camelize", new CamelizeFilter()); 22 | filters.put("underscore", new UnderscoreFilter()); 23 | return filters; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /generator/src/main/java/line/bot/generator/pebble/UnderscoreFilter.java: -------------------------------------------------------------------------------- 1 | package line.bot.generator.pebble; 2 | 3 | import java.util.Collections; 4 | import java.util.List; 5 | import java.util.Map; 6 | 7 | import org.openapitools.codegen.utils.StringUtils; 8 | 9 | import io.pebbletemplates.pebble.extension.Filter; 10 | import io.pebbletemplates.pebble.template.EvaluationContext; 11 | import io.pebbletemplates.pebble.template.PebbleTemplate; 12 | 13 | public class UnderscoreFilter implements Filter { 14 | 15 | @Override 16 | public List getArgumentNames() { 17 | return Collections.emptyList(); 18 | } 19 | 20 | @Override 21 | public Object apply(Object input, Map args, PebbleTemplate self, EvaluationContext context, int lineNumber) { 22 | if (!(input instanceof String)) { 23 | return input; 24 | } 25 | 26 | String inputStr = (String) input; 27 | return StringUtils.underscore(inputStr); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /generator/src/main/resources/META-INF/services/org.openapitools.codegen.CodegenConfig: -------------------------------------------------------------------------------- 1 | line.bot.generator.LineBotSdkRubyGenerator 2 | line.bot.generator.LineBotSdkRubyRbsGenerator 3 | -------------------------------------------------------------------------------- /generator/src/main/resources/META-INF/services/org.openapitools.codegen.api.TemplatingEngineAdapter: -------------------------------------------------------------------------------- 1 | line.bot.generator.pebble.PebbleTemplateAdapter 2 | -------------------------------------------------------------------------------- /generator/src/main/resources/line-bot-sdk-ruby-generator/core.pebble: -------------------------------------------------------------------------------- 1 | {# @pebvariable name="models" type="java.util.ArrayList" #} 2 | {# @pebvariable name="apiInfo" type="org.openapitools.codegen.model.ApiInfoMap" #} 3 | {%- include "./license.pebble" %} 4 | # Models 5 | {% for model in models -%} 6 | require_relative './model/{{ model.model.classFilename | underscore }}' 7 | {% endfor %} 8 | {%- if packageName != 'webhook' %} 9 | # APIs 10 | {% for api in apiInfo.apis -%} 11 | require_relative './api/{{ api.get("classFilename") | underscore }}' 12 | {% endfor -%} 13 | {% endif -%} 14 | -------------------------------------------------------------------------------- /generator/src/main/resources/line-bot-sdk-ruby-generator/license.pebble: -------------------------------------------------------------------------------- 1 | # {{appName}} 2 | # {{appDescription}} 3 | # 4 | # The version of the OpenAPI document: {{version}} 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 | -------------------------------------------------------------------------------- /generator/src/main/resources/line-bot-sdk-ruby-rbs-generator/license.pebble: -------------------------------------------------------------------------------- 1 | # {{appName}} 2 | # {{appDescription}} 3 | # 4 | # The version of the OpenAPI document: {{version}} 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 | -------------------------------------------------------------------------------- /lib/line-bot-api.rb: -------------------------------------------------------------------------------- 1 | require 'line/bot' 2 | -------------------------------------------------------------------------------- /lib/line/bot.rb: -------------------------------------------------------------------------------- 1 | # Copyright 2016-2024 LINE 2 | # 3 | # LINE Corporation licenses this file to you under the Apache License, 4 | # version 2.0 (the "License"); you may not use this file except in compliance 5 | # with the License. You may obtain a copy of the License at: 6 | # 7 | # http://www.apache.org/licenses/LICENSE_2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 11 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 12 | # License for the specific language governing permissions and limitations 13 | # under the License. 14 | 15 | # V2 16 | require 'line/bot/v2/webhook_parser' 17 | 18 | ## OpenAPI 19 | require 'line/bot/v2/channel_access_token/core' 20 | require 'line/bot/v2/insight/core' 21 | require 'line/bot/v2/liff/core' 22 | require 'line/bot/v2/manage_audience/core' 23 | require 'line/bot/v2/messaging_api/core' 24 | require 'line/bot/v2/module/core' 25 | require 'line/bot/v2/module_attach/core' 26 | require 'line/bot/v2/shop/core' 27 | require 'line/bot/v2/webhook/core' 28 | -------------------------------------------------------------------------------- /lib/line/bot/v2/channel_access_token/.openapi-generator-ignore: -------------------------------------------------------------------------------- 1 | # OpenAPI Generator Ignore 2 | # Generated by openapi-generator https://github.com/openapitools/openapi-generator 3 | 4 | # Use this file to prevent files from being overwritten by the generator. 5 | # The patterns follow closely to .gitignore or .dockerignore. 6 | 7 | # As an example, the C# client generator defines ApiClient.cs. 8 | # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: 9 | #ApiClient.cs 10 | 11 | # You can match any string of characters against a directory, file or extension with a single asterisk (*): 12 | #foo/*/qux 13 | # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux 14 | 15 | # You can recursively match patterns against a directory, file or extension with a double asterisk (**): 16 | #foo/**/qux 17 | # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux 18 | 19 | # You can also negate patterns with an exclamation (!). 20 | # For example, you can ignore all files in a docs folder with the file extension .md: 21 | #docs/*.md 22 | # Then explicitly reverse the ignore rule for a single file: 23 | #!docs/README.md 24 | -------------------------------------------------------------------------------- /lib/line/bot/v2/channel_access_token/.openapi-generator/FILES: -------------------------------------------------------------------------------- 1 | .openapi-generator-ignore 2 | api/channel_access_token_client.rb 3 | core.rb 4 | model/channel_access_token_key_ids_response.rb 5 | model/error_response.rb 6 | model/issue_channel_access_token_response.rb 7 | model/issue_short_lived_channel_access_token_response.rb 8 | model/issue_stateless_channel_access_token_response.rb 9 | model/verify_channel_access_token_response.rb 10 | -------------------------------------------------------------------------------- /lib/line/bot/v2/channel_access_token/.openapi-generator/VERSION: -------------------------------------------------------------------------------- 1 | unset 2 | -------------------------------------------------------------------------------- /lib/line/bot/v2/channel_access_token/core.rb: -------------------------------------------------------------------------------- 1 | 2 | # Channel Access Token API 3 | # This document describes Channel Access Token API. 4 | # 5 | # The version of the OpenAPI document: 0.0.1 6 | # 7 | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 8 | # https://openapi-generator.tech 9 | # Do not edit the class manually. 10 | 11 | # Models 12 | require_relative './model/channel_access_token_key_ids_response' 13 | require_relative './model/error_response' 14 | require_relative './model/issue_channel_access_token_response' 15 | require_relative './model/issue_short_lived_channel_access_token_response' 16 | require_relative './model/issue_stateless_channel_access_token_response' 17 | require_relative './model/verify_channel_access_token_response' 18 | 19 | # APIs 20 | require_relative './api/channel_access_token_client' 21 | -------------------------------------------------------------------------------- /lib/line/bot/v2/insight/.openapi-generator-ignore: -------------------------------------------------------------------------------- 1 | # OpenAPI Generator Ignore 2 | # Generated by openapi-generator https://github.com/openapitools/openapi-generator 3 | 4 | # Use this file to prevent files from being overwritten by the generator. 5 | # The patterns follow closely to .gitignore or .dockerignore. 6 | 7 | # As an example, the C# client generator defines ApiClient.cs. 8 | # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: 9 | #ApiClient.cs 10 | 11 | # You can match any string of characters against a directory, file or extension with a single asterisk (*): 12 | #foo/*/qux 13 | # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux 14 | 15 | # You can recursively match patterns against a directory, file or extension with a double asterisk (**): 16 | #foo/**/qux 17 | # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux 18 | 19 | # You can also negate patterns with an exclamation (!). 20 | # For example, you can ignore all files in a docs folder with the file extension .md: 21 | #docs/*.md 22 | # Then explicitly reverse the ignore rule for a single file: 23 | #!docs/README.md 24 | -------------------------------------------------------------------------------- /lib/line/bot/v2/insight/.openapi-generator/FILES: -------------------------------------------------------------------------------- 1 | .openapi-generator-ignore 2 | api/insight_client.rb 3 | core.rb 4 | model/age_tile.rb 5 | model/app_type_tile.rb 6 | model/area_tile.rb 7 | model/error_detail.rb 8 | model/error_response.rb 9 | model/gender_tile.rb 10 | model/get_friends_demographics_response.rb 11 | model/get_message_event_response.rb 12 | model/get_message_event_response_click.rb 13 | model/get_message_event_response_message.rb 14 | model/get_message_event_response_overview.rb 15 | model/get_number_of_followers_response.rb 16 | model/get_number_of_message_deliveries_response.rb 17 | model/get_statistics_per_unit_response.rb 18 | model/get_statistics_per_unit_response_click.rb 19 | model/get_statistics_per_unit_response_message.rb 20 | model/get_statistics_per_unit_response_overview.rb 21 | model/subscription_period_tile.rb 22 | -------------------------------------------------------------------------------- /lib/line/bot/v2/insight/.openapi-generator/VERSION: -------------------------------------------------------------------------------- 1 | unset 2 | -------------------------------------------------------------------------------- /lib/line/bot/v2/insight/core.rb: -------------------------------------------------------------------------------- 1 | 2 | # LINE Messaging API(Insight) 3 | # This document describes LINE Messaging API(Insight). 4 | # 5 | # The version of the OpenAPI document: 0.0.1 6 | # 7 | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 8 | # https://openapi-generator.tech 9 | # Do not edit the class manually. 10 | 11 | # Models 12 | require_relative './model/age_tile' 13 | require_relative './model/app_type_tile' 14 | require_relative './model/area_tile' 15 | require_relative './model/error_detail' 16 | require_relative './model/error_response' 17 | require_relative './model/gender_tile' 18 | require_relative './model/get_friends_demographics_response' 19 | require_relative './model/get_message_event_response' 20 | require_relative './model/get_message_event_response_click' 21 | require_relative './model/get_message_event_response_message' 22 | require_relative './model/get_message_event_response_overview' 23 | require_relative './model/get_number_of_followers_response' 24 | require_relative './model/get_number_of_message_deliveries_response' 25 | require_relative './model/get_statistics_per_unit_response' 26 | require_relative './model/get_statistics_per_unit_response_click' 27 | require_relative './model/get_statistics_per_unit_response_message' 28 | require_relative './model/get_statistics_per_unit_response_overview' 29 | require_relative './model/subscription_period_tile' 30 | 31 | # APIs 32 | require_relative './api/insight_client' 33 | -------------------------------------------------------------------------------- /lib/line/bot/v2/liff/.openapi-generator-ignore: -------------------------------------------------------------------------------- 1 | # OpenAPI Generator Ignore 2 | # Generated by openapi-generator https://github.com/openapitools/openapi-generator 3 | 4 | # Use this file to prevent files from being overwritten by the generator. 5 | # The patterns follow closely to .gitignore or .dockerignore. 6 | 7 | # As an example, the C# client generator defines ApiClient.cs. 8 | # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: 9 | #ApiClient.cs 10 | 11 | # You can match any string of characters against a directory, file or extension with a single asterisk (*): 12 | #foo/*/qux 13 | # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux 14 | 15 | # You can recursively match patterns against a directory, file or extension with a double asterisk (**): 16 | #foo/**/qux 17 | # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux 18 | 19 | # You can also negate patterns with an exclamation (!). 20 | # For example, you can ignore all files in a docs folder with the file extension .md: 21 | #docs/*.md 22 | # Then explicitly reverse the ignore rule for a single file: 23 | #!docs/README.md 24 | -------------------------------------------------------------------------------- /lib/line/bot/v2/liff/.openapi-generator/FILES: -------------------------------------------------------------------------------- 1 | .openapi-generator-ignore 2 | api/liff_client.rb 3 | core.rb 4 | model/add_liff_app_request.rb 5 | model/add_liff_app_response.rb 6 | model/get_all_liff_apps_response.rb 7 | model/liff_app.rb 8 | model/liff_bot_prompt.rb 9 | model/liff_features.rb 10 | model/liff_scope.rb 11 | model/liff_view.rb 12 | model/update_liff_app_request.rb 13 | model/update_liff_view.rb 14 | -------------------------------------------------------------------------------- /lib/line/bot/v2/liff/.openapi-generator/VERSION: -------------------------------------------------------------------------------- 1 | unset 2 | -------------------------------------------------------------------------------- /lib/line/bot/v2/liff/core.rb: -------------------------------------------------------------------------------- 1 | 2 | # LIFF server API 3 | # LIFF Server API. 4 | # 5 | # The version of the OpenAPI document: 1.0.0 6 | # 7 | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 8 | # https://openapi-generator.tech 9 | # Do not edit the class manually. 10 | 11 | # Models 12 | require_relative './model/add_liff_app_request' 13 | require_relative './model/add_liff_app_response' 14 | require_relative './model/get_all_liff_apps_response' 15 | require_relative './model/liff_app' 16 | require_relative './model/liff_bot_prompt' 17 | require_relative './model/liff_features' 18 | require_relative './model/liff_scope' 19 | require_relative './model/liff_view' 20 | require_relative './model/update_liff_app_request' 21 | require_relative './model/update_liff_view' 22 | 23 | # APIs 24 | require_relative './api/liff_client' 25 | -------------------------------------------------------------------------------- /lib/line/bot/v2/liff/model/liff_bot_prompt.rb: -------------------------------------------------------------------------------- 1 | # LIFF server API 2 | # LIFF Server API. 3 | # 4 | # The version of the OpenAPI document: 1.0.0 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 Liff 14 | # Specify the setting for bot link feature with one of the following values: `normal`: Display the option to add the LINE Official Account as a friend in the channel consent screen. `aggressive`: Display a screen with the option to add the LINE Official Account as a friend after the channel consent screen. `none`: Don't display the option to add the LINE Official Account as a friend. The default value is none. 15 | class LiffBotPrompt 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /lib/line/bot/v2/liff/model/liff_scope.rb: -------------------------------------------------------------------------------- 1 | # LIFF server API 2 | # LIFF Server API. 3 | # 4 | # The version of the OpenAPI document: 1.0.0 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 Liff 14 | # Array of scopes required for some LIFF SDK methods to function. The default value is `[\"profile\", \"chat_message.write\"]`. 15 | class LiffScope 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /lib/line/bot/v2/manage_audience/.openapi-generator-ignore: -------------------------------------------------------------------------------- 1 | # OpenAPI Generator Ignore 2 | # Generated by openapi-generator https://github.com/openapitools/openapi-generator 3 | 4 | # Use this file to prevent files from being overwritten by the generator. 5 | # The patterns follow closely to .gitignore or .dockerignore. 6 | 7 | # As an example, the C# client generator defines ApiClient.cs. 8 | # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: 9 | #ApiClient.cs 10 | 11 | # You can match any string of characters against a directory, file or extension with a single asterisk (*): 12 | #foo/*/qux 13 | # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux 14 | 15 | # You can recursively match patterns against a directory, file or extension with a double asterisk (**): 16 | #foo/**/qux 17 | # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux 18 | 19 | # You can also negate patterns with an exclamation (!). 20 | # For example, you can ignore all files in a docs folder with the file extension .md: 21 | #docs/*.md 22 | # Then explicitly reverse the ignore rule for a single file: 23 | #!docs/README.md 24 | -------------------------------------------------------------------------------- /lib/line/bot/v2/manage_audience/.openapi-generator/FILES: -------------------------------------------------------------------------------- 1 | .openapi-generator-ignore 2 | api/manage_audience_blob_client.rb 3 | api/manage_audience_client.rb 4 | core.rb 5 | model/adaccount.rb 6 | model/add_audience_to_audience_group_request.rb 7 | model/audience.rb 8 | model/audience_group.rb 9 | model/audience_group_create_route.rb 10 | model/audience_group_failed_type.rb 11 | model/audience_group_job.rb 12 | model/audience_group_job_failed_type.rb 13 | model/audience_group_job_status.rb 14 | model/audience_group_job_type.rb 15 | model/audience_group_permission.rb 16 | model/audience_group_status.rb 17 | model/audience_group_type.rb 18 | model/create_audience_group_request.rb 19 | model/create_audience_group_response.rb 20 | model/create_click_based_audience_group_request.rb 21 | model/create_click_based_audience_group_response.rb 22 | model/create_imp_based_audience_group_request.rb 23 | model/create_imp_based_audience_group_response.rb 24 | model/detailed_owner.rb 25 | model/error_detail.rb 26 | model/error_response.rb 27 | model/get_audience_data_response.rb 28 | model/get_audience_groups_response.rb 29 | model/get_shared_audience_data_response.rb 30 | model/get_shared_audience_groups_response.rb 31 | model/update_audience_group_description_request.rb 32 | -------------------------------------------------------------------------------- /lib/line/bot/v2/manage_audience/.openapi-generator/VERSION: -------------------------------------------------------------------------------- 1 | unset 2 | -------------------------------------------------------------------------------- /lib/line/bot/v2/manage_audience/model/audience_group_create_route.rb: -------------------------------------------------------------------------------- 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 ManageAudience 14 | # How the audience was created. One of: - `OA_MANAGER`: Audience created with [LINE Official Account Manager](https://manager.line.biz/). - `MESSAGING_API`: Audience created with Messaging API. - `POINT_AD`: Audience created with [LINE Points Ads](https://www.linebiz.com/jp/service/line-point-ad/) (Japanese only). - `AD_MANAGER`: Audience created with [LINE Ads](https://admanager.line.biz/). 15 | class AudienceGroupCreateRoute 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /lib/line/bot/v2/manage_audience/model/audience_group_failed_type.rb: -------------------------------------------------------------------------------- 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 ManageAudience 14 | # Failed type 15 | class AudienceGroupFailedType 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /lib/line/bot/v2/manage_audience/model/audience_group_job_failed_type.rb: -------------------------------------------------------------------------------- 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 ManageAudience 14 | # Failed type 15 | class AudienceGroupJobFailedType 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /lib/line/bot/v2/manage_audience/model/audience_group_job_status.rb: -------------------------------------------------------------------------------- 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 ManageAudience 14 | # Job status 15 | class AudienceGroupJobStatus 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /lib/line/bot/v2/manage_audience/model/audience_group_job_type.rb: -------------------------------------------------------------------------------- 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 ManageAudience 14 | # Job Type 15 | class AudienceGroupJobType 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /lib/line/bot/v2/manage_audience/model/audience_group_permission.rb: -------------------------------------------------------------------------------- 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 ManageAudience 14 | # Permission 15 | class AudienceGroupPermission 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /lib/line/bot/v2/manage_audience/model/audience_group_status.rb: -------------------------------------------------------------------------------- 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 ManageAudience 14 | # Status 15 | class AudienceGroupStatus 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /lib/line/bot/v2/manage_audience/model/audience_group_type.rb: -------------------------------------------------------------------------------- 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 ManageAudience 14 | # Audience group type 15 | class AudienceGroupType 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /lib/line/bot/v2/messaging_api/.openapi-generator-ignore: -------------------------------------------------------------------------------- 1 | # OpenAPI Generator Ignore 2 | # Generated by openapi-generator https://github.com/openapitools/openapi-generator 3 | 4 | # Use this file to prevent files from being overwritten by the generator. 5 | # The patterns follow closely to .gitignore or .dockerignore. 6 | 7 | # As an example, the C# client generator defines ApiClient.cs. 8 | # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: 9 | #ApiClient.cs 10 | 11 | # You can match any string of characters against a directory, file or extension with a single asterisk (*): 12 | #foo/*/qux 13 | # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux 14 | 15 | # You can recursively match patterns against a directory, file or extension with a double asterisk (**): 16 | #foo/**/qux 17 | # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux 18 | 19 | # You can also negate patterns with an exclamation (!). 20 | # For example, you can ignore all files in a docs folder with the file extension .md: 21 | #docs/*.md 22 | # Then explicitly reverse the ignore rule for a single file: 23 | #!docs/README.md 24 | -------------------------------------------------------------------------------- /lib/line/bot/v2/messaging_api/.openapi-generator/VERSION: -------------------------------------------------------------------------------- 1 | unset 2 | -------------------------------------------------------------------------------- /lib/line/bot/v2/messaging_api/model/age_demographic.rb: -------------------------------------------------------------------------------- 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 AgeDemographic 15 | 16 | end 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /lib/line/bot/v2/messaging_api/model/app_type_demographic.rb: -------------------------------------------------------------------------------- 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 AppTypeDemographic 15 | 16 | end 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /lib/line/bot/v2/messaging_api/model/area_demographic.rb: -------------------------------------------------------------------------------- 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 AreaDemographic 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /lib/line/bot/v2/messaging_api/model/flex_box_border_width.rb: -------------------------------------------------------------------------------- 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 | # Width of box border. This is only for `borderWidth` in FlexBox. A value of none means that borders are not rendered; the other values are listed in order of increasing width. 15 | class FlexBoxBorderWidth 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /lib/line/bot/v2/messaging_api/model/flex_box_corner_radius.rb: -------------------------------------------------------------------------------- 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 | # Radius at the time of rounding the corners of the box. This is only for `cornerRadius` in FlexBox. A value of none means that corners are not rounded; the other values are listed in order of increasing radius. 15 | class FlexBoxCornerRadius 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /lib/line/bot/v2/messaging_api/model/flex_box_padding.rb: -------------------------------------------------------------------------------- 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 | # Padding can be specified in pixels, percentage (to the parent box width) or with a keyword. FlexBoxPadding just provides only keywords. 15 | class FlexBoxPadding 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /lib/line/bot/v2/messaging_api/model/flex_box_spacing.rb: -------------------------------------------------------------------------------- 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 | # You can specify the minimum space between two components with the `spacing` property of the parent box component, in pixels or with a keyword. FlexBoxSpacing just provides only keywords. 15 | class FlexBoxSpacing 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /lib/line/bot/v2/messaging_api/model/flex_icon_size.rb: -------------------------------------------------------------------------------- 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 | # You can set the width of an Flex icon component with the `size` property, in pixels, as a percentage, or with a keyword. FlexIconSize just provides only keywords. 15 | class FlexIconSize 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /lib/line/bot/v2/messaging_api/model/flex_image_size.rb: -------------------------------------------------------------------------------- 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 | # You can set the width of an Flex image component with the `size` property, in pixels, as a percentage, or with a keyword. FlexImageSize just provides only keywords. 15 | class FlexImageSize 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /lib/line/bot/v2/messaging_api/model/flex_margin.rb: -------------------------------------------------------------------------------- 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 | # You can specify the minimum space before a child component with the `margin` property of the child component, in pixels or with a keyword. FlexMargin just provides only keywords. 15 | class FlexMargin 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /lib/line/bot/v2/messaging_api/model/flex_offset.rb: -------------------------------------------------------------------------------- 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 | # You can specify the offset of a component with the `offset*` property, in pixels or with a keyword. You can also specify the percentage to the box width for `offsetStart` and `offsetEnd` and to the box height for `offsetTop` and `offsetBottom`. FlexOffset just provides only keywords. 15 | class FlexOffset 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /lib/line/bot/v2/messaging_api/model/flex_span_size.rb: -------------------------------------------------------------------------------- 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 | # Font size in the `size` property of the Flex span component. You can specify the size in pixels or with a keyword. FlexSpanSize just provides only keywords. 15 | class FlexSpanSize 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /lib/line/bot/v2/messaging_api/model/flex_text_font_size.rb: -------------------------------------------------------------------------------- 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 | # Font size in the `size` property of the Flex text component. You can specify the size in pixels or with a keyword. FlexTextFontSize just provides only keywords. 15 | class FlexTextFontSize 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /lib/line/bot/v2/messaging_api/model/gender_demographic.rb: -------------------------------------------------------------------------------- 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 GenderDemographic 15 | 16 | end 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /lib/line/bot/v2/messaging_api/model/quota_type.rb: -------------------------------------------------------------------------------- 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 | # One of the following values to indicate whether a target limit is set or not. 15 | # @see https://developers.line.biz/en/reference/messaging-api/#get-quota 16 | class QuotaType 17 | 18 | end 19 | end 20 | end 21 | end 22 | end 23 | -------------------------------------------------------------------------------- /lib/line/bot/v2/messaging_api/model/rich_menu_batch_progress_phase.rb: -------------------------------------------------------------------------------- 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 | # The current status. One of: `ongoing`: Rich menu batch control is in progress. `succeeded`: Rich menu batch control is complete. `failed`: Rich menu batch control failed. This means that the rich menu for one or more users couldn't be controlled. There may also be users whose operations have been successfully completed. 15 | class RichMenuBatchProgressPhase 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /lib/line/bot/v2/messaging_api/model/subscription_period_demographic.rb: -------------------------------------------------------------------------------- 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 SubscriptionPeriodDemographic 15 | 16 | end 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /lib/line/bot/v2/messaging_api/model/template_image_aspect_ratio.rb: -------------------------------------------------------------------------------- 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 | # Aspect ratio of the image. This is only for the `imageAspectRatio` in ButtonsTemplate. Specify one of the following values: `rectangle`: 1.51:1 `square`: 1:1 15 | class TemplateImageAspectRatio 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /lib/line/bot/v2/messaging_api/model/template_image_size.rb: -------------------------------------------------------------------------------- 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 | # Size of the image. This is only for the `imageSize` in ButtonsTemplate. Specify one of the following values: `cover`: The image fills the entire image area. Parts of the image that do not fit in the area are not displayed. `contain`: The entire image is displayed in the image area. A background is displayed in the unused areas to the left and right of vertical images and in the areas above and below horizontal images. 15 | class TemplateImageSize 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /lib/line/bot/v2/module/.openapi-generator-ignore: -------------------------------------------------------------------------------- 1 | # OpenAPI Generator Ignore 2 | # Generated by openapi-generator https://github.com/openapitools/openapi-generator 3 | 4 | # Use this file to prevent files from being overwritten by the generator. 5 | # The patterns follow closely to .gitignore or .dockerignore. 6 | 7 | # As an example, the C# client generator defines ApiClient.cs. 8 | # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: 9 | #ApiClient.cs 10 | 11 | # You can match any string of characters against a directory, file or extension with a single asterisk (*): 12 | #foo/*/qux 13 | # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux 14 | 15 | # You can recursively match patterns against a directory, file or extension with a double asterisk (**): 16 | #foo/**/qux 17 | # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux 18 | 19 | # You can also negate patterns with an exclamation (!). 20 | # For example, you can ignore all files in a docs folder with the file extension .md: 21 | #docs/*.md 22 | # Then explicitly reverse the ignore rule for a single file: 23 | #!docs/README.md 24 | -------------------------------------------------------------------------------- /lib/line/bot/v2/module/.openapi-generator/FILES: -------------------------------------------------------------------------------- 1 | .openapi-generator-ignore 2 | api/line_module_client.rb 3 | core.rb 4 | model/acquire_chat_control_request.rb 5 | model/detach_module_request.rb 6 | model/get_modules_response.rb 7 | model/module_bot.rb 8 | -------------------------------------------------------------------------------- /lib/line/bot/v2/module/.openapi-generator/VERSION: -------------------------------------------------------------------------------- 1 | unset 2 | -------------------------------------------------------------------------------- /lib/line/bot/v2/module/core.rb: -------------------------------------------------------------------------------- 1 | 2 | # LINE Messaging API 3 | # This document describes LINE Messaging API. 4 | # 5 | # The version of the OpenAPI document: 0.0.1 6 | # 7 | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 8 | # https://openapi-generator.tech 9 | # Do not edit the class manually. 10 | 11 | # Models 12 | require_relative './model/acquire_chat_control_request' 13 | require_relative './model/detach_module_request' 14 | require_relative './model/get_modules_response' 15 | require_relative './model/module_bot' 16 | 17 | # APIs 18 | require_relative './api/line_module_client' 19 | -------------------------------------------------------------------------------- /lib/line/bot/v2/module_attach/.openapi-generator-ignore: -------------------------------------------------------------------------------- 1 | # OpenAPI Generator Ignore 2 | # Generated by openapi-generator https://github.com/openapitools/openapi-generator 3 | 4 | # Use this file to prevent files from being overwritten by the generator. 5 | # The patterns follow closely to .gitignore or .dockerignore. 6 | 7 | # As an example, the C# client generator defines ApiClient.cs. 8 | # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: 9 | #ApiClient.cs 10 | 11 | # You can match any string of characters against a directory, file or extension with a single asterisk (*): 12 | #foo/*/qux 13 | # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux 14 | 15 | # You can recursively match patterns against a directory, file or extension with a double asterisk (**): 16 | #foo/**/qux 17 | # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux 18 | 19 | # You can also negate patterns with an exclamation (!). 20 | # For example, you can ignore all files in a docs folder with the file extension .md: 21 | #docs/*.md 22 | # Then explicitly reverse the ignore rule for a single file: 23 | #!docs/README.md 24 | -------------------------------------------------------------------------------- /lib/line/bot/v2/module_attach/.openapi-generator/FILES: -------------------------------------------------------------------------------- 1 | .openapi-generator-ignore 2 | api/line_module_attach_client.rb 3 | core.rb 4 | model/attach_module_response.rb 5 | -------------------------------------------------------------------------------- /lib/line/bot/v2/module_attach/.openapi-generator/VERSION: -------------------------------------------------------------------------------- 1 | unset 2 | -------------------------------------------------------------------------------- /lib/line/bot/v2/module_attach/core.rb: -------------------------------------------------------------------------------- 1 | 2 | # LINE Messaging API 3 | # This document describes LINE Messaging API. 4 | # 5 | # The version of the OpenAPI document: 0.0.1 6 | # 7 | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 8 | # https://openapi-generator.tech 9 | # Do not edit the class manually. 10 | 11 | # Models 12 | require_relative './model/attach_module_response' 13 | 14 | # APIs 15 | require_relative './api/line_module_attach_client' 16 | -------------------------------------------------------------------------------- /lib/line/bot/v2/reserved_words.rb: -------------------------------------------------------------------------------- 1 | module Line 2 | module Bot 3 | module V2 4 | # CodeGen add _ prefix to reserved words 5 | # see: https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractRubyCodegen.java 6 | RESERVED_WORDS = %i[ 7 | __FILE__ 8 | and 9 | def 10 | end 11 | in 12 | or 13 | self 14 | unless 15 | __LINE__ 16 | begin 17 | defined? 18 | ensure 19 | module 20 | redo 21 | super 22 | until 23 | BEGIN 24 | break 25 | do 26 | false 27 | next 28 | rescue 29 | then 30 | when 31 | END 32 | case 33 | else 34 | for 35 | nil 36 | retry 37 | true 38 | while 39 | alias 40 | class 41 | elsif 42 | if 43 | not 44 | return 45 | undef 46 | yield 47 | ] 48 | end 49 | end 50 | end 51 | -------------------------------------------------------------------------------- /lib/line/bot/v2/shop/.openapi-generator-ignore: -------------------------------------------------------------------------------- 1 | # OpenAPI Generator Ignore 2 | # Generated by openapi-generator https://github.com/openapitools/openapi-generator 3 | 4 | # Use this file to prevent files from being overwritten by the generator. 5 | # The patterns follow closely to .gitignore or .dockerignore. 6 | 7 | # As an example, the C# client generator defines ApiClient.cs. 8 | # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: 9 | #ApiClient.cs 10 | 11 | # You can match any string of characters against a directory, file or extension with a single asterisk (*): 12 | #foo/*/qux 13 | # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux 14 | 15 | # You can recursively match patterns against a directory, file or extension with a double asterisk (**): 16 | #foo/**/qux 17 | # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux 18 | 19 | # You can also negate patterns with an exclamation (!). 20 | # For example, you can ignore all files in a docs folder with the file extension .md: 21 | #docs/*.md 22 | # Then explicitly reverse the ignore rule for a single file: 23 | #!docs/README.md 24 | -------------------------------------------------------------------------------- /lib/line/bot/v2/shop/.openapi-generator/FILES: -------------------------------------------------------------------------------- 1 | .openapi-generator-ignore 2 | api/shop_client.rb 3 | core.rb 4 | model/error_response.rb 5 | model/mission_sticker_request.rb 6 | -------------------------------------------------------------------------------- /lib/line/bot/v2/shop/.openapi-generator/VERSION: -------------------------------------------------------------------------------- 1 | unset 2 | -------------------------------------------------------------------------------- /lib/line/bot/v2/shop/core.rb: -------------------------------------------------------------------------------- 1 | 2 | # Mission Stickers API 3 | # This document describes LINE Mission Stickers API. 4 | # 5 | # The version of the OpenAPI document: 0.0.1 6 | # 7 | # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 8 | # https://openapi-generator.tech 9 | # Do not edit the class manually. 10 | 11 | # Models 12 | require_relative './model/error_response' 13 | require_relative './model/mission_sticker_request' 14 | 15 | # APIs 16 | require_relative './api/shop_client' 17 | -------------------------------------------------------------------------------- /lib/line/bot/v2/webhook/.openapi-generator-ignore: -------------------------------------------------------------------------------- 1 | # OpenAPI Generator Ignore 2 | # Generated by openapi-generator https://github.com/openapitools/openapi-generator 3 | 4 | # Use this file to prevent files from being overwritten by the generator. 5 | # The patterns follow closely to .gitignore or .dockerignore. 6 | 7 | # As an example, the C# client generator defines ApiClient.cs. 8 | # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: 9 | #ApiClient.cs 10 | 11 | # You can match any string of characters against a directory, file or extension with a single asterisk (*): 12 | #foo/*/qux 13 | # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux 14 | 15 | # You can recursively match patterns against a directory, file or extension with a double asterisk (**): 16 | #foo/**/qux 17 | # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux 18 | 19 | # You can also negate patterns with an exclamation (!). 20 | # For example, you can ignore all files in a docs folder with the file extension .md: 21 | #docs/*.md 22 | # Then explicitly reverse the ignore rule for a single file: 23 | #!docs/README.md 24 | -------------------------------------------------------------------------------- /lib/line/bot/v2/webhook/.openapi-generator/VERSION: -------------------------------------------------------------------------------- 1 | unset 2 | -------------------------------------------------------------------------------- /lib/line/bot/v2/webhook/model/event_mode.rb: -------------------------------------------------------------------------------- 1 | # Webhook Type Definition 2 | # Webhook event definition of the LINE Messaging API 3 | # 4 | # The version of the OpenAPI document: 1.0.0 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 Webhook 14 | # Channel state. 15 | class EventMode 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /lib/line/bot/version.rb: -------------------------------------------------------------------------------- 1 | module Line 2 | module Bot 3 | # This version is updated before releasing a new version in the release process. 4 | # You don't have to update this version manually. 5 | VERSION = "0.0.1-test" 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /line-bot-api.gemspec: -------------------------------------------------------------------------------- 1 | version = File.read("#{__dir__}/lib/line/bot/version.rb").match(/VERSION *= *['"]([^'"]+)/)[1] or raise 2 | raise "Invalid version format <#{version}>" unless version.match?(/\A\d+\.\d+\.\d+(?:[+-][\w.-]+)?\z/) 3 | 4 | Gem::Specification.new do |spec| 5 | spec.name = "line-bot-api" 6 | spec.version = version 7 | spec.authors = ["LINE Corporation"] 8 | 9 | spec.summary = "SDK of the LINE Messaging API for Ruby" 10 | spec.description = "SDK of the LINE Messaging API for Ruby" 11 | spec.homepage = "https://github.com/line/line-bot-sdk-ruby" 12 | spec.license = "Apache-2.0" 13 | 14 | spec.files = %w(CONTRIBUTING.md LICENSE README.md line-bot-api.gemspec) + Dir['lib/**/*.rb'] + Dir['sig/**/*.rbs'] 15 | spec.require_paths = ["lib"] 16 | 17 | spec.metadata = { 18 | "bug_tracker_uri" => "#{spec.homepage}/issues", 19 | "changelog_uri" => "#{spec.homepage}/releases", 20 | "documentation_uri" => "https://line.github.io/line-bot-sdk-ruby/", 21 | "homepage_uri" => spec.homepage, 22 | "source_code_uri" => spec.homepage, 23 | } 24 | 25 | spec.required_ruby_version = '>= 3.2.0' 26 | 27 | spec.add_runtime_dependency "multipart-post", "~> 2.4" 28 | 29 | # gems that aren't default gems as of Ruby 3.4 30 | spec.add_runtime_dependency "base64", "~> 0.2" 31 | end 32 | -------------------------------------------------------------------------------- /rbs_collection.yaml: -------------------------------------------------------------------------------- 1 | # Download sources 2 | sources: 3 | - type: git 4 | name: ruby/gem_rbs_collection 5 | remote: https://github.com/ruby/gem_rbs_collection.git 6 | revision: main 7 | repo_dir: gems 8 | 9 | # You can specify local directories as sources also. 10 | # - type: local 11 | # path: path/to/your/local/repository 12 | 13 | # A directory to install the downloaded RBSs 14 | path: .gem_rbs_collection 15 | 16 | gems: 17 | # stdlibs 18 | - name: json 19 | - name: net-http 20 | - name: openssl 21 | - name: uri 22 | # unused library in line-bot-api and its test 23 | - name: rack 24 | ignore: true 25 | - name: rackup 26 | ignore: true 27 | - name: rbs 28 | ignore: true 29 | - name: rubocop 30 | ignore: true 31 | - name: steep 32 | ignore: true 33 | - name: webrick 34 | ignore: true 35 | - name: yard 36 | ignore: true 37 | - name: rake 38 | ignore: true 39 | -------------------------------------------------------------------------------- /renovate.json5: -------------------------------------------------------------------------------- 1 | { 2 | $schema: 'https://docs.renovatebot.com/renovate-schema.json', 3 | extends: [ 4 | 'config:recommended', 5 | 'helpers:pinGitHubActionDigestsToSemver', 6 | ], 7 | timezone: 'Asia/Tokyo', 8 | automerge: true, 9 | platformAutomerge: true, 10 | 'git-submodules': { 11 | enabled: true, 12 | }, 13 | labels: [ 14 | 'dependency upgrade', 15 | ], 16 | packageRules: [ 17 | { 18 | labels: [ 19 | 'dependency upgrade', 20 | 'line-openapi-update', 21 | ], 22 | // In many cases, we would like to update line-openapi by dispatching the GitHub workflow during working 23 | // hours, as there are code changes. 24 | // If that is forgotten, there's a possibility that line-openapi updates or code changes won't happen at 25 | // all, so we allow it to run at night just in case. 26 | schedule: [ 27 | 'after 11pm', 28 | 'before 4am', 29 | ], 30 | matchPackageNames: [ 31 | '/line-openapi/', 32 | ], 33 | }, 34 | ], 35 | } 36 | -------------------------------------------------------------------------------- /sig-vendor/multipart-post/sig.rbs: -------------------------------------------------------------------------------- 1 | # https://github.com/socketry/multipart-post/blob/cce3634876b74e08a6c51d02db00070a82dc8cc4/lib/net/http/post/multipart.rb#L14-L28 2 | module Net 3 | class HTTP 4 | class Post 5 | class Multipart < HTTPRequest 6 | end 7 | end 8 | class Put 9 | class Multipart < HTTPRequest 10 | end 11 | end 12 | end 13 | end 14 | 15 | # https://github.com/socketry/multipart-post/blob/cce3634876b74e08a6c51d02db00070a82dc8cc4/lib/multipart/post/upload_io.rb#L26 16 | class UploadIO 17 | def initialize: (IO, String, String) -> void 18 | end 19 | -------------------------------------------------------------------------------- /sig/line/bot/v2/channel_access_token/.openapi-generator-ignore: -------------------------------------------------------------------------------- 1 | # OpenAPI Generator Ignore 2 | # Generated by openapi-generator https://github.com/openapitools/openapi-generator 3 | 4 | # Use this file to prevent files from being overwritten by the generator. 5 | # The patterns follow closely to .gitignore or .dockerignore. 6 | 7 | # As an example, the C# client generator defines ApiClient.cs. 8 | # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: 9 | #ApiClient.cs 10 | 11 | # You can match any string of characters against a directory, file or extension with a single asterisk (*): 12 | #foo/*/qux 13 | # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux 14 | 15 | # You can recursively match patterns against a directory, file or extension with a double asterisk (**): 16 | #foo/**/qux 17 | # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux 18 | 19 | # You can also negate patterns with an exclamation (!). 20 | # For example, you can ignore all files in a docs folder with the file extension .md: 21 | #docs/*.md 22 | # Then explicitly reverse the ignore rule for a single file: 23 | #!docs/README.md 24 | -------------------------------------------------------------------------------- /sig/line/bot/v2/channel_access_token/.openapi-generator/FILES: -------------------------------------------------------------------------------- 1 | .openapi-generator-ignore 2 | api/channel_access_token_client.rbs 3 | model/channel_access_token_key_ids_response.rbs 4 | model/error_response.rbs 5 | model/issue_channel_access_token_response.rbs 6 | model/issue_short_lived_channel_access_token_response.rbs 7 | model/issue_stateless_channel_access_token_response.rbs 8 | model/verify_channel_access_token_response.rbs 9 | -------------------------------------------------------------------------------- /sig/line/bot/v2/channel_access_token/.openapi-generator/VERSION: -------------------------------------------------------------------------------- 1 | unset 2 | -------------------------------------------------------------------------------- /sig/line/bot/v2/insight/.openapi-generator-ignore: -------------------------------------------------------------------------------- 1 | # OpenAPI Generator Ignore 2 | # Generated by openapi-generator https://github.com/openapitools/openapi-generator 3 | 4 | # Use this file to prevent files from being overwritten by the generator. 5 | # The patterns follow closely to .gitignore or .dockerignore. 6 | 7 | # As an example, the C# client generator defines ApiClient.cs. 8 | # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: 9 | #ApiClient.cs 10 | 11 | # You can match any string of characters against a directory, file or extension with a single asterisk (*): 12 | #foo/*/qux 13 | # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux 14 | 15 | # You can recursively match patterns against a directory, file or extension with a double asterisk (**): 16 | #foo/**/qux 17 | # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux 18 | 19 | # You can also negate patterns with an exclamation (!). 20 | # For example, you can ignore all files in a docs folder with the file extension .md: 21 | #docs/*.md 22 | # Then explicitly reverse the ignore rule for a single file: 23 | #!docs/README.md 24 | -------------------------------------------------------------------------------- /sig/line/bot/v2/insight/.openapi-generator/FILES: -------------------------------------------------------------------------------- 1 | .openapi-generator-ignore 2 | api/insight_client.rbs 3 | model/age_tile.rbs 4 | model/app_type_tile.rbs 5 | model/area_tile.rbs 6 | model/error_detail.rbs 7 | model/error_response.rbs 8 | model/gender_tile.rbs 9 | model/get_friends_demographics_response.rbs 10 | model/get_message_event_response.rbs 11 | model/get_message_event_response_click.rbs 12 | model/get_message_event_response_message.rbs 13 | model/get_message_event_response_overview.rbs 14 | model/get_number_of_followers_response.rbs 15 | model/get_number_of_message_deliveries_response.rbs 16 | model/get_statistics_per_unit_response.rbs 17 | model/get_statistics_per_unit_response_click.rbs 18 | model/get_statistics_per_unit_response_message.rbs 19 | model/get_statistics_per_unit_response_overview.rbs 20 | model/subscription_period_tile.rbs 21 | -------------------------------------------------------------------------------- /sig/line/bot/v2/insight/.openapi-generator/VERSION: -------------------------------------------------------------------------------- 1 | unset 2 | -------------------------------------------------------------------------------- /sig/line/bot/v2/insight/model/area_tile.rbs: -------------------------------------------------------------------------------- 1 | # LINE Messaging API(Insight) 2 | # This document describes LINE Messaging API(Insight). 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 Insight 14 | class AreaTile 15 | attr_accessor area: String? 16 | attr_accessor percentage: Float? 17 | 18 | 19 | # @param area [String,nil] users' country and region 20 | # @param percentage [Float,nil] Percentage 21 | def initialize: ( 22 | ?area: String?, 23 | ?percentage: Float?, 24 | **untyped dynamic_attributes 25 | ) -> void 26 | 27 | # Create an instance of the class from a hash 28 | # @param args [Hash] Hash containing all the required attributes 29 | # @return [Line::Bot::V2::Insight::AreaTile] Instance of the class 30 | def self.create: (Hash[Symbol, untyped]) -> AreaTile 31 | 32 | # @param other [Object] Object to compare 33 | # @return [Boolean] true if the objects are equal, false otherwise 34 | def ==: (untyped other) -> bool 35 | 36 | # @return [Integer] Hash code of the object 37 | def hash: () -> Integer 38 | end 39 | end 40 | end 41 | end 42 | end 43 | -------------------------------------------------------------------------------- /sig/line/bot/v2/liff/.openapi-generator-ignore: -------------------------------------------------------------------------------- 1 | # OpenAPI Generator Ignore 2 | # Generated by openapi-generator https://github.com/openapitools/openapi-generator 3 | 4 | # Use this file to prevent files from being overwritten by the generator. 5 | # The patterns follow closely to .gitignore or .dockerignore. 6 | 7 | # As an example, the C# client generator defines ApiClient.cs. 8 | # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: 9 | #ApiClient.cs 10 | 11 | # You can match any string of characters against a directory, file or extension with a single asterisk (*): 12 | #foo/*/qux 13 | # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux 14 | 15 | # You can recursively match patterns against a directory, file or extension with a double asterisk (**): 16 | #foo/**/qux 17 | # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux 18 | 19 | # You can also negate patterns with an exclamation (!). 20 | # For example, you can ignore all files in a docs folder with the file extension .md: 21 | #docs/*.md 22 | # Then explicitly reverse the ignore rule for a single file: 23 | #!docs/README.md 24 | -------------------------------------------------------------------------------- /sig/line/bot/v2/liff/.openapi-generator/FILES: -------------------------------------------------------------------------------- 1 | .openapi-generator-ignore 2 | api/liff_client.rbs 3 | model/add_liff_app_request.rbs 4 | model/add_liff_app_response.rbs 5 | model/get_all_liff_apps_response.rbs 6 | model/liff_app.rbs 7 | model/liff_bot_prompt.rbs 8 | model/liff_features.rbs 9 | model/liff_scope.rbs 10 | model/liff_view.rbs 11 | model/update_liff_app_request.rbs 12 | model/update_liff_view.rbs 13 | -------------------------------------------------------------------------------- /sig/line/bot/v2/liff/.openapi-generator/VERSION: -------------------------------------------------------------------------------- 1 | unset 2 | -------------------------------------------------------------------------------- /sig/line/bot/v2/liff/model/add_liff_app_response.rbs: -------------------------------------------------------------------------------- 1 | # LIFF server API 2 | # LIFF Server API. 3 | # 4 | # The version of the OpenAPI document: 1.0.0 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 Liff 14 | class AddLiffAppResponse 15 | attr_accessor liff_id: String 16 | 17 | 18 | # @param liff_id [String] 19 | def initialize: ( 20 | liff_id: String, 21 | **untyped dynamic_attributes 22 | ) -> void 23 | 24 | # Create an instance of the class from a hash 25 | # @param args [Hash] Hash containing all the required attributes 26 | # @return [Line::Bot::V2::Liff::AddLiffAppResponse] Instance of the class 27 | def self.create: (Hash[Symbol, untyped]) -> AddLiffAppResponse 28 | 29 | # @param other [Object] Object to compare 30 | # @return [Boolean] true if the objects are equal, false otherwise 31 | def ==: (untyped other) -> bool 32 | 33 | # @return [Integer] Hash code of the object 34 | def hash: () -> Integer 35 | end 36 | end 37 | end 38 | end 39 | end 40 | -------------------------------------------------------------------------------- /sig/line/bot/v2/liff/model/get_all_liff_apps_response.rbs: -------------------------------------------------------------------------------- 1 | # LIFF server API 2 | # LIFF Server API. 3 | # 4 | # The version of the OpenAPI document: 1.0.0 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 Liff 14 | class GetAllLiffAppsResponse 15 | attr_accessor apps: Array[LiffApp]? 16 | 17 | 18 | # @param apps [Array[LiffApp, Hash[Symbol, untyped]],nil] 19 | def initialize: ( 20 | ?apps: Array[LiffApp| Hash[Symbol, untyped]]?, 21 | **untyped dynamic_attributes 22 | ) -> void 23 | 24 | # Create an instance of the class from a hash 25 | # @param args [Hash] Hash containing all the required attributes 26 | # @return [Line::Bot::V2::Liff::GetAllLiffAppsResponse] Instance of the class 27 | def self.create: (Hash[Symbol, untyped]) -> GetAllLiffAppsResponse 28 | 29 | # @param other [Object] Object to compare 30 | # @return [Boolean] true if the objects are equal, false otherwise 31 | def ==: (untyped other) -> bool 32 | 33 | # @return [Integer] Hash code of the object 34 | def hash: () -> Integer 35 | end 36 | end 37 | end 38 | end 39 | end 40 | -------------------------------------------------------------------------------- /sig/line/bot/v2/liff/model/liff_bot_prompt.rbs: -------------------------------------------------------------------------------- 1 | # LIFF server API 2 | # LIFF Server API. 3 | # 4 | # The version of the OpenAPI document: 1.0.0 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 Liff 14 | # Specify the setting for bot link feature with one of the following values: `normal`: Display the option to add the LINE Official Account as a friend in the channel consent screen. `aggressive`: Display a screen with the option to add the LINE Official Account as a friend after the channel consent screen. `none`: Don't display the option to add the LINE Official Account as a friend. The default value is none. 15 | class LiffBotPrompt 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /sig/line/bot/v2/liff/model/liff_scope.rbs: -------------------------------------------------------------------------------- 1 | # LIFF server API 2 | # LIFF Server API. 3 | # 4 | # The version of the OpenAPI document: 1.0.0 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 Liff 14 | # Array of scopes required for some LIFF SDK methods to function. The default value is `[\"profile\", \"chat_message.write\"]`. 15 | class LiffScope 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /sig/line/bot/v2/manage_audience/.openapi-generator-ignore: -------------------------------------------------------------------------------- 1 | # OpenAPI Generator Ignore 2 | # Generated by openapi-generator https://github.com/openapitools/openapi-generator 3 | 4 | # Use this file to prevent files from being overwritten by the generator. 5 | # The patterns follow closely to .gitignore or .dockerignore. 6 | 7 | # As an example, the C# client generator defines ApiClient.cs. 8 | # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: 9 | #ApiClient.cs 10 | 11 | # You can match any string of characters against a directory, file or extension with a single asterisk (*): 12 | #foo/*/qux 13 | # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux 14 | 15 | # You can recursively match patterns against a directory, file or extension with a double asterisk (**): 16 | #foo/**/qux 17 | # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux 18 | 19 | # You can also negate patterns with an exclamation (!). 20 | # For example, you can ignore all files in a docs folder with the file extension .md: 21 | #docs/*.md 22 | # Then explicitly reverse the ignore rule for a single file: 23 | #!docs/README.md 24 | -------------------------------------------------------------------------------- /sig/line/bot/v2/manage_audience/.openapi-generator/FILES: -------------------------------------------------------------------------------- 1 | .openapi-generator-ignore 2 | api/manage_audience_blob_client.rbs 3 | api/manage_audience_client.rbs 4 | model/adaccount.rbs 5 | model/add_audience_to_audience_group_request.rbs 6 | model/audience.rbs 7 | model/audience_group.rbs 8 | model/audience_group_create_route.rbs 9 | model/audience_group_failed_type.rbs 10 | model/audience_group_job.rbs 11 | model/audience_group_job_failed_type.rbs 12 | model/audience_group_job_status.rbs 13 | model/audience_group_job_type.rbs 14 | model/audience_group_permission.rbs 15 | model/audience_group_status.rbs 16 | model/audience_group_type.rbs 17 | model/create_audience_group_request.rbs 18 | model/create_audience_group_response.rbs 19 | model/create_click_based_audience_group_request.rbs 20 | model/create_click_based_audience_group_response.rbs 21 | model/create_imp_based_audience_group_request.rbs 22 | model/create_imp_based_audience_group_response.rbs 23 | model/detailed_owner.rbs 24 | model/error_detail.rbs 25 | model/error_response.rbs 26 | model/get_audience_data_response.rbs 27 | model/get_audience_groups_response.rbs 28 | model/get_shared_audience_data_response.rbs 29 | model/get_shared_audience_groups_response.rbs 30 | model/update_audience_group_description_request.rbs 31 | -------------------------------------------------------------------------------- /sig/line/bot/v2/manage_audience/.openapi-generator/VERSION: -------------------------------------------------------------------------------- 1 | unset 2 | -------------------------------------------------------------------------------- /sig/line/bot/v2/manage_audience/model/adaccount.rbs: -------------------------------------------------------------------------------- 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 ManageAudience 14 | # Adaccount 15 | class Adaccount 16 | attr_accessor name: String? 17 | 18 | 19 | # @param name [String,nil] Ad account name. 20 | def initialize: ( 21 | ?name: String?, 22 | **untyped dynamic_attributes 23 | ) -> void 24 | 25 | # Create an instance of the class from a hash 26 | # @param args [Hash] Hash containing all the required attributes 27 | # @return [Line::Bot::V2::ManageAudience::Adaccount] Instance of the class 28 | def self.create: (Hash[Symbol, untyped]) -> Adaccount 29 | 30 | # @param other [Object] Object to compare 31 | # @return [Boolean] true if the objects are equal, false otherwise 32 | def ==: (untyped other) -> bool 33 | 34 | # @return [Integer] Hash code of the object 35 | def hash: () -> Integer 36 | end 37 | end 38 | end 39 | end 40 | end 41 | -------------------------------------------------------------------------------- /sig/line/bot/v2/manage_audience/model/audience.rbs: -------------------------------------------------------------------------------- 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 ManageAudience 14 | # Audience 15 | class Audience 16 | attr_accessor id: String? 17 | 18 | 19 | # @param id [String,nil] A user ID or IFA. You can specify an empty array. 20 | def initialize: ( 21 | ?id: String?, 22 | **untyped dynamic_attributes 23 | ) -> void 24 | 25 | # Create an instance of the class from a hash 26 | # @param args [Hash] Hash containing all the required attributes 27 | # @return [Line::Bot::V2::ManageAudience::Audience] Instance of the class 28 | def self.create: (Hash[Symbol, untyped]) -> Audience 29 | 30 | # @param other [Object] Object to compare 31 | # @return [Boolean] true if the objects are equal, false otherwise 32 | def ==: (untyped other) -> bool 33 | 34 | # @return [Integer] Hash code of the object 35 | def hash: () -> Integer 36 | end 37 | end 38 | end 39 | end 40 | end 41 | -------------------------------------------------------------------------------- /sig/line/bot/v2/manage_audience/model/audience_group_create_route.rbs: -------------------------------------------------------------------------------- 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 ManageAudience 14 | # How the audience was created. One of: - `OA_MANAGER`: Audience created with [LINE Official Account Manager](https://manager.line.biz/). - `MESSAGING_API`: Audience created with Messaging API. - `POINT_AD`: Audience created with [LINE Points Ads](https://www.linebiz.com/jp/service/line-point-ad/) (Japanese only). - `AD_MANAGER`: Audience created with [LINE Ads](https://admanager.line.biz/). 15 | class AudienceGroupCreateRoute 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /sig/line/bot/v2/manage_audience/model/audience_group_failed_type.rbs: -------------------------------------------------------------------------------- 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 ManageAudience 14 | # Failed type 15 | class AudienceGroupFailedType 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /sig/line/bot/v2/manage_audience/model/audience_group_job_failed_type.rbs: -------------------------------------------------------------------------------- 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 ManageAudience 14 | # Failed type 15 | class AudienceGroupJobFailedType 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /sig/line/bot/v2/manage_audience/model/audience_group_job_status.rbs: -------------------------------------------------------------------------------- 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 ManageAudience 14 | # Job status 15 | class AudienceGroupJobStatus 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /sig/line/bot/v2/manage_audience/model/audience_group_job_type.rbs: -------------------------------------------------------------------------------- 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 ManageAudience 14 | # Job Type 15 | class AudienceGroupJobType 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /sig/line/bot/v2/manage_audience/model/audience_group_permission.rbs: -------------------------------------------------------------------------------- 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 ManageAudience 14 | # Permission 15 | class AudienceGroupPermission 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /sig/line/bot/v2/manage_audience/model/audience_group_status.rbs: -------------------------------------------------------------------------------- 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 ManageAudience 14 | # Status 15 | class AudienceGroupStatus 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /sig/line/bot/v2/manage_audience/model/audience_group_type.rbs: -------------------------------------------------------------------------------- 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 ManageAudience 14 | # Audience group type 15 | class AudienceGroupType 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/.openapi-generator-ignore: -------------------------------------------------------------------------------- 1 | # OpenAPI Generator Ignore 2 | # Generated by openapi-generator https://github.com/openapitools/openapi-generator 3 | 4 | # Use this file to prevent files from being overwritten by the generator. 5 | # The patterns follow closely to .gitignore or .dockerignore. 6 | 7 | # As an example, the C# client generator defines ApiClient.cs. 8 | # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: 9 | #ApiClient.cs 10 | 11 | # You can match any string of characters against a directory, file or extension with a single asterisk (*): 12 | #foo/*/qux 13 | # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux 14 | 15 | # You can recursively match patterns against a directory, file or extension with a double asterisk (**): 16 | #foo/**/qux 17 | # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux 18 | 19 | # You can also negate patterns with an exclamation (!). 20 | # For example, you can ignore all files in a docs folder with the file extension .md: 21 | #docs/*.md 22 | # Then explicitly reverse the ignore rule for a single file: 23 | #!docs/README.md 24 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/.openapi-generator/VERSION: -------------------------------------------------------------------------------- 1 | unset 2 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/age_demographic.rbs: -------------------------------------------------------------------------------- 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 AgeDemographic 15 | 16 | end 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/all_mention_target.rbs: -------------------------------------------------------------------------------- 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/#text-message-v2-mentionee-all 15 | class AllMentionTarget < MentionTarget 16 | attr_reader type: String 17 | 18 | 19 | def initialize: ( 20 | **untyped dynamic_attributes 21 | ) -> void 22 | 23 | # Create an instance of the class from a hash 24 | # @param args [Hash] Hash containing all the required attributes 25 | # @return [Line::Bot::V2::MessagingApi::AllMentionTarget] Instance of the class 26 | def self.create: (Hash[Symbol, untyped]) -> AllMentionTarget 27 | 28 | # @param other [Object] Object to compare 29 | # @return [Boolean] true if the objects are equal, false otherwise 30 | def ==: (untyped other) -> bool 31 | 32 | # @return [Integer] Hash code of the object 33 | def hash: () -> Integer 34 | end 35 | end 36 | end 37 | end 38 | end 39 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/alt_uri.rbs: -------------------------------------------------------------------------------- 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 AltUri 15 | attr_accessor desktop: String? 16 | 17 | 18 | # @param desktop [String,nil] 19 | def initialize: ( 20 | ?desktop: String?, 21 | **untyped dynamic_attributes 22 | ) -> void 23 | 24 | # Create an instance of the class from a hash 25 | # @param args [Hash] Hash containing all the required attributes 26 | # @return [Line::Bot::V2::MessagingApi::AltUri] Instance of the class 27 | def self.create: (Hash[Symbol, untyped]) -> AltUri 28 | 29 | # @param other [Object] Object to compare 30 | # @return [Boolean] true if the objects are equal, false otherwise 31 | def ==: (untyped other) -> bool 32 | 33 | # @return [Integer] Hash code of the object 34 | def hash: () -> Integer 35 | end 36 | end 37 | end 38 | end 39 | end 40 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/app_type_demographic.rbs: -------------------------------------------------------------------------------- 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 AppTypeDemographic 15 | 16 | end 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/app_type_demographic_filter.rbs: -------------------------------------------------------------------------------- 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 AppTypeDemographicFilter < DemographicFilter 15 | attr_reader type: String? 16 | attr_accessor one_of: Array['ios'|'android']? 17 | 18 | 19 | # @param one_of [Array['ios','android'],nil] 20 | def initialize: ( 21 | ?one_of: Array['ios'|'android']?, 22 | **untyped dynamic_attributes 23 | ) -> void 24 | 25 | # Create an instance of the class from a hash 26 | # @param args [Hash] Hash containing all the required attributes 27 | # @return [Line::Bot::V2::MessagingApi::AppTypeDemographicFilter] Instance of the class 28 | def self.create: (Hash[Symbol, untyped]) -> AppTypeDemographicFilter 29 | 30 | # @param other [Object] Object to compare 31 | # @return [Boolean] true if the objects are equal, false otherwise 32 | def ==: (untyped other) -> bool 33 | 34 | # @return [Integer] Hash code of the object 35 | def hash: () -> Integer 36 | end 37 | end 38 | end 39 | end 40 | end 41 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/area_demographic.rbs: -------------------------------------------------------------------------------- 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 AreaDemographic 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/audience_recipient.rbs: -------------------------------------------------------------------------------- 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 AudienceRecipient < Recipient 15 | attr_reader type: String? 16 | attr_accessor audience_group_id: Integer? 17 | 18 | 19 | # @param audience_group_id [Integer,nil] 20 | def initialize: ( 21 | ?audience_group_id: Integer?, 22 | **untyped dynamic_attributes 23 | ) -> void 24 | 25 | # Create an instance of the class from a hash 26 | # @param args [Hash] Hash containing all the required attributes 27 | # @return [Line::Bot::V2::MessagingApi::AudienceRecipient] Instance of the class 28 | def self.create: (Hash[Symbol, untyped]) -> AudienceRecipient 29 | 30 | # @param other [Object] Object to compare 31 | # @return [Boolean] true if the objects are equal, false otherwise 32 | def ==: (untyped other) -> bool 33 | 34 | # @return [Integer] Hash code of the object 35 | def hash: () -> Integer 36 | end 37 | end 38 | end 39 | end 40 | end 41 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/camera_action.rbs: -------------------------------------------------------------------------------- 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 CameraAction < Action 15 | attr_reader type: String? 16 | attr_accessor label: String? 17 | 18 | 19 | # @param label [String,nil] Label for the action. 20 | def initialize: ( 21 | ?label: String?, 22 | **untyped dynamic_attributes 23 | ) -> void 24 | 25 | # Create an instance of the class from a hash 26 | # @param args [Hash] Hash containing all the required attributes 27 | # @return [Line::Bot::V2::MessagingApi::CameraAction] Instance of the class 28 | def self.create: (Hash[Symbol, untyped]) -> CameraAction 29 | 30 | # @param other [Object] Object to compare 31 | # @return [Boolean] true if the objects are equal, false otherwise 32 | def ==: (untyped other) -> bool 33 | 34 | # @return [Integer] Hash code of the object 35 | def hash: () -> Integer 36 | end 37 | end 38 | end 39 | end 40 | end 41 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/camera_roll_action.rbs: -------------------------------------------------------------------------------- 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 CameraRollAction < Action 15 | attr_reader type: String? 16 | attr_accessor label: String? 17 | 18 | 19 | # @param label [String,nil] Label for the action. 20 | def initialize: ( 21 | ?label: String?, 22 | **untyped dynamic_attributes 23 | ) -> void 24 | 25 | # Create an instance of the class from a hash 26 | # @param args [Hash] Hash containing all the required attributes 27 | # @return [Line::Bot::V2::MessagingApi::CameraRollAction] Instance of the class 28 | def self.create: (Hash[Symbol, untyped]) -> CameraRollAction 29 | 30 | # @param other [Object] Object to compare 31 | # @return [Boolean] true if the objects are equal, false otherwise 32 | def ==: (untyped other) -> bool 33 | 34 | # @return [Integer] Hash code of the object 35 | def hash: () -> Integer 36 | end 37 | end 38 | end 39 | end 40 | end 41 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/chat_reference.rbs: -------------------------------------------------------------------------------- 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 | # Chat reference 15 | # @see https://developers.line.biz/en/reference/partner-docs/#mark-messages-from-users-as-read 16 | class ChatReference 17 | attr_accessor user_id: String 18 | 19 | 20 | # @param user_id [String] The target user ID 21 | def initialize: ( 22 | user_id: String, 23 | **untyped dynamic_attributes 24 | ) -> void 25 | 26 | # Create an instance of the class from a hash 27 | # @param args [Hash] Hash containing all the required attributes 28 | # @return [Line::Bot::V2::MessagingApi::ChatReference] Instance of the class 29 | def self.create: (Hash[Symbol, untyped]) -> ChatReference 30 | 31 | # @param other [Object] Object to compare 32 | # @return [Boolean] true if the objects are equal, false otherwise 33 | def ==: (untyped other) -> bool 34 | 35 | # @return [Integer] Hash code of the object 36 | def hash: () -> Integer 37 | end 38 | end 39 | end 40 | end 41 | end 42 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/demographic_filter.rbs: -------------------------------------------------------------------------------- 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 | # Demographic filter 15 | class DemographicFilter 16 | attr_accessor type: String? 17 | 18 | 19 | # @param type [String,nil] Type of demographic filter 20 | def initialize: ( 21 | ?type: String?, 22 | **untyped dynamic_attributes 23 | ) -> void 24 | 25 | # Create an instance of the class from a hash 26 | # @param args [Hash] Hash containing all the required attributes 27 | # @return [Line::Bot::V2::MessagingApi::DemographicFilter] Instance of the class 28 | def self.create: (Hash[Symbol, untyped]) -> DemographicFilter 29 | 30 | # @param other [Object] Object to compare 31 | # @return [Boolean] true if the objects are equal, false otherwise 32 | def ==: (untyped other) -> bool 33 | 34 | # @return [Integer] Hash code of the object 35 | def hash: () -> Integer 36 | 37 | private 38 | 39 | def self.detect_class: (type: String) -> Class? 40 | end 41 | end 42 | end 43 | end 44 | end 45 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/filter.rbs: -------------------------------------------------------------------------------- 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 | # Filter for narrowcast 15 | class Filter 16 | attr_accessor demographic: DemographicFilter? 17 | 18 | 19 | # @param demographic [DemographicFilter, Hash[Symbol, untyped], nil] 20 | def initialize: ( 21 | ?demographic: DemographicFilter?| Hash[Symbol, untyped]?, 22 | **untyped dynamic_attributes 23 | ) -> void 24 | 25 | # Create an instance of the class from a hash 26 | # @param args [Hash] Hash containing all the required attributes 27 | # @return [Line::Bot::V2::MessagingApi::Filter] Instance of the class 28 | def self.create: (Hash[Symbol, untyped]) -> Filter 29 | 30 | # @param other [Object] Object to compare 31 | # @return [Boolean] true if the objects are equal, false otherwise 32 | def ==: (untyped other) -> bool 33 | 34 | # @return [Integer] Hash code of the object 35 | def hash: () -> Integer 36 | end 37 | end 38 | end 39 | end 40 | end 41 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/flex_box_background.rbs: -------------------------------------------------------------------------------- 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 FlexBoxBackground 15 | attr_accessor type: String 16 | 17 | 18 | # @param type [String] 19 | def initialize: ( 20 | type: String, 21 | **untyped dynamic_attributes 22 | ) -> void 23 | 24 | # Create an instance of the class from a hash 25 | # @param args [Hash] Hash containing all the required attributes 26 | # @return [Line::Bot::V2::MessagingApi::FlexBoxBackground] Instance of the class 27 | def self.create: (Hash[Symbol, untyped]) -> FlexBoxBackground 28 | 29 | # @param other [Object] Object to compare 30 | # @return [Boolean] true if the objects are equal, false otherwise 31 | def ==: (untyped other) -> bool 32 | 33 | # @return [Integer] Hash code of the object 34 | def hash: () -> Integer 35 | 36 | private 37 | 38 | def self.detect_class: (type: String) -> Class? 39 | end 40 | end 41 | end 42 | end 43 | end 44 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/flex_box_border_width.rbs: -------------------------------------------------------------------------------- 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 | # Width of box border. This is only for `borderWidth` in FlexBox. A value of none means that borders are not rendered; the other values are listed in order of increasing width. 15 | class FlexBoxBorderWidth 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/flex_box_corner_radius.rbs: -------------------------------------------------------------------------------- 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 | # Radius at the time of rounding the corners of the box. This is only for `cornerRadius` in FlexBox. A value of none means that corners are not rounded; the other values are listed in order of increasing radius. 15 | class FlexBoxCornerRadius 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/flex_box_padding.rbs: -------------------------------------------------------------------------------- 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 | # Padding can be specified in pixels, percentage (to the parent box width) or with a keyword. FlexBoxPadding just provides only keywords. 15 | class FlexBoxPadding 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/flex_box_spacing.rbs: -------------------------------------------------------------------------------- 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 | # You can specify the minimum space between two components with the `spacing` property of the parent box component, in pixels or with a keyword. FlexBoxSpacing just provides only keywords. 15 | class FlexBoxSpacing 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/flex_carousel.rbs: -------------------------------------------------------------------------------- 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 FlexCarousel < FlexContainer 15 | attr_reader type: String 16 | attr_accessor contents: Array[FlexBubble] 17 | 18 | 19 | # @param contents [Array[FlexBubble, Hash[Symbol, untyped]]] 20 | def initialize: ( 21 | contents: Array[FlexBubble| Hash[Symbol, untyped]], 22 | **untyped dynamic_attributes 23 | ) -> void 24 | 25 | # Create an instance of the class from a hash 26 | # @param args [Hash] Hash containing all the required attributes 27 | # @return [Line::Bot::V2::MessagingApi::FlexCarousel] Instance of the class 28 | def self.create: (Hash[Symbol, untyped]) -> FlexCarousel 29 | 30 | # @param other [Object] Object to compare 31 | # @return [Boolean] true if the objects are equal, false otherwise 32 | def ==: (untyped other) -> bool 33 | 34 | # @return [Integer] Hash code of the object 35 | def hash: () -> Integer 36 | end 37 | end 38 | end 39 | end 40 | end 41 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/flex_component.rbs: -------------------------------------------------------------------------------- 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 FlexComponent 15 | attr_accessor type: String 16 | 17 | 18 | # @param type [String] 19 | def initialize: ( 20 | type: String, 21 | **untyped dynamic_attributes 22 | ) -> void 23 | 24 | # Create an instance of the class from a hash 25 | # @param args [Hash] Hash containing all the required attributes 26 | # @return [Line::Bot::V2::MessagingApi::FlexComponent] Instance of the class 27 | def self.create: (Hash[Symbol, untyped]) -> FlexComponent 28 | 29 | # @param other [Object] Object to compare 30 | # @return [Boolean] true if the objects are equal, false otherwise 31 | def ==: (untyped other) -> bool 32 | 33 | # @return [Integer] Hash code of the object 34 | def hash: () -> Integer 35 | 36 | private 37 | 38 | def self.detect_class: (type: String) -> Class? 39 | end 40 | end 41 | end 42 | end 43 | end 44 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/flex_container.rbs: -------------------------------------------------------------------------------- 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 FlexContainer 15 | attr_accessor type: String 16 | 17 | 18 | # @param type [String] 19 | def initialize: ( 20 | type: String, 21 | **untyped dynamic_attributes 22 | ) -> void 23 | 24 | # Create an instance of the class from a hash 25 | # @param args [Hash] Hash containing all the required attributes 26 | # @return [Line::Bot::V2::MessagingApi::FlexContainer] Instance of the class 27 | def self.create: (Hash[Symbol, untyped]) -> FlexContainer 28 | 29 | # @param other [Object] Object to compare 30 | # @return [Boolean] true if the objects are equal, false otherwise 31 | def ==: (untyped other) -> bool 32 | 33 | # @return [Integer] Hash code of the object 34 | def hash: () -> Integer 35 | 36 | private 37 | 38 | def self.detect_class: (type: String) -> Class? 39 | end 40 | end 41 | end 42 | end 43 | end 44 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/flex_filler.rbs: -------------------------------------------------------------------------------- 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 FlexFiller < FlexComponent 15 | attr_reader type: String 16 | attr_accessor flex: Integer? 17 | 18 | 19 | # @param flex [Integer,nil] 20 | def initialize: ( 21 | ?flex: Integer?, 22 | **untyped dynamic_attributes 23 | ) -> void 24 | 25 | # Create an instance of the class from a hash 26 | # @param args [Hash] Hash containing all the required attributes 27 | # @return [Line::Bot::V2::MessagingApi::FlexFiller] Instance of the class 28 | def self.create: (Hash[Symbol, untyped]) -> FlexFiller 29 | 30 | # @param other [Object] Object to compare 31 | # @return [Boolean] true if the objects are equal, false otherwise 32 | def ==: (untyped other) -> bool 33 | 34 | # @return [Integer] Hash code of the object 35 | def hash: () -> Integer 36 | end 37 | end 38 | end 39 | end 40 | end 41 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/flex_icon_size.rbs: -------------------------------------------------------------------------------- 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 | # You can set the width of an Flex icon component with the `size` property, in pixels, as a percentage, or with a keyword. FlexIconSize just provides only keywords. 15 | class FlexIconSize 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/flex_image_size.rbs: -------------------------------------------------------------------------------- 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 | # You can set the width of an Flex image component with the `size` property, in pixels, as a percentage, or with a keyword. FlexImageSize just provides only keywords. 15 | class FlexImageSize 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/flex_margin.rbs: -------------------------------------------------------------------------------- 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 | # You can specify the minimum space before a child component with the `margin` property of the child component, in pixels or with a keyword. FlexMargin just provides only keywords. 15 | class FlexMargin 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/flex_offset.rbs: -------------------------------------------------------------------------------- 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 | # You can specify the offset of a component with the `offset*` property, in pixels or with a keyword. You can also specify the percentage to the box width for `offsetStart` and `offsetEnd` and to the box height for `offsetTop` and `offsetBottom`. FlexOffset just provides only keywords. 15 | class FlexOffset 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/flex_separator.rbs: -------------------------------------------------------------------------------- 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 FlexSeparator < FlexComponent 15 | attr_reader type: String 16 | attr_accessor margin: String? 17 | attr_accessor color: String? 18 | 19 | 20 | # @param margin [String,nil] 21 | # @param color [String,nil] 22 | def initialize: ( 23 | ?margin: String?, 24 | ?color: String?, 25 | **untyped dynamic_attributes 26 | ) -> void 27 | 28 | # Create an instance of the class from a hash 29 | # @param args [Hash] Hash containing all the required attributes 30 | # @return [Line::Bot::V2::MessagingApi::FlexSeparator] Instance of the class 31 | def self.create: (Hash[Symbol, untyped]) -> FlexSeparator 32 | 33 | # @param other [Object] Object to compare 34 | # @return [Boolean] true if the objects are equal, false otherwise 35 | def ==: (untyped other) -> bool 36 | 37 | # @return [Integer] Hash code of the object 38 | def hash: () -> Integer 39 | end 40 | end 41 | end 42 | end 43 | end 44 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/flex_span_size.rbs: -------------------------------------------------------------------------------- 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 | # Font size in the `size` property of the Flex span component. You can specify the size in pixels or with a keyword. FlexSpanSize just provides only keywords. 15 | class FlexSpanSize 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/flex_text_font_size.rbs: -------------------------------------------------------------------------------- 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 | # Font size in the `size` property of the Flex text component. You can specify the size in pixels or with a keyword. FlexTextFontSize just provides only keywords. 15 | class FlexTextFontSize 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/gender_demographic.rbs: -------------------------------------------------------------------------------- 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 GenderDemographic 15 | 16 | end 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/gender_demographic_filter.rbs: -------------------------------------------------------------------------------- 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 GenderDemographicFilter < DemographicFilter 15 | attr_reader type: String? 16 | attr_accessor one_of: Array['male'|'female']? 17 | 18 | 19 | # @param one_of [Array['male','female'],nil] 20 | def initialize: ( 21 | ?one_of: Array['male'|'female']?, 22 | **untyped dynamic_attributes 23 | ) -> void 24 | 25 | # Create an instance of the class from a hash 26 | # @param args [Hash] Hash containing all the required attributes 27 | # @return [Line::Bot::V2::MessagingApi::GenderDemographicFilter] Instance of the class 28 | def self.create: (Hash[Symbol, untyped]) -> GenderDemographicFilter 29 | 30 | # @param other [Object] Object to compare 31 | # @return [Boolean] true if the objects are equal, false otherwise 32 | def ==: (untyped other) -> bool 33 | 34 | # @return [Integer] Hash code of the object 35 | def hash: () -> Integer 36 | end 37 | end 38 | end 39 | end 40 | end 41 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/image_carousel_column.rbs: -------------------------------------------------------------------------------- 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 ImageCarouselColumn 15 | attr_accessor image_url: String 16 | attr_accessor action: Action 17 | 18 | 19 | # @param image_url [String] 20 | # @param action [Action, Hash[Symbol, untyped]] 21 | def initialize: ( 22 | image_url: String, 23 | action: Action| Hash[Symbol, untyped], 24 | **untyped dynamic_attributes 25 | ) -> void 26 | 27 | # Create an instance of the class from a hash 28 | # @param args [Hash] Hash containing all the required attributes 29 | # @return [Line::Bot::V2::MessagingApi::ImageCarouselColumn] Instance of the class 30 | def self.create: (Hash[Symbol, untyped]) -> ImageCarouselColumn 31 | 32 | # @param other [Object] Object to compare 33 | # @return [Boolean] true if the objects are equal, false otherwise 34 | def ==: (untyped other) -> bool 35 | 36 | # @return [Integer] Hash code of the object 37 | def hash: () -> Integer 38 | end 39 | end 40 | end 41 | end 42 | end 43 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/image_carousel_template.rbs: -------------------------------------------------------------------------------- 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 ImageCarouselTemplate < Template 15 | attr_reader type: String 16 | attr_accessor columns: Array[ImageCarouselColumn] 17 | 18 | 19 | # @param columns [Array[ImageCarouselColumn, Hash[Symbol, untyped]]] 20 | def initialize: ( 21 | columns: Array[ImageCarouselColumn| Hash[Symbol, untyped]], 22 | **untyped dynamic_attributes 23 | ) -> void 24 | 25 | # Create an instance of the class from a hash 26 | # @param args [Hash] Hash containing all the required attributes 27 | # @return [Line::Bot::V2::MessagingApi::ImageCarouselTemplate] Instance of the class 28 | def self.create: (Hash[Symbol, untyped]) -> ImageCarouselTemplate 29 | 30 | # @param other [Object] Object to compare 31 | # @return [Boolean] true if the objects are equal, false otherwise 32 | def ==: (untyped other) -> bool 33 | 34 | # @return [Integer] Hash code of the object 35 | def hash: () -> Integer 36 | end 37 | end 38 | end 39 | end 40 | end 41 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/imagemap_base_size.rbs: -------------------------------------------------------------------------------- 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 ImagemapBaseSize 15 | attr_accessor height: Integer 16 | attr_accessor width: Integer 17 | 18 | 19 | # @param height [Integer] 20 | # @param width [Integer] 21 | def initialize: ( 22 | height: Integer, 23 | width: Integer, 24 | **untyped dynamic_attributes 25 | ) -> void 26 | 27 | # Create an instance of the class from a hash 28 | # @param args [Hash] Hash containing all the required attributes 29 | # @return [Line::Bot::V2::MessagingApi::ImagemapBaseSize] Instance of the class 30 | def self.create: (Hash[Symbol, untyped]) -> ImagemapBaseSize 31 | 32 | # @param other [Object] Object to compare 33 | # @return [Boolean] true if the objects are equal, false otherwise 34 | def ==: (untyped other) -> bool 35 | 36 | # @return [Integer] Hash code of the object 37 | def hash: () -> Integer 38 | end 39 | end 40 | end 41 | end 42 | end 43 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/imagemap_external_link.rbs: -------------------------------------------------------------------------------- 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 ImagemapExternalLink 15 | attr_accessor link_uri: String? 16 | attr_accessor label: String? 17 | 18 | 19 | # @param link_uri [String,nil] 20 | # @param label [String,nil] 21 | def initialize: ( 22 | ?link_uri: String?, 23 | ?label: String?, 24 | **untyped dynamic_attributes 25 | ) -> void 26 | 27 | # Create an instance of the class from a hash 28 | # @param args [Hash] Hash containing all the required attributes 29 | # @return [Line::Bot::V2::MessagingApi::ImagemapExternalLink] Instance of the class 30 | def self.create: (Hash[Symbol, untyped]) -> ImagemapExternalLink 31 | 32 | # @param other [Object] Object to compare 33 | # @return [Boolean] true if the objects are equal, false otherwise 34 | def ==: (untyped other) -> bool 35 | 36 | # @return [Integer] Hash code of the object 37 | def hash: () -> Integer 38 | end 39 | end 40 | end 41 | end 42 | end 43 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/location_action.rbs: -------------------------------------------------------------------------------- 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 LocationAction < Action 15 | attr_reader type: String? 16 | attr_accessor label: String? 17 | 18 | 19 | # @param label [String,nil] Label for the action. 20 | def initialize: ( 21 | ?label: String?, 22 | **untyped dynamic_attributes 23 | ) -> void 24 | 25 | # Create an instance of the class from a hash 26 | # @param args [Hash] Hash containing all the required attributes 27 | # @return [Line::Bot::V2::MessagingApi::LocationAction] Instance of the class 28 | def self.create: (Hash[Symbol, untyped]) -> LocationAction 29 | 30 | # @param other [Object] Object to compare 31 | # @return [Boolean] true if the objects are equal, false otherwise 32 | def ==: (untyped other) -> bool 33 | 34 | # @return [Integer] Hash code of the object 35 | def hash: () -> Integer 36 | end 37 | end 38 | end 39 | end 40 | end 41 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/membership_list_response.rbs: -------------------------------------------------------------------------------- 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 | # List of memberships 15 | class MembershipListResponse 16 | attr_accessor memberships: Array[Membership] 17 | 18 | 19 | # @param memberships [Array[Membership, Hash[Symbol, untyped]]] List of membership information 20 | def initialize: ( 21 | memberships: Array[Membership| Hash[Symbol, untyped]], 22 | **untyped dynamic_attributes 23 | ) -> void 24 | 25 | # Create an instance of the class from a hash 26 | # @param args [Hash] Hash containing all the required attributes 27 | # @return [Line::Bot::V2::MessagingApi::MembershipListResponse] Instance of the class 28 | def self.create: (Hash[Symbol, untyped]) -> MembershipListResponse 29 | 30 | # @param other [Object] Object to compare 31 | # @return [Boolean] true if the objects are equal, false otherwise 32 | def ==: (untyped other) -> bool 33 | 34 | # @return [Integer] Hash code of the object 35 | def hash: () -> Integer 36 | end 37 | end 38 | end 39 | end 40 | end 41 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/mention_target.rbs: -------------------------------------------------------------------------------- 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 MentionTarget 15 | attr_accessor type: String 16 | 17 | 18 | # @param type [String] Target to be mentioned 19 | def initialize: ( 20 | type: String, 21 | **untyped dynamic_attributes 22 | ) -> void 23 | 24 | # Create an instance of the class from a hash 25 | # @param args [Hash] Hash containing all the required attributes 26 | # @return [Line::Bot::V2::MessagingApi::MentionTarget] Instance of the class 27 | def self.create: (Hash[Symbol, untyped]) -> MentionTarget 28 | 29 | # @param other [Object] Object to compare 30 | # @return [Boolean] true if the objects are equal, false otherwise 31 | def ==: (untyped other) -> bool 32 | 33 | # @return [Integer] Hash code of the object 34 | def hash: () -> Integer 35 | 36 | private 37 | 38 | def self.detect_class: (type: String) -> Class? 39 | end 40 | end 41 | end 42 | end 43 | end 44 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/message_action.rbs: -------------------------------------------------------------------------------- 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 MessageAction < Action 15 | attr_reader type: String? 16 | attr_accessor label: String? 17 | attr_accessor text: String? 18 | 19 | 20 | # @param label [String,nil] Label for the action. 21 | # @param text [String,nil] 22 | def initialize: ( 23 | ?label: String?, 24 | ?text: String?, 25 | **untyped dynamic_attributes 26 | ) -> void 27 | 28 | # Create an instance of the class from a hash 29 | # @param args [Hash] Hash containing all the required attributes 30 | # @return [Line::Bot::V2::MessagingApi::MessageAction] Instance of the class 31 | def self.create: (Hash[Symbol, untyped]) -> MessageAction 32 | 33 | # @param other [Object] Object to compare 34 | # @return [Boolean] true if the objects are equal, false otherwise 35 | def ==: (untyped other) -> bool 36 | 37 | # @return [Integer] Hash code of the object 38 | def hash: () -> Integer 39 | end 40 | end 41 | end 42 | end 43 | end 44 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/quota_consumption_response.rbs: -------------------------------------------------------------------------------- 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/#get-consumption 15 | class QuotaConsumptionResponse 16 | attr_accessor total_usage: Integer 17 | 18 | 19 | # @param total_usage [Integer] The number of sent messages in the current month 20 | def initialize: ( 21 | total_usage: Integer, 22 | **untyped dynamic_attributes 23 | ) -> void 24 | 25 | # Create an instance of the class from a hash 26 | # @param args [Hash] Hash containing all the required attributes 27 | # @return [Line::Bot::V2::MessagingApi::QuotaConsumptionResponse] Instance of the class 28 | def self.create: (Hash[Symbol, untyped]) -> QuotaConsumptionResponse 29 | 30 | # @param other [Object] Object to compare 31 | # @return [Boolean] true if the objects are equal, false otherwise 32 | def ==: (untyped other) -> bool 33 | 34 | # @return [Integer] Hash code of the object 35 | def hash: () -> Integer 36 | end 37 | end 38 | end 39 | end 40 | end 41 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/quota_type.rbs: -------------------------------------------------------------------------------- 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 | # One of the following values to indicate whether a target limit is set or not. 15 | # @see https://developers.line.biz/en/reference/messaging-api/#get-quota 16 | class QuotaType 17 | 18 | end 19 | end 20 | end 21 | end 22 | end 23 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/recipient.rbs: -------------------------------------------------------------------------------- 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 | # Recipient 15 | class Recipient 16 | attr_accessor type: String? 17 | 18 | 19 | # @param type [String,nil] Type of recipient 20 | def initialize: ( 21 | ?type: String?, 22 | **untyped dynamic_attributes 23 | ) -> void 24 | 25 | # Create an instance of the class from a hash 26 | # @param args [Hash] Hash containing all the required attributes 27 | # @return [Line::Bot::V2::MessagingApi::Recipient] Instance of the class 28 | def self.create: (Hash[Symbol, untyped]) -> Recipient 29 | 30 | # @param other [Object] Object to compare 31 | # @return [Boolean] true if the objects are equal, false otherwise 32 | def ==: (untyped other) -> bool 33 | 34 | # @return [Integer] Hash code of the object 35 | def hash: () -> Integer 36 | 37 | private 38 | 39 | def self.detect_class: (type: String) -> Class? 40 | end 41 | end 42 | end 43 | end 44 | end 45 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/redelivery_recipient.rbs: -------------------------------------------------------------------------------- 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 RedeliveryRecipient < Recipient 15 | attr_reader type: String? 16 | attr_accessor request_id: String? 17 | 18 | 19 | # @param request_id [String,nil] 20 | def initialize: ( 21 | ?request_id: String?, 22 | **untyped dynamic_attributes 23 | ) -> void 24 | 25 | # Create an instance of the class from a hash 26 | # @param args [Hash] Hash containing all the required attributes 27 | # @return [Line::Bot::V2::MessagingApi::RedeliveryRecipient] Instance of the class 28 | def self.create: (Hash[Symbol, untyped]) -> RedeliveryRecipient 29 | 30 | # @param other [Object] Object to compare 31 | # @return [Boolean] true if the objects are equal, false otherwise 32 | def ==: (untyped other) -> bool 33 | 34 | # @return [Integer] Hash code of the object 35 | def hash: () -> Integer 36 | end 37 | end 38 | end 39 | end 40 | end 41 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/rich_menu_batch_progress_phase.rbs: -------------------------------------------------------------------------------- 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 | # The current status. One of: `ongoing`: Rich menu batch control is in progress. `succeeded`: Rich menu batch control is complete. `failed`: Rich menu batch control failed. This means that the rich menu for one or more users couldn't be controlled. There may also be users whose operations have been successfully completed. 15 | class RichMenuBatchProgressPhase 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/rich_menu_batch_unlink_all_operation.rbs: -------------------------------------------------------------------------------- 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 | # Unlink the rich menu from all users linked to the rich menu. 15 | class RichMenuBatchUnlinkAllOperation < RichMenuBatchOperation 16 | attr_reader type: String 17 | 18 | 19 | def initialize: ( 20 | **untyped dynamic_attributes 21 | ) -> void 22 | 23 | # Create an instance of the class from a hash 24 | # @param args [Hash] Hash containing all the required attributes 25 | # @return [Line::Bot::V2::MessagingApi::RichMenuBatchUnlinkAllOperation] Instance of the class 26 | def self.create: (Hash[Symbol, untyped]) -> RichMenuBatchUnlinkAllOperation 27 | 28 | # @param other [Object] Object to compare 29 | # @return [Boolean] true if the objects are equal, false otherwise 30 | def ==: (untyped other) -> bool 31 | 32 | # @return [Integer] Hash code of the object 33 | def hash: () -> Integer 34 | end 35 | end 36 | end 37 | end 38 | end 39 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/rich_menu_id_response.rbs: -------------------------------------------------------------------------------- 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 RichMenuIdResponse 15 | attr_accessor rich_menu_id: String 16 | 17 | 18 | # @param rich_menu_id [String] Rich menu ID 19 | def initialize: ( 20 | rich_menu_id: String, 21 | **untyped dynamic_attributes 22 | ) -> void 23 | 24 | # Create an instance of the class from a hash 25 | # @param args [Hash] Hash containing all the required attributes 26 | # @return [Line::Bot::V2::MessagingApi::RichMenuIdResponse] Instance of the class 27 | def self.create: (Hash[Symbol, untyped]) -> RichMenuIdResponse 28 | 29 | # @param other [Object] Object to compare 30 | # @return [Boolean] true if the objects are equal, false otherwise 31 | def ==: (untyped other) -> bool 32 | 33 | # @return [Integer] Hash code of the object 34 | def hash: () -> Integer 35 | end 36 | end 37 | end 38 | end 39 | end 40 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/rich_menu_size.rbs: -------------------------------------------------------------------------------- 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 | # Rich menu size 15 | class RichMenuSize 16 | attr_accessor width: Integer? 17 | attr_accessor height: Integer? 18 | 19 | 20 | # @param width [Integer,nil] width 21 | # @param height [Integer,nil] height 22 | def initialize: ( 23 | ?width: Integer?, 24 | ?height: Integer?, 25 | **untyped dynamic_attributes 26 | ) -> void 27 | 28 | # Create an instance of the class from a hash 29 | # @param args [Hash] Hash containing all the required attributes 30 | # @return [Line::Bot::V2::MessagingApi::RichMenuSize] Instance of the class 31 | def self.create: (Hash[Symbol, untyped]) -> RichMenuSize 32 | 33 | # @param other [Object] Object to compare 34 | # @return [Boolean] true if the objects are equal, false otherwise 35 | def ==: (untyped other) -> bool 36 | 37 | # @return [Integer] Hash code of the object 38 | def hash: () -> Integer 39 | end 40 | end 41 | end 42 | end 43 | end 44 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/set_webhook_endpoint_request.rbs: -------------------------------------------------------------------------------- 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/#set-webhook-endpoint-url 15 | class SetWebhookEndpointRequest 16 | attr_accessor endpoint: String 17 | 18 | 19 | # @param endpoint [String] A valid webhook URL. 20 | def initialize: ( 21 | endpoint: String, 22 | **untyped dynamic_attributes 23 | ) -> void 24 | 25 | # Create an instance of the class from a hash 26 | # @param args [Hash] Hash containing all the required attributes 27 | # @return [Line::Bot::V2::MessagingApi::SetWebhookEndpointRequest] Instance of the class 28 | def self.create: (Hash[Symbol, untyped]) -> SetWebhookEndpointRequest 29 | 30 | # @param other [Object] Object to compare 31 | # @return [Boolean] true if the objects are equal, false otherwise 32 | def ==: (untyped other) -> bool 33 | 34 | # @return [Integer] Hash code of the object 35 | def hash: () -> Integer 36 | end 37 | end 38 | end 39 | end 40 | end 41 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/subscription_period_demographic.rbs: -------------------------------------------------------------------------------- 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 SubscriptionPeriodDemographic 15 | 16 | end 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/template.rbs: -------------------------------------------------------------------------------- 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 Template 15 | attr_accessor type: String 16 | 17 | 18 | # @param type [String] 19 | def initialize: ( 20 | type: String, 21 | **untyped dynamic_attributes 22 | ) -> void 23 | 24 | # Create an instance of the class from a hash 25 | # @param args [Hash] Hash containing all the required attributes 26 | # @return [Line::Bot::V2::MessagingApi::Template] Instance of the class 27 | def self.create: (Hash[Symbol, untyped]) -> Template 28 | 29 | # @param other [Object] Object to compare 30 | # @return [Boolean] true if the objects are equal, false otherwise 31 | def ==: (untyped other) -> bool 32 | 33 | # @return [Integer] Hash code of the object 34 | def hash: () -> Integer 35 | 36 | private 37 | 38 | def self.detect_class: (type: String) -> Class? 39 | end 40 | end 41 | end 42 | end 43 | end 44 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/template_image_aspect_ratio.rbs: -------------------------------------------------------------------------------- 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 | # Aspect ratio of the image. This is only for the `imageAspectRatio` in ButtonsTemplate. Specify one of the following values: `rectangle`: 1.51:1 `square`: 1:1 15 | class TemplateImageAspectRatio 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/template_image_size.rbs: -------------------------------------------------------------------------------- 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 | # Size of the image. This is only for the `imageSize` in ButtonsTemplate. Specify one of the following values: `cover`: The image fills the entire image area. Parts of the image that do not fit in the area are not displayed. `contain`: The entire image is displayed in the image area. A background is displayed in the unused areas to the left and right of vertical images and in the areas above and below horizontal images. 15 | class TemplateImageSize 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/test_webhook_endpoint_request.rbs: -------------------------------------------------------------------------------- 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/#test-webhook-endpoint 15 | class TestWebhookEndpointRequest 16 | attr_accessor endpoint: String? 17 | 18 | 19 | # @param endpoint [String,nil] A webhook URL to be validated. 20 | def initialize: ( 21 | ?endpoint: String?, 22 | **untyped dynamic_attributes 23 | ) -> void 24 | 25 | # Create an instance of the class from a hash 26 | # @param args [Hash] Hash containing all the required attributes 27 | # @return [Line::Bot::V2::MessagingApi::TestWebhookEndpointRequest] Instance of the class 28 | def self.create: (Hash[Symbol, untyped]) -> TestWebhookEndpointRequest 29 | 30 | # @param other [Object] Object to compare 31 | # @return [Boolean] true if the objects are equal, false otherwise 32 | def ==: (untyped other) -> bool 33 | 34 | # @return [Integer] Hash code of the object 35 | def hash: () -> Integer 36 | end 37 | end 38 | end 39 | end 40 | end 41 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/user_mention_target.rbs: -------------------------------------------------------------------------------- 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/#text-message-v2-mentionee-user 15 | class UserMentionTarget < MentionTarget 16 | attr_reader type: String 17 | attr_accessor user_id: String 18 | 19 | 20 | # @param user_id [String] 21 | def initialize: ( 22 | user_id: String, 23 | **untyped dynamic_attributes 24 | ) -> void 25 | 26 | # Create an instance of the class from a hash 27 | # @param args [Hash] Hash containing all the required attributes 28 | # @return [Line::Bot::V2::MessagingApi::UserMentionTarget] Instance of the class 29 | def self.create: (Hash[Symbol, untyped]) -> UserMentionTarget 30 | 31 | # @param other [Object] Object to compare 32 | # @return [Boolean] true if the objects are equal, false otherwise 33 | def ==: (untyped other) -> bool 34 | 35 | # @return [Integer] Hash code of the object 36 | def hash: () -> Integer 37 | end 38 | end 39 | end 40 | end 41 | end 42 | -------------------------------------------------------------------------------- /sig/line/bot/v2/messaging_api/model/validate_message_request.rbs: -------------------------------------------------------------------------------- 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 ValidateMessageRequest 15 | attr_accessor messages: Array[Message] 16 | 17 | 18 | # @param messages [Array[Message, Hash[Symbol, untyped]]] Array of message objects to validate 19 | def initialize: ( 20 | messages: Array[Message| Hash[Symbol, untyped]], 21 | **untyped dynamic_attributes 22 | ) -> void 23 | 24 | # Create an instance of the class from a hash 25 | # @param args [Hash] Hash containing all the required attributes 26 | # @return [Line::Bot::V2::MessagingApi::ValidateMessageRequest] Instance of the class 27 | def self.create: (Hash[Symbol, untyped]) -> ValidateMessageRequest 28 | 29 | # @param other [Object] Object to compare 30 | # @return [Boolean] true if the objects are equal, false otherwise 31 | def ==: (untyped other) -> bool 32 | 33 | # @return [Integer] Hash code of the object 34 | def hash: () -> Integer 35 | end 36 | end 37 | end 38 | end 39 | end 40 | -------------------------------------------------------------------------------- /sig/line/bot/v2/module/.openapi-generator-ignore: -------------------------------------------------------------------------------- 1 | # OpenAPI Generator Ignore 2 | # Generated by openapi-generator https://github.com/openapitools/openapi-generator 3 | 4 | # Use this file to prevent files from being overwritten by the generator. 5 | # The patterns follow closely to .gitignore or .dockerignore. 6 | 7 | # As an example, the C# client generator defines ApiClient.cs. 8 | # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: 9 | #ApiClient.cs 10 | 11 | # You can match any string of characters against a directory, file or extension with a single asterisk (*): 12 | #foo/*/qux 13 | # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux 14 | 15 | # You can recursively match patterns against a directory, file or extension with a double asterisk (**): 16 | #foo/**/qux 17 | # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux 18 | 19 | # You can also negate patterns with an exclamation (!). 20 | # For example, you can ignore all files in a docs folder with the file extension .md: 21 | #docs/*.md 22 | # Then explicitly reverse the ignore rule for a single file: 23 | #!docs/README.md 24 | -------------------------------------------------------------------------------- /sig/line/bot/v2/module/.openapi-generator/FILES: -------------------------------------------------------------------------------- 1 | .openapi-generator-ignore 2 | api/line_module_client.rbs 3 | model/acquire_chat_control_request.rbs 4 | model/detach_module_request.rbs 5 | model/get_modules_response.rbs 6 | model/module_bot.rbs 7 | -------------------------------------------------------------------------------- /sig/line/bot/v2/module/.openapi-generator/VERSION: -------------------------------------------------------------------------------- 1 | unset 2 | -------------------------------------------------------------------------------- /sig/line/bot/v2/module_attach/.openapi-generator-ignore: -------------------------------------------------------------------------------- 1 | # OpenAPI Generator Ignore 2 | # Generated by openapi-generator https://github.com/openapitools/openapi-generator 3 | 4 | # Use this file to prevent files from being overwritten by the generator. 5 | # The patterns follow closely to .gitignore or .dockerignore. 6 | 7 | # As an example, the C# client generator defines ApiClient.cs. 8 | # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: 9 | #ApiClient.cs 10 | 11 | # You can match any string of characters against a directory, file or extension with a single asterisk (*): 12 | #foo/*/qux 13 | # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux 14 | 15 | # You can recursively match patterns against a directory, file or extension with a double asterisk (**): 16 | #foo/**/qux 17 | # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux 18 | 19 | # You can also negate patterns with an exclamation (!). 20 | # For example, you can ignore all files in a docs folder with the file extension .md: 21 | #docs/*.md 22 | # Then explicitly reverse the ignore rule for a single file: 23 | #!docs/README.md 24 | -------------------------------------------------------------------------------- /sig/line/bot/v2/module_attach/.openapi-generator/FILES: -------------------------------------------------------------------------------- 1 | .openapi-generator-ignore 2 | api/line_module_attach_client.rbs 3 | model/attach_module_response.rbs 4 | -------------------------------------------------------------------------------- /sig/line/bot/v2/module_attach/.openapi-generator/VERSION: -------------------------------------------------------------------------------- 1 | unset 2 | -------------------------------------------------------------------------------- /sig/line/bot/v2/reserved_words.rbs: -------------------------------------------------------------------------------- 1 | module Line 2 | module Bot 3 | module V2 4 | RESERVED_WORDS: Array[Symbol] 5 | end 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /sig/line/bot/v2/shop/.openapi-generator-ignore: -------------------------------------------------------------------------------- 1 | # OpenAPI Generator Ignore 2 | # Generated by openapi-generator https://github.com/openapitools/openapi-generator 3 | 4 | # Use this file to prevent files from being overwritten by the generator. 5 | # The patterns follow closely to .gitignore or .dockerignore. 6 | 7 | # As an example, the C# client generator defines ApiClient.cs. 8 | # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: 9 | #ApiClient.cs 10 | 11 | # You can match any string of characters against a directory, file or extension with a single asterisk (*): 12 | #foo/*/qux 13 | # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux 14 | 15 | # You can recursively match patterns against a directory, file or extension with a double asterisk (**): 16 | #foo/**/qux 17 | # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux 18 | 19 | # You can also negate patterns with an exclamation (!). 20 | # For example, you can ignore all files in a docs folder with the file extension .md: 21 | #docs/*.md 22 | # Then explicitly reverse the ignore rule for a single file: 23 | #!docs/README.md 24 | -------------------------------------------------------------------------------- /sig/line/bot/v2/shop/.openapi-generator/FILES: -------------------------------------------------------------------------------- 1 | .openapi-generator-ignore 2 | api/shop_client.rbs 3 | model/error_response.rbs 4 | model/mission_sticker_request.rbs 5 | -------------------------------------------------------------------------------- /sig/line/bot/v2/shop/.openapi-generator/VERSION: -------------------------------------------------------------------------------- 1 | unset 2 | -------------------------------------------------------------------------------- /sig/line/bot/v2/shop/model/error_response.rbs: -------------------------------------------------------------------------------- 1 | # Mission Stickers API 2 | # This document describes LINE Mission Stickers 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 Shop 14 | # @see https://developers.line.biz/en/reference/partner-docs/#send-mission-stickers-v3 15 | class ErrorResponse 16 | attr_accessor message: String 17 | 18 | 19 | # @param message [String] Message containing information about the error. 20 | def initialize: ( 21 | message: String, 22 | **untyped dynamic_attributes 23 | ) -> void 24 | 25 | # Create an instance of the class from a hash 26 | # @param args [Hash] Hash containing all the required attributes 27 | # @return [Line::Bot::V2::Shop::ErrorResponse] Instance of the class 28 | def self.create: (Hash[Symbol, untyped]) -> ErrorResponse 29 | 30 | # @param other [Object] Object to compare 31 | # @return [Boolean] true if the objects are equal, false otherwise 32 | def ==: (untyped other) -> bool 33 | 34 | # @return [Integer] Hash code of the object 35 | def hash: () -> Integer 36 | end 37 | end 38 | end 39 | end 40 | end 41 | -------------------------------------------------------------------------------- /sig/line/bot/v2/utils.rbs: -------------------------------------------------------------------------------- 1 | module Line 2 | module Bot 3 | module V2 4 | module Utils 5 | NO_CAMELIZE_PARENT_KEYS: Array[String] 6 | 7 | def self.deep_underscore: (Hash[untyped, untyped]) -> Hash[Symbol, untyped] 8 | 9 | def self.deep_symbolize: (untyped) -> untyped 10 | 11 | def self.deep_to_hash: (untyped) -> untyped 12 | 13 | def self.deep_camelize: (untyped) -> untyped 14 | 15 | def self.deep_compact: (untyped) -> untyped 16 | 17 | def self.deep_convert_reserved_words: (untyped) -> untyped 18 | 19 | def self.hash_to_struct: (Hash[untyped, untyped]) -> ::Struct[untyped] 20 | 21 | def self.camelize: (String | Symbol) -> String? 22 | end 23 | end 24 | end 25 | end 26 | -------------------------------------------------------------------------------- /sig/line/bot/v2/webhook/.openapi-generator-ignore: -------------------------------------------------------------------------------- 1 | # OpenAPI Generator Ignore 2 | # Generated by openapi-generator https://github.com/openapitools/openapi-generator 3 | 4 | # Use this file to prevent files from being overwritten by the generator. 5 | # The patterns follow closely to .gitignore or .dockerignore. 6 | 7 | # As an example, the C# client generator defines ApiClient.cs. 8 | # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: 9 | #ApiClient.cs 10 | 11 | # You can match any string of characters against a directory, file or extension with a single asterisk (*): 12 | #foo/*/qux 13 | # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux 14 | 15 | # You can recursively match patterns against a directory, file or extension with a double asterisk (**): 16 | #foo/**/qux 17 | # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux 18 | 19 | # You can also negate patterns with an exclamation (!). 20 | # For example, you can ignore all files in a docs folder with the file extension .md: 21 | #docs/*.md 22 | # Then explicitly reverse the ignore rule for a single file: 23 | #!docs/README.md 24 | -------------------------------------------------------------------------------- /sig/line/bot/v2/webhook/.openapi-generator/VERSION: -------------------------------------------------------------------------------- 1 | unset 2 | -------------------------------------------------------------------------------- /sig/line/bot/v2/webhook/model/action_result.rbs: -------------------------------------------------------------------------------- 1 | # Webhook Type Definition 2 | # Webhook event definition of the LINE Messaging API 3 | # 4 | # The version of the OpenAPI document: 1.0.0 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 Webhook 14 | class ActionResult 15 | attr_accessor type: 'void'|'binary' 16 | attr_accessor data: String? 17 | 18 | 19 | # @param type [String] ('void'|'binary') 20 | # @param data [String,nil] Base64-encoded binary data 21 | def initialize: ( 22 | type: 'void'|'binary', 23 | ?data: String?, 24 | **untyped dynamic_attributes 25 | ) -> void 26 | 27 | # Create an instance of the class from a hash 28 | # @param args [Hash] Hash containing all the required attributes 29 | # @return [Line::Bot::V2::Webhook::ActionResult] Instance of the class 30 | def self.create: (Hash[Symbol, untyped]) -> ActionResult 31 | 32 | # @param other [Object] Object to compare 33 | # @return [Boolean] true if the objects are equal, false otherwise 34 | def ==: (untyped other) -> bool 35 | 36 | # @return [Integer] Hash code of the object 37 | def hash: () -> Integer 38 | end 39 | end 40 | end 41 | end 42 | end 43 | -------------------------------------------------------------------------------- /sig/line/bot/v2/webhook/model/chat_control.rbs: -------------------------------------------------------------------------------- 1 | # Webhook Type Definition 2 | # Webhook event definition of the LINE Messaging API 3 | # 4 | # The version of the OpenAPI document: 1.0.0 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 Webhook 14 | class ChatControl 15 | attr_accessor expire_at: Integer 16 | 17 | 18 | # @param expire_at [Integer] 19 | def initialize: ( 20 | expire_at: Integer, 21 | **untyped dynamic_attributes 22 | ) -> void 23 | 24 | # Create an instance of the class from a hash 25 | # @param args [Hash] Hash containing all the required attributes 26 | # @return [Line::Bot::V2::Webhook::ChatControl] Instance of the class 27 | def self.create: (Hash[Symbol, untyped]) -> ChatControl 28 | 29 | # @param other [Object] Object to compare 30 | # @return [Boolean] true if the objects are equal, false otherwise 31 | def ==: (untyped other) -> bool 32 | 33 | # @return [Integer] Hash code of the object 34 | def hash: () -> Integer 35 | end 36 | end 37 | end 38 | end 39 | end 40 | -------------------------------------------------------------------------------- /sig/line/bot/v2/webhook/model/delivery_context.rbs: -------------------------------------------------------------------------------- 1 | # Webhook Type Definition 2 | # Webhook event definition of the LINE Messaging API 3 | # 4 | # The version of the OpenAPI document: 1.0.0 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 Webhook 14 | # webhook's delivery context information 15 | class DeliveryContext 16 | attr_accessor is_redelivery: bool 17 | 18 | 19 | # @param is_redelivery [bool] Whether the webhook event is a redelivered one or not. 20 | def initialize: ( 21 | is_redelivery: bool, 22 | **untyped dynamic_attributes 23 | ) -> void 24 | 25 | # Create an instance of the class from a hash 26 | # @param args [Hash] Hash containing all the required attributes 27 | # @return [Line::Bot::V2::Webhook::DeliveryContext] Instance of the class 28 | def self.create: (Hash[Symbol, untyped]) -> DeliveryContext 29 | 30 | # @param other [Object] Object to compare 31 | # @return [Boolean] true if the objects are equal, false otherwise 32 | def ==: (untyped other) -> bool 33 | 34 | # @return [Integer] Hash code of the object 35 | def hash: () -> Integer 36 | end 37 | end 38 | end 39 | end 40 | end 41 | -------------------------------------------------------------------------------- /sig/line/bot/v2/webhook/model/event_mode.rbs: -------------------------------------------------------------------------------- 1 | # Webhook Type Definition 2 | # Webhook event definition of the LINE Messaging API 3 | # 4 | # The version of the OpenAPI document: 1.0.0 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 Webhook 14 | # Channel state. 15 | class EventMode 16 | 17 | end 18 | end 19 | end 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /sig/line/bot/v2/webhook/model/follow_detail.rbs: -------------------------------------------------------------------------------- 1 | # Webhook Type Definition 2 | # Webhook event definition of the LINE Messaging API 3 | # 4 | # The version of the OpenAPI document: 1.0.0 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 Webhook 14 | class FollowDetail 15 | attr_accessor is_unblocked: bool 16 | 17 | 18 | # @param is_unblocked [bool] Whether a user has added your LINE Official Account as a friend or unblocked. 19 | def initialize: ( 20 | is_unblocked: bool, 21 | **untyped dynamic_attributes 22 | ) -> void 23 | 24 | # Create an instance of the class from a hash 25 | # @param args [Hash] Hash containing all the required attributes 26 | # @return [Line::Bot::V2::Webhook::FollowDetail] Instance of the class 27 | def self.create: (Hash[Symbol, untyped]) -> FollowDetail 28 | 29 | # @param other [Object] Object to compare 30 | # @return [Boolean] true if the objects are equal, false otherwise 31 | def ==: (untyped other) -> bool 32 | 33 | # @return [Integer] Hash code of the object 34 | def hash: () -> Integer 35 | end 36 | end 37 | end 38 | end 39 | end 40 | -------------------------------------------------------------------------------- /sig/line/bot/v2/webhook/model/joined_members.rbs: -------------------------------------------------------------------------------- 1 | # Webhook Type Definition 2 | # Webhook event definition of the LINE Messaging API 3 | # 4 | # The version of the OpenAPI document: 1.0.0 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 Webhook 14 | class JoinedMembers 15 | attr_accessor members: Array[UserSource] 16 | 17 | 18 | # @param members [Array[UserSource, Hash[Symbol, untyped]]] Users who joined. Array of source user objects. 19 | def initialize: ( 20 | members: Array[UserSource| Hash[Symbol, untyped]], 21 | **untyped dynamic_attributes 22 | ) -> void 23 | 24 | # Create an instance of the class from a hash 25 | # @param args [Hash] Hash containing all the required attributes 26 | # @return [Line::Bot::V2::Webhook::JoinedMembers] Instance of the class 27 | def self.create: (Hash[Symbol, untyped]) -> JoinedMembers 28 | 29 | # @param other [Object] Object to compare 30 | # @return [Boolean] true if the objects are equal, false otherwise 31 | def ==: (untyped other) -> bool 32 | 33 | # @return [Integer] Hash code of the object 34 | def hash: () -> Integer 35 | end 36 | end 37 | end 38 | end 39 | end 40 | -------------------------------------------------------------------------------- /sig/line/bot/v2/webhook/model/joined_membership_content.rbs: -------------------------------------------------------------------------------- 1 | # Webhook Type Definition 2 | # Webhook event definition of the LINE Messaging API 3 | # 4 | # The version of the OpenAPI document: 1.0.0 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 Webhook 14 | class JoinedMembershipContent < MembershipContent 15 | attr_reader type: String 16 | attr_accessor membership_id: Integer 17 | 18 | 19 | # @param membership_id [Integer] The ID of the membership that the user joined. This is defined for each membership. 20 | def initialize: ( 21 | membership_id: Integer, 22 | **untyped dynamic_attributes 23 | ) -> void 24 | 25 | # Create an instance of the class from a hash 26 | # @param args [Hash] Hash containing all the required attributes 27 | # @return [Line::Bot::V2::Webhook::JoinedMembershipContent] Instance of the class 28 | def self.create: (Hash[Symbol, untyped]) -> JoinedMembershipContent 29 | 30 | # @param other [Object] Object to compare 31 | # @return [Boolean] true if the objects are equal, false otherwise 32 | def ==: (untyped other) -> bool 33 | 34 | # @return [Integer] Hash code of the object 35 | def hash: () -> Integer 36 | end 37 | end 38 | end 39 | end 40 | end 41 | -------------------------------------------------------------------------------- /sig/line/bot/v2/webhook/model/left_members.rbs: -------------------------------------------------------------------------------- 1 | # Webhook Type Definition 2 | # Webhook event definition of the LINE Messaging API 3 | # 4 | # The version of the OpenAPI document: 1.0.0 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 Webhook 14 | class LeftMembers 15 | attr_accessor members: Array[UserSource] 16 | 17 | 18 | # @param members [Array[UserSource, Hash[Symbol, untyped]]] Users who left. Array of source user objects. 19 | def initialize: ( 20 | members: Array[UserSource| Hash[Symbol, untyped]], 21 | **untyped dynamic_attributes 22 | ) -> void 23 | 24 | # Create an instance of the class from a hash 25 | # @param args [Hash] Hash containing all the required attributes 26 | # @return [Line::Bot::V2::Webhook::LeftMembers] Instance of the class 27 | def self.create: (Hash[Symbol, untyped]) -> LeftMembers 28 | 29 | # @param other [Object] Object to compare 30 | # @return [Boolean] true if the objects are equal, false otherwise 31 | def ==: (untyped other) -> bool 32 | 33 | # @return [Integer] Hash code of the object 34 | def hash: () -> Integer 35 | end 36 | end 37 | end 38 | end 39 | end 40 | -------------------------------------------------------------------------------- /sig/line/bot/v2/webhook/model/left_membership_content.rbs: -------------------------------------------------------------------------------- 1 | # Webhook Type Definition 2 | # Webhook event definition of the LINE Messaging API 3 | # 4 | # The version of the OpenAPI document: 1.0.0 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 Webhook 14 | class LeftMembershipContent < MembershipContent 15 | attr_reader type: String 16 | attr_accessor membership_id: Integer 17 | 18 | 19 | # @param membership_id [Integer] The ID of the membership that the user left. This is defined for each membership. 20 | def initialize: ( 21 | membership_id: Integer, 22 | **untyped dynamic_attributes 23 | ) -> void 24 | 25 | # Create an instance of the class from a hash 26 | # @param args [Hash] Hash containing all the required attributes 27 | # @return [Line::Bot::V2::Webhook::LeftMembershipContent] Instance of the class 28 | def self.create: (Hash[Symbol, untyped]) -> LeftMembershipContent 29 | 30 | # @param other [Object] Object to compare 31 | # @return [Boolean] true if the objects are equal, false otherwise 32 | def ==: (untyped other) -> bool 33 | 34 | # @return [Integer] Hash code of the object 35 | def hash: () -> Integer 36 | end 37 | end 38 | end 39 | end 40 | end 41 | -------------------------------------------------------------------------------- /sig/line/bot/v2/webhook/model/link_things_content.rbs: -------------------------------------------------------------------------------- 1 | # Webhook Type Definition 2 | # Webhook event definition of the LINE Messaging API 3 | # 4 | # The version of the OpenAPI document: 1.0.0 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 Webhook 14 | class LinkThingsContent < ThingsContent 15 | attr_reader type: String 16 | attr_accessor device_id: String 17 | 18 | 19 | # @param device_id [String] Device ID of the device that has been linked with LINE. 20 | def initialize: ( 21 | device_id: String, 22 | **untyped dynamic_attributes 23 | ) -> void 24 | 25 | # Create an instance of the class from a hash 26 | # @param args [Hash] Hash containing all the required attributes 27 | # @return [Line::Bot::V2::Webhook::LinkThingsContent] Instance of the class 28 | def self.create: (Hash[Symbol, untyped]) -> LinkThingsContent 29 | 30 | # @param other [Object] Object to compare 31 | # @return [Boolean] true if the objects are equal, false otherwise 32 | def ==: (untyped other) -> bool 33 | 34 | # @return [Integer] Hash code of the object 35 | def hash: () -> Integer 36 | end 37 | end 38 | end 39 | end 40 | end 41 | -------------------------------------------------------------------------------- /sig/line/bot/v2/webhook/model/membership_content.rbs: -------------------------------------------------------------------------------- 1 | # Webhook Type Definition 2 | # Webhook event definition of the LINE Messaging API 3 | # 4 | # The version of the OpenAPI document: 1.0.0 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 Webhook 14 | # Content of the membership event. 15 | class MembershipContent 16 | attr_accessor type: String 17 | 18 | 19 | # @param type [String] Type of membership event. 20 | def initialize: ( 21 | type: String, 22 | **untyped dynamic_attributes 23 | ) -> void 24 | 25 | # Create an instance of the class from a hash 26 | # @param args [Hash] Hash containing all the required attributes 27 | # @return [Line::Bot::V2::Webhook::MembershipContent] Instance of the class 28 | def self.create: (Hash[Symbol, untyped]) -> MembershipContent 29 | 30 | # @param other [Object] Object to compare 31 | # @return [Boolean] true if the objects are equal, false otherwise 32 | def ==: (untyped other) -> bool 33 | 34 | # @return [Integer] Hash code of the object 35 | def hash: () -> Integer 36 | 37 | private 38 | 39 | def self.detect_class: (type: String) -> Class? 40 | end 41 | end 42 | end 43 | end 44 | end 45 | -------------------------------------------------------------------------------- /sig/line/bot/v2/webhook/model/mention.rbs: -------------------------------------------------------------------------------- 1 | # Webhook Type Definition 2 | # Webhook event definition of the LINE Messaging API 3 | # 4 | # The version of the OpenAPI document: 1.0.0 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 Webhook 14 | class Mention 15 | attr_accessor mentionees: Array[Mentionee] 16 | 17 | 18 | # @param mentionees [Array[Mentionee, Hash[Symbol, untyped]]] Array of one or more mention objects. Max: 20 mentions 19 | def initialize: ( 20 | mentionees: Array[Mentionee| Hash[Symbol, untyped]], 21 | **untyped dynamic_attributes 22 | ) -> void 23 | 24 | # Create an instance of the class from a hash 25 | # @param args [Hash] Hash containing all the required attributes 26 | # @return [Line::Bot::V2::Webhook::Mention] Instance of the class 27 | def self.create: (Hash[Symbol, untyped]) -> Mention 28 | 29 | # @param other [Object] Object to compare 30 | # @return [Boolean] true if the objects are equal, false otherwise 31 | def ==: (untyped other) -> bool 32 | 33 | # @return [Integer] Hash code of the object 34 | def hash: () -> Integer 35 | end 36 | end 37 | end 38 | end 39 | end 40 | -------------------------------------------------------------------------------- /sig/line/bot/v2/webhook/model/module_content.rbs: -------------------------------------------------------------------------------- 1 | # Webhook Type Definition 2 | # Webhook event definition of the LINE Messaging API 3 | # 4 | # The version of the OpenAPI document: 1.0.0 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 Webhook 14 | class ModuleContent 15 | attr_accessor type: String 16 | 17 | 18 | # @param type [String] Type 19 | def initialize: ( 20 | type: String, 21 | **untyped dynamic_attributes 22 | ) -> void 23 | 24 | # Create an instance of the class from a hash 25 | # @param args [Hash] Hash containing all the required attributes 26 | # @return [Line::Bot::V2::Webhook::ModuleContent] Instance of the class 27 | def self.create: (Hash[Symbol, untyped]) -> ModuleContent 28 | 29 | # @param other [Object] Object to compare 30 | # @return [Boolean] true if the objects are equal, false otherwise 31 | def ==: (untyped other) -> bool 32 | 33 | # @return [Integer] Hash code of the object 34 | def hash: () -> Integer 35 | 36 | private 37 | 38 | def self.detect_class: (type: String) -> Class? 39 | end 40 | end 41 | end 42 | end 43 | end 44 | -------------------------------------------------------------------------------- /sig/line/bot/v2/webhook/model/pnp_delivery.rbs: -------------------------------------------------------------------------------- 1 | # Webhook Type Definition 2 | # Webhook event definition of the LINE Messaging API 3 | # 4 | # The version of the OpenAPI document: 1.0.0 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 Webhook 14 | # A delivery object containing a hashed phone number string or a string specified by `X-Line-Delivery-Tag` header 15 | class PnpDelivery 16 | attr_accessor data: String 17 | 18 | 19 | # @param data [String] A hashed phone number string or a string specified by `X-Line-Delivery-Tag` header 20 | def initialize: ( 21 | data: String, 22 | **untyped dynamic_attributes 23 | ) -> void 24 | 25 | # Create an instance of the class from a hash 26 | # @param args [Hash] Hash containing all the required attributes 27 | # @return [Line::Bot::V2::Webhook::PnpDelivery] Instance of the class 28 | def self.create: (Hash[Symbol, untyped]) -> PnpDelivery 29 | 30 | # @param other [Object] Object to compare 31 | # @return [Boolean] true if the objects are equal, false otherwise 32 | def ==: (untyped other) -> bool 33 | 34 | # @return [Integer] Hash code of the object 35 | def hash: () -> Integer 36 | end 37 | end 38 | end 39 | end 40 | end 41 | -------------------------------------------------------------------------------- /sig/line/bot/v2/webhook/model/postback_content.rbs: -------------------------------------------------------------------------------- 1 | # Webhook Type Definition 2 | # Webhook event definition of the LINE Messaging API 3 | # 4 | # The version of the OpenAPI document: 1.0.0 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 Webhook 14 | class PostbackContent 15 | attr_accessor data: String 16 | attr_accessor params: Object? 17 | 18 | 19 | # @param data [String] Postback data 20 | # @param params [Object,nil] 21 | def initialize: ( 22 | data: String, 23 | ?params: Object?, 24 | **untyped dynamic_attributes 25 | ) -> void 26 | 27 | # Create an instance of the class from a hash 28 | # @param args [Hash] Hash containing all the required attributes 29 | # @return [Line::Bot::V2::Webhook::PostbackContent] Instance of the class 30 | def self.create: (Hash[Symbol, untyped]) -> PostbackContent 31 | 32 | # @param other [Object] Object to compare 33 | # @return [Boolean] true if the objects are equal, false otherwise 34 | def ==: (untyped other) -> bool 35 | 36 | # @return [Integer] Hash code of the object 37 | def hash: () -> Integer 38 | end 39 | end 40 | end 41 | end 42 | end 43 | -------------------------------------------------------------------------------- /sig/line/bot/v2/webhook/model/renewed_membership_content.rbs: -------------------------------------------------------------------------------- 1 | # Webhook Type Definition 2 | # Webhook event definition of the LINE Messaging API 3 | # 4 | # The version of the OpenAPI document: 1.0.0 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 Webhook 14 | class RenewedMembershipContent < MembershipContent 15 | attr_reader type: String 16 | attr_accessor membership_id: Integer 17 | 18 | 19 | # @param membership_id [Integer] The ID of the membership that the user renewed. This is defined for each membership. 20 | def initialize: ( 21 | membership_id: Integer, 22 | **untyped dynamic_attributes 23 | ) -> void 24 | 25 | # Create an instance of the class from a hash 26 | # @param args [Hash] Hash containing all the required attributes 27 | # @return [Line::Bot::V2::Webhook::RenewedMembershipContent] Instance of the class 28 | def self.create: (Hash[Symbol, untyped]) -> RenewedMembershipContent 29 | 30 | # @param other [Object] Object to compare 31 | # @return [Boolean] true if the objects are equal, false otherwise 32 | def ==: (untyped other) -> bool 33 | 34 | # @return [Integer] Hash code of the object 35 | def hash: () -> Integer 36 | end 37 | end 38 | end 39 | end 40 | end 41 | -------------------------------------------------------------------------------- /sig/line/bot/v2/webhook/model/source.rbs: -------------------------------------------------------------------------------- 1 | # Webhook Type Definition 2 | # Webhook event definition of the LINE Messaging API 3 | # 4 | # The version of the OpenAPI document: 1.0.0 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 Webhook 14 | # the source of the event. 15 | # @see https://developers.line.biz/en/reference/messaging-api/#source-user 16 | class Source 17 | attr_accessor type: String 18 | 19 | 20 | # @param type [String] source type 21 | def initialize: ( 22 | type: String, 23 | **untyped dynamic_attributes 24 | ) -> void 25 | 26 | # Create an instance of the class from a hash 27 | # @param args [Hash] Hash containing all the required attributes 28 | # @return [Line::Bot::V2::Webhook::Source] Instance of the class 29 | def self.create: (Hash[Symbol, untyped]) -> Source 30 | 31 | # @param other [Object] Object to compare 32 | # @return [Boolean] true if the objects are equal, false otherwise 33 | def ==: (untyped other) -> bool 34 | 35 | # @return [Integer] Hash code of the object 36 | def hash: () -> Integer 37 | 38 | private 39 | 40 | def self.detect_class: (type: String) -> Class? 41 | end 42 | end 43 | end 44 | end 45 | end 46 | -------------------------------------------------------------------------------- /sig/line/bot/v2/webhook/model/things_content.rbs: -------------------------------------------------------------------------------- 1 | # Webhook Type Definition 2 | # Webhook event definition of the LINE Messaging API 3 | # 4 | # The version of the OpenAPI document: 1.0.0 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 Webhook 14 | class ThingsContent 15 | attr_accessor type: String 16 | 17 | 18 | # @param type [String] Type 19 | def initialize: ( 20 | type: String, 21 | **untyped dynamic_attributes 22 | ) -> void 23 | 24 | # Create an instance of the class from a hash 25 | # @param args [Hash] Hash containing all the required attributes 26 | # @return [Line::Bot::V2::Webhook::ThingsContent] Instance of the class 27 | def self.create: (Hash[Symbol, untyped]) -> ThingsContent 28 | 29 | # @param other [Object] Object to compare 30 | # @return [Boolean] true if the objects are equal, false otherwise 31 | def ==: (untyped other) -> bool 32 | 33 | # @return [Integer] Hash code of the object 34 | def hash: () -> Integer 35 | 36 | private 37 | 38 | def self.detect_class: (type: String) -> Class? 39 | end 40 | end 41 | end 42 | end 43 | end 44 | -------------------------------------------------------------------------------- /sig/line/bot/v2/webhook/model/unlink_things_content.rbs: -------------------------------------------------------------------------------- 1 | # Webhook Type Definition 2 | # Webhook event definition of the LINE Messaging API 3 | # 4 | # The version of the OpenAPI document: 1.0.0 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 Webhook 14 | class UnlinkThingsContent < ThingsContent 15 | attr_reader type: String 16 | attr_accessor device_id: String 17 | 18 | 19 | # @param device_id [String] Device ID of the device that has been linked with LINE. 20 | def initialize: ( 21 | device_id: String, 22 | **untyped dynamic_attributes 23 | ) -> void 24 | 25 | # Create an instance of the class from a hash 26 | # @param args [Hash] Hash containing all the required attributes 27 | # @return [Line::Bot::V2::Webhook::UnlinkThingsContent] Instance of the class 28 | def self.create: (Hash[Symbol, untyped]) -> UnlinkThingsContent 29 | 30 | # @param other [Object] Object to compare 31 | # @return [Boolean] true if the objects are equal, false otherwise 32 | def ==: (untyped other) -> bool 33 | 34 | # @return [Integer] Hash code of the object 35 | def hash: () -> Integer 36 | end 37 | end 38 | end 39 | end 40 | end 41 | -------------------------------------------------------------------------------- /sig/line/bot/v2/webhook/model/unsend_detail.rbs: -------------------------------------------------------------------------------- 1 | # Webhook Type Definition 2 | # Webhook event definition of the LINE Messaging API 3 | # 4 | # The version of the OpenAPI document: 1.0.0 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 Webhook 14 | class UnsendDetail 15 | attr_accessor message_id: String 16 | 17 | 18 | # @param message_id [String] The message ID of the unsent message 19 | def initialize: ( 20 | message_id: String, 21 | **untyped dynamic_attributes 22 | ) -> void 23 | 24 | # Create an instance of the class from a hash 25 | # @param args [Hash] Hash containing all the required attributes 26 | # @return [Line::Bot::V2::Webhook::UnsendDetail] Instance of the class 27 | def self.create: (Hash[Symbol, untyped]) -> UnsendDetail 28 | 29 | # @param other [Object] Object to compare 30 | # @return [Boolean] true if the objects are equal, false otherwise 31 | def ==: (untyped other) -> bool 32 | 33 | # @return [Integer] Hash code of the object 34 | def hash: () -> Integer 35 | end 36 | end 37 | end 38 | end 39 | end 40 | -------------------------------------------------------------------------------- /sig/line/bot/v2/webhook/model/user_source.rbs: -------------------------------------------------------------------------------- 1 | # Webhook Type Definition 2 | # Webhook event definition of the LINE Messaging API 3 | # 4 | # The version of the OpenAPI document: 1.0.0 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 Webhook 14 | class UserSource < Source 15 | attr_reader type: String 16 | attr_accessor user_id: String? 17 | 18 | 19 | # @param user_id [String,nil] ID of the source user 20 | def initialize: ( 21 | ?user_id: String?, 22 | **untyped dynamic_attributes 23 | ) -> void 24 | 25 | # Create an instance of the class from a hash 26 | # @param args [Hash] Hash containing all the required attributes 27 | # @return [Line::Bot::V2::Webhook::UserSource] Instance of the class 28 | def self.create: (Hash[Symbol, untyped]) -> UserSource 29 | 30 | # @param other [Object] Object to compare 31 | # @return [Boolean] true if the objects are equal, false otherwise 32 | def ==: (untyped other) -> bool 33 | 34 | # @return [Integer] Hash code of the object 35 | def hash: () -> Integer 36 | end 37 | end 38 | end 39 | end 40 | end 41 | -------------------------------------------------------------------------------- /sig/line/bot/v2/webhook/model/video_play_complete.rbs: -------------------------------------------------------------------------------- 1 | # Webhook Type Definition 2 | # Webhook event definition of the LINE Messaging API 3 | # 4 | # The version of the OpenAPI document: 1.0.0 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 Webhook 14 | class VideoPlayComplete 15 | attr_accessor tracking_id: String 16 | 17 | 18 | # @param tracking_id [String] ID used to identify a video. Returns the same value as the trackingId assigned to the video message. 19 | def initialize: ( 20 | tracking_id: String, 21 | **untyped dynamic_attributes 22 | ) -> void 23 | 24 | # Create an instance of the class from a hash 25 | # @param args [Hash] Hash containing all the required attributes 26 | # @return [Line::Bot::V2::Webhook::VideoPlayComplete] Instance of the class 27 | def self.create: (Hash[Symbol, untyped]) -> VideoPlayComplete 28 | 29 | # @param other [Object] Object to compare 30 | # @return [Boolean] true if the objects are equal, false otherwise 31 | def ==: (untyped other) -> bool 32 | 33 | # @return [Integer] Hash code of the object 34 | def hash: () -> Integer 35 | end 36 | end 37 | end 38 | end 39 | end 40 | -------------------------------------------------------------------------------- /sig/line/bot/v2/webhook_parser.rbs: -------------------------------------------------------------------------------- 1 | module Line 2 | module Bot 3 | module V2 4 | class WebhookParser 5 | class InvalidSignatureError < ::StandardError 6 | end 7 | @channel_secret: String 8 | 9 | def initialize: (channel_secret: String) -> void 10 | 11 | def parse: ( 12 | body: String, 13 | signature: String 14 | ) -> Array[Webhook::Event] 15 | 16 | private 17 | 18 | def verify_signature: (body: String, signature: String) -> bool 19 | 20 | def variable_secure_compare: (String, String) -> bool 21 | 22 | def secure_compare: (String, String) -> bool 23 | end 24 | end 25 | end 26 | end 27 | -------------------------------------------------------------------------------- /sig/line/bot/version.rbs: -------------------------------------------------------------------------------- 1 | module Line 2 | module Bot 3 | VERSION: String 4 | end 5 | end 6 | -------------------------------------------------------------------------------- /spec/fixtures/line/bot/v2/sample_user_ids.txt: -------------------------------------------------------------------------------- 1 | U4af4980627... 2 | U4af4980628... 3 | U4af4980629... 4 | -------------------------------------------------------------------------------- /spec/fixtures/line/bot/v2/test-image.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/line/line-bot-sdk-ruby/82dca15b40406333f06bc158a8e0deb92333b3ce/spec/fixtures/line/bot/v2/test-image.jpeg -------------------------------------------------------------------------------- /spec/line/bot/api/spec.rb: -------------------------------------------------------------------------------- 1 | require 'spec_helper' 2 | 3 | describe 'Line::Bot' do 4 | it 'has a version number' do 5 | expect(Line::Bot::VERSION).not_to be nil 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /spec/line/bot/line_bot_api_gem_spec.rb: -------------------------------------------------------------------------------- 1 | # spec/line_bot_load_spec.rb 2 | # This file uses the shared examples to test both "line-bot-api" and "line/bot". 3 | 4 | require 'rspec' 5 | require_relative '../../shared/no_missing_require_spec' 6 | 7 | ROOT_DIR = File.expand_path('../../../', __dir__) 8 | LIB_DIR = File.join(ROOT_DIR, 'lib') 9 | 10 | PATH_LINE_BOT_API = File.join(LIB_DIR, 'line-bot-api.rb') 11 | 12 | RSpec.describe "Check require statements for multiple entrypoints" do 13 | context "testing line-bot-api entrypoint" do 14 | include_examples "library entrypoint loader", 15 | "line-bot-api", 16 | PATH_LINE_BOT_API, 17 | LIB_DIR 18 | end 19 | end 20 | -------------------------------------------------------------------------------- /spec/line/bot/line_bot_gem_spec.rb: -------------------------------------------------------------------------------- 1 | # spec/line_bot_load_spec.rb 2 | # This file uses the shared examples to test both "line-bot-api" and "line/bot". 3 | 4 | require 'rspec' 5 | require_relative '../../shared/no_missing_require_spec' 6 | 7 | ROOT_DIR = File.expand_path('../../../', __dir__) 8 | LIB_DIR = File.join(ROOT_DIR, 'lib') 9 | 10 | PATH_LINE_BOT_RB = File.join(LIB_DIR, 'line/bot.rb') 11 | 12 | RSpec.describe "Check require statements for multiple entrypoints" do 13 | context "testing line/bot entrypoint" do 14 | include_examples "library entrypoint loader", 15 | "line/bot", 16 | PATH_LINE_BOT_RB, 17 | LIB_DIR 18 | end 19 | end 20 | -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- 1 | $LOAD_PATH.unshift File.expand_path('../lib', __dir__) 2 | 3 | require 'webmock/rspec' 4 | 5 | require 'line-bot-api' 6 | --------------------------------------------------------------------------------