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
@@ -16,8 +16,8 @@ module Twilio
|
|
16
16
|
##
|
17
17
|
# Initialize the EngagementContextList
|
18
18
|
# @param [Version] version Version that contains the resource
|
19
|
-
# @param [String] flow_sid The
|
20
|
-
# @param [String] engagement_sid The
|
19
|
+
# @param [String] flow_sid The SID of the Flow.
|
20
|
+
# @param [String] engagement_sid The SID of the Engagement.
|
21
21
|
# @return [EngagementContextList] EngagementContextList
|
22
22
|
def initialize(version, flow_sid: nil, engagement_sid: nil)
|
23
23
|
super(version)
|
@@ -71,8 +71,8 @@ module Twilio
|
|
71
71
|
##
|
72
72
|
# Initialize the EngagementContextContext
|
73
73
|
# @param [Version] version Version that contains the resource
|
74
|
-
# @param [String] flow_sid The
|
75
|
-
# @param [String] engagement_sid The
|
74
|
+
# @param [String] flow_sid The SID of the Flow.
|
75
|
+
# @param [String] engagement_sid The SID of the Engagement.
|
76
76
|
# @return [EngagementContextContext] EngagementContextContext
|
77
77
|
def initialize(version, flow_sid, engagement_sid)
|
78
78
|
super(version)
|
@@ -122,8 +122,8 @@ module Twilio
|
|
122
122
|
# Initialize the EngagementContextInstance
|
123
123
|
# @param [Version] version Version that contains the resource
|
124
124
|
# @param [Hash] payload payload that contains response from Twilio
|
125
|
-
# @param [String] flow_sid The
|
126
|
-
# @param [String] engagement_sid The
|
125
|
+
# @param [String] flow_sid The SID of the Flow.
|
126
|
+
# @param [String] engagement_sid The SID of the Engagement.
|
127
127
|
# @return [EngagementContextInstance] EngagementContextInstance
|
128
128
|
def initialize(version, payload, flow_sid: nil, engagement_sid: nil)
|
129
129
|
super(version)
|
@@ -158,31 +158,31 @@ module Twilio
|
|
158
158
|
end
|
159
159
|
|
160
160
|
##
|
161
|
-
# @return [String] Account
|
161
|
+
# @return [String] Account SID
|
162
162
|
def account_sid
|
163
163
|
@properties['account_sid']
|
164
164
|
end
|
165
165
|
|
166
166
|
##
|
167
|
-
# @return [Hash] Flow state
|
167
|
+
# @return [Hash] Flow state
|
168
168
|
def context
|
169
169
|
@properties['context']
|
170
170
|
end
|
171
171
|
|
172
172
|
##
|
173
|
-
# @return [String] Engagement
|
173
|
+
# @return [String] Engagement SID
|
174
174
|
def engagement_sid
|
175
175
|
@properties['engagement_sid']
|
176
176
|
end
|
177
177
|
|
178
178
|
##
|
179
|
-
# @return [String] Flow
|
179
|
+
# @return [String] Flow SID
|
180
180
|
def flow_sid
|
181
181
|
@properties['flow_sid']
|
182
182
|
end
|
183
183
|
|
184
184
|
##
|
185
|
-
# @return [String] The URL of
|
185
|
+
# @return [String] The URL of the resource
|
186
186
|
def url
|
187
187
|
@properties['url']
|
188
188
|
end
|
@@ -16,8 +16,8 @@ module Twilio
|
|
16
16
|
##
|
17
17
|
# Initialize the StepList
|
18
18
|
# @param [Version] version Version that contains the resource
|
19
|
-
# @param [String] flow_sid The
|
20
|
-
# @param [String] engagement_sid The
|
19
|
+
# @param [String] flow_sid The SID of the Flow.
|
20
|
+
# @param [String] engagement_sid The SID of the Engagement.
|
21
21
|
# @return [StepList] StepList
|
22
22
|
def initialize(version, flow_sid: nil, engagement_sid: nil)
|
23
23
|
super(version)
|
@@ -154,9 +154,9 @@ module Twilio
|
|
154
154
|
##
|
155
155
|
# Initialize the StepContext
|
156
156
|
# @param [Version] version Version that contains the resource
|
157
|
-
# @param [String] flow_sid The
|
158
|
-
# @param [String] engagement_sid The
|
159
|
-
# @param [String] sid The
|
157
|
+
# @param [String] flow_sid The SID of the Flow with the Step to fetch.
|
158
|
+
# @param [String] engagement_sid The SID of the Engagement with the Step to fetch.
|
159
|
+
# @param [String] sid The SID of the Step resource to fetch.
|
160
160
|
# @return [StepContext] StepContext
|
161
161
|
def initialize(version, flow_sid, engagement_sid, sid)
|
162
162
|
super(version)
|
@@ -218,9 +218,9 @@ module Twilio
|
|
218
218
|
# Initialize the StepInstance
|
219
219
|
# @param [Version] version Version that contains the resource
|
220
220
|
# @param [Hash] payload payload that contains response from Twilio
|
221
|
-
# @param [String] flow_sid The
|
222
|
-
# @param [String] engagement_sid The
|
223
|
-
# @param [String] sid The
|
221
|
+
# @param [String] flow_sid The SID of the Flow.
|
222
|
+
# @param [String] engagement_sid The SID of the Engagement.
|
223
|
+
# @param [String] sid The SID of the Step resource to fetch.
|
224
224
|
# @return [StepInstance] StepInstance
|
225
225
|
def initialize(version, payload, flow_sid: nil, engagement_sid: nil, sid: nil)
|
226
226
|
super(version)
|
@@ -267,73 +267,73 @@ module Twilio
|
|
267
267
|
end
|
268
268
|
|
269
269
|
##
|
270
|
-
# @return [String]
|
270
|
+
# @return [String] The unique string that identifies the resource
|
271
271
|
def sid
|
272
272
|
@properties['sid']
|
273
273
|
end
|
274
274
|
|
275
275
|
##
|
276
|
-
# @return [String] Account
|
276
|
+
# @return [String] The SID of the Account that created the resource
|
277
277
|
def account_sid
|
278
278
|
@properties['account_sid']
|
279
279
|
end
|
280
280
|
|
281
281
|
##
|
282
|
-
# @return [String] Flow
|
282
|
+
# @return [String] The SID of the Flow
|
283
283
|
def flow_sid
|
284
284
|
@properties['flow_sid']
|
285
285
|
end
|
286
286
|
|
287
287
|
##
|
288
|
-
# @return [String] Engagement
|
288
|
+
# @return [String] The SID of the Engagement
|
289
289
|
def engagement_sid
|
290
290
|
@properties['engagement_sid']
|
291
291
|
end
|
292
292
|
|
293
293
|
##
|
294
|
-
# @return [String] The event that caused the
|
294
|
+
# @return [String] The event that caused the Flow to transition to the Step
|
295
295
|
def name
|
296
296
|
@properties['name']
|
297
297
|
end
|
298
298
|
|
299
299
|
##
|
300
|
-
# @return [Hash] The
|
300
|
+
# @return [Hash] The current state of the flow
|
301
301
|
def context
|
302
302
|
@properties['context']
|
303
303
|
end
|
304
304
|
|
305
305
|
##
|
306
|
-
# @return [String] The Widget that preceded the Widget for
|
306
|
+
# @return [String] The Widget that preceded the Widget for the Step
|
307
307
|
def transitioned_from
|
308
308
|
@properties['transitioned_from']
|
309
309
|
end
|
310
310
|
|
311
311
|
##
|
312
|
-
# @return [String] The Widget that will follow the Widget for
|
312
|
+
# @return [String] The Widget that will follow the Widget for the Step
|
313
313
|
def transitioned_to
|
314
314
|
@properties['transitioned_to']
|
315
315
|
end
|
316
316
|
|
317
317
|
##
|
318
|
-
# @return [Time] The date
|
318
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was created
|
319
319
|
def date_created
|
320
320
|
@properties['date_created']
|
321
321
|
end
|
322
322
|
|
323
323
|
##
|
324
|
-
# @return [Time] The date
|
324
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was last updated
|
325
325
|
def date_updated
|
326
326
|
@properties['date_updated']
|
327
327
|
end
|
328
328
|
|
329
329
|
##
|
330
|
-
# @return [String] The URL of
|
330
|
+
# @return [String] The absolute URL of the resource
|
331
331
|
def url
|
332
332
|
@properties['url']
|
333
333
|
end
|
334
334
|
|
335
335
|
##
|
336
|
-
# @return [String] The
|
336
|
+
# @return [String] The URLs of related resources
|
337
337
|
def links
|
338
338
|
@properties['links']
|
339
339
|
end
|
@@ -17,10 +17,9 @@ module Twilio
|
|
17
17
|
##
|
18
18
|
# Initialize the StepContextList
|
19
19
|
# @param [Version] version Version that contains the resource
|
20
|
-
# @param [String] flow_sid The
|
21
|
-
# @param [String] engagement_sid The
|
22
|
-
# @param [String] step_sid The
|
23
|
-
# associated with.
|
20
|
+
# @param [String] flow_sid The SID of the Flow.
|
21
|
+
# @param [String] engagement_sid The SID of the Engagement.
|
22
|
+
# @param [String] step_sid The SID of the Step the context is associated with.
|
24
23
|
# @return [StepContextList] StepContextList
|
25
24
|
def initialize(version, flow_sid: nil, engagement_sid: nil, step_sid: nil)
|
26
25
|
super(version)
|
@@ -75,9 +74,9 @@ module Twilio
|
|
75
74
|
##
|
76
75
|
# Initialize the StepContextContext
|
77
76
|
# @param [Version] version Version that contains the resource
|
78
|
-
# @param [String] flow_sid The
|
79
|
-
# @param [String] engagement_sid The
|
80
|
-
# @param [String] step_sid The
|
77
|
+
# @param [String] flow_sid The SID of the Flow with the Step to fetch.
|
78
|
+
# @param [String] engagement_sid The SID of the Engagement with the Step to fetch.
|
79
|
+
# @param [String] step_sid The SID of the Step to fetch
|
81
80
|
# @return [StepContextContext] StepContextContext
|
82
81
|
def initialize(version, flow_sid, engagement_sid, step_sid)
|
83
82
|
super(version)
|
@@ -128,10 +127,9 @@ module Twilio
|
|
128
127
|
# Initialize the StepContextInstance
|
129
128
|
# @param [Version] version Version that contains the resource
|
130
129
|
# @param [Hash] payload payload that contains response from Twilio
|
131
|
-
# @param [String] flow_sid The
|
132
|
-
# @param [String] engagement_sid The
|
133
|
-
# @param [String] step_sid The
|
134
|
-
# associated with.
|
130
|
+
# @param [String] flow_sid The SID of the Flow.
|
131
|
+
# @param [String] engagement_sid The SID of the Engagement.
|
132
|
+
# @param [String] step_sid The SID of the Step the context is associated with.
|
135
133
|
# @return [StepContextInstance] StepContextInstance
|
136
134
|
def initialize(version, payload, flow_sid: nil, engagement_sid: nil, step_sid: nil)
|
137
135
|
super(version)
|
@@ -168,37 +166,37 @@ module Twilio
|
|
168
166
|
end
|
169
167
|
|
170
168
|
##
|
171
|
-
# @return [String] Account
|
169
|
+
# @return [String] The SID of the Account that created the resource
|
172
170
|
def account_sid
|
173
171
|
@properties['account_sid']
|
174
172
|
end
|
175
173
|
|
176
174
|
##
|
177
|
-
# @return [Hash]
|
175
|
+
# @return [Hash] The current state of the flow
|
178
176
|
def context
|
179
177
|
@properties['context']
|
180
178
|
end
|
181
179
|
|
182
180
|
##
|
183
|
-
# @return [String] Engagement
|
181
|
+
# @return [String] The SID of the Engagement
|
184
182
|
def engagement_sid
|
185
183
|
@properties['engagement_sid']
|
186
184
|
end
|
187
185
|
|
188
186
|
##
|
189
|
-
# @return [String] Flow
|
187
|
+
# @return [String] The SID of the Flow
|
190
188
|
def flow_sid
|
191
189
|
@properties['flow_sid']
|
192
190
|
end
|
193
191
|
|
194
192
|
##
|
195
|
-
# @return [String] Step
|
193
|
+
# @return [String] Step SID
|
196
194
|
def step_sid
|
197
195
|
@properties['step_sid']
|
198
196
|
end
|
199
197
|
|
200
198
|
##
|
201
|
-
# @return [String] The URL of
|
199
|
+
# @return [String] The absolute URL of the resource
|
202
200
|
def url
|
203
201
|
@properties['url']
|
204
202
|
end
|
@@ -15,7 +15,7 @@ module Twilio
|
|
15
15
|
##
|
16
16
|
# Initialize the ExecutionList
|
17
17
|
# @param [Version] version Version that contains the resource
|
18
|
-
# @param [String] flow_sid The
|
18
|
+
# @param [String] flow_sid The SID of the Flow.
|
19
19
|
# @return [ExecutionList] ExecutionList
|
20
20
|
def initialize(version, flow_sid: nil)
|
21
21
|
super(version)
|
@@ -29,10 +29,12 @@ module Twilio
|
|
29
29
|
# Lists ExecutionInstance records from the API as a list.
|
30
30
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
31
31
|
# memory before returning.
|
32
|
-
# @param [Time] date_created_from Only show
|
33
|
-
# this
|
34
|
-
#
|
35
|
-
#
|
32
|
+
# @param [Time] date_created_from Only show Execution resources starting on or
|
33
|
+
# after this [ISO 8601](http://www.iso.org/iso/home/standards/iso8601.htm)
|
34
|
+
# date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`.
|
35
|
+
# @param [Time] date_created_to Only show Execution resources starting before this
|
36
|
+
# [ISO 8601](http://www.iso.org/iso/home/standards/iso8601.htm) date-time, given
|
37
|
+
# as `YYYY-MM-DDThh:mm:ss-hh:mm`.
|
36
38
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
37
39
|
# guarantees to never return more than limit. Default is no limit
|
38
40
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -53,10 +55,12 @@ module Twilio
|
|
53
55
|
# Streams ExecutionInstance records from the API as an Enumerable.
|
54
56
|
# This operation lazily loads records as efficiently as possible until the limit
|
55
57
|
# is reached.
|
56
|
-
# @param [Time] date_created_from Only show
|
57
|
-
# this
|
58
|
-
#
|
59
|
-
#
|
58
|
+
# @param [Time] date_created_from Only show Execution resources starting on or
|
59
|
+
# after this [ISO 8601](http://www.iso.org/iso/home/standards/iso8601.htm)
|
60
|
+
# date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`.
|
61
|
+
# @param [Time] date_created_to Only show Execution resources starting before this
|
62
|
+
# [ISO 8601](http://www.iso.org/iso/home/standards/iso8601.htm) date-time, given
|
63
|
+
# as `YYYY-MM-DDThh:mm:ss-hh:mm`.
|
60
64
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
61
65
|
# guarantees to never return more than limit. Default is no limit.
|
62
66
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -93,10 +97,12 @@ module Twilio
|
|
93
97
|
##
|
94
98
|
# Retrieve a single page of ExecutionInstance records from the API.
|
95
99
|
# Request is executed immediately.
|
96
|
-
# @param [Time] date_created_from Only show
|
97
|
-
# this
|
98
|
-
#
|
99
|
-
#
|
100
|
+
# @param [Time] date_created_from Only show Execution resources starting on or
|
101
|
+
# after this [ISO 8601](http://www.iso.org/iso/home/standards/iso8601.htm)
|
102
|
+
# date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`.
|
103
|
+
# @param [Time] date_created_to Only show Execution resources starting before this
|
104
|
+
# [ISO 8601](http://www.iso.org/iso/home/standards/iso8601.htm) date-time, given
|
105
|
+
# as `YYYY-MM-DDThh:mm:ss-hh:mm`.
|
100
106
|
# @param [String] page_token PageToken provided by the API
|
101
107
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
102
108
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
@@ -136,15 +142,14 @@ module Twilio
|
|
136
142
|
# @param [String] to The Contact phone number to start a Studio Flow Execution,
|
137
143
|
# available as variable `{{contact.channel.address}}`.
|
138
144
|
# @param [String] from The Twilio phone number to send messages or initiate calls
|
139
|
-
# from during the Flow Execution
|
145
|
+
# from during the Flow's Execution. Available as variable
|
140
146
|
# `{{flow.channel.address}}`.
|
141
|
-
# @param [Hash] parameters JSON data that will be added to
|
142
|
-
# can accessed as variables inside your
|
143
|
-
# `Parameters={"name":"Zeke"}`,
|
144
|
-
#
|
145
|
-
#
|
146
|
-
#
|
147
|
-
# encode your JSON string.
|
147
|
+
# @param [Hash] parameters JSON data that will be added to the Flow's context and
|
148
|
+
# that can be accessed as variables inside your Flow. For example, if you pass in
|
149
|
+
# `Parameters={"name":"Zeke"}`, a widget in your Flow can reference the variable
|
150
|
+
# `{{flow.data.name}}`, which returns "Zeke". Note: the JSON value must explicitly
|
151
|
+
# be passed as a string, not as a hash object. Depending on your particular HTTP
|
152
|
+
# library, you may need to add quotes or URL encode the JSON string.
|
148
153
|
# @return [ExecutionInstance] Newly created ExecutionInstance
|
149
154
|
def create(to: nil, from: nil, parameters: :unset)
|
150
155
|
data = Twilio::Values.of({
|
@@ -202,8 +207,9 @@ module Twilio
|
|
202
207
|
##
|
203
208
|
# Initialize the ExecutionContext
|
204
209
|
# @param [Version] version Version that contains the resource
|
205
|
-
# @param [String] flow_sid The
|
206
|
-
#
|
210
|
+
# @param [String] flow_sid The SID of the Flow with the Execution resource to
|
211
|
+
# fetch
|
212
|
+
# @param [String] sid The SID of the Execution resource to fetch.
|
207
213
|
# @return [ExecutionContext] ExecutionContext
|
208
214
|
def initialize(version, flow_sid, sid)
|
209
215
|
super(version)
|
@@ -234,7 +240,7 @@ module Twilio
|
|
234
240
|
|
235
241
|
##
|
236
242
|
# Deletes the ExecutionInstance
|
237
|
-
# @return [Boolean] true if delete succeeds,
|
243
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
238
244
|
def delete
|
239
245
|
@version.delete('delete', @uri)
|
240
246
|
end
|
@@ -289,8 +295,8 @@ module Twilio
|
|
289
295
|
# Initialize the ExecutionInstance
|
290
296
|
# @param [Version] version Version that contains the resource
|
291
297
|
# @param [Hash] payload payload that contains response from Twilio
|
292
|
-
# @param [String] flow_sid The
|
293
|
-
# @param [String] sid The
|
298
|
+
# @param [String] flow_sid The SID of the Flow.
|
299
|
+
# @param [String] sid The SID of the Execution resource to fetch.
|
294
300
|
# @return [ExecutionInstance] ExecutionInstance
|
295
301
|
def initialize(version, payload, flow_sid: nil, sid: nil)
|
296
302
|
super(version)
|
@@ -327,67 +333,67 @@ module Twilio
|
|
327
333
|
end
|
328
334
|
|
329
335
|
##
|
330
|
-
# @return [String]
|
336
|
+
# @return [String] The unique string that identifies the resource
|
331
337
|
def sid
|
332
338
|
@properties['sid']
|
333
339
|
end
|
334
340
|
|
335
341
|
##
|
336
|
-
# @return [String] Account
|
342
|
+
# @return [String] The SID of the Account that created the resource
|
337
343
|
def account_sid
|
338
344
|
@properties['account_sid']
|
339
345
|
end
|
340
346
|
|
341
347
|
##
|
342
|
-
# @return [String] Flow
|
348
|
+
# @return [String] The SID of the Flow
|
343
349
|
def flow_sid
|
344
350
|
@properties['flow_sid']
|
345
351
|
end
|
346
352
|
|
347
353
|
##
|
348
|
-
# @return [String] Contact
|
354
|
+
# @return [String] The SID of the Contact
|
349
355
|
def contact_sid
|
350
356
|
@properties['contact_sid']
|
351
357
|
end
|
352
358
|
|
353
359
|
##
|
354
|
-
# @return [String] The phone number, SIP address or Client identifier that triggered
|
360
|
+
# @return [String] The phone number, SIP address or Client identifier that triggered the Execution
|
355
361
|
def contact_channel_address
|
356
362
|
@properties['contact_channel_address']
|
357
363
|
end
|
358
364
|
|
359
365
|
##
|
360
|
-
# @return [Hash] The
|
366
|
+
# @return [Hash] The current state of the flow
|
361
367
|
def context
|
362
368
|
@properties['context']
|
363
369
|
end
|
364
370
|
|
365
371
|
##
|
366
|
-
# @return [execution.Status] The
|
372
|
+
# @return [execution.Status] The status of the Execution
|
367
373
|
def status
|
368
374
|
@properties['status']
|
369
375
|
end
|
370
376
|
|
371
377
|
##
|
372
|
-
# @return [Time] The date
|
378
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was created
|
373
379
|
def date_created
|
374
380
|
@properties['date_created']
|
375
381
|
end
|
376
382
|
|
377
383
|
##
|
378
|
-
# @return [Time] The date
|
384
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was last updated
|
379
385
|
def date_updated
|
380
386
|
@properties['date_updated']
|
381
387
|
end
|
382
388
|
|
383
389
|
##
|
384
|
-
# @return [String] The URL of
|
390
|
+
# @return [String] The absolute URL of the resource
|
385
391
|
def url
|
386
392
|
@properties['url']
|
387
393
|
end
|
388
394
|
|
389
395
|
##
|
390
|
-
# @return [String] Nested resource URLs
|
396
|
+
# @return [String] Nested resource URLs
|
391
397
|
def links
|
392
398
|
@properties['links']
|
393
399
|
end
|
@@ -401,7 +407,7 @@ module Twilio
|
|
401
407
|
|
402
408
|
##
|
403
409
|
# Deletes the ExecutionInstance
|
404
|
-
# @return [Boolean] true if delete succeeds,
|
410
|
+
# @return [Boolean] true if delete succeeds, false otherwise
|
405
411
|
def delete
|
406
412
|
context.delete
|
407
413
|
end
|