twilio-ruby 7.0.0.pre.rc.1 → 7.0.0.pre.rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/test-and-deploy.yml +9 -9
- data/CHANGES.md +46 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +28 -37
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +27 -3
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +17 -5
- data/lib/twilio-ruby/rest/client.rb +5 -0
- data/lib/twilio-ruby/rest/content/v1/content.rb +60 -1
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +10 -5
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb +11 -1
- data/lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb +384 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin.rb +446 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_archive.rb +247 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration/configured_plugin.rb +393 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration.rb +386 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration_archive.rb +233 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb +332 -0
- data/lib/twilio-ruby/rest/flex_api/v1/plugin_version_archive.rb +256 -0
- data/lib/twilio-ruby/rest/flex_api/v1.rb +112 -30
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +1 -1
- data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +6 -6
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +9 -2
- data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +11 -4
- data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +5 -3
- data/lib/twilio-ruby/rest/numbers/v1/eligibility.rb +5 -3
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +5 -3
- data/lib/twilio-ruby/rest/numbers/v1.rb +3 -3
- data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +5 -3
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +15 -3
- data/lib/twilio-ruby/rest/oauth/v1/authorize.rb +143 -0
- data/lib/twilio-ruby/rest/oauth/v1/token.rb +175 -0
- data/lib/twilio-ruby/rest/oauth/v1.rb +46 -0
- data/lib/twilio-ruby/rest/oauth.rb +6 -0
- data/lib/twilio-ruby/rest/oauth_base.rb +38 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb +5 -3
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +26 -2
- data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb +9 -3
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb +9 -3
- data/lib/twilio-ruby/twiml/messaging_response.rb +1 -1
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +15 -6
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +0 -267
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +0 -332
- data/lib/twilio-ruby/rest/flex_api/v1/insights_conversational_ai.rb +0 -274
- data/lib/twilio-ruby/rest/flex_api/v1/insights_conversational_ai_report_insights.rb +0 -253
@@ -0,0 +1,175 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
4
|
+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
5
|
+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
6
|
+
#
|
7
|
+
# Twilio - Oauth
|
8
|
+
# This is the public Twilio REST API.
|
9
|
+
#
|
10
|
+
# NOTE: This class is auto generated by OpenAPI Generator.
|
11
|
+
# https://openapi-generator.tech
|
12
|
+
# Do not edit the class manually.
|
13
|
+
#
|
14
|
+
|
15
|
+
|
16
|
+
module Twilio
|
17
|
+
module REST
|
18
|
+
class Oauth < OauthBase
|
19
|
+
class V1 < Version
|
20
|
+
class TokenList < ListResource
|
21
|
+
|
22
|
+
##
|
23
|
+
# Initialize the TokenList
|
24
|
+
# @param [Version] version Version that contains the resource
|
25
|
+
# @return [TokenList] TokenList
|
26
|
+
def initialize(version)
|
27
|
+
super(version)
|
28
|
+
# Path Solution
|
29
|
+
@solution = { }
|
30
|
+
@uri = "/token"
|
31
|
+
|
32
|
+
end
|
33
|
+
##
|
34
|
+
# Create the TokenInstance
|
35
|
+
# @param [String] grant_type Grant type is a credential representing resource owner's authorization which can be used by client to obtain access token.
|
36
|
+
# @param [String] client_id A 34 character string that uniquely identifies this OAuth App.
|
37
|
+
# @param [String] client_secret The credential for confidential OAuth App.
|
38
|
+
# @param [String] code JWT token related to the authorization code grant type.
|
39
|
+
# @param [String] redirect_uri The redirect uri
|
40
|
+
# @param [String] audience The targeted audience uri
|
41
|
+
# @return [TokenInstance] Created TokenInstance
|
42
|
+
def create(
|
43
|
+
grant_type: nil,
|
44
|
+
client_id: nil,
|
45
|
+
client_secret: nil,
|
46
|
+
code: :unset,
|
47
|
+
redirect_uri: :unset,
|
48
|
+
audience: :unset
|
49
|
+
)
|
50
|
+
|
51
|
+
data = Twilio::Values.of({
|
52
|
+
'GrantType' => grant_type,
|
53
|
+
'ClientId' => client_id,
|
54
|
+
'ClientSecret' => client_secret,
|
55
|
+
'Code' => code,
|
56
|
+
'RedirectUri' => redirect_uri,
|
57
|
+
'Audience' => audience,
|
58
|
+
})
|
59
|
+
|
60
|
+
|
61
|
+
payload = @version.create('POST', @uri, data: data)
|
62
|
+
TokenInstance.new(
|
63
|
+
@version,
|
64
|
+
payload,
|
65
|
+
)
|
66
|
+
end
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
# Provide a user friendly representation
|
72
|
+
def to_s
|
73
|
+
'#<Twilio.Oauth.V1.TokenList>'
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
class TokenPage < Page
|
78
|
+
##
|
79
|
+
# Initialize the TokenPage
|
80
|
+
# @param [Version] version Version that contains the resource
|
81
|
+
# @param [Response] response Response from the API
|
82
|
+
# @param [Hash] solution Path solution for the resource
|
83
|
+
# @return [TokenPage] TokenPage
|
84
|
+
def initialize(version, response, solution)
|
85
|
+
super(version, response)
|
86
|
+
|
87
|
+
# Path Solution
|
88
|
+
@solution = solution
|
89
|
+
end
|
90
|
+
|
91
|
+
##
|
92
|
+
# Build an instance of TokenInstance
|
93
|
+
# @param [Hash] payload Payload response from the API
|
94
|
+
# @return [TokenInstance] TokenInstance
|
95
|
+
def get_instance(payload)
|
96
|
+
TokenInstance.new(@version, payload)
|
97
|
+
end
|
98
|
+
|
99
|
+
##
|
100
|
+
# Provide a user friendly representation
|
101
|
+
def to_s
|
102
|
+
'<Twilio.Oauth.V1.TokenPage>'
|
103
|
+
end
|
104
|
+
end
|
105
|
+
class TokenInstance < InstanceResource
|
106
|
+
##
|
107
|
+
# Initialize the TokenInstance
|
108
|
+
# @param [Version] version Version that contains the resource
|
109
|
+
# @param [Hash] payload payload that contains response from Twilio
|
110
|
+
# @param [String] account_sid The SID of the
|
111
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this Token
|
112
|
+
# resource.
|
113
|
+
# @param [String] sid The SID of the Call resource to fetch.
|
114
|
+
# @return [TokenInstance] TokenInstance
|
115
|
+
def initialize(version, payload )
|
116
|
+
super(version)
|
117
|
+
|
118
|
+
# Marshaled Properties
|
119
|
+
@properties = {
|
120
|
+
'access_token' => payload['access_token'],
|
121
|
+
'refresh_token' => payload['refresh_token'],
|
122
|
+
'id_token' => payload['id_token'],
|
123
|
+
'token_type' => payload['token_type'],
|
124
|
+
'expires_in' => Twilio.deserialize_iso8601_datetime(payload['expires_in']),
|
125
|
+
}
|
126
|
+
end
|
127
|
+
|
128
|
+
|
129
|
+
##
|
130
|
+
# @return [String] Token which carries the necessary information to access a Twilio resource directly.
|
131
|
+
def access_token
|
132
|
+
@properties['access_token']
|
133
|
+
end
|
134
|
+
|
135
|
+
##
|
136
|
+
# @return [String] Token which carries the information necessary to get a new access token.
|
137
|
+
def refresh_token
|
138
|
+
@properties['refresh_token']
|
139
|
+
end
|
140
|
+
|
141
|
+
##
|
142
|
+
# @return [String] Token which carries the information necessary of user profile.
|
143
|
+
def id_token
|
144
|
+
@properties['id_token']
|
145
|
+
end
|
146
|
+
|
147
|
+
##
|
148
|
+
# @return [String] Token type
|
149
|
+
def token_type
|
150
|
+
@properties['token_type']
|
151
|
+
end
|
152
|
+
|
153
|
+
##
|
154
|
+
# @return [Time]
|
155
|
+
def expires_in
|
156
|
+
@properties['expires_in']
|
157
|
+
end
|
158
|
+
|
159
|
+
##
|
160
|
+
# Provide a user friendly representation
|
161
|
+
def to_s
|
162
|
+
"<Twilio.Oauth.V1.TokenInstance>"
|
163
|
+
end
|
164
|
+
|
165
|
+
##
|
166
|
+
# Provide a detailed, user friendly representation
|
167
|
+
def inspect
|
168
|
+
"<Twilio.Oauth.V1.TokenInstance>"
|
169
|
+
end
|
170
|
+
end
|
171
|
+
|
172
|
+
end
|
173
|
+
end
|
174
|
+
end
|
175
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
4
|
+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
5
|
+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
6
|
+
#
|
7
|
+
# Twilio - Oauth
|
8
|
+
# This is the public Twilio REST API.
|
9
|
+
#
|
10
|
+
# NOTE: This class is auto generated by OpenAPI Generator.
|
11
|
+
# https://openapi-generator.tech
|
12
|
+
# Do not edit the class manually.
|
13
|
+
#
|
14
|
+
|
15
|
+
module Twilio
|
16
|
+
module REST
|
17
|
+
class Oauth
|
18
|
+
class V1 < Version
|
19
|
+
##
|
20
|
+
# Initialize the V1 version of Oauth
|
21
|
+
def initialize(domain)
|
22
|
+
super
|
23
|
+
@version = 'v1'
|
24
|
+
@authorize = nil
|
25
|
+
@token = nil
|
26
|
+
end
|
27
|
+
|
28
|
+
##
|
29
|
+
# @return [Twilio::REST::Oauth::V1::AuthorizeList]
|
30
|
+
def authorize
|
31
|
+
@authorize ||= AuthorizeList.new self
|
32
|
+
end
|
33
|
+
##
|
34
|
+
# @return [Twilio::REST::Oauth::V1::TokenList]
|
35
|
+
def token
|
36
|
+
@token ||= TokenList.new self
|
37
|
+
end
|
38
|
+
##
|
39
|
+
# Provide a user friendly representation
|
40
|
+
def to_s
|
41
|
+
'<Twilio::REST::Oauth::V1>';
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -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 OauthBase < Domain
|
14
|
+
##
|
15
|
+
# Initialize oauth domain
|
16
|
+
#
|
17
|
+
# @param twilio - The twilio client
|
18
|
+
#
|
19
|
+
def initialize(twilio)
|
20
|
+
super(twilio)
|
21
|
+
@base_url = "https://oauth.twilio.com"
|
22
|
+
@host = "oauth.twilio.com"
|
23
|
+
@port = 443
|
24
|
+
@v1 = nil
|
25
|
+
end
|
26
|
+
|
27
|
+
def v1
|
28
|
+
@v1 ||= Oauth::V1.new self
|
29
|
+
end
|
30
|
+
|
31
|
+
##
|
32
|
+
# Provide a user friendly representation
|
33
|
+
def to_s
|
34
|
+
'<Twilio::REST::Oauth::V1>';
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb
CHANGED
@@ -35,11 +35,13 @@ module Twilio
|
|
35
35
|
end
|
36
36
|
##
|
37
37
|
# Create the TaskQueueBulkRealTimeStatisticsInstance
|
38
|
+
# @param [Object] body
|
38
39
|
# @return [TaskQueueBulkRealTimeStatisticsInstance] Created TaskQueueBulkRealTimeStatisticsInstance
|
39
|
-
def create
|
40
|
+
def create(body: :unset
|
41
|
+
)
|
40
42
|
|
41
|
-
|
42
|
-
payload = @version.create('POST', @uri)
|
43
|
+
headers = Twilio::Values.of({"Content-Type"=> "application/json"})
|
44
|
+
payload = @version.create('POST', @uri, data: body.to_json, headers: headers)
|
43
45
|
TaskQueueBulkRealTimeStatisticsInstance.new(
|
44
46
|
@version,
|
45
47
|
payload,
|
@@ -35,7 +35,7 @@ module Twilio
|
|
35
35
|
# @param [EndUserType] end_user_type
|
36
36
|
# @param [PhoneNumberType] phone_number_type
|
37
37
|
# @param [BusinessIdentityType] business_identity_type
|
38
|
-
# @param [
|
38
|
+
# @param [BusinessRegistrationAuthority] business_registration_authority
|
39
39
|
# @param [String] business_legal_name he name of the business or organization using the Tollfree number.
|
40
40
|
# @param [String] notification_email he email address to receive the notification about the verification result.
|
41
41
|
# @param [Boolean] accepted_notification_receipt The email address to receive the notification about the verification result.
|
@@ -62,6 +62,14 @@ module Twilio
|
|
62
62
|
# @param [Boolean] use_address_as_emergency_address Use the business address as the emergency address
|
63
63
|
# @param [String] file_name The name of the verification document to upload
|
64
64
|
# @param [String] file The verification document to upload
|
65
|
+
# @param [String] first_name The first name of the Individual User.
|
66
|
+
# @param [String] last_name The last name of the Individual User.
|
67
|
+
# @param [String] date_of_birth The date of birth of the Individual User.
|
68
|
+
# @param [String] individual_email The email address of the Individual User.
|
69
|
+
# @param [String] individual_phone The phone number of the Individual User.
|
70
|
+
# @param [Boolean] is_isv_embed Indicates if the inquiry is being started from an ISV embedded component.
|
71
|
+
# @param [String] isv_registering_for_self_or_tenant Indicates if the isv registering for self or tenant.
|
72
|
+
# @param [String] status_callback_url The url we call to inform you of bundle changes.
|
65
73
|
# @return [ComplianceRegistrationInquiriesInstance] Created ComplianceRegistrationInquiriesInstance
|
66
74
|
def create(
|
67
75
|
end_user_type: nil,
|
@@ -93,7 +101,15 @@ module Twilio
|
|
93
101
|
emergency_address_country_code: :unset,
|
94
102
|
use_address_as_emergency_address: :unset,
|
95
103
|
file_name: :unset,
|
96
|
-
file: :unset
|
104
|
+
file: :unset,
|
105
|
+
first_name: :unset,
|
106
|
+
last_name: :unset,
|
107
|
+
date_of_birth: :unset,
|
108
|
+
individual_email: :unset,
|
109
|
+
individual_phone: :unset,
|
110
|
+
is_isv_embed: :unset,
|
111
|
+
isv_registering_for_self_or_tenant: :unset,
|
112
|
+
status_callback_url: :unset
|
97
113
|
)
|
98
114
|
|
99
115
|
data = Twilio::Values.of({
|
@@ -127,6 +143,14 @@ module Twilio
|
|
127
143
|
'UseAddressAsEmergencyAddress' => use_address_as_emergency_address,
|
128
144
|
'FileName' => file_name,
|
129
145
|
'File' => file,
|
146
|
+
'FirstName' => first_name,
|
147
|
+
'LastName' => last_name,
|
148
|
+
'DateOfBirth' => date_of_birth,
|
149
|
+
'IndividualEmail' => individual_email,
|
150
|
+
'IndividualPhone' => individual_phone,
|
151
|
+
'IsIsvEmbed' => is_isv_embed,
|
152
|
+
'IsvRegisteringForSelfOrTenant' => isv_registering_for_self_or_tenant,
|
153
|
+
'StatusCallbackUrl' => status_callback_url,
|
130
154
|
})
|
131
155
|
|
132
156
|
|
data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb
CHANGED
@@ -58,6 +58,7 @@ module Twilio
|
|
58
58
|
# Lists CustomerProfilesEntityAssignmentsInstance records from the API as a list.
|
59
59
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
60
60
|
# memory before returning.
|
61
|
+
# @param [String] object_type A string to filter the results by (EndUserType or SupportingDocumentType) machine-name. This is useful when you want to retrieve the entity-assignment of a specific end-user or supporting document.
|
61
62
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
62
63
|
# guarantees to never return more than limit. Default is no limit
|
63
64
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -65,8 +66,9 @@ module Twilio
|
|
65
66
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
66
67
|
# efficient page size, i.e. min(limit, 1000)
|
67
68
|
# @return [Array] Array of up to limit results
|
68
|
-
def list(limit: nil, page_size: nil)
|
69
|
+
def list(object_type: :unset, limit: nil, page_size: nil)
|
69
70
|
self.stream(
|
71
|
+
object_type: object_type,
|
70
72
|
limit: limit,
|
71
73
|
page_size: page_size
|
72
74
|
).entries
|
@@ -76,6 +78,7 @@ module Twilio
|
|
76
78
|
# Streams Instance records from the API as an Enumerable.
|
77
79
|
# This operation lazily loads records as efficiently as possible until the limit
|
78
80
|
# is reached.
|
81
|
+
# @param [String] object_type A string to filter the results by (EndUserType or SupportingDocumentType) machine-name. This is useful when you want to retrieve the entity-assignment of a specific end-user or supporting document.
|
79
82
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
80
83
|
# guarantees to never return more than limit. Default is no limit
|
81
84
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -83,10 +86,11 @@ module Twilio
|
|
83
86
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
84
87
|
# efficient page size, i.e. min(limit, 1000)
|
85
88
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
86
|
-
def stream(limit: nil, page_size: nil)
|
89
|
+
def stream(object_type: :unset, limit: nil, page_size: nil)
|
87
90
|
limits = @version.read_limits(limit, page_size)
|
88
91
|
|
89
92
|
page = self.page(
|
93
|
+
object_type: object_type,
|
90
94
|
page_size: limits[:page_size], )
|
91
95
|
|
92
96
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
@@ -109,12 +113,14 @@ module Twilio
|
|
109
113
|
##
|
110
114
|
# Retrieve a single page of CustomerProfilesEntityAssignmentsInstance records from the API.
|
111
115
|
# Request is executed immediately.
|
116
|
+
# @param [String] object_type A string to filter the results by (EndUserType or SupportingDocumentType) machine-name. This is useful when you want to retrieve the entity-assignment of a specific end-user or supporting document.
|
112
117
|
# @param [String] page_token PageToken provided by the API
|
113
118
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
114
119
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
115
120
|
# @return [Page] Page of CustomerProfilesEntityAssignmentsInstance
|
116
|
-
def page(page_token: :unset, page_number: :unset, page_size: :unset)
|
121
|
+
def page(object_type: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
117
122
|
params = Twilio::Values.of({
|
123
|
+
'ObjectType' => object_type,
|
118
124
|
'PageToken' => page_token,
|
119
125
|
'Page' => page_number,
|
120
126
|
'PageSize' => page_size,
|
@@ -58,6 +58,7 @@ module Twilio
|
|
58
58
|
# Lists TrustProductsEntityAssignmentsInstance records from the API as a list.
|
59
59
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
60
60
|
# memory before returning.
|
61
|
+
# @param [String] object_type A string to filter the results by (EndUserType or SupportingDocumentType) machine-name. This is useful when you want to retrieve the entity-assignment of a specific end-user or supporting document.
|
61
62
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
62
63
|
# guarantees to never return more than limit. Default is no limit
|
63
64
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -65,8 +66,9 @@ module Twilio
|
|
65
66
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
66
67
|
# efficient page size, i.e. min(limit, 1000)
|
67
68
|
# @return [Array] Array of up to limit results
|
68
|
-
def list(limit: nil, page_size: nil)
|
69
|
+
def list(object_type: :unset, limit: nil, page_size: nil)
|
69
70
|
self.stream(
|
71
|
+
object_type: object_type,
|
70
72
|
limit: limit,
|
71
73
|
page_size: page_size
|
72
74
|
).entries
|
@@ -76,6 +78,7 @@ module Twilio
|
|
76
78
|
# Streams Instance records from the API as an Enumerable.
|
77
79
|
# This operation lazily loads records as efficiently as possible until the limit
|
78
80
|
# is reached.
|
81
|
+
# @param [String] object_type A string to filter the results by (EndUserType or SupportingDocumentType) machine-name. This is useful when you want to retrieve the entity-assignment of a specific end-user or supporting document.
|
79
82
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
80
83
|
# guarantees to never return more than limit. Default is no limit
|
81
84
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -83,10 +86,11 @@ module Twilio
|
|
83
86
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
84
87
|
# efficient page size, i.e. min(limit, 1000)
|
85
88
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
86
|
-
def stream(limit: nil, page_size: nil)
|
89
|
+
def stream(object_type: :unset, limit: nil, page_size: nil)
|
87
90
|
limits = @version.read_limits(limit, page_size)
|
88
91
|
|
89
92
|
page = self.page(
|
93
|
+
object_type: object_type,
|
90
94
|
page_size: limits[:page_size], )
|
91
95
|
|
92
96
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
@@ -109,12 +113,14 @@ module Twilio
|
|
109
113
|
##
|
110
114
|
# Retrieve a single page of TrustProductsEntityAssignmentsInstance records from the API.
|
111
115
|
# Request is executed immediately.
|
116
|
+
# @param [String] object_type A string to filter the results by (EndUserType or SupportingDocumentType) machine-name. This is useful when you want to retrieve the entity-assignment of a specific end-user or supporting document.
|
112
117
|
# @param [String] page_token PageToken provided by the API
|
113
118
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
114
119
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
115
120
|
# @return [Page] Page of TrustProductsEntityAssignmentsInstance
|
116
|
-
def page(page_token: :unset, page_number: :unset, page_size: :unset)
|
121
|
+
def page(object_type: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
117
122
|
params = Twilio::Values.of({
|
123
|
+
'ObjectType' => object_type,
|
118
124
|
'PageToken' => page_token,
|
119
125
|
'Page' => page_number,
|
120
126
|
'PageSize' => page_size,
|
@@ -23,7 +23,7 @@ module Twilio
|
|
23
23
|
# body:: Message Body
|
24
24
|
# to:: Phone Number to send Message to
|
25
25
|
# from:: Phone Number to send Message from
|
26
|
-
# action::
|
26
|
+
# action:: A URL specifying where Twilio should send status callbacks for the created outbound message.
|
27
27
|
# method:: Action URL Method
|
28
28
|
# status_callback:: Status callback URL. Deprecated in favor of action.
|
29
29
|
# keyword_args:: additional attributes
|
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.0.0.pre.rc.
|
4
|
+
version: 7.0.0.pre.rc.3
|
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: 2024-
|
11
|
+
date: 2024-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -270,8 +270,6 @@ files:
|
|
270
270
|
- lib/twilio-ruby/rest/api/v2010/account/balance.rb
|
271
271
|
- lib/twilio-ruby/rest/api/v2010/account/call.rb
|
272
272
|
- lib/twilio-ruby/rest/api/v2010/account/call/event.rb
|
273
|
-
- lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb
|
274
|
-
- lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb
|
275
273
|
- lib/twilio-ruby/rest/api/v2010/account/call/notification.rb
|
276
274
|
- lib/twilio-ruby/rest/api/v2010/account/call/payment.rb
|
277
275
|
- lib/twilio-ruby/rest/api/v2010/account/call/recording.rb
|
@@ -426,8 +424,6 @@ files:
|
|
426
424
|
- lib/twilio-ruby/rest/flex_api/v1/configuration.rb
|
427
425
|
- lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb
|
428
426
|
- lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb
|
429
|
-
- lib/twilio-ruby/rest/flex_api/v1/insights_conversational_ai.rb
|
430
|
-
- lib/twilio-ruby/rest/flex_api/v1/insights_conversational_ai_report_insights.rb
|
431
427
|
- lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb
|
432
428
|
- lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb
|
433
429
|
- lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb
|
@@ -441,6 +437,14 @@ files:
|
|
441
437
|
- lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb
|
442
438
|
- lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb
|
443
439
|
- lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb
|
440
|
+
- lib/twilio-ruby/rest/flex_api/v1/plugin.rb
|
441
|
+
- lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb
|
442
|
+
- lib/twilio-ruby/rest/flex_api/v1/plugin_archive.rb
|
443
|
+
- lib/twilio-ruby/rest/flex_api/v1/plugin_configuration.rb
|
444
|
+
- lib/twilio-ruby/rest/flex_api/v1/plugin_configuration/configured_plugin.rb
|
445
|
+
- lib/twilio-ruby/rest/flex_api/v1/plugin_configuration_archive.rb
|
446
|
+
- lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb
|
447
|
+
- lib/twilio-ruby/rest/flex_api/v1/plugin_version_archive.rb
|
444
448
|
- lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb
|
445
449
|
- lib/twilio-ruby/rest/flex_api/v1/web_channel.rb
|
446
450
|
- lib/twilio-ruby/rest/flex_api/v2.rb
|
@@ -579,6 +583,11 @@ files:
|
|
579
583
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb
|
580
584
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb
|
581
585
|
- lib/twilio-ruby/rest/numbers_base.rb
|
586
|
+
- lib/twilio-ruby/rest/oauth.rb
|
587
|
+
- lib/twilio-ruby/rest/oauth/v1.rb
|
588
|
+
- lib/twilio-ruby/rest/oauth/v1/authorize.rb
|
589
|
+
- lib/twilio-ruby/rest/oauth/v1/token.rb
|
590
|
+
- lib/twilio-ruby/rest/oauth_base.rb
|
582
591
|
- lib/twilio-ruby/rest/preview.rb
|
583
592
|
- lib/twilio-ruby/rest/preview/deployed_devices.rb
|
584
593
|
- lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb
|