pingram 1.0.42 → 1.0.43
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 +2 -2
- data/lib/pingram/api/account_api.rb +26 -0
- data/lib/pingram/api/accounts_api.rb +76 -0
- data/lib/pingram/api/broadcasts_api.rb +28 -0
- data/lib/pingram/api/default_api.rb +2 -0
- data/lib/pingram/api/domains_api.rb +12 -4
- data/lib/pingram/api/editor_api.rb +2 -0
- data/lib/pingram/api/email_api.rb +4 -0
- data/lib/pingram/api/environments_api.rb +2 -0
- data/lib/pingram/api/health_api.rb +2 -0
- data/lib/pingram/api/library_api.rb +4 -0
- data/lib/pingram/api/logs_api.rb +12 -0
- data/lib/pingram/api/members_api.rb +2 -0
- data/lib/pingram/api/numbers_api.rb +10 -0
- data/lib/pingram/api/registrations_api.rb +10 -0
- data/lib/pingram/api/sender_api.rb +2 -0
- data/lib/pingram/api/sms_api.rb +2 -0
- data/lib/pingram/api/sub_notifications_api.rb +4 -0
- data/lib/pingram/api/user_api.rb +6 -0
- data/lib/pingram/api/users_api.rb +2 -0
- data/lib/pingram/api/voice_api.rb +80 -0
- data/lib/pingram/api/webhooks_api.rb +8 -0
- data/lib/pingram/api_client.rb +1 -1
- data/lib/pingram/models/account_summary.rb +304 -0
- data/lib/pingram/models/agent.rb +10 -1
- data/lib/pingram/models/agent1.rb +10 -1
- data/lib/pingram/models/agent_agent_model.rb +2 -0
- data/lib/pingram/models/arm_voice_inbound_claim_request_inbound.rb +2 -0
- data/lib/pingram/models/brand_webhook_response.rb +1 -1
- data/lib/pingram/models/campaign_webhook_response.rb +1 -1
- data/lib/pingram/models/check_domain_dns_request.rb +148 -0
- data/lib/pingram/models/domain_dns_check_records_inner.rb +2 -2
- data/lib/pingram/models/elevenlabs.rb +207 -0
- data/lib/pingram/models/elevenlabs1.rb +207 -0
- data/lib/pingram/models/elevenlabs_eleven_realtime_v1_max.rb +251 -0
- data/lib/pingram/models/elevenlabs_eleven_realtime_v1_mini.rb +251 -0
- data/lib/pingram/models/get_senders_response_inner.rb +68 -4
- data/lib/pingram/models/get_senders_response_inner_verification_records.rb +13 -4
- data/lib/pingram/models/get_senders_response_inner_verification_records_dkim.rb +2 -2
- data/lib/pingram/models/get_voice_call_response_call.rb +30 -1
- data/lib/pingram/models/get_voice_call_response_call_setup.rb +272 -0
- data/lib/pingram/models/get_voice_call_response_call_setup_stream.rb +190 -0
- data/lib/pingram/models/get_voice_call_response_call_setup_transcript.rb +41 -0
- data/lib/pingram/models/google_gemini31_flash_live_preview.rb +22 -1
- data/lib/pingram/models/inbound_config.rb +2 -0
- data/lib/pingram/models/intercom_webhook.rb +1 -1
- data/lib/pingram/models/internal_transfer_body.rb +254 -0
- data/lib/pingram/models/internal_transfer_body_agent_meters_inner.rb +328 -0
- data/lib/pingram/models/list_voice_calls_response_calls_inner.rb +24 -4
- data/lib/pingram/models/member_update_request.rb +1 -1
- data/lib/pingram/models/openai_gpt_live1.rb +22 -1
- data/lib/pingram/models/openai_gpt_realtime21.rb +22 -1
- data/lib/pingram/models/openai_gpt_realtime21_mini.rb +22 -1
- data/lib/pingram/models/script.rb +10 -1
- data/lib/pingram/models/script1.rb +10 -1
- data/lib/pingram/models/script_privacy.rb +43 -8
- data/lib/pingram/models/script_stream.rb +193 -0
- data/lib/pingram/models/sign_in_username_response.rb +1 -1
- data/lib/pingram/models/sign_out_request.rb +1 -1
- data/lib/pingram/models/sms_compliance_countries_response_countries_inner.rb +1 -1
- data/lib/pingram/models/sms_compliance_country.rb +1 -1
- data/lib/pingram/models/stream.rb +207 -0
- data/lib/pingram/models/ten_dlc_brand_admin_update_request.rb +1 -1
- data/lib/pingram/models/transfer1.rb +40 -1
- data/lib/pingram/models/transfer_call_request.rb +196 -0
- data/lib/pingram/models/transfer_destinations_inner.rb +25 -56
- data/lib/pingram/models/update_account_request.rb +184 -0
- data/lib/pingram/models/voice_browser_call_request_config_any_of.rb +3 -1
- data/lib/pingram/models/voice_call_response.rb +32 -5
- data/lib/pingram/version.rb +1 -1
- data/lib/pingram.rb +15 -0
- data/vendor/bundle/ruby/3.2.0/cache/ethon-0.19.2.gem +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/CHANGELOG.md +45 -1
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/README.md +55 -8
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curl.rb +44 -0
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.2/lib/ethon/easy/form.rb +261 -0
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/informations.rb +30 -0
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/mirror.rb +7 -1
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/options.rb +11 -7
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/queryable.rb +5 -0
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.2/lib/ethon/errors/fork_safety.rb +10 -0
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/libc.rb +5 -0
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.2/lib/ethon/multipart.rb +115 -0
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/version.rb +1 -1
- data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon.rb +1 -0
- data/vendor/bundle/ruby/3.2.0/specifications/{ethon-0.19.1.gemspec → ethon-0.19.2.gemspec} +4 -4
- metadata +104 -88
- data/vendor/bundle/ruby/3.2.0/cache/ethon-0.19.1.gem +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/easy/form.rb +0 -166
- data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/errors/fork_safety.rb +0 -10
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/LICENSE +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/ethon.gemspec +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/classes.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/codes.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/constants.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/form_options.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/functions.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/infos.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/introspection.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/introspection_constants.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/messages.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/mime.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/optional.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/options.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/settings.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/share.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/share_constants.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/url.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/url_constants.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/callbacks.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/debug_info.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/features.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/files.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/header.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/headers_api.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http/actionable.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http/custom.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http/delete.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http/get.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http/head.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http/options.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http/patch.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http/post.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http/postable.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http/put.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http/putable.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/mime.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/operations.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/params.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/response_callbacks.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/share.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/url.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/util.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/ethon_error.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/form_add.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/global_init.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/header.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/invalid_option.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/invalid_value.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/mime.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/multi_add.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/multi_assign.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/multi_fdset.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/multi_perform.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/multi_poll.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/multi_remove.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/multi_timeout.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/multi_wait.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/multi_wakeup.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/select.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/set_option.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/share.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/unsupported_option.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/url.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/loggable.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/multi/operations.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/multi/options.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/multi/stack.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/multi.rb +0 -0
|
@@ -15,6 +15,8 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module Pingram
|
|
17
17
|
class OpenaiGptLive1 < ApiModelBase
|
|
18
|
+
attr_accessor :effort
|
|
19
|
+
|
|
18
20
|
# Which realtime model processes the call.
|
|
19
21
|
attr_accessor :model
|
|
20
22
|
|
|
@@ -51,6 +53,7 @@ module Pingram
|
|
|
51
53
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
52
54
|
def self.attribute_map
|
|
53
55
|
{
|
|
56
|
+
:'effort' => :'effort',
|
|
54
57
|
:'model' => :'model',
|
|
55
58
|
:'voice_id' => :'voiceId',
|
|
56
59
|
:'temperature' => :'temperature',
|
|
@@ -71,6 +74,7 @@ module Pingram
|
|
|
71
74
|
# Attribute type mapping.
|
|
72
75
|
def self.openapi_types
|
|
73
76
|
{
|
|
77
|
+
:'effort' => :'String',
|
|
74
78
|
:'model' => :'String',
|
|
75
79
|
:'voice_id' => :'String',
|
|
76
80
|
:'temperature' => :'Float',
|
|
@@ -100,6 +104,10 @@ module Pingram
|
|
|
100
104
|
h[k.to_sym] = v
|
|
101
105
|
}
|
|
102
106
|
|
|
107
|
+
if attributes.key?(:'effort')
|
|
108
|
+
self.effort = attributes[:'effort']
|
|
109
|
+
end
|
|
110
|
+
|
|
103
111
|
if attributes.key?(:'model')
|
|
104
112
|
self.model = attributes[:'model']
|
|
105
113
|
else
|
|
@@ -135,6 +143,8 @@ module Pingram
|
|
|
135
143
|
# @return true if the model is valid
|
|
136
144
|
def valid?
|
|
137
145
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
146
|
+
effort_validator = EnumAttributeValidator.new('String', ["none", "low", "medium", "high", "xhigh", "max"])
|
|
147
|
+
return false unless effort_validator.valid?(@effort)
|
|
138
148
|
return false if @model.nil?
|
|
139
149
|
model_validator = EnumAttributeValidator.new('String', ["openai:gpt-live-1"])
|
|
140
150
|
return false unless model_validator.valid?(@model)
|
|
@@ -143,6 +153,16 @@ module Pingram
|
|
|
143
153
|
true
|
|
144
154
|
end
|
|
145
155
|
|
|
156
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
157
|
+
# @param [Object] effort Object to be assigned
|
|
158
|
+
def effort=(effort)
|
|
159
|
+
validator = EnumAttributeValidator.new('String', ["none", "low", "medium", "high", "xhigh", "max"])
|
|
160
|
+
unless validator.valid?(effort)
|
|
161
|
+
fail ArgumentError, "invalid value for \"effort\", must be one of #{validator.allowable_values}."
|
|
162
|
+
end
|
|
163
|
+
@effort = effort
|
|
164
|
+
end
|
|
165
|
+
|
|
146
166
|
# Custom attribute writer method checking allowed values (enum).
|
|
147
167
|
# @param [Object] model Object to be assigned
|
|
148
168
|
def model=(model)
|
|
@@ -168,6 +188,7 @@ module Pingram
|
|
|
168
188
|
def ==(o)
|
|
169
189
|
return true if self.equal?(o)
|
|
170
190
|
self.class == o.class &&
|
|
191
|
+
effort == o.effort &&
|
|
171
192
|
model == o.model &&
|
|
172
193
|
voice_id == o.voice_id &&
|
|
173
194
|
temperature == o.temperature &&
|
|
@@ -183,7 +204,7 @@ module Pingram
|
|
|
183
204
|
# Calculates hash code according to all attributes.
|
|
184
205
|
# @return [Integer] Hash code
|
|
185
206
|
def hash
|
|
186
|
-
[model, voice_id, temperature, max_tokens].hash
|
|
207
|
+
[effort, model, voice_id, temperature, max_tokens].hash
|
|
187
208
|
end
|
|
188
209
|
|
|
189
210
|
# Builds the object from hash
|
|
@@ -15,6 +15,8 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module Pingram
|
|
17
17
|
class OpenaiGptRealtime21 < ApiModelBase
|
|
18
|
+
attr_accessor :effort
|
|
19
|
+
|
|
18
20
|
# Which realtime model processes the call.
|
|
19
21
|
attr_accessor :model
|
|
20
22
|
|
|
@@ -51,6 +53,7 @@ module Pingram
|
|
|
51
53
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
52
54
|
def self.attribute_map
|
|
53
55
|
{
|
|
56
|
+
:'effort' => :'effort',
|
|
54
57
|
:'model' => :'model',
|
|
55
58
|
:'voice_id' => :'voiceId',
|
|
56
59
|
:'temperature' => :'temperature',
|
|
@@ -71,6 +74,7 @@ module Pingram
|
|
|
71
74
|
# Attribute type mapping.
|
|
72
75
|
def self.openapi_types
|
|
73
76
|
{
|
|
77
|
+
:'effort' => :'String',
|
|
74
78
|
:'model' => :'String',
|
|
75
79
|
:'voice_id' => :'String',
|
|
76
80
|
:'temperature' => :'Float',
|
|
@@ -100,6 +104,10 @@ module Pingram
|
|
|
100
104
|
h[k.to_sym] = v
|
|
101
105
|
}
|
|
102
106
|
|
|
107
|
+
if attributes.key?(:'effort')
|
|
108
|
+
self.effort = attributes[:'effort']
|
|
109
|
+
end
|
|
110
|
+
|
|
103
111
|
if attributes.key?(:'model')
|
|
104
112
|
self.model = attributes[:'model']
|
|
105
113
|
else
|
|
@@ -135,6 +143,8 @@ module Pingram
|
|
|
135
143
|
# @return true if the model is valid
|
|
136
144
|
def valid?
|
|
137
145
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
146
|
+
effort_validator = EnumAttributeValidator.new('String', ["minimal", "low", "medium", "high", "xhigh"])
|
|
147
|
+
return false unless effort_validator.valid?(@effort)
|
|
138
148
|
return false if @model.nil?
|
|
139
149
|
model_validator = EnumAttributeValidator.new('String', ["openai:gpt-realtime-2.1"])
|
|
140
150
|
return false unless model_validator.valid?(@model)
|
|
@@ -143,6 +153,16 @@ module Pingram
|
|
|
143
153
|
true
|
|
144
154
|
end
|
|
145
155
|
|
|
156
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
157
|
+
# @param [Object] effort Object to be assigned
|
|
158
|
+
def effort=(effort)
|
|
159
|
+
validator = EnumAttributeValidator.new('String', ["minimal", "low", "medium", "high", "xhigh"])
|
|
160
|
+
unless validator.valid?(effort)
|
|
161
|
+
fail ArgumentError, "invalid value for \"effort\", must be one of #{validator.allowable_values}."
|
|
162
|
+
end
|
|
163
|
+
@effort = effort
|
|
164
|
+
end
|
|
165
|
+
|
|
146
166
|
# Custom attribute writer method checking allowed values (enum).
|
|
147
167
|
# @param [Object] model Object to be assigned
|
|
148
168
|
def model=(model)
|
|
@@ -168,6 +188,7 @@ module Pingram
|
|
|
168
188
|
def ==(o)
|
|
169
189
|
return true if self.equal?(o)
|
|
170
190
|
self.class == o.class &&
|
|
191
|
+
effort == o.effort &&
|
|
171
192
|
model == o.model &&
|
|
172
193
|
voice_id == o.voice_id &&
|
|
173
194
|
temperature == o.temperature &&
|
|
@@ -183,7 +204,7 @@ module Pingram
|
|
|
183
204
|
# Calculates hash code according to all attributes.
|
|
184
205
|
# @return [Integer] Hash code
|
|
185
206
|
def hash
|
|
186
|
-
[model, voice_id, temperature, max_tokens].hash
|
|
207
|
+
[effort, model, voice_id, temperature, max_tokens].hash
|
|
187
208
|
end
|
|
188
209
|
|
|
189
210
|
# Builds the object from hash
|
|
@@ -15,6 +15,8 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module Pingram
|
|
17
17
|
class OpenaiGptRealtime21Mini < ApiModelBase
|
|
18
|
+
attr_accessor :effort
|
|
19
|
+
|
|
18
20
|
# Which realtime model processes the call.
|
|
19
21
|
attr_accessor :model
|
|
20
22
|
|
|
@@ -51,6 +53,7 @@ module Pingram
|
|
|
51
53
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
52
54
|
def self.attribute_map
|
|
53
55
|
{
|
|
56
|
+
:'effort' => :'effort',
|
|
54
57
|
:'model' => :'model',
|
|
55
58
|
:'voice_id' => :'voiceId',
|
|
56
59
|
:'temperature' => :'temperature',
|
|
@@ -71,6 +74,7 @@ module Pingram
|
|
|
71
74
|
# Attribute type mapping.
|
|
72
75
|
def self.openapi_types
|
|
73
76
|
{
|
|
77
|
+
:'effort' => :'String',
|
|
74
78
|
:'model' => :'String',
|
|
75
79
|
:'voice_id' => :'String',
|
|
76
80
|
:'temperature' => :'Float',
|
|
@@ -100,6 +104,10 @@ module Pingram
|
|
|
100
104
|
h[k.to_sym] = v
|
|
101
105
|
}
|
|
102
106
|
|
|
107
|
+
if attributes.key?(:'effort')
|
|
108
|
+
self.effort = attributes[:'effort']
|
|
109
|
+
end
|
|
110
|
+
|
|
103
111
|
if attributes.key?(:'model')
|
|
104
112
|
self.model = attributes[:'model']
|
|
105
113
|
else
|
|
@@ -135,6 +143,8 @@ module Pingram
|
|
|
135
143
|
# @return true if the model is valid
|
|
136
144
|
def valid?
|
|
137
145
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
146
|
+
effort_validator = EnumAttributeValidator.new('String', ["minimal", "low", "medium", "high", "xhigh"])
|
|
147
|
+
return false unless effort_validator.valid?(@effort)
|
|
138
148
|
return false if @model.nil?
|
|
139
149
|
model_validator = EnumAttributeValidator.new('String', ["openai:gpt-realtime-2.1-mini"])
|
|
140
150
|
return false unless model_validator.valid?(@model)
|
|
@@ -143,6 +153,16 @@ module Pingram
|
|
|
143
153
|
true
|
|
144
154
|
end
|
|
145
155
|
|
|
156
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
157
|
+
# @param [Object] effort Object to be assigned
|
|
158
|
+
def effort=(effort)
|
|
159
|
+
validator = EnumAttributeValidator.new('String', ["minimal", "low", "medium", "high", "xhigh"])
|
|
160
|
+
unless validator.valid?(effort)
|
|
161
|
+
fail ArgumentError, "invalid value for \"effort\", must be one of #{validator.allowable_values}."
|
|
162
|
+
end
|
|
163
|
+
@effort = effort
|
|
164
|
+
end
|
|
165
|
+
|
|
146
166
|
# Custom attribute writer method checking allowed values (enum).
|
|
147
167
|
# @param [Object] model Object to be assigned
|
|
148
168
|
def model=(model)
|
|
@@ -168,6 +188,7 @@ module Pingram
|
|
|
168
188
|
def ==(o)
|
|
169
189
|
return true if self.equal?(o)
|
|
170
190
|
self.class == o.class &&
|
|
191
|
+
effort == o.effort &&
|
|
171
192
|
model == o.model &&
|
|
172
193
|
voice_id == o.voice_id &&
|
|
173
194
|
temperature == o.temperature &&
|
|
@@ -183,7 +204,7 @@ module Pingram
|
|
|
183
204
|
# Calculates hash code according to all attributes.
|
|
184
205
|
# @return [Integer] Hash code
|
|
185
206
|
def hash
|
|
186
|
-
[model, voice_id, temperature, max_tokens].hash
|
|
207
|
+
[effort, model, voice_id, temperature, max_tokens].hash
|
|
187
208
|
end
|
|
188
209
|
|
|
189
210
|
# Builds the object from hash
|
|
@@ -19,6 +19,8 @@ module Pingram
|
|
|
19
19
|
|
|
20
20
|
attr_accessor :steps
|
|
21
21
|
|
|
22
|
+
attr_accessor :stream
|
|
23
|
+
|
|
22
24
|
attr_accessor :privacy
|
|
23
25
|
|
|
24
26
|
class EnumAttributeValidator
|
|
@@ -48,6 +50,7 @@ module Pingram
|
|
|
48
50
|
{
|
|
49
51
|
:'type' => :'type',
|
|
50
52
|
:'steps' => :'steps',
|
|
53
|
+
:'stream' => :'stream',
|
|
51
54
|
:'privacy' => :'privacy'
|
|
52
55
|
}
|
|
53
56
|
end
|
|
@@ -67,6 +70,7 @@ module Pingram
|
|
|
67
70
|
{
|
|
68
71
|
:'type' => :'String',
|
|
69
72
|
:'steps' => :'Array<ScriptStepsInner>',
|
|
73
|
+
:'stream' => :'ScriptStream',
|
|
70
74
|
:'privacy' => :'ScriptPrivacy'
|
|
71
75
|
}
|
|
72
76
|
end
|
|
@@ -107,6 +111,10 @@ module Pingram
|
|
|
107
111
|
self.steps = nil
|
|
108
112
|
end
|
|
109
113
|
|
|
114
|
+
if attributes.key?(:'stream')
|
|
115
|
+
self.stream = attributes[:'stream']
|
|
116
|
+
end
|
|
117
|
+
|
|
110
118
|
if attributes.key?(:'privacy')
|
|
111
119
|
self.privacy = attributes[:'privacy']
|
|
112
120
|
end
|
|
@@ -166,6 +174,7 @@ module Pingram
|
|
|
166
174
|
self.class == o.class &&
|
|
167
175
|
type == o.type &&
|
|
168
176
|
steps == o.steps &&
|
|
177
|
+
stream == o.stream &&
|
|
169
178
|
privacy == o.privacy
|
|
170
179
|
end
|
|
171
180
|
|
|
@@ -178,7 +187,7 @@ module Pingram
|
|
|
178
187
|
# Calculates hash code according to all attributes.
|
|
179
188
|
# @return [Integer] Hash code
|
|
180
189
|
def hash
|
|
181
|
-
[type, steps, privacy].hash
|
|
190
|
+
[type, steps, stream, privacy].hash
|
|
182
191
|
end
|
|
183
192
|
|
|
184
193
|
# Builds the object from hash
|
|
@@ -24,6 +24,8 @@ module Pingram
|
|
|
24
24
|
|
|
25
25
|
attr_accessor :voicemail_message
|
|
26
26
|
|
|
27
|
+
attr_accessor :stream
|
|
28
|
+
|
|
27
29
|
attr_accessor :privacy
|
|
28
30
|
|
|
29
31
|
class EnumAttributeValidator
|
|
@@ -55,6 +57,7 @@ module Pingram
|
|
|
55
57
|
:'steps' => :'steps',
|
|
56
58
|
:'voicemail_action' => :'voicemailAction',
|
|
57
59
|
:'voicemail_message' => :'voicemailMessage',
|
|
60
|
+
:'stream' => :'stream',
|
|
58
61
|
:'privacy' => :'privacy'
|
|
59
62
|
}
|
|
60
63
|
end
|
|
@@ -76,6 +79,7 @@ module Pingram
|
|
|
76
79
|
:'steps' => :'Array<ScriptStepsInner>',
|
|
77
80
|
:'voicemail_action' => :'String',
|
|
78
81
|
:'voicemail_message' => :'String',
|
|
82
|
+
:'stream' => :'ScriptStream',
|
|
79
83
|
:'privacy' => :'ScriptPrivacy'
|
|
80
84
|
}
|
|
81
85
|
end
|
|
@@ -124,6 +128,10 @@ module Pingram
|
|
|
124
128
|
self.voicemail_message = attributes[:'voicemail_message']
|
|
125
129
|
end
|
|
126
130
|
|
|
131
|
+
if attributes.key?(:'stream')
|
|
132
|
+
self.stream = attributes[:'stream']
|
|
133
|
+
end
|
|
134
|
+
|
|
127
135
|
if attributes.key?(:'privacy')
|
|
128
136
|
self.privacy = attributes[:'privacy']
|
|
129
137
|
end
|
|
@@ -197,6 +205,7 @@ module Pingram
|
|
|
197
205
|
steps == o.steps &&
|
|
198
206
|
voicemail_action == o.voicemail_action &&
|
|
199
207
|
voicemail_message == o.voicemail_message &&
|
|
208
|
+
stream == o.stream &&
|
|
200
209
|
privacy == o.privacy
|
|
201
210
|
end
|
|
202
211
|
|
|
@@ -209,7 +218,7 @@ module Pingram
|
|
|
209
218
|
# Calculates hash code according to all attributes.
|
|
210
219
|
# @return [Integer] Hash code
|
|
211
220
|
def hash
|
|
212
|
-
[type, steps, voicemail_action, voicemail_message, privacy].hash
|
|
221
|
+
[type, steps, voicemail_action, voicemail_message, stream, privacy].hash
|
|
213
222
|
end
|
|
214
223
|
|
|
215
224
|
# Builds the object from hash
|
|
@@ -14,17 +14,40 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Pingram
|
|
17
|
-
# Omitted
|
|
17
|
+
# Omitted record and transcript mean both are off.
|
|
18
18
|
class ScriptPrivacy < ApiModelBase
|
|
19
19
|
attr_accessor :record
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
# single mixes every channel into one stream. multichannel transcribes each channel.
|
|
22
|
+
attr_accessor :transcript
|
|
23
|
+
|
|
24
|
+
class EnumAttributeValidator
|
|
25
|
+
attr_reader :datatype
|
|
26
|
+
attr_reader :allowable_values
|
|
27
|
+
|
|
28
|
+
def initialize(datatype, allowable_values)
|
|
29
|
+
@allowable_values = allowable_values.map do |value|
|
|
30
|
+
case datatype.to_s
|
|
31
|
+
when /Integer/i
|
|
32
|
+
value.to_i
|
|
33
|
+
when /Float/i
|
|
34
|
+
value.to_f
|
|
35
|
+
else
|
|
36
|
+
value
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
def valid?(value)
|
|
42
|
+
!value || allowable_values.include?(value)
|
|
43
|
+
end
|
|
44
|
+
end
|
|
22
45
|
|
|
23
46
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
24
47
|
def self.attribute_map
|
|
25
48
|
{
|
|
26
49
|
:'record' => :'record',
|
|
27
|
-
:'
|
|
50
|
+
:'transcript' => :'transcript'
|
|
28
51
|
}
|
|
29
52
|
end
|
|
30
53
|
|
|
@@ -42,7 +65,7 @@ module Pingram
|
|
|
42
65
|
def self.openapi_types
|
|
43
66
|
{
|
|
44
67
|
:'record' => :'Boolean',
|
|
45
|
-
:'
|
|
68
|
+
:'transcript' => :'String'
|
|
46
69
|
}
|
|
47
70
|
end
|
|
48
71
|
|
|
@@ -72,8 +95,8 @@ module Pingram
|
|
|
72
95
|
self.record = attributes[:'record']
|
|
73
96
|
end
|
|
74
97
|
|
|
75
|
-
if attributes.key?(:'
|
|
76
|
-
self.
|
|
98
|
+
if attributes.key?(:'transcript')
|
|
99
|
+
self.transcript = attributes[:'transcript']
|
|
77
100
|
end
|
|
78
101
|
end
|
|
79
102
|
|
|
@@ -89,16 +112,28 @@ module Pingram
|
|
|
89
112
|
# @return true if the model is valid
|
|
90
113
|
def valid?
|
|
91
114
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
115
|
+
transcript_validator = EnumAttributeValidator.new('String', ["single", "multichannel"])
|
|
116
|
+
return false unless transcript_validator.valid?(@transcript)
|
|
92
117
|
true
|
|
93
118
|
end
|
|
94
119
|
|
|
120
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
121
|
+
# @param [Object] transcript Object to be assigned
|
|
122
|
+
def transcript=(transcript)
|
|
123
|
+
validator = EnumAttributeValidator.new('String', ["single", "multichannel"])
|
|
124
|
+
unless validator.valid?(transcript)
|
|
125
|
+
fail ArgumentError, "invalid value for \"transcript\", must be one of #{validator.allowable_values}."
|
|
126
|
+
end
|
|
127
|
+
@transcript = transcript
|
|
128
|
+
end
|
|
129
|
+
|
|
95
130
|
# Checks equality by comparing each attribute.
|
|
96
131
|
# @param [Object] Object to be compared
|
|
97
132
|
def ==(o)
|
|
98
133
|
return true if self.equal?(o)
|
|
99
134
|
self.class == o.class &&
|
|
100
135
|
record == o.record &&
|
|
101
|
-
|
|
136
|
+
transcript == o.transcript
|
|
102
137
|
end
|
|
103
138
|
|
|
104
139
|
# @see the `==` method
|
|
@@ -110,7 +145,7 @@ module Pingram
|
|
|
110
145
|
# Calculates hash code according to all attributes.
|
|
111
146
|
# @return [Integer] Hash code
|
|
112
147
|
def hash
|
|
113
|
-
[record,
|
|
148
|
+
[record, transcript].hash
|
|
114
149
|
end
|
|
115
150
|
|
|
116
151
|
# Builds the object from hash
|
|
@@ -0,0 +1,193 @@
|
|
|
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
|
+
# What the call socket carries. Omitted means the socket is open and carries neither.
|
|
18
|
+
class ScriptStream < ApiModelBase
|
|
19
|
+
# Live call audio. Omitted means off.
|
|
20
|
+
attr_accessor :audio
|
|
21
|
+
|
|
22
|
+
# single mixes every channel into one stream. multichannel transcribes each channel.
|
|
23
|
+
attr_accessor :transcript
|
|
24
|
+
|
|
25
|
+
class EnumAttributeValidator
|
|
26
|
+
attr_reader :datatype
|
|
27
|
+
attr_reader :allowable_values
|
|
28
|
+
|
|
29
|
+
def initialize(datatype, allowable_values)
|
|
30
|
+
@allowable_values = allowable_values.map do |value|
|
|
31
|
+
case datatype.to_s
|
|
32
|
+
when /Integer/i
|
|
33
|
+
value.to_i
|
|
34
|
+
when /Float/i
|
|
35
|
+
value.to_f
|
|
36
|
+
else
|
|
37
|
+
value
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
def valid?(value)
|
|
43
|
+
!value || allowable_values.include?(value)
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
48
|
+
def self.attribute_map
|
|
49
|
+
{
|
|
50
|
+
:'audio' => :'audio',
|
|
51
|
+
:'transcript' => :'transcript'
|
|
52
|
+
}
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Returns attribute mapping this model knows about
|
|
56
|
+
def self.acceptable_attribute_map
|
|
57
|
+
attribute_map
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# Returns all the JSON keys this model knows about
|
|
61
|
+
def self.acceptable_attributes
|
|
62
|
+
acceptable_attribute_map.values
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# Attribute type mapping.
|
|
66
|
+
def self.openapi_types
|
|
67
|
+
{
|
|
68
|
+
:'audio' => :'Boolean',
|
|
69
|
+
:'transcript' => :'String'
|
|
70
|
+
}
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# List of attributes with nullable: true
|
|
74
|
+
def self.openapi_nullable
|
|
75
|
+
Set.new([
|
|
76
|
+
])
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# Initializes the object
|
|
80
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
81
|
+
def initialize(attributes = {})
|
|
82
|
+
if (!attributes.is_a?(Hash))
|
|
83
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::ScriptStream` initialize method"
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
87
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
88
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
89
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
90
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::ScriptStream`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
91
|
+
end
|
|
92
|
+
h[k.to_sym] = v
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
if attributes.key?(:'audio')
|
|
96
|
+
self.audio = attributes[:'audio']
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
if attributes.key?(:'transcript')
|
|
100
|
+
self.transcript = attributes[:'transcript']
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
105
|
+
# @return Array for valid properties with the reasons
|
|
106
|
+
def list_invalid_properties
|
|
107
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
108
|
+
invalid_properties = Array.new
|
|
109
|
+
invalid_properties
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
# Check to see if the all the properties in the model are valid
|
|
113
|
+
# @return true if the model is valid
|
|
114
|
+
def valid?
|
|
115
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
116
|
+
transcript_validator = EnumAttributeValidator.new('String', ["single", "multichannel"])
|
|
117
|
+
return false unless transcript_validator.valid?(@transcript)
|
|
118
|
+
true
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
122
|
+
# @param [Object] transcript Object to be assigned
|
|
123
|
+
def transcript=(transcript)
|
|
124
|
+
validator = EnumAttributeValidator.new('String', ["single", "multichannel"])
|
|
125
|
+
unless validator.valid?(transcript)
|
|
126
|
+
fail ArgumentError, "invalid value for \"transcript\", must be one of #{validator.allowable_values}."
|
|
127
|
+
end
|
|
128
|
+
@transcript = transcript
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# Checks equality by comparing each attribute.
|
|
132
|
+
# @param [Object] Object to be compared
|
|
133
|
+
def ==(o)
|
|
134
|
+
return true if self.equal?(o)
|
|
135
|
+
self.class == o.class &&
|
|
136
|
+
audio == o.audio &&
|
|
137
|
+
transcript == o.transcript
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# @see the `==` method
|
|
141
|
+
# @param [Object] Object to be compared
|
|
142
|
+
def eql?(o)
|
|
143
|
+
self == o
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
# Calculates hash code according to all attributes.
|
|
147
|
+
# @return [Integer] Hash code
|
|
148
|
+
def hash
|
|
149
|
+
[audio, transcript].hash
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
# Builds the object from hash
|
|
153
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
154
|
+
# @return [Object] Returns the model itself
|
|
155
|
+
def self.build_from_hash(attributes)
|
|
156
|
+
return nil unless attributes.is_a?(Hash)
|
|
157
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
158
|
+
transformed_hash = {}
|
|
159
|
+
openapi_types.each_pair do |key, type|
|
|
160
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
161
|
+
transformed_hash["#{key}"] = nil
|
|
162
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
163
|
+
# check to ensure the input is an array given that the attribute
|
|
164
|
+
# is documented as an array but the input is not
|
|
165
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
166
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
167
|
+
end
|
|
168
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
169
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
170
|
+
end
|
|
171
|
+
end
|
|
172
|
+
new(transformed_hash)
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# Returns the object in the form of hash
|
|
176
|
+
# @return [Hash] Returns the object in the form of hash
|
|
177
|
+
def to_hash
|
|
178
|
+
hash = {}
|
|
179
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
180
|
+
value = self.send(attr)
|
|
181
|
+
if value.nil?
|
|
182
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
183
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
hash[param] = _to_hash(value)
|
|
187
|
+
end
|
|
188
|
+
hash
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
end
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Pingram
|
|
17
|
-
# This browser's
|
|
17
|
+
# This browser's refresh token, revoked on dashboard sign-out.
|
|
18
18
|
class SignOutRequest < ApiModelBase
|
|
19
19
|
attr_accessor :refresh_token
|
|
20
20
|
|
|
@@ -19,7 +19,7 @@ module Pingram
|
|
|
19
19
|
|
|
20
20
|
attr_accessor :added_at
|
|
21
21
|
|
|
22
|
-
# Who added the country. `system` when the app added it, `api` when an API key added it; otherwise the
|
|
22
|
+
# Who added the country. `system` when the app added it, `api` when an API key added it; otherwise the user id.
|
|
23
23
|
attr_accessor :added_by
|
|
24
24
|
|
|
25
25
|
# True when the account Sender ID can be used to send to this country.
|
|
@@ -19,7 +19,7 @@ module Pingram
|
|
|
19
19
|
|
|
20
20
|
attr_accessor :added_at
|
|
21
21
|
|
|
22
|
-
# Who added the country. `system` when the app added it, `api` when an API key added it; otherwise the
|
|
22
|
+
# Who added the country. `system` when the app added it, `api` when an API key added it; otherwise the user id.
|
|
23
23
|
attr_accessor :added_by
|
|
24
24
|
|
|
25
25
|
# True when the account Sender ID can be used to send to this country.
|