twilio-ruby 5.26.0 → 5.27.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. checksums.yaml +5 -5
  2. data/.travis.yml +5 -6
  3. data/CHANGES.md +21 -0
  4. data/README.md +28 -19
  5. data/VERSIONS.md +9 -10
  6. data/lib/twilio-ruby.rb +4 -2
  7. data/lib/twilio-ruby/framework/domain.rb +1 -1
  8. data/lib/twilio-ruby/http/http_client.rb +9 -3
  9. data/lib/twilio-ruby/rest/api/v2010/account/address.rb +3 -3
  10. data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +2 -2
  11. data/lib/twilio-ruby/rest/api/v2010/account/application.rb +3 -3
  12. data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +3 -3
  13. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb +1 -1
  14. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +18 -18
  15. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/machine_to_machine.rb +18 -18
  16. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +18 -18
  17. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/national.rb +18 -18
  18. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb +18 -18
  19. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +18 -18
  20. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/voip.rb +18 -18
  21. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +3 -3
  22. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +3 -3
  23. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +3 -3
  24. data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +6 -6
  25. data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +6 -6
  26. data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +3 -3
  27. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +5 -5
  28. data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +3 -3
  29. data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +3 -3
  30. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +5 -5
  31. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +4 -4
  32. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +4 -4
  33. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +2 -2
  34. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +2 -2
  35. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +2 -2
  36. data/lib/twilio-ruby/rest/api/v2010/account/key.rb +1 -1
  37. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +6 -6
  38. data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +3 -5
  39. data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +3 -3
  40. data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +3 -3
  41. data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +3 -3
  42. data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +3 -3
  43. data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +5 -5
  44. data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +6 -6
  45. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +3 -3
  46. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +3 -3
  47. data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +3 -3
  48. data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +3 -3
  49. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +1 -1
  50. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types.rb +2 -2
  51. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping.rb +2 -2
  52. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_credential_list_mapping.rb +3 -3
  53. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_ip_access_control_list_mapping.rb +3 -3
  54. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping.rb +2 -2
  55. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping/auth_registrations_credential_list_mapping.rb +3 -3
  56. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +1 -1
  57. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +1 -1
  58. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +1 -1
  59. data/lib/twilio-ruby/rest/api/v2010/account/token.rb +2 -2
  60. data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +3 -3
  61. data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +3 -3
  62. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +3 -3
  63. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +3 -3
  64. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +3 -3
  65. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +3 -3
  66. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +3 -3
  67. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +3 -3
  68. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +3 -3
  69. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +3 -3
  70. data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +10 -10
  71. data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +2 -2
  72. data/lib/twilio-ruby/rest/authy/v1/service/entity/factor/challenge.rb +1 -1
  73. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/field.rb +1 -1
  74. data/lib/twilio-ruby/rest/chat/v2/service.rb +12 -6
  75. data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +12 -12
  76. data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +6 -6
  77. data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +17 -16
  78. data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +35 -35
  79. data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +6 -6
  80. data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +6 -6
  81. data/lib/twilio-ruby/rest/chat/v2/service/role.rb +8 -8
  82. data/lib/twilio-ruby/rest/chat/v2/service/user.rb +16 -12
  83. data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +12 -12
  84. data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +13 -11
  85. data/lib/twilio-ruby/rest/client.rb +2 -2
  86. data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +4 -4
  87. data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +4 -4
  88. data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +4 -4
  89. data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +4 -4
  90. data/lib/twilio-ruby/rest/conversations/v1/webhook.rb +4 -4
  91. data/lib/twilio-ruby/rest/fax/v1/fax.rb +11 -5
  92. data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +12 -6
  93. data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +12 -12
  94. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +6 -6
  95. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +17 -16
  96. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +35 -35
  97. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +6 -6
  98. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +6 -6
  99. data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +8 -8
  100. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +16 -12
  101. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +12 -12
  102. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +13 -11
  103. data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +5 -5
  104. data/lib/twilio-ruby/rest/monitor/v1.rb +1 -1
  105. data/lib/twilio-ruby/rest/monitor/v1/alert.rb +16 -16
  106. data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +1 -1
  107. data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +1 -1
  108. data/lib/twilio-ruby/security/request_validator.rb +1 -1
  109. data/lib/twilio-ruby/util/configuration.rb +10 -5
  110. data/lib/twilio-ruby/version.rb +1 -1
  111. data/spec/http/http_client_spec.rb +2 -2
  112. data/spec/integration/lookups/v1/phone_number_spec.rb +1 -1
  113. data/spec/integration/monitor/v1/alert_spec.rb +5 -28
  114. data/spec/integration/pricing/v1/voice/number_spec.rb +1 -1
  115. data/spec/integration/pricing/v2/voice/number_spec.rb +1 -1
  116. data/spec/rest/client_spec.rb +22 -0
  117. data/spec/twilio_spec.rb +3 -1
  118. data/spec/util/configuration_spec.rb +6 -0
  119. metadata +4 -3
@@ -33,7 +33,7 @@ module Twilio
33
33
  # Unlike stream(), this operation is eager and will load `limit` records into
