twilio-ruby 5.74.4 → 5.75.0

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.
@@ -0,0 +1,192 @@
1
+ ##
2
+ # This code was generated by
3
+ # \ / _ _ _| _ _
4
+ # | (_)\/(_)(_|\/| |(/_ v1.0.0
5
+ # / /
6
+ #
7
+ # frozen_string_literal: true
8
+
9
+ module Twilio
10
+ module REST
11
+ class Microvisor < Domain
12
+ class V1 < Version
13
+ class AppContext < InstanceContext
14
+ ##
15
+ # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
16
+ class AppManifestList < ListResource
17
+ ##
18
+ # Initialize the AppManifestList
19
+ # @param [Version] version Version that contains the resource
20
+ # @param [String] app_sid A 34-character string that uniquely identifies this App.
21
+ # @return [AppManifestList] AppManifestList
22
+ def initialize(version, app_sid: nil)
23
+ super(version)
24
+
25
+ # Path Solution
26
+ @solution = {app_sid: app_sid}
27
+ end
28
+
29
+ ##
30
+ # Provide a user friendly representation
31
+ def to_s
32
+ '#<Twilio.Microvisor.V1.AppManifestList>'
33
+ end
34
+ end
35
+
36
+ ##
37
+ # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
38
+ class AppManifestPage < Page
39
+ ##
40
+ # Initialize the AppManifestPage
41
+ # @param [Version] version Version that contains the resource
42
+ # @param [Response] response Response from the API
43
+ # @param [Hash] solution Path solution for the resource
44
+ # @return [AppManifestPage] AppManifestPage
45
+ def initialize(version, response, solution)
46
+ super(version, response)
47
+
48
+ # Path Solution
49
+ @solution = solution
50
+ end
51
+
52
+ ##
53
+ # Build an instance of AppManifestInstance
54
+ # @param [Hash] payload Payload response from the API
55
+ # @return [AppManifestInstance] AppManifestInstance
56
+ def get_instance(payload)
57
+ AppManifestInstance.new(@version, payload, app_sid: @solution[:app_sid], )
58
+ end
59
+
60
+ ##
61
+ # Provide a user friendly representation
62
+ def to_s
63
+ '<Twilio.Microvisor.V1.AppManifestPage>'
64
+ end
65
+ end
66
+
67
+ ##
68
+ # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
69
+ class AppManifestContext < InstanceContext
70
+ ##
71
+ # Initialize the AppManifestContext
72
+ # @param [Version] version Version that contains the resource
73
+ # @param [String] app_sid A 34-character string that uniquely identifies this App.
74
+ # @return [AppManifestContext] AppManifestContext
75
+ def initialize(version, app_sid)
76
+ super(version)
77
+
78
+ # Path Solution
79
+ @solution = {app_sid: app_sid, }
80
+ @uri = "/Apps/#{@solution[:app_sid]}/Manifest"
81
+ end
82
+
83
+ ##
84
+ # Fetch the AppManifestInstance
85
+ # @return [AppManifestInstance] Fetched AppManifestInstance
86
+ def fetch
87
+ payload = @version.fetch('GET', @uri)
88
+
89
+ AppManifestInstance.new(@version, payload, app_sid: @solution[:app_sid], )
90
+ end
91
+
92
+ ##
93
+ # Provide a user friendly representation
94
+ def to_s
95
+ context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
96
+ "#<Twilio.Microvisor.V1.AppManifestContext #{context}>"
97
+ end
98
+
99
+ ##
100
+ # Provide a detailed, user friendly representation
101
+ def inspect
102
+ context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
103
+ "#<Twilio.Microvisor.V1.AppManifestContext #{context}>"
104
+ end
105
+ end
106
+
107
+ ##
108
+ # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
109
+ class AppManifestInstance < InstanceResource
110
+ ##
111
+ # Initialize the AppManifestInstance
112
+ # @param [Version] version Version that contains the resource
113
+ # @param [Hash] payload payload that contains response from Twilio
114
+ # @param [String] app_sid A 34-character string that uniquely identifies this App.
115
+ # @return [AppManifestInstance] AppManifestInstance
116
+ def initialize(version, payload, app_sid: nil)
117
+ super(version)
118
+
119
+ # Marshaled Properties
120
+ @properties = {
121
+ 'app_sid' => payload['app_sid'],
122
+ 'hash' => payload['hash'],
123
+ 'encoded_bytes' => payload['encoded_bytes'],
124
+ 'url' => payload['url'],
125
+ }
126
+
127
+ # Context
128
+ @instance_context = nil
129
+ @params = {'app_sid' => app_sid, }
130
+ end
131
+
132
+ ##
133
+ # Generate an instance context for the instance, the context is capable of
134
+ # performing various actions. All instance actions are proxied to the context
135
+ # @return [AppManifestContext] AppManifestContext for this AppManifestInstance
136
+ def context
137
+ unless @instance_context
138
+ @instance_context = AppManifestContext.new(@version, @params['app_sid'], )
139
+ end
140
+ @instance_context
141
+ end
142
+
143
+ ##
144
+ # @return [String] A string that uniquely identifies this App.
145
+ def app_sid
146
+ @properties['app_sid']
147
+ end
148
+
149
+ ##
150
+ # @return [String] App manifest hash represented as hash_algorithm:hash_value.
151
+ def hash
152
+ @properties['hash']
153
+ end
154
+
155
+ ##
156
+ # @return [String] The base-64 encoded manifest
157
+ def encoded_bytes
158
+ @properties['encoded_bytes']
159
+ end
160
+
161
+ ##
162
+ # @return [String] The absolute URL of this Manifest.
163
+ def url
164
+ @properties['url']
165
+ end
166
+
167
+ ##
168
+ # Fetch the AppManifestInstance
169
+ # @return [AppManifestInstance] Fetched AppManifestInstance
170
+ def fetch
171
+ context.fetch
172
+ end
173
+
174
+ ##
175
+ # Provide a user friendly representation
176
+ def to_s
177
+ values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
178
+ "<Twilio.Microvisor.V1.AppManifestInstance #{values}>"
179
+ end
180
+
181
+ ##
182
+ # Provide a detailed, user friendly representation
183
+ def inspect
184
+ values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
185
+ "<Twilio.Microvisor.V1.AppManifestInstance #{values}>"
186
+ end
187
+ end
188
+ end
189
+ end
190
+ end
191
+ end
192
+ end
@@ -157,6 +157,9 @@ module Twilio
157
157
  # Path Solution
