twilio-ruby 7.3.0 → 7.3.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 +21 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb +133 -0
- data/lib/twilio-ruby/rest/accounts/v1/bulk_contacts.rb +133 -0
- data/lib/twilio-ruby/rest/accounts/v1.rb +12 -0
- data/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_knowledge.rb +355 -0
- data/lib/twilio-ruby/rest/assistants/v1/assistant/assistants_tool.rb +362 -0
- data/lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb +303 -0
- data/lib/twilio-ruby/rest/assistants/v1/assistant/message.rb +201 -0
- data/lib/twilio-ruby/rest/assistants/v1/assistant.rb +668 -0
- data/lib/twilio-ruby/rest/assistants/v1/knowledge/chunk.rb +229 -0
- data/lib/twilio-ruby/rest/assistants/v1/knowledge/knowledge_status.rb +209 -0
- data/lib/twilio-ruby/rest/assistants/v1/knowledge.rb +591 -0
- data/lib/twilio-ruby/rest/assistants/v1/policy.rb +264 -0
- data/lib/twilio-ruby/rest/assistants/v1/session/message.rb +264 -0
- data/lib/twilio-ruby/rest/assistants/v1/session.rb +328 -0
- data/lib/twilio-ruby/rest/assistants/v1/tool.rb +586 -0
- data/lib/twilio-ruby/rest/assistants/v1.rb +100 -0
- data/lib/twilio-ruby/rest/assistants.rb +6 -0
- data/lib/twilio-ruby/rest/assistants_base.rb +38 -0
- data/lib/twilio-ruby/rest/client.rb +5 -0
- data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +11 -11
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb +11 -24
- data/lib/twilio-ruby/rest/marketplace/v1/module_data_management.rb +28 -15
- data/lib/twilio-ruby/rest/numbers/v1/{porting_webhook_configuration_fetch.rb → webhook.rb} +20 -20
- data/lib/twilio-ruby/rest/numbers/v1.rb +6 -6
- data/lib/twilio-ruby/rest/numbers/v2/bundle_clone.rb +2 -2
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +4 -4
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +4 -1
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +20 -3
@@ -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 AssistantsBase < Domain
|
14
|
+
##
|
15
|
+
# Initialize assistants domain
|
16
|
+
#
|
17
|
+
# @param twilio - The twilio client
|
18
|
+
#
|
19
|
+
def initialize(twilio)
|
20
|
+
super(twilio)
|
21
|
+
@base_url = "https://assistants.twilio.com"
|
22
|
+
@host = "assistants.twilio.com"
|
23
|
+
@port = 443
|
24
|
+
@v1 = nil
|
25
|
+
end
|
26
|
+
|
27
|
+
def v1
|
28
|
+
@v1 ||= Assistants::V1.new self
|
29
|
+
end
|
30
|
+
|
31
|
+
##
|
32
|
+
# Provide a user friendly representation
|
33
|
+
def to_s
|
34
|
+
'<Twilio::REST::Assistants::V1>';
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -27,6 +27,11 @@ module Twilio
|
|
27
27
|
@api ||= Api.new self
|
28
28
|
end
|
29
29
|
##
|
30
|
+
# Access the Assistants Twilio Domain
|
31
|
+
def assistants
|
32
|
+
@assistants ||= Assistants.new self
|
33
|
+
end
|
34
|
+
##
|
30
35
|
# Access the Bulkexports Twilio Domain
|
31
36
|
def bulkexports
|
32
37
|
@bulkexports ||= Bulkexports.new self
|
@@ -25,10 +25,10 @@ module Twilio
|
|
25
25
|
# Initialize the ApprovalFetchList
|
26
26
|
# @param [Version] version Version that contains the resource
|
27
27
|
# @return [ApprovalFetchList] ApprovalFetchList
|
28
|
-
def initialize(version,
|
28
|
+
def initialize(version, sid: nil)
|
29
29
|
super(version)
|
30
30
|
# Path Solution
|
31
|
-
@solution = {
|
31
|
+
@solution = { sid: sid }
|
32
32
|
|
33
33
|
|
34
34
|
end
|
@@ -46,14 +46,14 @@ module Twilio
|
|
46
46
|
##
|
47
47
|
# Initialize the ApprovalFetchContext
|
48
48
|
# @param [Version] version Version that contains the resource
|
49
|
-
# @param [String]
|
49
|
+
# @param [String] sid The Twilio-provided string that uniquely identifies the Content resource whose approval information to fetch.
|
50
50
|
# @return [ApprovalFetchContext] ApprovalFetchContext
|
51
|
-
def initialize(version,
|
51
|
+
def initialize(version, sid)
|
52
52
|
super(version)
|
53
53
|
|
54
54
|
# Path Solution
|
55
|
-
@solution = {
|
56
|
-
@uri = "/Content/#{@solution[:
|
55
|
+
@solution = { sid: sid, }
|
56
|
+
@uri = "/Content/#{@solution[:sid]}/ApprovalRequests"
|
57
57
|
|
58
58
|
|
59
59
|
end
|
@@ -68,7 +68,7 @@ module Twilio
|
|
68
68
|
ApprovalFetchInstance.new(
|
69
69
|
@version,
|
70
70
|
payload,
|
71
|
-
|
71
|
+
sid: @solution[:sid],
|
72
72
|
)
|
73
73
|
end
|
74
74
|
|
@@ -107,7 +107,7 @@ module Twilio
|
|
107
107
|
# @param [Hash] payload Payload response from the API
|
108
108
|
# @return [ApprovalFetchInstance] ApprovalFetchInstance
|
109
109
|
def get_instance(payload)
|
110
|
-
ApprovalFetchInstance.new(@version, payload,
|
110
|
+
ApprovalFetchInstance.new(@version, payload, sid: @solution[:sid])
|
111
111
|
end
|
112
112
|
|
113
113
|
##
|
@@ -126,7 +126,7 @@ module Twilio
|
|
126
126
|
# resource.
|
127
127
|
# @param [String] sid The SID of the Call resource to fetch.
|
128
128
|
# @return [ApprovalFetchInstance] ApprovalFetchInstance
|
129
|
-
def initialize(version, payload ,
|
129
|
+
def initialize(version, payload , sid: nil)
|
130
130
|
super(version)
|
131
131
|
|
132
132
|
# Marshaled Properties
|
@@ -139,7 +139,7 @@ module Twilio
|
|
139
139
|
|
140
140
|
# Context
|
141
141
|
@instance_context = nil
|
142
|
-
@params = { '
|
142
|
+
@params = { 'sid' => sid || @properties['sid'] , }
|
143
143
|
end
|
144
144
|
|
145
145
|
##
|
@@ -148,7 +148,7 @@ module Twilio
|
|
148
148
|
# @return [ApprovalFetchContext] CallContext for this CallInstance
|
149
149
|
def context
|
150
150
|
unless @instance_context
|
151
|
-
@instance_context = ApprovalFetchContext.new(@version , @params['
|
151
|
+
@instance_context = ApprovalFetchContext.new(@version , @params['sid'])
|
152
152
|
end
|
153
153
|
@instance_context
|
154
154
|
end
|
@@ -22,34 +22,21 @@ module Twilio
|
|
22
22
|
class InstalledAddOnUsageList < ListResource
|
23
23
|
|
24
24
|
class MarketplaceV1InstalledAddOnInstalledAddOnUsage
|
25
|
+
# @param [total_submitted]: [Float] Total amount in local currency that was billed in this request. Aggregates all billable_items that were successfully submitted.
|
25
26
|
# @param [billable_items]: [Array<InstalledAddOnUsageList.MarketplaceV1InstalledAddOnInstalledAddOnUsageBillableItems>]
|
26
|
-
attr_accessor :billable_items
|
27
|
+
attr_accessor :total_submitted, :billable_items
|
27
28
|
def initialize(payload)
|
29
|
+
@total_submitted = payload["total_submitted"]
|
28
30
|
@billable_items = payload["billable_items"]
|
29
31
|
end
|
30
32
|
def to_json(options = {})
|
31
33
|
{
|
34
|
+
total_submitted: @total_submitted,
|
32
35
|
billable_items: @billable_items,
|
33
36
|
}.to_json(options)
|
34
37
|
end
|
35
38
|
end
|
36
39
|
|
37
|
-
class MarketplaceV1InstalledAddOnInstalledAddOnUsageBillableItems
|
38
|
-
# @param [quantity]: [Float] Any floating number greater than 0.
|
39
|
-
# @param [sid]: [String] BillingSid to use for billing.
|
40
|
-
attr_accessor :quantity, :sid
|
41
|
-
def initialize(payload)
|
42
|
-
@quantity = payload["quantity"]
|
43
|
-
@sid = payload["sid"]
|
44
|
-
end
|
45
|
-
def to_json(options = {})
|
46
|
-
{
|
47
|
-
quantity: @quantity,
|
48
|
-
sid: @sid,
|
49
|
-
}.to_json(options)
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
40
|
##
|
54
41
|
# Initialize the InstalledAddOnUsageList
|
55
42
|
# @param [Version] version Version that contains the resource
|
@@ -130,22 +117,22 @@ module Twilio
|
|
130
117
|
|
131
118
|
# Marshaled Properties
|
132
119
|
@properties = {
|
133
|
-
'billable_items' => payload['billable_items'],
|
134
120
|
'total_submitted' => payload['total_submitted'],
|
121
|
+
'billable_items' => payload['billable_items'],
|
135
122
|
}
|
136
123
|
end
|
137
124
|
|
138
125
|
|
139
126
|
##
|
140
|
-
# @return [
|
141
|
-
def
|
142
|
-
@properties['
|
127
|
+
# @return [Float] Total amount in local currency that was billed in this request. Aggregates all billable_items that were successfully submitted.
|
128
|
+
def total_submitted
|
129
|
+
@properties['total_submitted']
|
143
130
|
end
|
144
131
|
|
145
132
|
##
|
146
|
-
# @return [
|
147
|
-
def
|
148
|
-
@properties['
|
133
|
+
# @return [Array<InstalledAddOnUsageList.MarketplaceV1InstalledAddOnInstalledAddOnUsageBillableItems>]
|
134
|
+
def billable_items
|
135
|
+
@properties['billable_items']
|
149
136
|
end
|
150
137
|
|
151
138
|
##
|
@@ -44,7 +44,7 @@ module Twilio
|
|
44
44
|
##
|
45
45
|
# Initialize the ModuleDataManagementContext
|
46
46
|
# @param [Version] version Version that contains the resource
|
47
|
-
# @param [String] sid
|
47
|
+
# @param [String] sid SID that uniquely identifies the Listing.
|
48
48
|
# @return [ModuleDataManagementContext] ModuleDataManagementContext
|
49
49
|
def initialize(version, sid)
|
50
50
|
super(version)
|
@@ -72,12 +72,13 @@ module Twilio
|
|
72
72
|
|
73
73
|
##
|
74
74
|
# Update the ModuleDataManagementInstance
|
75
|
-
# @param [String] module_info
|
76
|
-
# @param [String] description
|
77
|
-
# @param [String] documentation
|
78
|
-
# @param [String] policies
|
79
|
-
# @param [String] support
|
80
|
-
# @param [String] configuration
|
75
|
+
# @param [String] module_info A JSON object containing essential attributes that define a Listing.
|
76
|
+
# @param [String] description A JSON object describing the Listing. You can define the main body of the description, highlight key features or aspects of the Listing, and provide code samples for developers if applicable.
|
77
|
+
# @param [String] documentation A JSON object for providing comprehensive information, instructions, and resources related to the Listing.
|
78
|
+
# @param [String] policies A JSON object describing the Listing's privacy and legal policies. The maximum file size for Policies is 5MB.
|
79
|
+
# @param [String] support A JSON object containing information on how Marketplace users can obtain support for the Listing. Use this parameter to provide details such as contact information and support description.
|
80
|
+
# @param [String] configuration A JSON object for providing Listing-specific configuration. Contains button setup, notification URL, and more.
|
81
|
+
# @param [String] pricing A JSON object for providing Listing's purchase options.
|
81
82
|
# @return [ModuleDataManagementInstance] Updated ModuleDataManagementInstance
|
82
83
|
def update(
|
83
84
|
module_info: :unset,
|
@@ -85,7 +86,8 @@ module Twilio
|
|
85
86
|
documentation: :unset,
|
86
87
|
policies: :unset,
|
87
88
|
support: :unset,
|
88
|
-
configuration: :unset
|
89
|
+
configuration: :unset,
|
90
|
+
pricing: :unset
|
89
91
|
)
|
90
92
|
|
91
93
|
data = Twilio::Values.of({
|
@@ -95,6 +97,7 @@ module Twilio
|
|
95
97
|
'Policies' => policies,
|
96
98
|
'Support' => support,
|
97
99
|
'Configuration' => configuration,
|
100
|
+
'Pricing' => pricing,
|
98
101
|
})
|
99
102
|
|
100
103
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
@@ -174,6 +177,7 @@ module Twilio
|
|
174
177
|
'module_info' => payload['module_info'],
|
175
178
|
'documentation' => payload['documentation'],
|
176
179
|
'configuration' => payload['configuration'],
|
180
|
+
'pricing' => payload['pricing'],
|
177
181
|
}
|
178
182
|
|
179
183
|
# Context
|
@@ -240,6 +244,12 @@ module Twilio
|
|
240
244
|
@properties['configuration']
|
241
245
|
end
|
242
246
|
|
247
|
+
##
|
248
|
+
# @return [Hash] A JSON object for providing Listing specific pricing information.
|
249
|
+
def pricing
|
250
|
+
@properties['pricing']
|
251
|
+
end
|
252
|
+
|
243
253
|
##
|
244
254
|
# Fetch the ModuleDataManagementInstance
|
245
255
|
# @return [ModuleDataManagementInstance] Fetched ModuleDataManagementInstance
|
@@ -250,12 +260,13 @@ module Twilio
|
|
250
260
|
|
251
261
|
##
|
252
262
|
# Update the ModuleDataManagementInstance
|
253
|
-
# @param [String] module_info
|
254
|
-
# @param [String] description
|
255
|
-
# @param [String] documentation
|
256
|
-
# @param [String] policies
|
257
|
-
# @param [String] support
|
258
|
-
# @param [String] configuration
|
263
|
+
# @param [String] module_info A JSON object containing essential attributes that define a Listing.
|
264
|
+
# @param [String] description A JSON object describing the Listing. You can define the main body of the description, highlight key features or aspects of the Listing, and provide code samples for developers if applicable.
|
265
|
+
# @param [String] documentation A JSON object for providing comprehensive information, instructions, and resources related to the Listing.
|
266
|
+
# @param [String] policies A JSON object describing the Listing's privacy and legal policies. The maximum file size for Policies is 5MB.
|
267
|
+
# @param [String] support A JSON object containing information on how Marketplace users can obtain support for the Listing. Use this parameter to provide details such as contact information and support description.
|
268
|
+
# @param [String] configuration A JSON object for providing Listing-specific configuration. Contains button setup, notification URL, and more.
|
269
|
+
# @param [String] pricing A JSON object for providing Listing's purchase options.
|
259
270
|
# @return [ModuleDataManagementInstance] Updated ModuleDataManagementInstance
|
260
271
|
def update(
|
261
272
|
module_info: :unset,
|
@@ -263,7 +274,8 @@ module Twilio
|
|
263
274
|
documentation: :unset,
|
264
275
|
policies: :unset,
|
265
276
|
support: :unset,
|
266
|
-
configuration: :unset
|
277
|
+
configuration: :unset,
|
278
|
+
pricing: :unset
|
267
279
|
)
|
268
280
|
|
269
281
|
context.update(
|
@@ -273,6 +285,7 @@ module Twilio
|
|
273
285
|
policies: policies,
|
274
286
|
support: support,
|
275
287
|
configuration: configuration,
|
288
|
+
pricing: pricing,
|
276
289
|
)
|
277
290
|
end
|
278
291
|
|
@@ -17,12 +17,12 @@ module Twilio
|
|
17
17
|
module REST
|
18
18
|
class Numbers < NumbersBase
|
19
19
|
class V1 < Version
|
20
|
-
class
|
20
|
+
class WebhookList < ListResource
|
21
21
|
|
22
22
|
##
|
23
|
-
# Initialize the
|
23
|
+
# Initialize the WebhookList
|
24
24
|
# @param [Version] version Version that contains the resource
|
25
|
-
# @return [
|
25
|
+
# @return [WebhookList] WebhookList
|
26
26
|
def initialize(version)
|
27
27
|
super(version)
|
28
28
|
# Path Solution
|
@@ -31,14 +31,14 @@ module Twilio
|
|
31
31
|
|
32
32
|
end
|
33
33
|
##
|
34
|
-
# Fetch the
|
35
|
-
# @return [
|
34
|
+
# Fetch the WebhookInstance
|
35
|
+
# @return [WebhookInstance] Fetched WebhookInstance
|
36
36
|
def fetch
|
37
37
|
|
38
38
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
39
39
|
|
40
40
|
payload = @version.fetch('GET', @uri, headers: headers)
|
41
|
-
|
41
|
+
WebhookInstance.new(
|
42
42
|
@version,
|
43
43
|
payload,
|
44
44
|
)
|
@@ -49,17 +49,17 @@ module Twilio
|
|
49
49
|
|
50
50
|
# Provide a user friendly representation
|
51
51
|
def to_s
|
52
|
-
'#<Twilio.Numbers.V1.
|
52
|
+
'#<Twilio.Numbers.V1.WebhookList>'
|
53
53
|
end
|
54
54
|
end
|
55
55
|
|
56
|
-
class
|
56
|
+
class WebhookPage < Page
|
57
57
|
##
|
58
|
-
# Initialize the
|
58
|
+
# Initialize the WebhookPage
|
59
59
|
# @param [Version] version Version that contains the resource
|
60
60
|
# @param [Response] response Response from the API
|
61
61
|
# @param [Hash] solution Path solution for the resource
|
62
|
-
# @return [
|
62
|
+
# @return [WebhookPage] WebhookPage
|
63
63
|
def initialize(version, response, solution)
|
64
64
|
super(version, response)
|
65
65
|
|
@@ -68,29 +68,29 @@ module Twilio
|
|
68
68
|
end
|
69
69
|
|
70
70
|
##
|
71
|
-
# Build an instance of
|
71
|
+
# Build an instance of WebhookInstance
|
72
72
|
# @param [Hash] payload Payload response from the API
|
73
|
-
# @return [
|
73
|
+
# @return [WebhookInstance] WebhookInstance
|
74
74
|
def get_instance(payload)
|
75
|
-
|
75
|
+
WebhookInstance.new(@version, payload)
|
76
76
|
end
|
77
77
|
|
78
78
|
##
|
79
79
|
# Provide a user friendly representation
|
80
80
|
def to_s
|
81
|
-
'<Twilio.Numbers.V1.
|
81
|
+
'<Twilio.Numbers.V1.WebhookPage>'
|
82
82
|
end
|
83
83
|
end
|
84
|
-
class
|
84
|
+
class WebhookInstance < InstanceResource
|
85
85
|
##
|
86
|
-
# Initialize the
|
86
|
+
# Initialize the WebhookInstance
|
87
87
|
# @param [Version] version Version that contains the resource
|
88
88
|
# @param [Hash] payload payload that contains response from Twilio
|
89
89
|
# @param [String] account_sid The SID of the
|
90
|
-
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this
|
90
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this Webhook
|
91
91
|
# resource.
|
92
92
|
# @param [String] sid The SID of the Call resource to fetch.
|
93
|
-
# @return [
|
93
|
+
# @return [WebhookInstance] WebhookInstance
|
94
94
|
def initialize(version, payload )
|
95
95
|
super(version)
|
96
96
|
|
@@ -145,13 +145,13 @@ module Twilio
|
|
145
145
|
##
|
146
146
|
# Provide a user friendly representation
|
147
147
|
def to_s
|
148
|
-
"<Twilio.Numbers.V1.
|
148
|
+
"<Twilio.Numbers.V1.WebhookInstance>"
|
149
149
|
end
|
150
150
|
|
151
151
|
##
|
152
152
|
# Provide a detailed, user friendly representation
|
153
153
|
def inspect
|
154
|
-
"<Twilio.Numbers.V1.
|
154
|
+
"<Twilio.Numbers.V1.WebhookInstance>"
|
155
155
|
end
|
156
156
|
end
|
157
157
|
|
@@ -28,8 +28,8 @@ module Twilio
|
|
28
28
|
@porting_portabilities = nil
|
29
29
|
@porting_webhook_configurations = nil
|
30
30
|
@porting_webhook_configurations_delete = nil
|
31
|
-
@porting_webhook_configuration_fetch = nil
|
32
31
|
@signing_request_configurations = nil
|
32
|
+
@webhook = nil
|
33
33
|
end
|
34
34
|
|
35
35
|
##
|
@@ -135,16 +135,16 @@ module Twilio
|
|
135
135
|
end
|
136
136
|
end
|
137
137
|
##
|
138
|
-
# @return [Twilio::REST::Numbers::V1::PortingWebhookConfigurationFetchList]
|
139
|
-
def porting_webhook_configuration_fetch
|
140
|
-
@porting_webhook_configuration_fetch ||= PortingWebhookConfigurationFetchList.new self
|
141
|
-
end
|
142
|
-
##
|
143
138
|
# @return [Twilio::REST::Numbers::V1::SigningRequestConfigurationList]
|
144
139
|
def signing_request_configurations
|
145
140
|
@signing_request_configurations ||= SigningRequestConfigurationList.new self
|
146
141
|
end
|
147
142
|
##
|
143
|
+
# @return [Twilio::REST::Numbers::V1::WebhookList]
|
144
|
+
def webhook
|
145
|
+
@webhook ||= WebhookList.new self
|
146
|
+
end
|
147
|
+
##
|
148
148
|
# Provide a user friendly representation
|
149
149
|
def to_s
|
150
150
|
'<Twilio::REST::Numbers::V1>';
|
@@ -58,7 +58,7 @@ module Twilio
|
|
58
58
|
##
|
59
59
|
# Create the BundleCloneInstance
|
60
60
|
# @param [String] target_account_sid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) where the bundle needs to be cloned.
|
61
|
-
# @param [Boolean] move_to_draft
|
61
|
+
# @param [Boolean] move_to_draft If set to true, the cloned bundle will be in the DRAFT state, else it will be twilio-approved
|
62
62
|
# @param [String] friendly_name The string that you assigned to describe the cloned bundle.
|
63
63
|
# @return [BundleCloneInstance] Created BundleCloneInstance
|
64
64
|
def create(
|
@@ -240,7 +240,7 @@ module Twilio
|
|
240
240
|
##
|
241
241
|
# Create the BundleCloneInstance
|
242
242
|
# @param [String] target_account_sid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) where the bundle needs to be cloned.
|
243
|
-
# @param [Boolean] move_to_draft
|
243
|
+
# @param [Boolean] move_to_draft If set to true, the cloned bundle will be in the DRAFT state, else it will be twilio-approved
|
244
244
|
# @param [String] friendly_name The string that you assigned to describe the cloned bundle.
|
245
245
|
# @return [BundleCloneInstance] Created BundleCloneInstance
|
246
246
|
def create(
|
@@ -40,7 +40,7 @@ module Twilio
|
|
40
40
|
# @param [String] regulation_sid The unique string of a regulation that is associated to the Bundle resource.
|
41
41
|
# @param [String] iso_country The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the Bundle's phone number country ownership request.
|
42
42
|
# @param [EndUserType] end_user_type
|
43
|
-
# @param [String] number_type The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `toll
|
43
|
+
# @param [String] number_type The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `toll-free`.
|
44
44
|
# @param [Boolean] is_test Indicates that Bundle is a Test Bundle and will be Auto-Rejected
|
45
45
|
# @return [BundleInstance] Created BundleInstance
|
46
46
|
def create(
|
@@ -83,7 +83,7 @@ module Twilio
|
|
83
83
|
# @param [String] friendly_name The string that you assigned to describe the resource. The column can contain 255 variable characters.
|
84
84
|
# @param [String] regulation_sid The unique string of a [Regulation resource](https://www.twilio.com/docs/phone-numbers/regulatory/api/regulations) that is associated to the Bundle resource.
|
85
85
|
# @param [String] iso_country The 2-digit [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the Bundle's phone number country ownership request.
|
86
|
-
# @param [String] number_type The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `
|
86
|
+
# @param [String] number_type The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `toll-free`.
|
87
87
|
# @param [Boolean] has_valid_until_date Indicates that the Bundle is a valid Bundle until a specified expiration date.
|
88
88
|
# @param [SortBy] sort_by Can be `valid-until` or `date-updated`. Defaults to `date-created`.
|
89
89
|
# @param [SortDirection] sort_direction Default is `DESC`. Can be `ASC` or `DESC`.
|
@@ -123,7 +123,7 @@ module Twilio
|
|
123
123
|
# @param [String] friendly_name The string that you assigned to describe the resource. The column can contain 255 variable characters.
|
124
124
|
# @param [String] regulation_sid The unique string of a [Regulation resource](https://www.twilio.com/docs/phone-numbers/regulatory/api/regulations) that is associated to the Bundle resource.
|
125
125
|
# @param [String] iso_country The 2-digit [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the Bundle's phone number country ownership request.
|
126
|
-
# @param [String] number_type The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `
|
126
|
+
# @param [String] number_type The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `toll-free`.
|
127
127
|
# @param [Boolean] has_valid_until_date Indicates that the Bundle is a valid Bundle until a specified expiration date.
|
128
128
|
# @param [SortBy] sort_by Can be `valid-until` or `date-updated`. Defaults to `date-created`.
|
129
129
|
# @param [SortDirection] sort_direction Default is `DESC`. Can be `ASC` or `DESC`.
|
@@ -178,7 +178,7 @@ module Twilio
|
|
178
178
|
# @param [String] friendly_name The string that you assigned to describe the resource. The column can contain 255 variable characters.
|
179
179
|
# @param [String] regulation_sid The unique string of a [Regulation resource](https://www.twilio.com/docs/phone-numbers/regulatory/api/regulations) that is associated to the Bundle resource.
|
180
180
|
# @param [String] iso_country The 2-digit [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the Bundle's phone number country ownership request.
|
181
|
-
# @param [String] number_type The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `
|
181
|
+
# @param [String] number_type The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `toll-free`.
|
182
182
|
# @param [Boolean] has_valid_until_date Indicates that the Bundle is a valid Bundle until a specified expiration date.
|
183
183
|
# @param [SortBy] sort_by Can be `valid-until` or `date-updated`. Defaults to `date-created`.
|
184
184
|
# @param [SortDirection] sort_direction Default is `DESC`. Can be `ASC` or `DESC`.
|
@@ -36,13 +36,16 @@ module Twilio
|
|
36
36
|
##
|
37
37
|
# Create the DeploymentInstance
|
38
38
|
# @param [String] build_sid The SID of the Build for the Deployment.
|
39
|
+
# @param [Boolean] is_plugin Whether the Deployment is a plugin.
|
39
40
|
# @return [DeploymentInstance] Created DeploymentInstance
|
40
41
|
def create(
|
41
|
-
build_sid: :unset
|
42
|
+
build_sid: :unset,
|
43
|
+
is_plugin: :unset
|
42
44
|
)
|
43
45
|
|
44
46
|
data = Twilio::Values.of({
|
45
47
|
'BuildSid' => build_sid,
|
48
|
+
'IsPlugin' => is_plugin,
|
46
49
|
})
|
47
50
|
|
48
51
|
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.3.
|
4
|
+
version: 7.3.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: 2024-09-
|
11
|
+
date: 2024-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -246,6 +246,8 @@ files:
|
|
246
246
|
- lib/twilio-ruby/rest/accounts.rb
|
247
247
|
- lib/twilio-ruby/rest/accounts/v1.rb
|
248
248
|
- lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb
|
249
|
+
- lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb
|
250
|
+
- lib/twilio-ruby/rest/accounts/v1/bulk_contacts.rb
|
249
251
|
- lib/twilio-ruby/rest/accounts/v1/credential.rb
|
250
252
|
- lib/twilio-ruby/rest/accounts/v1/credential/aws.rb
|
251
253
|
- lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb
|
@@ -334,6 +336,21 @@ files:
|
|
334
336
|
- lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb
|
335
337
|
- lib/twilio-ruby/rest/api/v2010/account/validation_request.rb
|
336
338
|
- lib/twilio-ruby/rest/api_base.rb
|
339
|
+
- lib/twilio-ruby/rest/assistants.rb
|
340
|
+
- lib/twilio-ruby/rest/assistants/v1.rb
|
341
|
+
- lib/twilio-ruby/rest/assistants/v1/assistant.rb
|
342
|
+
- lib/twilio-ruby/rest/assistants/v1/assistant/assistants_knowledge.rb
|
343
|
+
- lib/twilio-ruby/rest/assistants/v1/assistant/assistants_tool.rb
|
344
|
+
- lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb
|
345
|
+
- lib/twilio-ruby/rest/assistants/v1/assistant/message.rb
|
346
|
+
- lib/twilio-ruby/rest/assistants/v1/knowledge.rb
|
347
|
+
- lib/twilio-ruby/rest/assistants/v1/knowledge/chunk.rb
|
348
|
+
- lib/twilio-ruby/rest/assistants/v1/knowledge/knowledge_status.rb
|
349
|
+
- lib/twilio-ruby/rest/assistants/v1/policy.rb
|
350
|
+
- lib/twilio-ruby/rest/assistants/v1/session.rb
|
351
|
+
- lib/twilio-ruby/rest/assistants/v1/session/message.rb
|
352
|
+
- lib/twilio-ruby/rest/assistants/v1/tool.rb
|
353
|
+
- lib/twilio-ruby/rest/assistants_base.rb
|
337
354
|
- lib/twilio-ruby/rest/bulkexports.rb
|
338
355
|
- lib/twilio-ruby/rest/bulkexports/v1.rb
|
339
356
|
- lib/twilio-ruby/rest/bulkexports/v1/export.rb
|
@@ -588,8 +605,8 @@ files:
|
|
588
605
|
- lib/twilio-ruby/rest/numbers/v1/porting_portability.rb
|
589
606
|
- lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb
|
590
607
|
- lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb
|
591
|
-
- lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb
|
592
608
|
- lib/twilio-ruby/rest/numbers/v1/signing_request_configuration.rb
|
609
|
+
- lib/twilio-ruby/rest/numbers/v1/webhook.rb
|
593
610
|
- lib/twilio-ruby/rest/numbers/v2.rb
|
594
611
|
- lib/twilio-ruby/rest/numbers/v2/authorization_document.rb
|
595
612
|
- lib/twilio-ruby/rest/numbers/v2/authorization_document/dependent_hosted_number_order.rb
|