34
34
  # memory before returning.
35
35
  # @param [this_month.Category] category The [usage
36
- # category](https://www.twilio.com/docs/api/rest/usage-records#usage-categories)
36
+ # category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories)
37
37
  # of the UsageRecord resources to read. Only UsageRecord resources in the
38
38
  # specified category are retrieved.
39
39
  # @param [Date] start_date Only include usage that has occurred on or after this
@@ -71,7 +71,7 @@ module Twilio
71
71
  # This operation lazily loads records as efficiently as possible until the limit
72
72
  # is reached.
73
73
  # @param [this_month.Category] category The [usage
74
- # category](https://www.twilio.com/docs/api/rest/usage-records#usage-categories)
74
+ # category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories)
75
75
  # of the UsageRecord resources to read. Only UsageRecord resources in the
76
76
  # specified category are retrieved.
77
77
  # @param [Date] start_date Only include usage that has occurred on or after this
@@ -125,7 +125,7 @@ module Twilio
125
125
  # Retrieve a single page of ThisMonthInstance records from the API.
126
126
  # Request is executed immediately.
127
127
  # @param [this_month.Category] category The [usage
128
- # category](https://www.twilio.com/docs/api/rest/usage-records#usage-categories)
128
+ # category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories)
129
129
  # of the UsageRecord resources to read. Only UsageRecord resources in the
130
130
  # specified category are retrieved.
131
131
  # @param [Date] start_date Only include usage that has occurred on or after this
@@ -33,7 +33,7 @@ module Twilio
33
33
  # Unlike stream(), this operation is eager and will load `limit` records into
34
34
  # memory before returning.
35
35
  # @param [today.Category] category The [usage
36
- # category](https://www.twilio.com/docs/api/rest/usage-records#usage-categories)
36
+ # category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories)
37
37
  # of the UsageRecord resources to read. Only UsageRecord resources in the
38
38
  # specified category are retrieved.
39
39
  # @param [Date] start_date Only include usage that has occurred on or after this
@@ -71,7 +71,7 @@ module Twilio
71
71
  # This operation lazily loads records as efficiently as possible until the limit
72
72
  # is reached.
73
73
  # @param [today.Category] category The [usage
74
- # category](https://www.twilio.com/docs/api/rest/usage-records#usage-categories)
74
+ # category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories)
75
75
  # of the UsageRecord resources to read. Only UsageRecord resources in the
76
76
  # specified category are retrieved.
77
77
  # @param [Date] start_date Only include usage that has occurred on or after this
@@ -125,7 +125,7 @@ module Twilio
125
125
  # Retrieve a single page of TodayInstance records from the API.
126
126
  # Request is executed immediately.
127
127
  # @param [today.Category] category The [usage
128
- # category](https://www.twilio.com/docs/api/rest/usage-records#usage-categories)
128
+ # category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories)
129
129
  # of the UsageRecord resources to read. Only UsageRecord resources in the
130
130
  # specified category are retrieved.
131
131
  # @param [Date] start_date Only include usage that has occurred on or after this
@@ -33,7 +33,7 @@ module Twilio
33
33
  # Unlike stream(), this operation is eager and will load `limit` records into
34
34
  # memory before returning.
35
35
  # @param [yearly.Category] category The [usage
36
- # category](https://www.twilio.com/docs/api/rest/usage-records#usage-categories)
36
+ # category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories)
37
37
  # of the UsageRecord resources to read. Only UsageRecord resources in the
38
38
  # specified category are retrieved.
39
39
  # @param [Date] start_date Only include usage that has occurred on or after this
@@ -71,7 +71,7 @@ module Twilio
71
71
  # This operation lazily loads records as efficiently as possible until the limit
72
72
  # is reached.
73
73
  # @param [yearly.Category] category The [usage
74
- # category](https://www.twilio.com/docs/api/rest/usage-records#usage-categories)
74
+ # category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories)
75
75
  # of the UsageRecord resources to read. Only UsageRecord resources in the
76
76
  # specified category are retrieved.
77
77
  # @param [Date] start_date Only include usage that has occurred on or after this
@@ -125,7 +125,7 @@ module Twilio
125
125
  # Retrieve a single page of YearlyInstance records from the API.
126
126
  # Request is executed immediately.
127
127
  # @param [yearly.Category] category The [usage
128
- # category](https://www.twilio.com/docs/api/rest/usage-records#usage-categories)
128
+ # category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories)
129
129
  # of the UsageRecord resources to read. Only UsageRecord resources in the
130
130
  # specified category are retrieved.
131
131
  # @param [Date] start_date Only include usage that has occurred on or after this
@@ -33,7 +33,7 @@ module Twilio
33
33
  # Unlike stream(), this operation is eager and will load `limit` records into
34
34
  # memory before returning.
35
35
  # @param [yesterday.Category] category The [usage
36
- # category](https://www.twilio.com/docs/api/rest/usage-records#usage-categories)
36
+ # category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories)
37
37
  # of the UsageRecord resources to read. Only UsageRecord resources in the
38
38
  # specified category are retrieved.
