twilio-ruby 5.67.3 → 5.74.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/pr-lint.yml +8 -2
- data/.github/workflows/test-and-deploy.yml +3 -3
- data/CHANGES.md +288 -0
- data/LICENSE +1 -1
- data/Makefile +6 -2
- data/PULL_REQUEST_TEMPLATE.md +1 -1
- data/README.md +2 -2
- 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 +3 -3
- 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 +5 -5
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +3 -3
- 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 +28 -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/legacy_content.rb +254 -0
- data/lib/twilio-ruby/rest/content/v1.rb +52 -0
- data/lib/twilio-ruby/rest/content.rb +53 -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/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/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/configuration.rb +14 -0
- data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +314 -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/interaction/interaction_channel.rb +22 -1
- data/lib/twilio-ruby/rest/flex_api/v1.rb +115 -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 +83 -0
- data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +322 -0
- data/lib/twilio-ruby/rest/insights/v1/call/summary.rb +14 -0
- data/lib/twilio-ruby/rest/insights/v1/call.rb +16 -8
- data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +7 -0
- 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/insights/v1.rb +0 -16
- data/lib/twilio-ruby/rest/insights.rb +0 -8
- 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 +94 -12
- data/lib/twilio-ruby/rest/media/v1/media_processor.rb +1 -1
- data/lib/twilio-ruby/rest/media/v1/media_recording.rb +2 -9
- data/lib/twilio-ruby/rest/media/v1/player_streamer.rb +5 -5
- data/lib/twilio-ruby/rest/messaging/v1/domain_cert.rb +257 -0
- data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +267 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +2 -2
- 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 +709 -0
- data/lib/twilio-ruby/rest/messaging/v1.rb +50 -0
- data/lib/twilio-ruby/rest/messaging.rb +26 -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 +330 -0
- data/lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb +342 -0
- data/lib/twilio-ruby/rest/{preview/bulk_exports/export/day.rb → microvisor/v1/device/device_secret.rb} +125 -84
- data/lib/twilio-ruby/rest/microvisor/v1/device.rb +393 -0
- data/lib/twilio-ruby/rest/microvisor/v1.rb +92 -0
- data/lib/twilio-ruby/rest/microvisor.rb +70 -0
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +1 -1
- 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 -58
- 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/routes/v2/phone_number.rb +235 -0
- data/lib/twilio-ruby/rest/routes/v2/sip_domain.rb +231 -0
- data/lib/twilio-ruby/rest/routes/v2/trunk.rb +235 -0
- data/lib/twilio-ruby/rest/routes/v2.rb +76 -0
- data/lib/twilio-ruby/rest/routes.rb +62 -0
- 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 +17 -7
- 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/sim/sim_ip_address.rb +195 -0
- data/lib/twilio-ruby/rest/supersim/v1/sim.rb +20 -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/safelist.rb +215 -0
- 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 +14 -10
- data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +8 -1
- data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +0 -8
- data/lib/twilio-ruby/rest/verify/v2/service.rb +1 -1
- data/lib/twilio-ruby/rest/verify/v2/template.rb +7 -0
- data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +4 -4
- data/lib/twilio-ruby/rest/verify/v2.rb +18 -0
- data/lib/twilio-ruby/rest/verify.rb +8 -0
- 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/room_participant/room_participant_anonymize.rb +240 -0
- data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +16 -0
- 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/security/request_validator.rb +1 -1
- data/lib/twilio-ruby/twiml/voice_response.rb +135 -35
- data/lib/twilio-ruby/version.rb +1 -1
- data/twilio-ruby.gemspec +1 -1
- metadata +52 -17
- data/lib/twilio-ruby/rest/insights/v1/annotation.rb +0 -271
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/export_custom_job.rb +0 -275
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/job.rb +0 -249
- data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +0 -251
- data/lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb +0 -234
- data/lib/twilio-ruby/rest/preview/bulk_exports.rb +0 -62
- 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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7018019e5270ca1565d431219da291876017fc73
|
4
|
+
data.tar.gz: c821fa40d85a91e7ca3947bda93dd7e1ab0d8528
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f80521099336899dcbec4975deff99dc40d24e8b2f4eccab23554a234e73b1bc046a693a0c030d2a9e496f539f0817f446d32afb7dfe9f1389dc266213e76af5
|
7
|
+
data.tar.gz: f9f78b1cb2eb9c737f82c86adf2e492e7012740ccba69a653ab0236c2a8a9832d916b6699358da0703f41caeaf4213405ab8629ab39aace9b26ab55a6f7a644b
|
@@ -8,8 +8,14 @@ jobs:
|
|
8
8
|
name: Validate title
|
9
9
|
runs-on: ubuntu-latest
|
10
10
|
steps:
|
11
|
-
- uses: amannn/action-semantic-pull-request@
|
11
|
+
- uses: amannn/action-semantic-pull-request@v5
|
12
12
|
with:
|
13
|
-
types:
|
13
|
+
types: |
|
14
|
+
chore
|
15
|
+
docs
|
16
|
+
fix
|
17
|
+
feat
|
18
|
+
misc
|
19
|
+
test
|
14
20
|
env:
|
15
21
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
@@ -20,7 +20,7 @@ jobs:
|
|
20
20
|
ruby: [ '2.4', '2.5', '2.6', '2.7', '3.0', '3.1', 'ruby-head', 'jruby-9.2' ]
|
21
21
|
steps:
|
22
22
|
- name: Checkout twilio-ruby
|
23
|
-
uses: actions/checkout@
|
23
|
+
uses: actions/checkout@v3
|
24
24
|
with:
|
25
25
|
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
|
26
26
|
|
@@ -65,7 +65,7 @@ jobs:
|
|
65
65
|
runs-on: ubuntu-latest
|
66
66
|
steps:
|
67
67
|
- name: Checkout twilio-ruby
|
68
|
-
uses: actions/checkout@
|
68
|
+
uses: actions/checkout@v3
|
69
69
|
with:
|
70
70
|
fetch-depth: 0
|
71
71
|
|
@@ -78,7 +78,7 @@ jobs:
|
|
78
78
|
- run: bundle install
|
79
79
|
|
80
80
|
- name: Login to Docker Hub
|
81
|
-
uses: docker/login-action@
|
81
|
+
uses: docker/login-action@v2
|
82
82
|
with:
|
83
83
|
username: ${{ secrets.DOCKER_USERNAME }}
|
84
84
|
password: ${{ secrets.DOCKER_AUTH_TOKEN }}
|
data/CHANGES.md
CHANGED
@@ -1,6 +1,294 @@
|
|
1
1
|
twilio-ruby changelog
|
2
2
|
=====================
|
3
3
|
|
4
|
+
[2023-03-09] Version 5.74.5
|
5
|
+
---------------------------
|
6
|
+
**Api**
|
7
|
+
- Add new categories for whatsapp template
|
8
|
+
|
9
|
+
**Lookups**
|
10
|
+
- Remove `validation_results` from the `default_output_properties`
|
11
|
+
|
12
|
+
**Supersim**
|
13
|
+
- Add ESimProfile's `matching_id` and `activation_code` parameters to libraries
|
14
|
+
|
15
|
+
|
16
|
+
[2023-02-22] Version 5.74.4
|
17
|
+
---------------------------
|
18
|
+
**Api**
|
19
|
+
- Remove `scheduled_for` property from message resource
|
20
|
+
- Add `scheduled_for` property to message resource
|
21
|
+
|
22
|
+
|
23
|
+
[2023-02-08] Version 5.74.3
|
24
|
+
---------------------------
|
25
|
+
**Lookups**
|
26
|
+
- Add `disposable_phone_number_risk` package to the lookup response
|
27
|
+
- Add `sms_pumping_risk` package to the lookup response
|
28
|
+
|
29
|
+
|
30
|
+
[2023-01-25] Version 5.74.2
|
31
|
+
---------------------------
|
32
|
+
**Api**
|
33
|
+
- Add `public_application_connect_enabled` param to Application resource
|
34
|
+
|
35
|
+
**Messaging**
|
36
|
+
- Add new tollfree verification API property (ExternalReferenceId)]
|
37
|
+
|
38
|
+
**Verify**
|
39
|
+
- Add `device_ip` parameter and channel `auto` for sna/sms orchestration
|
40
|
+
|
41
|
+
**Twiml**
|
42
|
+
- Add support for `<Application>` noun and `<ApplicationSid>` noun, nested `<Parameter>` to `<Hangup>` and `<Leave>` verb
|
43
|
+
|
44
|
+
|
45
|
+
[2023-01-11] Version 5.74.1
|
46
|
+
---------------------------
|
47
|
+
**Library - Chore**
|
48
|
+
- [PR #626](https://github.com/twilio/twilio-ruby/pull/626): Bump jwt version max version to 2.6. Thanks to [@MarcPer](https://github.com/MarcPer)!
|
49
|
+
|
50
|
+
**Conversations**
|
51
|
+
- Add support for creating Multi-Channel Rich Content Messages
|
52
|
+
|
53
|
+
**Lookups**
|
54
|
+
- Changed the no data message for match postal code from `no_data` to `data_not_available` in identity match package
|
55
|
+
|
56
|
+
**Messaging**
|
57
|
+
- Add update/edit tollfree verification API
|
58
|
+
|
59
|
+
|
60
|
+
[2022-12-14] Version 5.74.0
|
61
|
+
---------------------------
|
62
|
+
**Api**
|
63
|
+
- Add `street_secondary` param to address create and update
|
64
|
+
- Make `method` optional for user defined message subscription **(breaking change)**
|
65
|
+
|
66
|
+
**Flex**
|
67
|
+
- Flex Conversations is now Generally Available
|
68
|
+
- Adding the ie1 mapping for authorization api, updating service base uri and base url response attribute **(breaking change)**
|
69
|
+
- Change web channels to GA and library visibility to public
|
70
|
+
- Changing the uri for authorization api from using Accounts to Insights **(breaking change)**
|
71
|
+
|
72
|
+
**Media**
|
73
|
+
- Gate Twilio Live endpoints behind beta_feature for EOS
|
74
|
+
|
75
|
+
**Messaging**
|
76
|
+
- Mark `MessageFlow` as a required field for Campaign Creation **(breaking change)**
|
77
|
+
|
78
|
+
**Oauth**
|
79
|
+
- updated openid discovery endpoint uri **(breaking change)**
|
80
|
+
- Added device code authorization endpoint
|
81
|
+
|
82
|
+
**Supersim**
|
83
|
+
- Allow filtering the SettingsUpdates resource by `status`
|
84
|
+
|
85
|
+
**Twiml**
|
86
|
+
- Add new Polly Neural voices
|
87
|
+
- Add tr-TR, ar-AE, yue-CN, fi-FI languages to SSML `<lang>` element.
|
88
|
+
- Add x-amazon-jyutping, x-amazon-pinyin, x-amazon-pron-kana, x-amazon-yomigana alphabets to SSML `<phoneme>` element.
|
89
|
+
- Rename `character` value for SSML `<say-as>` `interpret-as` attribute to `characters`. **(breaking change)**
|
90
|
+
- Rename `role` attribute to `format` in SSML `<say-as>` element. **(breaking change)**
|
91
|
+
|
92
|
+
|
93
|
+
[2022-11-30] Version 5.73.4
|
94
|
+
---------------------------
|
95
|
+
**Flex**
|
96
|
+
- Adding new `assessments` api in version `v1`
|
97
|
+
|
98
|
+
**Lookups**
|
99
|
+
- Add `identity_match` package to the lookup response
|
100
|
+
|
101
|
+
**Messaging**
|
102
|
+
- Added `validated` parameter to Link Shortening API
|
103
|
+
|
104
|
+
**Serverless**
|
105
|
+
- Add node16 as a valid Build runtime
|
106
|
+
- Add ie1 and au1 as supported regions for all endpoints.
|
107
|
+
|
108
|
+
|
109
|
+
[2022-11-16] Version 5.73.3
|
110
|
+
---------------------------
|
111
|
+
**Library - Chore**
|
112
|
+
- [PR #621](https://github.com/twilio/twilio-ruby/pull/621): upgrade GitHub Actions dependencies. Thanks to [@childish-sambino](https://github.com/childish-sambino)!
|
113
|
+
|
114
|
+
**Api**
|
115
|
+
- Set the Content resource to have public visibility as Preview
|
116
|
+
|
117
|
+
**Flex**
|
118
|
+
- Adding new parameter `base_url` to 'gooddata' response in version `v1`
|
119
|
+
|
120
|
+
**Insights**
|
121
|
+
- Added `answered_by` field in List Call Summary
|
122
|
+
- Added `answered_by` field in call summary
|
123
|
+
|
124
|
+
|
125
|
+
[2022-11-10] Version 5.73.2
|
126
|
+
---------------------------
|
127
|
+
**Flex**
|
128
|
+
- Adding two new authorization API 'user_roles' and 'gooddata' in version `v1`
|
129
|
+
|
130
|
+
**Messaging**
|
131
|
+
- Add new Campaign properties (MessageFlow, OptInMessage, OptInKeywords, OptOutMessage, OptOutKeywords, HelpMessage, HelpKeywords)
|
132
|
+
|
133
|
+
**Twiml**
|
134
|
+
- Add new speech models to `Gather`.
|
135
|
+
|
136
|
+
|
137
|
+
[2022-10-31] Version 5.73.1
|
138
|
+
---------------------------
|
139
|
+
**Api**
|
140
|
+
- Added `contentSid` and `contentVariables` to Message resource with public visibility as Beta
|
141
|
+
- Add `UserDefinedMessageSubscription` and `UserDefinedMessage` resource
|
142
|
+
|
143
|
+
**Proxy**
|
144
|
+
- Remove FailOnParticipantConflict param from Proxy Session create and update and Proxy Participant create
|
145
|
+
|
146
|
+
**Supersim**
|
147
|
+
- Update SettingsUpdates resource to remove PackageSid
|
148
|
+
|
149
|
+
**Taskrouter**
|
150
|
+
- Add `Ordering` query parameter to Workers and TaskQueues for sorting by
|
151
|
+
- Add `worker_sid` query param for list reservations endpoint
|
152
|
+
|
153
|
+
**Twiml**
|
154
|
+
- Add `url` and `method` attributes to `<Conversation>`
|
155
|
+
|
156
|
+
|
157
|
+
[2022-10-19] Version 5.73.0
|
158
|
+
---------------------------
|
159
|
+
**Library - Feature**
|
160
|
+
- [PR #619](https://github.com/twilio/twilio-ruby/pull/619): check numeric properties for nil before converting. Thanks to [@childish-sambino](https://github.com/childish-sambino)!
|
161
|
+
|
162
|
+
**Api**
|
163
|
+
- Make link shortening parameters public **(breaking change)**
|
164
|
+
|
165
|
+
**Oauth**
|
166
|
+
- added oauth JWKS endpoint
|
167
|
+
- Get userinfo resource
|
168
|
+
- OpenID discovery resource
|
169
|
+
- Add new API for token endpoint
|
170
|
+
|
171
|
+
**Supersim**
|
172
|
+
- Add SettingsUpdates resource
|
173
|
+
|
174
|
+
**Verify**
|
175
|
+
- Update Verify Push endpoints to `ga` maturity
|
176
|
+
- Verify BYOT add Channels property to the Get Templates response
|
177
|
+
|
178
|
+
**Twiml**
|
179
|
+
- Add `requireMatchingInputs` attribute and `input-matching-failed` errorType to `<Prompt>`
|
180
|
+
|
181
|
+
|
182
|
+
[2022-10-05] Version 5.72.1
|
183
|
+
---------------------------
|
184
|
+
**Api**
|
185
|
+
- Added `virtual-agent` to `usage_record` API.
|
186
|
+
- Add AMD attributes to participant create request
|
187
|
+
|
188
|
+
**Twiml**
|
189
|
+
- Add AMD attributes to `Number` and `Sip`
|
190
|
+
|
191
|
+
|
192
|
+
[2022-09-07] Version 5.72.0
|
193
|
+
---------------------------
|
194
|
+
**Flex**
|
195
|
+
- Removed redundant `close` status from Flex Interactions flow **(breaking change)**
|
196
|
+
- Adding `debugger_integration` and `flex_ui_status_report` to Flex Configuration
|
197
|
+
|
198
|
+
**Messaging**
|
199
|
+
- Add create, list and get tollfree verification API
|
200
|
+
|
201
|
+
**Verify**
|
202
|
+
- Verify SafeList API endpoints added.
|
203
|
+
|
204
|
+
**Video**
|
205
|
+
- Add `Anonymize` API
|
206
|
+
|
207
|
+
**Twiml**
|
208
|
+
- Update `event` value `call-in-progress` to `call-answered`
|
209
|
+
|
210
|
+
|
211
|
+
[2022-08-24] Version 5.71.0
|
212
|
+
---------------------------
|
213
|
+
**Library - Test**
|
214
|
+
- [PR #615](https://github.com/twilio/twilio-ruby/pull/615): add test-docker rule. Thanks to [@beebzz](https://github.com/beebzz)!
|
215
|
+
|
216
|
+
**Api**
|
217
|
+
- Remove `beta feature` from scheduling params and remove optimize parameters. **(breaking change)**
|
218
|
+
|
219
|
+
**Routes**
|
220
|
+
- Remove Duplicate Create Method - Update Method will work even if Inbound Processing Region is currently empty/404. **(breaking change)**
|
221
|
+
|
222
|
+
**Twiml**
|
223
|
+
- Add new Polly Neural voices
|
224
|
+
- Add new languages to SSML `<lang>`.
|
225
|
+
|
226
|
+
|
227
|
+
[2022-08-10] Version 5.70.1
|
228
|
+
---------------------------
|
229
|
+
**Library - Fix**
|
230
|
+
- [PR #614](https://github.com/twilio/twilio-ruby/pull/614): Make RequestValidator#validate fail if URL has no query params. Thanks to [@haffla](https://github.com/haffla)!
|
231
|
+
|
232
|
+
**Routes**
|
233
|
+
- Inbound Proccessing Region API - Public GA
|
234
|
+
|
235
|
+
**Supersim**
|
236
|
+
- Allow updating `DataLimit` on a Fleet
|
237
|
+
|
238
|
+
|
239
|
+
[2022-07-21] Version 5.70.0
|
240
|
+
---------------------------
|
241
|
+
**Flex**
|
242
|
+
- Add `status`, `error_code`, and `error_message` fields to Interaction `Channel`
|
243
|
+
- Adding `messenger` and `gbm` as supported channels for Interactions API
|
244
|
+
|
245
|
+
**Messaging**
|
246
|
+
- Update alpha_sender docs with new valid characters
|
247
|
+
|
248
|
+
**Verify**
|
249
|
+
- Reorder Verification Check parameters so `code` stays as the first parameter **(breaking change)**
|
250
|
+
- Rollback List Attempts API V2 back to pilot stage.
|
251
|
+
|
252
|
+
|
253
|
+
[2022-07-13] Version 5.69.0
|
254
|
+
---------------------------
|
255
|
+
**Library - Fix**
|
256
|
+
- [PR #612](https://github.com/twilio/twilio-ruby/pull/612): useragent regrex unit test for RC branch. Thanks to [@claudiachua](https://github.com/claudiachua)!
|
257
|
+
|
258
|
+
**Library - Test**
|
259
|
+
- [PR #610](https://github.com/twilio/twilio-ruby/pull/610): Adding misc as PR type. Thanks to [@rakatyal](https://github.com/rakatyal)!
|
260
|
+
|
261
|
+
**Conversations**
|
262
|
+
- Allowed to use `identity` as part of Participant's resource **(breaking change)**
|
263
|
+
|
264
|
+
**Lookups**
|
265
|
+
- Remove `enhanced_line_type` from the lookup response **(breaking change)**
|
266
|
+
|
267
|
+
**Supersim**
|
268
|
+
- Add support for `sim_ip_addresses` resource to helper libraries
|
269
|
+
|
270
|
+
**Verify**
|
271
|
+
- Changed summary param `service_sid` to `verify_service_sid` to be consistent with list attempts API **(breaking change)**
|
272
|
+
- Make `code` optional on Verification check to support `sna` attempts. **(breaking change)**
|
273
|
+
|
274
|
+
|
275
|
+
[2022-06-29] Version 5.68.0
|
276
|
+
---------------------------
|
277
|
+
**Api**
|
278
|
+
- Added `amazon-polly` to `usage_record` API.
|
279
|
+
|
280
|
+
**Insights**
|
281
|
+
- Added `annotation` field in call summary
|
282
|
+
- Added new endpoint to fetch/create/update Call Annotations
|
283
|
+
|
284
|
+
**Verify**
|
285
|
+
- Remove `api.verify.totp` beta flag and set maturity to `beta` for Verify TOTP properties and parameters. **(breaking change)**
|
286
|
+
- Changed summary param `verify_service_sid` to `service_sid` to be consistent with list attempts API **(breaking change)**
|
287
|
+
|
288
|
+
**Twiml**
|
289
|
+
- Add `maxQueueSize` to `Enqueue`
|
290
|
+
|
291
|
+
|
4
292
|
[2022-06-15] Version 5.67.3
|
5
293
|
---------------------------
|
6
294
|
**Lookups**
|
data/LICENSE
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
MIT License
|
2
2
|
|
3
|
-
Copyright (C)
|
3
|
+
Copyright (C) 2023, Twilio, Inc. <help@twilio.com>
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
6
6
|
this software and associated documentation files (the "Software"), to deal in
|
data/Makefile
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
.PHONY: githooks install test lint docs docker-build docker-push
|
1
|
+
.PHONY: githooks install test test-docker lint docs docker-build docker-push
|
2
2
|
|
3
3
|
githooks:
|
4
4
|
ln -sf ../../githooks/pre-commit .git/hooks/pre-commit
|
@@ -9,6 +9,10 @@ install:
|
|
9
9
|
test:
|
10
10
|
bundle exec rake spec
|
11
11
|
|
12
|
+
test-docker:
|
13
|
+
docker build -t twilio/twilio-ruby .
|
14
|
+
docker run twilio/twilio-ruby bundle exec rake spec
|
15
|
+
|
12
16
|
docs:
|
13
17
|
bundle exec yard doc --output-dir ./doc
|
14
18
|
|
@@ -17,7 +21,7 @@ authors:
|
|
17
21
|
git log --raw | grep "^Author: " | cut -d ' ' -f2- | cut -d '<' -f1 | sed 's/^/- /' | sort | uniq >> AUTHORS.md
|
18
22
|
|
19
23
|
API_DEFINITIONS_SHA=$(shell git log --oneline | grep Regenerated | head -n1 | cut -d ' ' -f 5)
|
20
|
-
CURRENT_TAG=$(shell
|
24
|
+
CURRENT_TAG=$(shell expr "${GITHUB_TAG}" : ".*-rc.*" >/dev/null && echo "rc" || echo "latest")
|
21
25
|
docker-build:
|
22
26
|
docker build -t twilio/twilio-ruby .
|
23
27
|
docker tag twilio/twilio-ruby twilio/twilio-ruby:${GITHUB_TAG}
|
data/PULL_REQUEST_TEMPLATE.md
CHANGED
@@ -3,7 +3,7 @@ We appreciate the effort for this pull request but before that please make sure
|
|
3
3
|
|
4
4
|
Please format the PR title appropriately based on the type of change:
|
5
5
|
<type>[!]: <description>
|
6
|
-
Where <type> is one of: docs, chore, feat, fix, test.
|
6
|
+
Where <type> is one of: docs, chore, feat, fix, test, misc.
|
7
7
|
Add a '!' after the type for breaking changes (e.g. feat!: new breaking feature).
|
8
8
|
|
9
9
|
**All third-party contributors acknowledge that any contributions they provide will be made under the same open-source license that the open-source project is provided under.**
|
data/README.md
CHANGED
@@ -34,13 +34,13 @@ This library supports the following Ruby implementations:
|
|
34
34
|
To install using [Bundler][bundler] grab the latest stable version:
|
35
35
|
|
36
36
|
```ruby
|
37
|
-
gem 'twilio-ruby', '~> 5.
|
37
|
+
gem 'twilio-ruby', '~> 5.74.5'
|
38
38
|
```
|
39
39
|
|
40
40
|
To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
|
41
41
|
|
42
42
|
```bash
|
43
|
-
gem install twilio-ruby -v 5.
|
43
|
+
gem install twilio-ruby -v 5.74.5
|
44
44
|
```
|
45
45
|
|
46
46
|
To build and install the development branch yourself from the latest source:
|
@@ -43,8 +43,10 @@ module Twilio
|
|
43
43
|
# the address. Can be: `true` or `false` and the default is `true`. If empty or
|
44
44
|
# `true`, we will correct the address you provide if necessary. If `false`, we
|
45
45
|
# won't alter the address you provide.
|
46
|
+
# @param [String] street_secondary The additional number and street address of the
|
47
|
+
# address.
|
46
48
|
# @return [AddressInstance] Created AddressInstance
|
47
|
-
def create(customer_name: nil, street: nil, city: nil, region: nil, postal_code: nil, iso_country: nil, friendly_name: :unset, emergency_enabled: :unset, auto_correct_address: :unset)
|
49
|
+
def create(customer_name: nil, street: nil, city: nil, region: nil, postal_code: nil, iso_country: nil, friendly_name: :unset, emergency_enabled: :unset, auto_correct_address: :unset, street_secondary: :unset)
|
48
50
|
data = Twilio::Values.of({
|
49
51
|
'CustomerName' => customer_name,
|
50
52
|
'Street' => street,
|
@@ -55,6 +57,7 @@ module Twilio
|
|
55
57
|
'FriendlyName' => friendly_name,
|
56
58
|
'EmergencyEnabled' => emergency_enabled,
|
57
59
|
'AutoCorrectAddress' => auto_correct_address,
|
60
|
+
'StreetSecondary' => street_secondary,
|
58
61
|
})
|
59
62
|
|
60
63
|
payload = @version.create('POST', @uri, data: data)
|
@@ -262,8 +265,10 @@ module Twilio
|
|
262
265
|
# the address. Can be: `true` or `false` and the default is `true`. If empty or
|
263
266
|
# `true`, we will correct the address you provide if necessary. If `false`, we
|
264
267
|
# won't alter the address you provide.
|
268
|
+
# @param [String] street_secondary The additional number and street address of the
|
269
|
+
# address.
|
265
270
|
# @return [AddressInstance] Updated AddressInstance
|
266
|
-
def update(friendly_name: :unset, customer_name: :unset, street: :unset, city: :unset, region: :unset, postal_code: :unset, emergency_enabled: :unset, auto_correct_address: :unset)
|
271
|
+
def update(friendly_name: :unset, customer_name: :unset, street: :unset, city: :unset, region: :unset, postal_code: :unset, emergency_enabled: :unset, auto_correct_address: :unset, street_secondary: :unset)
|
267
272
|
data = Twilio::Values.of({
|
268
273
|
'FriendlyName' => friendly_name,
|
269
274
|
'CustomerName' => customer_name,
|
@@ -273,6 +278,7 @@ module Twilio
|
|
273
278
|
'PostalCode' => postal_code,
|
274
279
|
'EmergencyEnabled' => emergency_enabled,
|
275
280
|
'AutoCorrectAddress' => auto_correct_address,
|
281
|
+
'StreetSecondary' => street_secondary,
|
276
282
|
})
|
277
283
|
|
278
284
|
payload = @version.update('POST', @uri, data: data)
|
@@ -342,6 +348,7 @@ module Twilio
|
|
342
348
|
'emergency_enabled' => payload['emergency_enabled'],
|
343
349
|
'validated' => payload['validated'],
|
344
350
|
'verified' => payload['verified'],
|
351
|
+
'street_secondary' => payload['street_secondary'],
|
345
352
|
}
|
346
353
|
|
347
354
|
# Context
|
@@ -450,6 +457,12 @@ module Twilio
|
|
450
457
|
@properties['verified']
|
451
458
|
end
|
452
459
|
|
460
|
+
##
|
461
|
+
# @return [String] The additional number and street address of the address
|
462
|
+
def street_secondary
|
463
|
+
@properties['street_secondary']
|
464
|
+
end
|
465
|
+
|
453
466
|
##
|
454
467
|
# Delete the AddressInstance
|
455
468
|
# @return [Boolean] true if delete succeeds, false otherwise
|
@@ -479,8 +492,10 @@ module Twilio
|
|
479
492
|
# the address. Can be: `true` or `false` and the default is `true`. If empty or
|
480
493
|
# `true`, we will correct the address you provide if necessary. If `false`, we
|
481
494
|
# won't alter the address you provide.
|
495
|
+
# @param [String] street_secondary The additional number and street address of the
|
496
|
+
# address.
|
482
497
|
# @return [AddressInstance] Updated AddressInstance
|
483
|
-
def update(friendly_name: :unset, customer_name: :unset, street: :unset, city: :unset, region: :unset, postal_code: :unset, emergency_enabled: :unset, auto_correct_address: :unset)
|
498
|
+
def update(friendly_name: :unset, customer_name: :unset, street: :unset, city: :unset, region: :unset, postal_code: :unset, emergency_enabled: :unset, auto_correct_address: :unset, street_secondary: :unset)
|
484
499
|
context.update(
|
485
500
|
friendly_name: friendly_name,
|
486
501
|
customer_name: customer_name,
|
@@ -490,6 +505,7 @@ module Twilio
|
|
490
505
|
postal_code: postal_code,
|
491
506
|
emergency_enabled: emergency_enabled,
|
492
507
|
auto_correct_address: auto_correct_address,
|
508
|
+
street_secondary: street_secondary,
|
493
509
|
)
|
494
510
|
end
|
495
511
|
|
@@ -61,8 +61,11 @@ module Twilio
|
|
61
61
|
# method to send message status information to your application.
|
62
62
|
# @param [String] friendly_name A descriptive string that you create to describe
|
63
63
|
# the new application. It can be up to 64 characters long.
|
64
|
+
# @param [Boolean] public_application_connect_enabled Whether to allow other
|
65
|
+
# Twilio accounts to dial this applicaton using Dial verb. Can be: `true` or
|
66
|
+
# `false`.
|
64
67
|
# @return [ApplicationInstance] Created ApplicationInstance
|
65
|
-
def create(api_version: :unset, voice_url: :unset, voice_method: :unset, voice_fallback_url: :unset, voice_fallback_method: :unset, status_callback: :unset, status_callback_method: :unset, voice_caller_id_lookup: :unset, sms_url: :unset, sms_method: :unset, sms_fallback_url: :unset, sms_fallback_method: :unset, sms_status_callback: :unset, message_status_callback: :unset, friendly_name: :unset)
|
68
|
+
def create(api_version: :unset, voice_url: :unset, voice_method: :unset, voice_fallback_url: :unset, voice_fallback_method: :unset, status_callback: :unset, status_callback_method: :unset, voice_caller_id_lookup: :unset, sms_url: :unset, sms_method: :unset, sms_fallback_url: :unset, sms_fallback_method: :unset, sms_status_callback: :unset, message_status_callback: :unset, friendly_name: :unset, public_application_connect_enabled: :unset)
|
66
69
|
data = Twilio::Values.of({
|
67
70
|
'ApiVersion' => api_version,
|
68
71
|
'VoiceUrl' => voice_url,
|
@@ -79,6 +82,7 @@ module Twilio
|
|
79
82
|
'SmsStatusCallback' => sms_status_callback,
|
80
83
|
'MessageStatusCallback' => message_status_callback,
|
81
84
|
'FriendlyName' => friendly_name,
|
85
|
+
'PublicApplicationConnectEnabled' => public_application_connect_enabled,
|
82
86
|
})
|
83
87
|
|
84
88
|
payload = @version.create('POST', @uri, data: data)
|
@@ -283,8 +287,11 @@ module Twilio
|
|
283
287
|
# sent by the application. Deprecated, included for backwards compatibility.
|
284
288
|
# @param [String] message_status_callback The URL we should call using a POST
|
285
289
|
# method to send message status information to your application.
|
290
|
+
# @param [Boolean] public_application_connect_enabled Whether to allow other
|
291
|
+
# Twilio accounts to dial this applicaton using Dial verb. Can be: `true` or
|
292
|
+
# `false`.
|
286
293
|
# @return [ApplicationInstance] Updated ApplicationInstance
|
287
|
-
def update(friendly_name: :unset, api_version: :unset, voice_url: :unset, voice_method: :unset, voice_fallback_url: :unset, voice_fallback_method: :unset, status_callback: :unset, status_callback_method: :unset, voice_caller_id_lookup: :unset, sms_url: :unset, sms_method: :unset, sms_fallback_url: :unset, sms_fallback_method: :unset, sms_status_callback: :unset, message_status_callback: :unset)
|
294
|
+
def update(friendly_name: :unset, api_version: :unset, voice_url: :unset, voice_method: :unset, voice_fallback_url: :unset, voice_fallback_method: :unset, status_callback: :unset, status_callback_method: :unset, voice_caller_id_lookup: :unset, sms_url: :unset, sms_method: :unset, sms_fallback_url: :unset, sms_fallback_method: :unset, sms_status_callback: :unset, message_status_callback: :unset, public_application_connect_enabled: :unset)
|
288
295
|
data = Twilio::Values.of({
|
289
296
|
'FriendlyName' => friendly_name,
|
290
297
|
'ApiVersion' => api_version,
|
@@ -301,6 +308,7 @@ module Twilio
|
|
301
308
|
'SmsFallbackMethod' => sms_fallback_method,
|
302
309
|
'SmsStatusCallback' => sms_status_callback,
|
303
310
|
'MessageStatusCallback' => message_status_callback,
|
311
|
+
'PublicApplicationConnectEnabled' => public_application_connect_enabled,
|
304
312
|
})
|
305
313
|
|
306
314
|
payload = @version.update('POST', @uri, data: data)
|
@@ -364,6 +372,7 @@ module Twilio
|
|
364
372
|
'voice_fallback_url' => payload['voice_fallback_url'],
|
365
373
|
'voice_method' => payload['voice_method'],
|
366
374
|
'voice_url' => payload['voice_url'],
|
375
|
+
'public_application_connect_enabled' => payload['public_application_connect_enabled'],
|
367
376
|
}
|
368
377
|
|
369
378
|
# Context
|
@@ -502,6 +511,12 @@ module Twilio
|
|
502
511
|
@properties['voice_url']
|
503
512
|
end
|
504
513
|
|
514
|
+
##
|
515
|
+
# @return [Boolean] Whether to allow other Twilio accounts to dial this application
|
516
|
+
def public_application_connect_enabled
|
517
|
+
@properties['public_application_connect_enabled']
|
518
|
+
end
|
519
|
+
|
505
520
|
##
|
506
521
|
# Delete the ApplicationInstance
|
507
522
|
# @return [Boolean] true if delete succeeds, false otherwise
|
@@ -551,8 +566,11 @@ module Twilio
|
|
551
566
|
# sent by the application. Deprecated, included for backwards compatibility.
|
552
567
|
# @param [String] message_status_callback The URL we should call using a POST
|
553
568
|
# method to send message status information to your application.
|
569
|
+
# @param [Boolean] public_application_connect_enabled Whether to allow other
|
570
|
+
# Twilio accounts to dial this applicaton using Dial verb. Can be: `true` or
|
571
|
+
# `false`.
|
554
572
|
# @return [ApplicationInstance] Updated ApplicationInstance
|
555
|
-
def update(friendly_name: :unset, api_version: :unset, voice_url: :unset, voice_method: :unset, voice_fallback_url: :unset, voice_fallback_method: :unset, status_callback: :unset, status_callback_method: :unset, voice_caller_id_lookup: :unset, sms_url: :unset, sms_method: :unset, sms_fallback_url: :unset, sms_fallback_method: :unset, sms_status_callback: :unset, message_status_callback: :unset)
|
573
|
+
def update(friendly_name: :unset, api_version: :unset, voice_url: :unset, voice_method: :unset, voice_fallback_url: :unset, voice_fallback_method: :unset, status_callback: :unset, status_callback_method: :unset, voice_caller_id_lookup: :unset, sms_url: :unset, sms_method: :unset, sms_fallback_url: :unset, sms_fallback_method: :unset, sms_status_callback: :unset, message_status_callback: :unset, public_application_connect_enabled: :unset)
|
556
574
|
context.update(
|
557
575
|
friendly_name: friendly_name,
|
558
576
|
api_version: api_version,
|
@@ -569,6 +587,7 @@ module Twilio
|
|
569
587
|
sms_fallback_method: sms_fallback_method,
|
570
588
|
sms_status_callback: sms_status_callback,
|
571
589
|
message_status_callback: message_status_callback,
|
590
|
+
public_application_connect_enabled: public_application_connect_enabled,
|
572
591
|
)
|
573
592
|
end
|
574
593
|
|
@@ -391,8 +391,8 @@ module Twilio
|
|
391
391
|
'lata' => payload['lata'],
|
392
392
|
'locality' => payload['locality'],
|
393
393
|
'rate_center' => payload['rate_center'],
|
394
|
-
'latitude' => payload['latitude'].to_f,
|
395
|
-
'longitude' => payload['longitude'].to_f,
|
394
|
+
'latitude' => payload['latitude'] == nil ? payload['latitude'] : payload['latitude'].to_f,
|
395
|
+
'longitude' => payload['longitude'] == nil ? payload['longitude'] : payload['longitude'].to_f,
|
396
396
|
'region' => payload['region'],
|
397
397
|
'postal_code' => payload['postal_code'],
|
398
398
|
'iso_country' => payload['iso_country'],
|
@@ -391,8 +391,8 @@ module Twilio
|
|
391
391
|
'lata' => payload['lata'],
|
392
392
|
'locality' => payload['locality'],
|
393
393
|
'rate_center' => payload['rate_center'],
|
394
|
-
'latitude' => payload['latitude'].to_f,
|
395
|
-
'longitude' => payload['longitude'].to_f,
|
394
|
+
'latitude' => payload['latitude'] == nil ? payload['latitude'] : payload['latitude'].to_f,
|
395
|
+
'longitude' => payload['longitude'] == nil ? payload['longitude'] : payload['longitude'].to_f,
|
396
396
|
'region' => payload['region'],
|
397
397
|
'postal_code' => payload['postal_code'],
|
398
398
|
'iso_country' => payload['iso_country'],
|
@@ -391,8 +391,8 @@ module Twilio
|
|
391
391
|
'lata' => payload['lata'],
|
392
392
|
'locality' => payload['locality'],
|
393
393
|
'rate_center' => payload['rate_center'],
|
394
|
-
'latitude' => payload['latitude'].to_f,
|
395
|
-
'longitude' => payload['longitude'].to_f,
|
394
|
+
'latitude' => payload['latitude'] == nil ? payload['latitude'] : payload['latitude'].to_f,
|
395
|
+
'longitude' => payload['longitude'] == nil ? payload['longitude'] : payload['longitude'].to_f,
|
396
396
|
'region' => payload['region'],
|
397
397
|
'postal_code' => payload['postal_code'],
|
398
398
|
'iso_country' => payload['iso_country'],
|
@@ -391,8 +391,8 @@ module Twilio
|
|
391
391
|
'lata' => payload['lata'],
|
392
392
|
'locality' => payload['locality'],
|
393
393
|
'rate_center' => payload['rate_center'],
|
394
|
-
'latitude' => payload['latitude'].to_f,
|
395
|
-
'longitude' => payload['longitude'].to_f,
|
394
|
+
'latitude' => payload['latitude'] == nil ? payload['latitude'] : payload['latitude'].to_f,
|
395
|
+
'longitude' => payload['longitude'] == nil ? payload['longitude'] : payload['longitude'].to_f,
|
396
396
|
'region' => payload['region'],
|
397
397
|
'postal_code' => payload['postal_code'],
|
398
398
|
'iso_country' => payload['iso_country'],
|
@@ -391,8 +391,8 @@ module Twilio
|
|
391
391
|
'lata' => payload['lata'],
|
392
392
|
'locality' => payload['locality'],
|
393
393
|
'rate_center' => payload['rate_center'],
|
394
|
-
'latitude' => payload['latitude'].to_f,
|
395
|
-
'longitude' => payload['longitude'].to_f,
|
394
|
+
'latitude' => payload['latitude'] == nil ? payload['latitude'] : payload['latitude'].to_f,
|
395
|
+
'longitude' => payload['longitude'] == nil ? payload['longitude'] : payload['longitude'].to_f,
|
396
396
|
'region' => payload['region'],
|
397
397
|
'postal_code' => payload['postal_code'],
|
398
398
|
'iso_country' => payload['iso_country'],
|
@@ -391,8 +391,8 @@ module Twilio
|
|
391
391
|
'lata' => payload['lata'],
|
392
392
|
'locality' => payload['locality'],
|
393
393
|
'rate_center' => payload['rate_center'],
|
394
|
-
'latitude' => payload['latitude'].to_f,
|
395
|
-
'longitude' => payload['longitude'].to_f,
|
394
|
+
'latitude' => payload['latitude'] == nil ? payload['latitude'] : payload['latitude'].to_f,
|
395
|
+
'longitude' => payload['longitude'] == nil ? payload['longitude'] : payload['longitude'].to_f,
|
396
396
|
'region' => payload['region'],
|
397
397
|
'postal_code' => payload['postal_code'],
|
398
398
|
'iso_country' => payload['iso_country'],
|
@@ -391,8 +391,8 @@ module Twilio
|
|
391
391
|
'lata' => payload['lata'],
|
392
392
|
'locality' => payload['locality'],
|
393
393
|
'rate_center' => payload['rate_center'],
|
394
|
-
'latitude' => payload['latitude'].to_f,
|
395
|
-
'longitude' => payload['longitude'].to_f,
|
394
|
+
'latitude' => payload['latitude'] == nil ? payload['latitude'] : payload['latitude'].to_f,
|
395
|
+
'longitude' => payload['longitude'] == nil ? payload['longitude'] : payload['longitude'].to_f,
|
396
396
|
'region' => payload['region'],
|
397
397
|
'postal_code' => payload['postal_code'],
|
398
398
|
'iso_country' => payload['iso_country'],
|