twilio-ruby 7.4.0 → 7.4.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 716a5360bb07ddef4a7034ccd964bd8736d9b3e0
4
- data.tar.gz: 7badc6efe024f8a5113474cdff90d60809abc628
3
+ metadata.gz: ea2a68b28f89cfa0d94441cdb2186788d204b32f
4
+ data.tar.gz: f5470c7e0c59b5a40f94d5f29eb282679a52e7ba
5
5
  SHA512:
6
- metadata.gz: 2e04bd87298d040265efc809ffcc1b8041b145a9c696c62f5eca55a6dd4aa923b8eeccbc8b1776ba2b6cd52fe86a42c6f5555908037a026077646a213ca12801
7
- data.tar.gz: 0fea2a97101303015bb771358fb85fab848e9ec072d6e0e6b373ea199aaf1266d3acc5461d7620c0db42bbb39991d0f8ddb4966dee046978cc6a0032a2c6ee39
6
+ metadata.gz: 26eb27adf397cac990ecc4d9d7e06c6fe1d082a643b9c7500b5a3ff44bbdfb658262e60a9d4f567e5b55c3e2e1533f950f341f15886e31694f45777778191d7c
7
+ data.tar.gz: caf42a2e6814d6d343dba45b8c17623f2bdc887910bbec35ae041bfb5f142d4ba93a2c4c53d369b1e0c92f5c32a3cd053d309866225a9820f6ab826a1de4b32e
@@ -17,7 +17,7 @@ jobs:
17
17
  timeout-minutes: 20
18
18
  strategy:
19
19
  matrix:
20
- ruby: [ '2.4', '2.5', '2.6', '2.7', '3.0', '3.1', '3.2', 'ruby-head', 'jruby-9.2', 'jruby-9.3', 'jruby-9.4' ]
20
+ ruby: [ '2.4', '2.5', '2.6', '2.7', '3.0', '3.1', '3.2', 'ruby-head', 'jruby-9.3', 'jruby-9.4' ]
21
21
  steps:
22
22
  - name: Checkout twilio-ruby
23
23
  uses: actions/checkout@v3
data/CHANGES.md CHANGED
@@ -1,6 +1,15 @@
1
1
  twilio-ruby changelog
2
2
  =====================
3
3
 
