twilio-ruby 5.27.0 → 5.27.1
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 +5 -5
- data/.dockerignore +1 -0
- data/CHANGES.md +13 -0
- data/CONTRIBUTING.md +2 -0
- data/Dockerfile +2 -2
- data/README.md +2 -2
- data/lib/twilio-ruby/http/http_client.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +18 -18
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +9 -9
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +9 -9
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +5 -5
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +10 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +1 -1
- data/lib/twilio-ruby/rest/fax/v1/fax.rb +12 -12
- data/lib/twilio-ruby/rest/flex_api.rb +6 -3
- data/lib/twilio-ruby/rest/flex_api/v1.rb +3 -3
- data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +23 -23
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +39 -37
- data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +102 -96
- data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +20 -20
- data/lib/twilio-ruby/rest/messaging.rb +3 -2
- data/lib/twilio-ruby/rest/messaging/v1.rb +2 -3
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +124 -91
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +22 -18
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +22 -16
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +18 -20
- data/lib/twilio-ruby/rest/messaging/v1/session.rb +48 -44
- data/lib/twilio-ruby/rest/messaging/v1/session/message.rb +46 -48
- data/lib/twilio-ruby/rest/messaging/v1/session/participant.rb +55 -62
- data/lib/twilio-ruby/rest/messaging/v1/session/webhook.rb +61 -65
- data/lib/twilio-ruby/rest/messaging/v1/webhook.rb +30 -36
- data/lib/twilio-ruby/rest/monitor.rb +4 -2
- data/lib/twilio-ruby/rest/monitor/v1.rb +2 -2
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +45 -57
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +47 -50
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +8 -8
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +3 -3
- data/lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb +6 -6
- data/lib/twilio-ruby/rest/preview/trusted_comms/device.rb +1 -1
- data/lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb +55 -55
- data/lib/twilio-ruby/rest/pricing/v2/voice.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +4 -4
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +1 -1
- data/lib/twilio-ruby/rest/serverless.rb +2 -1
- data/lib/twilio-ruby/rest/serverless/v1.rb +1 -2
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +27 -28
- data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +22 -22
- data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +22 -22
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +25 -24
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +26 -24
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +21 -24
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +31 -31
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +35 -35
- data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +22 -22
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +22 -22
- data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +12 -12
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +7 -4
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +6 -3
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +15 -9
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +6 -3
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +15 -9
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +9 -6
- data/lib/twilio-ruby/rest/taskrouter.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +102 -95
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +52 -44
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +90 -81
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +152 -136
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +35 -29
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +96 -89
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +61 -61
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +27 -21
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +46 -46
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +57 -64
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +98 -79
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +41 -39
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +39 -33
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +32 -31
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +16 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +42 -42
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +75 -72
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +59 -51
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +24 -18
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +54 -46
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +48 -46
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +17 -17
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +44 -42
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +24 -18
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +3 -3
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +1 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +1 -2
- data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +12 -12
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +6 -6
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +6 -6
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +2 -1
- data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +2 -1
- data/lib/twilio-ruby/rest/video.rb +8 -8
- data/lib/twilio-ruby/rest/video/v1.rb +4 -7
- data/lib/twilio-ruby/rest/video/v1/composition.rb +89 -98
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +224 -195
- data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +34 -34
- data/lib/twilio-ruby/rest/video/v1/recording.rb +53 -55
- data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +32 -32
- data/lib/twilio-ruby/rest/video/v1/room.rb +71 -61
- data/lib/twilio-ruby/rest/video/v1/room/recording.rb +45 -33
- data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +56 -57
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_published_track.rb +25 -22
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb +10 -10
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribed_track.rb +24 -23
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb +1 -1
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +5 -5
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb +2 -2
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/conversations/v1/conversation/message_spec.rb +58 -0
- metadata +4 -4
|
@@ -33,8 +33,8 @@ module Twilio
|
|
|
33
33
|
# Retrieve a single page of BindingInstance records from the API.
|
|
34
34
|
# Request is executed immediately.
|
|
35
35
|
# @param [String] identity The `identity` value that uniquely identifies the new
|
|
36
|
-
# resource's [User](https://www.twilio.com/docs/chat/rest/
|
|
37
|
-
# [Service](https://www.twilio.com/docs/notify/api/service-resource). Up to 20
|
|
36
|
+
# resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within
|
|
37
|
+
# the [Service](https://www.twilio.com/docs/notify/api/service-resource). Up to 20
|
|
38
38
|
# Bindings can be created for the same Identity in a given Service.
|
|
39
39
|
# @param [binding.BindingType] binding_type The transport technology to use for
|
|
40
40
|
# the Binding. Can be: `apn`, `fcm`, `gcm`, `sms`, or `facebook-messenger`.
|
|
@@ -87,8 +87,8 @@ module Twilio
|
|
|
87
87
|
# @param [Date] end_date Only include usage that occurred on or before this date.
|
|
88
88
|
# Specify the date in GMT and format as `YYYY-MM-DD`.
|
|
89
89
|
# @param [String] identity The
|
|
90
|
-
# [User](https://www.twilio.com/docs/chat/rest/
|
|
91
|
-
# resources to read.
|
|
90
|
+
# [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value
|
|
91
|
+
# of the resources to read.
|
|
92
92
|
# @param [String] tag Only list Bindings that have all of the specified Tags. The
|
|
93
93
|
# following implicit tags are available: `all`, `apn`, `fcm`, `gcm`, `sms`,
|
|
94
94
|
# `facebook-messenger`. Up to 5 tags are allowed.
|
|
@@ -119,8 +119,8 @@ module Twilio
|
|
|
119
119
|
# @param [Date] end_date Only include usage that occurred on or before this date.
|
|
120
120
|
# Specify the date in GMT and format as `YYYY-MM-DD`.
|
|
121
121
|
# @param [String] identity The
|
|
122
|
-
# [User](https://www.twilio.com/docs/chat/rest/
|
|
123
|
-
# resources to read.
|
|
122
|
+
# [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value
|
|
123
|
+
# of the resources to read.
|
|
124
124
|
# @param [String] tag Only list Bindings that have all of the specified Tags. The
|
|
125
125
|
# following implicit tags are available: `all`, `apn`, `fcm`, `gcm`, `sms`,
|
|
126
126
|
# `facebook-messenger`. Up to 5 tags are allowed.
|
|
@@ -167,8 +167,8 @@ module Twilio
|
|
|
167
167
|
# @param [Date] end_date Only include usage that occurred on or before this date.
|
|
168
168
|
# Specify the date in GMT and format as `YYYY-MM-DD`.
|
|
169
169
|
# @param [String] identity The
|
|
170
|
-
# [User](https://www.twilio.com/docs/chat/rest/
|
|
171
|
-
# resources to read.
|
|
170
|
+
# [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value
|
|
171
|
+
# of the resources to read.
|
|
172
172
|
# @param [String] tag Only list Bindings that have all of the specified Tags. The
|
|
173
173
|
# following implicit tags are available: `all`, `apn`, `fcm`, `gcm`, `sms`,
|
|
174
174
|
# `facebook-messenger`. Up to 5 tags are allowed.
|
|
@@ -81,7 +81,7 @@ module Twilio
|
|
|
81
81
|
# @param [Hash] gcm The GCM-specific payload that overrides corresponding
|
|
82
82
|
# attributes in the generic payload for GCM Bindings. This property maps to the
|
|
83
83
|
# root JSON dictionary. See the [GCM
|
|
84
|
-
# documentation](https://
|
|
84
|
+
# documentation](https://firebase.google.com/docs/cloud-messaging/http-server-ref)
|
|
85
85
|
# for more details. Target parameters `to`, `registration_ids`, and
|
|
86
86
|
# `notification_key` are not allowed. We reserve keys that start with `twi_` for
|
|
87
87
|
# future use. Custom keys that start with `twi_` are not allowed. GCM also
|
|
@@ -108,8 +108,8 @@ module Twilio
|
|
|
108
108
|
# request entity should not exceed 1MB. This is typically sufficient for 10,000
|
|
109
109
|
# phone numbers.
|
|
110
110
|
# @param [String] identity The `identity` value that uniquely identifies the new
|
|
111
|
-
# resource's [User](https://www.twilio.com/docs/chat/rest/
|
|
112
|
-
# [Service](https://www.twilio.com/docs/notify/api/service-resource). Delivery
|
|
111
|
+
# resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within
|
|
112
|
+
# the [Service](https://www.twilio.com/docs/notify/api/service-resource). Delivery
|
|
113
113
|
# will be attempted only to Bindings with an Identity in this list. No more than
|
|
114
114
|
# 20 items are allowed in this list.
|
|
115
115
|
# @param [String] tag A tag that selects the Bindings to notify. Repeat this
|
|
@@ -28,15 +28,15 @@ module Twilio
|
|
|
28
28
|
##
|
|
29
29
|
# Retrieve a single page of BrandedCallInstance records from the API.
|
|
30
30
|
# Request is executed immediately.
|
|
31
|
-
# @param [String] from The phone number to use as the caller id, given in E.164
|
|
32
|
-
# format
|
|
31
|
+
# @param [String] from The phone number to use as the caller id, given in [E.164
|
|
32
|
+
# format](https://en.wikipedia.org/wiki/E.164). It must be a Twilio number that
|
|
33
33
|
# has been set up as a Branded Number in the Business Profile section for your
|
|
34
34
|
# account.
|
|
35
|
-
# @param [String] to The terminating Phone Number, given in E.164
|
|
36
|
-
# (https://en.wikipedia.org/wiki/E.164).
|
|
35
|
+
# @param [String] to The terminating Phone Number, given in [E.164
|
|
36
|
+
# format](https://en.wikipedia.org/wiki/E.164).
|
|
37
37
|
# @param [String] reason The business reason for this phone call that will appear
|
|
38
|
-
# in the terminating device's screen.
|
|
39
|
-
# @param [String] call_sid The
|
|
38
|
+
# in the terminating device's screen. Max 50 characters.
|
|
39
|
+
# @param [String] call_sid The Call sid this Branded Call should link to.
|
|
40
40
|
# @return [BrandedCallInstance] Newly created BrandedCallInstance
|
|
41
41
|
def create(from: nil, to: nil, reason: nil, call_sid: :unset)
|
|
42
42
|
data = Twilio::Values.of({'From' => from, 'To' => to, 'Reason' => reason, 'CallSid' => call_sid, })
|
|
@@ -29,7 +29,7 @@ module Twilio
|
|
|
29
29
|
# Retrieve a single page of DeviceInstance records from the API.
|
|
30
30
|
# Request is executed immediately.
|
|
31
31
|
# @param [String] phone_number The end user Phone Number linked to the device,
|
|
32
|
-
# given in E.164 format
|
|
32
|
+
# given in [E.164 format](https://en.wikipedia.org/wiki/E.164). The SDK or partner
|
|
33
33
|
# app is responsible of verifying this phone number veracity.
|
|
34
34
|
# @param [String] push_token The Push Token for this Phone Number, linked to the
|
|
35
35
|
# correct SDK's application, certificate and keys.
|
|
@@ -28,86 +28,86 @@ module Twilio
|
|
|
28
28
|
##
|
|
29
29
|
# Retrieve a single page of PhoneCallInstance records from the API.
|
|
30
30
|
# Request is executed immediately.
|
|
31
|
-
# @param [String] from The phone number to use as the caller id, given in E.164
|
|
32
|
-
# format
|
|
31
|
+
# @param [String] from The phone number to use as the caller id, given in [E.164
|
|
32
|
+
# format](https://en.wikipedia.org/wiki/E.164). It must be a Twilio number that
|
|
33
33
|
# has been set up as a Branded Number in the Business Profile section for your
|
|
34
34
|
# account.
|
|
35
|
-
# @param [String] to The terminating Phone Number, given in E.164
|
|
36
|
-
# (https://en.wikipedia.org/wiki/E.164).
|
|
35
|
+
# @param [String] to The terminating Phone Number, given in [E.164
|
|
36
|
+
# format](https://en.wikipedia.org/wiki/E.164).
|
|
37
37
|
# @param [String] reason The business reason for this phone call that will appear
|
|
38
|
-
# in the terminating device's screen.
|
|
38
|
+
# in the terminating device's screen. Max 50 characters.
|
|
39
39
|
# @param [String] application_sid Refers to the parameter with the same name when
|
|
40
|
-
# initiating a call via Voice
|
|
41
|
-
# (https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
40
|
+
# [initiating a call via Voice
|
|
41
|
+
# API](https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
42
42
|
# @param [String] caller_id Refers to the parameter with the same name when
|
|
43
|
-
# initiating a call via Voice
|
|
44
|
-
# (https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
43
|
+
# [initiating a call via Voice
|
|
44
|
+
# API](https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
45
45
|
# @param [String] fallback_method Refers to the parameter with the same name when
|
|
46
|
-
# initiating a call via Voice
|
|
47
|
-
# (https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
46
|
+
# [initiating a call via Voice
|
|
47
|
+
# API](https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
48
48
|
# @param [String] fallback_url Refers to the parameter with the same name when
|
|
49
|
-
# initiating a call via Voice
|
|
50
|
-
# (https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
49
|
+
# [initiating a call via Voice
|
|
50
|
+
# API](https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
51
51
|
# @param [String] machine_detection Refers to the parameter with the same name
|
|
52
|
-
# when initiating a call via Voice
|
|
53
|
-
# (https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
52
|
+
# when [initiating a call via Voice
|
|
53
|
+
# API](https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
54
54
|
# @param [String] machine_detection_silence_timeout Refers to the parameter with
|
|
55
|
-
# the same name when initiating a call via Voice
|
|
56
|
-
# (https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
55
|
+
# the same name when [initiating a call via Voice
|
|
56
|
+
# API](https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
57
57
|
# @param [String] machine_detection_speech_end_threshold Refers to the parameter
|
|
58
|
-
# with the same name when initiating a call via Voice
|
|
59
|
-
# (https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
58
|
+
# with the same name when [initiating a call via Voice
|
|
59
|
+
# API](https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
60
60
|
# @param [String] machine_detection_speech_threshold Refers to the parameter with
|
|
61
|
-
# the same name when initiating a call via Voice
|
|
62
|
-
# (https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
61
|
+
# the same name when [initiating a call via Voice
|
|
62
|
+
# API](https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
63
63
|
# @param [String] machine_detection_timeout Refers to the parameter with the same
|
|
64
|
-
# name when initiating a call via Voice
|
|
65
|
-
# (https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
64
|
+
# name when [initiating a call via Voice
|
|
65
|
+
# API](https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
66
66
|
# @param [String] method Refers to the parameter with the same name when
|
|
67
|
-
# initiating a call via Voice
|
|
68
|
-
# (https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
67
|
+
# [initiating a call via Voice
|
|
68
|
+
# API](https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
69
69
|
# @param [Boolean] record Refers to the parameter with the same name when
|
|
70
|
-
# initiating a call via Voice
|
|
71
|
-
# (https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
70
|
+
# [initiating a call via Voice
|
|
71
|
+
# API](https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
72
72
|
# @param [String] recording_channels Refers to the parameter with the same name
|
|
73
|
-
# when initiating a call via Voice
|
|
74
|
-
# (https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
73
|
+
# when [initiating a call via Voice
|
|
74
|
+
# API](https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
75
75
|
# @param [String] recording_status_callback Refers to the parameter with the same
|
|
76
|
-
# name when initiating a call via Voice
|
|
77
|
-
# (https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
76
|
+
# name when [initiating a call via Voice
|
|
77
|
+
# API](https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
78
78
|
# @param [String] recording_status_callback_event Refers to the parameter with the
|
|
79
|
-
# same name when initiating a call via Voice
|
|
80
|
-
# (https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
79
|
+
# same name when [initiating a call via Voice
|
|
80
|
+
# API](https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
81
81
|
# @param [String] recording_status_callback_method Refers to the parameter with
|
|
82
|
-
# the same name when initiating a call via Voice
|
|
83
|
-
# (https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
82
|
+
# the same name when [initiating a call via Voice
|
|
83
|
+
# API](https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
84
84
|
# @param [String] send_digits Refers to the parameter with the same name when
|
|
85
|
-
# initiating a call via Voice
|
|
86
|
-
# (https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
85
|
+
# [initiating a call via Voice
|
|
86
|
+
# API](https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
87
87
|
# @param [String] sip_auth_password Refers to the parameter with the same name
|
|
88
|
-
# when initiating a call via Voice
|
|
89
|
-
# (https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
88
|
+
# when [initiating a call via Voice
|
|
89
|
+
# API](https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
90
90
|
# @param [String] sip_auth_username Refers to the parameter with the same name
|
|
91
|
-
# when initiating a call via Voice
|
|
92
|
-
# (https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
91
|
+
# when [initiating a call via Voice
|
|
92
|
+
# API](https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
93
93
|
# @param [String] status_callback Refers to the parameter with the same name when
|
|
94
|
-
# initiating a call via Voice
|
|
95
|
-
# (https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
94
|
+
# [initiating a call via Voice
|
|
95
|
+
# API](https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
96
96
|
# @param [String] status_callback_event Refers to the parameter with the same name
|
|
97
|
-
# when initiating a call via Voice
|
|
98
|
-
# (https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
97
|
+
# when [initiating a call via Voice
|
|
98
|
+
# API](https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
99
99
|
# @param [String] status_callback_method Refers to the parameter with the same
|
|
100
|
-
# name when initiating a call via Voice
|
|
101
|
-
# (https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
100
|
+
# name when [initiating a call via Voice
|
|
101
|
+
# API](https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
102
102
|
# @param [String] timeout Refers to the parameter with the same name when
|
|
103
|
-
# initiating a call via Voice
|
|
104
|
-
# (https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
105
|
-
# @param [String] trim Refers to the parameter with the same name when initiating
|
|
106
|
-
# a call via Voice
|
|
107
|
-
# (https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
108
|
-
# @param [String] url Refers to the parameter with the same name when initiating
|
|
109
|
-
# call via Voice
|
|
110
|
-
# (https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
103
|
+
# [initiating a call via Voice
|
|
104
|
+
# API](https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
105
|
+
# @param [String] trim Refers to the parameter with the same name when [initiating
|
|
106
|
+
# a call via Voice
|
|
107
|
+
# API](https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
108
|
+
# @param [String] url Refers to the parameter with the same name when [initiating
|
|
109
|
+
# a call via Voice
|
|
110
|
+
# API](https://www.twilio.com/docs/voice/api/call#create-a-call-resource)
|
|
111
111
|
# @return [PhoneCallInstance] Newly created PhoneCallInstance
|
|
112
112
|
def create(from: nil, to: nil, reason: :unset, application_sid: :unset, caller_id: :unset, fallback_method: :unset, fallback_url: :unset, machine_detection: :unset, machine_detection_silence_timeout: :unset, machine_detection_speech_end_threshold: :unset, machine_detection_speech_threshold: :unset, machine_detection_timeout: :unset, method: :unset, record: :unset, recording_channels: :unset, recording_status_callback: :unset, recording_status_callback_event: :unset, recording_status_callback_method: :unset, send_digits: :unset, sip_auth_password: :unset, sip_auth_username: :unset, status_callback: :unset, status_callback_event: :unset, status_callback_method: :unset, timeout: :unset, trim: :unset, url: :unset)
|
|
113
113
|
data = Twilio::Values.of({
|
|
@@ -29,8 +29,8 @@ module Twilio
|
|
|
29
29
|
##
|
|
30
30
|
# Access the countries
|
|
31
31
|
# @param [String] iso_country The [ISO country
|
|
32
|
-
# code](
|
|
33
|
-
# pricing information to fetch.
|
|
32
|
+
# code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the origin-based
|
|
33
|
+
# voice pricing information to fetch.
|
|
34
34
|
# @return [CountryList]
|
|
35
35
|
# @return [CountryContext] if iso_country was passed.
|
|
36
36
|
def countries(iso_country=:unset)
|
|
@@ -147,8 +147,8 @@ module Twilio
|
|
|
147
147
|
# Initialize the CountryContext
|
|
148
148
|
# @param [Version] version Version that contains the resource
|
|
149
149
|
# @param [String] iso_country The [ISO country
|
|
150
|
-
# code](
|
|
151
|
-
# pricing information to fetch.
|
|
150
|
+
# code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the origin-based
|
|
151
|
+
# voice pricing information to fetch.
|
|
152
152
|
# @return [CountryContext] CountryContext
|
|
153
153
|
def initialize(version, iso_country)
|
|
154
154
|
super(version)
|
|
@@ -194,8 +194,8 @@ module Twilio
|
|
|
194
194
|
# @param [Version] version Version that contains the resource
|
|
195
195
|
# @param [Hash] payload payload that contains response from Twilio
|
|
196
196
|
# @param [String] iso_country The [ISO country
|
|
197
|
-
# code](
|
|
198
|
-
# pricing information to fetch.
|
|
197
|
+
# code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the origin-based
|
|
198
|
+
# voice pricing information to fetch.
|
|
199
199
|
# @return [CountryInstance] CountryInstance
|
|
200
200
|
def initialize(version, payload, iso_country: nil)
|
|
201
201
|
super(version)
|
|
@@ -32,7 +32,7 @@ module Twilio
|
|
|
32
32
|
# Retrieve a single page of PhoneNumberInstance records from the API.
|
|
33
33
|
# Request is executed immediately.
|
|
34
34
|
# @param [String] sid The SID of a Twilio
|
|
35
|
-
# [IncomingPhoneNumber](https://www.twilio.com/docs/phone-numbers/api/
|
|
35
|
+
# [IncomingPhoneNumber](https://www.twilio.com/docs/phone-numbers/api/incomingphonenumber-resource) resource that represents the Twilio Number you would like to assign to your Proxy Service.
|
|
36
36
|
# @param [String] phone_number The phone number in
|
|
37
37
|
# [E.164](https://www.twilio.com/docs/glossary/what-e164) format. E.164 phone
|
|
38
38
|
# numbers consist of a + followed by the country code and subscriber number
|
|
@@ -29,7 +29,8 @@ module Twilio
|
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
##
|
|
32
|
-
# @param [String] sid The unique
|
|
32
|
+
# @param [String] sid The unique string that we created to identify the Service
|
|
33
|
+
# resource.
|
|
33
34
|
# @return [Twilio::REST::Serverless::V1::ServiceInstance] if sid was passed.
|
|
34
35
|
# @return [Twilio::REST::Serverless::V1::ServiceList]
|
|
35
36
|
def services(sid=:unset)
|
|
@@ -19,8 +19,7 @@ module Twilio
|
|
|
19
19
|
end
|
|
20
20
|
|
|
21
21
|
##
|
|
22
|
-
# @param [String] sid
|
|
23
|
-
# or UniqueName.
|
|
22
|
+
# @param [String] sid The `sid` or `unique_name` of the Service resource to fetch.
|
|
24
23
|
# @return [Twilio::REST::Serverless::V1::ServiceContext] if sid was passed.
|
|
25
24
|
# @return [Twilio::REST::Serverless::V1::ServiceList]
|
|
26
25
|
def services(sid=:unset)
|
|
@@ -110,13 +110,14 @@ module Twilio
|
|
|
110
110
|
##
|
|
111
111
|
# Retrieve a single page of ServiceInstance records from the API.
|
|
112
112
|
# Request is executed immediately.
|
|
113
|
-
# @param [String] unique_name
|
|
114
|
-
#
|
|
115
|
-
#
|
|
116
|
-
#
|
|
117
|
-
# @param [
|
|
118
|
-
#
|
|
119
|
-
#
|
|
113
|
+
# @param [String] unique_name An application-defined string that uniquely
|
|
114
|
+
# identifies the Service resource. It can be used as an alternative to the `sid`
|
|
115
|
+
# in the URL path to address the Service resource. This value must be 244
|
|
116
|
+
# characters or less in length and be unique.
|
|
117
|
+
# @param [String] friendly_name A descriptive string that you create to describe
|
|
118
|
+
# the Service resource. It can be up to 255 characters long.
|
|
119
|
+
# @param [Boolean] include_credentials Whether to inject Account credentials into
|
|
120
|
+
# a function invocation context. The default value is `false`.
|
|
120
121
|
# @return [ServiceInstance] Newly created ServiceInstance
|
|
121
122
|
def create(unique_name: nil, friendly_name: nil, include_credentials: :unset)
|
|
122
123
|
data = Twilio::Values.of({
|
|
@@ -178,8 +179,7 @@ module Twilio
|
|
|
178
179
|
##
|
|
179
180
|
# Initialize the ServiceContext
|
|
180
181
|
# @param [Version] version Version that contains the resource
|
|
181
|
-
# @param [String] sid
|
|
182
|
-
# or UniqueName.
|
|
182
|
+
# @param [String] sid The `sid` or `unique_name` of the Service resource to fetch.
|
|
183
183
|
# @return [ServiceContext] ServiceContext
|
|
184
184
|
def initialize(version, sid)
|
|
185
185
|
super(version)
|
|
@@ -219,10 +219,10 @@ module Twilio
|
|
|
219
219
|
|
|
220
220
|
##
|
|
221
221
|
# Update the ServiceInstance
|
|
222
|
-
# @param [Boolean] include_credentials
|
|
223
|
-
#
|
|
224
|
-
# @param [String] friendly_name A
|
|
225
|
-
#
|
|
222
|
+
# @param [Boolean] include_credentials Whether to inject Account credentials into
|
|
223
|
+
# a function invocation context.
|
|
224
|
+
# @param [String] friendly_name A descriptive string that you create to describe
|
|
225
|
+
# the Service resource. It can be up to 255 characters long.
|
|
226
226
|
# @return [ServiceInstance] Updated ServiceInstance
|
|
227
227
|
def update(include_credentials: :unset, friendly_name: :unset)
|
|
228
228
|
data = Twilio::Values.of({
|
|
@@ -333,8 +333,7 @@ module Twilio
|
|
|
333
333
|
# Initialize the ServiceInstance
|
|
334
334
|
# @param [Version] version Version that contains the resource
|
|
335
335
|
# @param [Hash] payload payload that contains response from Twilio
|
|
336
|
-
# @param [String] sid
|
|
337
|
-
# or UniqueName.
|
|
336
|
+
# @param [String] sid The `sid` or `unique_name` of the Service resource to fetch.
|
|
338
337
|
# @return [ServiceInstance] ServiceInstance
|
|
339
338
|
def initialize(version, payload, sid: nil)
|
|
340
339
|
super(version)
|
|
@@ -369,55 +368,55 @@ module Twilio
|
|
|
369
368
|
end
|
|
370
369
|
|
|
371
370
|
##
|
|
372
|
-
# @return [String] Service
|
|
371
|
+
# @return [String] The unique string that identifies the Service resource
|
|
373
372
|
def sid
|
|
374
373
|
@properties['sid']
|
|
375
374
|
end
|
|
376
375
|
|
|
377
376
|
##
|
|
378
|
-
# @return [String] Account
|
|
377
|
+
# @return [String] The SID of the Account that created the Service resource
|
|
379
378
|
def account_sid
|
|
380
379
|
@properties['account_sid']
|
|
381
380
|
end
|
|
382
381
|
|
|
383
382
|
##
|
|
384
|
-
# @return [String]
|
|
383
|
+
# @return [String] The string that you assigned to describe the Service resource
|
|
385
384
|
def friendly_name
|
|
386
385
|
@properties['friendly_name']
|
|
387
386
|
end
|
|
388
387
|
|
|
389
388
|
##
|
|
390
|
-
# @return [String]
|
|
389
|
+
# @return [String] An application-defined string that uniquely identifies the Service resource
|
|
391
390
|
def unique_name
|
|
392
391
|
@properties['unique_name']
|
|
393
392
|
end
|
|
394
393
|
|
|
395
394
|
##
|
|
396
|
-
# @return [Boolean] Whether to inject Account credentials into a
|
|
395
|
+
# @return [Boolean] Whether to inject Account credentials into a function invocation context
|
|
397
396
|
def include_credentials
|
|
398
397
|
@properties['include_credentials']
|
|
399
398
|
end
|
|
400
399
|
|
|
401
400
|
##
|
|
402
|
-
# @return [Time] The date
|
|
401
|
+
# @return [Time] The ISO 8601 date and time in GMT when the Service resource was created
|
|
403
402
|
def date_created
|
|
404
403
|
@properties['date_created']
|
|
405
404
|
end
|
|
406
405
|
|
|
407
406
|
##
|
|
408
|
-
# @return [Time] The date
|
|
407
|
+
# @return [Time] The ISO 8601 date and time in GMT when the Service resource was last updated
|
|
409
408
|
def date_updated
|
|
410
409
|
@properties['date_updated']
|
|
411
410
|
end
|
|
412
411
|
|
|
413
412
|
##
|
|
414
|
-
# @return [String] The URL of
|
|
413
|
+
# @return [String] The absolute URL of the Service resource
|
|
415
414
|
def url
|
|
416
415
|
@properties['url']
|
|
417
416
|
end
|
|
418
417
|
|
|
419
418
|
##
|
|
420
|
-
# @return [String]
|
|
419
|
+
# @return [String] The URLs of the Service's nested resources
|
|
421
420
|
def links
|
|
422
421
|
@properties['links']
|
|
423
422
|
end
|
|
@@ -438,10 +437,10 @@ module Twilio
|
|
|
438
437
|
|
|
439
438
|
##
|
|
440
439
|
# Update the ServiceInstance
|
|
441
|
-
# @param [Boolean] include_credentials
|
|
442
|
-
#
|
|
443
|
-
# @param [String] friendly_name A
|
|
444
|
-
#
|
|
440
|
+
# @param [Boolean] include_credentials Whether to inject Account credentials into
|
|
441
|
+
# a function invocation context.
|
|
442
|
+
# @param [String] friendly_name A descriptive string that you create to describe
|
|
443
|
+
# the Service resource. It can be up to 255 characters long.
|
|
445
444
|
# @return [ServiceInstance] Updated ServiceInstance
|
|
446
445
|
def update(include_credentials: :unset, friendly_name: :unset)
|
|
447
446
|
context.update(include_credentials: include_credentials, friendly_name: friendly_name, )
|
|
@@ -17,8 +17,8 @@ module Twilio
|
|
|
17
17
|
##
|
|
18
18
|
# Initialize the AssetList
|
|
19
19
|
# @param [Version] version Version that contains the resource
|
|
20
|
-
# @param [String] service_sid The
|
|
21
|
-
#
|
|
20
|
+
# @param [String] service_sid The SID of the Service that the Asset resource is
|
|
21
|
+
# associated with.
|
|
22
22
|
# @return [AssetList] AssetList
|
|
23
23
|
def initialize(version, service_sid: nil)
|
|
24
24
|
super(version)
|
|
@@ -113,8 +113,8 @@ module Twilio
|
|
|
113
113
|
##
|
|
114
114
|
# Retrieve a single page of AssetInstance records from the API.
|
|
115
115
|
# Request is executed immediately.
|
|
116
|
-
# @param [String] friendly_name A
|
|
117
|
-
#
|
|
116
|
+
# @param [String] friendly_name A descriptive string that you create to describe
|
|
117
|
+
# the Asset resource. It can be up to 255 characters long.
|
|
118
118
|
# @return [AssetInstance] Newly created AssetInstance
|
|
119
119
|
def create(friendly_name: nil)
|
|
120
120
|
data = Twilio::Values.of({'FriendlyName' => friendly_name, })
|
|
@@ -172,9 +172,9 @@ module Twilio
|
|
|
172
172
|
##
|
|
173
173
|
# Initialize the AssetContext
|
|
174
174
|
# @param [Version] version Version that contains the resource
|
|
175
|
-
# @param [String] service_sid The
|
|
176
|
-
#
|
|
177
|
-
# @param [String] sid The
|
|
175
|
+
# @param [String] service_sid The SID of the Service to fetch the Asset resource
|
|
176
|
+
# from.
|
|
177
|
+
# @param [String] sid The SID of the Asset resource to fetch.
|
|
178
178
|
# @return [AssetContext] AssetContext
|
|
179
179
|
def initialize(version, service_sid, sid)
|
|
180
180
|
super(version)
|
|
@@ -211,8 +211,8 @@ module Twilio
|
|
|
211
211
|
|
|
212
212
|
##
|
|
213
213
|
# Update the AssetInstance
|
|
214
|
-
# @param [String] friendly_name A
|
|
215
|
-
#
|
|
214
|
+
# @param [String] friendly_name A descriptive string that you create to describe
|
|
215
|
+
# the Asset resource. It can be up to 255 characters long.
|
|
216
216
|
# @return [AssetInstance] Updated AssetInstance
|
|
217
217
|
def update(friendly_name: nil)
|
|
218
218
|
data = Twilio::Values.of({'FriendlyName' => friendly_name, })
|
|
@@ -270,9 +270,9 @@ module Twilio
|
|
|
270
270
|
# Initialize the AssetInstance
|
|
271
271
|
# @param [Version] version Version that contains the resource
|
|
272
272
|
# @param [Hash] payload payload that contains response from Twilio
|
|
273
|
-
# @param [String] service_sid The
|
|
274
|
-
#
|
|
275
|
-
# @param [String] sid The
|
|
273
|
+
# @param [String] service_sid The SID of the Service that the Asset resource is
|
|
274
|
+
# associated with.
|
|
275
|
+
# @param [String] sid The SID of the Asset resource to fetch.
|
|
276
276
|
# @return [AssetInstance] AssetInstance
|
|
277
277
|
def initialize(version, payload, service_sid: nil, sid: nil)
|
|
278
278
|
super(version)
|
|
@@ -306,49 +306,49 @@ module Twilio
|
|
|
306
306
|
end
|
|
307
307
|
|
|
308
308
|
##
|
|
309
|
-
# @return [String] Asset
|
|
309
|
+
# @return [String] The unique string that identifies the Asset resource
|
|
310
310
|
def sid
|
|
311
311
|
@properties['sid']
|
|
312
312
|
end
|
|
313
313
|
|
|
314
314
|
##
|
|
315
|
-
# @return [String] Account
|
|
315
|
+
# @return [String] The SID of the Account that created the Asset resource
|
|
316
316
|
def account_sid
|
|
317
317
|
@properties['account_sid']
|
|
318
318
|
end
|
|
319
319
|
|
|
320
320
|
##
|
|
321
|
-
# @return [String] Service
|
|
321
|
+
# @return [String] The SID of the Service that the Asset resource is associated with
|
|
322
322
|
def service_sid
|
|
323
323
|
@properties['service_sid']
|
|
324
324
|
end
|
|
325
325
|
|
|
326
326
|
##
|
|
327
|
-
# @return [String]
|
|
327
|
+
# @return [String] The string that you assigned to describe the Asset resource
|
|
328
328
|
def friendly_name
|
|
329
329
|
@properties['friendly_name']
|
|
330
330
|
end
|
|
331
331
|
|
|
332
332
|
##
|
|
333
|
-
# @return [Time] The date
|
|
333
|
+
# @return [Time] The ISO 8601 date and time in GMT when the Asset resource was created
|
|
334
334
|
def date_created
|
|
335
335
|
@properties['date_created']
|
|
336
336
|
end
|
|
337
337
|
|
|
338
338
|
##
|
|
339
|
-
# @return [Time] The date
|
|
339
|
+
# @return [Time] The ISO 8601 date and time in GMT when the Asset resource was last updated
|
|
340
340
|
def date_updated
|
|
341
341
|
@properties['date_updated']
|
|
342
342
|
end
|
|
343
343
|
|
|
344
344
|
##
|
|
345
|
-
# @return [String] The URL of
|
|
345
|
+
# @return [String] The absolute URL of the Asset resource
|
|
346
346
|
def url
|
|
347
347
|
@properties['url']
|
|
348
348
|
end
|
|
349
349
|
|
|
350
350
|
##
|
|
351
|
-
# @return [String]
|
|
351
|
+
# @return [String] The links to the nested resources of the asset
|
|
352
352
|
def links
|
|
353
353
|
@properties['links']
|
|
354
354
|
end
|
|
@@ -369,8 +369,8 @@ module Twilio
|
|
|
369
369
|
|
|
370
370
|
##
|
|
371
371
|
# Update the AssetInstance
|
|
372
|
-
# @param [String] friendly_name A
|
|
373
|
-
#
|
|
372
|
+
# @param [String] friendly_name A descriptive string that you create to describe
|
|
373
|
+
# the Asset resource. It can be up to 255 characters long.
|
|
374
374
|
# @return [AssetInstance] Updated AssetInstance
|
|
375
375
|
def update(friendly_name: nil)
|
|
376
376
|
context.update(friendly_name: friendly_name, )
|