sunshine-conversations-client 16.0.0 → 17.0.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 +21 -10
- data/README.md +20 -72
- data/docs/AcceptControlBody.md +8 -7
- data/docs/Action.md +64 -34
- data/docs/ActionSubset.md +60 -32
- data/docs/ActivitiesApi.md +2 -2
- data/docs/Activity.md +12 -11
- data/docs/ActivityMessage.md +69 -9
- data/docs/ActivityPost.md +10 -9
- data/docs/ActivityTypes.md +8 -7
- data/docs/Android.md +28 -27
- data/docs/AndroidUpdate.md +24 -23
- data/docs/ApiKey.md +12 -11
- data/docs/App.md +14 -13
- data/docs/AppCreateBody.md +12 -11
- data/docs/AppKey.md +12 -11
- data/docs/AppKeyCreateBody.md +8 -7
- data/docs/AppKeyListResponse.md +8 -7
- data/docs/AppKeyResponse.md +8 -7
- data/docs/AppKeysApi.md +7 -7
- data/docs/AppListFilter.md +8 -7
- data/docs/AppListResponse.md +12 -11
- data/docs/AppResponse.md +8 -7
- data/docs/AppSettings.md +20 -19
- data/docs/AppSubSchema.md +8 -7
- data/docs/AppUpdateBody.md +12 -11
- data/docs/Apple.md +20 -19
- data/docs/AppleMessageOverridePayload.md +10 -9
- data/docs/AppleUpdate.md +12 -11
- data/docs/AppsApi.md +8 -8
- data/docs/AttachmentDeleteBody.md +8 -7
- data/docs/AttachmentResponse.md +8 -7
- data/docs/AttachmentSchema.md +10 -9
- data/docs/AttachmentsApi.md +9 -9
- data/docs/Author.md +18 -17
- data/docs/AuthorWebhook.md +12 -11
- data/docs/Buy.md +16 -15
- data/docs/Campaign.md +8 -7
- data/docs/CarouselMessage.md +16 -15
- data/docs/CarouselMessageDisplaySettings.md +8 -7
- data/docs/Client.md +28 -27
- data/docs/ClientAddEvent.md +14 -13
- data/docs/ClientAddEventAllOfPayload.md +16 -15
- data/docs/ClientAssociation.md +10 -9
- data/docs/ClientCreate.md +12 -11
- data/docs/ClientListResponse.md +12 -11
- data/docs/ClientRemoveEvent.md +14 -13
- data/docs/ClientRemoveEventAllOfPayload.md +18 -17
- data/docs/ClientResponse.md +8 -7
- data/docs/ClientType.md +4 -5
- data/docs/ClientUpdateEvent.md +14 -13
- data/docs/ClientUpdateEventAllOfPayload.md +14 -13
- data/docs/ClientsApi.md +11 -11
- data/docs/Confirmation.md +10 -9
- data/docs/Content.md +93 -48
- data/docs/Conversation.md +30 -29
- data/docs/ConversationCreateBody.md +18 -17
- data/docs/ConversationCreateEvent.md +14 -13
- data/docs/ConversationCreateEventAllOfPayload.md +16 -15
- data/docs/ConversationJoinEvent.md +14 -13
- data/docs/ConversationJoinEventAllOfPayload.md +10 -9
- data/docs/ConversationLeaveEvent.md +14 -13
- data/docs/ConversationLeaveEventAllOfPayload.md +10 -9
- data/docs/ConversationListFilter.md +10 -9
- data/docs/ConversationListResponse.md +12 -11
- data/docs/ConversationMessageDeliveryChannelEvent.md +14 -13
- data/docs/ConversationMessageDeliveryFailureEvent.md +14 -13
- data/docs/ConversationMessageDeliveryFailureEventAllOfPayload.md +30 -0
- data/docs/ConversationMessageDeliveryFailureEventAllOfPayloadAllOfError.md +20 -0
- data/docs/ConversationMessageDeliveryPayload.md +18 -17
- data/docs/ConversationMessageDeliveryPayloadDestination.md +10 -9
- data/docs/ConversationMessageDeliveryPayloadExternalMessagesInner.md +18 -0
- data/docs/ConversationMessageDeliveryPayloadMessage.md +8 -7
- data/docs/ConversationMessageDeliveryUserEvent.md +14 -13
- data/docs/ConversationMessageEvent.md +14 -13
- data/docs/ConversationMessageEventAllOfPayload.md +12 -11
- data/docs/ConversationPostbackEvent.md +14 -13
- data/docs/ConversationPostbackEventAllOfPayload.md +14 -13
- data/docs/ConversationReadEvent.md +14 -13
- data/docs/ConversationReadEventAllOfPayload.md +10 -9
- data/docs/ConversationReadEventAllOfPayloadActivity.md +22 -0
- data/docs/ConversationReferralEvent.md +14 -13
- data/docs/ConversationReferralEventAllOfPayload.md +14 -13
- data/docs/ConversationRemoveEvent.md +14 -13
- data/docs/ConversationRemoveEventAllOfPayload.md +8 -7
- data/docs/ConversationResponse.md +8 -7
- data/docs/ConversationTruncated.md +16 -15
- data/docs/ConversationType.md +4 -5
- data/docs/ConversationTypingEvent.md +14 -13
- data/docs/ConversationTypingEventAllOfPayload.md +10 -9
- data/docs/ConversationTypingEventAllOfPayloadActivity.md +22 -0
- data/docs/ConversationUpdateBody.md +14 -13
- data/docs/ConversationsApi.md +18 -18
- data/docs/ConversionEventsBody.md +41 -11
- data/docs/Custom.md +10 -9
- data/docs/CustomIntegrationApiKeysApi.md +11 -11
- data/docs/CustomUpdate.md +8 -7
- data/docs/DefaultResponder.md +8 -7
- data/docs/DefaultResponderDefaultResponder.md +20 -19
- data/docs/DefaultResponderId.md +8 -7
- data/docs/Destination.md +39 -9
- data/docs/Device.md +26 -25
- data/docs/DeviceListResponse.md +8 -7
- data/docs/DeviceResponse.md +8 -7
- data/docs/DevicesApi.md +5 -5
- data/docs/DownloadMessageRefBody.md +10 -6
- data/docs/DownloadMessageRefBodyAllOfApple.md +8 -7
- data/docs/DownloadMessageRefBodyAllOfAppleInteractiveDataRef.md +16 -15
- data/docs/Error.md +10 -9
- data/docs/ErrorResponse.md +8 -7
- data/docs/EventSubSchema.md +12 -11
- data/docs/ExtraChannelOptions.md +8 -7
- data/docs/ExtraChannelOptionsMessenger.md +10 -9
- data/docs/Field.md +18 -17
- data/docs/FileMessage.md +26 -25
- data/docs/FormMessage.md +14 -13
- data/docs/FormMessageField.md +26 -25
- data/docs/FormOptionsInner.md +20 -0
- data/docs/FormResponseMessage.md +12 -11
- data/docs/FormResponseMessageField.md +20 -19
- data/docs/GetToken200Response.md +20 -0
- data/docs/GetTokenRequest.md +24 -0
- data/docs/Identity.md +12 -11
- data/docs/ImageMessage.md +28 -27
- data/docs/Instagram.md +30 -29
- data/docs/InstagramConversionEventsBody.md +8 -7
- data/docs/InstagramUpdate.md +12 -11
- data/docs/Integration.md +14 -13
- data/docs/IntegrationApiKey.md +8 -7
- data/docs/IntegrationApiKeyListResponse.md +8 -7
- data/docs/IntegrationApiKeyResponse.md +8 -7
- data/docs/IntegrationId.md +8 -7
- data/docs/IntegrationListFilter.md +8 -7
- data/docs/IntegrationListResponse.md +12 -11
- data/docs/IntegrationResponse.md +8 -7
- data/docs/IntegrationType.md +8 -7
- data/docs/IntegrationUpdate.md +70 -76
- data/docs/IntegrationUpdateBase.md +10 -9
- data/docs/IntegrationsApi.md +12 -12
- data/docs/Ios.md +26 -25
- data/docs/IosUpdate.md +22 -21
- data/docs/Item.md +22 -21
- data/docs/Line.md +26 -25
- data/docs/LineUpdate.md +10 -6
- data/docs/Link.md +18 -17
- data/docs/Links.md +10 -9
- data/docs/ListMessage.md +14 -13
- data/docs/LocationMessage.md +16 -15
- data/docs/LocationMessageCoordinates.md +10 -9
- data/docs/LocationMessageLocation.md +10 -9
- data/docs/LocationRequest.md +12 -11
- data/docs/Mailgun.md +22 -21
- data/docs/MailgunUpdate.md +14 -13
- data/docs/MatchCriteria.md +76 -18
- data/docs/MatchCriteriaBase.md +12 -11
- data/docs/MatchCriteriaMailgun.md +16 -15
- data/docs/MatchCriteriaMessagebird.md +14 -13
- data/docs/MatchCriteriaTwilio.md +14 -13
- data/docs/MatchCriteriaWhatsapp.md +14 -13
- data/docs/Message.md +24 -23
- data/docs/MessageBirdUpdate.md +10 -6
- data/docs/MessageListResponse.md +12 -11
- data/docs/MessageOverride.md +14 -13
- data/docs/MessageOverrideApple.md +8 -7
- data/docs/MessageOverrideLine.md +8 -7
- data/docs/MessageOverrideMessenger.md +8 -7
- data/docs/MessageOverridePayload.md +8 -7
- data/docs/MessageOverrideWhatsapp.md +8 -7
- data/docs/MessagePost.md +18 -17
- data/docs/MessagePostResponse.md +8 -7
- data/docs/MessageWebhook.md +22 -21
- data/docs/MessageWebhookSource.md +30 -0
- data/docs/Messagebird.md +20 -19
- data/docs/MessagesApi.md +12 -12
- data/docs/Messenger.md +22 -21
- data/docs/MessengerConversionEventsBody.md +8 -7
- data/docs/MessengerUpdate.md +12 -11
- data/docs/Meta.md +12 -11
- data/docs/MetaConversionEvent.md +8 -7
- data/docs/MetaConversionEventPayload.md +8 -7
- data/docs/OAuthEndpointsApi.md +9 -9
- data/docs/OfferControlBody.md +10 -9
- data/docs/Page.md +12 -11
- data/docs/Participant.md +18 -17
- data/docs/ParticipantJoinBody.md +12 -6
- data/docs/ParticipantLeaveBody.md +41 -11
- data/docs/ParticipantLeaveBodyParticipantId.md +8 -7
- data/docs/ParticipantLeaveBodyUserExternalId.md +8 -7
- data/docs/ParticipantLeaveBodyUserId.md +8 -7
- data/docs/ParticipantListResponse.md +12 -11
- data/docs/ParticipantResponse.md +8 -7
- data/docs/ParticipantSubSchema.md +12 -11
- data/docs/ParticipantWithUserExternalId.md +10 -9
- data/docs/ParticipantWithUserId.md +10 -9
- data/docs/ParticipantsApi.md +8 -8
- data/docs/PassControlBody.md +12 -11
- data/docs/Postback.md +14 -13
- data/docs/PostbackWebhook.md +10 -9
- data/docs/PrechatCapture.md +14 -13
- data/docs/Profile.md +16 -15
- data/docs/QuotedMessage.md +69 -11
- data/docs/QuotedMessageExternalMessageId.md +10 -9
- data/docs/QuotedMessageMessage.md +10 -9
- data/docs/Referral.md +10 -9
- data/docs/ReferralDetails.md +12 -11
- data/docs/ReleaseControlBody.md +10 -9
- data/docs/Reply.md +16 -15
- data/docs/Source.md +18 -17
- data/docs/SourceWebhook.md +18 -17
- data/docs/SourceWithCampaignWebhook.md +20 -19
- data/docs/Status.md +4 -5
- data/docs/Switchboard.md +12 -11
- data/docs/SwitchboardAcceptControl.md +14 -13
- data/docs/SwitchboardAcceptControlAllOfPayload.md +10 -9
- data/docs/SwitchboardAcceptControlFailure.md +14 -13
- data/docs/SwitchboardAcceptControlFailureAllOfPayload.md +12 -11
- data/docs/SwitchboardActionsApi.md +13 -13
- data/docs/SwitchboardIntegration.md +20 -19
- data/docs/SwitchboardIntegrationCreateBody.md +18 -17
- data/docs/SwitchboardIntegrationListResponse.md +8 -7
- data/docs/SwitchboardIntegrationResponse.md +8 -7
- data/docs/SwitchboardIntegrationUpdateBody.md +18 -17
- data/docs/SwitchboardIntegrationWebhook.md +14 -13
- data/docs/SwitchboardIntegrationsApi.md +10 -10
- data/docs/SwitchboardListResponse.md +8 -7
- data/docs/SwitchboardOfferControl.md +14 -13
- data/docs/SwitchboardOfferControlAllOfPayload.md +10 -9
- data/docs/SwitchboardOfferControlFailure.md +14 -13
- data/docs/SwitchboardPassControl.md +14 -13
- data/docs/SwitchboardPassControlAllOfPayload.md +12 -11
- data/docs/SwitchboardPassControlFailure.md +14 -13
- data/docs/SwitchboardReleaseControl.md +14 -13
- data/docs/SwitchboardReleaseControlAllOfPayload.md +12 -11
- data/docs/SwitchboardResponse.md +8 -7
- data/docs/SwitchboardUpdateBody.md +10 -9
- data/docs/SwitchboardsApi.md +7 -7
- data/docs/SyncUserBody.md +8 -7
- data/docs/Target.md +8 -7
- data/docs/Telegram.md +18 -17
- data/docs/TelegramUpdate.md +10 -6
- data/docs/TemplateMessage.md +12 -11
- data/docs/TextMessage.md +20 -19
- data/docs/TicketClosed.md +10 -9
- data/docs/TransferToEmail.md +10 -9
- data/docs/Twilio.md +20 -19
- data/docs/TwilioUpdate.md +10 -6
- data/docs/Twitter.md +24 -23
- data/docs/TwitterUpdate.md +10 -6
- data/docs/Unity.md +18 -17
- data/docs/UnityUpdate.md +14 -13
- data/docs/User.md +24 -23
- data/docs/UserCreateBody.md +16 -15
- data/docs/UserMergeEvent.md +14 -13
- data/docs/UserMergeEventAllOfPayload.md +16 -15
- data/docs/UserMergeEventAllOfPayloadMergedClients.md +10 -9
- data/docs/UserMergeEventAllOfPayloadMergedConversations.md +10 -9
- data/docs/UserMergeEventAllOfPayloadMergedUsers.md +10 -9
- data/docs/UserRemoveEvent.md +14 -13
- data/docs/UserRemoveEventAllOfPayload.md +8 -7
- data/docs/UserResponse.md +8 -7
- data/docs/UserTruncated.md +14 -13
- data/docs/UserUpdateBody.md +14 -13
- data/docs/UserUpdateEvent.md +14 -13
- data/docs/UserUpdateEventAllOfPayload.md +12 -11
- data/docs/UsersApi.md +17 -17
- data/docs/Viber.md +18 -17
- data/docs/ViberUpdate.md +10 -6
- data/docs/Web.md +46 -45
- data/docs/WebUpdate.md +42 -41
- data/docs/Webhook.md +20 -19
- data/docs/WebhookBody.md +14 -13
- data/docs/WebhookCreateBody.md +14 -6
- data/docs/WebhookListResponse.md +8 -7
- data/docs/WebhookResponse.md +8 -7
- data/docs/WebhookSubSchema.md +10 -9
- data/docs/WebhooksApi.md +15 -15
- data/docs/Webview.md +24 -23
- data/docs/WhatsAppConversionEventsBody.md +8 -7
- data/docs/WhatsAppUpdate.md +16 -15
- data/docs/Whatsapp.md +20 -19
- data/lib/sunshine-conversations-client/api/activities_api.rb +11 -7
- data/lib/sunshine-conversations-client/api/app_keys_api.rb +26 -19
- data/lib/sunshine-conversations-client/api/apps_api.rb +37 -26
- data/lib/sunshine-conversations-client/api/attachments_api.rb +24 -16
- data/lib/sunshine-conversations-client/api/clients_api.rb +25 -19
- data/lib/sunshine-conversations-client/api/conversations_api.rb +57 -38
- data/lib/sunshine-conversations-client/api/custom_integration_api_keys_api.rb +26 -19
- data/lib/sunshine-conversations-client/api/devices_api.rb +12 -10
- data/lib/sunshine-conversations-client/api/integrations_api.rb +37 -26
- data/lib/sunshine-conversations-client/api/messages_api.rb +28 -21
- data/lib/sunshine-conversations-client/api/o_auth_endpoints_api.rb +36 -29
- data/lib/sunshine-conversations-client/api/participants_api.rb +27 -18
- data/lib/sunshine-conversations-client/api/switchboard_actions_api.rb +40 -24
- data/lib/sunshine-conversations-client/api/switchboard_integrations_api.rb +30 -20
- data/lib/sunshine-conversations-client/api/switchboards_api.rb +26 -19
- data/lib/sunshine-conversations-client/api/users_api.rb +50 -35
- data/lib/sunshine-conversations-client/api/webhooks_api.rb +35 -24
- data/lib/sunshine-conversations-client/api_client.rb +54 -9
- data/lib/sunshine-conversations-client/api_error.rb +3 -2
- data/lib/sunshine-conversations-client/configuration.rb +33 -31
- data/lib/sunshine-conversations-client/models/accept_control_body.rb +28 -25
- data/lib/sunshine-conversations-client/models/action.rb +30 -406
- data/lib/sunshine-conversations-client/models/action_subset.rb +24 -390
- data/lib/sunshine-conversations-client/models/activity.rb +24 -25
- data/lib/sunshine-conversations-client/models/activity_message.rb +30 -227
- data/lib/sunshine-conversations-client/models/activity_post.rb +42 -43
- data/lib/sunshine-conversations-client/models/activity_types.rb +23 -23
- data/lib/sunshine-conversations-client/models/android.rb +69 -48
- data/lib/sunshine-conversations-client/models/android_update.rb +24 -25
- data/lib/sunshine-conversations-client/models/api_key.rb +49 -24
- data/lib/sunshine-conversations-client/models/app.rb +52 -24
- data/lib/sunshine-conversations-client/models/app_create_body.rb +55 -24
- data/lib/sunshine-conversations-client/models/app_key.rb +24 -24
- data/lib/sunshine-conversations-client/models/app_key_create_body.rb +51 -23
- data/lib/sunshine-conversations-client/models/app_key_list_response.rb +26 -23
- data/lib/sunshine-conversations-client/models/app_key_response.rb +23 -23
- data/lib/sunshine-conversations-client/models/app_list_filter.rb +23 -23
- data/lib/sunshine-conversations-client/models/app_list_response.rb +27 -24
- data/lib/sunshine-conversations-client/models/app_response.rb +23 -23
- data/lib/sunshine-conversations-client/models/app_settings.rb +25 -25
- data/lib/sunshine-conversations-client/models/app_sub_schema.rb +23 -23
- data/lib/sunshine-conversations-client/models/app_update_body.rb +51 -24
- data/lib/sunshine-conversations-client/models/apple.rb +67 -46
- data/lib/sunshine-conversations-client/models/apple_message_override_payload.rb +27 -24
- data/lib/sunshine-conversations-client/models/apple_update.rb +24 -25
- data/lib/sunshine-conversations-client/models/attachment_delete_body.rb +23 -23
- data/lib/sunshine-conversations-client/models/attachment_response.rb +23 -23
- data/lib/sunshine-conversations-client/models/attachment_schema.rb +25 -25
- data/lib/sunshine-conversations-client/models/author.rb +51 -24
- data/lib/sunshine-conversations-client/models/author_webhook.rb +24 -24
- data/lib/sunshine-conversations-client/models/buy.rb +27 -24
- data/lib/sunshine-conversations-client/models/campaign.rb +23 -23
- data/lib/sunshine-conversations-client/models/carousel_message.rb +55 -24
- data/lib/sunshine-conversations-client/models/carousel_message_display_settings.rb +23 -23
- data/lib/sunshine-conversations-client/models/client.rb +24 -24
- data/lib/sunshine-conversations-client/models/client_add_event.rb +25 -26
- data/lib/sunshine-conversations-client/models/client_add_event_all_of_payload.rb +24 -24
- data/lib/sunshine-conversations-client/models/client_association.rb +46 -24
- data/lib/sunshine-conversations-client/models/client_create.rb +24 -24
- data/lib/sunshine-conversations-client/models/client_list_response.rb +27 -24
- data/lib/sunshine-conversations-client/models/client_remove_event.rb +25 -26
- data/lib/sunshine-conversations-client/models/client_remove_event_all_of_payload.rb +24 -24
- data/lib/sunshine-conversations-client/models/client_response.rb +23 -23
- data/lib/sunshine-conversations-client/models/client_type.rb +9 -5
- data/lib/sunshine-conversations-client/models/client_update_event.rb +25 -26
- data/lib/sunshine-conversations-client/models/client_update_event_all_of_payload.rb +24 -24
- data/lib/sunshine-conversations-client/models/confirmation.rb +24 -24
- data/lib/sunshine-conversations-client/models/content.rb +52 -502
- data/lib/sunshine-conversations-client/models/conversation.rb +74 -25
- data/lib/sunshine-conversations-client/models/conversation_create_body.rb +92 -24
- data/lib/sunshine-conversations-client/models/conversation_create_event.rb +25 -26
- data/lib/sunshine-conversations-client/models/conversation_create_event_all_of_payload.rb +24 -24
- data/lib/sunshine-conversations-client/models/conversation_join_event.rb +25 -26
- data/lib/sunshine-conversations-client/models/conversation_join_event_all_of_payload.rb +24 -24
- data/lib/sunshine-conversations-client/models/conversation_leave_event.rb +25 -26
- data/lib/sunshine-conversations-client/models/conversation_leave_event_all_of_payload.rb +24 -24
- data/lib/sunshine-conversations-client/models/conversation_list_filter.rb +24 -24
- data/lib/sunshine-conversations-client/models/conversation_list_response.rb +27 -24
- data/lib/sunshine-conversations-client/models/conversation_message_delivery_channel_event.rb +25 -26
- data/lib/sunshine-conversations-client/models/conversation_message_delivery_failure_event.rb +26 -27
- data/lib/sunshine-conversations-client/models/{conversation_message_delivery_channel_event_all_of.rb → conversation_message_delivery_failure_event_all_of_payload.rb} +101 -33
- data/lib/sunshine-conversations-client/models/{conversation_message_delivery_failure_event_all_of.rb → conversation_message_delivery_failure_event_all_of_payload_all_of_error.rb} +45 -33
- data/lib/sunshine-conversations-client/models/conversation_message_delivery_payload.rb +28 -25
- data/lib/sunshine-conversations-client/models/conversation_message_delivery_payload_destination.rb +24 -24
- data/lib/sunshine-conversations-client/models/{conversation_message_delivery_payload_external_messages.rb → conversation_message_delivery_payload_external_messages_inner.rb} +26 -26
- data/lib/sunshine-conversations-client/models/conversation_message_delivery_payload_message.rb +23 -23
- data/lib/sunshine-conversations-client/models/conversation_message_delivery_user_event.rb +25 -26
- data/lib/sunshine-conversations-client/models/conversation_message_event.rb +25 -26
- data/lib/sunshine-conversations-client/models/conversation_message_event_all_of_payload.rb +27 -24
- data/lib/sunshine-conversations-client/models/conversation_postback_event.rb +25 -26
- data/lib/sunshine-conversations-client/models/conversation_postback_event_all_of_payload.rb +24 -24
- data/lib/sunshine-conversations-client/models/conversation_read_event.rb +25 -26
- data/lib/sunshine-conversations-client/models/conversation_read_event_all_of_payload.rb +25 -26
- data/lib/sunshine-conversations-client/models/{custom_all_of.rb → conversation_read_event_all_of_payload_activity.rb} +53 -40
- data/lib/sunshine-conversations-client/models/conversation_referral_event.rb +25 -26
- data/lib/sunshine-conversations-client/models/conversation_referral_event_all_of_payload.rb +24 -24
- data/lib/sunshine-conversations-client/models/conversation_remove_event.rb +25 -26
- data/lib/sunshine-conversations-client/models/conversation_remove_event_all_of_payload.rb +23 -23
- data/lib/sunshine-conversations-client/models/conversation_response.rb +23 -23
- data/lib/sunshine-conversations-client/models/conversation_truncated.rb +49 -24
- data/lib/sunshine-conversations-client/models/conversation_type.rb +9 -5
- data/lib/sunshine-conversations-client/models/conversation_typing_event.rb +25 -26
- data/lib/sunshine-conversations-client/models/conversation_typing_event_all_of_payload.rb +25 -26
- data/lib/sunshine-conversations-client/models/{activity_all_of.rb → conversation_typing_event_all_of_payload_activity.rb} +45 -27
- data/lib/sunshine-conversations-client/models/conversation_update_body.rb +52 -24
- data/lib/sunshine-conversations-client/models/conversion_events_body.rb +78 -221
- data/lib/sunshine-conversations-client/models/custom.rb +77 -25
- data/lib/sunshine-conversations-client/models/custom_update.rb +23 -23
- data/lib/sunshine-conversations-client/models/default_responder.rb +23 -23
- data/lib/sunshine-conversations-client/models/default_responder_default_responder.rb +24 -24
- data/lib/sunshine-conversations-client/models/default_responder_id.rb +23 -23
- data/lib/sunshine-conversations-client/models/destination.rb +77 -213
- data/lib/sunshine-conversations-client/models/device.rb +27 -24
- data/lib/sunshine-conversations-client/models/device_list_response.rb +26 -23
- data/lib/sunshine-conversations-client/models/device_response.rb +23 -23
- data/lib/sunshine-conversations-client/models/download_message_ref_body.rb +52 -39
- data/lib/sunshine-conversations-client/models/download_message_ref_body_all_of_apple.rb +23 -23
- data/lib/sunshine-conversations-client/models/download_message_ref_body_all_of_apple_interactive_data_ref.rb +24 -24
- data/lib/sunshine-conversations-client/models/error.rb +24 -24
- data/lib/sunshine-conversations-client/models/error_response.rb +26 -23
- data/lib/sunshine-conversations-client/models/event_sub_schema.rb +25 -25
- data/lib/sunshine-conversations-client/models/extra_channel_options.rb +23 -23
- data/lib/sunshine-conversations-client/models/extra_channel_options_messenger.rb +24 -24
- data/lib/sunshine-conversations-client/models/field.rb +27 -24
- data/lib/sunshine-conversations-client/models/file_message.rb +25 -25
- data/lib/sunshine-conversations-client/models/form_message.rb +55 -24
- data/lib/sunshine-conversations-client/models/form_message_field.rb +47 -27
- data/lib/sunshine-conversations-client/models/{viber_all_of.rb → form_options_inner.rb} +82 -72
- data/lib/sunshine-conversations-client/models/form_response_message.rb +55 -24
- data/lib/sunshine-conversations-client/models/form_response_message_field.rb +28 -26
- data/lib/sunshine-conversations-client/models/{user_merge_event_all_of.rb → get_token200_response.rb} +44 -33
- data/lib/sunshine-conversations-client/models/{inline_object.rb → get_token_request.rb} +27 -27
- data/lib/sunshine-conversations-client/models/identity.rb +24 -24
- data/lib/sunshine-conversations-client/models/image_message.rb +28 -25
- data/lib/sunshine-conversations-client/models/instagram.rb +68 -47
- data/lib/sunshine-conversations-client/models/instagram_conversion_events_body.rb +23 -23
- data/lib/sunshine-conversations-client/models/instagram_update.rb +24 -25
- data/lib/sunshine-conversations-client/models/integration.rb +46 -24
- data/lib/sunshine-conversations-client/models/integration_api_key.rb +23 -23
- data/lib/sunshine-conversations-client/models/integration_api_key_list_response.rb +26 -23
- data/lib/sunshine-conversations-client/models/integration_api_key_response.rb +23 -23
- data/lib/sunshine-conversations-client/models/integration_id.rb +23 -23
- data/lib/sunshine-conversations-client/models/integration_list_filter.rb +23 -23
- data/lib/sunshine-conversations-client/models/integration_list_response.rb +27 -24
- data/lib/sunshine-conversations-client/models/integration_response.rb +23 -23
- data/lib/sunshine-conversations-client/models/integration_type.rb +23 -23
- data/lib/sunshine-conversations-client/models/integration_update.rb +95 -724
- data/lib/sunshine-conversations-client/models/integration_update_base.rb +24 -24
- data/lib/sunshine-conversations-client/models/ios.rb +69 -48
- data/lib/sunshine-conversations-client/models/ios_update.rb +25 -26
- data/lib/sunshine-conversations-client/models/item.rb +58 -24
- data/lib/sunshine-conversations-client/models/line.rb +68 -47
- data/lib/sunshine-conversations-client/models/line_update.rb +74 -32
- data/lib/sunshine-conversations-client/models/link.rb +27 -24
- data/lib/sunshine-conversations-client/models/links.rb +24 -24
- data/lib/sunshine-conversations-client/models/list_message.rb +82 -24
- data/lib/sunshine-conversations-client/models/location_message.rb +24 -24
- data/lib/sunshine-conversations-client/models/location_message_coordinates.rb +24 -24
- data/lib/sunshine-conversations-client/models/location_message_location.rb +24 -24
- data/lib/sunshine-conversations-client/models/location_request.rb +27 -24
- data/lib/sunshine-conversations-client/models/mailgun.rb +70 -49
- data/lib/sunshine-conversations-client/models/mailgun_update.rb +25 -26
- data/lib/sunshine-conversations-client/models/match_criteria.rb +34 -289
- data/lib/sunshine-conversations-client/models/match_criteria_base.rb +24 -24
- data/lib/sunshine-conversations-client/models/match_criteria_mailgun.rb +25 -26
- data/lib/sunshine-conversations-client/models/match_criteria_messagebird.rb +25 -26
- data/lib/sunshine-conversations-client/models/match_criteria_twilio.rb +25 -26
- data/lib/sunshine-conversations-client/models/match_criteria_whatsapp.rb +25 -26
- data/lib/sunshine-conversations-client/models/message.rb +29 -26
- data/lib/sunshine-conversations-client/models/message_bird_update.rb +74 -32
- data/lib/sunshine-conversations-client/models/message_list_response.rb +27 -24
- data/lib/sunshine-conversations-client/models/message_override.rb +79 -228
- data/lib/sunshine-conversations-client/models/message_override_apple.rb +23 -23
- data/lib/sunshine-conversations-client/models/message_override_line.rb +23 -23
- data/lib/sunshine-conversations-client/models/message_override_messenger.rb +23 -23
- data/lib/sunshine-conversations-client/models/message_override_payload.rb +23 -23
- data/lib/sunshine-conversations-client/models/message_override_whatsapp.rb +23 -23
- data/lib/sunshine-conversations-client/models/message_post.rb +27 -24
- data/lib/sunshine-conversations-client/models/message_post_response.rb +26 -23
- data/lib/sunshine-conversations-client/models/message_webhook.rb +30 -27
- data/lib/sunshine-conversations-client/models/{apple_all_of.rb → message_webhook_source.rb} +91 -86
- data/lib/sunshine-conversations-client/models/messagebird.rb +69 -48
- data/lib/sunshine-conversations-client/models/messenger.rb +69 -48
- data/lib/sunshine-conversations-client/models/messenger_conversion_events_body.rb +23 -23
- data/lib/sunshine-conversations-client/models/messenger_update.rb +24 -25
- data/lib/sunshine-conversations-client/models/meta.rb +24 -24
- data/lib/sunshine-conversations-client/models/meta_conversion_event.rb +23 -23
- data/lib/sunshine-conversations-client/models/meta_conversion_event_payload.rb +26 -23
- data/lib/sunshine-conversations-client/models/offer_control_body.rb +29 -26
- data/lib/sunshine-conversations-client/models/page.rb +24 -24
- data/lib/sunshine-conversations-client/models/participant.rb +27 -24
- data/lib/sunshine-conversations-client/models/participant_join_body.rb +58 -32
- data/lib/sunshine-conversations-client/models/participant_leave_body.rb +78 -224
- data/lib/sunshine-conversations-client/models/participant_leave_body_participant_id.rb +23 -23
- data/lib/sunshine-conversations-client/models/participant_leave_body_user_external_id.rb +23 -23
- data/lib/sunshine-conversations-client/models/participant_leave_body_user_id.rb +23 -23
- data/lib/sunshine-conversations-client/models/participant_list_response.rb +27 -24
- data/lib/sunshine-conversations-client/models/participant_response.rb +23 -23
- data/lib/sunshine-conversations-client/models/participant_sub_schema.rb +77 -220
- data/lib/sunshine-conversations-client/models/participant_with_user_external_id.rb +24 -24
- data/lib/sunshine-conversations-client/models/participant_with_user_id.rb +24 -24
- data/lib/sunshine-conversations-client/models/pass_control_body.rb +29 -26
- data/lib/sunshine-conversations-client/models/postback.rb +27 -24
- data/lib/sunshine-conversations-client/models/postback_webhook.rb +27 -24
- data/lib/sunshine-conversations-client/models/prechat_capture.rb +27 -24
- data/lib/sunshine-conversations-client/models/profile.rb +24 -24
- data/lib/sunshine-conversations-client/models/quoted_message.rb +30 -237
- data/lib/sunshine-conversations-client/models/quoted_message_external_message_id.rb +24 -24
- data/lib/sunshine-conversations-client/models/quoted_message_message.rb +24 -24
- data/lib/sunshine-conversations-client/models/referral.rb +24 -24
- data/lib/sunshine-conversations-client/models/referral_details.rb +24 -24
- data/lib/sunshine-conversations-client/models/release_control_body.rb +29 -26
- data/lib/sunshine-conversations-client/models/reply.rb +27 -24
- data/lib/sunshine-conversations-client/models/source.rb +24 -24
- data/lib/sunshine-conversations-client/models/source_webhook.rb +24 -24
- data/lib/sunshine-conversations-client/models/source_with_campaign_webhook.rb +25 -26
- data/lib/sunshine-conversations-client/models/status.rb +9 -5
- data/lib/sunshine-conversations-client/models/switchboard.rb +24 -24
- data/lib/sunshine-conversations-client/models/switchboard_accept_control.rb +26 -27
- data/lib/sunshine-conversations-client/models/switchboard_accept_control_all_of_payload.rb +27 -24
- data/lib/sunshine-conversations-client/models/switchboard_accept_control_failure.rb +26 -27
- data/lib/sunshine-conversations-client/models/switchboard_accept_control_failure_all_of_payload.rb +27 -24
- data/lib/sunshine-conversations-client/models/switchboard_integration.rb +24 -24
- data/lib/sunshine-conversations-client/models/switchboard_integration_create_body.rb +25 -24
- data/lib/sunshine-conversations-client/models/switchboard_integration_list_response.rb +26 -23
- data/lib/sunshine-conversations-client/models/switchboard_integration_response.rb +23 -23
- data/lib/sunshine-conversations-client/models/switchboard_integration_update_body.rb +24 -24
- data/lib/sunshine-conversations-client/models/switchboard_integration_webhook.rb +24 -24
- data/lib/sunshine-conversations-client/models/switchboard_list_response.rb +26 -23
- data/lib/sunshine-conversations-client/models/switchboard_offer_control.rb +26 -27
- data/lib/sunshine-conversations-client/models/switchboard_offer_control_all_of_payload.rb +27 -24
- data/lib/sunshine-conversations-client/models/switchboard_offer_control_failure.rb +26 -27
- data/lib/sunshine-conversations-client/models/switchboard_pass_control.rb +26 -27
- data/lib/sunshine-conversations-client/models/switchboard_pass_control_all_of_payload.rb +27 -24
- data/lib/sunshine-conversations-client/models/switchboard_pass_control_failure.rb +26 -27
- data/lib/sunshine-conversations-client/models/switchboard_release_control.rb +26 -27
- data/lib/sunshine-conversations-client/models/switchboard_release_control_all_of_payload.rb +27 -24
- data/lib/sunshine-conversations-client/models/switchboard_response.rb +23 -23
- data/lib/sunshine-conversations-client/models/switchboard_update_body.rb +24 -24
- data/lib/sunshine-conversations-client/models/sync_user_body.rb +23 -23
- data/lib/sunshine-conversations-client/models/target.rb +23 -23
- data/lib/sunshine-conversations-client/models/telegram.rb +69 -48
- data/lib/sunshine-conversations-client/models/telegram_update.rb +74 -32
- data/lib/sunshine-conversations-client/models/template_message.rb +24 -24
- data/lib/sunshine-conversations-client/models/text_message.rb +27 -24
- data/lib/sunshine-conversations-client/models/ticket_closed.rb +27 -24
- data/lib/sunshine-conversations-client/models/transfer_to_email.rb +27 -24
- data/lib/sunshine-conversations-client/models/twilio.rb +69 -48
- data/lib/sunshine-conversations-client/models/twilio_update.rb +74 -32
- data/lib/sunshine-conversations-client/models/twitter.rb +50 -51
- data/lib/sunshine-conversations-client/models/twitter_update.rb +74 -32
- data/lib/sunshine-conversations-client/models/unity.rb +68 -47
- data/lib/sunshine-conversations-client/models/unity_update.rb +25 -26
- data/lib/sunshine-conversations-client/models/user.rb +34 -27
- data/lib/sunshine-conversations-client/models/user_create_body.rb +27 -24
- data/lib/sunshine-conversations-client/models/user_merge_event.rb +26 -27
- data/lib/sunshine-conversations-client/models/user_merge_event_all_of_payload.rb +28 -26
- data/lib/sunshine-conversations-client/models/user_merge_event_all_of_payload_merged_clients.rb +24 -24
- data/lib/sunshine-conversations-client/models/user_merge_event_all_of_payload_merged_conversations.rb +24 -24
- data/lib/sunshine-conversations-client/models/user_merge_event_all_of_payload_merged_users.rb +24 -24
- data/lib/sunshine-conversations-client/models/user_remove_event.rb +26 -27
- data/lib/sunshine-conversations-client/models/user_remove_event_all_of_payload.rb +23 -23
- data/lib/sunshine-conversations-client/models/user_response.rb +23 -23
- data/lib/sunshine-conversations-client/models/user_truncated.rb +24 -24
- data/lib/sunshine-conversations-client/models/user_update_body.rb +29 -24
- data/lib/sunshine-conversations-client/models/user_update_event.rb +26 -27
- data/lib/sunshine-conversations-client/models/user_update_event_all_of_payload.rb +24 -24
- data/lib/sunshine-conversations-client/models/viber.rb +69 -48
- data/lib/sunshine-conversations-client/models/viber_update.rb +74 -32
- data/lib/sunshine-conversations-client/models/web.rb +75 -48
- data/lib/sunshine-conversations-client/models/web_update.rb +31 -26
- data/lib/sunshine-conversations-client/models/webhook.rb +28 -25
- data/lib/sunshine-conversations-client/models/webhook_body.rb +28 -25
- data/lib/sunshine-conversations-client/models/webhook_create_body.rb +84 -32
- data/lib/sunshine-conversations-client/models/webhook_list_response.rb +26 -23
- data/lib/sunshine-conversations-client/models/webhook_response.rb +23 -23
- data/lib/sunshine-conversations-client/models/webhook_sub_schema.rb +24 -24
- data/lib/sunshine-conversations-client/models/webview.rb +27 -24
- data/lib/sunshine-conversations-client/models/whats_app_conversion_events_body.rb +23 -23
- data/lib/sunshine-conversations-client/models/whats_app_update.rb +25 -26
- data/lib/sunshine-conversations-client/models/whatsapp.rb +70 -49
- data/lib/sunshine-conversations-client/version.rb +3 -3
- data/lib/sunshine-conversations-client.rb +11 -63
- data/spec/spec_helper.rb +2 -2
- data/sunshine-conversations-client.gemspec +5 -5
- metadata +21 -149
- data/docs/ActivityAllOf.md +0 -19
- data/docs/ActivityPostAllOf.md +0 -17
- data/docs/AndroidAllOf.md +0 -33
- data/docs/AndroidUpdateAllOf.md +0 -29
- data/docs/AppleAllOf.md +0 -25
- data/docs/AppleUpdateAllOf.md +0 -17
- data/docs/AttachmentUploadBody.md +0 -17
- data/docs/ClientAddEventAllOf.md +0 -17
- data/docs/ClientRemoveEventAllOf.md +0 -17
- data/docs/ClientUpdateEventAllOf.md +0 -17
- data/docs/ConversationAllOf.md +0 -29
- data/docs/ConversationCreateEventAllOf.md +0 -17
- data/docs/ConversationJoinEventAllOf.md +0 -17
- data/docs/ConversationLeaveEventAllOf.md +0 -17
- data/docs/ConversationMessageDeliveryChannelEventAllOf.md +0 -17
- data/docs/ConversationMessageDeliveryFailureEventAllOf.md +0 -17
- data/docs/ConversationMessageDeliveryPayloadExternalMessages.md +0 -17
- data/docs/ConversationMessageEventAllOf.md +0 -17
- data/docs/ConversationPostbackEventAllOf.md +0 -17
- data/docs/ConversationReadEventAllOf.md +0 -17
- data/docs/ConversationReferralEventAllOf.md +0 -17
- data/docs/ConversationRemoveEventAllOf.md +0 -17
- data/docs/ConversationTypingEventAllOf.md +0 -17
- data/docs/CustomAllOf.md +0 -19
- data/docs/DownloadMessageRefBodyAllOf.md +0 -19
- data/docs/FormMessageFieldAllOf.md +0 -23
- data/docs/FormResponseMessageFieldAllOf.md +0 -17
- data/docs/InlineObject.md +0 -23
- data/docs/InstagramAllOf.md +0 -35
- data/docs/InstagramUpdateAllOf.md +0 -17
- data/docs/IosAllOf.md +0 -31
- data/docs/IosUpdateAllOf.md +0 -27
- data/docs/LineAllOf.md +0 -31
- data/docs/MailgunAllOf.md +0 -27
- data/docs/MailgunUpdateAllOf.md +0 -19
- data/docs/MatchCriteriaMailgunAllOf.md +0 -21
- data/docs/MatchCriteriaMessagebirdAllOf.md +0 -19
- data/docs/MatchCriteriaTwilioAllOf.md +0 -19
- data/docs/MatchCriteriaWhatsappAllOf.md +0 -19
- data/docs/MessagebirdAllOf.md +0 -25
- data/docs/MessengerAllOf.md +0 -27
- data/docs/SourceWithCampaignWebhookAllOf.md +0 -17
- data/docs/SwitchboardAcceptControlAllOf.md +0 -17
- data/docs/SwitchboardAcceptControlFailureAllOf.md +0 -17
- data/docs/SwitchboardOfferControlAllOf.md +0 -17
- data/docs/SwitchboardPassControlAllOf.md +0 -17
- data/docs/SwitchboardReleaseControlAllOf.md +0 -17
- data/docs/TelegramAllOf.md +0 -23
- data/docs/TwilioAllOf.md +0 -25
- data/docs/TwitterAllOf.md +0 -29
- data/docs/UnityAllOf.md +0 -23
- data/docs/UnityUpdateAllOf.md +0 -19
- data/docs/UserAllOf.md +0 -25
- data/docs/UserMergeEventAllOf.md +0 -17
- data/docs/UserRemoveEventAllOf.md +0 -17
- data/docs/UserUpdateEventAllOf.md +0 -17
- data/docs/ViberAllOf.md +0 -23
- data/docs/WebAllOf.md +0 -51
- data/docs/WebUpdateAllOf.md +0 -47
- data/docs/WhatsAppUpdateAllOf.md +0 -21
- data/docs/WhatsappAllOf.md +0 -25
- data/lib/sunshine-conversations-client/models/activity_post_all_of.rb +0 -204
- data/lib/sunshine-conversations-client/models/android_all_of.rb +0 -366
- data/lib/sunshine-conversations-client/models/android_update_all_of.rb +0 -344
- data/lib/sunshine-conversations-client/models/apple_update_all_of.rb +0 -219
- data/lib/sunshine-conversations-client/models/attachment_upload_body.rb +0 -208
- data/lib/sunshine-conversations-client/models/client_add_event_all_of.rb +0 -203
- data/lib/sunshine-conversations-client/models/client_remove_event_all_of.rb +0 -203
- data/lib/sunshine-conversations-client/models/client_update_event_all_of.rb +0 -203
- data/lib/sunshine-conversations-client/models/conversation_all_of.rb +0 -316
- data/lib/sunshine-conversations-client/models/conversation_create_event_all_of.rb +0 -203
- data/lib/sunshine-conversations-client/models/conversation_join_event_all_of.rb +0 -203
- data/lib/sunshine-conversations-client/models/conversation_leave_event_all_of.rb +0 -203
- data/lib/sunshine-conversations-client/models/conversation_message_event_all_of.rb +0 -203
- data/lib/sunshine-conversations-client/models/conversation_postback_event_all_of.rb +0 -203
- data/lib/sunshine-conversations-client/models/conversation_read_event_all_of.rb +0 -203
- data/lib/sunshine-conversations-client/models/conversation_referral_event_all_of.rb +0 -203
- data/lib/sunshine-conversations-client/models/conversation_remove_event_all_of.rb +0 -203
- data/lib/sunshine-conversations-client/models/conversation_typing_event_all_of.rb +0 -203
- data/lib/sunshine-conversations-client/models/download_message_ref_body_all_of.rb +0 -213
- data/lib/sunshine-conversations-client/models/form_message_field_all_of.rb +0 -310
- data/lib/sunshine-conversations-client/models/form_response_message_field_all_of.rb +0 -205
- data/lib/sunshine-conversations-client/models/instagram_all_of.rb +0 -303
- data/lib/sunshine-conversations-client/models/instagram_update_all_of.rb +0 -204
- data/lib/sunshine-conversations-client/models/ios_all_of.rb +0 -292
- data/lib/sunshine-conversations-client/models/ios_update_all_of.rb +0 -270
- data/lib/sunshine-conversations-client/models/line_all_of.rb +0 -291
- data/lib/sunshine-conversations-client/models/mailgun_all_of.rb +0 -336
- data/lib/sunshine-conversations-client/models/mailgun_update_all_of.rb +0 -230
- data/lib/sunshine-conversations-client/models/match_criteria_mailgun_all_of.rb +0 -234
- data/lib/sunshine-conversations-client/models/match_criteria_messagebird_all_of.rb +0 -222
- data/lib/sunshine-conversations-client/models/match_criteria_twilio_all_of.rb +0 -222
- data/lib/sunshine-conversations-client/models/match_criteria_whatsapp_all_of.rb +0 -222
- data/lib/sunshine-conversations-client/models/messagebird_all_of.rb +0 -302
- data/lib/sunshine-conversations-client/models/messenger_all_of.rb +0 -263
- data/lib/sunshine-conversations-client/models/source_with_campaign_webhook_all_of.rb +0 -204
- data/lib/sunshine-conversations-client/models/switchboard_accept_control_all_of.rb +0 -203
- data/lib/sunshine-conversations-client/models/switchboard_accept_control_failure_all_of.rb +0 -203
- data/lib/sunshine-conversations-client/models/switchboard_offer_control_all_of.rb +0 -203
- data/lib/sunshine-conversations-client/models/switchboard_pass_control_all_of.rb +0 -203
- data/lib/sunshine-conversations-client/models/switchboard_release_control_all_of.rb +0 -203
- data/lib/sunshine-conversations-client/models/telegram_all_of.rb +0 -252
- data/lib/sunshine-conversations-client/models/twilio_all_of.rb +0 -297
- data/lib/sunshine-conversations-client/models/twitter_all_of.rb +0 -400
- data/lib/sunshine-conversations-client/models/unity_all_of.rb +0 -236
- data/lib/sunshine-conversations-client/models/unity_update_all_of.rb +0 -214
- data/lib/sunshine-conversations-client/models/user_all_of.rb +0 -239
- data/lib/sunshine-conversations-client/models/user_remove_event_all_of.rb +0 -203
- data/lib/sunshine-conversations-client/models/user_update_event_all_of.rb +0 -203
- data/lib/sunshine-conversations-client/models/web_all_of.rb +0 -391
- data/lib/sunshine-conversations-client/models/web_update_all_of.rb +0 -370
- data/lib/sunshine-conversations-client/models/whats_app_update_all_of.rb +0 -229
- data/lib/sunshine-conversations-client/models/whatsapp_all_of.rb +0 -252
- data/spec/api_client_spec.rb +0 -223
- data/spec/configuration_spec.rb +0 -39
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Sunshine Conversations API
|
|
3
3
|
|
|
4
|
-
The version of the OpenAPI document:
|
|
4
|
+
The version of the OpenAPI document: 17.0.0
|
|
5
5
|
|
|
6
6
|
Generated by: https://openapi-generator.tech
|
|
7
|
-
OpenAPI Generator version:
|
|
7
|
+
OpenAPI Generator version: 7.12.0
|
|
8
8
|
=end
|
|
9
9
|
|
|
10
10
|
require 'cgi'
|
|
@@ -54,23 +54,27 @@ module SunshineConversationsClient
|
|
|
54
54
|
# header parameters
|
|
55
55
|
header_params = opts[:header_params] || {}
|
|
56
56
|
# HTTP header 'Accept' (if needed)
|
|
57
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
57
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
58
58
|
# HTTP header 'Content-Type'
|
|
59
|
-
|
|
59
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
60
|
+
if !content_type.nil?
|
|
61
|
+
header_params['Content-Type'] = content_type
|
|
62
|
+
end
|
|
60
63
|
|
|
61
64
|
# form parameters
|
|
62
65
|
form_params = opts[:form_params] || {}
|
|
63
66
|
|
|
64
67
|
# http body (model)
|
|
65
|
-
post_body = opts[:
|
|
68
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(user_create_body)
|
|
66
69
|
|
|
67
70
|
# return_type
|
|
68
|
-
return_type = opts[:
|
|
71
|
+
return_type = opts[:debug_return_type] || 'UserResponse'
|
|
69
72
|
|
|
70
73
|
# auth_names
|
|
71
|
-
auth_names = opts[:
|
|
74
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'bearerAuth']
|
|
72
75
|
|
|
73
76
|
new_options = opts.merge(
|
|
77
|
+
:operation => :"UsersApi.create_user",
|
|
74
78
|
:header_params => header_params,
|
|
75
79
|
:query_params => query_params,
|
|
76
80
|
:form_params => form_params,
|
|
@@ -87,7 +91,7 @@ module SunshineConversationsClient
|
|
|
87
91
|
end
|
|
88
92
|
|
|
89
93
|
# Delete User
|
|
90
|
-
# Delete a user, its clients and its conversation history. The user is considered completely deleted once the `user:delete` webhook is fired. To only delete a user’s personal information, see [Delete User Personal Information](#operation/
|
|
94
|
+
# Delete a user, its clients and its conversation history. The user is considered completely deleted once the `user:delete` webhook is fired. To only delete a user’s personal information, see [Delete User Personal Information](#operation/DeleteUserPersonalInformation).
|
|
91
95
|
# @param app_id [String] Identifies the app.
|
|
92
96
|
# @param user_id_or_external_id [String] The user's id or externalId.
|
|
93
97
|
# @param [Hash] opts the optional parameters
|
|
@@ -98,7 +102,7 @@ module SunshineConversationsClient
|
|
|
98
102
|
end
|
|
99
103
|
|
|
100
104
|
# Delete User
|
|
101
|
-
# Delete a user, its clients and its conversation history. The user is considered completely deleted once the `user:delete` webhook is fired. To only delete a user’s personal information, see [Delete User Personal Information](#operation/
|
|
105
|
+
# Delete a user, its clients and its conversation history. The user is considered completely deleted once the `user:delete` webhook is fired. To only delete a user’s personal information, see [Delete User Personal Information](#operation/DeleteUserPersonalInformation).
|
|
102
106
|
# @param app_id [String] Identifies the app.
|
|
103
107
|
# @param user_id_or_external_id [String] The user's id or externalId.
|
|
104
108
|
# @param [Hash] opts the optional parameters
|
|
@@ -124,21 +128,22 @@ module SunshineConversationsClient
|
|
|
124
128
|
# header parameters
|
|
125
129
|
header_params = opts[:header_params] || {}
|
|
126
130
|
# HTTP header 'Accept' (if needed)
|
|
127
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
131
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
128
132
|
|
|
129
133
|
# form parameters
|
|
130
134
|
form_params = opts[:form_params] || {}
|
|
131
135
|
|
|
132
136
|
# http body (model)
|
|
133
|
-
post_body = opts[:
|
|
137
|
+
post_body = opts[:debug_body]
|
|
134
138
|
|
|
135
139
|
# return_type
|
|
136
|
-
return_type = opts[:
|
|
140
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
137
141
|
|
|
138
142
|
# auth_names
|
|
139
|
-
auth_names = opts[:
|
|
143
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'bearerAuth']
|
|
140
144
|
|
|
141
145
|
new_options = opts.merge(
|
|
146
|
+
:operation => :"UsersApi.delete_user",
|
|
142
147
|
:header_params => header_params,
|
|
143
148
|
:query_params => query_params,
|
|
144
149
|
:form_params => form_params,
|
|
@@ -155,7 +160,7 @@ module SunshineConversationsClient
|
|
|
155
160
|
end
|
|
156
161
|
|
|
157
162
|
# Delete User Personal Information
|
|
158
|
-
# Delete a user’s personal information. Calling this API will clear `givenName`, `surname`, `email` and `avatarUrl` and every custom property for the specified user. For every client owned by the user, it will also clear `displayName`, `avatarUrl` and any channel specific information stored in the info and raw fields. Calling this API doesn’t delete the user’s conversation history. To fully delete the user, see [Delete User](#operation/
|
|
163
|
+
# Delete a user’s personal information. Calling this API will clear `givenName`, `surname`, `email` and `avatarUrl` and every custom property for the specified user. For every client owned by the user, it will also clear `displayName`, `avatarUrl` and any channel specific information stored in the info and raw fields. Calling this API doesn’t delete the user’s conversation history. To fully delete the user, see [Delete User](#operation/DeleteUser).
|
|
159
164
|
# @param app_id [String] Identifies the app.
|
|
160
165
|
# @param user_id_or_external_id [String] The user's id or externalId.
|
|
161
166
|
# @param [Hash] opts the optional parameters
|
|
@@ -166,7 +171,7 @@ module SunshineConversationsClient
|
|
|
166
171
|
end
|
|
167
172
|
|
|
168
173
|
# Delete User Personal Information
|
|
169
|
-
# Delete a user’s personal information. Calling this API will clear `givenName`, `surname`, `email` and `avatarUrl` and every custom property for the specified user. For every client owned by the user, it will also clear `displayName`, `avatarUrl` and any channel specific information stored in the info and raw fields. Calling this API doesn’t delete the user’s conversation history. To fully delete the user, see [Delete User](#operation/
|
|
174
|
+
# Delete a user’s personal information. Calling this API will clear `givenName`, `surname`, `email` and `avatarUrl` and every custom property for the specified user. For every client owned by the user, it will also clear `displayName`, `avatarUrl` and any channel specific information stored in the info and raw fields. Calling this API doesn’t delete the user’s conversation history. To fully delete the user, see [Delete User](#operation/DeleteUser).
|
|
170
175
|
# @param app_id [String] Identifies the app.
|
|
171
176
|
# @param user_id_or_external_id [String] The user's id or externalId.
|
|
172
177
|
# @param [Hash] opts the optional parameters
|
|
@@ -192,21 +197,22 @@ module SunshineConversationsClient
|
|
|
192
197
|
# header parameters
|
|
193
198
|
header_params = opts[:header_params] || {}
|
|
194
199
|
# HTTP header 'Accept' (if needed)
|
|
195
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
200
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
196
201
|
|
|
197
202
|
# form parameters
|
|
198
203
|
form_params = opts[:form_params] || {}
|
|
199
204
|
|
|
200
205
|
# http body (model)
|
|
201
|
-
post_body = opts[:
|
|
206
|
+
post_body = opts[:debug_body]
|
|
202
207
|
|
|
203
208
|
# return_type
|
|
204
|
-
return_type = opts[:
|
|
209
|
+
return_type = opts[:debug_return_type] || 'UserResponse'
|
|
205
210
|
|
|
206
211
|
# auth_names
|
|
207
|
-
auth_names = opts[:
|
|
212
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'bearerAuth']
|
|
208
213
|
|
|
209
214
|
new_options = opts.merge(
|
|
215
|
+
:operation => :"UsersApi.delete_user_personal_information",
|
|
210
216
|
:header_params => header_params,
|
|
211
217
|
:query_params => query_params,
|
|
212
218
|
:form_params => form_params,
|
|
@@ -260,21 +266,22 @@ module SunshineConversationsClient
|
|
|
260
266
|
# header parameters
|
|
261
267
|
header_params = opts[:header_params] || {}
|
|
262
268
|
# HTTP header 'Accept' (if needed)
|
|
263
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
269
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
264
270
|
|
|
265
271
|
# form parameters
|
|
266
272
|
form_params = opts[:form_params] || {}
|
|
267
273
|
|
|
268
274
|
# http body (model)
|
|
269
|
-
post_body = opts[:
|
|
275
|
+
post_body = opts[:debug_body]
|
|
270
276
|
|
|
271
277
|
# return_type
|
|
272
|
-
return_type = opts[:
|
|
278
|
+
return_type = opts[:debug_return_type] || 'UserResponse'
|
|
273
279
|
|
|
274
280
|
# auth_names
|
|
275
|
-
auth_names = opts[:
|
|
281
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'bearerAuth']
|
|
276
282
|
|
|
277
283
|
new_options = opts.merge(
|
|
284
|
+
:operation => :"UsersApi.get_user",
|
|
278
285
|
:header_params => header_params,
|
|
279
286
|
:query_params => query_params,
|
|
280
287
|
:form_params => form_params,
|
|
@@ -291,7 +298,7 @@ module SunshineConversationsClient
|
|
|
291
298
|
end
|
|
292
299
|
|
|
293
300
|
# Synchronize User
|
|
294
|
-
# Synchronize a messaging user with its core Zendesk user counterpart. Messaging users are separate objects linked to a core Zendesk user record by `zendeskId`. It is possible for changes to be made to the core Zendesk user record in a way that causes the messaging user to fall out of sync. The core Zendesk user might have their primary email changed, for example. This endpoint can be used to update the messaging user with the `profile.givenName`, `profile.surname`, `externalId`, and primary email identity of its core Zendesk user counterpart.<br/><br/>It is also possible for two Zendesk users to be merged. In such a case, this API can be used to apply that merger on the messaging side. The surviving Zendesk user id can be specified via the `survivingZendeskId` parameter of the request body, and the outgoing `zendeskId` is specified in the request path. <aside class=\"notice\">Only the primary email identity of the core Zendesk user will be synchronized, and it will be set on the identities array, not in the profile.</aside> <br/> <aside class=\"notice\">In some circumstances, a single call to this API might produce changes on more than one messaging user. If the externalId or email being synchronized already exists on a different messaging user within the account, the conflict will be resolved by merging those messaging users together, if possible. If a conflicting messaging user is already linked to a core Zendesk user by zendeskId it cannot be merged. In this case, the conflicting externalId or email will instead be removed and reassigned to the messaging user that is being synchronized.</aside>
|
|
301
|
+
# Synchronize a messaging user with its core Zendesk user counterpart. Messaging users are separate objects linked to a core Zendesk user record by `zendeskId`. It is possible for changes to be made to the core Zendesk user record in a way that causes the messaging user to fall out of sync. The core Zendesk user might have their primary email changed, for example. This endpoint can be used to update the messaging user with the `profile.givenName`, `profile.surname`, `externalId`, and primary email identity of its core Zendesk user counterpart.<br/><br/>It is also possible for two Zendesk users to be merged. In such a case, this API can be used to apply that merger on the messaging side. The surviving Zendesk user id can be specified via the `survivingZendeskId` parameter of the request body, and the outgoing `zendeskId` is specified in the request path. <aside class=\"notice\"><strong>Note:</strong> Only the primary email identity of the core Zendesk user will be synchronized, and it will be set on the identities array, not in the profile.</aside> <br/> <aside class=\"notice\"><strong>Note:</strong> In some circumstances, a single call to this API might produce changes on more than one messaging user. If the externalId or email being synchronized already exists on a different messaging user within the account, the conflict will be resolved by merging those messaging users together, if possible. If a conflicting messaging user is already linked to a core Zendesk user by zendeskId it cannot be merged. In this case, the conflicting externalId or email will instead be removed and reassigned to the messaging user that is being synchronized.</aside>
|
|
295
302
|
# @param app_id [String] Identifies the app.
|
|
296
303
|
# @param zendesk_id [String] The ID that links a messaging user to its core Zendesk user counterpart. This ID can be used to fetch the core user record via the Zendesk Support API.
|
|
297
304
|
# @param [Hash] opts the optional parameters
|
|
@@ -303,7 +310,7 @@ module SunshineConversationsClient
|
|
|
303
310
|
end
|
|
304
311
|
|
|
305
312
|
# Synchronize User
|
|
306
|
-
# Synchronize a messaging user with its core Zendesk user counterpart. Messaging users are separate objects linked to a core Zendesk user record by `zendeskId`. It is possible for changes to be made to the core Zendesk user record in a way that causes the messaging user to fall out of sync. The core Zendesk user might have their primary email changed, for example. This endpoint can be used to update the messaging user with the `profile.givenName`, `profile.surname`, `externalId`, and primary email identity of its core Zendesk user counterpart.<br/><br/>It is also possible for two Zendesk users to be merged. In such a case, this API can be used to apply that merger on the messaging side. The surviving Zendesk user id can be specified via the `survivingZendeskId` parameter of the request body, and the outgoing `zendeskId` is specified in the request path. <aside class=\"notice\">Only the primary email identity of the core Zendesk user will be synchronized, and it will be set on the identities array, not in the profile.</aside> <br/> <aside class=\"notice\">In some circumstances, a single call to this API might produce changes on more than one messaging user. If the externalId or email being synchronized already exists on a different messaging user within the account, the conflict will be resolved by merging those messaging users together, if possible. If a conflicting messaging user is already linked to a core Zendesk user by zendeskId it cannot be merged. In this case, the conflicting externalId or email will instead be removed and reassigned to the messaging user that is being synchronized.</aside>
|
|
313
|
+
# Synchronize a messaging user with its core Zendesk user counterpart. Messaging users are separate objects linked to a core Zendesk user record by `zendeskId`. It is possible for changes to be made to the core Zendesk user record in a way that causes the messaging user to fall out of sync. The core Zendesk user might have their primary email changed, for example. This endpoint can be used to update the messaging user with the `profile.givenName`, `profile.surname`, `externalId`, and primary email identity of its core Zendesk user counterpart.<br/><br/>It is also possible for two Zendesk users to be merged. In such a case, this API can be used to apply that merger on the messaging side. The surviving Zendesk user id can be specified via the `survivingZendeskId` parameter of the request body, and the outgoing `zendeskId` is specified in the request path. <aside class=\"notice\"><strong>Note:</strong> Only the primary email identity of the core Zendesk user will be synchronized, and it will be set on the identities array, not in the profile.</aside> <br/> <aside class=\"notice\"><strong>Note:</strong> In some circumstances, a single call to this API might produce changes on more than one messaging user. If the externalId or email being synchronized already exists on a different messaging user within the account, the conflict will be resolved by merging those messaging users together, if possible. If a conflicting messaging user is already linked to a core Zendesk user by zendeskId it cannot be merged. In this case, the conflicting externalId or email will instead be removed and reassigned to the messaging user that is being synchronized.</aside>
|
|
307
314
|
# @param app_id [String] Identifies the app.
|
|
308
315
|
# @param zendesk_id [String] The ID that links a messaging user to its core Zendesk user counterpart. This ID can be used to fetch the core user record via the Zendesk Support API.
|
|
309
316
|
# @param [Hash] opts the optional parameters
|
|
@@ -330,23 +337,27 @@ module SunshineConversationsClient
|
|
|
330
337
|
# header parameters
|
|
331
338
|
header_params = opts[:header_params] || {}
|
|
332
339
|
# HTTP header 'Accept' (if needed)
|
|
333
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
340
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
334
341
|
# HTTP header 'Content-Type'
|
|
335
|
-
|
|
342
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
343
|
+
if !content_type.nil?
|
|
344
|
+
header_params['Content-Type'] = content_type
|
|
345
|
+
end
|
|
336
346
|
|
|
337
347
|
# form parameters
|
|
338
348
|
form_params = opts[:form_params] || {}
|
|
339
349
|
|
|
340
350
|
# http body (model)
|
|
341
|
-
post_body = opts[:
|
|
351
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'sync_user_body'])
|
|
342
352
|
|
|
343
353
|
# return_type
|
|
344
|
-
return_type = opts[:
|
|
354
|
+
return_type = opts[:debug_return_type] || 'UserResponse'
|
|
345
355
|
|
|
346
356
|
# auth_names
|
|
347
|
-
auth_names = opts[:
|
|
357
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'bearerAuth']
|
|
348
358
|
|
|
349
359
|
new_options = opts.merge(
|
|
360
|
+
:operation => :"UsersApi.sync_user",
|
|
350
361
|
:header_params => header_params,
|
|
351
362
|
:query_params => query_params,
|
|
352
363
|
:form_params => form_params,
|
|
@@ -406,23 +417,27 @@ module SunshineConversationsClient
|
|
|
406
417
|
# header parameters
|
|
407
418
|
header_params = opts[:header_params] || {}
|
|
408
419
|
# HTTP header 'Accept' (if needed)
|
|
409
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
420
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
410
421
|
# HTTP header 'Content-Type'
|
|
411
|
-
|
|
422
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
423
|
+
if !content_type.nil?
|
|
424
|
+
header_params['Content-Type'] = content_type
|
|
425
|
+
end
|
|
412
426
|
|
|
413
427
|
# form parameters
|
|
414
428
|
form_params = opts[:form_params] || {}
|
|
415
429
|
|
|
416
430
|
# http body (model)
|
|
417
|
-
post_body = opts[:
|
|
431
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(user_update_body)
|
|
418
432
|
|
|
419
433
|
# return_type
|
|
420
|
-
return_type = opts[:
|
|
434
|
+
return_type = opts[:debug_return_type] || 'UserResponse'
|
|
421
435
|
|
|
422
436
|
# auth_names
|
|
423
|
-
auth_names = opts[:
|
|
437
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'bearerAuth']
|
|
424
438
|
|
|
425
439
|
new_options = opts.merge(
|
|
440
|
+
:operation => :"UsersApi.update_user",
|
|
426
441
|
:header_params => header_params,
|
|
427
442
|
:query_params => query_params,
|
|
428
443
|
:form_params => form_params,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Sunshine Conversations API
|
|
3
3
|
|
|
4
|
-
The version of the OpenAPI document:
|
|
4
|
+
The version of the OpenAPI document: 17.0.0
|
|
5
5
|
|
|
6
6
|
Generated by: https://openapi-generator.tech
|
|
7
|
-
OpenAPI Generator version:
|
|
7
|
+
OpenAPI Generator version: 7.12.0
|
|
8
8
|
=end
|
|
9
9
|
|
|
10
10
|
require 'cgi'
|
|
@@ -60,23 +60,27 @@ module SunshineConversationsClient
|
|
|
60
60
|
# header parameters
|
|
61
61
|
header_params = opts[:header_params] || {}
|
|
62
62
|
# HTTP header 'Accept' (if needed)
|
|
63
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
63
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
64
64
|
# HTTP header 'Content-Type'
|
|
65
|
-
|
|
65
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
66
|
+
if !content_type.nil?
|
|
67
|
+
header_params['Content-Type'] = content_type
|
|
68
|
+
end
|
|
66
69
|
|
|
67
70
|
# form parameters
|
|
68
71
|
form_params = opts[:form_params] || {}
|
|
69
72
|
|
|
70
73
|
# http body (model)
|
|
71
|
-
post_body = opts[:
|
|
74
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(webhook_create_body)
|
|
72
75
|
|
|
73
76
|
# return_type
|
|
74
|
-
return_type = opts[:
|
|
77
|
+
return_type = opts[:debug_return_type] || 'WebhookResponse'
|
|
75
78
|
|
|
76
79
|
# auth_names
|
|
77
|
-
auth_names = opts[:
|
|
80
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'bearerAuth']
|
|
78
81
|
|
|
79
82
|
new_options = opts.merge(
|
|
83
|
+
:operation => :"WebhooksApi.create_webhook",
|
|
80
84
|
:header_params => header_params,
|
|
81
85
|
:query_params => query_params,
|
|
82
86
|
:form_params => form_params,
|
|
@@ -136,21 +140,22 @@ module SunshineConversationsClient
|
|
|
136
140
|
# header parameters
|
|
137
141
|
header_params = opts[:header_params] || {}
|
|
138
142
|
# HTTP header 'Accept' (if needed)
|
|
139
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
143
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
140
144
|
|
|
141
145
|
# form parameters
|
|
142
146
|
form_params = opts[:form_params] || {}
|
|
143
147
|
|
|
144
148
|
# http body (model)
|
|
145
|
-
post_body = opts[:
|
|
149
|
+
post_body = opts[:debug_body]
|
|
146
150
|
|
|
147
151
|
# return_type
|
|
148
|
-
return_type = opts[:
|
|
152
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
149
153
|
|
|
150
154
|
# auth_names
|
|
151
|
-
auth_names = opts[:
|
|
155
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'bearerAuth']
|
|
152
156
|
|
|
153
157
|
new_options = opts.merge(
|
|
158
|
+
:operation => :"WebhooksApi.delete_webhook",
|
|
154
159
|
:header_params => header_params,
|
|
155
160
|
:query_params => query_params,
|
|
156
161
|
:form_params => form_params,
|
|
@@ -210,21 +215,22 @@ module SunshineConversationsClient
|
|
|
210
215
|
# header parameters
|
|
211
216
|
header_params = opts[:header_params] || {}
|
|
212
217
|
# HTTP header 'Accept' (if needed)
|
|
213
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
218
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
214
219
|
|
|
215
220
|
# form parameters
|
|
216
221
|
form_params = opts[:form_params] || {}
|
|
217
222
|
|
|
218
223
|
# http body (model)
|
|
219
|
-
post_body = opts[:
|
|
224
|
+
post_body = opts[:debug_body]
|
|
220
225
|
|
|
221
226
|
# return_type
|
|
222
|
-
return_type = opts[:
|
|
227
|
+
return_type = opts[:debug_return_type] || 'WebhookResponse'
|
|
223
228
|
|
|
224
229
|
# auth_names
|
|
225
|
-
auth_names = opts[:
|
|
230
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'bearerAuth']
|
|
226
231
|
|
|
227
232
|
new_options = opts.merge(
|
|
233
|
+
:operation => :"WebhooksApi.get_webhook",
|
|
228
234
|
:header_params => header_params,
|
|
229
235
|
:query_params => query_params,
|
|
230
236
|
:form_params => form_params,
|
|
@@ -278,21 +284,22 @@ module SunshineConversationsClient
|
|
|
278
284
|
# header parameters
|
|
279
285
|
header_params = opts[:header_params] || {}
|
|
280
286
|
# HTTP header 'Accept' (if needed)
|
|
281
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
287
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
282
288
|
|
|
283
289
|
# form parameters
|
|
284
290
|
form_params = opts[:form_params] || {}
|
|
285
291
|
|
|
286
292
|
# http body (model)
|
|
287
|
-
post_body = opts[:
|
|
293
|
+
post_body = opts[:debug_body]
|
|
288
294
|
|
|
289
295
|
# return_type
|
|
290
|
-
return_type = opts[:
|
|
296
|
+
return_type = opts[:debug_return_type] || 'WebhookListResponse'
|
|
291
297
|
|
|
292
298
|
# auth_names
|
|
293
|
-
auth_names = opts[:
|
|
299
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'bearerAuth']
|
|
294
300
|
|
|
295
301
|
new_options = opts.merge(
|
|
302
|
+
:operation => :"WebhooksApi.list_webhooks",
|
|
296
303
|
:header_params => header_params,
|
|
297
304
|
:query_params => query_params,
|
|
298
305
|
:form_params => form_params,
|
|
@@ -358,23 +365,27 @@ module SunshineConversationsClient
|
|
|
358
365
|
# header parameters
|
|
359
366
|
header_params = opts[:header_params] || {}
|
|
360
367
|
# HTTP header 'Accept' (if needed)
|
|
361
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
368
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
362
369
|
# HTTP header 'Content-Type'
|
|
363
|
-
|
|
370
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
371
|
+
if !content_type.nil?
|
|
372
|
+
header_params['Content-Type'] = content_type
|
|
373
|
+
end
|
|
364
374
|
|
|
365
375
|
# form parameters
|
|
366
376
|
form_params = opts[:form_params] || {}
|
|
367
377
|
|
|
368
378
|
# http body (model)
|
|
369
|
-
post_body = opts[:
|
|
379
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(webhook_body)
|
|
370
380
|
|
|
371
381
|
# return_type
|
|
372
|
-
return_type = opts[:
|
|
382
|
+
return_type = opts[:debug_return_type] || 'WebhookResponse'
|
|
373
383
|
|
|
374
384
|
# auth_names
|
|
375
|
-
auth_names = opts[:
|
|
385
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth', 'bearerAuth']
|
|
376
386
|
|
|
377
387
|
new_options = opts.merge(
|
|
388
|
+
:operation => :"WebhooksApi.update_webhook",
|
|
378
389
|
:header_params => header_params,
|
|
379
390
|
:query_params => query_params,
|
|
380
391
|
:form_params => form_params,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Sunshine Conversations API
|
|
3
3
|
|
|
4
|
-
The version of the OpenAPI document:
|
|
4
|
+
The version of the OpenAPI document: 17.0.0
|
|
5
5
|
|
|
6
6
|
Generated by: https://openapi-generator.tech
|
|
7
|
-
OpenAPI Generator version:
|
|
7
|
+
OpenAPI Generator version: 7.12.0
|
|
8
8
|
=end
|
|
9
9
|
|
|
10
10
|
require 'date'
|
|
@@ -42,9 +42,11 @@ module SunshineConversationsClient
|
|
|
42
42
|
# Call an API with given options.
|
|
43
43
|
#
|
|
44
44
|
# @return [Array<(Object, Integer, Hash)>] an array of 3 elements:
|
|
45
|
-
# the data deserialized from response body (
|
|
45
|
+
# the data deserialized from response body (may be a Tempfile or nil), response status code and response headers.
|
|
46
46
|
def call_api(http_method, path, opts = {})
|
|
47
47
|
request = build_request(http_method, path, opts)
|
|
48
|
+
tempfile = nil
|
|
49
|
+
(download_file(request) { tempfile = _1 }) if opts[:return_type] == 'File'
|
|
48
50
|
response = request.run
|
|
49
51
|
|
|
50
52
|
if @config.debugging
|
|
@@ -66,7 +68,9 @@ module SunshineConversationsClient
|
|
|
66
68
|
end
|
|
67
69
|
end
|
|
68
70
|
|
|
69
|
-
if opts[:return_type]
|
|
71
|
+
if opts[:return_type] == 'File'
|
|
72
|
+
data = tempfile
|
|
73
|
+
elsif opts[:return_type]
|
|
70
74
|
data = deserialize(response, opts[:return_type])
|
|
71
75
|
else
|
|
72
76
|
data = nil
|
|
@@ -84,12 +88,13 @@ module SunshineConversationsClient
|
|
|
84
88
|
# @option opts [Object] :body HTTP body (JSON/XML)
|
|
85
89
|
# @return [Typhoeus::Request] A Typhoeus Request
|
|
86
90
|
def build_request(http_method, path, opts = {})
|
|
87
|
-
url = build_request_url(path)
|
|
91
|
+
url = build_request_url(path, opts)
|
|
88
92
|
http_method = http_method.to_sym.downcase
|
|
89
93
|
|
|
90
94
|
header_params = @default_headers.merge(opts[:header_params] || {})
|
|
91
95
|
query_params = opts[:query_params] || {}
|
|
92
96
|
form_params = opts[:form_params] || {}
|
|
97
|
+
follow_location = opts[:follow_location] || true
|
|
93
98
|
|
|
94
99
|
update_params_for_auth! header_params, query_params, opts[:auth_names]
|
|
95
100
|
|
|
@@ -106,7 +111,8 @@ module SunshineConversationsClient
|
|
|
106
111
|
:ssl_verifyhost => _verify_ssl_host,
|
|
107
112
|
:sslcert => @config.cert_file,
|
|
108
113
|
:sslkey => @config.key_file,
|
|
109
|
-
:verbose => @config.debugging
|
|
114
|
+
:verbose => @config.debugging,
|
|
115
|
+
:followlocation => follow_location
|
|
110
116
|
}
|
|
111
117
|
|
|
112
118
|
# set custom cert, if provided
|
|
@@ -120,9 +126,7 @@ module SunshineConversationsClient
|
|
|
120
126
|
end
|
|
121
127
|
end
|
|
122
128
|
|
|
123
|
-
|
|
124
|
-
download_file(request) if opts[:return_type] == 'File'
|
|
125
|
-
request
|
|
129
|
+
Typhoeus::Request.new(url, req_opts)
|
|
126
130
|
end
|
|
127
131
|
|
|
128
132
|
# Builds the HTTP request body
|
|
@@ -153,6 +157,47 @@ module SunshineConversationsClient
|
|
|
153
157
|
data
|
|
154
158
|
end
|
|
155
159
|
|
|
160
|
+
# Save response body into a file in (the defined) temporary folder, using the filename
|
|
161
|
+
# from the "Content-Disposition" header if provided, otherwise a random filename.
|
|
162
|
+
# The response body is written to the file in chunks in order to handle files which
|
|
163
|
+
# size is larger than maximum Ruby String or even larger than the maximum memory a Ruby
|
|
164
|
+
# process can use.
|
|
165
|
+
#
|
|
166
|
+
# @see Configuration#temp_folder_path
|
|
167
|
+
#
|
|
168
|
+
# @return [Tempfile] the tempfile generated
|
|
169
|
+
def download_file(request)
|
|
170
|
+
tempfile = nil
|
|
171
|
+
encoding = nil
|
|
172
|
+
request.on_headers do |response|
|
|
173
|
+
content_disposition = response.headers['Content-Disposition']
|
|
174
|
+
if content_disposition && content_disposition =~ /filename=/i
|
|
175
|
+
filename = content_disposition[/filename=['"]?([^'"\s]+)['"]?/, 1]
|
|
176
|
+
prefix = sanitize_filename(filename)
|
|
177
|
+
else
|
|
178
|
+
prefix = 'download-'
|
|
179
|
+
end
|
|
180
|
+
prefix = prefix + '-' unless prefix.end_with?('-')
|
|
181
|
+
encoding = response.body.encoding
|
|
182
|
+
tempfile = Tempfile.open(prefix, @config.temp_folder_path, encoding: encoding)
|
|
183
|
+
end
|
|
184
|
+
request.on_body do |chunk|
|
|
185
|
+
chunk.force_encoding(encoding)
|
|
186
|
+
tempfile.write(chunk)
|
|
187
|
+
end
|
|
188
|
+
request.on_complete do
|
|
189
|
+
if !tempfile
|
|
190
|
+
fail ApiError.new("Failed to create the tempfile based on the HTTP response from the server: #{request.inspect}")
|
|
191
|
+
end
|
|
192
|
+
tempfile.close
|
|
193
|
+
@config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
|
|
194
|
+
"with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
|
|
195
|
+
"will be deleted automatically with GC. It's also recommended to delete the temp file "\
|
|
196
|
+
"explicitly with `tempfile.delete`"
|
|
197
|
+
yield tempfile if block_given?
|
|
198
|
+
end
|
|
199
|
+
end
|
|
200
|
+
|
|
156
201
|
# Check if the given MIME is a JSON MIME.
|
|
157
202
|
# JSON MIME examples:
|
|
158
203
|
# application/json
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Sunshine Conversations API
|
|
3
3
|
|
|
4
|
-
The version of the OpenAPI document:
|
|
4
|
+
The version of the OpenAPI document: 17.0.0
|
|
5
5
|
|
|
6
6
|
Generated by: https://openapi-generator.tech
|
|
7
|
-
OpenAPI Generator version:
|
|
7
|
+
OpenAPI Generator version: 7.12.0
|
|
8
8
|
=end
|
|
9
9
|
|
|
10
10
|
module SunshineConversationsClient
|
|
@@ -29,6 +29,7 @@ module SunshineConversationsClient
|
|
|
29
29
|
end
|
|
30
30
|
else
|
|
31
31
|
super arg
|
|
32
|
+
@message = arg
|
|
32
33
|
end
|
|
33
34
|
end
|
|
34
35
|
|