4
+ [2025-01-09] Version 7.4.1
5
+ --------------------------
6
+ **Library - Chore**
7
+ - [PR #736](https://github.com/twilio/twilio-ruby/pull/736): removing jruby-9.2. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
8
+
9
+ **Numbers**
10
+ - Change beta feature flag to use v2/BulkHostedNumberOrders
11
+
12
+
4
13
  [2024-12-12] Version 7.4.0
5
14
  --------------------------
6
15
  **Library - Feature**
data/README.md CHANGED
@@ -39,13 +39,13 @@ This library supports the following Ruby implementations:
39
39
  To install using [Bundler][bundler] grab the latest stable version:
40
40
 
41
41
  ```ruby
42
- gem 'twilio-ruby', '~> 7.4.0'
42
+ gem 'twilio-ruby', '~> 7.4.1'
43
43
  ```
44
44
 
45
45
  To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
46
46
 
47
47
  ```bash
48
- gem install twilio-ruby -v 7.4.0
48
+ gem install twilio-ruby -v 7.4.1
49
49
  ```
50
50
 
51
51
  To build and install the development branch yourself from the latest source:
@@ -48,7 +48,7 @@ module Twilio
48
48
  # @param [String] speech_model Recognition model used by the transcription engine, among those supported by the provider
49
49
  # @param [String] hints A Phrase contains words and phrase \\\"hints\\\" so that the speech recognition engine is more likely to recognize them.
50
50
  # @param [Boolean] enable_automatic_punctuation The provider will add punctuation to recognition result
51
- # @param [String] intelligence_service The SID or the unique name of the [IntelligentService](https://www.twilio.com/docs/voice/intelligence/api/service-resource) to process the transcription.
51
+ # @param [String] intelligence_service The SID or the unique name of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) to process the transcription.
52
52
  # @return [TranscriptionInstance] Created TranscriptionInstance
53
53
  def create(
54
54
  name: :unset,
@@ -244,6 +244,7 @@ module Twilio
244
244
  'status' => payload['status'],
245
245
  'type' => payload['type'],
246
246
  'url' => payload['url'],
247
+ 'embedding_model' => payload['embedding_model'],
247
248
  'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
248
249
  'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
249
250
  }
@@ -312,6 +313,12 @@ module Twilio
312
313
  @properties['url']
313
314
  end
314
315
 
316
+ ##
317
+ # @return [String] The embedding model to be used for the knowledge source.
318
+ def embedding_model
319
+ @properties['embedding_model']
320
+ end
321
+
315
322
  ##
316
323
  # @return [Time] The date and time in GMT when the Knowledge was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
317
324
  def date_created
@@ -26,7 +26,8 @@ module Twilio
26
26
  # @param [name]: [String] The name of the tool.
27
27
  # @param [policy]: [KnowledgeList.AssistantsV1ServiceCreatePolicyRequest]
28
28
  # @param [type]: [String] The type of the knowledge source.
29
- attr_accessor :assistant_id, :description, :knowledge_source_details, :name, :policy, :type
29
+ # @param [embedding_model]: [String] The embedding model to be used for the knowledge source. It's required for 'Database' type but disallowed for other types.
30
+ attr_accessor :assistant_id, :description, :knowledge_source_details, :name, :policy, :type, :embedding_model
30
31
  def initialize(payload)
31
32
  @assistant_id = payload["assistant_id"]
32
33
  @description = payload["description"]
@@ -34,6 +35,7 @@ module Twilio
34
35
  @name = payload["name"]
35
36
  @policy = payload["policy"]
36
37
  @type = payload["type"]
38
+ @embedding_model = payload["embedding_model"]
37
39
  end
38
40
  def to_json(options = {})
39
41
  {
@@ -43,6 +45,7 @@ module Twilio
43
45
  "name": @name,
44
46
  "policy": @policy,
45
47
  "type": @type,
48
+ "embedding_model": @embedding_model,
46
49
  }.to_json(options)
47
50
  end
48
51
  end
@@ -78,13 +81,15 @@ module Twilio
78
81
  # @param [name]: [String] The name of the knowledge source.
79
82
  # @param [policy]: [KnowledgeList.AssistantsV1ServiceCreatePolicyRequest]
80
83
  # @param [type]: [String] The description of the knowledge source.
81
- attr_accessor :description, :knowledge_source_details, :name, :policy, :type
84
+ # @param [embedding_model]: [String] The embedding model to be used for the knowledge source. It's only applicable to 'Database' type.
85
+ attr_accessor :description, :knowledge_source_details, :name, :policy, :type, :embedding_model
82
86
  def initialize(payload)
83
87
  @description = payload["description"]
84
88
  @knowledge_source_details = payload["knowledge_source_details"]
85
89
  @name = payload["name"]
86
90
  @policy = payload["policy"]
87
91
  @type = payload["type"]
92
+ @embedding_model = payload["embedding_model"]
88
93
  end
89
94
  def to_json(options = {})
90
95
  {
@@ -93,6 +98,7 @@ module Twilio
93
98
  "name": @name,
94
99
  "policy": @policy,
95
100
  "type": @type,
101
+ "embedding_model": @embedding_model,
96
102
  }.to_json(options)
97
103
  end
98
104
  end
@@ -105,7 +111,8 @@ module Twilio
105
111
  # @param [name]: [String] The name of the tool.
106
112
  # @param [policy]: [KnowledgeList.AssistantsV1ServiceCreatePolicyRequest]
107
113
  # @param [type]: [String] The type of the knowledge source.
108
- attr_accessor :assistant_id, :description, :knowledge_source_details, :name, :policy, :type
114
+ # @param [embedding_model]: [String] The embedding model to be used for the knowledge source. It's required for 'Database' type but disallowed for other types.
115
+ attr_accessor :assistant_id, :description, :knowledge_source_details, :name, :policy, :type, :embedding_model
109
116
  def initialize(payload)
110
117
  @assistant_id = payload["assistant_id"]
111
118
  @description = payload["description"]
@@ -113,6 +120,7 @@ module Twilio
113
120
  @name = payload["name"]
114
121
  @policy = payload["policy"]
115
122
  @type = payload["type"]
123
+ @embedding_model = payload["embedding_model"]
116
124
  end
117
125
  def to_json(options = {})
118
126
  {
@@ -122,6 +130,7 @@ module Twilio
122
130
  "name": @name,
123
131
  "policy": @policy,
124
132
  "type": @type,
133
+ "embedding_model": @embedding_model,
125
134
  }.to_json(options)
126
135
  end
127
136
  end
@@ -157,13 +166,15 @@ module Twilio
157
166
  # @param [name]: [String] The name of the knowledge source.
158
167
  # @param [policy]: [KnowledgeList.AssistantsV1ServiceCreatePolicyRequest]
159
168
  # @param [type]: [String] The description of the knowledge source.
160
- attr_accessor :description, :knowledge_source_details, :name, :policy, :type
169
+ # @param [embedding_model]: [String] The embedding model to be used for the knowledge source. It's only applicable to 'Database' type.
170
+ attr_accessor :description, :knowledge_source_details, :name, :policy, :type, :embedding_model
161
171
  def initialize(payload)
162
172
  @description = payload["description"]
163
173
  @knowledge_source_details = payload["knowledge_source_details"]
164
174
  @name = payload["name"]
165
175
  @policy = payload["policy"]
166
176
  @type = payload["type"]
177
+ @embedding_model = payload["embedding_model"]
167
178
  end
168
179
  def to_json(options = {})
169
180
  {
@@ -172,6 +183,7 @@ module Twilio
172
183
  "name": @name,
173
184
  "policy": @policy,
174
185
  "type": @type,
186
+ "embedding_model": @embedding_model,
175
187
  }.to_json(options)
176
188
  end
177
189
  end
@@ -468,6 +480,7 @@ module Twilio
468
480
  'status' => payload['status'],
469
481
  'type' => payload['type'],
470
482
  'url' => payload['url'],
483
+ 'embedding_model' => payload['embedding_model'],
471
484
  'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
472
485
  'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
473
486
  }
