twilio-ruby 7.5.0 → 7.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGES.md +18 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/accounts/v1/safelist.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +3 -0
- data/lib/twilio-ruby/rest/client.rb +5 -0
- data/lib/twilio-ruby/rest/flex_api/v2/flex_user.rb +0 -39
- data/lib/twilio-ruby/rest/iam/v1/token.rb +186 -0
- data/lib/twilio-ruby/rest/iam/v1.rb +6 -0
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge/chunk.rb +232 -0
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb +213 -0
- data/lib/twilio-ruby/rest/knowledge/v1/knowledge.rb +617 -0
- data/lib/twilio-ruby/rest/{preview/sync.rb → knowledge/v1.rb} +16 -16
- data/lib/twilio-ruby/rest/knowledge.rb +6 -0
- data/lib/twilio-ruby/rest/knowledge_base.rb +38 -0
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +2 -2
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +1 -1
- data/lib/twilio-ruby/rest/preview_base.rb +0 -5
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb +7 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb +7 -0
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb +7 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +2 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +2 -2
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +4 -1
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +9 -12
- data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +0 -407
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +0 -472
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +0 -467
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +0 -407
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +0 -444
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +0 -470
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +0 -407
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +0 -444
- data/lib/twilio-ruby/rest/preview/sync/service.rb +0 -529
@@ -0,0 +1,38 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
4
|
+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
5
|
+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
6
|
+
#
|
7
|
+
# NOTE: This class is auto generated by OpenAPI Generator.
|
8
|
+
# https://openapi-generator.tech
|
9
|
+
# Do not edit the class manually.
|
10
|
+
# frozen_string_literal: true
|
11
|
+
module Twilio
|
12
|
+
module REST
|
13
|
+
class KnowledgeBase < Domain
|
14
|
+
##
|
15
|
+
# Initialize knowledge domain
|
16
|
+
#
|
17
|
+
# @param twilio - The twilio client
|
18
|
+
#
|
19
|
+
def initialize(twilio)
|
20
|
+
super(twilio)
|
21
|
+
@base_url = "https://knowledge.twilio.com"
|
22
|
+
@host = "knowledge.twilio.com"
|
23
|
+
@port = 443
|
24
|
+
@v1 = nil
|
25
|
+
end
|
26
|
+
|
27
|
+
def v1
|
28
|
+
@v1 ||= Knowledge::V1.new self
|
29
|
+
end
|
30
|
+
|
31
|
+
##
|
32
|
+
# Provide a user friendly representation
|
33
|
+
def to_s
|
34
|
+
'<Twilio::REST::Knowledge::V1>';
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -58,7 +58,7 @@ module Twilio
|
|
58
58
|
##
|
59
59
|
# Fetch the PhoneNumberInstance
|
60
60
|
# @param [String] country_code The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the phone number to fetch. This is used to specify the country when the phone number is provided in a national format.
|
61
|
-
# @param [Array[String]] type The type of information to return. Can be: `carrier` or `caller-name`. The default is null.
|
61
|
+
# @param [Array[String]] type The type of information to return. Can be: `carrier` or `caller-name`. The default is null. To retrieve both types of information, specify this parameter twice; once with `carrier` and once with `caller-name` as the value.
|
62
62
|
# @param [Array[String]] add_ons The `unique_name` of an Add-on you would like to invoke. Can be the `unique_name` of an Add-on that is installed on your account. You can specify multiple instances of this parameter to invoke multiple Add-ons. For more information about Add-ons, see the [Add-ons documentation](https://www.twilio.com/docs/add-ons).
|
63
63
|
# @param [Hash] add_ons_data Data specific to the add-on you would like to invoke. The content and format of this value depends on the add-on.
|
64
64
|
# @return [PhoneNumberInstance] Fetched PhoneNumberInstance
|
@@ -218,7 +218,7 @@ module Twilio
|
|
218
218
|
##
|
219
219
|
# Fetch the PhoneNumberInstance
|
220
220
|
# @param [String] country_code The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the phone number to fetch. This is used to specify the country when the phone number is provided in a national format.
|
221
|
-
# @param [Array[String]] type The type of information to return. Can be: `carrier` or `caller-name`. The default is null.
|
221
|
+
# @param [Array[String]] type The type of information to return. Can be: `carrier` or `caller-name`. The default is null. To retrieve both types of information, specify this parameter twice; once with `carrier` and once with `caller-name` as the value.
|
222
222
|
# @param [Array[String]] add_ons The `unique_name` of an Add-on you would like to invoke. Can be the `unique_name` of an Add-on that is installed on your account. You can specify multiple instances of this parameter to invoke multiple Add-ons. For more information about Add-ons, see the [Add-ons documentation](https://www.twilio.com/docs/add-ons).
|
223
223
|
# @param [Hash] add_ons_data Data specific to the add-on you would like to invoke. The content and format of this value depends on the add-on.
|
224
224
|
# @return [PhoneNumberInstance] Fetched PhoneNumberInstance
|
@@ -295,7 +295,7 @@ module Twilio
|
|
295
295
|
end
|
296
296
|
|
297
297
|
##
|
298
|
-
# @return [String] The SID of the actor that caused the event, if available.
|
298
|
+
# @return [String] The SID of the actor that caused the event, if available. This can be either a User ID (matching the pattern `^US[0-9a-fA-F]{32}$`) or an Account SID (matching the pattern `^AC[0-9a-fA-F]{32}$`). If the actor's SID isn't available, this field will be `null`.
|
299
299
|
def actor_sid
|
300
300
|
@properties['actor_sid']
|
301
301
|
end
|
@@ -22,7 +22,6 @@ module Twilio
|
|
22
22
|
@host = "preview.twilio.com"
|
23
23
|
@port = 443
|
24
24
|
@hosted_numbers = nil
|
25
|
-
@sync = nil
|
26
25
|
@marketplace = nil
|
27
26
|
@wireless = nil
|
28
27
|
end
|
@@ -31,10 +30,6 @@ module Twilio
|
|
31
30
|
@hosted_numbers ||= Preview::HostedNumbers.new self
|
32
31
|
end
|
33
32
|
|
34
|
-
def sync
|
35
|
-
@sync ||= Preview::Sync.new self
|
36
|
-
end
|
37
|
-
|
38
33
|
def marketplace
|
39
34
|
@marketplace ||= Preview::Marketplace.new self
|
40
35
|
end
|
@@ -246,6 +246,7 @@ module Twilio
|
|
246
246
|
'engagement_sid' => payload['engagement_sid'],
|
247
247
|
'name' => payload['name'],
|
248
248
|
'context' => payload['context'],
|
249
|
+
'parent_step_sid' => payload['parent_step_sid'],
|
249
250
|
'transitioned_from' => payload['transitioned_from'],
|
250
251
|
'transitioned_to' => payload['transitioned_to'],
|
251
252
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
@@ -306,6 +307,12 @@ module Twilio
|
|
306
307
|
@properties['context']
|
307
308
|
end
|
308
309
|
|
310
|
+
##
|
311
|
+
# @return [String] The SID of the parent Step.
|
312
|
+
def parent_step_sid
|
313
|
+
@properties['parent_step_sid']
|
314
|
+
end
|
315
|
+
|
309
316
|
##
|
310
317
|
# @return [String] The Widget that preceded the Widget for the Step.
|
311
318
|
def transitioned_from
|
@@ -244,6 +244,7 @@ module Twilio
|
|
244
244
|
'account_sid' => payload['account_sid'],
|
245
245
|
'flow_sid' => payload['flow_sid'],
|
246
246
|
'execution_sid' => payload['execution_sid'],
|
247
|
+
'parent_step_sid' => payload['parent_step_sid'],
|
247
248
|
'name' => payload['name'],
|
248
249
|
'context' => payload['context'],
|
249
250
|
'transitioned_from' => payload['transitioned_from'],
|
@@ -294,6 +295,12 @@ module Twilio
|
|
294
295
|
@properties['execution_sid']
|
295
296
|
end
|
296
297
|
|
298
|
+
##
|
299
|
+
# @return [String] This field shows the Step SID of the Widget in the parent Flow that started the Subflow. If this Step is not part of a Subflow execution, the value is null.
|
300
|
+
def parent_step_sid
|
301
|
+
@properties['parent_step_sid']
|
302
|
+
end
|
303
|
+
|
297
304
|
##
|
298
305
|
# @return [String] The event that caused the Flow to transition to the Step.
|
299
306
|
def name
|
@@ -244,6 +244,7 @@ module Twilio
|
|
244
244
|
'account_sid' => payload['account_sid'],
|
245
245
|
'flow_sid' => payload['flow_sid'],
|
246
246
|
'execution_sid' => payload['execution_sid'],
|
247
|
+
'parent_step_sid' => payload['parent_step_sid'],
|
247
248
|
'name' => payload['name'],
|
248
249
|
'context' => payload['context'],
|
249
250
|
'transitioned_from' => payload['transitioned_from'],
|
@@ -294,6 +295,12 @@ module Twilio
|
|
294
295
|
@properties['execution_sid']
|
295
296
|
end
|
296
297
|
|
298
|
+
##
|
299
|
+
# @return [String] The SID of the parent Step.
|
300
|
+
def parent_step_sid
|
301
|
+
@properties['parent_step_sid']
|
302
|
+
end
|
303
|
+
|
297
304
|
##
|
298
305
|
# @return [String] The event that caused the Flow to transition to the Step.
|
299
306
|
def name
|
@@ -226,7 +226,7 @@ module Twilio
|
|
226
226
|
# @param [String] recording_status_callback_method The HTTP method we should use when we call `recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`.
|
227
227
|
# @param [String] conference_recording_status_callback The URL we should call using the `conference_recording_status_callback_method` when the conference recording is available.
|
228
228
|
# @param [String] conference_recording_status_callback_method The HTTP method we should use to call `conference_recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`.
|
229
|
-
# @param [String] region The [region](https://support.twilio.com/hc/en-us/articles/223132167-How-global-low-latency-routing-and-region-selection-work-for-conferences-and-Client-calls) where we should mix the recorded audio. Can be:`us1`, `ie1`, `de1`, `sg1`, `br1`, `au1`, or `jp1`.
|
229
|
+
# @param [String] region The [region](https://support.twilio.com/hc/en-us/articles/223132167-How-global-low-latency-routing-and-region-selection-work-for-conferences-and-Client-calls) where we should mix the recorded audio. Can be:`us1`, `us2`, `ie1`, `de1`, `sg1`, `br1`, `au1`, or `jp1`.
|
230
230
|
# @param [String] sip_auth_username The SIP username used for authentication.
|
231
231
|
# @param [String] sip_auth_password The SIP password for authentication.
|
232
232
|
# @param [Array[String]] dequeue_status_callback_event The Call progress events sent via webhooks as a result of a Dequeue instruction.
|
@@ -577,7 +577,7 @@ module Twilio
|
|
577
577
|
# @param [String] recording_status_callback_method The HTTP method we should use when we call `recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`.
|
578
578
|
# @param [String] conference_recording_status_callback The URL we should call using the `conference_recording_status_callback_method` when the conference recording is available.
|
579
579
|
# @param [String] conference_recording_status_callback_method The HTTP method we should use to call `conference_recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`.
|
580
|
-
# @param [String] region The [region](https://support.twilio.com/hc/en-us/articles/223132167-How-global-low-latency-routing-and-region-selection-work-for-conferences-and-Client-calls) where we should mix the recorded audio. Can be:`us1`, `ie1`, `de1`, `sg1`, `br1`, `au1`, or `jp1`.
|
580
|
+
# @param [String] region The [region](https://support.twilio.com/hc/en-us/articles/223132167-How-global-low-latency-routing-and-region-selection-work-for-conferences-and-Client-calls) where we should mix the recorded audio. Can be:`us1`, `us2`, `ie1`, `de1`, `sg1`, `br1`, `au1`, or `jp1`.
|
581
581
|
# @param [String] sip_auth_username The SIP username used for authentication.
|
582
582
|
# @param [String] sip_auth_password The SIP password for authentication.
|
583
583
|
# @param [Array[String]] dequeue_status_callback_event The Call progress events sent via webhooks as a result of a Dequeue instruction.
|
@@ -220,7 +220,7 @@ module Twilio
|
|
220
220
|
# @param [String] recording_status_callback_method The HTTP method we should use when we call `recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`.
|
221
221
|
# @param [String] conference_recording_status_callback The URL we should call using the `conference_recording_status_callback_method` when the conference recording is available.
|
222
222
|
# @param [String] conference_recording_status_callback_method The HTTP method we should use to call `conference_recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`.
|
223
|
-
# @param [String] region The [region](https://support.twilio.com/hc/en-us/articles/223132167-How-global-low-latency-routing-and-region-selection-work-for-conferences-and-Client-calls) where we should mix the recorded audio. Can be:`us1`, `ie1`, `de1`, `sg1`, `br1`, `au1`, or `jp1`.
|
223
|
+
# @param [String] region The [region](https://support.twilio.com/hc/en-us/articles/223132167-How-global-low-latency-routing-and-region-selection-work-for-conferences-and-Client-calls) where we should mix the recorded audio. Can be:`us1`, `us2`, `ie1`, `de1`, `sg1`, `br1`, `au1`, or `jp1`.
|
224
224
|
# @param [String] sip_auth_username The SIP username used for authentication.
|
225
225
|
# @param [String] sip_auth_password The SIP password for authentication.
|
226
226
|
# @param [Array[String]] dequeue_status_callback_event The call progress events sent via webhooks as a result of a Dequeue instruction.
|
@@ -565,7 +565,7 @@ module Twilio
|
|
565
565
|
# @param [String] recording_status_callback_method The HTTP method we should use when we call `recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`.
|
566
566
|
# @param [String] conference_recording_status_callback The URL we should call using the `conference_recording_status_callback_method` when the conference recording is available.
|
567
567
|
# @param [String] conference_recording_status_callback_method The HTTP method we should use to call `conference_recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`.
|
568
|
-
# @param [String] region The [region](https://support.twilio.com/hc/en-us/articles/223132167-How-global-low-latency-routing-and-region-selection-work-for-conferences-and-Client-calls) where we should mix the recorded audio. Can be:`us1`, `ie1`, `de1`, `sg1`, `br1`, `au1`, or `jp1`.
|
568
|
+
# @param [String] region The [region](https://support.twilio.com/hc/en-us/articles/223132167-How-global-low-latency-routing-and-region-selection-work-for-conferences-and-Client-calls) where we should mix the recorded audio. Can be:`us1`, `us2`, `ie1`, `de1`, `sg1`, `br1`, `au1`, or `jp1`.
|
569
569
|
# @param [String] sip_auth_username The SIP username used for authentication.
|
570
570
|
# @param [String] sip_auth_password The SIP password for authentication.
|
571
571
|
# @param [Array[String]] dequeue_status_callback_event The call progress events sent via webhooks as a result of a Dequeue instruction.
|
@@ -43,6 +43,7 @@ module Twilio
|
|
43
43
|
# @param [Array[String]] international_roaming The list of services that SIMs capable of using GPRS/3G/4G/LTE data connectivity can use outside of the United States. Can contain: `data` and `messaging`.
|
44
44
|
# @param [String] national_roaming_data_limit The total data usage (download and upload combined) in Megabytes that the Network allows during one month on non-home networks in the United States. The metering period begins the day of activation and ends on the same day in the following month. Can be up to 2TB. See [national roaming](https://www.twilio.com/docs/iot/wireless/api/rateplan-resource#national-roaming) for more info.
|
45
45
|
# @param [String] international_roaming_data_limit The total data usage (download and upload combined) in Megabytes that the Network allows during one month when roaming outside the United States. Can be up to 2TB.
|
46
|
+
# @param [DataLimitStrategy] data_limit_strategy
|
46
47
|
# @return [RatePlanInstance] Created RatePlanInstance
|
47
48
|
def create(
|
48
49
|
unique_name: :unset,
|
@@ -55,7 +56,8 @@ module Twilio
|
|
55
56
|
national_roaming_enabled: :unset,
|
56
57
|
international_roaming: :unset,
|
57
58
|
national_roaming_data_limit: :unset,
|
58
|
-
international_roaming_data_limit: :unset
|
59
|
+
international_roaming_data_limit: :unset,
|
60
|
+
data_limit_strategy: :unset
|
59
61
|
)
|
60
62
|
|
61
63
|
data = Twilio::Values.of({
|
@@ -70,6 +72,7 @@ module Twilio
|
|
70
72
|
'InternationalRoaming' => Twilio.serialize_list(international_roaming) { |e| e },
|
71
73
|
'NationalRoamingDataLimit' => national_roaming_data_limit,
|
72
74
|
'InternationalRoamingDataLimit' => international_roaming_data_limit,
|
75
|
+
'DataLimitStrategy' => data_limit_strategy,
|
73
76
|
})
|
74
77
|
|
75
78
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
data/lib/twilio-ruby/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twilio-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.5.
|
4
|
+
version: 7.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Twilio API Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -526,6 +526,7 @@ files:
|
|
526
526
|
- lib/twilio-ruby/rest/iam/v1/api_key.rb
|
527
527
|
- lib/twilio-ruby/rest/iam/v1/get_api_keys.rb
|
528
528
|
- lib/twilio-ruby/rest/iam/v1/new_api_key.rb
|
529
|
+
- lib/twilio-ruby/rest/iam/v1/token.rb
|
529
530
|
- lib/twilio-ruby/rest/iam_base.rb
|
530
531
|
- lib/twilio-ruby/rest/insights.rb
|
531
532
|
- lib/twilio-ruby/rest/insights/v1.rb
|
@@ -580,6 +581,12 @@ files:
|
|
580
581
|
- lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb
|
581
582
|
- lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb
|
582
583
|
- lib/twilio-ruby/rest/ip_messaging_base.rb
|
584
|
+
- lib/twilio-ruby/rest/knowledge.rb
|
585
|
+
- lib/twilio-ruby/rest/knowledge/v1.rb
|
586
|
+
- lib/twilio-ruby/rest/knowledge/v1/knowledge.rb
|
587
|
+
- lib/twilio-ruby/rest/knowledge/v1/knowledge/chunk.rb
|
588
|
+
- lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb
|
589
|
+
- lib/twilio-ruby/rest/knowledge_base.rb
|
583
590
|
- lib/twilio-ruby/rest/lookups.rb
|
584
591
|
- lib/twilio-ruby/rest/lookups/v1.rb
|
585
592
|
- lib/twilio-ruby/rest/lookups/v1/phone_number.rb
|
@@ -687,16 +694,6 @@ files:
|
|
687
694
|
- lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb
|
688
695
|
- lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb
|
689
696
|
- lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb
|
690
|
-
- lib/twilio-ruby/rest/preview/sync.rb
|
691
|
-
- lib/twilio-ruby/rest/preview/sync/service.rb
|
692
|
-
- lib/twilio-ruby/rest/preview/sync/service/document.rb
|
693
|
-
- lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb
|
694
|
-
- lib/twilio-ruby/rest/preview/sync/service/sync_list.rb
|
695
|
-
- lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb
|
696
|
-
- lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb
|
697
|
-
- lib/twilio-ruby/rest/preview/sync/service/sync_map.rb
|
698
|
-
- lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb
|
699
|
-
- lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb
|
700
697
|
- lib/twilio-ruby/rest/preview/wireless.rb
|
701
698
|
- lib/twilio-ruby/rest/preview/wireless/command.rb
|
702
699
|
- lib/twilio-ruby/rest/preview/wireless/rate_plan.rb
|