sunshine-conversations-client 12.3.1 → 12.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG_RB.md +12 -0
- data/README.md +8 -5
- data/docs/Android.md +7 -1
- data/docs/AndroidAllOf.md +7 -1
- data/docs/AndroidUpdate.md +6 -0
- data/docs/AndroidUpdateAllOf.md +7 -1
- data/docs/DeviceResponse.md +17 -0
- data/docs/DevicesApi.md +132 -0
- data/docs/IntegrationUpdate.md +6 -0
- data/lib/sunshine-conversations-client/api/activities_api.rb +1 -1
- data/lib/sunshine-conversations-client/api/app_keys_api.rb +1 -1
- data/lib/sunshine-conversations-client/api/apps_api.rb +1 -1
- data/lib/sunshine-conversations-client/api/attachments_api.rb +1 -1
- data/lib/sunshine-conversations-client/api/clients_api.rb +1 -1
- data/lib/sunshine-conversations-client/api/conversations_api.rb +1 -1
- data/lib/sunshine-conversations-client/api/custom_integration_api_keys_api.rb +1 -1
- data/lib/sunshine-conversations-client/api/devices_api.rb +161 -0
- data/lib/sunshine-conversations-client/api/integrations_api.rb +1 -1
- data/lib/sunshine-conversations-client/api/messages_api.rb +1 -1
- data/lib/sunshine-conversations-client/api/o_auth_endpoints_api.rb +1 -1
- data/lib/sunshine-conversations-client/api/participants_api.rb +1 -1
- data/lib/sunshine-conversations-client/api/switchboard_actions_api.rb +1 -1
- data/lib/sunshine-conversations-client/api/switchboard_integrations_api.rb +1 -1
- data/lib/sunshine-conversations-client/api/switchboards_api.rb +1 -1
- data/lib/sunshine-conversations-client/api/users_api.rb +1 -1
- data/lib/sunshine-conversations-client/api/webhooks_api.rb +1 -1
- data/lib/sunshine-conversations-client/api_client.rb +1 -1
- data/lib/sunshine-conversations-client/api_error.rb +1 -1
- data/lib/sunshine-conversations-client/configuration.rb +1 -1
- data/lib/sunshine-conversations-client/models/accept_control_body.rb +1 -1
- data/lib/sunshine-conversations-client/models/action.rb +1 -1
- data/lib/sunshine-conversations-client/models/action_subset.rb +1 -1
- data/lib/sunshine-conversations-client/models/activity.rb +1 -1
- data/lib/sunshine-conversations-client/models/activity_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/activity_post.rb +1 -1
- data/lib/sunshine-conversations-client/models/activity_post_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/activity_types.rb +1 -1
- data/lib/sunshine-conversations-client/models/android.rb +81 -3
- data/lib/sunshine-conversations-client/models/android_all_of.rb +81 -3
- data/lib/sunshine-conversations-client/models/android_update.rb +80 -2
- data/lib/sunshine-conversations-client/models/android_update_all_of.rb +80 -2
- data/lib/sunshine-conversations-client/models/api_key.rb +1 -1
- data/lib/sunshine-conversations-client/models/app.rb +1 -1
- data/lib/sunshine-conversations-client/models/app_create_body.rb +1 -1
- data/lib/sunshine-conversations-client/models/app_key.rb +1 -1
- data/lib/sunshine-conversations-client/models/app_key_create_body.rb +1 -1
- data/lib/sunshine-conversations-client/models/app_key_list_response.rb +1 -1
- data/lib/sunshine-conversations-client/models/app_key_response.rb +1 -1
- data/lib/sunshine-conversations-client/models/app_list_filter.rb +1 -1
- data/lib/sunshine-conversations-client/models/app_list_response.rb +1 -1
- data/lib/sunshine-conversations-client/models/app_response.rb +1 -1
- data/lib/sunshine-conversations-client/models/app_settings.rb +1 -1
- data/lib/sunshine-conversations-client/models/app_sub_schema.rb +1 -1
- data/lib/sunshine-conversations-client/models/app_update_body.rb +1 -1
- data/lib/sunshine-conversations-client/models/apple.rb +1 -1
- data/lib/sunshine-conversations-client/models/apple_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/apple_update.rb +1 -1
- data/lib/sunshine-conversations-client/models/attachment_delete_body.rb +1 -1
- data/lib/sunshine-conversations-client/models/attachment_media_token_body.rb +1 -1
- data/lib/sunshine-conversations-client/models/attachment_media_token_response.rb +1 -1
- data/lib/sunshine-conversations-client/models/attachment_response.rb +1 -1
- data/lib/sunshine-conversations-client/models/attachment_schema.rb +1 -1
- data/lib/sunshine-conversations-client/models/attachment_upload_body.rb +1 -1
- data/lib/sunshine-conversations-client/models/author.rb +1 -1
- data/lib/sunshine-conversations-client/models/author_webhook.rb +1 -1
- data/lib/sunshine-conversations-client/models/buy.rb +1 -1
- data/lib/sunshine-conversations-client/models/campaign.rb +1 -1
- data/lib/sunshine-conversations-client/models/carousel_message.rb +1 -1
- data/lib/sunshine-conversations-client/models/carousel_message_display_settings.rb +1 -1
- data/lib/sunshine-conversations-client/models/client.rb +1 -1
- data/lib/sunshine-conversations-client/models/client_add_event.rb +1 -1
- data/lib/sunshine-conversations-client/models/client_add_event_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/client_add_event_all_of_payload.rb +1 -1
- data/lib/sunshine-conversations-client/models/client_association.rb +1 -1
- data/lib/sunshine-conversations-client/models/client_create.rb +1 -1
- data/lib/sunshine-conversations-client/models/client_list_response.rb +1 -1
- data/lib/sunshine-conversations-client/models/client_remove_event.rb +1 -1
- data/lib/sunshine-conversations-client/models/client_remove_event_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/client_remove_event_all_of_payload.rb +1 -1
- data/lib/sunshine-conversations-client/models/client_response.rb +1 -1
- data/lib/sunshine-conversations-client/models/client_type.rb +1 -1
- data/lib/sunshine-conversations-client/models/client_update_event.rb +1 -1
- data/lib/sunshine-conversations-client/models/client_update_event_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/client_update_event_all_of_payload.rb +1 -1
- data/lib/sunshine-conversations-client/models/confirmation.rb +1 -1
- data/lib/sunshine-conversations-client/models/content.rb +1 -1
- data/lib/sunshine-conversations-client/models/conversation.rb +1 -1
- data/lib/sunshine-conversations-client/models/conversation_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/conversation_create_body.rb +1 -1
- data/lib/sunshine-conversations-client/models/conversation_create_event.rb +1 -1
- data/lib/sunshine-conversations-client/models/conversation_create_event_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/conversation_create_event_all_of_payload.rb +1 -1
- data/lib/sunshine-conversations-client/models/conversation_join_event.rb +1 -1
- data/lib/sunshine-conversations-client/models/conversation_join_event_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/conversation_join_event_all_of_payload.rb +1 -1
- data/lib/sunshine-conversations-client/models/conversation_leave_event.rb +1 -1
- data/lib/sunshine-conversations-client/models/conversation_leave_event_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/conversation_leave_event_all_of_payload.rb +1 -1
- data/lib/sunshine-conversations-client/models/conversation_list_filter.rb +1 -1
- data/lib/sunshine-conversations-client/models/conversation_list_response.rb +1 -1
- data/lib/sunshine-conversations-client/models/conversation_message_delivery_channel_event.rb +1 -1
- data/lib/sunshine-conversations-client/models/conversation_message_delivery_channel_event_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/conversation_message_delivery_failure_event.rb +1 -1
- data/lib/sunshine-conversations-client/models/conversation_message_delivery_failure_event_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/conversation_message_delivery_payload.rb +1 -1
- data/lib/sunshine-conversations-client/models/conversation_message_delivery_payload_destination.rb +1 -1
- data/lib/sunshine-conversations-client/models/conversation_message_delivery_payload_external_messages.rb +1 -1
- data/lib/sunshine-conversations-client/models/conversation_message_delivery_payload_message.rb +1 -1
- data/lib/sunshine-conversations-client/models/conversation_message_delivery_user_event.rb +1 -1
- data/lib/sunshine-conversations-client/models/conversation_message_event.rb +1 -1
- data/lib/sunshine-conversations-client/models/conversation_message_event_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/conversation_message_event_all_of_payload.rb +1 -1
- data/lib/sunshine-conversations-client/models/conversation_postback_event.rb +1 -1
- data/lib/sunshine-conversations-client/models/conversation_postback_event_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/conversation_postback_event_all_of_payload.rb +1 -1
- data/lib/sunshine-conversations-client/models/conversation_read_event.rb +1 -1
- data/lib/sunshine-conversations-client/models/conversation_read_event_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/conversation_read_event_all_of_payload.rb +1 -1
- data/lib/sunshine-conversations-client/models/conversation_referral_event.rb +1 -1
- data/lib/sunshine-conversations-client/models/conversation_referral_event_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/conversation_referral_event_all_of_payload.rb +1 -1
- data/lib/sunshine-conversations-client/models/conversation_remove_event.rb +1 -1
- data/lib/sunshine-conversations-client/models/conversation_remove_event_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/conversation_remove_event_all_of_payload.rb +1 -1
- data/lib/sunshine-conversations-client/models/conversation_response.rb +1 -1
- data/lib/sunshine-conversations-client/models/conversation_truncated.rb +1 -1
- data/lib/sunshine-conversations-client/models/conversation_type.rb +1 -1
- data/lib/sunshine-conversations-client/models/conversation_typing_event.rb +1 -1
- data/lib/sunshine-conversations-client/models/conversation_typing_event_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/conversation_typing_event_all_of_payload.rb +1 -1
- data/lib/sunshine-conversations-client/models/conversation_update_body.rb +1 -1
- data/lib/sunshine-conversations-client/models/custom.rb +1 -1
- data/lib/sunshine-conversations-client/models/custom_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/custom_update.rb +1 -1
- data/lib/sunshine-conversations-client/models/destination.rb +1 -1
- data/lib/sunshine-conversations-client/models/device.rb +1 -1
- data/lib/sunshine-conversations-client/models/device_response.rb +204 -0
- data/lib/sunshine-conversations-client/models/event_sub_schema.rb +1 -1
- data/lib/sunshine-conversations-client/models/extra_channel_options.rb +1 -1
- data/lib/sunshine-conversations-client/models/extra_channel_options_messenger.rb +1 -1
- data/lib/sunshine-conversations-client/models/field.rb +1 -1
- data/lib/sunshine-conversations-client/models/file_message.rb +1 -1
- data/lib/sunshine-conversations-client/models/form_message.rb +1 -1
- data/lib/sunshine-conversations-client/models/form_message_field.rb +1 -1
- data/lib/sunshine-conversations-client/models/form_message_field_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/form_response_message.rb +1 -1
- data/lib/sunshine-conversations-client/models/form_response_message_field.rb +1 -1
- data/lib/sunshine-conversations-client/models/form_response_message_field_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/identity.rb +1 -1
- data/lib/sunshine-conversations-client/models/image_message.rb +1 -1
- data/lib/sunshine-conversations-client/models/inline_object.rb +1 -1
- data/lib/sunshine-conversations-client/models/instagram.rb +1 -1
- data/lib/sunshine-conversations-client/models/instagram_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/instagram_update.rb +1 -1
- data/lib/sunshine-conversations-client/models/instagram_update_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/integration.rb +1 -1
- data/lib/sunshine-conversations-client/models/integration_api_key.rb +1 -1
- data/lib/sunshine-conversations-client/models/integration_api_key_list_response.rb +1 -1
- data/lib/sunshine-conversations-client/models/integration_api_key_response.rb +1 -1
- data/lib/sunshine-conversations-client/models/integration_id.rb +1 -1
- data/lib/sunshine-conversations-client/models/integration_list_filter.rb +1 -1
- data/lib/sunshine-conversations-client/models/integration_list_response.rb +1 -1
- data/lib/sunshine-conversations-client/models/integration_response.rb +1 -1
- data/lib/sunshine-conversations-client/models/integration_type.rb +1 -1
- data/lib/sunshine-conversations-client/models/integration_update.rb +80 -2
- data/lib/sunshine-conversations-client/models/integration_update_base.rb +1 -1
- data/lib/sunshine-conversations-client/models/ios.rb +1 -1
- data/lib/sunshine-conversations-client/models/ios_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/ios_update.rb +1 -1
- data/lib/sunshine-conversations-client/models/ios_update_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/item.rb +1 -1
- data/lib/sunshine-conversations-client/models/line.rb +1 -1
- data/lib/sunshine-conversations-client/models/line_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/line_update.rb +1 -1
- data/lib/sunshine-conversations-client/models/link.rb +1 -1
- data/lib/sunshine-conversations-client/models/links.rb +1 -1
- data/lib/sunshine-conversations-client/models/list_message.rb +1 -1
- data/lib/sunshine-conversations-client/models/location_message.rb +1 -1
- data/lib/sunshine-conversations-client/models/location_message_coordinates.rb +1 -1
- data/lib/sunshine-conversations-client/models/location_message_location.rb +1 -1
- data/lib/sunshine-conversations-client/models/location_request.rb +1 -1
- data/lib/sunshine-conversations-client/models/mailgun.rb +1 -1
- data/lib/sunshine-conversations-client/models/mailgun_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/mailgun_update.rb +1 -1
- data/lib/sunshine-conversations-client/models/mailgun_update_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/match_criteria.rb +1 -1
- data/lib/sunshine-conversations-client/models/match_criteria_base.rb +1 -1
- data/lib/sunshine-conversations-client/models/match_criteria_mailgun.rb +1 -1
- data/lib/sunshine-conversations-client/models/match_criteria_mailgun_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/match_criteria_messagebird.rb +1 -1
- data/lib/sunshine-conversations-client/models/match_criteria_messagebird_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/match_criteria_twilio.rb +1 -1
- data/lib/sunshine-conversations-client/models/match_criteria_twilio_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/match_criteria_whatsapp.rb +1 -1
- data/lib/sunshine-conversations-client/models/match_criteria_whatsapp_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/message.rb +1 -1
- data/lib/sunshine-conversations-client/models/message_bird_update.rb +1 -1
- data/lib/sunshine-conversations-client/models/message_list_response.rb +1 -1
- data/lib/sunshine-conversations-client/models/message_override.rb +1 -1
- data/lib/sunshine-conversations-client/models/message_override_apple.rb +1 -1
- data/lib/sunshine-conversations-client/models/message_override_line.rb +1 -1
- data/lib/sunshine-conversations-client/models/message_override_messenger.rb +1 -1
- data/lib/sunshine-conversations-client/models/message_override_payload.rb +1 -1
- data/lib/sunshine-conversations-client/models/message_override_whatsapp.rb +1 -1
- data/lib/sunshine-conversations-client/models/message_post.rb +1 -1
- data/lib/sunshine-conversations-client/models/message_post_response.rb +1 -1
- data/lib/sunshine-conversations-client/models/message_webhook.rb +1 -1
- data/lib/sunshine-conversations-client/models/messagebird.rb +1 -1
- data/lib/sunshine-conversations-client/models/messagebird_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/messenger.rb +1 -1
- data/lib/sunshine-conversations-client/models/messenger_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/messenger_update.rb +1 -1
- data/lib/sunshine-conversations-client/models/meta.rb +1 -1
- data/lib/sunshine-conversations-client/models/offer_control_body.rb +1 -1
- data/lib/sunshine-conversations-client/models/page.rb +1 -1
- data/lib/sunshine-conversations-client/models/participant.rb +1 -1
- data/lib/sunshine-conversations-client/models/participant_join_body.rb +1 -1
- data/lib/sunshine-conversations-client/models/participant_leave_body.rb +1 -1
- data/lib/sunshine-conversations-client/models/participant_leave_body_participant_id.rb +1 -1
- data/lib/sunshine-conversations-client/models/participant_leave_body_user_external_id.rb +1 -1
- data/lib/sunshine-conversations-client/models/participant_leave_body_user_id.rb +1 -1
- data/lib/sunshine-conversations-client/models/participant_list_response.rb +1 -1
- data/lib/sunshine-conversations-client/models/participant_response.rb +1 -1
- data/lib/sunshine-conversations-client/models/participant_sub_schema.rb +1 -1
- data/lib/sunshine-conversations-client/models/participant_with_user_external_id.rb +1 -1
- data/lib/sunshine-conversations-client/models/participant_with_user_id.rb +1 -1
- data/lib/sunshine-conversations-client/models/pass_control_body.rb +1 -1
- data/lib/sunshine-conversations-client/models/postback.rb +1 -1
- data/lib/sunshine-conversations-client/models/postback_webhook.rb +1 -1
- data/lib/sunshine-conversations-client/models/prechat_capture.rb +1 -1
- data/lib/sunshine-conversations-client/models/profile.rb +1 -1
- data/lib/sunshine-conversations-client/models/quoted_message.rb +1 -1
- data/lib/sunshine-conversations-client/models/quoted_message_external_message_id.rb +1 -1
- data/lib/sunshine-conversations-client/models/quoted_message_message.rb +1 -1
- data/lib/sunshine-conversations-client/models/referral.rb +1 -1
- data/lib/sunshine-conversations-client/models/referral_details.rb +1 -1
- data/lib/sunshine-conversations-client/models/reply.rb +1 -1
- data/lib/sunshine-conversations-client/models/source.rb +1 -1
- data/lib/sunshine-conversations-client/models/source_webhook.rb +1 -1
- data/lib/sunshine-conversations-client/models/source_with_campaign_webhook.rb +1 -1
- data/lib/sunshine-conversations-client/models/source_with_campaign_webhook_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/status.rb +1 -1
- data/lib/sunshine-conversations-client/models/switchboard.rb +1 -1
- data/lib/sunshine-conversations-client/models/switchboard_accept_control.rb +1 -1
- data/lib/sunshine-conversations-client/models/switchboard_accept_control_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/switchboard_accept_control_all_of_payload.rb +1 -1
- data/lib/sunshine-conversations-client/models/switchboard_accept_control_failure.rb +1 -1
- data/lib/sunshine-conversations-client/models/switchboard_accept_control_failure_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/switchboard_accept_control_failure_all_of_payload.rb +1 -1
- data/lib/sunshine-conversations-client/models/switchboard_integration.rb +1 -1
- data/lib/sunshine-conversations-client/models/switchboard_integration_create_body.rb +1 -1
- data/lib/sunshine-conversations-client/models/switchboard_integration_list_response.rb +1 -1
- data/lib/sunshine-conversations-client/models/switchboard_integration_response.rb +1 -1
- data/lib/sunshine-conversations-client/models/switchboard_integration_update_body.rb +1 -1
- data/lib/sunshine-conversations-client/models/switchboard_integration_webhook.rb +1 -1
- data/lib/sunshine-conversations-client/models/switchboard_list_response.rb +1 -1
- data/lib/sunshine-conversations-client/models/switchboard_offer_control.rb +1 -1
- data/lib/sunshine-conversations-client/models/switchboard_offer_control_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/switchboard_offer_control_all_of_payload.rb +1 -1
- data/lib/sunshine-conversations-client/models/switchboard_offer_control_failure.rb +1 -1
- data/lib/sunshine-conversations-client/models/switchboard_pass_control.rb +1 -1
- data/lib/sunshine-conversations-client/models/switchboard_pass_control_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/switchboard_pass_control_all_of_payload.rb +1 -1
- data/lib/sunshine-conversations-client/models/switchboard_pass_control_failure.rb +1 -1
- data/lib/sunshine-conversations-client/models/switchboard_response.rb +1 -1
- data/lib/sunshine-conversations-client/models/switchboard_update_body.rb +1 -1
- data/lib/sunshine-conversations-client/models/target.rb +1 -1
- data/lib/sunshine-conversations-client/models/telegram.rb +1 -1
- data/lib/sunshine-conversations-client/models/telegram_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/telegram_update.rb +1 -1
- data/lib/sunshine-conversations-client/models/template_message.rb +1 -1
- data/lib/sunshine-conversations-client/models/text_message.rb +1 -1
- data/lib/sunshine-conversations-client/models/twilio.rb +1 -1
- data/lib/sunshine-conversations-client/models/twilio_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/twilio_update.rb +1 -1
- data/lib/sunshine-conversations-client/models/twitter.rb +1 -1
- data/lib/sunshine-conversations-client/models/twitter_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/twitter_update.rb +1 -1
- data/lib/sunshine-conversations-client/models/unity.rb +1 -1
- data/lib/sunshine-conversations-client/models/unity_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/unity_update.rb +1 -1
- data/lib/sunshine-conversations-client/models/unity_update_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/user.rb +1 -1
- data/lib/sunshine-conversations-client/models/user_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/user_create_body.rb +1 -1
- data/lib/sunshine-conversations-client/models/user_merge_event.rb +1 -1
- data/lib/sunshine-conversations-client/models/user_merge_event_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/user_merge_event_all_of_payload.rb +1 -1
- data/lib/sunshine-conversations-client/models/user_merge_event_all_of_payload_merged_clients.rb +1 -1
- data/lib/sunshine-conversations-client/models/user_merge_event_all_of_payload_merged_conversations.rb +1 -1
- data/lib/sunshine-conversations-client/models/user_merge_event_all_of_payload_merged_users.rb +1 -1
- data/lib/sunshine-conversations-client/models/user_response.rb +1 -1
- data/lib/sunshine-conversations-client/models/user_truncated.rb +1 -1
- data/lib/sunshine-conversations-client/models/user_update_body.rb +1 -1
- data/lib/sunshine-conversations-client/models/user_update_event.rb +1 -1
- data/lib/sunshine-conversations-client/models/user_update_event_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/user_update_event_all_of_payload.rb +1 -1
- data/lib/sunshine-conversations-client/models/viber.rb +1 -1
- data/lib/sunshine-conversations-client/models/viber_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/viber_update.rb +1 -1
- data/lib/sunshine-conversations-client/models/web.rb +1 -1
- data/lib/sunshine-conversations-client/models/web_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/web_update.rb +1 -1
- data/lib/sunshine-conversations-client/models/web_update_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/webhook.rb +1 -1
- data/lib/sunshine-conversations-client/models/webhook_body.rb +1 -1
- data/lib/sunshine-conversations-client/models/webhook_create_body.rb +1 -1
- data/lib/sunshine-conversations-client/models/webhook_list_response.rb +1 -1
- data/lib/sunshine-conversations-client/models/webhook_response.rb +1 -1
- data/lib/sunshine-conversations-client/models/webhook_sub_schema.rb +1 -1
- data/lib/sunshine-conversations-client/models/webview.rb +1 -1
- data/lib/sunshine-conversations-client/models/whats_app_update.rb +1 -1
- data/lib/sunshine-conversations-client/models/whats_app_update_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/models/whatsapp.rb +1 -1
- data/lib/sunshine-conversations-client/models/whatsapp_all_of.rb +1 -1
- data/lib/sunshine-conversations-client/version.rb +2 -2
- data/lib/sunshine-conversations-client.rb +3 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- data/sunshine-conversations-client.gemspec +1 -1
- metadata +6 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dab15fa37a1e37b7cde889379492a89de327d3f0
|
|
4
|
+
data.tar.gz: e06b626a424572401b1f569be57a645d3e6bbd8a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8c38c5594bf76939a709198f897c63167e0d0804fc80963b275fae2f5d2a0292b8d917f291a0432acb5a046724e30b594ff904581eb46b3a1353ec1ae7bc44da
|
|
7
|
+
data.tar.gz: b835fe404b4a81a481119aa2d7764aef9a8c3b34ad6f1e25be876995efd9dd0c3db625b069be8aa63c69e0472d0d3070f41cfce2fa5557c3f7a140a1d891bcfc
|
data/CHANGELOG_RB.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [12.5.0] - 2024-05-01
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- Added `Devices` endpoint to the Users API.
|
|
8
|
+
|
|
9
|
+
## [12.4.0] - 2024-04-24
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- Changed Android integration creation and update: added properties for new Firebase credentials and deprecated legacy properties
|
|
14
|
+
|
|
3
15
|
## [12.3.1] - 2024-03-07
|
|
4
16
|
|
|
5
17
|
### Fixed
|
data/README.md
CHANGED
|
@@ -4,8 +4,8 @@ SunshineConversationsClient - the Ruby gem for the Sunshine Conversations API
|
|
|
4
4
|
|
|
5
5
|
This SDK is automatically generated by the [OpenAPI Generator Codegen](https://github.com/OpenAPITools/openapi-generator) project using the [Sunshine Conversations API spec](https://github.com/zendesk/sunshine-conversations-api-spec).
|
|
6
6
|
|
|
7
|
-
- API version: 12.
|
|
8
|
-
- Package version: 12.
|
|
7
|
+
- API version: 12.5.0
|
|
8
|
+
- Package version: 12.5.0
|
|
9
9
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
10
10
|
|
|
11
11
|
## Sunshine Conversations API Version
|
|
@@ -32,16 +32,16 @@ gem build sunshine-conversations-client.gemspec
|
|
|
32
32
|
Then either install the gem locally:
|
|
33
33
|
|
|
34
34
|
```shell
|
|
35
|
-
gem install ./sunshine-conversations-client-12.
|
|
35
|
+
gem install ./sunshine-conversations-client-12.5.0.gem
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
(for development, run `gem install --dev ./sunshine-conversations-client-12.
|
|
38
|
+
(for development, run `gem install --dev ./sunshine-conversations-client-12.5.0.gem` to install the development dependencies)
|
|
39
39
|
|
|
40
40
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
41
41
|
|
|
42
42
|
Finally add this to the Gemfile:
|
|
43
43
|
|
|
44
|
-
gem 'sunshine-conversations-client', '~> 12.
|
|
44
|
+
gem 'sunshine-conversations-client', '~> 12.5.0'
|
|
45
45
|
|
|
46
46
|
### Install from Git
|
|
47
47
|
|
|
@@ -157,6 +157,8 @@ Class | Method | HTTP request | Description
|
|
|
157
157
|
*SunshineConversationsClient::CustomIntegrationApiKeysApi* | [**delete_custom_integration_key**](docs/CustomIntegrationApiKeysApi.md#delete_custom_integration_key) | **DELETE** /v2/apps/{appId}/integrations/{integrationId}/keys/{keyId} | Delete Integration Key
|
|
158
158
|
*SunshineConversationsClient::CustomIntegrationApiKeysApi* | [**get_custom_integration_key**](docs/CustomIntegrationApiKeysApi.md#get_custom_integration_key) | **GET** /v2/apps/{appId}/integrations/{integrationId}/keys/{keyId} | Get Integration Key
|
|
159
159
|
*SunshineConversationsClient::CustomIntegrationApiKeysApi* | [**list_custom_integration_keys**](docs/CustomIntegrationApiKeysApi.md#list_custom_integration_keys) | **GET** /v2/apps/{appId}/integrations/{integrationId}/keys | List Integration Keys
|
|
160
|
+
*SunshineConversationsClient::DevicesApi* | [**get_device**](docs/DevicesApi.md#get_device) | **GET** /v2/apps/{appId}/users/{userIdOrExternalId}/devices/{deviceId} | Get Device
|
|
161
|
+
*SunshineConversationsClient::DevicesApi* | [**list_devices**](docs/DevicesApi.md#list_devices) | **GET** /v2/apps/{appId}/users/{userIdOrExternalId}/devices | List Devices
|
|
160
162
|
*SunshineConversationsClient::IntegrationsApi* | [**create_integration**](docs/IntegrationsApi.md#create_integration) | **POST** /v2/apps/{appId}/integrations | Create Integration
|
|
161
163
|
*SunshineConversationsClient::IntegrationsApi* | [**delete_integration**](docs/IntegrationsApi.md#delete_integration) | **DELETE** /v2/apps/{appId}/integrations/{integrationId} | Delete Integration
|
|
162
164
|
*SunshineConversationsClient::IntegrationsApi* | [**get_integration**](docs/IntegrationsApi.md#get_integration) | **GET** /v2/apps/{appId}/integrations/{integrationId} | Get Integration
|
|
@@ -305,6 +307,7 @@ Class | Method | HTTP request | Description
|
|
|
305
307
|
- [SunshineConversationsClient::CustomUpdate](docs/CustomUpdate.md)
|
|
306
308
|
- [SunshineConversationsClient::Destination](docs/Destination.md)
|
|
307
309
|
- [SunshineConversationsClient::Device](docs/Device.md)
|
|
310
|
+
- [SunshineConversationsClient::DeviceResponse](docs/DeviceResponse.md)
|
|
308
311
|
- [SunshineConversationsClient::EventSubSchema](docs/EventSubSchema.md)
|
|
309
312
|
- [SunshineConversationsClient::ExtraChannelOptions](docs/ExtraChannelOptions.md)
|
|
310
313
|
- [SunshineConversationsClient::ExtraChannelOptionsMessenger](docs/ExtraChannelOptionsMessenger.md)
|
data/docs/Android.md
CHANGED
|
@@ -4,7 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**type** | **String** | To configure an android integration, first visit the [Firebase Console](https://console.firebase.google.com/). Copy the `
|
|
7
|
+
**type** | **String** | <aside class=\"notice\">Firebase Cloud Messaging has deprecated its legacy APIs for HTTP and XMPP. Legacy credentials <code>serverKey</code> and <code>senderId</code> will stop working as of June 2024 and must be replaced with OAuth 2.0 access token based credentials.</aside> To configure an android integration, first visit the [Firebase Console](https://console.firebase.google.com/). Generate a private key from the Service accounts tab in the settings. Copy the `project_id`, `client_email` and `private_key` from the generated JSON file and call the create integrations endpoint with this data. | [optional] [default to 'android']
|
|
8
|
+
**project_id** | **String** | Your project ID from your generated private key file. | [optional]
|
|
9
|
+
**client_email** | **String** | Your client email from your generated private key file. | [optional]
|
|
10
|
+
**private_key** | **String** | Your private key from your generated private key file. | [optional]
|
|
8
11
|
**server_key** | **String** | Your server key from the fcm console. | [optional]
|
|
9
12
|
**sender_id** | **String** | Your sender id from the fcm console. | [optional]
|
|
10
13
|
**can_user_create_more_conversations** | **Boolean** | Allows users to create more than one conversation on the android integration. | [optional]
|
|
@@ -16,6 +19,9 @@ Name | Type | Description | Notes
|
|
|
16
19
|
require 'SunshineConversationsClient'
|
|
17
20
|
|
|
18
21
|
instance = SunshineConversationsClient::Android.new(type: null,
|
|
22
|
+
project_id: <project-id>,
|
|
23
|
+
client_email: <client-email>,
|
|
24
|
+
private_key: <private-key>,
|
|
19
25
|
server_key: <server-key>,
|
|
20
26
|
sender_id: <sender-id>,
|
|
21
27
|
can_user_create_more_conversations: null,
|
data/docs/AndroidAllOf.md
CHANGED
|
@@ -4,7 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**type** | **String** | To configure an android integration, first visit the [Firebase Console](https://console.firebase.google.com/). Copy the `
|
|
7
|
+
**type** | **String** | <aside class=\"notice\">Firebase Cloud Messaging has deprecated its legacy APIs for HTTP and XMPP. Legacy credentials <code>serverKey</code> and <code>senderId</code> will stop working as of June 2024 and must be replaced with OAuth 2.0 access token based credentials.</aside> To configure an android integration, first visit the [Firebase Console](https://console.firebase.google.com/). Generate a private key from the Service accounts tab in the settings. Copy the `project_id`, `client_email` and `private_key` from the generated JSON file and call the create integrations endpoint with this data. | [optional] [default to 'android']
|
|
8
|
+
**project_id** | **String** | Your project ID from your generated private key file. | [optional]
|
|
9
|
+
**client_email** | **String** | Your client email from your generated private key file. | [optional]
|
|
10
|
+
**private_key** | **String** | Your private key from your generated private key file. | [optional]
|
|
8
11
|
**server_key** | **String** | Your server key from the fcm console. | [optional]
|
|
9
12
|
**sender_id** | **String** | Your sender id from the fcm console. | [optional]
|
|
10
13
|
**can_user_create_more_conversations** | **Boolean** | Allows users to create more than one conversation on the android integration. | [optional]
|
|
@@ -16,6 +19,9 @@ Name | Type | Description | Notes
|
|
|
16
19
|
require 'SunshineConversationsClient'
|
|
17
20
|
|
|
18
21
|
instance = SunshineConversationsClient::AndroidAllOf.new(type: null,
|
|
22
|
+
project_id: <project-id>,
|
|
23
|
+
client_email: <client-email>,
|
|
24
|
+
private_key: <private-key>,
|
|
19
25
|
server_key: <server-key>,
|
|
20
26
|
sender_id: <sender-id>,
|
|
21
27
|
can_user_create_more_conversations: null,
|
data/docs/AndroidUpdate.md
CHANGED
|
@@ -5,6 +5,9 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**display_name** | **String** | A human-friendly name used to identify the integration. `displayName` can be unset by changing it to `null`. | [optional]
|
|
8
|
+
**project_id** | **String** | Your project ID from your generated private key file. | [optional]
|
|
9
|
+
**client_email** | **String** | Your client email from your generated private key file. | [optional]
|
|
10
|
+
**private_key** | **String** | Your private key from your generated private key file. | [optional]
|
|
8
11
|
**server_key** | **String** | Your server key from the fcm console. | [optional]
|
|
9
12
|
**sender_id** | **String** | Your sender id from the fcm console. | [optional]
|
|
10
13
|
**can_user_create_more_conversations** | **Boolean** | Allows users to create more than one conversation on the android integration. | [optional]
|
|
@@ -15,6 +18,9 @@ Name | Type | Description | Notes
|
|
|
15
18
|
require 'SunshineConversationsClient'
|
|
16
19
|
|
|
17
20
|
instance = SunshineConversationsClient::AndroidUpdate.new(display_name: My awesome integration,
|
|
21
|
+
project_id: <project-id>,
|
|
22
|
+
client_email: <client-email>,
|
|
23
|
+
private_key: <private-key>,
|
|
18
24
|
server_key: <server-key>,
|
|
19
25
|
sender_id: <sender-id>,
|
|
20
26
|
can_user_create_more_conversations: null)
|
data/docs/AndroidUpdateAllOf.md
CHANGED
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**project_id** | **String** | Your project ID from your generated private key file. | [optional]
|
|
8
|
+
**client_email** | **String** | Your client email from your generated private key file. | [optional]
|
|
9
|
+
**private_key** | **String** | Your private key from your generated private key file. | [optional]
|
|
7
10
|
**server_key** | **String** | Your server key from the fcm console. | [optional]
|
|
8
11
|
**sender_id** | **String** | Your sender id from the fcm console. | [optional]
|
|
9
12
|
**can_user_create_more_conversations** | **Boolean** | Allows users to create more than one conversation on the android integration. | [optional]
|
|
@@ -13,7 +16,10 @@ Name | Type | Description | Notes
|
|
|
13
16
|
```ruby
|
|
14
17
|
require 'SunshineConversationsClient'
|
|
15
18
|
|
|
16
|
-
instance = SunshineConversationsClient::AndroidUpdateAllOf.new(
|
|
19
|
+
instance = SunshineConversationsClient::AndroidUpdateAllOf.new(project_id: <project-id>,
|
|
20
|
+
client_email: <client-email>,
|
|
21
|
+
private_key: <private-key>,
|
|
22
|
+
server_key: <server-key>,
|
|
17
23
|
sender_id: <sender-id>,
|
|
18
24
|
can_user_create_more_conversations: null)
|
|
19
25
|
```
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# SunshineConversationsClient::DeviceResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**device** | [**Device**](Device.md) | The device. | [optional]
|
|
8
|
+
|
|
9
|
+
## Code Sample
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'SunshineConversationsClient'
|
|
13
|
+
|
|
14
|
+
instance = SunshineConversationsClient::DeviceResponse.new(device: null)
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
|
data/docs/DevicesApi.md
ADDED
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
# SunshineConversationsClient::DevicesApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.smooch.io*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**get_device**](DevicesApi.md#get_device) | **GET** /v2/apps/{appId}/users/{userIdOrExternalId}/devices/{deviceId} | Get Device
|
|
8
|
+
[**list_devices**](DevicesApi.md#list_devices) | **GET** /v2/apps/{appId}/users/{userIdOrExternalId}/devices | List Devices
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## get_device
|
|
13
|
+
|
|
14
|
+
> DeviceResponse get_device(app_id, user_id_or_external_id, device_id)
|
|
15
|
+
|
|
16
|
+
Get Device
|
|
17
|
+
|
|
18
|
+
Fetches a specific Device. ```shell /v2/apps/:appId/users/:userId ```
|
|
19
|
+
|
|
20
|
+
### Example
|
|
21
|
+
|
|
22
|
+
```ruby
|
|
23
|
+
# load the gem
|
|
24
|
+
require 'sunshine-conversations-client'
|
|
25
|
+
# setup authorization
|
|
26
|
+
SunshineConversationsClient.configure do |config|
|
|
27
|
+
# Configure HTTP basic authorization: basicAuth
|
|
28
|
+
config.username = 'YOUR_USERNAME'
|
|
29
|
+
config.password = 'YOUR_PASSWORD'
|
|
30
|
+
|
|
31
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
32
|
+
# Uncomment this line to use JWTs
|
|
33
|
+
# config.access_token = 'YOUR_JWT'
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
api_instance = SunshineConversationsClient::DevicesApi.new
|
|
37
|
+
app_id = '5d8cff3cd55b040010928b5b' # String | Identifies the app.
|
|
38
|
+
user_id_or_external_id = '42589ad070d43be9b00ff7e5' # String | The user's id or externalId.
|
|
39
|
+
device_id = '5d8cff3cd55b040010928b5b' # String | The device's id.
|
|
40
|
+
# Be sure to add the required body parameters
|
|
41
|
+
|
|
42
|
+
begin
|
|
43
|
+
#Get Device
|
|
44
|
+
result = api_instance.get_device(app_id, user_id_or_external_id, device_id)
|
|
45
|
+
p result
|
|
46
|
+
rescue SunshineConversationsClient::ApiError => e
|
|
47
|
+
puts "Exception when calling DevicesApi->get_device: #{e}"
|
|
48
|
+
end
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Parameters
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
Name | Type | Description | Notes
|
|
55
|
+
------------- | ------------- | ------------- | -------------
|
|
56
|
+
**app_id** | **String**| Identifies the app. |
|
|
57
|
+
**user_id_or_external_id** | **String**| The user's id or externalId. |
|
|
58
|
+
**device_id** | **String**| The device's id. |
|
|
59
|
+
|
|
60
|
+
### Return type
|
|
61
|
+
|
|
62
|
+
[**DeviceResponse**](DeviceResponse.md)
|
|
63
|
+
|
|
64
|
+
### Authorization
|
|
65
|
+
|
|
66
|
+
[basicAuth](../README.md#basicAuth), [bearerAuth](../README.md#bearerAuth)
|
|
67
|
+
|
|
68
|
+
### HTTP request headers
|
|
69
|
+
|
|
70
|
+
- **Content-Type**: Not defined
|
|
71
|
+
- **Accept**: application/json
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
## list_devices
|
|
75
|
+
|
|
76
|
+
> ClientListResponse list_devices(app_id, user_id_or_external_id)
|
|
77
|
+
|
|
78
|
+
List Devices
|
|
79
|
+
|
|
80
|
+
Get all the devices for a particular user. The Devices are sorted based on last seen time. ```shell /v2/apps/:appId/users/:userId/devices ```
|
|
81
|
+
|
|
82
|
+
### Example
|
|
83
|
+
|
|
84
|
+
```ruby
|
|
85
|
+
# load the gem
|
|
86
|
+
require 'sunshine-conversations-client'
|
|
87
|
+
# setup authorization
|
|
88
|
+
SunshineConversationsClient.configure do |config|
|
|
89
|
+
# Configure HTTP basic authorization: basicAuth
|
|
90
|
+
config.username = 'YOUR_USERNAME'
|
|
91
|
+
config.password = 'YOUR_PASSWORD'
|
|
92
|
+
|
|
93
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
94
|
+
# Uncomment this line to use JWTs
|
|
95
|
+
# config.access_token = 'YOUR_JWT'
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
api_instance = SunshineConversationsClient::DevicesApi.new
|
|
99
|
+
app_id = '5d8cff3cd55b040010928b5b' # String | Identifies the app.
|
|
100
|
+
user_id_or_external_id = '42589ad070d43be9b00ff7e5' # String | The user's id or externalId.
|
|
101
|
+
# Be sure to add the required body parameters
|
|
102
|
+
|
|
103
|
+
begin
|
|
104
|
+
#List Devices
|
|
105
|
+
result = api_instance.list_devices(app_id, user_id_or_external_id)
|
|
106
|
+
p result
|
|
107
|
+
rescue SunshineConversationsClient::ApiError => e
|
|
108
|
+
puts "Exception when calling DevicesApi->list_devices: #{e}"
|
|
109
|
+
end
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
### Parameters
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
Name | Type | Description | Notes
|
|
116
|
+
------------- | ------------- | ------------- | -------------
|
|
117
|
+
**app_id** | **String**| Identifies the app. |
|
|
118
|
+
**user_id_or_external_id** | **String**| The user's id or externalId. |
|
|
119
|
+
|
|
120
|
+
### Return type
|
|
121
|
+
|
|
122
|
+
[**ClientListResponse**](ClientListResponse.md)
|
|
123
|
+
|
|
124
|
+
### Authorization
|
|
125
|
+
|
|
126
|
+
[basicAuth](../README.md#basicAuth), [bearerAuth](../README.md#bearerAuth)
|
|
127
|
+
|
|
128
|
+
### HTTP request headers
|
|
129
|
+
|
|
130
|
+
- **Content-Type**: Not defined
|
|
131
|
+
- **Accept**: application/json
|
|
132
|
+
|
data/docs/IntegrationUpdate.md
CHANGED
|
@@ -5,6 +5,9 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**display_name** | **String** | A human-friendly name used to identify the integration. `displayName` can be unset by changing it to `null`. | [optional]
|
|
8
|
+
**project_id** | **String** | Your project ID from your generated private key file. | [optional]
|
|
9
|
+
**client_email** | **String** | Your client email from your generated private key file. | [optional]
|
|
10
|
+
**private_key** | **String** | Your private key from your generated private key file. | [optional]
|
|
8
11
|
**server_key** | **String** | Your server key from the fcm console. | [optional]
|
|
9
12
|
**sender_id** | **String** | Your sender id from the fcm console. | [optional]
|
|
10
13
|
**can_user_create_more_conversations** | **Boolean** | Allows users to create more than one conversation on the web messenger integration. | [optional]
|
|
@@ -39,6 +42,9 @@ Name | Type | Description | Notes
|
|
|
39
42
|
require 'SunshineConversationsClient'
|
|
40
43
|
|
|
41
44
|
instance = SunshineConversationsClient::IntegrationUpdate.new(display_name: My awesome integration,
|
|
45
|
+
project_id: <project-id>,
|
|
46
|
+
client_email: <client-email>,
|
|
47
|
+
private_key: <private-key>,
|
|
42
48
|
server_key: <server-key>,
|
|
43
49
|
sender_id: <sender-id>,
|
|
44
50
|
can_user_create_more_conversations: null,
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Sunshine Conversations API
|
|
3
|
+
|
|
4
|
+
The version of the OpenAPI document: 12.5.0
|
|
5
|
+
|
|
6
|
+
Generated by: https://openapi-generator.tech
|
|
7
|
+
OpenAPI Generator version: 4.3.1
|
|
8
|
+
=end
|
|
9
|
+
|
|
10
|
+
require 'cgi'
|
|
11
|
+
|
|
12
|
+
module SunshineConversationsClient
|
|
13
|
+
class DevicesApi
|
|
14
|
+
attr_accessor :api_client
|
|
15
|
+
|
|
16
|
+
def initialize(api_client = ApiClient.default)
|
|
17
|
+
@api_client = api_client
|
|
18
|
+
end
|
|
19
|
+
# Get Device
|
|
20
|
+
# Fetches a specific Device. ```shell /v2/apps/:appId/users/:userId ```
|
|
21
|
+
# @param app_id [String] Identifies the app.
|
|
22
|
+
# @param user_id_or_external_id [String] The user's id or externalId.
|
|
23
|
+
# @param device_id [String] The device's id.
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @return [DeviceResponse]
|
|
26
|
+
def get_device(app_id, user_id_or_external_id, device_id, opts = {})
|
|
27
|
+
data, _status_code, _headers = get_device_with_http_info(app_id, user_id_or_external_id, device_id, opts)
|
|
28
|
+
data
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# Get Device
|
|
32
|
+
# Fetches a specific Device. ```shell /v2/apps/:appId/users/:userId ```
|
|
33
|
+
# @param app_id [String] Identifies the app.
|
|
34
|
+
# @param user_id_or_external_id [String] The user's id or externalId.
|
|
35
|
+
# @param device_id [String] The device's id.
|
|
36
|
+
# @param [Hash] opts the optional parameters
|
|
37
|
+
# @return [Array<(DeviceResponse, Integer, Hash)>] DeviceResponse data, response status code and response headers
|
|
38
|
+
def get_device_with_http_info(app_id, user_id_or_external_id, device_id, opts = {})
|
|
39
|
+
if @api_client.config.debugging
|
|
40
|
+
@api_client.config.logger.debug 'Calling API: DevicesApi.get_device ...'
|
|
41
|
+
end
|
|
42
|
+
# verify the required parameter 'app_id' is set
|
|
43
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
|
44
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling DevicesApi.get_device"
|
|
45
|
+
end
|
|
46
|
+
# verify the required parameter 'user_id_or_external_id' is set
|
|
47
|
+
if @api_client.config.client_side_validation && user_id_or_external_id.nil?
|
|
48
|
+
fail ArgumentError, "Missing the required parameter 'user_id_or_external_id' when calling DevicesApi.get_device"
|
|
49
|
+
end
|
|
50
|
+
# verify the required parameter 'device_id' is set
|
|
51
|
+
if @api_client.config.client_side_validation && device_id.nil?
|
|
52
|
+
fail ArgumentError, "Missing the required parameter 'device_id' when calling DevicesApi.get_device"
|
|
53
|
+
end
|
|
54
|
+
# resource path
|
|
55
|
+
local_var_path = '/v2/apps/{appId}/users/{userIdOrExternalId}/devices/{deviceId}'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s)).sub('{' + 'userIdOrExternalId' + '}', CGI.escape(user_id_or_external_id.to_s)).sub('{' + 'deviceId' + '}', CGI.escape(device_id.to_s))
|
|
56
|
+
|
|
57
|
+
# query parameters
|
|
58
|
+
query_params = opts[:query_params] || {}
|
|
59
|
+
|
|
60
|
+
# header parameters
|
|
61
|
+
header_params = opts[:header_params] || {}
|
|
62
|
+
# HTTP header 'Accept' (if needed)
|
|
63
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
64
|
+
|
|
65
|
+
# form parameters
|
|
66
|
+
form_params = opts[:form_params] || {}
|
|
67
|
+
|
|
68
|
+
# http body (model)
|
|
69
|
+
post_body = opts[:body]
|
|
70
|
+
|
|
71
|
+
# return_type
|
|
72
|
+
return_type = opts[:return_type] || 'DeviceResponse'
|
|
73
|
+
|
|
74
|
+
# auth_names
|
|
75
|
+
auth_names = opts[:auth_names] || ['basicAuth', 'bearerAuth']
|
|
76
|
+
|
|
77
|
+
new_options = opts.merge(
|
|
78
|
+
:header_params => header_params,
|
|
79
|
+
:query_params => query_params,
|
|
80
|
+
:form_params => form_params,
|
|
81
|
+
:body => post_body,
|
|
82
|
+
:auth_names => auth_names,
|
|
83
|
+
:return_type => return_type
|
|
84
|
+
)
|
|
85
|
+
|
|
86
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
87
|
+
if @api_client.config.debugging
|
|
88
|
+
@api_client.config.logger.debug "API called: DevicesApi#get_device\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
89
|
+
end
|
|
90
|
+
return data, status_code, headers
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# List Devices
|
|
94
|
+
# Get all the devices for a particular user. The Devices are sorted based on last seen time. ```shell /v2/apps/:appId/users/:userId/devices ```
|
|
95
|
+
# @param app_id [String] Identifies the app.
|
|
96
|
+
# @param user_id_or_external_id [String] The user's id or externalId.
|
|
97
|
+
# @param [Hash] opts the optional parameters
|
|
98
|
+
# @return [ClientListResponse]
|
|
99
|
+
def list_devices(app_id, user_id_or_external_id, opts = {})
|
|
100
|
+
data, _status_code, _headers = list_devices_with_http_info(app_id, user_id_or_external_id, opts)
|
|
101
|
+
data
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# List Devices
|
|
105
|
+
# Get all the devices for a particular user. The Devices are sorted based on last seen time. ```shell /v2/apps/:appId/users/:userId/devices ```
|
|
106
|
+
# @param app_id [String] Identifies the app.
|
|
107
|
+
# @param user_id_or_external_id [String] The user's id or externalId.
|
|
108
|
+
# @param [Hash] opts the optional parameters
|
|
109
|
+
# @return [Array<(ClientListResponse, Integer, Hash)>] ClientListResponse data, response status code and response headers
|
|
110
|
+
def list_devices_with_http_info(app_id, user_id_or_external_id, opts = {})
|
|
111
|
+
if @api_client.config.debugging
|
|
112
|
+
@api_client.config.logger.debug 'Calling API: DevicesApi.list_devices ...'
|
|
113
|
+
end
|
|
114
|
+
# verify the required parameter 'app_id' is set
|
|
115
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
|
116
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling DevicesApi.list_devices"
|
|
117
|
+
end
|
|
118
|
+
# verify the required parameter 'user_id_or_external_id' is set
|
|
119
|
+
if @api_client.config.client_side_validation && user_id_or_external_id.nil?
|
|
120
|
+
fail ArgumentError, "Missing the required parameter 'user_id_or_external_id' when calling DevicesApi.list_devices"
|
|
121
|
+
end
|
|
122
|
+
# resource path
|
|
123
|
+
local_var_path = '/v2/apps/{appId}/users/{userIdOrExternalId}/devices'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s)).sub('{' + 'userIdOrExternalId' + '}', CGI.escape(user_id_or_external_id.to_s))
|
|
124
|
+
|
|
125
|
+
# query parameters
|
|
126
|
+
query_params = opts[:query_params] || {}
|
|
127
|
+
|
|
128
|
+
# header parameters
|
|
129
|
+
header_params = opts[:header_params] || {}
|
|
130
|
+
# HTTP header 'Accept' (if needed)
|
|
131
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
132
|
+
|
|
133
|
+
# form parameters
|
|
134
|
+
form_params = opts[:form_params] || {}
|
|
135
|
+
|
|
136
|
+
# http body (model)
|
|
137
|
+
post_body = opts[:body]
|
|
138
|
+
|
|
139
|
+
# return_type
|
|
140
|
+
return_type = opts[:return_type] || 'ClientListResponse'
|
|
141
|
+
|
|
142
|
+
# auth_names
|
|
143
|
+
auth_names = opts[:auth_names] || ['basicAuth', 'bearerAuth']
|
|
144
|
+
|
|
145
|
+
new_options = opts.merge(
|
|
146
|
+
:header_params => header_params,
|
|
147
|
+
:query_params => query_params,
|
|
148
|
+
:form_params => form_params,
|
|
149
|
+
:body => post_body,
|
|
150
|
+
:auth_names => auth_names,
|
|
151
|
+
:return_type => return_type
|
|
152
|
+
)
|
|
153
|
+
|
|
154
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
155
|
+
if @api_client.config.debugging
|
|
156
|
+
@api_client.config.logger.debug "API called: DevicesApi#list_devices\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
157
|
+
end
|
|
158
|
+
return data, status_code, headers
|
|
159
|
+
end
|
|
160
|
+
end
|
|
161
|
+
end
|