@@ -536,6 +549,12 @@ module Twilio
536
549
  @properties['url']
537
550
  end
538
551
 
552
+ ##
553
+ # @return [String] The embedding model to be used for the knowledge source.
554
+ def embedding_model
555
+ @properties['embedding_model']
556
+ end
557
+
539
558
  ##
540
559
  # @return [Time] The date and time in GMT when the Knowledge was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
541
560
  def date_created
@@ -213,37 +213,15 @@ module Twilio
213
213
  class FlowsPageComponent
214
214
  # @param [label]: [String]
215
215
  # @param [type]: [String]
216
- # @param [text]: [String]
217
- # @param [options]: [Array<ContentList.FlowsPageComponentSelectItem>]
218
- attr_accessor :label, :type, :text, :options
216
+ attr_accessor :label, :type
219
217
  def initialize(payload)
220
218
  @label = payload["label"]
221
219
  @type = payload["type"]
222
- @text = payload["text"]
223
- @options = payload["options"]
224
220
  end
225
221
  def to_json(options = {})
226
222
  {
227
223
  "label": @label,
228
224
  "type": @type,
229
- "text": @text,
230
- "options": @options,
231
- }.to_json(options)
232
- end
233
- end
234
-
235
- class FlowsPageComponentSelectItem
236
- # @param [id]: [String]
237
- # @param [title]: [String]
238
- attr_accessor :id, :title
239
- def initialize(payload)
240
- @id = payload["id"]
241
- @title = payload["title"]
242
- end
243
- def to_json(options = {})
244
- {
245
- "id": @id,
246
- "title": @title,
247
225
  }.to_json(options)