39
39
  # @param [Date] start_date Only include usage that has occurred on or after this
@@ -71,7 +71,7 @@ module Twilio
71
71
  # This operation lazily loads records as efficiently as possible until the limit
72
72
  # is reached.
73
73
  # @param [yesterday.Category] category The [usage
74
- # category](https://www.twilio.com/docs/api/rest/usage-records#usage-categories)
74
+ # category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories)
75
75
  # of the UsageRecord resources to read. Only UsageRecord resources in the
76
76
  # specified category are retrieved.
77
77
  # @param [Date] start_date Only include usage that has occurred on or after this
@@ -125,7 +125,7 @@ module Twilio
125
125
  # Retrieve a single page of YesterdayInstance records from the API.
126
126
  # Request is executed immediately.
127
127
  # @param [yesterday.Category] category The [usage
128
- # category](https://www.twilio.com/docs/api/rest/usage-records#usage-categories)
128
+ # category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories)
129
129
  # of the UsageRecord resources to read. Only UsageRecord resources in the
130
130
  # specified category are retrieved.
131
131
  # @param [Date] start_date Only include usage that has occurred on or after this
@@ -38,7 +38,7 @@ module Twilio
38
38
  # urlencode a `+` as `%2B`.
39
39
  # @param [trigger.UsageCategory] usage_category The usage category that the
40
40
  # trigger should watch. Use one of the supported [usage
41
- # categories](https://www.twilio.com/docs/api/rest/usage-records#usage-categories)
41
+ # categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories)
42
42
  # for this value.
43
43
  # @param [String] callback_method The HTTP method we should use to call
44
44
  # `callback_url`. Can be: `GET` or `POST` and the default is `POST`.
@@ -49,10 +49,10 @@ module Twilio
49
49
  # non-recurring triggers. A trigger will only fire once during each period.
50
50
  # Recurring times are in GMT.
51
51
  # @param [trigger.TriggerField] trigger_by The field in the
52
- # [UsageRecord](https://www.twilio.com/docs/api/rest/usage-records) resource that
52
+ # [UsageRecord](https://www.twilio.com/docs/usage/api/usage-record) resource that
53
53
  # should fire the trigger. Can be: `count`, `usage`, or `price` as described in
54
54
  # the [UsageRecords
55
- # documentation](https://www.twilio.com/docs/api/rest/usage-records#usage-count-price). The default is `usage`.
55
+ # documentation](https://www.twilio.com/docs/usage/api/usage-record#usage-count-price). The default is `usage`.
56
56
  # @return [TriggerInstance] Newly created TriggerInstance
57
57
  def create(callback_url: nil, trigger_value: nil, usage_category: nil, callback_method: :unset, friendly_name: :unset, recurring: :unset, trigger_by: :unset)
