twilio-ruby 5.25.4 → 5.26.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/.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,8 +17,8 @@ module Twilio
|
|
|
17
17
|
# Initialize the UserChannelList
|
|
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 Channel
|
|
21
|
+
# resource is associated with.
|
|
22
22
|
# @param [String] user_sid The SID of the
|
|
23
23
|
# [User](https://www.twilio.com/docs/chat/rest/users) the User Channel belongs to.
|
|
24
24
|
# @return [UserChannelList] UserChannelList
|
|
@@ -162,9 +162,11 @@ module Twilio
|
|
|
162
162
|
# Channel resource from.
|
|
163
163
|
# @param [String] user_sid The SID of the
|
|
164
164
|
# [User](https://www.twilio.com/docs/chat/rest/users) to fetch the User Channel
|
|
165
|
-
# resource from.
|
|
165
|
+
# resource from. This value can be either the `sid` or the `identity` of the User
|
|
166
|
+
# resource.
|
|
166
167
|
# @param [String] channel_sid The SID of the
|
|
167
168
|
# [Channel](https://www.twilio.com/docs/chat/channels) that has the User Channel
|
|
169
|
+
# to fetch. This value can be either the `sid` or the `unique_name` of the Channel
|
|
168
170
|
# to fetch.
|
|
169
171
|
# @return [UserChannelContext] UserChannelContext
|
|
170
172
|
def initialize(version, service_sid, user_sid, channel_sid)
|
|
@@ -240,12 +242,13 @@ module Twilio
|
|
|
240
242
|
# @param [Version] version Version that contains the resource
|
|
241
243
|
# @param [Hash] payload payload that contains response from Twilio
|
|
242
244
|
# @param [String] service_sid The SID of the
|
|
243
|
-
# [Service](https://www.twilio.com/docs/chat/rest/services) the
|
|
244
|
-
# associated with.
|
|
245
|
+
# [Service](https://www.twilio.com/docs/chat/rest/services) the User Channel
|
|
246
|
+
# resource is associated with.
|
|
245
247
|
# @param [String] user_sid The SID of the
|
|
246
248
|
# [User](https://www.twilio.com/docs/chat/rest/users) the User Channel belongs to.
|
|
247
249
|
# @param [String] channel_sid The SID of the
|
|
248
250
|
# [Channel](https://www.twilio.com/docs/chat/channels) that has the User Channel
|
|
251
|
+
# to fetch. This value can be either the `sid` or the `unique_name` of the Channel
|
|
249
252
|
# to fetch.
|
|
250
253
|
# @return [UserChannelInstance] UserChannelInstance
|
|
251
254
|
def initialize(version, payload, service_sid: nil, user_sid: nil, channel_sid: nil)
|
|
@@ -35,13 +35,18 @@ module Twilio
|
|
|
35
35
|
# @param [String] messaging_service_sid The unique id of the [SMS
|
|
36
36
|
# Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs
|
|
37
37
|
# to.
|
|
38
|
+
# @param [String] attributes An optional string metadata field you can use to
|
|
39
|
+
# store any data you wish. The string value must contain structurally valid JSON
|
|
40
|
+
# if specified. **Note** that if the attributes are not set "{}" will be
|
|
41
|
+
# returned.
|
|
38
42
|
# @return [ConversationInstance] Newly created ConversationInstance
|
|
39
|
-
def create(friendly_name: :unset, date_created: :unset, date_updated: :unset, messaging_service_sid: :unset)
|
|
43
|
+
def create(friendly_name: :unset, date_created: :unset, date_updated: :unset, messaging_service_sid: :unset, attributes: :unset)
|
|
40
44
|
data = Twilio::Values.of({
|
|
41
45
|
'FriendlyName' => friendly_name,
|
|
42
46
|
'DateCreated' => Twilio.serialize_iso8601_datetime(date_created),
|
|
43
47
|
'DateUpdated' => Twilio.serialize_iso8601_datetime(date_updated),
|
|
44
48
|
'MessagingServiceSid' => messaging_service_sid,
|
|
49
|
+
'Attributes' => attributes,
|
|
45
50
|
})
|
|
46
51
|
|
|
47
52
|
payload = @version.create(
|
|
@@ -201,12 +206,17 @@ module Twilio
|
|
|
201
206
|
# limited to 256 characters. Optional.
|
|
202
207
|
# @param [Time] date_created The date that this resource was created.
|
|
203
208
|
# @param [Time] date_updated The date that this resource was last updated.
|
|
209
|
+
# @param [String] attributes An optional string metadata field you can use to
|
|
210
|
+
# store any data you wish. The string value must contain structurally valid JSON
|
|
211
|
+
# if specified. **Note** that if the attributes are not set "{}" will be
|
|
212
|
+
# returned.
|
|
204
213
|
# @return [ConversationInstance] Updated ConversationInstance
|
|
205
|
-
def update(friendly_name: :unset, date_created: :unset, date_updated: :unset)
|
|
214
|
+
def update(friendly_name: :unset, date_created: :unset, date_updated: :unset, attributes: :unset)
|
|
206
215
|
data = Twilio::Values.of({
|
|
207
216
|
'FriendlyName' => friendly_name,
|
|
208
217
|
'DateCreated' => Twilio.serialize_iso8601_datetime(date_created),
|
|
209
218
|
'DateUpdated' => Twilio.serialize_iso8601_datetime(date_updated),
|
|
219
|
+
'Attributes' => attributes,
|
|
210
220
|
})
|
|
211
221
|
|
|
212
222
|
payload = @version.update(
|
|
@@ -220,7 +230,7 @@ module Twilio
|
|
|
220
230
|
|
|
221
231
|
##
|
|
222
232
|
# Deletes the ConversationInstance
|
|
223
|
-
# @return [Boolean] true if delete succeeds,
|
|
233
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
224
234
|
def delete
|
|
225
235
|
@version.delete('delete', @uri)
|
|
226
236
|
end
|
|
@@ -329,6 +339,7 @@ module Twilio
|
|
|
329
339
|
'messaging_service_sid' => payload['messaging_service_sid'],
|
|
330
340
|
'sid' => payload['sid'],
|
|
331
341
|
'friendly_name' => payload['friendly_name'],
|
|
342
|
+
'attributes' => payload['attributes'],
|
|
332
343
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
|
333
344
|
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
|
334
345
|
'url' => payload['url'],
|
|
@@ -381,6 +392,12 @@ module Twilio
|
|
|
381
392
|
@properties['friendly_name']
|
|
382
393
|
end
|
|
383
394
|
|
|
395
|
+
##
|
|
396
|
+
# @return [String] An optional string metadata field you can use to store any data you wish.
|
|
397
|
+
def attributes
|
|
398
|
+
@properties['attributes']
|
|
399
|
+
end
|
|
400
|
+
|
|
384
401
|
##
|
|
385
402
|
# @return [Time] The date that this resource was created.
|
|
386
403
|
def date_created
|
|
@@ -411,14 +428,23 @@ module Twilio
|
|
|
411
428
|
# limited to 256 characters. Optional.
|
|
412
429
|
# @param [Time] date_created The date that this resource was created.
|
|
413
430
|
# @param [Time] date_updated The date that this resource was last updated.
|
|
431
|
+
# @param [String] attributes An optional string metadata field you can use to
|
|
432
|
+
# store any data you wish. The string value must contain structurally valid JSON
|
|
433
|
+
# if specified. **Note** that if the attributes are not set "{}" will be
|
|
434
|
+
# returned.
|
|
414
435
|
# @return [ConversationInstance] Updated ConversationInstance
|
|
415
|
-
def update(friendly_name: :unset, date_created: :unset, date_updated: :unset)
|
|
416
|
-
context.update(
|
|
436
|
+
def update(friendly_name: :unset, date_created: :unset, date_updated: :unset, attributes: :unset)
|
|
437
|
+
context.update(
|
|
438
|
+
friendly_name: friendly_name,
|
|
439
|
+
date_created: date_created,
|
|
440
|
+
date_updated: date_updated,
|
|
441
|
+
attributes: attributes,
|
|
442
|
+
)
|
|
417
443
|
end
|
|
418
444
|
|
|
419
445
|
##
|
|
420
446
|
# Deletes the ConversationInstance
|
|
421
|
-
# @return [Boolean] true if delete succeeds,
|
|
447
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
422
448
|
def delete
|
|
423
449
|
context.delete
|
|
424
450
|
end
|
|
@@ -38,13 +38,17 @@ module Twilio
|
|
|
38
38
|
# @param [Time] date_created The date that this resource was created.
|
|
39
39
|
# @param [Time] date_updated The date that this resource was last updated. `null`
|
|
40
40
|
# if the message has not been edited.
|
|
41
|
+
# @param [String] attributes A string metadata field you can use to store any data
|
|
42
|
+
# you wish. The string value must contain structurally valid JSON if specified.
|
|
43
|
+
# **Note** that if the attributes are not set "{}" will be returned.
|
|
41
44
|
# @return [MessageInstance] Newly created MessageInstance
|
|
42
|
-
def create(author: :unset, body: :unset, date_created: :unset, date_updated: :unset)
|
|
45
|
+
def create(author: :unset, body: :unset, date_created: :unset, date_updated: :unset, attributes: :unset)
|
|
43
46
|
data = Twilio::Values.of({
|
|
44
47
|
'Author' => author,
|
|
45
48
|
'Body' => body,
|
|
46
49
|
'DateCreated' => Twilio.serialize_iso8601_datetime(date_created),
|
|
47
50
|
'DateUpdated' => Twilio.serialize_iso8601_datetime(date_updated),
|
|
51
|
+
'Attributes' => attributes,
|
|
48
52
|
})
|
|
49
53
|
|
|
50
54
|
payload = @version.create(
|
|
@@ -204,13 +208,17 @@ module Twilio
|
|
|
204
208
|
# @param [Time] date_created The date that this resource was created.
|
|
205
209
|
# @param [Time] date_updated The date that this resource was last updated. `null`
|
|
206
210
|
# if the message has not been edited.
|
|
211
|
+
# @param [String] attributes A string metadata field you can use to store any data
|
|
212
|
+
# you wish. The string value must contain structurally valid JSON if specified.
|
|
213
|
+
# **Note** that if the attributes are not set "{}" will be returned.
|
|
207
214
|
# @return [MessageInstance] Updated MessageInstance
|
|
208
|
-
def update(author: :unset, body: :unset, date_created: :unset, date_updated: :unset)
|
|
215
|
+
def update(author: :unset, body: :unset, date_created: :unset, date_updated: :unset, attributes: :unset)
|
|
209
216
|
data = Twilio::Values.of({
|
|
210
217
|
'Author' => author,
|
|
211
218
|
'Body' => body,
|
|
212
219
|
'DateCreated' => Twilio.serialize_iso8601_datetime(date_created),
|
|
213
220
|
'DateUpdated' => Twilio.serialize_iso8601_datetime(date_updated),
|
|
221
|
+
'Attributes' => attributes,
|
|
214
222
|
})
|
|
215
223
|
|
|
216
224
|
payload = @version.update(
|
|
@@ -229,7 +237,7 @@ module Twilio
|
|
|
229
237
|
|
|
230
238
|
##
|
|
231
239
|
# Deletes the MessageInstance
|
|
232
|
-
# @return [Boolean] true if delete succeeds,
|
|
240
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
233
241
|
def delete
|
|
234
242
|
@version.delete('delete', @uri)
|
|
235
243
|
end
|
|
@@ -292,6 +300,7 @@ module Twilio
|
|
|
292
300
|
'index' => payload['index'].to_i,
|
|
293
301
|
'author' => payload['author'],
|
|
294
302
|
'body' => payload['body'],
|
|
303
|
+
'attributes' => payload['attributes'],
|
|
295
304
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
|
296
305
|
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
|
297
306
|
'url' => payload['url'],
|
|
@@ -349,6 +358,12 @@ module Twilio
|
|
|
349
358
|
@properties['body']
|
|
350
359
|
end
|
|
351
360
|
|
|
361
|
+
##
|
|
362
|
+
# @return [String] A string metadata field you can use to store any data you wish.
|
|
363
|
+
def attributes
|
|
364
|
+
@properties['attributes']
|
|
365
|
+
end
|
|
366
|
+
|
|
352
367
|
##
|
|
353
368
|
# @return [Time] The date that this resource was created.
|
|
354
369
|
def date_created
|
|
@@ -376,14 +391,23 @@ module Twilio
|
|
|
376
391
|
# @param [Time] date_created The date that this resource was created.
|
|
377
392
|
# @param [Time] date_updated The date that this resource was last updated. `null`
|
|
378
393
|
# if the message has not been edited.
|
|
394
|
+
# @param [String] attributes A string metadata field you can use to store any data
|
|
395
|
+
# you wish. The string value must contain structurally valid JSON if specified.
|
|
396
|
+
# **Note** that if the attributes are not set "{}" will be returned.
|
|
379
397
|
# @return [MessageInstance] Updated MessageInstance
|
|
380
|
-
def update(author: :unset, body: :unset, date_created: :unset, date_updated: :unset)
|
|
381
|
-
context.update(
|
|
398
|
+
def update(author: :unset, body: :unset, date_created: :unset, date_updated: :unset, attributes: :unset)
|
|
399
|
+
context.update(
|
|
400
|
+
author: author,
|
|
401
|
+
body: body,
|
|
402
|
+
date_created: date_created,
|
|
403
|
+
date_updated: date_updated,
|
|
404
|
+
attributes: attributes,
|
|
405
|
+
)
|
|
382
406
|
end
|
|
383
407
|
|
|
384
408
|
##
|
|
385
409
|
# Deletes the MessageInstance
|
|
386
|
-
# @return [Boolean] true if delete succeeds,
|
|
410
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
387
411
|
def delete
|
|
388
412
|
context.delete
|
|
389
413
|
end
|
|
@@ -47,14 +47,19 @@ module Twilio
|
|
|
47
47
|
# Limited to 256 characters.
|
|
48
48
|
# @param [Time] date_created The date that this resource was created.
|
|
49
49
|
# @param [Time] date_updated The date that this resource was last updated.
|
|
50
|
+
# @param [String] attributes An optional string metadata field you can use to
|
|
51
|
+
# store any data you wish. The string value must contain structurally valid JSON
|
|
52
|
+
# if specified. **Note** that if the attributes are not set "{}" will be
|
|
53
|
+
# returned.
|
|
50
54
|
# @return [ParticipantInstance] Newly created ParticipantInstance
|
|
51
|
-
def create(identity: :unset, messaging_binding_address: :unset, messaging_binding_proxy_address: :unset, date_created: :unset, date_updated: :unset)
|
|
55
|
+
def create(identity: :unset, messaging_binding_address: :unset, messaging_binding_proxy_address: :unset, date_created: :unset, date_updated: :unset, attributes: :unset)
|
|
52
56
|
data = Twilio::Values.of({
|
|
53
57
|
'Identity' => identity,
|
|
54
58
|
'MessagingBinding.Address' => messaging_binding_address,
|
|
55
59
|
'MessagingBinding.ProxyAddress' => messaging_binding_proxy_address,
|
|
56
60
|
'DateCreated' => Twilio.serialize_iso8601_datetime(date_created),
|
|
57
61
|
'DateUpdated' => Twilio.serialize_iso8601_datetime(date_updated),
|
|
62
|
+
'Attributes' => attributes,
|
|
58
63
|
})
|
|
59
64
|
|
|
60
65
|
payload = @version.create(
|
|
@@ -209,11 +214,16 @@ module Twilio
|
|
|
209
214
|
# Update the ParticipantInstance
|
|
210
215
|
# @param [Time] date_created The date that this resource was created.
|
|
211
216
|
# @param [Time] date_updated The date that this resource was last updated.
|
|
217
|
+
# @param [String] attributes An optional string metadata field you can use to
|
|
218
|
+
# store any data you wish. The string value must contain structurally valid JSON
|
|
219
|
+
# if specified. **Note** that if the attributes are not set "{}" will be
|
|
220
|
+
# returned.
|
|
212
221
|
# @return [ParticipantInstance] Updated ParticipantInstance
|
|
213
|
-
def update(date_created: :unset, date_updated: :unset)
|
|
222
|
+
def update(date_created: :unset, date_updated: :unset, attributes: :unset)
|
|
214
223
|
data = Twilio::Values.of({
|
|
215
224
|
'DateCreated' => Twilio.serialize_iso8601_datetime(date_created),
|
|
216
225
|
'DateUpdated' => Twilio.serialize_iso8601_datetime(date_updated),
|
|
226
|
+
'Attributes' => attributes,
|
|
217
227
|
})
|
|
218
228
|
|
|
219
229
|
payload = @version.update(
|
|
@@ -232,7 +242,7 @@ module Twilio
|
|
|
232
242
|
|
|
233
243
|
##
|
|
234
244
|
# Deletes the ParticipantInstance
|
|
235
|
-
# @return [Boolean] true if delete succeeds,
|
|
245
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
236
246
|
def delete
|
|
237
247
|
@version.delete('delete', @uri)
|
|
238
248
|
end
|
|
@@ -293,6 +303,7 @@ module Twilio
|
|
|
293
303
|
'conversation_sid' => payload['conversation_sid'],
|
|
294
304
|
'sid' => payload['sid'],
|
|
295
305
|
'identity' => payload['identity'],
|
|
306
|
+
'attributes' => payload['attributes'],
|
|
296
307
|
'messaging_binding' => payload['messaging_binding'],
|
|
297
308
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
|
298
309
|
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
|
@@ -339,6 +350,12 @@ module Twilio
|
|
|
339
350
|
@properties['identity']
|
|
340
351
|
end
|
|
341
352
|
|
|
353
|
+
##
|
|
354
|
+
# @return [String] An optional string metadata field you can use to store any data you wish.
|
|
355
|
+
def attributes
|
|
356
|
+
@properties['attributes']
|
|
357
|
+
end
|
|
358
|
+
|
|
342
359
|
##
|
|
343
360
|
# @return [Hash] Information about how this participant exchanges messages with the conversation.
|
|
344
361
|
def messaging_binding
|
|
@@ -367,14 +384,18 @@ module Twilio
|
|
|
367
384
|
# Update the ParticipantInstance
|
|
368
385
|
# @param [Time] date_created The date that this resource was created.
|
|
369
386
|
# @param [Time] date_updated The date that this resource was last updated.
|
|
387
|
+
# @param [String] attributes An optional string metadata field you can use to
|
|
388
|
+
# store any data you wish. The string value must contain structurally valid JSON
|
|
389
|
+
# if specified. **Note** that if the attributes are not set "{}" will be
|
|
390
|
+
# returned.
|
|
370
391
|
# @return [ParticipantInstance] Updated ParticipantInstance
|
|
371
|
-
def update(date_created: :unset, date_updated: :unset)
|
|
372
|
-
context.update(date_created: date_created, date_updated: date_updated, )
|
|
392
|
+
def update(date_created: :unset, date_updated: :unset, attributes: :unset)
|
|
393
|
+
context.update(date_created: date_created, date_updated: date_updated, attributes: attributes, )
|
|
373
394
|
end
|
|
374
395
|
|
|
375
396
|
##
|
|
376
397
|
# Deletes the ParticipantInstance
|
|
377
|
-
# @return [Boolean] true if delete succeeds,
|
|
398
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
378
399
|
def delete
|
|
379
400
|
context.delete
|
|
380
401
|
end
|
|
@@ -263,7 +263,7 @@ module Twilio
|
|
|
263
263
|
|
|
264
264
|
##
|
|
265
265
|
# Deletes the WebhookInstance
|
|
266
|
-
# @return [Boolean] true if delete succeeds,
|
|
266
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
267
267
|
def delete
|
|
268
268
|
@version.delete('delete', @uri)
|
|
269
269
|
end
|
|
@@ -406,7 +406,7 @@ module Twilio
|
|
|
406
406
|
|
|
407
407
|
##
|
|
408
408
|
# Deletes the WebhookInstance
|
|
409
|
-
# @return [Boolean] true if delete succeeds,
|
|
409
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
410
410
|
def delete
|
|
411
411
|
context.delete
|
|
412
412
|
end
|
|
@@ -299,7 +299,7 @@ module Twilio
|
|
|
299
299
|
|
|
300
300
|
##
|
|
301
301
|
# Deletes the FaxInstance
|
|
302
|
-
# @return [Boolean] true if delete succeeds,
|
|
302
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
303
303
|
def delete
|
|
304
304
|
@version.delete('delete', @uri)
|
|
305
305
|
end
|
|
@@ -514,7 +514,7 @@ module Twilio
|
|
|
514
514
|
|
|
515
515
|
##
|
|
516
516
|
# Deletes the FaxInstance
|
|
517
|
-
# @return [Boolean] true if delete succeeds,
|
|
517
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
518
518
|
def delete
|
|
519
519
|
context.delete
|
|
520
520
|
end
|
|
@@ -183,7 +183,7 @@ module Twilio
|
|
|
183
183
|
|
|
184
184
|
##
|
|
185
185
|
# Deletes the FaxMediaInstance
|
|
186
|
-
# @return [Boolean] true if delete succeeds,
|
|
186
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
187
187
|
def delete
|
|
188
188
|
@version.delete('delete', @uri)
|
|
189
189
|
end
|
|
@@ -296,7 +296,7 @@ module Twilio
|
|
|
296
296
|
|
|
297
297
|
##
|
|
298
298
|
# Deletes the FaxMediaInstance
|
|
299
|
-
# @return [Boolean] true if delete succeeds,
|
|
299
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
300
300
|
def delete
|
|
301
301
|
context.delete
|
|
302
302
|
end
|
|
@@ -212,7 +212,7 @@ module Twilio
|
|
|
212
212
|
|
|
213
213
|
##
|
|
214
214
|
# Deletes the ChannelInstance
|
|
215
|
-
# @return [Boolean] true if delete succeeds,
|
|
215
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
216
216
|
def delete
|
|
217
217
|
@version.delete('delete', @uri)
|
|
218
218
|
end
|
|
@@ -327,7 +327,7 @@ module Twilio
|
|
|
327
327
|
|
|
328
328
|
##
|
|
329
329
|
# Deletes the ChannelInstance
|
|
330
|
-
# @return [Boolean] true if delete succeeds,
|
|
330
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
331
331
|
def delete
|
|
332
332
|
context.delete
|
|
333
333
|
end
|
|
@@ -176,6 +176,8 @@ module Twilio
|
|
|
176
176
|
'plugin_service_attributes' => payload['plugin_service_attributes'],
|
|
177
177
|
'integrations' => payload['integrations'],
|
|
178
178
|
'outbound_call_flows' => payload['outbound_call_flows'],
|
|
179
|
+
'features_enabled' => payload['features_enabled'],
|
|
180
|
+
'serverless_service_sids' => payload['serverless_service_sids'],
|
|
179
181
|
'url' => payload['url'],
|
|
180
182
|
}
|
|
181
183
|
|
|
@@ -387,6 +389,18 @@ module Twilio
|
|
|
387
389
|
@properties['outbound_call_flows']
|
|
388
390
|
end
|
|
389
391
|
|
|
392
|
+
##
|
|
393
|
+
# @return [String] List of enabled features
|
|
394
|
+
def features_enabled
|
|
395
|
+
@properties['features_enabled']
|
|
396
|
+
end
|
|
397
|
+
|
|
398
|
+
##
|
|
399
|
+
# @return [String] List of serverless services sids
|
|
400
|
+
def serverless_service_sids
|
|
401
|
+
@properties['serverless_service_sids']
|
|
402
|
+
end
|
|
403
|
+
|
|
390
404
|
##
|
|
391
405
|
# @return [String] The URL for this resource
|
|
392
406
|
def url
|
|
@@ -291,7 +291,7 @@ module Twilio
|
|
|
291
291
|
|
|
292
292
|
##
|
|
293
293
|
# Deletes the FlexFlowInstance
|
|
294
|
-
# @return [Boolean] true if delete succeeds,
|
|
294
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
295
295
|
def delete
|
|
296
296
|
@version.delete('delete', @uri)
|
|
297
297
|
end
|
|
@@ -490,7 +490,7 @@ module Twilio
|
|
|
490
490
|
|
|
491
491
|
##
|
|
492
492
|
# Deletes the FlexFlowInstance
|
|
493
|
-
# @return [Boolean] true if delete succeeds,
|
|
493
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
494
494
|
def delete
|
|
495
495
|
context.delete
|
|
496
496
|
end
|
|
@@ -222,7 +222,7 @@ module Twilio
|
|
|
222
222
|
|
|
223
223
|
##
|
|
224
224
|
# Deletes the WebChannelInstance
|
|
225
|
-
# @return [Boolean] true if delete succeeds,
|
|
225
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
226
226
|
def delete
|
|
227
227
|
@version.delete('delete', @uri)
|
|
228
228
|
end
|
|
@@ -333,7 +333,7 @@ module Twilio
|
|
|
333
333
|
|
|
334
334
|
##
|
|
335
335
|
# Deletes the WebChannelInstance
|
|
336
|
-
# @return [Boolean] true if delete succeeds,
|
|
336
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
|
337
337
|
def delete
|
|
338
338
|
context.delete
|
|
339
339
|
end
|