248
226
  end
249
227
  end
@@ -17,12 +17,12 @@ module Twilio
17
17
  module REST
18
18
  class Numbers < NumbersBase
19
19
  class V1 < Version
20
- class WebhookList < ListResource
20
+ class PortingWebhookConfigurationFetchList < ListResource
21
21
 
22
22
  ##
23
- # Initialize the WebhookList
23
+ # Initialize the PortingWebhookConfigurationFetchList
24
24
  # @param [Version] version Version that contains the resource
25
- # @return [WebhookList] WebhookList
25
+ # @return [PortingWebhookConfigurationFetchList] PortingWebhookConfigurationFetchList
26
26
  def initialize(version)
27
27
  super(version)
28
28
  # Path Solution
@@ -31,8 +31,8 @@ module Twilio
31
31
 
32
32
  end
33
33
  ##
34
- # Fetch the WebhookInstance
35
- # @return [WebhookInstance] Fetched WebhookInstance
34
+ # Fetch the PortingWebhookConfigurationFetchInstance
35
+ # @return [PortingWebhookConfigurationFetchInstance] Fetched PortingWebhookConfigurationFetchInstance
36
36
  def fetch
37
37
 
38
38
  headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
@@ -42,7 +42,7 @@ module Twilio
42
42
 
43
43
 
44
44
  payload = @version.fetch('GET', @uri, headers: headers)
