twilio-ruby 5.72.0 → 5.77.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/.github/workflows/pr-lint.yml +8 -2
- data/.github/workflows/test-and-deploy.yml +3 -3
- data/CHANGES.md +234 -0
- data/CONTRIBUTING.md +1 -7
- data/LICENSE +1 -1
- data/README.md +132 -45
- data/advanced-examples/custom-http-client.md +170 -0
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +19 -3
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +22 -3
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/machine_to_machine.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/national.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/voip.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +5 -5
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb +160 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb +251 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +59 -0
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +56 -17
- data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +5 -5
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +17 -1
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +6 -6
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +1 -1
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_statistics.rb +2 -2
- data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v1/service.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +1 -1
- data/lib/twilio-ruby/rest/chat/v2/service.rb +4 -4
- data/lib/twilio-ruby/rest/chat/v3/channel.rb +2 -2
- data/lib/twilio-ruby/rest/client.rb +14 -0
- data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +195 -0
- data/lib/twilio-ruby/rest/content/v1/content.rb +346 -0
- data/lib/twilio-ruby/rest/content/v1/content_and_approvals.rb +240 -0
- data/lib/twilio-ruby/rest/content/v1/legacy_content.rb +254 -0
- data/lib/twilio-ruby/rest/content/v1.rb +59 -0
- data/lib/twilio-ruby/rest/content.rb +59 -0
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +1 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +17 -2
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +43 -5
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb +1 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +17 -2
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +43 -5
- data/lib/twilio-ruby/rest/events/v1/schema/version.rb +1 -1
- data/lib/twilio-ruby/rest/events/v1/schema.rb +1 -1
- data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +397 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +314 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb +216 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +394 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +313 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +390 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb +413 -0
- data/lib/twilio-ruby/rest/{preview/trusted_comms/brands_information.rb → flex_api/v1/insights_session.rb} +58 -55
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_answersets.rb +144 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb +130 -0
- data/lib/twilio-ruby/rest/{preview/trusted_comms/cps.rb → flex_api/v1/insights_user_roles.rb} +42 -54
- data/lib/twilio-ruby/rest/flex_api/v1.rb +122 -0
- data/lib/twilio-ruby/rest/flex_api/v2/web_channels.rb +133 -0
- data/lib/twilio-ruby/rest/flex_api/v2.rb +35 -0
- data/lib/twilio-ruby/rest/flex_api.rb +89 -0
- data/lib/twilio-ruby/rest/insights/v1/call/summary.rb +7 -0
- data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +16 -3
- data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +1 -1
- data/lib/twilio-ruby/rest/insights/v1/room.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +2 -2
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +4 -4
- data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +88 -6
- data/lib/twilio-ruby/rest/media/v1/media_processor.rb +1 -1
- data/lib/twilio-ruby/rest/media/v1/media_recording.rb +2 -2
- data/lib/twilio-ruby/rest/media/v1/player_streamer.rb +1 -1
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_registration_otp.rb +134 -0
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +26 -3
- data/lib/twilio-ruby/rest/messaging/v1/domain_cert.rb +257 -0
- data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +242 -0
- data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +226 -0
- data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb +218 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +98 -3
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +1 -1
- data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +165 -1
- data/lib/twilio-ruby/rest/messaging/v1.rb +75 -0
- data/lib/twilio-ruby/rest/messaging.rb +36 -0
- data/lib/twilio-ruby/rest/microvisor/v1/account_config.rb +317 -0
- data/lib/twilio-ruby/rest/microvisor/v1/account_secret.rb +310 -0
- data/lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb +192 -0
- data/lib/twilio-ruby/rest/microvisor/v1/app.rb +25 -0
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb +342 -0
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb +335 -0
- data/lib/twilio-ruby/rest/microvisor/v1/device.rb +61 -0
- data/lib/twilio-ruby/rest/microvisor/v1.rb +32 -0
- data/lib/twilio-ruby/rest/microvisor.rb +16 -0
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +1 -1
- data/lib/twilio-ruby/rest/numbers/v1/eligibility.rb +111 -0
- data/lib/twilio-ruby/rest/numbers/v1.rb +35 -0
- data/lib/twilio-ruby/rest/numbers.rb +13 -0
- data/lib/twilio-ruby/rest/oauth/v1/device_code.rb +153 -0
- data/lib/twilio-ruby/rest/oauth/v1/oauth.rb +162 -0
- data/lib/twilio-ruby/rest/oauth/v1/openid_discovery.rb +242 -0
- data/lib/twilio-ruby/rest/oauth/v1/token.rb +157 -0
- data/lib/twilio-ruby/rest/oauth/v1/user_info.rb +193 -0
- data/lib/twilio-ruby/rest/oauth/v1.rb +63 -0
- data/lib/twilio-ruby/rest/oauth.rb +68 -0
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +2 -2
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +2 -2
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +1 -1
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/task_statistics.rb +2 -2
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +1 -1
- data/lib/twilio-ruby/rest/preview.rb +0 -33
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +1 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +1 -14
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +5 -46
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v1/flow.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v2/flow.rb +1 -1
- data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +21 -1
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +1 -1
- data/lib/twilio-ruby/rest/supersim/v1/ip_command.rb +5 -2
- data/lib/twilio-ruby/rest/supersim/v1/settings_update.rb +247 -0
- data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +3 -3
- data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +4 -4
- data/lib/twilio-ruby/rest/supersim/v1.rb +7 -0
- data/lib/twilio-ruby/rest/supersim.rb +6 -0
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +1 -1
- data/lib/twilio-ruby/rest/sync/v1/service.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +18 -5
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +3 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +12 -12
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +5 -5
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +10 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +3 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +6 -6
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +9 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +13 -13
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +2 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +13 -13
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +3 -3
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +2 -2
- data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +1 -9
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +1 -7
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +0 -8
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +0 -8
- data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +0 -6
- data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +0 -8
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +2 -2
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +12 -6
- data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +0 -8
- data/lib/twilio-ruby/rest/verify/v2/service.rb +4 -4
- data/lib/twilio-ruby/rest/verify/v2/template.rb +10 -3
- data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +4 -4
- data/lib/twilio-ruby/rest/video/v1/composition.rb +3 -3
- 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/video/v1/room.rb +4 -4
- data/lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb +2 -2
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb +1 -1
- data/lib/twilio-ruby/rest/voice/v1/ip_record.rb +1 -1
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +3 -3
- data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +2 -2
- data/lib/twilio-ruby/twiml/voice_response.rb +132 -33
- data/lib/twilio-ruby/version.rb +1 -1
- data/twilio-ruby.gemspec +1 -1
- metadata +48 -12
- data/lib/twilio-ruby/rest/preview/trusted_comms/branded_channel/channel.rb +0 -165
- data/lib/twilio-ruby/rest/preview/trusted_comms/branded_channel.rb +0 -225
- data/lib/twilio-ruby/rest/preview/trusted_comms/current_call.rb +0 -277
- data/lib/twilio-ruby/rest/preview/trusted_comms.rb +0 -65
|
@@ -114,7 +114,10 @@ module Twilio
|
|
|
114
114
|
# Create a new <Hangup> element
|
|
115
115
|
# keyword_args:: additional attributes
|
|
116
116
|
def hangup(**keyword_args)
|
|
117
|
-
|
|
117
|
+
hangup = Hangup.new(**keyword_args)
|
|
118
|
+
|
|
119
|
+
yield(hangup) if block_given?
|
|
120
|
+
append(hangup)
|
|
118
121
|
end
|
|
119
122
|
|
|
120
123
|
##
|
|
@@ -187,7 +190,10 @@ module Twilio
|
|
|
187
190
|
# reason:: Rejection reason
|
|
188
191
|
# keyword_args:: additional attributes
|
|
189
192
|
def reject(reason: nil, **keyword_args)
|
|
190
|
-
|
|
193
|
+
reject = Reject.new(reason: reason, **keyword_args)
|
|
194
|
+
|
|
195
|
+
yield(reject) if block_given?
|
|
196
|
+
append(reject)
|
|
191
197
|
end
|
|
192
198
|
|
|
193
199
|
##
|
|
@@ -251,9 +257,10 @@ module Twilio
|
|
|
251
257
|
# error_type:: Type of error
|
|
252
258
|
# card_type:: Type of the credit card
|
|
253
259
|
# attempt:: Current attempt count
|
|
260
|
+
# require_matching_inputs:: Require customer to input requested information twice and verify matching.
|
|
254
261
|
# keyword_args:: additional attributes
|
|
255
|
-
def prompt(for_: nil, error_type: nil, card_type: nil, attempt: nil, **keyword_args)
|
|
256
|
-
prompt = Prompt.new(for_: for_, error_type: error_type, card_type: card_type, attempt: attempt, **keyword_args)
|
|
262
|
+
def prompt(for_: nil, error_type: nil, card_type: nil, attempt: nil, require_matching_inputs: nil, **keyword_args)
|
|
263
|
+
prompt = Prompt.new(for_: for_, error_type: error_type, card_type: card_type, attempt: attempt, require_matching_inputs: require_matching_inputs, **keyword_args)
|
|
257
264
|
|
|
258
265
|
yield(prompt) if block_given?
|
|
259
266
|
append(prompt)
|
|
@@ -613,10 +620,10 @@ module Twilio
|
|
|
613
620
|
# Create a new <Say-As> element
|
|
614
621
|
# words:: Words to be interpreted
|
|
615
622
|
# interpretAs:: Specify the type of words are spoken
|
|
616
|
-
#
|
|
623
|
+
# format:: Specify the format of the date when interpret-as is set to date
|
|
617
624
|
# keyword_args:: additional attributes
|
|
618
|
-
def say_as(words, interpretAs: nil,
|
|
619
|
-
append(SsmlSayAs.new(words, interpretAs: interpretAs,
|
|
625
|
+
def say_as(words, interpretAs: nil, format: nil, **keyword_args)
|
|
626
|
+
append(SsmlSayAs.new(words, interpretAs: interpretAs, format: format, **keyword_args))
|
|
620
627
|
end
|
|
621
628
|
|
|
622
629
|
##
|
|
@@ -700,10 +707,10 @@ module Twilio
|
|
|
700
707
|
# Create a new <Say-As> element
|
|
701
708
|
# words:: Words to be interpreted
|
|
702
709
|
# interpretAs:: Specify the type of words are spoken
|
|
703
|
-
#
|
|
710
|
+
# format:: Specify the format of the date when interpret-as is set to date
|
|
704
711
|
# keyword_args:: additional attributes
|
|
705
|
-
def say_as(words, interpretAs: nil,
|
|
706
|
-
append(SsmlSayAs.new(words, interpretAs: interpretAs,
|
|
712
|
+
def say_as(words, interpretAs: nil, format: nil, **keyword_args)
|
|
713
|
+
append(SsmlSayAs.new(words, interpretAs: interpretAs, format: format, **keyword_args))
|
|
707
714
|
end
|
|
708
715
|
|
|
709
716
|
##
|
|
@@ -831,10 +838,10 @@ module Twilio
|
|
|
831
838
|
# Create a new <Say-As> element
|
|
832
839
|
# words:: Words to be interpreted
|
|
833
840
|
# interpretAs:: Specify the type of words are spoken
|
|
834
|
-
#
|
|
841
|
+
# format:: Specify the format of the date when interpret-as is set to date
|
|
835
842
|
# keyword_args:: additional attributes
|
|
836
|
-
def say_as(words, interpretAs: nil,
|
|
837
|
-
append(SsmlSayAs.new(words, interpretAs: interpretAs,
|
|
843
|
+
def say_as(words, interpretAs: nil, format: nil, **keyword_args)
|
|
844
|
+
append(SsmlSayAs.new(words, interpretAs: interpretAs, format: format, **keyword_args))
|
|
838
845
|
end
|
|
839
846
|
|
|
840
847
|
##
|
|
@@ -930,10 +937,10 @@ module Twilio
|
|
|
930
937
|
# Create a new <Say-As> element
|
|
931
938
|
# words:: Words to be interpreted
|
|
932
939
|
# interpretAs:: Specify the type of words are spoken
|
|
933
|
-
#
|
|
940
|
+
# format:: Specify the format of the date when interpret-as is set to date
|
|
934
941
|
# keyword_args:: additional attributes
|
|
935
|
-
def say_as(words, interpretAs: nil,
|
|
936
|
-
append(SsmlSayAs.new(words, interpretAs: interpretAs,
|
|
942
|
+
def say_as(words, interpretAs: nil, format: nil, **keyword_args)
|
|
943
|
+
append(SsmlSayAs.new(words, interpretAs: interpretAs, format: format, **keyword_args))
|
|
937
944
|
end
|
|
938
945
|
|
|
939
946
|
##
|
|
@@ -1062,10 +1069,10 @@ module Twilio
|
|
|
1062
1069
|
# Create a new <Say-As> element
|
|
1063
1070
|
# words:: Words to be interpreted
|
|
1064
1071
|
# interpretAs:: Specify the type of words are spoken
|
|
1065
|
-
#
|
|
1072
|
+
# format:: Specify the format of the date when interpret-as is set to date
|
|
1066
1073
|
# keyword_args:: additional attributes
|
|
1067
|
-
def say_as(words, interpretAs: nil,
|
|
1068
|
-
append(SsmlSayAs.new(words, interpretAs: interpretAs,
|
|
1074
|
+
def say_as(words, interpretAs: nil, format: nil, **keyword_args)
|
|
1075
|
+
append(SsmlSayAs.new(words, interpretAs: interpretAs, format: format, **keyword_args))
|
|
1069
1076
|
end
|
|
1070
1077
|
|
|
1071
1078
|
##
|
|
@@ -1172,10 +1179,10 @@ module Twilio
|
|
|
1172
1179
|
# Create a new <Say-As> element
|
|
1173
1180
|
# words:: Words to be interpreted
|
|
1174
1181
|
# interpretAs:: Specify the type of words are spoken
|
|
1175
|
-
#
|
|
1182
|
+
# format:: Specify the format of the date when interpret-as is set to date
|
|
1176
1183
|
# keyword_args:: additional attributes
|
|
1177
|
-
def say_as(words, interpretAs: nil,
|
|
1178
|
-
append(SsmlSayAs.new(words, interpretAs: interpretAs,
|
|
1184
|
+
def say_as(words, interpretAs: nil, format: nil, **keyword_args)
|
|
1185
|
+
append(SsmlSayAs.new(words, interpretAs: interpretAs, format: format, **keyword_args))
|
|
1179
1186
|
end
|
|
1180
1187
|
|
|
1181
1188
|
##
|
|
@@ -1271,10 +1278,10 @@ module Twilio
|
|
|
1271
1278
|
# Create a new <Say-As> element
|
|
1272
1279
|
# words:: Words to be interpreted
|
|
1273
1280
|
# interpretAs:: Specify the type of words are spoken
|
|
1274
|
-
#
|
|
1281
|
+
# format:: Specify the format of the date when interpret-as is set to date
|
|
1275
1282
|
# keyword_args:: additional attributes
|
|
1276
|
-
def say_as(words, interpretAs: nil,
|
|
1277
|
-
append(SsmlSayAs.new(words, interpretAs: interpretAs,
|
|
1283
|
+
def say_as(words, interpretAs: nil, format: nil, **keyword_args)
|
|
1284
|
+
append(SsmlSayAs.new(words, interpretAs: interpretAs, format: format, **keyword_args))
|
|
1278
1285
|
end
|
|
1279
1286
|
|
|
1280
1287
|
##
|
|
@@ -1326,9 +1333,10 @@ module Twilio
|
|
|
1326
1333
|
# error_type:: Type of error
|
|
1327
1334
|
# card_type:: Type of the credit card
|
|
1328
1335
|
# attempt:: Current attempt count
|
|
1336
|
+
# require_matching_inputs:: Require customer to input requested information twice and verify matching.
|
|
1329
1337
|
# keyword_args:: additional attributes
|
|
1330
|
-
def prompt(for_: nil, error_type: nil, card_type: nil, attempt: nil, **keyword_args)
|
|
1331
|
-
prompt = Prompt.new(for_: for_, error_type: error_type, card_type: card_type, attempt: attempt, **keyword_args)
|
|
1338
|
+
def prompt(for_: nil, error_type: nil, card_type: nil, attempt: nil, require_matching_inputs: nil, **keyword_args)
|
|
1339
|
+
prompt = Prompt.new(for_: for_, error_type: error_type, card_type: card_type, attempt: attempt, require_matching_inputs: require_matching_inputs, **keyword_args)
|
|
1332
1340
|
|
|
1333
1341
|
yield(prompt) if block_given?
|
|
1334
1342
|
append(prompt)
|
|
@@ -1364,6 +1372,15 @@ module Twilio
|
|
|
1364
1372
|
|
|
1365
1373
|
yield(self) if block_given?
|
|
1366
1374
|
end
|
|
1375
|
+
|
|
1376
|
+
##
|
|
1377
|
+
# Create a new <Parameter> element
|
|
1378
|
+
# name:: The name of the custom parameter
|
|
1379
|
+
# value:: The value of the custom parameter
|
|
1380
|
+
# keyword_args:: additional attributes
|
|
1381
|
+
def parameter(name: nil, value: nil, **keyword_args)
|
|
1382
|
+
append(Parameter.new(name: name, value: value, **keyword_args))
|
|
1383
|
+
end
|
|
1367
1384
|
end
|
|
1368
1385
|
|
|
1369
1386
|
##
|
|
@@ -1419,6 +1436,15 @@ module Twilio
|
|
|
1419
1436
|
|
|
1420
1437
|
yield(self) if block_given?
|
|
1421
1438
|
end
|
|
1439
|
+
|
|
1440
|
+
##
|
|
1441
|
+
# Create a new <Parameter> element
|
|
1442
|
+
# name:: The name of the custom parameter
|
|
1443
|
+
# value:: The value of the custom parameter
|
|
1444
|
+
# keyword_args:: additional attributes
|
|
1445
|
+
def parameter(name: nil, value: nil, **keyword_args)
|
|
1446
|
+
append(Parameter.new(name: name, value: value, **keyword_args))
|
|
1447
|
+
end
|
|
1422
1448
|
end
|
|
1423
1449
|
|
|
1424
1450
|
##
|
|
@@ -1571,9 +1597,16 @@ module Twilio
|
|
|
1571
1597
|
# status_callback:: Status callback URL
|
|
1572
1598
|
# status_callback_method:: Status callback URL method
|
|
1573
1599
|
# byoc:: BYOC trunk SID (Beta)
|
|
1600
|
+
# machine_detection:: Enable machine detection or end of greeting detection
|
|
1601
|
+
# amd_status_callback_method:: HTTP Method to use with amd_status_callback
|
|
1602
|
+
# amd_status_callback:: The URL we should call to send amd status information to your application
|
|
1603
|
+
# machine_detection_timeout:: Number of seconds to wait for machine detection
|
|
1604
|
+
# machine_detection_speech_threshold:: Number of milliseconds for measuring stick for the length of the speech activity
|
|
1605
|
+
# machine_detection_speech_end_threshold:: Number of milliseconds of silence after speech activity
|
|
1606
|
+
# machine_detection_silence_timeout:: Number of milliseconds of initial silence
|
|
1574
1607
|
# keyword_args:: additional attributes
|
|
1575
|
-
def number(phone_number, send_digits: nil, url: nil, method: nil, status_callback_event: nil, status_callback: nil, status_callback_method: nil, byoc: nil, **keyword_args)
|
|
1576
|
-
append(Number.new(phone_number, send_digits: send_digits, url: url, method: method, status_callback_event: status_callback_event, status_callback: status_callback, status_callback_method: status_callback_method, byoc: byoc, **keyword_args))
|
|
1608
|
+
def number(phone_number, send_digits: nil, url: nil, method: nil, status_callback_event: nil, status_callback: nil, status_callback_method: nil, byoc: nil, machine_detection: nil, amd_status_callback_method: nil, amd_status_callback: nil, machine_detection_timeout: nil, machine_detection_speech_threshold: nil, machine_detection_speech_end_threshold: nil, machine_detection_silence_timeout: nil, **keyword_args)
|
|
1609
|
+
append(Number.new(phone_number, send_digits: send_digits, url: url, method: method, status_callback_event: status_callback_event, status_callback: status_callback, status_callback_method: status_callback_method, byoc: byoc, machine_detection: machine_detection, amd_status_callback_method: amd_status_callback_method, amd_status_callback: amd_status_callback, machine_detection_timeout: machine_detection_timeout, machine_detection_speech_threshold: machine_detection_speech_threshold, machine_detection_speech_end_threshold: machine_detection_speech_end_threshold, machine_detection_silence_timeout: machine_detection_silence_timeout, **keyword_args))
|
|
1577
1610
|
end
|
|
1578
1611
|
|
|
1579
1612
|
##
|
|
@@ -1606,9 +1639,73 @@ module Twilio
|
|
|
1606
1639
|
# status_callback_event:: Status callback events
|
|
1607
1640
|
# status_callback:: Status callback URL
|
|
1608
1641
|
# status_callback_method:: Status callback URL method
|
|
1642
|
+
# machine_detection:: Enable machine detection or end of greeting detection
|
|
1643
|
+
# amd_status_callback_method:: HTTP Method to use with amd_status_callback
|
|
1644
|
+
# amd_status_callback:: The URL we should call to send amd status information to your application
|
|
1645
|
+
# machine_detection_timeout:: Number of seconds to wait for machine detection
|
|
1646
|
+
# machine_detection_speech_threshold:: Number of milliseconds for measuring stick for the length of the speech activity
|
|
1647
|
+
# machine_detection_speech_end_threshold:: Number of milliseconds of silence after speech activity
|
|
1648
|
+
# machine_detection_silence_timeout:: Number of milliseconds of initial silence
|
|
1649
|
+
# keyword_args:: additional attributes
|
|
1650
|
+
def sip(sip_url, username: nil, password: nil, url: nil, method: nil, status_callback_event: nil, status_callback: nil, status_callback_method: nil, machine_detection: nil, amd_status_callback_method: nil, amd_status_callback: nil, machine_detection_timeout: nil, machine_detection_speech_threshold: nil, machine_detection_speech_end_threshold: nil, machine_detection_silence_timeout: nil, **keyword_args)
|
|
1651
|
+
append(Sip.new(sip_url, username: username, password: password, url: url, method: method, status_callback_event: status_callback_event, status_callback: status_callback, status_callback_method: status_callback_method, machine_detection: machine_detection, amd_status_callback_method: amd_status_callback_method, amd_status_callback: amd_status_callback, machine_detection_timeout: machine_detection_timeout, machine_detection_speech_threshold: machine_detection_speech_threshold, machine_detection_speech_end_threshold: machine_detection_speech_end_threshold, machine_detection_silence_timeout: machine_detection_silence_timeout, **keyword_args))
|
|
1652
|
+
end
|
|
1653
|
+
|
|
1654
|
+
##
|
|
1655
|
+
# Create a new <Application> element
|
|
1656
|
+
# application_sid:: Application sid
|
|
1657
|
+
# url:: TwiML URL
|
|
1658
|
+
# method:: TwiML URL Method
|
|
1659
|
+
# status_callback_event:: Events to trigger status callback
|
|
1660
|
+
# status_callback:: Status Callback URL
|
|
1661
|
+
# status_callback_method:: Status Callback URL Method
|
|
1662
|
+
# customer_id:: Identity of the customer calling application
|
|
1663
|
+
# copy_parent_to:: Copy parent call To field to called application side, otherwise use the application sid as To field
|
|
1609
1664
|
# keyword_args:: additional attributes
|
|
1610
|
-
def
|
|
1611
|
-
|
|
1665
|
+
def application(application_sid: nil, url: nil, method: nil, status_callback_event: nil, status_callback: nil, status_callback_method: nil, customer_id: nil, copy_parent_to: nil, **keyword_args)
|
|
1666
|
+
application = Application.new(application_sid: application_sid, url: url, method: method, status_callback_event: status_callback_event, status_callback: status_callback, status_callback_method: status_callback_method, customer_id: customer_id, copy_parent_to: copy_parent_to, **keyword_args)
|
|
1667
|
+
|
|
1668
|
+
yield(application) if block_given?
|
|
1669
|
+
append(application)
|
|
1670
|
+
end
|
|
1671
|
+
end
|
|
1672
|
+
|
|
1673
|
+
##
|
|
1674
|
+
# <Application> TwiML Noun
|
|
1675
|
+
class Application < TwiML
|
|
1676
|
+
def initialize(application_sid: nil, **keyword_args)
|
|
1677
|
+
super(**keyword_args)
|
|
1678
|
+
@name = 'Application'
|
|
1679
|
+
@value = application_sid unless application_sid.nil?
|
|
1680
|
+
yield(self) if block_given?
|
|
1681
|
+
end
|
|
1682
|
+
|
|
1683
|
+
##
|
|
1684
|
+
# Create a new <ApplicationSid> element
|
|
1685
|
+
# sid:: Application sid to dial
|
|
1686
|
+
# keyword_args:: additional attributes
|
|
1687
|
+
def application_sid(sid, **keyword_args)
|
|
1688
|
+
append(ApplicationSid.new(sid, **keyword_args))
|
|
1689
|
+
end
|
|
1690
|
+
|
|
1691
|
+
##
|
|
1692
|
+
# Create a new <Parameter> element
|
|
1693
|
+
# name:: The name of the custom parameter
|
|
1694
|
+
# value:: The value of the custom parameter
|
|
1695
|
+
# keyword_args:: additional attributes
|
|
1696
|
+
def parameter(name: nil, value: nil, **keyword_args)
|
|
1697
|
+
append(Parameter.new(name: name, value: value, **keyword_args))
|
|
1698
|
+
end
|
|
1699
|
+
end
|
|
1700
|
+
|
|
1701
|
+
##
|
|
1702
|
+
# <ApplicationSid> TwiML Noun
|
|
1703
|
+
class ApplicationSid < TwiML
|
|
1704
|
+
def initialize(sid, **keyword_args)
|
|
1705
|
+
super(**keyword_args)
|
|
1706
|
+
@name = 'ApplicationSid'
|
|
1707
|
+
@value = sid
|
|
1708
|
+
yield(self) if block_given?
|
|
1612
1709
|
end
|
|
1613
1710
|
end
|
|
1614
1711
|
|
|
@@ -1759,6 +1856,8 @@ module Twilio
|
|
|
1759
1856
|
# inbound_autocreation:: Inbound autocreation
|
|
1760
1857
|
# routing_assignment_timeout:: Routing assignment timeout
|
|
1761
1858
|
# inbound_timeout:: Inbound timeout
|
|
1859
|
+
# url:: TwiML URL
|
|
1860
|
+
# method:: TwiML URL method
|
|
1762
1861
|
# record:: Record
|
|
1763
1862
|
# trim:: Trim
|
|
1764
1863
|
# recording_status_callback:: Recording status callback URL
|
|
@@ -1768,8 +1867,8 @@ module Twilio
|
|
|
1768
1867
|
# status_callback_method:: Status callback URL method
|
|
1769
1868
|
# status_callback_event:: Events to call status callback URL
|
|
1770
1869
|
# keyword_args:: additional attributes
|
|
1771
|
-
def conversation(service_instance_sid: nil, inbound_autocreation: nil, routing_assignment_timeout: nil, inbound_timeout: nil, record: nil, trim: nil, recording_status_callback: nil, recording_status_callback_method: nil, recording_status_callback_event: nil, status_callback: nil, status_callback_method: nil, status_callback_event: nil, **keyword_args)
|
|
1772
|
-
append(Conversation.new(service_instance_sid: service_instance_sid, inbound_autocreation: inbound_autocreation, routing_assignment_timeout: routing_assignment_timeout, inbound_timeout: inbound_timeout, record: record, trim: trim, recording_status_callback: recording_status_callback, recording_status_callback_method: recording_status_callback_method, recording_status_callback_event: recording_status_callback_event, status_callback: status_callback, status_callback_method: status_callback_method, status_callback_event: status_callback_event, **keyword_args))
|
|
1870
|
+
def conversation(service_instance_sid: nil, inbound_autocreation: nil, routing_assignment_timeout: nil, inbound_timeout: nil, url: nil, method: nil, record: nil, trim: nil, recording_status_callback: nil, recording_status_callback_method: nil, recording_status_callback_event: nil, status_callback: nil, status_callback_method: nil, status_callback_event: nil, **keyword_args)
|
|
1871
|
+
append(Conversation.new(service_instance_sid: service_instance_sid, inbound_autocreation: inbound_autocreation, routing_assignment_timeout: routing_assignment_timeout, inbound_timeout: inbound_timeout, url: url, method: method, record: record, trim: trim, recording_status_callback: recording_status_callback, recording_status_callback_method: recording_status_callback_method, recording_status_callback_event: recording_status_callback_event, status_callback: status_callback, status_callback_method: status_callback_method, status_callback_event: status_callback_event, **keyword_args))
|
|
1773
1872
|
end
|
|
1774
1873
|
end
|
|
1775
1874
|
|
data/lib/twilio-ruby/version.rb
CHANGED
data/twilio-ruby.gemspec
CHANGED
|
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
|
|
|
24
24
|
spec.extra_rdoc_files = ['README.md', 'LICENSE']
|
|
25
25
|
spec.rdoc_options = ['--line-numbers', '--inline-source', '--title', 'twilio-ruby', '--main', 'README.md']
|
|
26
26
|
|
|
27
|
-
spec.add_dependency('jwt', '>= 1.5', '
|
|
27
|
+
spec.add_dependency('jwt', '>= 1.5', '< 3.0')
|
|
28
28
|
spec.add_dependency('nokogiri', '>= 1.6', '< 2.0')
|
|
29
29
|
spec.add_dependency('faraday', '>= 0.9', '< 3.0')
|
|
30
30
|
# Workaround for RBX <= 2.2.1, should be fixed in next version
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: twilio-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.
|
|
4
|
+
version: 5.77.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Twilio API Team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-04-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jwt
|
|
@@ -17,9 +17,9 @@ dependencies:
|
|
|
17
17
|
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
19
|
version: '1.5'
|
|
20
|
-
- - "
|
|
20
|
+
- - "<"
|
|
21
21
|
- !ruby/object:Gem::Version
|
|
22
|
-
version: '
|
|
22
|
+
version: '3.0'
|
|
23
23
|
type: :runtime
|
|
24
24
|
prerelease: false
|
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -27,9 +27,9 @@ dependencies:
|
|
|
27
27
|
- - ">="
|
|
28
28
|
- !ruby/object:Gem::Version
|
|
29
29
|
version: '1.5'
|
|
30
|
-
- - "
|
|
30
|
+
- - "<"
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: '
|
|
32
|
+
version: '3.0'
|
|
33
33
|
- !ruby/object:Gem::Dependency
|
|
34
34
|
name: nokogiri
|
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -217,6 +217,7 @@ files:
|
|
|
217
217
|
- Rakefile
|
|
218
218
|
- UPGRADE.md
|
|
219
219
|
- VERSIONS.md
|
|
220
|
+
- advanced-examples/custom-http-client.md
|
|
220
221
|
- conf/cacert.pem
|
|
221
222
|
- examples/examples.rb
|
|
222
223
|
- examples/print_call_log.rb
|
|
@@ -274,6 +275,8 @@ files:
|
|
|
274
275
|
- lib/twilio-ruby/rest/api/v2010/account/call/recording.rb
|
|
275
276
|
- lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb
|
|
276
277
|
- lib/twilio-ruby/rest/api/v2010/account/call/stream.rb
|
|
278
|
+
- lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb
|
|
279
|
+
- lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb
|
|
277
280
|
- lib/twilio-ruby/rest/api/v2010/account/conference.rb
|
|
278
281
|
- lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb
|
|
279
282
|
- lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb
|
|
@@ -379,6 +382,12 @@ files:
|
|
|
379
382
|
- lib/twilio-ruby/rest/chat/v3.rb
|
|
380
383
|
- lib/twilio-ruby/rest/chat/v3/channel.rb
|
|
381
384
|
- lib/twilio-ruby/rest/client.rb
|
|
385
|
+
- lib/twilio-ruby/rest/content.rb
|
|
386
|
+
- lib/twilio-ruby/rest/content/v1.rb
|
|
387
|
+
- lib/twilio-ruby/rest/content/v1/content.rb
|
|
388
|
+
- lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb
|
|
389
|
+
- lib/twilio-ruby/rest/content/v1/content_and_approvals.rb
|
|
390
|
+
- lib/twilio-ruby/rest/content/v1/legacy_content.rb
|
|
382
391
|
- lib/twilio-ruby/rest/conversations.rb
|
|
383
392
|
- lib/twilio-ruby/rest/conversations/v1.rb
|
|
384
393
|
- lib/twilio-ruby/rest/conversations/v1/address_configuration.rb
|
|
@@ -420,14 +429,27 @@ files:
|
|
|
420
429
|
- lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb
|
|
421
430
|
- lib/twilio-ruby/rest/flex_api.rb
|
|
422
431
|
- lib/twilio-ruby/rest/flex_api/v1.rb
|
|
432
|
+
- lib/twilio-ruby/rest/flex_api/v1/assessments.rb
|
|
423
433
|
- lib/twilio-ruby/rest/flex_api/v1/channel.rb
|
|
424
434
|
- lib/twilio-ruby/rest/flex_api/v1/configuration.rb
|
|
425
435
|
- lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb
|
|
436
|
+
- lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb
|
|
437
|
+
- lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb
|
|
438
|
+
- lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb
|
|
439
|
+
- lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb
|
|
440
|
+
- lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb
|
|
441
|
+
- lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb
|
|
442
|
+
- lib/twilio-ruby/rest/flex_api/v1/insights_session.rb
|
|
443
|
+
- lib/twilio-ruby/rest/flex_api/v1/insights_settings_answersets.rb
|
|
444
|
+
- lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb
|
|
445
|
+
- lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb
|
|
426
446
|
- lib/twilio-ruby/rest/flex_api/v1/interaction.rb
|
|
427
447
|
- lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb
|
|
428
448
|
- lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb
|
|
429
449
|
- lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb
|
|
430
450
|
- lib/twilio-ruby/rest/flex_api/v1/web_channel.rb
|
|
451
|
+
- lib/twilio-ruby/rest/flex_api/v2.rb
|
|
452
|
+
- lib/twilio-ruby/rest/flex_api/v2/web_channels.rb
|
|
431
453
|
- lib/twilio-ruby/rest/frontline_api.rb
|
|
432
454
|
- lib/twilio-ruby/rest/frontline_api/v1.rb
|
|
433
455
|
- lib/twilio-ruby/rest/frontline_api/v1/user.rb
|
|
@@ -482,9 +504,14 @@ files:
|
|
|
482
504
|
- lib/twilio-ruby/rest/messaging.rb
|
|
483
505
|
- lib/twilio-ruby/rest/messaging/v1.rb
|
|
484
506
|
- lib/twilio-ruby/rest/messaging/v1/brand_registration.rb
|
|
507
|
+
- lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_registration_otp.rb
|
|
485
508
|
- lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb
|
|
486
509
|
- lib/twilio-ruby/rest/messaging/v1/deactivation.rb
|
|
510
|
+
- lib/twilio-ruby/rest/messaging/v1/domain_cert.rb
|
|
511
|
+
- lib/twilio-ruby/rest/messaging/v1/domain_config.rb
|
|
512
|
+
- lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb
|
|
487
513
|
- lib/twilio-ruby/rest/messaging/v1/external_campaign.rb
|
|
514
|
+
- lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb
|
|
488
515
|
- lib/twilio-ruby/rest/messaging/v1/service.rb
|
|
489
516
|
- lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb
|
|
490
517
|
- lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb
|
|
@@ -495,8 +522,13 @@ files:
|
|
|
495
522
|
- lib/twilio-ruby/rest/messaging/v1/usecase.rb
|
|
496
523
|
- lib/twilio-ruby/rest/microvisor.rb
|
|
497
524
|
- lib/twilio-ruby/rest/microvisor/v1.rb
|
|
525
|
+
- lib/twilio-ruby/rest/microvisor/v1/account_config.rb
|
|
526
|
+
- lib/twilio-ruby/rest/microvisor/v1/account_secret.rb
|
|
498
527
|
- lib/twilio-ruby/rest/microvisor/v1/app.rb
|
|
528
|
+
- lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb
|
|
499
529
|
- lib/twilio-ruby/rest/microvisor/v1/device.rb
|
|
530
|
+
- lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb
|
|
531
|
+
- lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb
|
|
500
532
|
- lib/twilio-ruby/rest/monitor.rb
|
|
501
533
|
- lib/twilio-ruby/rest/monitor/v1.rb
|
|
502
534
|
- lib/twilio-ruby/rest/monitor/v1/alert.rb
|
|
@@ -508,6 +540,8 @@ files:
|
|
|
508
540
|
- lib/twilio-ruby/rest/notify/v1/service/binding.rb
|
|
509
541
|
- lib/twilio-ruby/rest/notify/v1/service/notification.rb
|
|
510
542
|
- lib/twilio-ruby/rest/numbers.rb
|
|
543
|
+
- lib/twilio-ruby/rest/numbers/v1.rb
|
|
544
|
+
- lib/twilio-ruby/rest/numbers/v1/eligibility.rb
|
|
511
545
|
- lib/twilio-ruby/rest/numbers/v2.rb
|
|
512
546
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb
|
|
513
547
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb
|
|
@@ -520,6 +554,13 @@ files:
|
|
|
520
554
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/regulation.rb
|
|
521
555
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb
|
|
522
556
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb
|
|
557
|
+
- lib/twilio-ruby/rest/oauth.rb
|
|
558
|
+
- lib/twilio-ruby/rest/oauth/v1.rb
|
|
559
|
+
- lib/twilio-ruby/rest/oauth/v1/device_code.rb
|
|
560
|
+
- lib/twilio-ruby/rest/oauth/v1/oauth.rb
|
|
561
|
+
- lib/twilio-ruby/rest/oauth/v1/openid_discovery.rb
|
|
562
|
+
- lib/twilio-ruby/rest/oauth/v1/token.rb
|
|
563
|
+
- lib/twilio-ruby/rest/oauth/v1/user_info.rb
|
|
523
564
|
- lib/twilio-ruby/rest/preview.rb
|
|
524
565
|
- lib/twilio-ruby/rest/preview/deployed_devices.rb
|
|
525
566
|
- lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb
|
|
@@ -546,12 +587,6 @@ files:
|
|
|
546
587
|
- lib/twilio-ruby/rest/preview/sync/service/sync_map.rb
|
|
547
588
|
- lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb
|
|
548
589
|
- lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb
|
|
549
|
-
- lib/twilio-ruby/rest/preview/trusted_comms.rb
|
|
550
|
-
- lib/twilio-ruby/rest/preview/trusted_comms/branded_channel.rb
|
|
551
|
-
- lib/twilio-ruby/rest/preview/trusted_comms/branded_channel/channel.rb
|
|
552
|
-
- lib/twilio-ruby/rest/preview/trusted_comms/brands_information.rb
|
|
553
|
-
- lib/twilio-ruby/rest/preview/trusted_comms/cps.rb
|
|
554
|
-
- lib/twilio-ruby/rest/preview/trusted_comms/current_call.rb
|
|
555
590
|
- lib/twilio-ruby/rest/preview/understand.rb
|
|
556
591
|
- lib/twilio-ruby/rest/preview/understand/assistant.rb
|
|
557
592
|
- lib/twilio-ruby/rest/preview/understand/assistant/assistant_fallback_actions.rb
|
|
@@ -643,6 +678,7 @@ files:
|
|
|
643
678
|
- lib/twilio-ruby/rest/supersim/v1/network.rb
|
|
644
679
|
- lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb
|
|
645
680
|
- lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb
|
|
681
|
+
- lib/twilio-ruby/rest/supersim/v1/settings_update.rb
|
|
646
682
|
- lib/twilio-ruby/rest/supersim/v1/sim.rb
|
|
647
683
|
- lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb
|
|
648
684
|
- lib/twilio-ruby/rest/supersim/v1/sim/sim_ip_address.rb
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
##
|
|
2
|
-
# This code was generated by
|
|
3
|
-
# \ / _ _ _| _ _
|
|
4
|
-
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
|
5
|
-
# / /
|
|
6
|
-
#
|
|
7
|
-
# frozen_string_literal: true
|
|
8
|
-
|
|
9
|
-
module Twilio
|
|
10
|
-
module REST
|
|
11
|
-
class Preview < Domain
|
|
12
|
-
class TrustedComms < Version
|
|
13
|
-
class BrandedChannelContext < InstanceContext
|
|
14
|
-
##
|
|
15
|
-
# PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
|
16
|
-
class ChannelList < ListResource
|
|
17
|
-
##
|
|
18
|
-
# Initialize the ChannelList
|
|
19
|
-
# @param [Version] version Version that contains the resource
|
|
20
|
-
# @param [String] branded_channel_sid The unique SID identifier of the Branded
|
|
21
|
-
# Channel.
|
|
22
|
-
# @return [ChannelList] ChannelList
|
|
23
|
-
def initialize(version, branded_channel_sid: nil)
|
|
24
|
-
super(version)
|
|
25
|
-
|
|
26
|
-
# Path Solution
|
|
27
|
-
@solution = {branded_channel_sid: branded_channel_sid}
|
|
28
|
-
@uri = "/BrandedChannels/#{@solution[:branded_channel_sid]}/Channels"
|
|
29
|
-
end
|
|
30
|
-
|
|
31
|
-
##
|
|
32
|
-
# Create the ChannelInstance
|
|
33
|
-
# @param [String] phone_number_sid The unique SID identifier of the Phone Number
|
|
34
|
-
# of the Phone number to be assigned to the Branded Channel.
|
|
35
|
-
# @return [ChannelInstance] Created ChannelInstance
|
|
36
|
-
def create(phone_number_sid: nil)
|
|
37
|
-
data = Twilio::Values.of({'PhoneNumberSid' => phone_number_sid, })
|
|
38
|
-
|
|
39
|
-
payload = @version.create('POST', @uri, data: data)
|
|
40
|
-
|
|
41
|
-
ChannelInstance.new(@version, payload, branded_channel_sid: @solution[:branded_channel_sid], )
|
|
42
|
-
end
|
|
43
|
-
|
|
44
|
-
##
|
|
45
|
-
# Provide a user friendly representation
|
|
46
|
-
def to_s
|
|
47
|
-
'#<Twilio.Preview.TrustedComms.ChannelList>'
|
|
48
|
-
end
|
|
49
|
-
end
|
|
50
|
-
|
|
51
|
-
##
|
|
52
|
-
# PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
|
53
|
-
class ChannelPage < Page
|
|
54
|
-
##
|
|
55
|
-
# Initialize the ChannelPage
|
|
56
|
-
# @param [Version] version Version that contains the resource
|
|
57
|
-
# @param [Response] response Response from the API
|
|
58
|
-
# @param [Hash] solution Path solution for the resource
|
|
59
|
-
# @return [ChannelPage] ChannelPage
|
|
60
|
-
def initialize(version, response, solution)
|
|
61
|
-
super(version, response)
|
|
62
|
-
|
|
63
|
-
# Path Solution
|
|
64
|
-
@solution = solution
|
|
65
|
-
end
|
|
66
|
-
|
|
67
|
-
##
|
|
68
|
-
# Build an instance of ChannelInstance
|
|
69
|
-
# @param [Hash] payload Payload response from the API
|
|
70
|
-
# @return [ChannelInstance] ChannelInstance
|
|
71
|
-
def get_instance(payload)
|
|
72
|
-
ChannelInstance.new(@version, payload, branded_channel_sid: @solution[:branded_channel_sid], )
|
|
73
|
-
end
|
|
74
|
-
|
|
75
|
-
##
|
|
76
|
-
# Provide a user friendly representation
|
|
77
|
-
def to_s
|
|
78
|
-
'<Twilio.Preview.TrustedComms.ChannelPage>'
|
|
79
|
-
end
|
|
80
|
-
end
|
|
81
|
-
|
|
82
|
-
##
|
|
83
|
-
# PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
|
84
|
-
class ChannelInstance < InstanceResource
|
|
85
|
-
##
|
|
86
|
-
# Initialize the ChannelInstance
|
|
87
|
-
# @param [Version] version Version that contains the resource
|
|
88
|
-
# @param [Hash] payload payload that contains response from Twilio
|
|
89
|
-
# @param [String] branded_channel_sid The unique SID identifier of the Branded
|
|
90
|
-
# Channel.
|
|
91
|
-
# @return [ChannelInstance] ChannelInstance
|
|
92
|
-
def initialize(version, payload, branded_channel_sid: nil)
|
|
93
|
-
super(version)
|
|
94
|
-
|
|
95
|
-
# Marshaled Properties
|
|
96
|
-
@properties = {
|
|
97
|
-
'account_sid' => payload['account_sid'],
|
|
98
|
-
'business_sid' => payload['business_sid'],
|
|
99
|
-
'brand_sid' => payload['brand_sid'],
|
|
100
|
-
'branded_channel_sid' => payload['branded_channel_sid'],
|
|
101
|
-
'phone_number_sid' => payload['phone_number_sid'],
|
|
102
|
-
'phone_number' => payload['phone_number'],
|
|
103
|
-
'url' => payload['url'],
|
|
104
|
-
}
|
|
105
|
-
end
|
|
106
|
-
|
|
107
|
-
##
|
|
108
|
-
# @return [String] Account Sid.
|
|
109
|
-
def account_sid
|
|
110
|
-
@properties['account_sid']
|
|
111
|
-
end
|
|
112
|
-
|
|
113
|
-
##
|
|
114
|
-
# @return [String] Business Sid.
|
|
115
|
-
def business_sid
|
|
116
|
-
@properties['business_sid']
|
|
117
|
-
end
|
|
118
|
-
|
|
119
|
-
##
|
|
120
|
-
# @return [String] Brand Sid.
|
|
121
|
-
def brand_sid
|
|
122
|
-
@properties['brand_sid']
|
|
123
|
-
end
|
|
124
|
-
|
|
125
|
-
##
|
|
126
|
-
# @return [String] Branded Channel Sid.
|
|
127
|
-
def branded_channel_sid
|
|
128
|
-
@properties['branded_channel_sid']
|
|
129
|
-
end
|
|
130
|
-
|
|
131
|
-
##
|
|
132
|
-
# @return [String] Phone Number Sid to be branded.
|
|
133
|
-
def phone_number_sid
|
|
134
|
-
@properties['phone_number_sid']
|
|
135
|
-
end
|
|
136
|
-
|
|
137
|
-
##
|
|
138
|
-
# @return [String] Twilio number to assign to the Branded Channel
|
|
139
|
-
def phone_number
|
|
140
|
-
@properties['phone_number']
|
|
141
|
-
end
|
|
142
|
-
|
|
143
|
-
##
|
|
144
|
-
# @return [String] The URL of this resource.
|
|
145
|
-
def url
|
|
146
|
-
@properties['url']
|
|
147
|
-
end
|
|
148
|
-
|
|
149
|
-
##
|
|
150
|
-
# Provide a user friendly representation
|
|
151
|
-
def to_s
|
|
152
|
-
"<Twilio.Preview.TrustedComms.ChannelInstance>"
|
|
153
|
-
end
|
|
154
|
-
|
|
155
|
-
##
|
|
156
|
-
# Provide a detailed, user friendly representation
|
|
157
|
-
def inspect
|
|
158
|
-
"<Twilio.Preview.TrustedComms.ChannelInstance>"
|
|
159
|
-
end
|
|
160
|
-
end
|
|
161
|
-
end
|
|
162
|
-
end
|
|
163
|
-
end
|
|
164
|
-
end
|
|
165
|
-
end
|