twilio-ruby 5.25.4 → 5.26.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -3
- data/.travis.yml +3 -0
- data/CHANGES.md +24 -0
- data/README.md +22 -14
- data/lib/twilio-ruby/http/http_client.rb +4 -3
- data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +2 -2
- data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +10 -4
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_credential_list_mapping.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_ip_access_control_list_mapping.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping/auth_registrations_credential_list_mapping.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +2 -2
- data/lib/twilio-ruby/rest/authy/v1/service.rb +2 -2
- data/lib/twilio-ruby/rest/authy/v1/service/entity.rb +2 -2
- data/lib/twilio-ruby/rest/authy/v1/service/entity/factor.rb +2 -2
- data/lib/twilio-ruby/rest/authy/v1/service/entity/factor/challenge.rb +2 -2
- data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +2 -2
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb +2 -2
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb +2 -2
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/model_build.rb +2 -2
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +2 -2
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task.rb +2 -2
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/field.rb +2 -2
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/sample.rb +2 -2
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/webhook.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v1/credential.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v1/service.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v2.rb +2 -4
- data/lib/twilio-ruby/rest/chat/v2/credential.rb +12 -14
- data/lib/twilio-ruby/rest/chat/v2/service.rb +35 -43
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +17 -19
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +28 -24
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +17 -16
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +43 -44
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +38 -37
- data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +25 -26
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +19 -17
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +17 -17
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +25 -27
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +8 -5
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +32 -6
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +30 -6
- data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +27 -6
- data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +2 -2
- data/lib/twilio-ruby/rest/fax/v1/fax.rb +2 -2
- data/lib/twilio-ruby/rest/fax/v1/fax/fax_media.rb +2 -2
- data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +2 -2
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +14 -0
- data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +2 -2
- data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v2.rb +2 -4
- data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +12 -14
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +35 -43
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +17 -19
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +28 -24
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +17 -16
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +43 -44
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +38 -37
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +25 -26
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +19 -17
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +17 -17
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +25 -27
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +8 -5
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +2 -2
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +2 -2
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +2 -2
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +2 -2
- data/lib/twilio-ruby/rest/messaging/v1/session.rb +2 -2
- data/lib/twilio-ruby/rest/messaging/v1/session/message.rb +2 -2
- data/lib/twilio-ruby/rest/messaging/v1/session/participant.rb +2 -2
- data/lib/twilio-ruby/rest/messaging/v1/session/webhook.rb +2 -2
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +2 -2
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +2 -2
- data/lib/twilio-ruby/rest/notify/v1/service.rb +2 -2
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +2 -2
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +2 -2
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +2 -2
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +2 -2
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +2 -2
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +2 -2
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +2 -2
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +2 -2
- data/lib/twilio-ruby/rest/preview/sync/service.rb +2 -2
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +2 -2
- data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +2 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +2 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +2 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +2 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +2 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +2 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +2 -2
- data/lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb +10 -2
- data/lib/twilio-ruby/rest/preview/understand/assistant.rb +2 -2
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb +2 -2
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type/field_value.rb +2 -2
- data/lib/twilio-ruby/rest/preview/understand/assistant/model_build.rb +2 -2
- data/lib/twilio-ruby/rest/preview/understand/assistant/query.rb +2 -2
- data/lib/twilio-ruby/rest/preview/understand/assistant/task.rb +2 -2
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/field.rb +2 -2
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/sample.rb +2 -2
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +2 -2
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +2 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +2 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +2 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +2 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +2 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +2 -2
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +2 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +2 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +2 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +2 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +2 -2
- data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +2 -2
- data/lib/twilio-ruby/rest/studio.rb +2 -1
- data/lib/twilio-ruby/rest/studio/v1.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v1/flow.rb +13 -13
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +25 -24
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb +11 -11
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb +20 -20
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb +15 -17
- data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +44 -38
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb +12 -11
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb +21 -20
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb +18 -17
- data/lib/twilio-ruby/rest/sync.rb +2 -1
- data/lib/twilio-ruby/rest/sync/v1.rb +1 -1
- data/lib/twilio-ruby/rest/sync/v1/service.rb +90 -93
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +46 -33
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +36 -38
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +44 -31
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +94 -76
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +37 -38
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +45 -33
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +98 -81
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +35 -38
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +39 -28
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +14 -12
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +2 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +2 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +2 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +2 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +2 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +2 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +2 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +2 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +2 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +2 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +2 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +2 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk/terminating_sip_domain.rb +2 -2
- data/lib/twilio-ruby/rest/verify/v2/service.rb +2 -2
- data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +2 -2
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +3 -3
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +2 -2
- data/lib/twilio-ruby/rest/video/v1/composition.rb +2 -2
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +2 -2
- data/lib/twilio-ruby/rest/video/v1/recording.rb +2 -2
- data/lib/twilio-ruby/rest/video/v1/room/recording.rb +2 -2
- data/lib/twilio-ruby/rest/wireless.rb +3 -3
- data/lib/twilio-ruby/rest/wireless/v1.rb +3 -6
- data/lib/twilio-ruby/rest/wireless/v1/command.rb +54 -52
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +64 -65
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +147 -141
- data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +34 -28
- data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +32 -32
- data/lib/twilio-ruby/rest/wireless/v1/usage_record.rb +19 -19
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/api/v2010/account/call_spec.rb +45 -0
- data/spec/integration/api/v2010/account/message_spec.rb +37 -0
- data/spec/integration/conversations/v1/conversation/message_spec.rb +5 -0
- data/spec/integration/conversations/v1/conversation/participant_spec.rb +8 -10
- data/spec/integration/conversations/v1/conversation_spec.rb +4 -0
- data/spec/integration/flex_api/v1/configuration_spec.rb +24 -0
- data/spec/integration/preview/trusted_comms/branded_call_spec.rb +1 -0
- data/spec/integration/verify/v2/service/verification_spec.rb +1 -1
- metadata +2 -2
@@ -17,11 +17,11 @@ module Twilio
|
|
17
17
|
# Initialize the WebhookList
|
18
18
|
# @param [Version] version Version that contains the resource
|
19
19
|
# @param [String] service_sid The SID of the
|
20
|
-
# [Service](https://www.twilio.com/docs/chat/rest/services) the
|
21
|
-
# associated with.
|
20
|
+
# [Service](https://www.twilio.com/docs/chat/rest/services) the Channel Webhook
|
21
|
+
# resource is associated with.
|
22
22
|
# @param [String] channel_sid The SID of the
|
23
|
-
# [Channel](https://www.twilio.com/docs/chat/channels) the
|
24
|
-
# belongs to.
|
23
|
+
# [Channel](https://www.twilio.com/docs/chat/channels) the Channel Webhook
|
24
|
+
# resource belongs to.
|
25
25
|
# @return [WebhookList] WebhookList
|
26
26
|
def initialize(version, service_sid: nil, channel_sid: nil)
|
27
27
|
super(version)
|
@@ -128,7 +128,7 @@ module Twilio
|
|
128
128
|
# the list of possible events, see [Webhook Event
|
129
129
|
# Triggers](https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger).
|
130
130
|
# @param [String] configuration_triggers A string that will cause us to call the
|
131
|
-
# webhook when it is
|
131
|
+
# webhook when it is present in a message body. This parameter takes only one
|
132
132
|
# trigger string. To specify more than one, repeat this parameter for each trigger
|
133
133
|
# string up to a total of 5 trigger strings. Used only when `type` = `trigger`.
|
134
134
|
# @param [String] configuration_flow_sid The SID of the Studio
|
@@ -209,13 +209,13 @@ module Twilio
|
|
209
209
|
# Initialize the WebhookContext
|
210
210
|
# @param [Version] version Version that contains the resource
|
211
211
|
# @param [String] service_sid The SID of the
|
212
|
-
# [Service](https://www.twilio.com/docs/chat/rest/services)
|
213
|
-
# from.
|
212
|
+
# [Service](https://www.twilio.com/docs/chat/rest/services) with the Channel to
|
213
|
+
# fetch the Webhook resource from.
|
214
214
|
# @param [String] channel_sid The SID of the
|
215
|
-
# [Channel](https://www.twilio.com/docs/chat/channels) the
|
216
|
-
# belongs to.
|
217
|
-
#
|
218
|
-
#
|
215
|
+
# [Channel](https://www.twilio.com/docs/chat/channels) the Channel Webhook
|
216
|
+
# resource to fetch belongs to. This value can be the Channel resource's `sid` or
|
217
|
+
# `unique_name`.
|
218
|
+
# @param [String] sid The SID of the Channel Webhook resource to fetch.
|
219
219
|
# @return [WebhookContext] WebhookContext
|
220
220
|
def initialize(version, service_sid, channel_sid, sid)
|
221
221
|
super(version)
|
@@ -258,7 +258,7 @@ module Twilio
|
|
258
258
|
# the list of possible events, see [Webhook Event
|
259
259
|
# Triggers](https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger).
|
260
260
|
# @param [String] configuration_triggers A string that will cause us to call the
|
261
|
-
# webhook when it is
|
261
|
+
# webhook when it is present in a message body. This parameter takes only one
|
262
262
|
# trigger string. To specify more than one, repeat this parameter for each trigger
|
263
263
|
# string up to a total of 5 trigger strings. Used only when `type` = `trigger`.
|
264
264
|
# @param [String] configuration_flow_sid The SID of the Studio
|
@@ -295,7 +295,7 @@ module Twilio
|
|
295
295
|
|
296
296
|
##
|
297
297
|
# Deletes the WebhookInstance
|
298
|
-
# @return [Boolean] true if delete succeeds,
|
298
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
299
299
|
def delete
|
300
300
|
@version.delete('delete', @uri)
|
301
301
|
end
|
@@ -321,13 +321,12 @@ module Twilio
|
|
321
321
|
# @param [Version] version Version that contains the resource
|
322
322
|
# @param [Hash] payload payload that contains response from Twilio
|
323
323
|
# @param [String] service_sid The SID of the
|
324
|
-
# [Service](https://www.twilio.com/docs/chat/rest/services) the
|
325
|
-
# associated with.
|
324
|
+
# [Service](https://www.twilio.com/docs/chat/rest/services) the Channel Webhook
|
325
|
+
# resource is associated with.
|
326
326
|
# @param [String] channel_sid The SID of the
|
327
|
-
# [Channel](https://www.twilio.com/docs/chat/channels) the
|
328
|
-
# belongs to.
|
329
|
-
# @param [String] sid The
|
330
|
-
# ChannelWebhook resource to fetch.
|
327
|
+
# [Channel](https://www.twilio.com/docs/chat/channels) the Channel Webhook
|
328
|
+
# resource belongs to.
|
329
|
+
# @param [String] sid The SID of the Channel Webhook resource to fetch.
|
331
330
|
# @return [WebhookInstance] WebhookInstance
|
332
331
|
def initialize(version, payload, service_sid: nil, channel_sid: nil, sid: nil)
|
333
332
|
super(version)
|
@@ -383,13 +382,13 @@ module Twilio
|
|
383
382
|
end
|
384
383
|
|
385
384
|
##
|
386
|
-
# @return [String] The SID of the Service that the resource is associated with
|
385
|
+
# @return [String] The SID of the Service that the Channel Webhook resource is associated with
|
387
386
|
def service_sid
|
388
387
|
@properties['service_sid']
|
389
388
|
end
|
390
389
|
|
391
390
|
##
|
392
|
-
# @return [String] The SID of the Channel the
|
391
|
+
# @return [String] The SID of the Channel the Channel Webhook resource belongs to
|
393
392
|
def channel_sid
|
394
393
|
@properties['channel_sid']
|
395
394
|
end
|
@@ -401,7 +400,7 @@ module Twilio
|
|
401
400
|
end
|
402
401
|
|
403
402
|
##
|
404
|
-
# @return [String] The absolute URL of the resource
|
403
|
+
# @return [String] The absolute URL of the Channel Webhook resource
|
405
404
|
def url
|
406
405
|
@properties['url']
|
407
406
|
end
|
@@ -413,13 +412,13 @@ module Twilio
|
|
413
412
|
end
|
414
413
|
|
415
414
|
##
|
416
|
-
# @return [Time] The
|
415
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was created
|
417
416
|
def date_created
|
418
417
|
@properties['date_created']
|
419
418
|
end
|
420
419
|
|
421
420
|
##
|
422
|
-
# @return [Time] The
|
421
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was last updated
|
423
422
|
def date_updated
|
424
423
|
@properties['date_updated']
|
425
424
|
end
|
@@ -443,7 +442,7 @@ module Twilio
|
|
443
442
|
# the list of possible events, see [Webhook Event
|
444
443
|
# Triggers](https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger).
|
445
444
|
# @param [String] configuration_triggers A string that will cause us to call the
|
446
|
-
# webhook when it is
|
445
|
+
# webhook when it is present in a message body. This parameter takes only one
|
447
446
|
# trigger string. To specify more than one, repeat this parameter for each trigger
|
448
447
|
# string up to a total of 5 trigger strings. Used only when `type` = `trigger`.
|
449
448
|
# @param [String] configuration_flow_sid The SID of the Studio
|
@@ -466,7 +465,7 @@ module Twilio
|
|
466
465
|
|
467
466
|
##
|
468
467
|
# Deletes the WebhookInstance
|
469
|
-
# @return [Boolean] true if delete succeeds,
|
468
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
470
469
|
def delete
|
471
470
|
context.delete
|
472
471
|
end
|
@@ -16,7 +16,7 @@ module Twilio
|
|
16
16
|
# Initialize the RoleList
|
17
17
|
# @param [Version] version Version that contains the resource
|
18
18
|
# @param [String] service_sid The SID of the
|
19
|
-
# [Service](https://www.twilio.com/docs/chat/rest/services) the resource is
|
19
|
+
# [Service](https://www.twilio.com/docs/chat/rest/services) the Role resource is
|
20
20
|
# associated with.
|
21
21
|
# @return [RoleList] RoleList
|
22
22
|
def initialize(version, service_sid: nil)
|
@@ -38,7 +38,7 @@ module Twilio
|
|
38
38
|
# @param [String] permission A permission that you grant to the new role. Only one
|
39
39
|
# permission can be granted per parameter. To assign more than one permission,
|
40
40
|
# repeat this parameter for each permission value. The values for this parameter
|
41
|
-
# depend on the role's `type
|
41
|
+
# depend on the role's `type`.
|
42
42
|
# @return [RoleInstance] Newly created RoleInstance
|
43
43
|
def create(friendly_name: nil, type: nil, permission: nil)
|
44
44
|
data = Twilio::Values.of({
|
@@ -179,10 +179,9 @@ module Twilio
|
|
179
179
|
# Initialize the RoleContext
|
180
180
|
# @param [Version] version Version that contains the resource
|
181
181
|
# @param [String] service_sid The SID of the
|
182
|
-
# [Service](https://www.twilio.com/docs/chat/rest/services) to fetch the
|
183
|
-
# from.
|
184
|
-
# @param [String] sid The
|
185
|
-
# resource to fetch.
|
182
|
+
# [Service](https://www.twilio.com/docs/chat/rest/services) to fetch the Role
|
183
|
+
# resource from.
|
184
|
+
# @param [String] sid The SID of the Role resource to fetch.
|
186
185
|
# @return [RoleContext] RoleContext
|
187
186
|
def initialize(version, service_sid, sid)
|
188
187
|
super(version)
|
@@ -209,7 +208,7 @@ module Twilio
|
|
209
208
|
|
210
209
|
##
|
211
210
|
# Deletes the RoleInstance
|
212
|
-
# @return [Boolean] true if delete succeeds,
|
211
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
213
212
|
def delete
|
214
213
|
@version.delete('delete', @uri)
|
215
214
|
end
|
@@ -218,8 +217,10 @@ module Twilio
|
|
218
217
|
# Update the RoleInstance
|
219
218
|
# @param [String] permission A permission that you grant to the role. Only one
|
220
219
|
# permission can be granted per parameter. To assign more than one permission,
|
221
|
-
# repeat this parameter for each permission value.
|
222
|
-
#
|
220
|
+
# repeat this parameter for each permission value. Note that the update action
|
221
|
+
# replaces all previously assigned permissions with those defined in the update
|
222
|
+
# action. To remove a permission, do not include it in the subsequent update
|
223
|
+
# action. The values for this parameter depend on the role's `type`.
|
223
224
|
# @return [RoleInstance] Updated RoleInstance
|
224
225
|
def update(permission: nil)
|
225
226
|
data = Twilio::Values.of({'Permission' => Twilio.serialize_list(permission) { |e| e }, })
|
@@ -254,10 +255,9 @@ module Twilio
|
|
254
255
|
# @param [Version] version Version that contains the resource
|
255
256
|
# @param [Hash] payload payload that contains response from Twilio
|
256
257
|
# @param [String] service_sid The SID of the
|
257
|
-
# [Service](https://www.twilio.com/docs/chat/rest/services) the resource is
|
258
|
+
# [Service](https://www.twilio.com/docs/chat/rest/services) the Role resource is
|
258
259
|
# associated with.
|
259
|
-
# @param [String] sid The
|
260
|
-
# resource to fetch.
|
260
|
+
# @param [String] sid The SID of the Role resource to fetch.
|
261
261
|
# @return [RoleInstance] RoleInstance
|
262
262
|
def initialize(version, payload, service_sid: nil, sid: nil)
|
263
263
|
super(version)
|
@@ -328,13 +328,13 @@ module Twilio
|
|
328
328
|
end
|
329
329
|
|
330
330
|
##
|
331
|
-
# @return [Time] The
|
331
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was created
|
332
332
|
def date_created
|
333
333
|
@properties['date_created']
|
334
334
|
end
|
335
335
|
|
336
336
|
##
|
337
|
-
# @return [Time] The
|
337
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was last updated
|
338
338
|
def date_updated
|
339
339
|
@properties['date_updated']
|
340
340
|
end
|
@@ -354,7 +354,7 @@ module Twilio
|
|
354
354
|
|
355
355
|
##
|
356
356
|
# Deletes the RoleInstance
|
357
|
-
# @return [Boolean] true if delete succeeds,
|
357
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
358
358
|
def delete
|
359
359
|
context.delete
|
360
360
|
end
|
@@ -363,8 +363,10 @@ module Twilio
|
|
363
363
|
# Update the RoleInstance
|
364
364
|
# @param [String] permission A permission that you grant to the role. Only one
|
365
365
|
# permission can be granted per parameter. To assign more than one permission,
|
366
|
-
# repeat this parameter for each permission value.
|
367
|
-
#
|
366
|
+
# repeat this parameter for each permission value. Note that the update action
|
367
|
+
# replaces all previously assigned permissions with those defined in the update
|
368
|
+
# action. To remove a permission, do not include it in the subsequent update
|
369
|
+
# action. The values for this parameter depend on the role's `type`.
|
368
370
|
# @return [RoleInstance] Updated RoleInstance
|
369
371
|
def update(permission: nil)
|
370
372
|
context.update(permission: permission, )
|
@@ -16,7 +16,7 @@ module Twilio
|
|
16
16
|
# Initialize the UserList
|
17
17
|
# @param [Version] version Version that contains the resource
|
18
18
|
# @param [String] service_sid The SID of the
|
19
|
-
# [Service](https://www.twilio.com/docs/chat/rest/services) the resource is
|
19
|
+
# [Service](https://www.twilio.com/docs/chat/rest/services) the User resource is
|
20
20
|
# associated with.
|
21
21
|
# @return [UserList] UserList
|
22
22
|
def initialize(version, service_sid: nil)
|
@@ -33,9 +33,9 @@ module Twilio
|
|
33
33
|
# @param [String] identity The `identity` value that uniquely identifies the new
|
34
34
|
# resource's [User](https://www.twilio.com/docs/chat/rest/users) within the
|
35
35
|
# [Service](https://www.twilio.com/docs/chat/rest/services). This value is often a
|
36
|
-
# username or email address. See the Identity documentation for more
|
36
|
+
# username or email address. See the Identity documentation for more info.
|
37
37
|
# @param [String] role_sid The SID of the
|
38
|
-
# [Role](https://www.twilio.com/docs/chat/rest/roles)
|
38
|
+
# [Role](https://www.twilio.com/docs/chat/rest/roles) to assign to the new User.
|
39
39
|
# @param [String] attributes A valid JSON string that contains
|
40
40
|
# application-specific data.
|
41
41
|
# @param [String] friendly_name A descriptive string that you create to describe
|
@@ -181,10 +181,10 @@ module Twilio
|
|
181
181
|
# Initialize the UserContext
|
182
182
|
# @param [Version] version Version that contains the resource
|
183
183
|
# @param [String] service_sid The SID of the
|
184
|
-
# [Service](https://www.twilio.com/docs/chat/rest/services) to fetch the
|
185
|
-
# from.
|
186
|
-
# @param [String] sid The
|
187
|
-
# resource to fetch.
|
184
|
+
# [Service](https://www.twilio.com/docs/chat/rest/services) to fetch the User
|
185
|
+
# resource from.
|
186
|
+
# @param [String] sid The SID of the User resource to fetch. This value can be
|
187
|
+
# either the `sid` or the `identity` of the User resource to fetch.
|
188
188
|
# @return [UserContext] UserContext
|
189
189
|
def initialize(version, service_sid, sid)
|
190
190
|
super(version)
|
@@ -215,7 +215,7 @@ module Twilio
|
|
215
215
|
|
216
216
|
##
|
217
217
|
# Deletes the UserInstance
|
218
|
-
# @return [Boolean] true if delete succeeds,
|
218
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
219
219
|
def delete
|
220
220
|
@version.delete('delete', @uri)
|
221
221
|
end
|
@@ -223,7 +223,7 @@ module Twilio
|
|
223
223
|
##
|
224
224
|
# Update the UserInstance
|
225
225
|
# @param [String] role_sid The SID of the
|
226
|
-
# [Role](https://www.twilio.com/docs/chat/rest/roles)
|
226
|
+
# [Role](https://www.twilio.com/docs/chat/rest/roles) to assign to the User.
|
227
227
|
# @param [String] attributes A valid JSON string that contains
|
228
228
|
# application-specific data.
|
229
229
|
# @param [String] friendly_name A descriptive string that you create to describe
|
@@ -310,10 +310,10 @@ module Twilio
|
|
310
310
|
# @param [Version] version Version that contains the resource
|
311
311
|
# @param [Hash] payload payload that contains response from Twilio
|
312
312
|
# @param [String] service_sid The SID of the
|
313
|
-
# [Service](https://www.twilio.com/docs/chat/rest/services) the resource is
|
313
|
+
# [Service](https://www.twilio.com/docs/chat/rest/services) the User resource is
|
314
314
|
# associated with.
|
315
|
-
# @param [String] sid The
|
316
|
-
# resource to fetch.
|
315
|
+
# @param [String] sid The SID of the User resource to fetch. This value can be
|
316
|
+
# either the `sid` or the `identity` of the User resource to fetch.
|
317
317
|
# @return [UserInstance] UserInstance
|
318
318
|
def initialize(version, payload, service_sid: nil, sid: nil)
|
319
319
|
super(version)
|
@@ -407,19 +407,19 @@ module Twilio
|
|
407
407
|
end
|
408
408
|
|
409
409
|
##
|
410
|
-
# @return [Time] The
|
410
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was created
|
411
411
|
def date_created
|
412
412
|
@properties['date_created']
|
413
413
|
end
|
414
414
|
|
415
415
|
##
|
416
|
-
# @return [Time] The
|
416
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was last updated
|
417
417
|
def date_updated
|
418
418
|
@properties['date_updated']
|
419
419
|
end
|
420
420
|
|
421
421
|
##
|
422
|
-
# @return [String] The number of Channels
|
422
|
+
# @return [String] The number of Channels the User is a Member of
|
423
423
|
def joined_channels_count
|
424
424
|
@properties['joined_channels_count']
|
425
425
|
end
|
@@ -445,7 +445,7 @@ module Twilio
|
|
445
445
|
|
446
446
|
##
|
447
447
|
# Deletes the UserInstance
|
448
|
-
# @return [Boolean] true if delete succeeds,
|
448
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
449
449
|
def delete
|
450
450
|
context.delete
|
451
451
|
end
|
@@ -453,7 +453,7 @@ module Twilio
|
|
453
453
|
##
|
454
454
|
# Update the UserInstance
|
455
455
|
# @param [String] role_sid The SID of the
|
456
|
-
# [Role](https://www.twilio.com/docs/chat/rest/roles)
|
456
|
+
# [Role](https://www.twilio.com/docs/chat/rest/roles) to assign to the User.
|
457
457
|
# @param [String] attributes A valid JSON string that contains
|
458
458
|
# application-specific data.
|
459
459
|
# @param [String] friendly_name A descriptive string that you create to describe
|
@@ -17,13 +17,13 @@ module Twilio
|
|
17
17
|
# Initialize the UserBindingList
|
18
18
|
# @param [Version] version Version that contains the resource
|
19
19
|
# @param [String] service_sid The SID of the
|
20
|
-
# [Service](https://www.twilio.com/docs/chat/rest/services) the
|
21
|
-
# associated with.
|
20
|
+
# [Service](https://www.twilio.com/docs/chat/rest/services) the User Binding
|
21
|
+
# resource is associated with.
|
22
22
|
# @param [String] user_sid The SID of the
|
23
|
-
# [User](https://www.twilio.com/docs/chat/rest/users)
|
24
|
-
# notification
|
23
|
+
# [User](https://www.twilio.com/docs/chat/rest/users) with the User Binding
|
24
|
+
# resource. See [push notification
|
25
25
|
# configuration](https://www.twilio.com/docs/chat/push-notification-configuration)
|
26
|
-
# for more
|
26
|
+
# for more info.
|
27
27
|
# @return [UserBindingList] UserBindingList
|
28
28
|
def initialize(version, service_sid: nil, user_sid: nil)
|
29
29
|
super(version)
|
@@ -41,7 +41,7 @@ module Twilio
|
|
41
41
|
# User Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push
|
42
42
|
# notification
|
43
43
|
# configuration](https://www.twilio.com/docs/chat/push-notification-configuration)
|
44
|
-
# for more
|
44
|
+
# for more info.
|
45
45
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
46
46
|
# guarantees to never return more than limit. Default is no limit
|
47
47
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -61,7 +61,7 @@ module Twilio
|
|
61
61
|
# User Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push
|
62
62
|
# notification
|
63
63
|
# configuration](https://www.twilio.com/docs/chat/push-notification-configuration)
|
64
|
-
# for more
|
64
|
+
# for more info.
|
65
65
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
66
66
|
# guarantees to never return more than limit. Default is no limit.
|
67
67
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -98,7 +98,7 @@ module Twilio
|
|
98
98
|
# User Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push
|
99
99
|
# notification
|
100
100
|
# configuration](https://www.twilio.com/docs/chat/push-notification-configuration)
|
101
|
-
# for more
|
101
|
+
# for more info.
|
102
102
|
# @param [String] page_token PageToken provided by the API
|
103
103
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
104
104
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
@@ -177,15 +177,14 @@ module Twilio
|
|
177
177
|
# Initialize the UserBindingContext
|
178
178
|
# @param [Version] version Version that contains the resource
|
179
179
|
# @param [String] service_sid The SID of the
|
180
|
-
# [Service](https://www.twilio.com/docs/chat/rest/services) to fetch the
|
181
|
-
# from.
|
180
|
+
# [Service](https://www.twilio.com/docs/chat/rest/services) to fetch the User
|
181
|
+
# Binding resource from.
|
182
182
|
# @param [String] user_sid The SID of the
|
183
|
-
# [User](https://www.twilio.com/docs/chat/rest/users)
|
184
|
-
# notification
|
183
|
+
# [User](https://www.twilio.com/docs/chat/rest/users) with the User Binding
|
184
|
+
# resource to fetch. See [push notification
|
185
185
|
# configuration](https://www.twilio.com/docs/chat/push-notification-configuration)
|
186
|
-
# for more
|
187
|
-
# @param [String] sid The
|
188
|
-
# Binding resource to fetch.
|
186
|
+
# for more info.
|
187
|
+
# @param [String] sid The SID of the User Binding resource to fetch.
|
189
188
|
# @return [UserBindingContext] UserBindingContext
|
190
189
|
def initialize(version, service_sid, user_sid, sid)
|
191
190
|
super(version)
|
@@ -218,7 +217,7 @@ module Twilio
|
|
218
217
|
|
219
218
|
##
|
220
219
|
# Deletes the UserBindingInstance
|
221
|
-
# @return [Boolean] true if delete succeeds,
|
220
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
222
221
|
def delete
|
223
222
|
@version.delete('delete', @uri)
|
224
223
|
end
|
@@ -244,15 +243,14 @@ module Twilio
|
|
244
243
|
# @param [Version] version Version that contains the resource
|
245
244
|
# @param [Hash] payload payload that contains response from Twilio
|
246
245
|
# @param [String] service_sid The SID of the
|
247
|
-
# [Service](https://www.twilio.com/docs/chat/rest/services) the
|
248
|
-
# associated with.
|
246
|
+
# [Service](https://www.twilio.com/docs/chat/rest/services) the User Binding
|
247
|
+
# resource is associated with.
|
249
248
|
# @param [String] user_sid The SID of the
|
250
|
-
# [User](https://www.twilio.com/docs/chat/rest/users)
|
251
|
-
# notification
|
249
|
+
# [User](https://www.twilio.com/docs/chat/rest/users) with the User Binding
|
250
|
+
# resource. See [push notification
|
252
251
|
# configuration](https://www.twilio.com/docs/chat/push-notification-configuration)
|
253
|
-
# for more
|
254
|
-
# @param [String] sid The
|
255
|
-
# Binding resource to fetch.
|
252
|
+
# for more info.
|
253
|
+
# @param [String] sid The SID of the User Binding resource to fetch.
|
256
254
|
# @return [UserBindingInstance] UserBindingInstance
|
257
255
|
def initialize(version, payload, service_sid: nil, user_sid: nil, sid: nil)
|
258
256
|
super(version)
|
@@ -313,13 +311,13 @@ module Twilio
|
|
313
311
|
end
|
314
312
|
|
315
313
|
##
|
316
|
-
# @return [Time] The
|
314
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was created
|
317
315
|
def date_created
|
318
316
|
@properties['date_created']
|
319
317
|
end
|
320
318
|
|
321
319
|
##
|
322
|
-
# @return [Time] The
|
320
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was last updated
|
323
321
|
def date_updated
|
324
322
|
@properties['date_updated']
|
325
323
|
end
|
@@ -337,7 +335,7 @@ module Twilio
|
|
337
335
|
end
|
338
336
|
|
339
337
|
##
|
340
|
-
# @return [String] The SID of the User
|
338
|
+
# @return [String] The SID of the User with the binding
|
341
339
|
def user_sid
|
342
340
|
@properties['user_sid']
|
343
341
|
end
|
@@ -375,7 +373,7 @@ module Twilio
|
|
375
373
|
|
376
374
|
##
|
377
375
|
# Deletes the UserBindingInstance
|
378
|
-
# @return [Boolean] true if delete succeeds,
|
376
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
379
377
|
def delete
|
380
378
|
context.delete
|
381
379
|
end
|