pingram 1.0.42 → 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 +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 +24 -2
- 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 +252 -0
- data/lib/pingram/models/get_voice_call_response_call_setup_stream.rb +190 -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 +14 -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 +103 -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
|
@@ -0,0 +1,252 @@
|
|
|
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 was requested when the call was placed. Stored on the call row.
|
|
18
|
+
class GetVoiceCallResponseCallSetup < ApiModelBase
|
|
19
|
+
attr_accessor :mode
|
|
20
|
+
|
|
21
|
+
attr_accessor :script
|
|
22
|
+
|
|
23
|
+
# Call recording. Omitted means off.
|
|
24
|
+
attr_accessor :record
|
|
25
|
+
|
|
26
|
+
# single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off.
|
|
27
|
+
attr_accessor :transcript
|
|
28
|
+
|
|
29
|
+
attr_accessor :stream
|
|
30
|
+
|
|
31
|
+
attr_accessor :voicemail_action
|
|
32
|
+
|
|
33
|
+
attr_accessor :voicemail_message
|
|
34
|
+
|
|
35
|
+
class EnumAttributeValidator
|
|
36
|
+
attr_reader :datatype
|
|
37
|
+
attr_reader :allowable_values
|
|
38
|
+
|
|
39
|
+
def initialize(datatype, allowable_values)
|
|
40
|
+
@allowable_values = allowable_values.map do |value|
|
|
41
|
+
case datatype.to_s
|
|
42
|
+
when /Integer/i
|
|
43
|
+
value.to_i
|
|
44
|
+
when /Float/i
|
|
45
|
+
value.to_f
|
|
46
|
+
else
|
|
47
|
+
value
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
def valid?(value)
|
|
53
|
+
!value || allowable_values.include?(value)
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
58
|
+
def self.attribute_map
|
|
59
|
+
{
|
|
60
|
+
:'mode' => :'mode',
|
|
61
|
+
:'script' => :'script',
|
|
62
|
+
:'record' => :'record',
|
|
63
|
+
:'transcript' => :'transcript',
|
|
64
|
+
:'stream' => :'stream',
|
|
65
|
+
:'voicemail_action' => :'voicemailAction',
|
|
66
|
+
:'voicemail_message' => :'voicemailMessage'
|
|
67
|
+
}
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Returns attribute mapping this model knows about
|
|
71
|
+
def self.acceptable_attribute_map
|
|
72
|
+
attribute_map
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# Returns all the JSON keys this model knows about
|
|
76
|
+
def self.acceptable_attributes
|
|
77
|
+
acceptable_attribute_map.values
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Attribute type mapping.
|
|
81
|
+
def self.openapi_types
|
|
82
|
+
{
|
|
83
|
+
:'mode' => :'String',
|
|
84
|
+
:'script' => :'Array<ScriptStepsInner>',
|
|
85
|
+
:'record' => :'Boolean',
|
|
86
|
+
:'transcript' => :'String',
|
|
87
|
+
:'stream' => :'GetVoiceCallResponseCallSetupStream',
|
|
88
|
+
:'voicemail_action' => :'String',
|
|
89
|
+
:'voicemail_message' => :'String'
|
|
90
|
+
}
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# List of attributes with nullable: true
|
|
94
|
+
def self.openapi_nullable
|
|
95
|
+
Set.new([
|
|
96
|
+
])
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# Initializes the object
|
|
100
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
101
|
+
def initialize(attributes = {})
|
|
102
|
+
if (!attributes.is_a?(Hash))
|
|
103
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::GetVoiceCallResponseCallSetup` initialize method"
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
107
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
108
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
109
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
110
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::GetVoiceCallResponseCallSetup`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
111
|
+
end
|
|
112
|
+
h[k.to_sym] = v
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
if attributes.key?(:'mode')
|
|
116
|
+
self.mode = attributes[:'mode']
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
if attributes.key?(:'script')
|
|
120
|
+
if (value = attributes[:'script']).is_a?(Array)
|
|
121
|
+
self.script = value
|
|
122
|
+
end
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
if attributes.key?(:'record')
|
|
126
|
+
self.record = attributes[:'record']
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
if attributes.key?(:'transcript')
|
|
130
|
+
self.transcript = attributes[:'transcript']
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
if attributes.key?(:'stream')
|
|
134
|
+
self.stream = attributes[:'stream']
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
if attributes.key?(:'voicemail_action')
|
|
138
|
+
self.voicemail_action = attributes[:'voicemail_action']
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
if attributes.key?(:'voicemail_message')
|
|
142
|
+
self.voicemail_message = attributes[:'voicemail_message']
|
|
143
|
+
end
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
147
|
+
# @return Array for valid properties with the reasons
|
|
148
|
+
def list_invalid_properties
|
|
149
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
150
|
+
invalid_properties = Array.new
|
|
151
|
+
invalid_properties
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
# Check to see if the all the properties in the model are valid
|
|
155
|
+
# @return true if the model is valid
|
|
156
|
+
def valid?
|
|
157
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
158
|
+
transcript_validator = EnumAttributeValidator.new('String', ["single", "multichannel"])
|
|
159
|
+
return false unless transcript_validator.valid?(@transcript)
|
|
160
|
+
voicemail_action_validator = EnumAttributeValidator.new('String', ["hangup", "message", "continue"])
|
|
161
|
+
return false unless voicemail_action_validator.valid?(@voicemail_action)
|
|
162
|
+
true
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
166
|
+
# @param [Object] transcript Object to be assigned
|
|
167
|
+
def transcript=(transcript)
|
|
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}."
|
|
171
|
+
end
|
|
172
|
+
@transcript = transcript
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
176
|
+
# @param [Object] voicemail_action Object to be assigned
|
|
177
|
+
def voicemail_action=(voicemail_action)
|
|
178
|
+
validator = EnumAttributeValidator.new('String', ["hangup", "message", "continue"])
|
|
179
|
+
unless validator.valid?(voicemail_action)
|
|
180
|
+
fail ArgumentError, "invalid value for \"voicemail_action\", must be one of #{validator.allowable_values}."
|
|
181
|
+
end
|
|
182
|
+
@voicemail_action = voicemail_action
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
# Checks equality by comparing each attribute.
|
|
186
|
+
# @param [Object] Object to be compared
|
|
187
|
+
def ==(o)
|
|
188
|
+
return true if self.equal?(o)
|
|
189
|
+
self.class == o.class &&
|
|
190
|
+
mode == o.mode &&
|
|
191
|
+
script == o.script &&
|
|
192
|
+
record == o.record &&
|
|
193
|
+
transcript == o.transcript &&
|
|
194
|
+
stream == o.stream &&
|
|
195
|
+
voicemail_action == o.voicemail_action &&
|
|
196
|
+
voicemail_message == o.voicemail_message
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
# @see the `==` method
|
|
200
|
+
# @param [Object] Object to be compared
|
|
201
|
+
def eql?(o)
|
|
202
|
+
self == o
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
# Calculates hash code according to all attributes.
|
|
206
|
+
# @return [Integer] Hash code
|
|
207
|
+
def hash
|
|
208
|
+
[mode, script, record, transcript, stream, voicemail_action, voicemail_message].hash
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
# Builds the object from hash
|
|
212
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
213
|
+
# @return [Object] Returns the model itself
|
|
214
|
+
def self.build_from_hash(attributes)
|
|
215
|
+
return nil unless attributes.is_a?(Hash)
|
|
216
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
217
|
+
transformed_hash = {}
|
|
218
|
+
openapi_types.each_pair do |key, type|
|
|
219
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
220
|
+
transformed_hash["#{key}"] = nil
|
|
221
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
222
|
+
# check to ensure the input is an array given that the attribute
|
|
223
|
+
# is documented as an array but the input is not
|
|
224
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
225
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
226
|
+
end
|
|
227
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
228
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
229
|
+
end
|
|
230
|
+
end
|
|
231
|
+
new(transformed_hash)
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
# Returns the object in the form of hash
|
|
235
|
+
# @return [Hash] Returns the object in the form of hash
|
|
236
|
+
def to_hash
|
|
237
|
+
hash = {}
|
|
238
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
239
|
+
value = self.send(attr)
|
|
240
|
+
if value.nil?
|
|
241
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
242
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
hash[param] = _to_hash(value)
|
|
246
|
+
end
|
|
247
|
+
hash
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
end
|
|
@@ -0,0 +1,190 @@
|
|
|
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 GetVoiceCallResponseCallSetupStream < ApiModelBase
|
|
18
|
+
attr_accessor :audio
|
|
19
|
+
|
|
20
|
+
attr_accessor :transcript
|
|
21
|
+
|
|
22
|
+
class EnumAttributeValidator
|
|
23
|
+
attr_reader :datatype
|
|
24
|
+
attr_reader :allowable_values
|
|
25
|
+
|
|
26
|
+
def initialize(datatype, allowable_values)
|
|
27
|
+
@allowable_values = allowable_values.map do |value|
|
|
28
|
+
case datatype.to_s
|
|
29
|
+
when /Integer/i
|
|
30
|
+
value.to_i
|
|
31
|
+
when /Float/i
|
|
32
|
+
value.to_f
|
|
33
|
+
else
|
|
34
|
+
value
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
def valid?(value)
|
|
40
|
+
!value || allowable_values.include?(value)
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
45
|
+
def self.attribute_map
|
|
46
|
+
{
|
|
47
|
+
:'audio' => :'audio',
|
|
48
|
+
:'transcript' => :'transcript'
|
|
49
|
+
}
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Returns attribute mapping this model knows about
|
|
53
|
+
def self.acceptable_attribute_map
|
|
54
|
+
attribute_map
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# Returns all the JSON keys this model knows about
|
|
58
|
+
def self.acceptable_attributes
|
|
59
|
+
acceptable_attribute_map.values
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Attribute type mapping.
|
|
63
|
+
def self.openapi_types
|
|
64
|
+
{
|
|
65
|
+
:'audio' => :'Boolean',
|
|
66
|
+
:'transcript' => :'String'
|
|
67
|
+
}
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# List of attributes with nullable: true
|
|
71
|
+
def self.openapi_nullable
|
|
72
|
+
Set.new([
|
|
73
|
+
])
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Initializes the object
|
|
77
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
78
|
+
def initialize(attributes = {})
|
|
79
|
+
if (!attributes.is_a?(Hash))
|
|
80
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::GetVoiceCallResponseCallSetupStream` initialize method"
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
84
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
85
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
86
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
87
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::GetVoiceCallResponseCallSetupStream`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
88
|
+
end
|
|
89
|
+
h[k.to_sym] = v
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
if attributes.key?(:'audio')
|
|
93
|
+
self.audio = attributes[:'audio']
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
if attributes.key?(:'transcript')
|
|
97
|
+
self.transcript = attributes[:'transcript']
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
102
|
+
# @return Array for valid properties with the reasons
|
|
103
|
+
def list_invalid_properties
|
|
104
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
105
|
+
invalid_properties = Array.new
|
|
106
|
+
invalid_properties
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# Check to see if the all the properties in the model are valid
|
|
110
|
+
# @return true if the model is valid
|
|
111
|
+
def valid?
|
|
112
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
113
|
+
transcript_validator = EnumAttributeValidator.new('String', ["single", "multichannel"])
|
|
114
|
+
return false unless transcript_validator.valid?(@transcript)
|
|
115
|
+
true
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
119
|
+
# @param [Object] transcript Object to be assigned
|
|
120
|
+
def transcript=(transcript)
|
|
121
|
+
validator = EnumAttributeValidator.new('String', ["single", "multichannel"])
|
|
122
|
+
unless validator.valid?(transcript)
|
|
123
|
+
fail ArgumentError, "invalid value for \"transcript\", must be one of #{validator.allowable_values}."
|
|
124
|
+
end
|
|
125
|
+
@transcript = transcript
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# Checks equality by comparing each attribute.
|
|
129
|
+
# @param [Object] Object to be compared
|
|
130
|
+
def ==(o)
|
|
131
|
+
return true if self.equal?(o)
|
|
132
|
+
self.class == o.class &&
|
|
133
|
+
audio == o.audio &&
|
|
134
|
+
transcript == o.transcript
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# @see the `==` method
|
|
138
|
+
# @param [Object] Object to be compared
|
|
139
|
+
def eql?(o)
|
|
140
|
+
self == o
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# Calculates hash code according to all attributes.
|
|
144
|
+
# @return [Integer] Hash code
|
|
145
|
+
def hash
|
|
146
|
+
[audio, transcript].hash
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# Builds the object from hash
|
|
150
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
151
|
+
# @return [Object] Returns the model itself
|
|
152
|
+
def self.build_from_hash(attributes)
|
|
153
|
+
return nil unless attributes.is_a?(Hash)
|
|
154
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
155
|
+
transformed_hash = {}
|
|
156
|
+
openapi_types.each_pair do |key, type|
|
|
157
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
158
|
+
transformed_hash["#{key}"] = nil
|
|
159
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
160
|
+
# check to ensure the input is an array given that the attribute
|
|
161
|
+
# is documented as an array but the input is not
|
|
162
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
163
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
164
|
+
end
|
|
165
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
166
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
167
|
+
end
|
|
168
|
+
end
|
|
169
|
+
new(transformed_hash)
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
# Returns the object in the form of hash
|
|
173
|
+
# @return [Hash] Returns the object in the form of hash
|
|
174
|
+
def to_hash
|
|
175
|
+
hash = {}
|
|
176
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
177
|
+
value = self.send(attr)
|
|
178
|
+
if value.nil?
|
|
179
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
180
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
hash[param] = _to_hash(value)
|
|
184
|
+
end
|
|
185
|
+
hash
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
end
|
|
@@ -15,6 +15,8 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module Pingram
|
|
17
17
|
class GoogleGemini31FlashLivePreview < 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"])
|
|
147
|
+
return false unless effort_validator.valid?(@effort)
|
|
138
148
|
return false if @model.nil?
|
|
139
149
|
model_validator = EnumAttributeValidator.new('String', ["google:gemini-3.1-flash-live-preview"])
|
|
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"])
|
|
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
|