45
- WebhookInstance.new(
45
+ PortingWebhookConfigurationFetchInstance.new(
46
46
  @version,
47
47
  payload,
48
48
  )
@@ -53,17 +53,17 @@ module Twilio
53
53
 
54
54
  # Provide a user friendly representation
55
55
  def to_s
56
- '#<Twilio.Numbers.V1.WebhookList>'
56
+ '#<Twilio.Numbers.V1.PortingWebhookConfigurationFetchList>'
57
57
  end
58
58
  end
59
59
 
60
- class WebhookPage < Page
60
+ class PortingWebhookConfigurationFetchPage < Page
61
61
  ##
62
- # Initialize the WebhookPage
62
+ # Initialize the PortingWebhookConfigurationFetchPage
63
63
  # @param [Version] version Version that contains the resource
64
64
  # @param [Response] response Response from the API
65
65
  # @param [Hash] solution Path solution for the resource
66
- # @return [WebhookPage] WebhookPage
66
+ # @return [PortingWebhookConfigurationFetchPage] PortingWebhookConfigurationFetchPage
67
67
  def initialize(version, response, solution)
68
68
  super(version, response)
69
69
 
@@ -72,29 +72,29 @@ module Twilio
72
72
  end
73
73
 
74
74
  ##
75
- # Build an instance of WebhookInstance
75
+ # Build an instance of PortingWebhookConfigurationFetchInstance
76
76
  # @param [Hash] payload Payload response from the API
77
- # @return [WebhookInstance] WebhookInstance
77
+ # @return [PortingWebhookConfigurationFetchInstance] PortingWebhookConfigurationFetchInstance
78
78
  def get_instance(payload)
79
- WebhookInstance.new(@version, payload)
79
+ PortingWebhookConfigurationFetchInstance.new(@version, payload)
80
80
  end
81
81
 
82
82
  ##
83
83
  # Provide a user friendly representation
84
84
  def to_s
85
- '<Twilio.Numbers.V1.WebhookPage>'
85
+ '<Twilio.Numbers.V1.PortingWebhookConfigurationFetchPage>'
86
86
  end
87
87
  end
88
- class WebhookInstance < InstanceResource
88
+ class PortingWebhookConfigurationFetchInstance < InstanceResource
89
89
  ##
90
- # Initialize the WebhookInstance
90
+ # Initialize the PortingWebhookConfigurationFetchInstance
91
91
  # @param [Version] version Version that contains the resource
92
92
  # @param [Hash] payload payload that contains response from Twilio
93
93
  # @param [String] account_sid The SID of the
94
- # {Account}[https://www.twilio.com/docs/iam/api/account] that created this Webhook
94
+ # {Account}[https://www.twilio.com/docs/iam/api/account] that created this PortingWebhookConfigurationFetch
95
95
  # resource.
96
96
  # @param [String] sid The SID of the Call resource to fetch.
97
- # @return [WebhookInstance] WebhookInstance
97
+ # @return [PortingWebhookConfigurationFetchInstance] PortingWebhookConfigurationFetchInstance
98
98
  def initialize(version, payload )
99
99
  super(version)
100
100
 
@@ -149,13 +149,13 @@ module Twilio
149
149
  ##
150
150
  # Provide a user friendly representation
151
151
  def to_s
152
- "<Twilio.Numbers.V1.WebhookInstance>"
152
+ "<Twilio.Numbers.V1.PortingWebhookConfigurationFetchInstance>"
153
153
  end
154
154
 
155
155
  ##
156
156
  # Provide a detailed, user friendly representation
157
157
  def inspect
158
- "<Twilio.Numbers.V1.WebhookInstance>"
158
+ "<Twilio.Numbers.V1.PortingWebhookConfigurationFetchInstance>"
159
159
  end
160
160
  end
161
161
 
@@ -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
31
32
  @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
+ ##
138
143
  # @return [Twilio::REST::Numbers::V1::SigningRequestConfigurationList]
139
144
  def signing_request_configurations
140
145
  @signing_request_configurations ||= SigningRequestConfigurationList.new self
141
146
  end
142
147
  ##
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>';
@@ -1,3 +1,3 @@
1
1
  module Twilio
2
- VERSION = '7.4.0'
2
+ VERSION = '7.4.1'
3
3
  end
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.4.0
4
+ version: 7.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Twilio API Team
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-12-12 00:00:00.000000000 Z
11
+ date: 2025-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt
@@ -190,7 +190,7 @@ dependencies:
190
190
  version: 1.4.2
191
191
  description: The official library for communicating with the Twilio REST API, building
192
192
  TwiML, and generating Twilio JWT Capability Tokens
193
- email:
193
+ email:
194
194
  executables: []
195
195
  extensions: []
196
196
  extra_rdoc_files:
@@ -620,8 +620,8 @@ files:
620
620
  - lib/twilio-ruby/rest/numbers/v1/porting_portability.rb
621
621
  - lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb
622
622
  - lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb
623
+ - lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb
623
624
  - lib/twilio-ruby/rest/numbers/v1/signing_request_configuration.rb
624
- - lib/twilio-ruby/rest/numbers/v1/webhook.rb
625
625
  - lib/twilio-ruby/rest/numbers/v2.rb
626
626
  - lib/twilio-ruby/rest/numbers/v2/authorization_document.rb
627
627
  - lib/twilio-ruby/rest/numbers/v2/authorization_document/dependent_hosted_number_order.rb
@@ -911,7 +911,7 @@ licenses:
911
911
  metadata:
912
912
  documentation_uri: https://www.twilio.com/docs/libraries/reference/twilio-ruby/
913
913
  yard.run: yri
914
- post_install_message:
914
+ post_install_message:
915
915
  rdoc_options:
916
916
  - "--line-numbers"
917
917
  - "--inline-source"
@@ -932,9 +932,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
932
932
  - !ruby/object:Gem::Version
933
933
  version: '0'
934
934
  requirements: []
935
- rubyforge_project:
935
+ rubyforge_project:
936
936
  rubygems_version: 2.6.14.4
937
- signing_key:
937
+ signing_key:
938
938
  specification_version: 4
939
939
  summary: The official library for communicating with the Twilio REST API, building
940
940
  TwiML, and generating Twilio JWT Capability Tokens