158
158
  @solution = {sid: sid, }
159
159
  @uri = "/Apps/#{@solution[:sid]}"
160
+
161
+ # Dependents
162
+ @app_manifests = nil
160
163
  end
161
164
 
162
165
  ##
@@ -175,6 +178,14 @@ module Twilio
175
178
  @version.delete('DELETE', @uri)
176
179
  end
177
180
 
181
+ ##
182
+ # Access the app_manifests
183
+ # @return [AppManifestList]
184
+ # @return [AppManifestContext]
185
+ def app_manifests
186
+ AppManifestContext.new(@version, @solution[:sid], )
187
+ end
188
+
178
189
  ##
179
190
  # Provide a user friendly representation
180
191
  def to_s
@@ -211,6 +222,7 @@ module Twilio
211
222
  'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
212
223
  'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
213
224
  'url' => payload['url'],
225
+ 'links' => payload['links'],
214
226
  }
215
227
 
216
228
  # Context
@@ -271,6 +283,12 @@ module Twilio
271
283
  @properties['url']
272
284
  end
273
285
 
286
+ ##
287
+ # @return [String] The links
288
+ def links
289
+ @properties['links']
290
+ end
291
+
274
292
  ##
275
293
  # Fetch the AppInstance
276
294
  # @return [AppInstance] Fetched AppInstance
@@ -285,6 +303,13 @@ module Twilio
285
303
  context.delete
286
304
  end
287
305
 
306
+ ##
307
+ # Access the app_manifests
308
+ # @return [app_manifests] app_manifests
309
+ def app_manifests
310
+ context.app_manifests
311
+ end
312
+
288
313
  ##
289
314
  # Provide a user friendly representation
290
315
  def to_s
@@ -33,12 +33,18 @@ module Twilio
33
33
  # resource changes from `reserving` to `available`.
34
34
  # @param [String] callback_method The HTTP method we should use to call
35
35
  # `callback_url`. Can be: `GET` or `POST` and the default is POST.
36
+ # @param [Boolean] generate_matching_id When set to `true`, a value for `Eid` does
37
+ # not need to be provided. Instead, when the eSIM profile is reserved, a matching
38
+ # ID will be generated and returned via the `matching_id` property. This
39
+ # identifies the specific eSIM profile that can be used by any capable device to
40
+ # claim and download the profile.
36
41
  # @param [String] eid Identifier of the eUICC that will claim the eSIM Profile.
37
42
  # @return [EsimProfileInstance] Created EsimProfileInstance
38
- def create(callback_url: :unset, callback_method: :unset, eid: :unset)
43
+ def create(callback_url: :unset, callback_method: :unset, generate_matching_id: :unset, eid: :unset)
39
44
  data = Twilio::Values.of({
40
45
  'CallbackUrl' => callback_url,
41
46
  'CallbackMethod' => callback_method,
47
+ 'GenerateMatchingId' => generate_matching_id,
42
48
  'Eid' => eid,
43
49
  })
44
50
 
@@ -250,6 +256,8 @@ module Twilio
250
256
  'status' => payload['status'],
251
257
  'eid' => payload['eid'],
252
258
  'smdp_plus_address' => payload['smdp_plus_address'],
259
+ 'matching_id' => payload['matching_id'],
260
+ 'activation_code' => payload['activation_code'],
253
261
  'error_code' => payload['error_code'],
254
262
  'error_message' => payload['error_message'],
