pingram 1.0.43 → 1.0.44
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/Gemfile.lock +1 -1
- data/lib/pingram/api/numbers_api.rb +14 -2
- data/lib/pingram/api_client.rb +1 -1
- data/lib/pingram/models/get_voice_call_response_call_setup.rb +10 -30
- data/lib/pingram/models/script_privacy.rb +1 -1
- data/lib/pingram/models/script_stream.rb +1 -1
- data/lib/pingram/version.rb +1 -1
- data/lib/pingram.rb +0 -1
- metadata +2 -3
- data/lib/pingram/models/get_voice_call_response_call_setup_transcript.rb +0 -41
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f7c9c42c7f9f5d532b51ff8f9cf67f38913402f31160c78c88122702e450d582
|
|
4
|
+
data.tar.gz: 8a181e54e96f0ce6c3c1080fcd9f0b66be4e1e9d0bf04f8acc8482a85e7f76e4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3c19fb5150fb5b4814e076357bf1fe1235c506360f1de1f450ebf18c9fb3d8fd1d02ac9dcaae97bf94de2ae256df24771a53b3640efd7013fc0c0cc5a1959f92
|
|
7
|
+
data.tar.gz: 316000787531b11f642e9b98e1dc6d2460a0cb9a0e613eb554bd9f7b873d14507397b390b0437c4f1c3f4d3035a1b62c18f7a83212a1c6af5b37ca2a51c9bccb
|
data/Gemfile.lock
CHANGED
|
@@ -265,12 +265,16 @@ module Pingram
|
|
|
265
265
|
end
|
|
266
266
|
|
|
267
267
|
# Search for available phone numbers to purchase
|
|
268
|
-
# Search for available phone numbers to purchase. Requires `countryCode` (e.g. US, CA). Use before ordering a number.
|
|
268
|
+
# Search for available phone numbers to purchase. Requires `countryCode` (e.g. US, CA). Narrow the results with an area code, a city, or digits the number should start with, end with, or contain. Use before ordering a number.
|
|
269
269
|
# @param country_code [String] ISO 3166-1 alpha-2 country code (e.g., US, CA)
|
|
270
270
|
# @param [Hash] opts the optional parameters
|
|
271
271
|
# @option opts [String] :features Comma-separated
|
|
272
272
|
# @option opts [String] :area_code National destination / area code filter
|
|
273
273
|
# @option opts [Float] :limit Max results (default 10, max 50)
|
|
274
|
+
# @option opts [String] :starts_with Digits the number starts with, 1 to 7 digits. Do not include the country code. When `areaCode` is set, omit those digits here.
|
|
275
|
+
# @option opts [String] :ends_with Digits the number must end with, 1 to 7 digits. Use this to find a number close to one you already have.
|
|
276
|
+
# @option opts [String] :contains Digits to find in the number, in that order, 1 to 7 digits.
|
|
277
|
+
# @option opts [String] :city City to search in, such as San Francisco.
|
|
274
278
|
# @return [SearchAvailablePhoneNumbersResponse]
|
|
275
279
|
def numbers_search_available(country_code, opts = {})
|
|
276
280
|
data, _status_code, _headers = numbers_search_available_with_http_info(country_code, opts)
|
|
@@ -278,12 +282,16 @@ module Pingram
|
|
|
278
282
|
end
|
|
279
283
|
|
|
280
284
|
# Search for available phone numbers to purchase
|
|
281
|
-
# Search for available phone numbers to purchase. Requires `countryCode` (e.g. US, CA). Use before ordering a number.
|
|
285
|
+
# Search for available phone numbers to purchase. Requires `countryCode` (e.g. US, CA). Narrow the results with an area code, a city, or digits the number should start with, end with, or contain. Use before ordering a number.
|
|
282
286
|
# @param country_code [String] ISO 3166-1 alpha-2 country code (e.g., US, CA)
|
|
283
287
|
# @param [Hash] opts the optional parameters
|
|
284
288
|
# @option opts [String] :features Comma-separated
|
|
285
289
|
# @option opts [String] :area_code National destination / area code filter
|
|
286
290
|
# @option opts [Float] :limit Max results (default 10, max 50)
|
|
291
|
+
# @option opts [String] :starts_with Digits the number starts with, 1 to 7 digits. Do not include the country code. When `areaCode` is set, omit those digits here.
|
|
292
|
+
# @option opts [String] :ends_with Digits the number must end with, 1 to 7 digits. Use this to find a number close to one you already have.
|
|
293
|
+
# @option opts [String] :contains Digits to find in the number, in that order, 1 to 7 digits.
|
|
294
|
+
# @option opts [String] :city City to search in, such as San Francisco.
|
|
287
295
|
# @return [Array<(SearchAvailablePhoneNumbersResponse, Integer, Hash)>] SearchAvailablePhoneNumbersResponse data, response status code and response headers
|
|
288
296
|
def numbers_search_available_with_http_info(country_code, opts = {})
|
|
289
297
|
if @api_client.config.debugging
|
|
@@ -302,6 +310,10 @@ module Pingram
|
|
|
302
310
|
query_params[:'features'] = opts[:'features'] if !opts[:'features'].nil?
|
|
303
311
|
query_params[:'areaCode'] = opts[:'area_code'] if !opts[:'area_code'].nil?
|
|
304
312
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
313
|
+
query_params[:'startsWith'] = opts[:'starts_with'] if !opts[:'starts_with'].nil?
|
|
314
|
+
query_params[:'endsWith'] = opts[:'ends_with'] if !opts[:'ends_with'].nil?
|
|
315
|
+
query_params[:'contains'] = opts[:'contains'] if !opts[:'contains'].nil?
|
|
316
|
+
query_params[:'city'] = opts[:'city'] if !opts[:'city'].nil?
|
|
305
317
|
|
|
306
318
|
# header parameters
|
|
307
319
|
header_params = opts[:header_params] || {}
|
data/lib/pingram/api_client.rb
CHANGED
|
@@ -32,7 +32,7 @@ module Pingram
|
|
|
32
32
|
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
|
|
33
33
|
def initialize(config = Configuration.default)
|
|
34
34
|
@config = config
|
|
35
|
-
@user_agent = "pingram-ruby/1.0.
|
|
35
|
+
@user_agent = "pingram-ruby/1.0.44"
|
|
36
36
|
@default_headers = {
|
|
37
37
|
'Content-Type' => 'application/json',
|
|
38
38
|
'User-Agent' => @user_agent
|
|
@@ -20,8 +20,10 @@ module Pingram
|
|
|
20
20
|
|
|
21
21
|
attr_accessor :script
|
|
22
22
|
|
|
23
|
+
# Call recording. Omitted means off.
|
|
23
24
|
attr_accessor :record
|
|
24
25
|
|
|
26
|
+
# single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off.
|
|
25
27
|
attr_accessor :transcript
|
|
26
28
|
|
|
27
29
|
attr_accessor :stream
|
|
@@ -81,7 +83,7 @@ module Pingram
|
|
|
81
83
|
:'mode' => :'String',
|
|
82
84
|
:'script' => :'Array<ScriptStepsInner>',
|
|
83
85
|
:'record' => :'Boolean',
|
|
84
|
-
:'transcript' => :'
|
|
86
|
+
:'transcript' => :'String',
|
|
85
87
|
:'stream' => :'GetVoiceCallResponseCallSetupStream',
|
|
86
88
|
:'voicemail_action' => :'String',
|
|
87
89
|
:'voicemail_message' => :'String'
|
|
@@ -122,14 +124,10 @@ module Pingram
|
|
|
122
124
|
|
|
123
125
|
if attributes.key?(:'record')
|
|
124
126
|
self.record = attributes[:'record']
|
|
125
|
-
else
|
|
126
|
-
self.record = nil
|
|
127
127
|
end
|
|
128
128
|
|
|
129
129
|
if attributes.key?(:'transcript')
|
|
130
130
|
self.transcript = attributes[:'transcript']
|
|
131
|
-
else
|
|
132
|
-
self.transcript = nil
|
|
133
131
|
end
|
|
134
132
|
|
|
135
133
|
if attributes.key?(:'stream')
|
|
@@ -150,14 +148,6 @@ module Pingram
|
|
|
150
148
|
def list_invalid_properties
|
|
151
149
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
152
150
|
invalid_properties = Array.new
|
|
153
|
-
if @record.nil?
|
|
154
|
-
invalid_properties.push('invalid value for "record", record cannot be nil.')
|
|
155
|
-
end
|
|
156
|
-
|
|
157
|
-
if @transcript.nil?
|
|
158
|
-
invalid_properties.push('invalid value for "transcript", transcript cannot be nil.')
|
|
159
|
-
end
|
|
160
|
-
|
|
161
151
|
invalid_properties
|
|
162
152
|
end
|
|
163
153
|
|
|
@@ -165,30 +155,20 @@ module Pingram
|
|
|
165
155
|
# @return true if the model is valid
|
|
166
156
|
def valid?
|
|
167
157
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
168
|
-
|
|
169
|
-
return false
|
|
158
|
+
transcript_validator = EnumAttributeValidator.new('String', ["single", "multichannel"])
|
|
159
|
+
return false unless transcript_validator.valid?(@transcript)
|
|
170
160
|
voicemail_action_validator = EnumAttributeValidator.new('String', ["hangup", "message", "continue"])
|
|
171
161
|
return false unless voicemail_action_validator.valid?(@voicemail_action)
|
|
172
162
|
true
|
|
173
163
|
end
|
|
174
164
|
|
|
175
|
-
# Custom attribute writer method
|
|
176
|
-
# @param [Object]
|
|
177
|
-
def record=(record)
|
|
178
|
-
if record.nil?
|
|
179
|
-
fail ArgumentError, 'record cannot be nil'
|
|
180
|
-
end
|
|
181
|
-
|
|
182
|
-
@record = record
|
|
183
|
-
end
|
|
184
|
-
|
|
185
|
-
# Custom attribute writer method with validation
|
|
186
|
-
# @param [Object] transcript Value to be assigned
|
|
165
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
166
|
+
# @param [Object] transcript Object to be assigned
|
|
187
167
|
def transcript=(transcript)
|
|
188
|
-
|
|
189
|
-
|
|
168
|
+
validator = EnumAttributeValidator.new('String', ["single", "multichannel"])
|
|
169
|
+
unless validator.valid?(transcript)
|
|
170
|
+
fail ArgumentError, "invalid value for \"transcript\", must be one of #{validator.allowable_values}."
|
|
190
171
|
end
|
|
191
|
-
|
|
192
172
|
@transcript = transcript
|
|
193
173
|
end
|
|
194
174
|
|
|
@@ -18,7 +18,7 @@ module Pingram
|
|
|
18
18
|
class ScriptPrivacy < ApiModelBase
|
|
19
19
|
attr_accessor :record
|
|
20
20
|
|
|
21
|
-
# single mixes every channel into one stream. multichannel transcribes each channel.
|
|
21
|
+
# single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off.
|
|
22
22
|
attr_accessor :transcript
|
|
23
23
|
|
|
24
24
|
class EnumAttributeValidator
|
|
@@ -19,7 +19,7 @@ module Pingram
|
|
|
19
19
|
# Live call audio. Omitted means off.
|
|
20
20
|
attr_accessor :audio
|
|
21
21
|
|
|
22
|
-
# single mixes every channel into one stream. multichannel transcribes each channel.
|
|
22
|
+
# single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off.
|
|
23
23
|
attr_accessor :transcript
|
|
24
24
|
|
|
25
25
|
class EnumAttributeValidator
|
data/lib/pingram/version.rb
CHANGED
data/lib/pingram.rb
CHANGED
|
@@ -166,7 +166,6 @@ require 'pingram/models/get_voice_call_response_call_cost'
|
|
|
166
166
|
require 'pingram/models/get_voice_call_response_call_cost_lines_inner'
|
|
167
167
|
require 'pingram/models/get_voice_call_response_call_setup'
|
|
168
168
|
require 'pingram/models/get_voice_call_response_call_setup_stream'
|
|
169
|
-
require 'pingram/models/get_voice_call_response_call_setup_transcript'
|
|
170
169
|
require 'pingram/models/get_voice_call_response_call_timeline_inner'
|
|
171
170
|
require 'pingram/models/get_voice_call_response_call_timeline_inner_latency'
|
|
172
171
|
require 'pingram/models/google_gemini31_flash_live_preview'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pingram
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.44
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Pingram
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-11-
|
|
11
|
+
date: 2026-11-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -241,7 +241,6 @@ files:
|
|
|
241
241
|
- lib/pingram/models/get_voice_call_response_call_cost_lines_inner.rb
|
|
242
242
|
- lib/pingram/models/get_voice_call_response_call_setup.rb
|
|
243
243
|
- lib/pingram/models/get_voice_call_response_call_setup_stream.rb
|
|
244
|
-
- lib/pingram/models/get_voice_call_response_call_setup_transcript.rb
|
|
245
244
|
- lib/pingram/models/get_voice_call_response_call_timeline_inner.rb
|
|
246
245
|
- lib/pingram/models/get_voice_call_response_call_timeline_inner_latency.rb
|
|
247
246
|
- lib/pingram/models/google_gemini31_flash_live_preview.rb
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
=begin
|
|
2
|
-
#Pingram
|
|
3
|
-
|
|
4
|
-
#Internal API for notification delivery and management
|
|
5
|
-
|
|
6
|
-
The version of the OpenAPI document: 1.0.0
|
|
7
|
-
|
|
8
|
-
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.19.0
|
|
10
|
-
|
|
11
|
-
=end
|
|
12
|
-
|
|
13
|
-
require 'date'
|
|
14
|
-
require 'time'
|
|
15
|
-
|
|
16
|
-
module Pingram
|
|
17
|
-
class GetVoiceCallResponseCallSetupTranscript
|
|
18
|
-
SINGLE = "single".freeze
|
|
19
|
-
MULTICHANNEL = "multichannel".freeze
|
|
20
|
-
FALSE = "false".freeze
|
|
21
|
-
|
|
22
|
-
def self.all_vars
|
|
23
|
-
@all_vars ||= [SINGLE, MULTICHANNEL, FALSE].freeze
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
# Builds the enum from string
|
|
27
|
-
# @param [String] The enum value in the form of the string
|
|
28
|
-
# @return [String] The enum value
|
|
29
|
-
def self.build_from_hash(value)
|
|
30
|
-
new.build_from_hash(value)
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
# Builds the enum from string
|
|
34
|
-
# @param [String] The enum value in the form of the string
|
|
35
|
-
# @return [String] The enum value
|
|
36
|
-
def build_from_hash(value)
|
|
37
|
-
return value if GetVoiceCallResponseCallSetupTranscript.all_vars.include?(value)
|
|
38
|
-
raise "Invalid ENUM value #{value} for class #GetVoiceCallResponseCallSetupTranscript"
|
|
39
|
-
end
|
|
40
|
-
end
|
|
41
|
-
end
|