58
58
  data = Twilio::Values.of({
@@ -83,10 +83,10 @@ module Twilio
83
83
  # An empty value or a value of `alltime` reads non-recurring UsageTriggers.
84
84
  # @param [trigger.TriggerField] trigger_by The trigger field of the UsageTriggers
85
85
  # to read. Can be: `count`, `usage`, or `price` as described in the [UsageRecords
86
- # documentation](https://www.twilio.com/docs/api/rest/usage-records#usage-count-price).
86
+ # documentation](https://www.twilio.com/docs/usage/api/usage-record#usage-count-price).
87
87
  # @param [trigger.UsageCategory] usage_category The usage category of the
88
88
  # UsageTriggers to read. Must be a supported [usage
89
- # categories](https://www.twilio.com/docs/api/rest/usage-records#usage-categories).
89
+ # categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories).
90
90
  # @param [Integer] limit Upper limit for the number of records to return. stream()
91
91
  # guarantees to never return more than limit. Default is no limit
92
92
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -113,10 +113,10 @@ module Twilio
113
113
  # An empty value or a value of `alltime` reads non-recurring UsageTriggers.
114
114
  # @param [trigger.TriggerField] trigger_by The trigger field of the UsageTriggers
115
115
  # to read. Can be: `count`, `usage`, or `price` as described in the [UsageRecords
116
- # documentation](https://www.twilio.com/docs/api/rest/usage-records#usage-count-price).
116
+ # documentation](https://www.twilio.com/docs/usage/api/usage-record#usage-count-price).
117
117
  # @param [trigger.UsageCategory] usage_category The usage category of the
118
118
  # UsageTriggers to read. Must be a supported [usage
119
- # categories](https://www.twilio.com/docs/api/rest/usage-records#usage-categories).
119
+ # categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories).
120
120
  # @param [Integer] limit Upper limit for the number of records to return. stream()
121
121
  # guarantees to never return more than limit. Default is no limit.
122
122
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -159,10 +159,10 @@ module Twilio
159
159
  # An empty value or a value of `alltime` reads non-recurring UsageTriggers.
160
160
  # @param [trigger.TriggerField] trigger_by The trigger field of the UsageTriggers
161
161
  # to read. Can be: `count`, `usage`, or `price` as described in the [UsageRecords
162
- # documentation](https://www.twilio.com/docs/api/rest/usage-records#usage-count-price).
162
+ # documentation](https://www.twilio.com/docs/usage/api/usage-record#usage-count-price).
163
163
  # @param [trigger.UsageCategory] usage_category The usage category of the
164
164
  # UsageTriggers to read. Must be a supported [usage
165
- # categories](https://www.twilio.com/docs/api/rest/usage-records#usage-categories).
165
+ # categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories).
166
166
  # @param [String] page_token PageToken provided by the API
167
167
  # @param [Integer] page_number Page Number, this value is simply for client state
168
168
  # @param [Integer] page_size Number of records to return, defaults to 50
@@ -238,7 +238,7 @@ module Twilio
238
238
  # Initialize the TriggerContext
239
239
  # @param [Version] version Version that contains the resource
240
240
  # @param [String] account_sid The SID of the
241
- # [Account](https://www.twilio.com/docs/api/rest/account) that created the
241
+ # [Account](https://www.twilio.com/docs/iam/api/account) that created the
242
242
  # UsageTrigger resource to fetch.
243
243
  # @param [String] sid The Twilio-provided string that uniquely identifies the
244
244
  # UsageTrigger resource to fetch.
@@ -16,7 +16,7 @@ module Twilio
16
16
  # Initialize the ValidationRequestList
17
17
  # @param [Version] version Version that contains the resource
18
18
  # @param [String] account_sid The SID of the
19
- # [Account](https://www.twilio.com/docs/api/rest/account) responsible for the
19
+ # [Account](https://www.twilio.com/docs/iam/api/account) responsible for the
20
20
  # Caller ID.
21
21
  # @return [ValidationRequestList] ValidationRequestList
22
22
  def initialize(version, account_sid: nil)
@@ -108,7 +108,7 @@ module Twilio
108
108
  # @param [Version] version Version that contains the resource
109
109
  # @param [Hash] payload payload that contains response from Twilio
110
110
  # @param [String] account_sid The SID of the
111
- # [Account](https://www.twilio.com/docs/api/rest/account) responsible for the
111
+ # [Account](https://www.twilio.com/docs/iam/api/account) responsible for the
112
112
  # Caller ID.
113
113
  # @return [ValidationRequestInstance] ValidationRequestInstance
114
114
  def initialize(version, payload, account_sid: nil)
@@ -36,7 +36,7 @@ module Twilio
36
36
  # Retrieve a single page of ChallengeInstance records from the API.
37
37
  # Request is executed immediately.
38
38
  # @param [Time] expiration_date The future date in which this Challenge will
39
- # expire, given in ISO 8601 format (https://en.wikipedia.org/wiki/ISO_8601).
39
+ # expire, given in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
40
40
  # @param [String] details Details provided to give context about the Challenge.
41
41
  # Shown to the end user.
42
42
  # @param [String] hidden_details Details provided to give context about the
@@ -119,7 +119,7 @@ module Twilio
119
119
  # Retrieve a single page of FieldInstance records from the API.
120
120
  # Request is executed immediately.
121
121
  # @param [String] field_type The Field Type of the new field. Can be: a [Built-in
122
- # Field Type](https://www.twilio.com/docs/assistant/api/built-in-field-types), the
122
+ # Field Type](https://www.twilio.com/docs/autopilot/built-in-field-types), the
123
123
  # `unique_name`, or the `sid` of a custom Field Type.
124
124
  # @param [String] unique_name An application-defined string that uniquely
125
125
  # identifies the new resource. This value must be a unique string of no more than
@@ -207,13 +207,16 @@ module Twilio
207
207
  # the resource.
208
208
  # @param [String] default_service_role_sid The service role assigned to users when
209
209
  # they are added to the service. See the [Role
210
- # resource](https://www.twilio.com/docs/chat/api/roles) for more info about roles.
210
+ # resource](https://www.twilio.com/docs/chat/rest/role-resource) for more info
211
+ # about roles.
211
212
  # @param [String] default_channel_role_sid The channel role assigned to users when
212
213
  # they are added to a channel. See the [Role
213
- # resource](https://www.twilio.com/docs/chat/api/roles) for more info about roles.
214
+ # resource](https://www.twilio.com/docs/chat/rest/role-resource) for more info
215
+ # about roles.
214
216
  # @param [String] default_channel_creator_role_sid The channel role assigned to a
215
217
  # channel creator when they join a new channel. See the [Role
216
- # resource](https://www.twilio.com/docs/chat/api/roles) for more info about roles.
218
+ # resource](https://www.twilio.com/docs/chat/rest/role-resource) for more info
219
+ # about roles.
217
220
  # @param [Boolean] read_status_enabled Whether to enable the [Message Consumption
218
221
  # Horizon](https://www.twilio.com/docs/chat/consumption-horizon) feature. The
219
222
  # default is `true`.
@@ -632,13 +635,16 @@ module Twilio
632
635
  # the resource.
633
636
  # @param [String] default_service_role_sid The service role assigned to users when
634
637
  # they are added to the service. See the [Role
635
- # resource](https://www.twilio.com/docs/chat/api/roles) for more info about roles.
638
+ # resource](https://www.twilio.com/docs/chat/rest/role-resource) for more info
639
+ # about roles.
636
640
  # @param [String] default_channel_role_sid The channel role assigned to users when
637
641
  # they are added to a channel. See the [Role
638
- # resource](https://www.twilio.com/docs/chat/api/roles) for more info about roles.
642
+ # resource](https://www.twilio.com/docs/chat/rest/role-resource) for more info
643
+ # about roles.
639
644
  # @param [String] default_channel_creator_role_sid The channel role assigned to a
640
645
  # channel creator when they join a new channel. See the [Role
641
- # resource](https://www.twilio.com/docs/chat/api/roles) for more info about roles.
646
+ # resource](https://www.twilio.com/docs/chat/rest/role-resource) for more info
647
+ # about roles.
642
648
  # @param [Boolean] read_status_enabled Whether to enable the [Message Consumption
643
649
  # Horizon](https://www.twilio.com/docs/chat/consumption-horizon) feature. The
644
650
  # default is `true`.
@@ -16,8 +16,8 @@ module Twilio
16
16
  # Initialize the BindingList
17
17
  # @param [Version] version Version that contains the resource
18
18
  # @param [String] service_sid The SID of the
19
- # [Service](https://www.twilio.com/docs/chat/rest/services) the Binding resource
20
- # is associated with.
19
+ # [Service](https://www.twilio.com/docs/chat/rest/service-resource) the Binding
20
+ # resource is associated with.
21
21
  # @return [BindingList] BindingList
22
22
  def initialize(version, service_sid: nil)
23
23
  super(version)
@@ -37,8 +37,8 @@ module Twilio
37
37
  # configuration](https://www.twilio.com/docs/chat/push-notification-configuration)
38
38
  # for more info.
39
39
  # @param [String] identity The
40
- # [User](https://www.twilio.com/docs/chat/rest/users)'s `identity` value of the
41
- # resources to read. See [access
40
+ # [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value
41
+ # of the resources to read. See [access
42
42
  # tokens](https://www.twilio.com/docs/chat/create-tokens) for more details.
43
43
  # @param [Integer] limit Upper limit for the number of records to return. stream()
44
44
  # guarantees to never return more than limit. Default is no limit
@@ -66,8 +66,8 @@ module Twilio
66
66
  # configuration](https://www.twilio.com/docs/chat/push-notification-configuration)
67
67
  # for more info.
68
68
  # @param [String] identity The
69
- # [User](https://www.twilio.com/docs/chat/rest/users)'s `identity` value of the
70
- # resources to read. See [access
69
+ # [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value
70
+ # of the resources to read. See [access
71
71
  # tokens](https://www.twilio.com/docs/chat/create-tokens) for more details.
72
72
  # @param [Integer] limit Upper limit for the number of records to return. stream()
73
73
  # guarantees to never return more than limit. Default is no limit.
@@ -107,8 +107,8 @@ module Twilio
107
107
  # configuration](https://www.twilio.com/docs/chat/push-notification-configuration)
108
108
  # for more info.
109
109
  # @param [String] identity The
110
- # [User](https://www.twilio.com/docs/chat/rest/users)'s `identity` value of the
111
- # resources to read. See [access
110
+ # [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value
111
+ # of the resources to read. See [access
112
112
  # tokens](https://www.twilio.com/docs/chat/create-tokens) for more details.
113
113
  # @param [String] page_token PageToken provided by the API
114
114
  # @param [Integer] page_number Page Number, this value is simply for client state
@@ -184,8 +184,8 @@ module Twilio
184
184
  # Initialize the BindingContext
185
185
  # @param [Version] version Version that contains the resource
186
186
  # @param [String] service_sid The SID of the
187
- # [Service](https://www.twilio.com/docs/chat/rest/services) to fetch the Binding
188
- # resource from.
187
+ # [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the
188
+ # Binding resource from.
189
189
  # @param [String] sid The SID of the Binding resource to fetch.
190
190
  # @return [BindingContext] BindingContext
191
191
  def initialize(version, service_sid, sid)
@@ -239,8 +239,8 @@ module Twilio
239
239
  # @param [Version] version Version that contains the resource
240
240
  # @param [Hash] payload payload that contains response from Twilio
241
241
  # @param [String] service_sid The SID of the
242
- # [Service](https://www.twilio.com/docs/chat/rest/services) the Binding resource
243
- # is associated with.
242
+ # [Service](https://www.twilio.com/docs/chat/rest/service-resource) the Binding
243
+ # resource is associated with.
244
244
  # @param [String] sid The SID of the Binding resource to fetch.
245
245
  # @return [BindingInstance] BindingInstance
246
246
  def initialize(version, payload, service_sid: nil, sid: nil)
@@ -16,8 +16,8 @@ module Twilio
16
16
  # Initialize the ChannelList
17
17
  # @param [Version] version Version that contains the resource
18
18
  # @param [String] service_sid The SID of the
19
- # [Service](https://www.twilio.com/docs/chat/rest/services) the Channel resource
20
- # is associated with.
19
+ # [Service](https://www.twilio.com/docs/chat/rest/service-resource) the Channel
20
+ # resource is associated with.
21
21
  # @return [ChannelList] ChannelList
22
22
  def initialize(version, service_sid: nil)
23
23
  super(version)
@@ -203,8 +203,8 @@ module Twilio
203
203
  # Initialize the ChannelContext
204
204
  # @param [Version] version Version that contains the resource
205
205
  # @param [String] service_sid The SID of the
206
- # [Service](https://www.twilio.com/docs/chat/rest/services) to fetch the Channel
207
- # resource from.
206
+ # [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the
207
+ # Channel resource from.
208
208
  # @param [String] sid The SID of the Channel resource to fetch. This value can be
209
209
  # either the `sid` or the `unique_name` of the Channel resource to fetch.
210
210
  # @return [ChannelContext] ChannelContext
@@ -393,8 +393,8 @@ module Twilio
393
393
  # @param [Version] version Version that contains the resource
394
394
  # @param [Hash] payload payload that contains response from Twilio
395
395
  # @param [String] service_sid The SID of the
396
- # [Service](https://www.twilio.com/docs/chat/rest/services) the Channel resource
397
- # is associated with.
396
+ # [Service](https://www.twilio.com/docs/chat/rest/service-resource) the Channel
397
+ # resource is associated with.
398
398
  # @param [String] sid The SID of the Channel resource to fetch. This value can be
399
399
  # either the `sid` or the `unique_name` of the Channel resource to fetch.
400
400
  # @return [ChannelInstance] ChannelInstance
@@ -17,8 +17,8 @@ module Twilio
17
17
  # Initialize the InviteList
18
18
  # @param [Version] version Version that contains the resource
19
19
  # @param [String] service_sid The SID of the
20
- # [Service](https://www.twilio.com/docs/chat/rest/services) the Invite resource is
21
- # associated with.
20
+ # [Service](https://www.twilio.com/docs/chat/rest/service-resource) the Invite
21
+ # resource is associated with.
22
22
  # @param [String] channel_sid The SID of the
23
23
  # [Channel](https://www.twilio.com/docs/chat/channels) the Invite resource belongs
24
24
  # to.
@@ -35,11 +35,12 @@ module Twilio
35
35
  # Retrieve a single page of InviteInstance records from the API.
36
36
  # Request is executed immediately.
37
37
  # @param [String] identity The `identity` value that uniquely identifies the new
38
- # resource's [User](https://www.twilio.com/docs/chat/rest/users) within the
39
- # [Service](https://www.twilio.com/docs/chat/rest/services). See [access
40
- # tokens](https://www.twilio.com/docs/chat/create-tokens) for more info.
38
+ # resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within
39
+ # the [Service](https://www.twilio.com/docs/chat/rest/service-resource). See
40
+ # [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more info.
41
41
  # @param [String] role_sid The SID of the
42
- # [Role](https://www.twilio.com/docs/chat/rest/roles) assigned to the new member.
42
+ # [Role](https://www.twilio.com/docs/chat/rest/role-resource) assigned to the new
43
+ # member.
43
44
  # @return [InviteInstance] Newly created InviteInstance
44
45
  def create(identity: nil, role_sid: :unset)
45
46
  data = Twilio::Values.of({'Identity' => identity, 'RoleSid' => role_sid, })
@@ -63,8 +64,8 @@ module Twilio
63
64
  # Unlike stream(), this operation is eager and will load `limit` records into
64
65
  # memory before returning.
65
66
  # @param [String] identity The
66
- # [User](https://www.twilio.com/docs/chat/rest/users)'s `identity` value of the
67
- # resources to read. See [access
67
+ # [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value
68
+ # of the resources to read. See [access
68
69
  # tokens](https://www.twilio.com/docs/chat/create-tokens) for more details.
69
70
  # @param [Integer] limit Upper limit for the number of records to return. stream()
70
71
  # guarantees to never return more than limit. Default is no limit
@@ -82,8 +83,8 @@ module Twilio
82
83
  # This operation lazily loads records as efficiently as possible until the limit
83
84
  # is reached.
84
85
  # @param [String] identity The
85
- # [User](https://www.twilio.com/docs/chat/rest/users)'s `identity` value of the
86
- # resources to read. See [access
86
+ # [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value
87
+ # of the resources to read. See [access
87
88
  # tokens](https://www.twilio.com/docs/chat/create-tokens) for more details.
88
89
  # @param [Integer] limit Upper limit for the number of records to return. stream()
89
90
  # guarantees to never return more than limit. Default is no limit.
@@ -118,8 +119,8 @@ module Twilio
118
119
  # Retrieve a single page of InviteInstance records from the API.
119
120
  # Request is executed immediately.
120
121
  # @param [String] identity The
121
- # [User](https://www.twilio.com/docs/chat/rest/users)'s `identity` value of the
122
- # resources to read. See [access
122
+ # [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value
123
+ # of the resources to read. See [access
123
124
  # tokens](https://www.twilio.com/docs/chat/create-tokens) for more details.
124
125
  # @param [String] page_token PageToken provided by the API
125
126
  # @param [Integer] page_number Page Number, this value is simply for client state
@@ -199,8 +200,8 @@ module Twilio
199
200
  # Initialize the InviteContext
200
201
  # @param [Version] version Version that contains the resource
201
202
  # @param [String] service_sid The SID of the
202
- # [Service](https://www.twilio.com/docs/chat/rest/services) to fetch the Invite
203
- # resource from.
203
+ # [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the
204
+ # Invite resource from.
204
205
  # @param [String] channel_sid The SID of the
205
206
  # [Channel](https://www.twilio.com/docs/chat/channels) the Invite resource to
206
207
  # fetch belongs to. This value can be the Channel resource's `sid` or
@@ -264,8 +265,8 @@ module Twilio
264
265
  # @param [Version] version Version that contains the resource
265
266
  # @param [Hash] payload payload that contains response from Twilio
266
267
  # @param [String] service_sid The SID of the
267
- # [Service](https://www.twilio.com/docs/chat/rest/services) the Invite resource is
268
- # associated with.
268
+ # [Service](https://www.twilio.com/docs/chat/rest/service-resource) the Invite
269
+ # resource is associated with.
269
270
  # @param [String] channel_sid The SID of the
270
271
  # [Channel](https://www.twilio.com/docs/chat/channels) the Invite resource belongs
271
272
  # to.
@@ -17,8 +17,8 @@ module Twilio
17
17
  # Initialize the MemberList
18
18
  # @param [Version] version Version that contains the resource
19
19
  # @param [String] service_sid The SID of the
20
- # [Service](https://www.twilio.com/docs/chat/rest/services) the Member resource is
21
- # associated with.
20
+ # [Service](https://www.twilio.com/docs/chat/rest/service-resource) the Member
21
+ # resource is associated with.
22
22
  # @param [String] channel_sid The SID of the
23
23
  # [Channel](https://www.twilio.com/docs/chat/channels) the Member resource belongs
24
24
  # to.
@@ -35,22 +35,22 @@ module Twilio
35
35
  # Retrieve a single page of MemberInstance records from the API.
36
36
  # Request is executed immediately.
37
37
  # @param [String] identity The `identity` value that uniquely identifies the new
38
- # resource's [User](https://www.twilio.com/docs/chat/rest/users) within the
39
- # [Service](https://www.twilio.com/docs/chat/rest/services). See [access
40
- # tokens](https://www.twilio.com/docs/chat/create-tokens) for more info.
38
+ # resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within
39
+ # the [Service](https://www.twilio.com/docs/chat/rest/service-resource). See
40
+ # [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more info.
41
41
  # @param [String] role_sid The SID of the
42
- # [Role](https://www.twilio.com/docs/chat/rest/roles) to assign to the member. The
43
- # default roles are those specified on the
44
- # [Service](https://www.twilio.com/docs/chat/api/services).
42
+ # [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the
43
+ # member. The default roles are those specified on the
44
+ # [Service](https://www.twilio.com/docs/chat/rest/service-resource).
45
45
  # @param [String] last_consumed_message_index The index of the last
46
- # [Message](https://www.twilio.com/docs/chat/rest/messages) in the
46
+ # [Message](https://www.twilio.com/docs/chat/rest/message-resource) in the
47
47
  # [Channel](https://www.twilio.com/docs/chat/channels) that the Member has read.
48
48
  # This parameter should only be used when recreating a Member from a
49
49
  # backup/separate source.
50
50
  # @param [Time] last_consumption_timestamp The [ISO
51
51
  # 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp of the last
52
- # [Message](https://www.twilio.com/docs/chat/rest/messages) read event for the
53
- # Member within the [Channel](https://www.twilio.com/docs/chat/channels).
52
+ # [Message](https://www.twilio.com/docs/chat/rest/message-resource) read event for
53
+ # the Member within the [Channel](https://www.twilio.com/docs/chat/channels).
54
54
  # @param [Time] date_created The date, specified in [ISO
55
55
  # 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource
56
56
  # as the date it was created. The default value is the current time set by the
@@ -94,8 +94,8 @@ module Twilio
94
94
  # Unlike stream(), this operation is eager and will load `limit` records into
95
95
  # memory before returning.
96
96
  # @param [String] identity The
97
- # [User](https://www.twilio.com/docs/chat/rest/users)'s `identity` value of the
98
- # Member resources to read. See [access
97
+ # [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value
98
+ # of the Member resources to read. See [access
99
99
  # tokens](https://www.twilio.com/docs/chat/create-tokens) for more details.
100
100
  # @param [Integer] limit Upper limit for the number of records to return. stream()
101
101
  # guarantees to never return more than limit. Default is no limit
@@ -113,8 +113,8 @@ module Twilio
113
113
  # This operation lazily loads records as efficiently as possible until the limit
114
114
  # is reached.
115
115
  # @param [String] identity The
116
- # [User](https://www.twilio.com/docs/chat/rest/users)'s `identity` value of the
117
- # Member resources to read. See [access
116
+ # [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value
117
+ # of the Member resources to read. See [access
118
118
  # tokens](https://www.twilio.com/docs/chat/create-tokens) for more details.
119
119
  # @param [Integer] limit Upper limit for the number of records to return. stream()
120
120
  # guarantees to never return more than limit. Default is no limit.
@@ -149,8 +149,8 @@ module Twilio
149
149
  # Retrieve a single page of MemberInstance records from the API.
150
150
  # Request is executed immediately.
151
151
  # @param [String] identity The
152
- # [User](https://www.twilio.com/docs/chat/rest/users)'s `identity` value of the
153
- # Member resources to read. See [access
152
+ # [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value
153
+ # of the Member resources to read. See [access
154
154
  # tokens](https://www.twilio.com/docs/chat/create-tokens) for more details.
155
155
  # @param [String] page_token PageToken provided by the API
156
156
  # @param [Integer] page_number Page Number, this value is simply for client state
@@ -230,8 +230,8 @@ module Twilio
230
230
  # Initialize the MemberContext
231
231
  # @param [Version] version Version that contains the resource
232
232
  # @param [String] service_sid The SID of the
233
- # [Service](https://www.twilio.com/docs/chat/rest/services) to fetch the Member
234
- # resource from.
233
+ # [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the
234
+ # Member resource from.
235
235
  # @param [String] channel_sid The SID of the
236
236
  # [Channel](https://www.twilio.com/docs/chat/channels) the Member resource to
237
237
  # fetch belongs to. This value can be the Channel resource's `sid` or
@@ -278,16 +278,16 @@ module Twilio
278
278
  ##
279
279
  # Update the MemberInstance
280
280
  # @param [String] role_sid The SID of the
281
- # [Role](https://www.twilio.com/docs/chat/rest/roles) to assign to the member. The
282
- # default roles are those specified on the
283
- # [Service](https://www.twilio.com/docs/chat/api/services).
281
+ # [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the
282
+ # member. The default roles are those specified on the
283
+ # [Service](https://www.twilio.com/docs/chat/rest/service-resource).
284
284
  # @param [String] last_consumed_message_index The index of the last
285
- # [Message](https://www.twilio.com/docs/chat/rest/messages) that the Member has
286
- # read within the [Channel](https://www.twilio.com/docs/chat/channels).
285
+ # [Message](https://www.twilio.com/docs/chat/rest/message-resource) that the
286
+ # Member has read within the [Channel](https://www.twilio.com/docs/chat/channels).
287
287
  # @param [Time] last_consumption_timestamp The [ISO
288
288
  # 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp of the last
289
- # [Message](https://www.twilio.com/docs/chat/rest/messages) read event for the
290
- # Member within the [Channel](https://www.twilio.com/docs/chat/channels).
289
+ # [Message](https://www.twilio.com/docs/chat/rest/message-resource) read event for
290
+ # the Member within the [Channel](https://www.twilio.com/docs/chat/channels).
291
291
  # @param [Time] date_created The date, specified in [ISO
292
292
  # 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource
293
293
  # as the date it was created. The default value is the current time set by the
@@ -345,8 +345,8 @@ module Twilio
345
345
  # @param [Version] version Version that contains the resource
346
346
  # @param [Hash] payload payload that contains response from Twilio
347
347
  # @param [String] service_sid The SID of the
348
- # [Service](https://www.twilio.com/docs/chat/rest/services) the Member resource is
349
- # associated with.
348
+ # [Service](https://www.twilio.com/docs/chat/rest/service-resource) the Member
349
+ # resource is associated with.
350
350
  # @param [String] channel_sid The SID of the
351
351
  # [Channel](https://www.twilio.com/docs/chat/channels) the Member resource belongs
352
352
  # to.
@@ -486,16 +486,16 @@ module Twilio
486
486
  ##
487
487
  # Update the MemberInstance
488
488
  # @param [String] role_sid The SID of the
489
- # [Role](https://www.twilio.com/docs/chat/rest/roles) to assign to the member. The
490
- # default roles are those specified on the
491
- # [Service](https://www.twilio.com/docs/chat/api/services).
489
+ # [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the
490
+ # member. The default roles are those specified on the
491
+ # [Service](https://www.twilio.com/docs/chat/rest/service-resource).
492
492
  # @param [String] last_consumed_message_index The index of the last
493
- # [Message](https://www.twilio.com/docs/chat/rest/messages) that the Member has
494
- # read within the [Channel](https://www.twilio.com/docs/chat/channels).
493
+ # [Message](https://www.twilio.com/docs/chat/rest/message-resource) that the
494
+ # Member has read within the [Channel](https://www.twilio.com/docs/chat/channels).
495
495
  # @param [Time] last_consumption_timestamp The [ISO
496
496
  # 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp of the last
497
- # [Message](https://www.twilio.com/docs/chat/rest/messages) read event for the
498
- # Member within the [Channel](https://www.twilio.com/docs/chat/channels).
497
+ # [Message](https://www.twilio.com/docs/chat/rest/message-resource) read event for
498
+ # the Member within the [Channel](https://www.twilio.com/docs/chat/channels).
499
499
  # @param [Time] date_created The date, specified in [ISO
500
500
  # 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource
501
501
  # as the date it was created. The default value is the current time set by the