255
263
  'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
@@ -315,6 +323,18 @@ module Twilio
315
323
  @properties['smdp_plus_address']
316
324
  end
317
325
 
326
+ ##
327
+ # @return [String] Unique identifier of the eSIM profile that be used to identify and download the eSIM profile
328
+ def matching_id
329
+ @properties['matching_id']
330
+ end
331
+
332
+ ##
333
+ # @return [String] Combined machine-readable activation code for acquiring an eSIM Profile with the Activation Code download method
334
+ def activation_code
335
+ @properties['activation_code']
336
+ end
337
+
318
338
  ##
319
339
  # @return [String] Code indicating the failure if the download of the SIM Profile failed and the eSIM Profile is in `failed` state
320
340
  def error_code
@@ -74,8 +74,9 @@ module Twilio
74
74
  # @param [String] template_custom_substitutions A stringified JSON object in which
75
75
  # the keys are the template's special variables and the values are the variables
76
76
  # substitutions.
77
- # @param [String] device_ip The IP address of the client's device. If provided, it
78
- # has to be a valid IPv4 or IPv6 address.
77
+ # @param [String] device_ip Strongly encouraged if using the auto channel. The IP
78
+ # address of the client's device. If provided, it has to be a valid IPv4 or IPv6
79
+ # address.
79
80
  # @return [VerificationInstance] Created VerificationInstance
80
81
  def create(to: nil, channel: nil, custom_friendly_name: :unset, custom_message: :unset, send_digits: :unset, locale: :unset, custom_code: :unset, amount: :unset, payee: :unset, rate_limits: :unset, channel_configuration: :unset, app_hash: :unset, template_sid: :unset, template_custom_substitutions: :unset, device_ip: :unset)
81
82
  data = Twilio::Values.of({
@@ -1,3 +1,3 @@
1
1
  module Twilio
2
- VERSION = '5.74.4'
2
+ VERSION = '5.75.0'
3
3
  end
data/twilio-ruby.gemspec CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
24
24
  spec.extra_rdoc_files = ['README.md', 'LICENSE']
25
25
  spec.rdoc_options = ['--line-numbers', '--inline-source', '--title', 'twilio-ruby', '--main', 'README.md']
26
26
 
27
- spec.add_dependency('jwt', '>= 1.5', '<= 2.6')
27
+ spec.add_dependency('jwt', '>= 1.5', '< 3.0')
28
28
  spec.add_dependency('nokogiri', '>= 1.6', '< 2.0')
29
29
  spec.add_dependency('faraday', '>= 0.9', '< 3.0')
30
30
  # Workaround for RBX <= 2.2.1, should be fixed in next version
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: 5.74.4
4
+ version: 5.75.0
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: 2023-02-22 00:00:00.000000000 Z
11
+ date: 2023-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt
@@ -17,9 +17,9 @@ dependencies:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.5'
20
- - - "<="
20
+ - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '2.6'
22
+ version: '3.0'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -27,9 +27,9 @@ dependencies:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
29
  version: '1.5'
30
- - - "<="
30
+ - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '2.6'
32
+ version: '3.0'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: nokogiri
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -385,6 +385,7 @@ files:
385
385
  - lib/twilio-ruby/rest/content/v1.rb
386
386
  - lib/twilio-ruby/rest/content/v1/content.rb
387
387
  - lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb
388
+ - lib/twilio-ruby/rest/content/v1/content_and_approvals.rb
388
389
  - lib/twilio-ruby/rest/content/v1/legacy_content.rb
389
390
  - lib/twilio-ruby/rest/conversations.rb
390
391
  - lib/twilio-ruby/rest/conversations/v1.rb
@@ -432,6 +433,7 @@ files:
432
433
  - lib/twilio-ruby/rest/flex_api/v1/configuration.rb
433
434
  - lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb
434
435
  - lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb
436
+ - lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb
435
437
  - lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb
436
438
  - lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb
437
439
  - lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb
@@ -505,7 +507,9 @@ files:
505
507
  - lib/twilio-ruby/rest/messaging/v1/deactivation.rb
506
508
  - lib/twilio-ruby/rest/messaging/v1/domain_cert.rb
507
509
  - lib/twilio-ruby/rest/messaging/v1/domain_config.rb
510
+ - lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb
508
511
  - lib/twilio-ruby/rest/messaging/v1/external_campaign.rb
512
+ - lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb
509
513
  - lib/twilio-ruby/rest/messaging/v1/service.rb
510
514
  - lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb
511
515
  - lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb
@@ -519,6 +523,7 @@ files:
519
523
  - lib/twilio-ruby/rest/microvisor/v1/account_config.rb
520
524
  - lib/twilio-ruby/rest/microvisor/v1/account_secret.rb
521
525
  - lib/twilio-ruby/rest/microvisor/v1/app.rb
526
+ - lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb
522
527
  - lib/twilio-ruby/rest/microvisor/v1/device.rb
523
528
  - lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb
524
529
  - lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb